From 6c8a0a72c07ef61682607995c1875d1a1703cbfd Mon Sep 17 00:00:00 2001 From: Aaron <12213433+surfine@users.noreply.github.com> Date: Wed, 2 Dec 2026 08:11:32 +0800 Subject: [PATCH 1/9] =?UTF-8?q?refactor:=20=E5=88=A0=E6=8E=89=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E4=BB=BB=E4=BD=95=E5=BC=95=E7=94=A8=E7=9A=84=E5=A3=B0?= =?UTF-8?q?=E6=98=8E=EF=BC=8819=20=E5=A4=84=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 产品代码和测试都不引用的常量、计算属性与方法,连同提到它们的过期注释。 Co-Authored-By: Claude Opus 5.5 --- prototype/App/CountdownTimerHost.swift | 3 +- prototype/App/SplitView.swift | 2 -- prototype/App/TrackpadGestures.swift | 3 -- prototype/App/UpdaterLaunch.swift | 5 +-- prototype/App/WS2InputController.swift | 18 ---------- prototype/App/WindowFrameSpring.swift | 5 --- prototype/Core/ExplainerScenes+Common.swift | 35 ------------------- prototype/Core/ExplainerScript.swift | 7 ---- prototype/Core/GestureCoach.swift | 3 -- prototype/Core/IslandMetrics.swift | 11 ------ prototype/Core/NotchRow.swift | 2 -- prototype/Core/UpdateModels.swift | 1 - prototype/Effects/AppleSPUAccelerometer.swift | 4 --- 13 files changed, 2 insertions(+), 97 deletions(-) diff --git a/prototype/App/CountdownTimerHost.swift b/prototype/App/CountdownTimerHost.swift index 2e264f0e..b7aade4c 100644 --- a/prototype/App/CountdownTimerHost.swift +++ b/prototype/App/CountdownTimerHost.swift @@ -101,12 +101,11 @@ enum CountdownTimerPicker { /// 计时器自己的两项设置:到时间响一声(默认开,稿里唯一默认会响的声音)、上次选的分钟数。 /// 读写点集中在这里,隐私登记(tools/privacy/registry.json)只登记这几行。 enum CountdownTimerSettings { - static let chimeKey = "Timer.chimeEnabled" static let lastMinutesKey = "Timer.lastMinutes" /// 只有单线程的测试会在使用前换掉它再换回;App 里从不赋值。 nonisolated(unsafe) static var store: UserDefaults = .standard - /// 到时间响一声听「提示音」(拍板 2026-10-29 第 1 条);chimeKey 只剩迁移时当旧键读。 + /// 到时间响一声听「提示音」(拍板 2026-10-29 第 1 条)。 static var chimeEnabled: Bool { get { AlertSoundPreference.isEnabled(in: store) } set { AlertSoundPreference.set(newValue, in: store) } diff --git a/prototype/App/SplitView.swift b/prototype/App/SplitView.swift index 9b872b5c..7101aacc 100644 --- a/prototype/App/SplitView.swift +++ b/prototype/App/SplitView.swift @@ -46,8 +46,6 @@ final class SplitViewController { /// 上一次算出来的候选缝(还没按收起、侧拉等过滤):签名相同时直接拿它再过滤。 private var candidates: [Seam] = [] private var pause = SplitPauseState() - /// 探针/测试用:相同签名跳过的次数。 - var skippedScansForProbe: Int { signatureGate.skipped } /// 拖着一根把手:起点那条缝、缝两边窗口的辅助功能元素和各自写外框的那条链、缝现在在哪。 private var drag: Drag? @MainActor private final class Drag { diff --git a/prototype/App/TrackpadGestures.swift b/prototype/App/TrackpadGestures.swift index 6c2ba396..a6baf4d2 100644 --- a/prototype/App/TrackpadGestures.swift +++ b/prototype/App/TrackpadGestures.swift @@ -1843,9 +1843,6 @@ final class TrackpadGestureController { return decideFlick(drag, source: source, signal: time, release: release, lifted: lifted) } - /// 窗口正在滑,或者正要滑(探针等它落定)。 - func isGliding(_ id: CGWindowID) -> Bool { glides[id] != nil || proxies[id] != nil } - private func flickAnchor(_ frameAX: CGRect) -> CGPoint { let barBottom = cocoaMousePoint(fromAXPoint: CGPoint(x: frameAX.midX, y: frameAX.minY + 28)) return CGPoint(x: barBottom.x, y: barBottom.y - 10) diff --git a/prototype/App/UpdaterLaunch.swift b/prototype/App/UpdaterLaunch.swift index d3db5281..faef67f5 100644 --- a/prototype/App/UpdaterLaunch.swift +++ b/prototype/App/UpdaterLaunch.swift @@ -156,7 +156,7 @@ enum UpdateLaunch { /// 交给旧版的看护换回:发起回退的代码来自已知能跑的那一版。那份不在时才用这一版自带的 UpdateRestorer。 /// 交出去了就直接退出。进程内换回(ditto 最长 120 秒、再 open 10 秒)放到后台串行队列,主线程不等: - /// 换回期间 launchSuspendedForRestore 为真,applicationDidFinishLaunching 先不接管(见 deferLaunchIfRestoring); + /// 换回期间 InProcessRestore.shared.isSuspended 为真,applicationDidFinishLaunching 先不接管(见 deferLaunchIfRestoring); /// 换回并重新打开成功就退出,没成就 giveUpRestore、清掉标志、照常启动。换回的顺序和以前一样。 @discardableResult static func handToGuard(store: UpdateStore, reason: UpdateRestoreReason, journal: UpdateJournal) -> HandToGuardOutcome { @@ -187,9 +187,6 @@ enum UpdateLaunch { return started ? .restoringInBackground : .unavailable } - /// 进程内换回进行中(只在主线程上读写)。为真时启动流程先不接管事件、不收起窗口。 - static var launchSuspendedForRestore: Bool { InProcessRestore.shared.isSuspended } - /// applicationDidFinishLaunching 开头调用:换回进行中就把余下的启动步骤存起来,返回 true,调用方立刻返回; /// 换回没成时在主线程上补跑。没有换回在跑时返回 false,照常启动。 @MainActor diff --git a/prototype/App/WS2InputController.swift b/prototype/App/WS2InputController.swift index 6462b818..b884a4c1 100644 --- a/prototype/App/WS2InputController.swift +++ b/prototype/App/WS2InputController.swift @@ -121,22 +121,4 @@ final class WS2InputController { hooksPaused = true apply() } - - func scrollStatus(prefersChange: Bool) -> String { - if !prefersChange { - switch scrollDecision { - case .hold(.off): return "关着,不改滚动" - case .hold(let block): return InputStatusCopy.scrollHold(block) - case .install: return "关着,不改滚动" - } - } - switch scrollDecision { - case .install: return "开着" - case .hold(let block): return InputStatusCopy.scrollHold(block) - } - } - - var touchAvailable: Bool { - InputFeatureGate.touchMayInstall(qualification: nil, build: "", architecture: "", sourceDigest: "", switchOn: true) - } } diff --git a/prototype/App/WindowFrameSpring.swift b/prototype/App/WindowFrameSpring.swift index 460ed2e5..bde73f87 100644 --- a/prototype/App/WindowFrameSpring.swift +++ b/prototype/App/WindowFrameSpring.swift @@ -32,11 +32,6 @@ final class WindowFrameSpring: NSObject { driver.run(moves, spring: spring, completion: completion) } - static func cancelActive() { - active?.cancel() - active = nil - } - private func run(_ moves: [(window: NSWindow, to: NSRect)], spring: FlickSpring, completion: @escaping () -> Void) { self.moves = moves.compactMap { pair in diff --git a/prototype/Core/ExplainerScenes+Common.swift b/prototype/Core/ExplainerScenes+Common.swift index 54485ea1..4bda1260 100644 --- a/prototype/Core/ExplainerScenes+Common.swift +++ b/prototype/Core/ExplainerScenes+Common.swift @@ -289,24 +289,6 @@ enum ExplainerScenes { description: WSL10n.setting("explainer.dockHover.ax", zh: "演示:指针停在 Dock 图标上,这个 App 的窗口排出来。")) } - /// 点 Dock 图标(参数:点完之后结果块怎么变)。默认是“再点一下 Dock 图标,让开这个 App”。 - static func dockIconClick(id: String, description: SettingsText, - result: ExplainerState = [.windowA: P(opacity: 0, scale: 0.96)], - arrows: ExplainerArrows = ExplainerArrows(result: "M158 176 L158 150 M152 158 l6 -8 l6 8")) -> ExplainerSpec { - ExplainerSpec( - id: id, device: .click, - initial: [.windowA: dockWindow, .dock: P(opacity: 1), .pointer: P(x: 236, y: 120, opacity: 1), - .finger1: P(x: 156, y: 96, opacity: 0, pressed: false)], - frames: [ - F("pointer to the Dock icon", .calm, [.pointer: P(x: 158, y: 188)], story: true), - F("click", .tap, [.finger1: P(opacity: 1, pressed: true)], hold: 0.06), - F("", .tap, [.finger1: P(opacity: 0, pressed: false)]), - F("result", .calm, result, hold: 1.2, key: true), - .reset, - ], - arrows: arrows, description: description) - } - // MARK: 键盘与菜单栏 /// 刘海教你(T 刘海一段):按 ⌃C 没反应,刘海说 Mac 上按 ⌘C。 @@ -400,23 +382,6 @@ enum ExplainerScenes { deviceText: when, notchLine: (line, detail)) } - /// 面板升起(窗口浏览、刘海合成一排等):指针停到某处,面板从下面升起,移开收回。 - static func panelRises(id: String, description: SettingsText, pointerFrom: CGPoint = CGPoint(x: 236, y: 120), - pointerTo: CGPoint = CGPoint(x: 158, y: 188), look: ExplainerLook = .plain, dock: Bool = true) -> ExplainerSpec { - var initial: ExplainerState = [.windowA: dockWindow, .panel: P(y: 150, opacity: 0, look: look), - .pointer: P(x: pointerFrom.x, y: pointerFrom.y, opacity: 1)] - if dock { initial[.dock] = P(opacity: 1) } - return ExplainerSpec( - id: id, device: .point, initial: initial, - frames: [ - F("pointer moves there", .calm, [.pointer: P(x: pointerTo.x, y: pointerTo.y)], hold: 0.3, story: true), - F("the panel rises", .calm, [.panel: P(y: 112, opacity: 1)], hold: 1.6, key: true), - F("move away: it goes back", .calm, [.pointer: P(x: pointerFrom.x, y: pointerFrom.y), .panel: P(y: 150, opacity: 0)], - hold: 0.8, story: true), - ], - arrows: ExplainerArrows(result: "M158 176 L158 150 M152 158 l6 -8 l6 8"), description: description) - } - /// 静图(稿里的 still):左块一句话、右块摆一帧不动。 static func still(id: String, deviceText: SettingsText?, initial: ExplainerState, description: SettingsText, device: ExplainerDevice? = nil) -> ExplainerSpec { diff --git a/prototype/Core/ExplainerScript.swift b/prototype/Core/ExplainerScript.swift index 5487a80c..a0f01a79 100644 --- a/prototype/Core/ExplainerScript.swift +++ b/prototype/Core/ExplainerScript.swift @@ -77,13 +77,6 @@ enum ExplainerTiming { enum ExplainerElement: String, Sendable, CaseIterable { case windowA, windowB, windowC, panel, dock, pointer, notch, notchLine, menuBarIcon, menu, cover case finger1, finger2, key1, key2, deviceText - - var onDeviceTile: Bool { - switch self { - case .finger1, .finger2, .key1, .key2, .deviceText: return true - default: return false - } - } } /// 窗口、面板换样子(稿里的 class)。 diff --git a/prototype/Core/GestureCoach.swift b/prototype/Core/GestureCoach.swift index 430faf35..2c1899f5 100644 --- a/prototype/Core/GestureCoach.swift +++ b/prototype/Core/GestureCoach.swift @@ -79,9 +79,6 @@ enum CoachTip: String, CaseIterable, Codable { struct GestureCoach: Codable, Equatable { static let maxShows = 3 static let cooldown: TimeInterval = 300 - /// 手动挪窗口:一分钟里第几次开始教魔法平铺。 - static let fiddleCount = 3 - static let fiddleWindow: TimeInterval = 60 var shown: [CoachTip: Int] = [:] var used: Set = [] diff --git a/prototype/Core/IslandMetrics.swift b/prototype/Core/IslandMetrics.swift index 20911cdc..a37b5788 100644 --- a/prototype/Core/IslandMetrics.swift +++ b/prototype/Core/IslandMetrics.swift @@ -20,15 +20,9 @@ enum IslandMetrics { /// 外接屏放不下胶囊时退成的最小圆(HIG Live Activities 的 minimal:36.67 见方的圆)。 /// 取代 72×12 的小下巴(AARON-DECISIONS 第 120 条,2026-11-13)。 static let iosMinimalDiameter: CGFloat = 36.67 - /// 系统 CenterHUD 的虚拟感测器(27.3 MenuBarAgent 逆向:59 × 34,位在菜单栏下方 7 点)。 - /// 外接屏照这个位置放岛;没有菜单栏的屏就是离屏幕顶 7 点。 - static let softwareSensorWidth: CGFloat = 59 - static let softwareSensorHeight: CGFloat = 34 static let softwareSensorGap: CGFloat = 7 /// 外接屏展开宽(iOS:371)。刘海屏用 `expandedWidth` 408。 static let iosExpandedWidth: CGFloat = 371 - /// 展开岛高(iOS:160)。 - static let iosExpandedHeight: CGFloat = 160 // MARK: 紧凑(刘海两侧各一块) @@ -39,11 +33,6 @@ enum IslandMetrics { /// iOS 紧凑高 36.67(HIG 的数,iPhone 上浮着的岛)。刘海屏的两耳不用它:耳高 = 刘海高(`compactEarsRect`), /// 画 36.67 会在刘海底角旁鼓出 3.17 的台阶(《两耳的岛》对照账第 2 行)。留作参考与编程会话卡的比例尺。 static let compactHeight: CGFloat = 36.67 - /// 紧凑底角 = 高的一半(稿的假设,圆角系统没有公布)。已废弃:紧凑底角改用 - /// `NotchIsland.compactRadius(hardware)`(知道硬件时 = 真实刘海底角,不知道退 12); - /// 这里只留作历史参考。 - @available(*, deprecated) - static var compactCornerRadius: CGFloat { compactHeight / 2 } /// 最窄的耳(主体):一个 18 的符号加两边各 4。再窄就退回下巴。 static let compactNarrowestBody: CGFloat = 26 diff --git a/prototype/Core/NotchRow.swift b/prototype/Core/NotchRow.swift index c14186d2..c185e059 100644 --- a/prototype/Core/NotchRow.swift +++ b/prototype/Core/NotchRow.swift @@ -37,8 +37,6 @@ enum NotchRow { static let dividerWhite = 0.2 /// 竖线两边各一个间隙:它让右段比平常的间隙多占 1 + 8(竖线本身加一侧间隙,另一侧原有的间隙不变)。 static let dividerExtra = dividerWidth + cellGap - /// 缩略图的宽高比。 - static let thumbnailAspect = 16.0 / 10.0 /// 左段最多几格、右段最多几格(实时活动可见上限是 3)。 static let windowLimit = 8 static let ongoingLimit = 3 diff --git a/prototype/Core/UpdateModels.swift b/prototype/Core/UpdateModels.swift index 90bee398..968097f3 100644 --- a/prototype/Core/UpdateModels.swift +++ b/prototype/Core/UpdateModels.swift @@ -16,7 +16,6 @@ enum UpdateLog { enum UpdateIdentity { static let bundleID = "com.windowshade.prototype" - static let guardBundleID = "com.windowshade.prototype.update-guard" static let guardLabel = "com.windowshade.prototype.update-guard" static let guardAppName = "WindowShadeUpdateGuard.app" static let guardExecutableName = "WindowShadeUpdateGuard" diff --git a/prototype/Effects/AppleSPUAccelerometer.swift b/prototype/Effects/AppleSPUAccelerometer.swift index ba728a0c..673a2e61 100644 --- a/prototype/Effects/AppleSPUAccelerometer.swift +++ b/prototype/Effects/AppleSPUAccelerometer.swift @@ -78,10 +78,6 @@ final class AppleSPUAccelerometer: @unchecked Sendable { /// 当前倾斜偏移(已低通、已减去基线、已限幅)。任意线程可读,不跨线程排队。 var tilt: SIMD2 { lock.withLock { published } } - func setStatusTicks(_ enabled: Bool) { - lock.withLock { statusTicks = enabled } - } - init( openManager: @escaping (IOHIDManager) -> IOReturn = { IOHIDManagerOpen($0, IOOptionBits(0)) }, wakeDriver: (() -> Bool)? = nil From cd3e0486c821785d596daaecf07d8acf4a2d1c7f Mon Sep 17 00:00:00 2001 From: Aaron <12213433+surfine@users.noreply.github.com> Date: Wed, 2 Dec 2026 08:12:53 +0800 Subject: [PATCH 2/9] =?UTF-8?q?refactor(capture):=20=E5=88=A0=E6=8E=89?= =?UTF-8?q?=E5=B7=B2=E6=97=A0=E8=B0=83=E7=94=A8=E6=96=B9=E7=9A=84=20Latest?= =?UTF-8?q?FrameMailbox=20=E5=8F=8A=E5=85=B6=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 最低系统提到 macOS 15 时旧系统的主线程投递路径已删,这个邮箱从那以后只剩测试在用。 Co-Authored-By: Claude Opus 5.5 --- prototype/Capture/LatestFrameMailbox.swift | 145 --------------------- tests/CaptureMailboxTests.swift | 136 ------------------- tests/run-capture-mailbox-tests.sh | 10 -- 3 files changed, 291 deletions(-) delete mode 100644 prototype/Capture/LatestFrameMailbox.swift delete mode 100644 tests/CaptureMailboxTests.swift delete mode 100755 tests/run-capture-mailbox-tests.sh diff --git a/prototype/Capture/LatestFrameMailbox.swift b/prototype/Capture/LatestFrameMailbox.swift deleted file mode 100644 index 4acbe72d..00000000 --- a/prototype/Capture/LatestFrameMailbox.swift +++ /dev/null @@ -1,145 +0,0 @@ -import Foundation - -/// 最新一帧邮箱(PERF-04):给「必须回主队列才能呈现」的旧系统适配器做有界背压。 -/// -/// 每路最多一个待呈现帧加一个已排队的消费任务。新帧到来时**覆盖**还没被消费的旧帧, -/// 而不是排队;消费前再次复查会话代数与停止状态,`stop()` 清空槽位并让已排队的任务作废 -/// (作废靠 `epoch` 自动作废,不需要取消 DispatchWorkItem)。所以主线程被拖住时, -/// 积压的最坏情况是一帧,不是一个越来越长的队列。 -/// -/// 这里不把「入队次数」当呈现成功;投递与呈现语义仍由下游的采样缓冲渲染器决定。 -final class LatestFrameMailbox: @unchecked Sendable { - typealias Consume = @Sendable (Frame) -> Void - - private let lock = NSLock() - private var consume: Consume? - private var pending: Frame? - private var consumerScheduled = false - private var stopped = false - /// 会话代数:start/stop 各加一,让已排队但属于旧会话的消费任务自动作废。 - private var epoch: UInt64 = 0 - - // 计数:只用于诊断与测试。 - private var overwrittenCount = 0 - private var deliveredCount = 0 - private var scheduledCount = 0 - private var peakPendingCount = 0 - - /// 把消费任务排到目标队列;生产环境是主队列,测试可注入可控队列。 - private let schedule: (@escaping @Sendable () -> Void) -> Void - - init(schedule: @escaping (@escaping @Sendable () -> Void) -> Void = { DispatchQueue.main.async(execute: $0) }) { - self.schedule = schedule - } - - /// 会话开始后设置消费闭包(在 `init` 之后调用一次)。 - func setConsume(_ body: @escaping Consume) { - lock.lock() - consume = body - lock.unlock() - } - - /// 开始一次会话:清空槽位、作废任何属于旧会话的任务、允许投递。 - func start() { - lock.lock() - epoch &+= 1 - pending = nil - stopped = false - consumerScheduled = false - lock.unlock() - } - - /// 停止:清空槽位并让已排队的消费任务失效。 - func stop() { - lock.lock() - epoch &+= 1 - pending = nil - stopped = true - consumerScheduled = false - lock.unlock() - } - - /// 收到一帧:覆盖旧帧;没有已排队的消费任务时才排一个。 - func receive(_ frame: Frame) { - lock.lock() - guard !stopped else { - lock.unlock() - return - } - if pending != nil { overwrittenCount &+= 1 } - pending = frame - peakPendingCount = max(peakPendingCount, 1) - if consumerScheduled { - lock.unlock() - return - } - consumerScheduled = true - scheduledCount &+= 1 - let epoch = self.epoch - lock.unlock() - schedule { [weak self] in self?.drain(epoch: epoch) } - } - - private func drain(epoch: UInt64) { - lock.lock() - // 旧会话留下的任务:自动作废,绝不碰新会话的状态。 - guard epoch == self.epoch else { - lock.unlock() - return - } - guard !stopped, let frame = pending else { - consumerScheduled = false - lock.unlock() - return - } - pending = nil - let consume = self.consume - lock.unlock() - consume?(frame) - lock.lock() - deliveredCount &+= 1 - guard epoch == self.epoch else { - lock.unlock() - return - } - if !stopped, pending != nil { - // 消费期间又来了新帧:仍由同一条消费链继续,不新增并发。 - scheduledCount &+= 1 - lock.unlock() - schedule { [weak self] in self?.drain(epoch: epoch) } - } else { - consumerScheduled = false - lock.unlock() - } - } - - var pendingCount: Int { - lock.lock() - defer { lock.unlock() } - return pending == nil ? 0 : 1 - } - - var peakPending: Int { - lock.lock() - defer { lock.unlock() } - return peakPendingCount - } - - var overwritten: Int { - lock.lock() - defer { lock.unlock() } - return overwrittenCount - } - - var delivered: Int { - lock.lock() - defer { lock.unlock() } - return deliveredCount - } - - var scheduled: Int { - lock.lock() - defer { lock.unlock() } - return scheduledCount - } -} diff --git a/tests/CaptureMailboxTests.swift b/tests/CaptureMailboxTests.swift deleted file mode 100644 index 13b60bad..00000000 --- a/tests/CaptureMailboxTests.swift +++ /dev/null @@ -1,136 +0,0 @@ -import Foundation - -/// PERF-04:旧系统呈现用的最新一帧邮箱。 -/// 硬条件:占用有界(最多一待呈现帧 + 一消费任务);连续 stop/start 后旧会话的 -/// 投递为零;没有首帧也不会凭空搬运。 -@main struct CaptureMailboxTests { - final class ManualQueue: @unchecked Sendable { - private var tasks: [@Sendable () -> Void] = [] - func schedule(_ work: @escaping @Sendable () -> Void) { tasks.append(work) } - var count: Int { tasks.count } - func drainOne() { if !tasks.isEmpty { tasks.removeFirst()() } } - func drain() { while !tasks.isEmpty { tasks.removeFirst()() } } - } - - final class Sink: @unchecked Sendable { - var values: [T] = [] - func append(_ value: T) { values.append(value) } - } - - static func main() { - boundedBackpressureTests() - overwriteKeepsNewestTests() - stopInvalidatesQueuedTests() - sessionBoundaryTests() - consumerChainTests() - print("PASS: mailbox occupancy is bounded, newest frame wins, stop/start invalidates old sessions") - } - - static func boundedBackpressureTests() { - let queue = ManualQueue() - let seen = Sink() - let mailbox = LatestFrameMailbox(schedule: queue.schedule) - mailbox.setConsume { seen.append($0) } - mailbox.start() - // 主线程被拖住:1000 帧全都压进来,队列一个都不跑。 - for frame in 1...1000 { mailbox.receive(frame) } - precondition(mailbox.pendingCount == 1, "At most one frame waits") - precondition(mailbox.peakPending == 1, "peak occupancy stays at one") - precondition(mailbox.scheduled == 1, "At most one consumer task is queued") - precondition(queue.count == 1) - precondition(mailbox.overwritten == 999, "Newer frames overwrite the stale one") - precondition(seen.values.isEmpty, "Nothing is delivered while the consumer is stuck") - queue.drain() - precondition(seen.values == [1000], "Only the newest frame is presented") - precondition(mailbox.delivered == 1) - precondition(mailbox.pendingCount == 0) - } - - static func overwriteKeepsNewestTests() { - let queue = ManualQueue() - let seen = Sink() - let mailbox = LatestFrameMailbox(schedule: queue.schedule) - mailbox.setConsume { seen.append($0) } - mailbox.start() - mailbox.receive("a") - mailbox.receive("b") - mailbox.receive("c") - queue.drain() - precondition(seen.values == ["c"], "Old frames are dropped, not queued") - precondition(mailbox.overwritten == 2) - } - - static func stopInvalidatesQueuedTests() { - let queue = ManualQueue() - let seen = Sink() - let mailbox = LatestFrameMailbox(schedule: queue.schedule) - mailbox.setConsume { seen.append($0) } - mailbox.start() - mailbox.receive(1) - precondition(queue.count == 1) - mailbox.stop() - queue.drain() - precondition(seen.values.isEmpty, "A stopped session must not present its last frame") - precondition(mailbox.delivered == 0) - // 停止后到达的帧不再被接收。 - mailbox.receive(2) - precondition(mailbox.pendingCount == 0) - precondition(queue.count == 0) - } - - static func sessionBoundaryTests() { - let queue = ManualQueue() - let seen = Sink() - let mailbox = LatestFrameMailbox(schedule: queue.schedule) - mailbox.setConsume { seen.append($0) } - // 连续 stop/start:旧会话排队的任务一律作废。 - for frame in 0..<50 { - mailbox.start() - mailbox.receive(frame) - mailbox.stop() - } - queue.drain() - precondition(seen.values.isEmpty, "Frames from old sessions are never delivered") - - mailbox.start() - mailbox.receive(999) - queue.drain() - precondition(seen.values == [999]) - - mailbox.stop() - mailbox.start() - mailbox.receive(1000) - queue.drain() - precondition(seen.values == [999, 1000]) - mailbox.stop() - mailbox.start() - mailbox.receive(1001) - queue.drain() - precondition(seen.values == [999, 1000, 1001]) - } - - static func consumerChainTests() { - final class Sink: @unchecked Sendable { - var seen: [Int] = [] - var injected = false - } - let queue = ManualQueue() - let sink = Sink() - let mailbox = LatestFrameMailbox(schedule: queue.schedule) - mailbox.setConsume { frame in - sink.seen.append(frame) - // 消费期间又来一帧:仍由同一条消费链继续,不新增并发。 - if !sink.injected { - sink.injected = true - mailbox.receive(99) - } - } - mailbox.start() - mailbox.receive(1) - queue.drain() - precondition(sink.seen == [1, 99], "A frame arriving during consume continues the same chain") - precondition(mailbox.delivered == 2) - precondition(mailbox.scheduled == 2, "The chain reschedules itself, never runs two at once") - precondition(queue.count == 0) - } -} diff --git a/tests/run-capture-mailbox-tests.sh b/tests/run-capture-mailbox-tests.sh deleted file mode 100755 index 8045c0b2..00000000 --- a/tests/run-capture-mailbox-tests.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -# PERF-04:旧系统呈现用的最新一帧邮箱(有界占用、新帧覆盖、stop/start 作废旧会话)。 -set -euo pipefail -cd "$(dirname "$0")/.." -mkdir -p .build/capture-mailbox-tests -swiftc -module-cache-path "$(pwd)/.build/module-cache" \ - prototype/Capture/LatestFrameMailbox.swift \ - tests/CaptureMailboxTests.swift \ - -o .build/capture-mailbox-tests/capture-mailbox -.build/capture-mailbox-tests/capture-mailbox From e6568fddfcd78b8051b31bc330c41276b4f4c8f1 Mon Sep 17 00:00:00 2001 From: Aaron <12213433+surfine@users.noreply.github.com> Date: Wed, 2 Dec 2026 08:32:47 +0800 Subject: [PATCH 3/9] =?UTF-8?q?refactor(notch):=20=E5=88=A0=E6=8E=89?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E5=AE=9A=E4=B9=89=E4=B8=8E=E5=8F=AA=E6=AF=94?= =?UTF-8?q?=E5=AF=B9=E5=89=AF=E6=9C=AC=E7=9A=84=E6=B5=8B=E8=AF=95=E6=96=AD?= =?UTF-8?q?=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 终端 App 清单、耳朵透明度、最小形宽和刘海一排的圆角/格宽各有一份产品不用的副本; 删副本,测试不再断言两份抄来的常量相等。 Co-Authored-By: Claude Opus 5.5 --- prototype/Core/NotchActivities.swift | 6 ------ prototype/Core/NotchRoomPolicy.swift | 1 - prototype/Core/NotchRow.swift | 2 -- prototype/Core/StripNotchExchange.swift | 4 ---- tests/NotchActivityLifecycleTests.swift | 3 +-- tests/NotchIslandMetricsTests.swift | 2 +- tests/NotchRowMergeTests.swift | 1 - tests/SessionActivityTests.swift | 2 -- tests/StripNotchExchangeTests.swift | 3 --- tests/TerminalBindingTests.swift | 1 - 10 files changed, 2 insertions(+), 23 deletions(-) diff --git a/prototype/Core/NotchActivities.swift b/prototype/Core/NotchActivities.swift index 9e0fe324..76f636eb 100644 --- a/prototype/Core/NotchActivities.swift +++ b/prototype/Core/NotchActivities.swift @@ -478,9 +478,6 @@ extension NotchActivityKind { /// 紧凑两耳上的字:纯逻辑,视图只负责画。 enum NotchEarText { - /// 紧凑两耳的整体透明度:过期降到 0.5,其余 1。增强对比度时也一样:过期靠右耳的“—”认,不只靠暗。 - static func earAlpha(_ item: NotchActivity) -> Double { item.isStale ? NotchActivity.staleAlpha : 1 } - /// 读屏念的话:过期的在后面加“可能已停”。 static func spoken(_ base: String, stale: Bool) -> String { guard stale else { return base } @@ -1252,9 +1249,6 @@ enum NotchSessionEar { /// “过去”:按会话所在的目录,在终端窗口的标题或 AXDocument 里认出是哪一扇。纯逻辑;取标题和文档的是 App 那一层。 enum AgentSessionWindowMatch { - /// 终端类 App:Terminal、iTerm2、Ghostty、Warp。别的编辑器里的终端不找。 - static let terminalBundleIDs = ["com.apple.Terminal", "com.googlecode.iterm2", "com.mitchellh.ghostty", "dev.warp.Warp-Stable"] - enum Strength: Int, Comparable, Sendable { /// 标题里只有目录名这一段(Ghostty、Warp 常这么写),可能是同名的另一个项目。 case weak = 1 diff --git a/prototype/Core/NotchRoomPolicy.swift b/prototype/Core/NotchRoomPolicy.swift index 42dd08d6..526e1a77 100644 --- a/prototype/Core/NotchRoomPolicy.swift +++ b/prototype/Core/NotchRoomPolicy.swift @@ -33,7 +33,6 @@ enum NotchRoomPolicy { /// 一次量最多问几次:每边 10 个点 + 1 次读帧。 static var queryBudget: Int { 2 * (probesPerSide + 1) } /// 刘海屏最小形:直径 36.67 的圆(IslandMetrics),和岛、彼此之间隔 6;最多两颗。 - static let minimalWidth: CGFloat = IslandMetrics.minimalDiameter static let minimalGap: CGFloat = IslandMetrics.minimalGap // MARK: 怎么量 diff --git a/prototype/Core/NotchRow.swift b/prototype/Core/NotchRow.swift index c185e059..d9dede42 100644 --- a/prototype/Core/NotchRow.swift +++ b/prototype/Core/NotchRow.swift @@ -29,8 +29,6 @@ enum NotchRow { static let pitch = cellWidth + cellGap /// 岛的外框到格子的边距。 static let edgeMargin = 14.0 - static let cellRadius = 14.0 - static let outerRadius = 28.0 static let dividerWidth = 1.0 /// 竖线上下各留多少。 static let dividerInset = 10.0 diff --git a/prototype/Core/StripNotchExchange.swift b/prototype/Core/StripNotchExchange.swift index 4dbf7d0f..053ddc8d 100644 --- a/prototype/Core/StripNotchExchange.swift +++ b/prototype/Core/StripNotchExchange.swift @@ -19,10 +19,6 @@ enum StripNotchExchange { /// 落点小岛:宽 340、高 84,圆角 22(稿里的数字)。 static let landingSize = CGSize(width: 340, height: 84) static let landingRadius: CGFloat = 22 - /// 刘海那一排展开时的外框圆角和左段格子的宽与圆角(同 NotchRow,稿里 28 / 124 / 14)。 - static let expandedRadius: CGFloat = 28 - static let rowCellWidth: CGFloat = 124 - static let rowCellRadius: CGFloat = 14 /// 落点上写的字。 static let landingLine = "松手收进刘海" diff --git a/tests/NotchActivityLifecycleTests.swift b/tests/NotchActivityLifecycleTests.swift index 4d510e65..946e3c3f 100644 --- a/tests/NotchActivityLifecycleTests.swift +++ b/tests/NotchActivityLifecycleTests.swift @@ -300,12 +300,11 @@ struct NotchActivityLifecycleTests { var store = NotchActivityStore() _ = store.upsert(item("d", .download, at: 0, staleAt: 30, progress: .fraction(0.4)), now: 1) let fresh = store.visible[0] - expect(NotchEarText.earAlpha(fresh) == 1 && NotchEarText.trailing(fresh) == "40%", "没过期:全亮、写百分比") + expect(NotchEarText.trailing(fresh) == "40%", "没过期:写百分比") expect(NotchEarText.spoken("下载", stale: false) == "下载", "没过期不加话") store.prune(now: 31) let stale = store.visible[0] expect(stale.isStale, "过了 30 秒没进展:过期") - expect(NotchEarText.earAlpha(stale) == 0.5, "过期 0.5 透明") expect(NotchEarText.trailing(stale) == "—", "右耳写“—”,增强对比度时也靠它认") expect(NotchEarText.spoken("下载,40%", stale: true) == "下载,40%,可能已停", "读屏念“可能已停”") let cell = NotchRow.ongoingCells(from: [stale]).first diff --git a/tests/NotchIslandMetricsTests.swift b/tests/NotchIslandMetricsTests.swift index 5316f762..627a6dd8 100644 --- a/tests/NotchIslandMetricsTests.swift +++ b/tests/NotchIslandMetricsTests.swift @@ -24,7 +24,7 @@ struct NotchIslandMetricsTests { t.section("IM-02", "别处的数字跟着 IslandMetrics 走(真机量过只改一个文件)") t.expect(NotchRoomPolicy.fullSide == M.compactEarWidth && NotchRoomPolicy.legacyActivitySide == M.compactEarWidth, "耳宽规则") - t.expect(NotchRoomPolicy.minimalWidth == M.minimalDiameter && NotchRoomPolicy.minimalGap == M.minimalGap, "最小形宽与间距") + t.expect(NotchRoomPolicy.minimalGap == M.minimalGap, "最小形间距") let size = NotchMinimalPresentation.size(for: .notched) t.expect(size.width == M.minimalDiameter && size.height == M.minimalDiameter, "第二个活动分出的是正圆") t.expect(NotchMinimalPresentation.islandExtent(for: .notched) == M.compactEarWidth, "岛伸出的宽 = 一只耳") diff --git a/tests/NotchRowMergeTests.swift b/tests/NotchRowMergeTests.swift index cce28556..02316237 100644 --- a/tests/NotchRowMergeTests.swift +++ b/tests/NotchRowMergeTests.swift @@ -42,7 +42,6 @@ struct NotchRowMergeTests { t.expect(abs((line?.x ?? 0) - (both.leading(inRowWidth: 600) + both.x(ofCell: 1) + cell + gap)) < 0.001, "竖线正好在左段最后一格右边 8pt") t.expect(NotchRow.dividerWhite == 0.2 && NotchRow.dividerInset == 10, "白 0.2、上下各留 10") - t.expect(NotchRow.outerRadius - NotchRow.edgeMargin == NotchRow.cellRadius, "外框 28 − 边距 14 = 格子 14:同心不变") t.section("M11-03", "只有右段:没有竖线") let rightOnly = NotchRow.layout(windows: 0, ongoing: 2) diff --git a/tests/SessionActivityTests.swift b/tests/SessionActivityTests.swift index 1fbe13b9..2861a65a 100644 --- a/tests/SessionActivityTests.swift +++ b/tests/SessionActivityTests.swift @@ -228,8 +228,6 @@ import Foundation static func testWindowMatch() { typealias M = AgentSessionWindowMatch let home = "/Users/a" - expect(M.terminalBundleIDs == ["com.apple.Terminal", "com.googlecode.iterm2", "com.mitchellh.ghostty", "dev.warp.Warp-Stable"], - "四个终端的 bundle ID") expect(M.strength(cwd: "/Users/a/proj", title: nil, document: "file:///Users/a/proj/", home: home) == .strong, "AXDocument 是 file 地址") expect(M.strength(cwd: "/Users/a/proj", title: nil, document: "file://localhost/Users/a/proj", home: home) == .strong, "带 localhost 的 file 地址") expect(M.strength(cwd: "/Users/a/proj", title: nil, document: "/Users/a/proj", home: home) == .strong, "AXDocument 直接是路径") diff --git a/tests/StripNotchExchangeTests.swift b/tests/StripNotchExchangeTests.swift index 681106fb..a7fac923 100644 --- a/tests/StripNotchExchangeTests.swift +++ b/tests/StripNotchExchangeTests.swift @@ -24,9 +24,6 @@ struct StripNotchExchangeTests { expect(X.reachBelow == 84 && X.reachSide == 170, "范围:刘海下方 84 点、左右 170 点") expect(X.landingSize == CGSize(width: 340, height: 84) && X.landingRadius == 22, "落点小岛 340 × 84、圆角 22") - expect(X.expandedRadius == CGFloat(NotchRow.outerRadius) && X.rowCellWidth == CGFloat(NotchRow.cellWidth) - && X.rowCellRadius == CGFloat(NotchRow.cellRadius), - "展开那一排的圆角 28、格子 124 宽圆角 14,和刘海那一排的尺寸一致") expect(X.landingLine == "松手收进刘海", "落点上写“松手收进刘海”") let below = notch.minY - 84 expect(X.isInReach(pointer: CGPoint(x: notch.midX, y: notch.minY - 10), notch: notch), "刘海正下方 10 点:在范围里") diff --git a/tests/TerminalBindingTests.swift b/tests/TerminalBindingTests.swift index ddd35e1d..a51421f2 100644 --- a/tests/TerminalBindingTests.swift +++ b/tests/TerminalBindingTests.swift @@ -39,7 +39,6 @@ import Foundation expect(B.searchBundleIDs(for: I(program: "tmux")) == B.defaultTerminalBundleIDs, "tmux 里外面是谁不知道:找默认四个") expect(B.searchBundleIDs(for: I(program: "SomethingNew")) == B.defaultTerminalBundleIDs, "不认识:默认四个") expect(B.searchBundleIDs(for: nil) == B.defaultTerminalBundleIDs && B.searchBundleIDs(for: I(tmuxPane: "%1")) == B.defaultTerminalBundleIDs, "没有 program:默认四个") - expect(B.defaultTerminalBundleIDs == M.terminalBundleIDs, "默认四个和原来的一致") // 匹配强度:tty 名整段出现算完整匹配,比目录更精确。 let home = "/Users/a" From b08610026bcc26e054ea45e51f85d6e1e0fd4214 Mon Sep 17 00:00:00 2001 From: Aaron <12213433+surfine@users.noreply.github.com> Date: Wed, 2 Dec 2026 08:35:08 +0800 Subject: [PATCH 4/9] =?UTF-8?q?test:=20=E5=88=A0=E6=8E=89=E5=8F=AA?= =?UTF-8?q?=E5=A4=8D=E8=BF=B0=E5=AE=9E=E7=8E=B0=E7=9A=84=E6=96=AD=E8=A8=80?= =?UTF-8?q?=E5=8F=8A=E5=85=B6=E4=B8=93=E7=94=A8=E8=AE=BF=E9=97=AE=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit queryBudget、droppedBytes、evictions、activeSlotCount、usesSharedTap、notchDraws 只给测试读, 断言等于把实现再写一遍;axRef 没有调用方。notchDraws 的断言改为直接验 visible。 Co-Authored-By: Claude Opus 5.5 --- prototype/App/GlobalInputFilter.swift | 2 -- prototype/Core/NotchLevelSuppression.swift | 2 -- prototype/Core/NotchRoomPolicy.swift | 2 -- prototype/Core/WS2DiagnosticTail.swift | 1 - prototype/Effects/FoldImagePrep.swift | 8 -------- prototype/Private/DockBridge.swift | 6 ------ .../WindowBrowserMetadataScheduler.swift | 1 - tests/CrashTrapTests.swift | 12 ------------ tests/FoldPrepTests.swift | 4 +--- tests/GlobalInputFilterTests.swift | 1 - tests/NotchLevelLV4Tests.swift | 4 ++-- tests/NotchLevelSuppressionTests.swift | 12 ++++++------ tests/NotchRoomPolicyTests.swift | 1 - tests/Part6CoreTests.swift | 2 +- tests/WindowBrowserTests.swift | 2 +- 15 files changed, 11 insertions(+), 49 deletions(-) diff --git a/prototype/App/GlobalInputFilter.swift b/prototype/App/GlobalInputFilter.swift index c7d0143f..9af524ba 100644 --- a/prototype/App/GlobalInputFilter.swift +++ b/prototype/App/GlobalInputFilter.swift @@ -425,8 +425,6 @@ final class GlobalInputMonitor { } } - /// 诊断和测试:这一处现在是不是走合成的 tap。 - var usesSharedTap: Bool { viaTap } } /// 输入线程:tap 的 run loop 跑在这里,没有计时器,端口作废时自己退出。 diff --git a/prototype/Core/NotchLevelSuppression.swift b/prototype/Core/NotchLevelSuppression.swift index 541e0eff..daf047f6 100644 --- a/prototype/Core/NotchLevelSuppression.swift +++ b/prototype/Core/NotchLevelSuppression.swift @@ -80,8 +80,6 @@ struct NotchLevelSuppression: Equatable, Sendable { var visible: Visible var reason: Reason - /// 刘海要不要画两耳。 - var notchDraws: Bool { visible == .notchOnly || visible == .both } var intercepts: Bool { action == .intercept } } diff --git a/prototype/Core/NotchRoomPolicy.swift b/prototype/Core/NotchRoomPolicy.swift index 526e1a77..149822c8 100644 --- a/prototype/Core/NotchRoomPolicy.swift +++ b/prototype/Core/NotchRoomPolicy.swift @@ -30,8 +30,6 @@ enum NotchRoomPolicy { static let firstProbe: CGFloat = 3 static let probeStep: CGFloat = 12 static let probesPerSide = 10 - /// 一次量最多问几次:每边 10 个点 + 1 次读帧。 - static var queryBudget: Int { 2 * (probesPerSide + 1) } /// 刘海屏最小形:直径 36.67 的圆(IslandMetrics),和岛、彼此之间隔 6;最多两颗。 static let minimalGap: CGFloat = IslandMetrics.minimalGap diff --git a/prototype/Core/WS2DiagnosticTail.swift b/prototype/Core/WS2DiagnosticTail.swift index 326d7ff6..63758390 100644 --- a/prototype/Core/WS2DiagnosticTail.swift +++ b/prototype/Core/WS2DiagnosticTail.swift @@ -7,7 +7,6 @@ struct WS2DiagnosticTail: Sendable { private(set) var observedBytes: UInt64 = 0 private(set) var bytes = Data() init(capacity: Int) { self.capacity = min(65_536, max(0, capacity)) } - var droppedBytes: UInt64 { observedBytes >= UInt64(bytes.count) ? observedBytes - UInt64(bytes.count) : 0 } mutating func append(_ input: Data) { let (sum, overflow) = observedBytes.addingReportingOverflow(UInt64(input.count)) observedBytes = overflow ? .max : sum diff --git a/prototype/Effects/FoldImagePrep.swift b/prototype/Effects/FoldImagePrep.swift index 99fd0e06..906705cf 100644 --- a/prototype/Effects/FoldImagePrep.swift +++ b/prototype/Effects/FoldImagePrep.swift @@ -47,7 +47,6 @@ final class FoldImageCache: @unchecked Sendable { private var totalBytes = 0 private var hitCount = 0 private var storeCount = 0 - private var evictionCount = 0 init(capacity: Int = 4, budgetBytes: Int = 0, sizeOf: @escaping (Value) -> Int = { _ in 0 }) { self.capacity = max(1, capacity) @@ -82,7 +81,6 @@ final class FoldImageCache: @unchecked Sendable { private func drop(_ key: Key) { order.removeFirst() if let removed = entries.removeValue(forKey: key) { totalBytes -= sizeOf(removed) } - evictionCount &+= 1 } private func touch(_ key: Key) { @@ -115,10 +113,4 @@ final class FoldImageCache: @unchecked Sendable { defer { lock.unlock() } return storeCount } - - var evictions: Int { - lock.lock() - defer { lock.unlock() } - return evictionCount - } } diff --git a/prototype/Private/DockBridge.swift b/prototype/Private/DockBridge.swift index 341991f2..53b66d91 100644 --- a/prototype/Private/DockBridge.swift +++ b/prototype/Private/DockBridge.swift @@ -16,12 +16,6 @@ enum CrashTrap { (0...0xFFFF).contains(raw) ? CGKeyCode(raw) : fallback } - /// AX 返回的任意 CFTypeRef 先按类型 ID 校验;类型不对(CFString、CFNull……)返回 nil,不强转。 - static func axRef(_ value: CFTypeRef?, typeID: CFTypeID) -> CFTypeRef? { - guard let value, CFGetTypeID(value) == typeID else { return nil } - return value - } - /// 选屏:指定的屏优先,其次第一块与面板相交的,再次主屏,最后任意一块;屏幕全空时返回 nil。 static func pickScreen(preferred: S?, screens: [S], intersects: (S) -> Bool, main: S?) -> S? { preferred ?? screens.first(where: intersects) ?? main ?? screens.first diff --git a/prototype/WindowBrowser/WindowBrowserMetadataScheduler.swift b/prototype/WindowBrowser/WindowBrowserMetadataScheduler.swift index b7b4ef90..c803013e 100644 --- a/prototype/WindowBrowser/WindowBrowserMetadataScheduler.swift +++ b/prototype/WindowBrowser/WindowBrowserMetadataScheduler.swift @@ -144,5 +144,4 @@ final class WindowBrowserMetadataScheduler { } /// 诊断:当前仍占用的槽数(停止后应归零)。 - var activeSlotCount: Int { slots.count } } diff --git a/tests/CrashTrapTests.swift b/tests/CrashTrapTests.swift index fac5c1a7..49b38829 100644 --- a/tests/CrashTrapTests.swift +++ b/tests/CrashTrapTests.swift @@ -20,18 +20,6 @@ struct CrashTrapTests { expect(CrashTrap.hotKeyCode(70000, fallback: fallback) == fallback, "hotKeyCode falls back on 70000") expect(CrashTrap.hotKeyCode(0, fallback: fallback) == 0, "hotKeyCode keeps 0") - // AX 类型守卫:类型不符返回 nil,类型相符原样返回。 - let string = "not an AX value" as CFString - expect(CrashTrap.axRef(string, typeID: AXValueGetTypeID()) == nil, "axRef rejects CFString for AXValue") - expect(CrashTrap.axRef(kCFNull, typeID: AXUIElementGetTypeID()) == nil, "axRef rejects CFNull for AXUIElement") - expect(CrashTrap.axRef(nil, typeID: AXValueGetTypeID()) == nil, "axRef rejects nil") - var point = CGPoint(x: 1, y: 2) - if let value = AXValueCreate(.cgPoint, &point) { - expect(CrashTrap.axRef(value, typeID: AXValueGetTypeID()) != nil, "axRef accepts a real AXValue") - } else { - failures += 1; print("FAIL: AXValueCreate returned nil") - } - // 选屏:没有任何屏幕时返回 nil,而不是取 [0] 崩溃。 let none = CrashTrap.pickScreen(preferred: nil, screens: [Int](), intersects: { _ in false }, main: nil) expect(none == nil, "pickScreen returns nil for empty screens") diff --git a/tests/FoldPrepTests.swift b/tests/FoldPrepTests.swift index 4f25aa34..7231b7ce 100644 --- a/tests/FoldPrepTests.swift +++ b/tests/FoldPrepTests.swift @@ -104,7 +104,6 @@ import Foundation cache.store(3, for: k3) precondition(cache.count <= 2, "缓存占用不得超过容量") - precondition(cache.evictions == 1) precondition(cache.value(for: k1) == 1, "最近用过的还在") precondition(cache.value(for: k3) == 3) precondition(cache.value(for: k2) == nil, "最久未用的先被淘汰") @@ -131,11 +130,10 @@ import Foundation cache.store(6, for: key(2)) precondition(cache.value(for: key(1)) == nil, "超预算时最久未用的被逐出") precondition(cache.value(for: key(2)) == 6, "刚存进来的这条永不逐出") - precondition(cache.evictions == 1) // 小条目:预算内就不逐出(条数也没超)。 let roomy = FoldImageCache(capacity: 4, budgetBytes: 100, sizeOf: { $0 }) for width in 1...4 { roomy.store(2, for: key(width)) } - precondition(roomy.count == 4 && roomy.evictions == 0, "预算内的条目都留着") + precondition(roomy.count == 4, "预算内的条目都留着") // 同键覆盖:字节数按新值算,不叠加。 roomy.store(50, for: key(1)) roomy.store(50, for: key(1)) diff --git a/tests/GlobalInputFilterTests.swift b/tests/GlobalInputFilterTests.swift index 47bb427c..8251364b 100644 --- a/tests/GlobalInputFilterTests.swift +++ b/tests/GlobalInputFilterTests.swift @@ -405,7 +405,6 @@ struct GlobalInputFilterTests { let first = filter.addMonitor(.titleScroll) { _ in } expect(installed == [.titleScroll] && filter.tapFailed && !filter.isTapRunning, "tap creation fails: the feature falls back to its NSEvent global monitor") - expect((first as? GlobalInputMonitor)?.usesSharedTap == false, "the fallen-back monitor is not on the shared tap") let second = filter.addMonitor(.dockHover) { _ in } expect(installed == [.titleScroll, .dockHover] && attempts == 1, "after one failure later features go straight to NSEvent monitors") filter.removeMonitor(first) diff --git a/tests/NotchLevelLV4Tests.swift b/tests/NotchLevelLV4Tests.swift index 4513d541..9bb1a036 100644 --- a/tests/NotchLevelLV4Tests.swift +++ b/tests/NotchLevelLV4Tests.swift @@ -44,7 +44,7 @@ import Foundation // 全屏而且面板可见:拦,两耳在刘海上(只有我们)。 let visible = decide(isFullScreen: true, missionControl: false, visibility: .visible) - precondition(visible.intercepts && visible.reason == .fullScreenVisible && visible.notchDraws && visible.visible == .notchOnly) + precondition(visible.intercepts && visible.reason == .fullScreenVisible && visible.visible == .notchOnly) // 全屏但面板看不见、或者全屏状态都查不到:不拦,系统的提示照出。 let hidden = decide(isFullScreen: true, missionControl: false, visibility: .notVisible) precondition(!hidden.intercepts && hidden.reason == .fullScreenNotVisible && hidden.visible == .systemOnly) @@ -52,7 +52,7 @@ import Foundation precondition(!unknown.intercepts && unknown.reason == .fullScreenNotVisible) // 调度中心开着:不拦,不画;全屏可见也一样(调度中心先赢)。 let mission = decide(isFullScreen: true, missionControl: true, visibility: .visible) - precondition(!mission.intercepts && mission.reason == .missionControl && !mission.notchDraws) + precondition(!mission.intercepts && mission.reason == .missionControl && ![.notchOnly, .both].contains(mission.visible)) // 调度中心读不到当没开。 precondition(decide(isFullScreen: false, missionControl: nil, visibility: .no).reason == .ready) // 普通桌面:拦。 diff --git a/tests/NotchLevelSuppressionTests.swift b/tests/NotchLevelSuppressionTests.swift index 6ee7a719..ff5654a3 100644 --- a/tests/NotchLevelSuppressionTests.swift +++ b/tests/NotchLevelSuppressionTests.swift @@ -42,7 +42,7 @@ import Foundation for kind in [NotchLevelKind.volume, .brightness, .keyboardLight] { expect(decision(kind), .intercept, .us, .notchOnly, .ready, "row 1 \(kind)") } - precondition(decision().notchDraws && decision().intercepts) + precondition([.notchOnly, .both].contains(decision().visible) && decision().intercepts) } // 2 原生全屏且面板可见 → 拦;看不见 → 按调度中心那一行处理。 @@ -56,7 +56,7 @@ import Foundation static func row03_missionControl() { let d = decision { $0.missionControl = true } expect(d, .passThrough, .system, .systemOnly, .missionControl, "row 3") - precondition(!d.notchDraws) + precondition(![.notchOnly, .both].contains(d.visible)) } // 4 锁屏、登录窗口、屏保。 @@ -105,14 +105,14 @@ import Foundation static func row10_foreignHUD() { let d = decision { $0.foreignHUDRunning = true } expect(d, .passThrough, .other, .otherApp, .foreignHUD, "row 10") - precondition(!d.notchDraws) + precondition(![.notchOnly, .both].contains(d.visible)) } // 11 没允许辅助功能:只旁听,系统写,两个都在。 static func row11_noAccessibility() { let d = decision { $0.listener = .listenOnly } expect(d, .passThrough, .system, .both, .noAccessibility, "row 11") - precondition(d.notchDraws, "旁听时刘海照画") + precondition([.notchOnly, .both].contains(d.visible), "旁听时刘海照画") } // 12 这个 macOS 版本没核对过:只旁听,两个都在。 @@ -141,7 +141,7 @@ import Foundation // 15 WindowShade 崩溃或被强制退出:监听跟着进程没了,下一下就是系统的提示。 static func row15_processGone() { expect(S.processGone, .passThrough, .system, .systemOnly, .processGone, "row 15") - precondition(!S.processGone.notchDraws && !S.processGone.intercepts) + precondition(![.notchOnly, .both].contains(S.processGone.visible) && !S.processGone.intercepts) } // 设置关、手势层先来的手势:不在 15 行里,但稿里写了。 @@ -152,7 +152,7 @@ import Foundation for kind in [NotchLevelKind.volume, .brightness, .keyboardLight] { let d = decision(kind) { $0.useSystemPopups = true } expect(d, .passThrough, .system, .both, .systemPopups, "system popups \(kind)") - precondition(d.notchDraws && !d.intercepts, "system popups \(kind): 不拦,刘海跟着画") + precondition([.notchOnly, .both].contains(d.visible) && !d.intercepts, "system popups \(kind): 不拦,刘海跟着画") } // 默认(没开)还是拦:行为不变。 expect(decision { _ in }, .intercept, .us, .notchOnly, .ready, "default unchanged") diff --git a/tests/NotchRoomPolicyTests.swift b/tests/NotchRoomPolicyTests.swift index 507fdebd..05f7a3c4 100644 --- a/tests/NotchRoomPolicyTests.swift +++ b/tests/NotchRoomPolicyTests.swift @@ -62,7 +62,6 @@ struct NotchRoomPolicyTests { } t.expect(gaps, "任何长度:1–10 个点、递增、最后一个在尽头") t.expect(Policy.probeOffsets(reach: 1).isEmpty && Policy.probeOffsets(reach: 0).isEmpty, "没有那一段就不问") - t.expect(Policy.queryBudget == 22, "每边 10 个点 + 1 次读帧,共 22") t.section("LA1-02", "碰到第一项读帧,空位精确到 1 点;帧对不上就只算到确定空着的那一点") // 刘海右沿 x = 1000,往右量;15 点处问到一个图标,它从 1011.6 开始。 diff --git a/tests/Part6CoreTests.swift b/tests/Part6CoreTests.swift index 83f521e2..10feb52d 100644 --- a/tests/Part6CoreTests.swift +++ b/tests/Part6CoreTests.swift @@ -291,7 +291,7 @@ func lease(_ decision: WS2.LeaseDecision) throws -> WS2.LeaseHandle { t.run("DIAG01 bounded suffix and observed versus retained bytes") { var d = WS2DiagnosticTail(capacity:4); d.append(Data("abc".utf8)); d.append(Data("def".utf8)) t.check(d.bytes == Data("cdef".utf8),"suffix") - t.check(d.observedBytes == 6 && d.droppedBytes == 2,"observed not produced") + t.check(d.observedBytes == 6,"observed not produced") } t.run("DIAG02 control sequences cannot act as terminal escapes") { var d = WS2DiagnosticTail(capacity:200); d.append(Data("\u{001B}[2J\u{202E}abc\n".utf8)) diff --git a/tests/WindowBrowserTests.swift b/tests/WindowBrowserTests.swift index e17ae5df..879fa2f2 100644 --- a/tests/WindowBrowserTests.swift +++ b/tests/WindowBrowserTests.swift @@ -2754,7 +2754,7 @@ enum WindowBrowserTests { let latest = scheduler.complete(pid: 9101, jobID: reopened.jobID)! expect(latest.execution.begin(), "fresh demand survives completion of cancelled work") scheduler.cancelAll() - expect(latest.execution.isCancelled && scheduler.activeSlotCount == 0, + expect(latest.execution.isCancelled, "stopping cancels execution tickets as well as clearing scheduler bookkeeping") let terminated = scheduler.request(pid: 9101, requestID: request1, appInstance: app)! From b0fa1e4869cb092f861ae0fa5ab667a000fc550a Mon Sep 17 00:00:00 2001 From: Aaron <12213433+surfine@users.noreply.github.com> Date: Wed, 2 Dec 2026 13:20:34 +0800 Subject: [PATCH 5/9] =?UTF-8?q?refactor:=20=E5=88=A0=E6=8E=89=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E5=8F=A6=E6=9C=89=E5=AE=9E=E7=8E=B0=E6=88=96=E6=97=A0?= =?UTF-8?q?=E4=BA=BA=E8=B0=83=E7=94=A8=E7=9A=84=20helper=EF=BC=8C=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E6=94=B9=E9=AA=8C=E4=BA=A7=E5=93=81=E7=9C=9F=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E9=82=A3=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 28 处只给测试用的声明:产品已有另一套实现(菜单动态行、日程唤醒、键线渐变、状态文案、 刘海一排竖线等)或纯 helper(系统岛 tag、动画解析峰值、文件架名称省略等)。 能改验真实实现的断言改过去(quantity.drawing、dividerXs、SystemIslandPolicy.yields、 WindowBrowserStatusPresentationFactory、keyPress、SwellKick 采样峰值),其余随之删除。 Co-Authored-By: Claude Opus 5.5 --- prototype/App/AppNapActivity.swift | 10 ---- prototype/App/Motion.swift | 2 - prototype/App/NotchLeases.swift | 5 -- prototype/App/StandardMenu.swift | 9 ---- prototype/App/WelcomeFlow.swift | 3 -- prototype/Core/AwaySummary.swift | 3 -- prototype/Core/CalendarActivity.swift | 13 ----- prototype/Core/CarryShelfLayout.swift | 7 --- prototype/Core/ExplainerScenes+Common.swift | 7 --- prototype/Core/FlickMotion.swift | 5 -- prototype/Core/GuardRules.swift | 3 -- prototype/Core/IslandMetrics.swift | 3 -- prototype/Core/IslandMotionState.swift | 11 ----- prototype/Core/NotchLevelEars.swift | 1 - prototype/Core/NotchLevelGate.swift | 6 --- prototype/Core/NotchRow.swift | 47 ------------------- prototype/Core/NowPlayingCardLogic.swift | 5 -- prototype/Core/SystemIslandPolicy.swift | 4 -- prototype/Core/VoiceDraft.swift | 6 --- .../WindowBrowserDockDetection.swift | 6 --- .../WindowBrowser/WindowBrowserModels.swift | 13 ----- .../WindowBrowser/WindowBrowserViews.swift | 6 --- tests/AppNapActivityTests.swift | 4 -- tests/AwaySummaryTests.swift | 2 - tests/CalendarActivityTests.swift | 4 -- tests/ExplainerTests.swift | 4 +- tests/FileShelfCardTests.swift | 16 ------- tests/GuardRulesTests.swift | 1 - tests/IslandMotionStateTests.swift | 10 ---- tests/MenuStructureTests.swift | 16 +------ tests/MotionTokensTests.swift | 12 +---- tests/NotchActivityMotionTests.swift | 2 - tests/NotchIslandMetricsTests.swift | 4 +- tests/NotchLeaseHostTests.swift | 2 - tests/NotchLevelEarsTests.swift | 1 - tests/NotchLevelGateTests.swift | 1 - tests/NotchLevelStepTests.swift | 1 - tests/NotchRowMergeTests.swift | 12 ++--- tests/NotchSmallBehaviourTests.swift | 5 -- tests/NotchTokenTests.swift | 1 - tests/NowPlayingCardTests.swift | 4 +- tests/ProgressPartTests.swift | 12 ++--- tests/SystemIslandAndDisplayTests.swift | 4 +- tests/VoiceDraftTests.swift | 7 +-- tests/WelcomeFlowTests.swift | 1 - tests/WindowBrowserTests.swift | 34 +------------- 46 files changed, 23 insertions(+), 312 deletions(-) diff --git a/prototype/App/AppNapActivity.swift b/prototype/App/AppNapActivity.swift index 5163c679..06da912c 100644 --- a/prototype/App/AppNapActivity.swift +++ b/prototype/App/AppNapActivity.swift @@ -57,16 +57,6 @@ final class AppNapActivity: @unchecked Sendable { wlog("nap: base hold #\(state.baseBegins)") } - func releaseBase() { - lock.lock(); defer { lock.unlock() } - guard let token = base else { return } - base = nil - ProcessInfo.processInfo.endActivity(token) - if depth > 0 { - wlog("nap: base released while \(depth) interactive lease(s) are still held") - } - } - /// 交互作用域:里面这段时间要「计时器不被合并」。结束后一定还回去。 @discardableResult func interactive(_ name: String, _ body: () -> T) -> T { diff --git a/prototype/App/Motion.swift b/prototype/App/Motion.swift index 8f1cac06..bb2565ae 100644 --- a/prototype/App/Motion.swift +++ b/prototype/App/Motion.swift @@ -65,8 +65,6 @@ enum Motion { static func fadeOut(reduced: Bool = Motion.reduced) -> TimeInterval { reduced ? Spring.reducedNotch.response : out } - /// 退场里内容淡出后、收形状前的停顿;减少动态效果时没有这一拍(淡化和换形同时)。 - static func exitGap(reduced: Bool = Motion.reduced) -> TimeInterval { reduced ? 0 : gap } /// 第二层相对第一层晚多久;减少动态效果时不分层。 static func secondLayerLag(reduced: Bool = Motion.reduced) -> TimeInterval { reduced ? 0 : secondLayerDelay } } diff --git a/prototype/App/NotchLeases.swift b/prototype/App/NotchLeases.swift index 581ceccf..b5d9f61f 100644 --- a/prototype/App/NotchLeases.swift +++ b/prototype/App/NotchLeases.swift @@ -249,11 +249,6 @@ final class NotchLeaseHub { return lockScreenHeld[display] == owner } - /// 锁屏上这块屏现在是谁的(没锁时一律 nil)。 - func lockScreenOwner(of display: WS2.DisplayID) -> Owner? { - locked() ? lockScreenHeld[display] : nil - } - // MARK: - 申请与释放 /// 申请这块屏的展示权。同一主人重复申请是幂等的;被别人占着返回 false,调用方不要抢。 diff --git a/prototype/App/StandardMenu.swift b/prototype/App/StandardMenu.swift index 4b04d6f5..eabd42ef 100644 --- a/prototype/App/StandardMenu.swift +++ b/prototype/App/StandardMenu.swift @@ -253,15 +253,6 @@ enum StatusMenuLayout { ("ws2GoToCodingSession", "顶层", "进行中才出现的动态行"), ] - /// 动态行:番茄钟进行中一行,编程会话每个等你的会话一行;都没有就一行也没有。 - /// 有置顶窗口时再加一行「置顶的窗口(N)▸」。 - static func dynamicRowIDs(focusActive: Bool, waitingCodingSessions: Int, pinnedCount: Int = 0, - accessibilityOff: Bool = false) -> [String] { - (accessibilityOff ? [accessibilityRowID] : []) - + (focusActive ? [focusRowID] : []) + Array(repeating: codingRowID, count: max(0, waitingCodingSessions)) - + (pinnedCount > 0 ? [pinnedRowID] : []) - } - static func pinnedRowTitle(count: Int) -> String { WSL10n.text("menu.pinnedRowTitle", zh: "置顶的窗口(%@)", String(count)) } diff --git a/prototype/App/WelcomeFlow.swift b/prototype/App/WelcomeFlow.swift index e334f1c0..1a334d9b 100644 --- a/prototype/App/WelcomeFlow.swift +++ b/prototype/App/WelcomeFlow.swift @@ -221,9 +221,6 @@ enum WelcomeFlow { } } - /// A1 和 T 顶上有两块演示;A2、U1 没有。 - static func hasHero(step: Int) -> Bool { clamped(step) != permissionStep } - // MARK: 窗口高度的弹簧 /// 窗口高度逐帧由 FlickSpring.calm 驱动:不用贝塞尔。中途换目标(连点“继续”)时, diff --git a/prototype/Core/AwaySummary.swift b/prototype/Core/AwaySummary.swift index 09a6bee3..5dc7deb8 100644 --- a/prototype/Core/AwaySummary.swift +++ b/prototype/Core/AwaySummary.swift @@ -354,9 +354,6 @@ struct AwayList: Equatable, Sendable { return true } - /// 那一排收起了(指针移开、Esc、点别处):清掉。 - mutating func rowClosed() { cells = [] } - enum Tap: Equatable, Sendable { /// 没有反应:窄格、只是一句话的格子、已经不在了的格子、列表里没有的编号。 case refused diff --git a/prototype/Core/CalendarActivity.swift b/prototype/Core/CalendarActivity.swift index 318ae244..264ac54f 100644 --- a/prototype/Core/CalendarActivity.swift +++ b/prototype/Core/CalendarActivity.swift @@ -149,19 +149,6 @@ enum CalendarActivity { } return best } - - /// 下一个“该出现”的时刻:某个日程进入提前量的那一刻(严格晚于 now)。 - static func nextAppearance(from events: [CalendarEventInput], now: Date, - lead: LeadTime = .default) -> Date? { - var best: Date? - for e in events where isCountable(e) { - let t = e.start.addingTimeInterval(-lead.seconds) - guard t > now else { continue } - if let b = best, b <= t { continue } - best = t - } - return best - } } // MARK: 会议链接识别 diff --git a/prototype/Core/CarryShelfLayout.swift b/prototype/Core/CarryShelfLayout.swift index 7a86ebd8..2b7ef609 100644 --- a/prototype/Core/CarryShelfLayout.swift +++ b/prototype/Core/CarryShelfLayout.swift @@ -98,13 +98,6 @@ enum NotchSmallBehaviour { static let keyLineHiddenDepth: CGFloat = 3 static let keyLineFullDepth: CGFloat = 20 - /// 距顶边 depth 点处边线的可见度(0...1)。 - static func keyLineVisibility(atDepth depth: CGFloat) -> CGFloat { - guard depth > keyLineHiddenDepth else { return 0 } - guard depth < keyLineFullDepth else { return 1 } - return (depth - keyLineHiddenDepth) / (keyLineFullDepth - keyLineHiddenDepth) - } - /// 渐变停点(从图层顶到底,0 在顶):图层顶上有 overscan 点被岛裁掉。 static func keyLineLocations(layerHeight: CGFloat, overscan: CGFloat) -> [Double] { guard layerHeight > 0 else { return [0, 0, 1, 1] } diff --git a/prototype/Core/ExplainerScenes+Common.swift b/prototype/Core/ExplainerScenes+Common.swift index 4bda1260..ee9a4d2a 100644 --- a/prototype/Core/ExplainerScenes+Common.swift +++ b/prototype/Core/ExplainerScenes+Common.swift @@ -336,13 +336,6 @@ enum ExplainerScenes { // MARK: 带参数的通用场景 - /// 按下组合键,窗口挪到某一格(快捷键页全靠它)。keys:两枚键帽;target:目标外框(312 × 200 坐标)。 - static func windowToCell(id: String, keys: (ExplainerKeyCap, ExplainerKeyCap), target: CGRect, - description: SettingsText, arrow: String = "") -> ExplainerSpec { - keyPress(id: id, keys: keys, result: [.windowA: rect(target)], description: description, - arrows: ExplainerArrows(result: arrow, ghost: windowRect)) - } - /// 按组合键(稿里的 keysDo):等一下、按下、松开、结果停 1.1 s、重摆。result 是结果块的改动。 static func keyPress(id: String, keys: (ExplainerKeyCap, ExplainerKeyCap), initial: ExplainerState? = nil, result: ExplainerState, easing: ExplainerEasing = .settle, diff --git a/prototype/Core/FlickMotion.swift b/prototype/Core/FlickMotion.swift index ec8e457d..9f0e14eb 100644 --- a/prototype/Core/FlickMotion.swift +++ b/prototype/Core/FlickMotion.swift @@ -264,11 +264,6 @@ struct FlickSpring: Equatable { state(displacement: 0, velocity: v0, at: max(0, t)).x } - func criticalKickPeak(velocity v0: Double) -> (time: Double, displacement: Double) { - let time = response / (2 * Double.pi) - return (time, kickDisplacement(velocity: v0, at: time)) - } - /// 从踢出那一帧采样到回到终点附近。点与点之间只做线性插值:曲线是弹簧的解,不再套一条贝塞尔。 func kickSamples(velocity v0: Double, step: Double = 1.0 / 120, rest: Double = 0.2) -> [(time: Double, displacement: Double)] { var samples: [(time: Double, displacement: Double)] = [(0, 0)] diff --git a/prototype/Core/GuardRules.swift b/prototype/Core/GuardRules.swift index e6566a70..a8b96237 100644 --- a/prototype/Core/GuardRules.swift +++ b/prototype/Core/GuardRules.swift @@ -23,9 +23,6 @@ enum NotchPushUp { static func commits(travel: CGFloat, velocity: CGFloat) -> Bool { travel >= commitTravel && projectedTravel(travel: travel, velocity: velocity) >= commitProjected } - - /// 推到这里岛上才出现那一行提示;拉回线下就收掉。 - static func showsHint(travel: CGFloat) -> Bool { travel >= commitTravel } } /// 拖着窗口或文件进了刘海那块区域,停满 `MotionHold.dropDwellSeconds` 才亮起落点;快速划过不亮。 diff --git a/prototype/Core/IslandMetrics.swift b/prototype/Core/IslandMetrics.swift index a37b5788..52692222 100644 --- a/prototype/Core/IslandMetrics.swift +++ b/prototype/Core/IslandMetrics.swift @@ -28,8 +28,6 @@ enum IslandMetrics { /// 紧凑每耳宽的上限(主体 + 肩,iOS 52.33 至 62.33 取下限)。刘海屏的耳按内容定宽(`compactBody`),这里是天花板。 static let compactEarWidth: CGFloat = 52.33 - /// 紧凑每耳宽的上限(音量、亮度的耳以后照它收窄;这一批不动那两耳)。 - static let compactEarMaxWidth: CGFloat = 62.33 /// iOS 紧凑高 36.67(HIG 的数,iPhone 上浮着的岛)。刘海屏的两耳不用它:耳高 = 刘海高(`compactEarsRect`), /// 画 36.67 会在刘海底角旁鼓出 3.17 的台阶(《两耳的岛》对照账第 2 行)。留作参考与编程会话卡的比例尺。 static let compactHeight: CGFloat = 36.67 @@ -88,7 +86,6 @@ enum IslandMetrics { /// 刘海屏展开宽(iOS 上限 408,2026-11-05 回到 408):刘海占了 185,左右那一条各剩 97.5 能放东西。 /// 外接屏照 11-04 用 `iosExpandedWidth` 371,按屏取用 `expandedWidth(virtual:)`。 static let expandedWidth: CGFloat = 408 - static let expandedMinimumWidth: CGFloat = 371 /// 那一排、提醒多宽:刘海屏 408,没有刘海的外接屏 371。 static func expandedWidth(virtual: Bool) -> CGFloat { virtual ? iosExpandedWidth : expandedWidth } /// 提醒的总高(从屏幕顶边量起)。内容多时可到 `expandedMaximumHeight`。 diff --git a/prototype/Core/IslandMotionState.swift b/prototype/Core/IslandMotionState.swift index a6597bf6..fe48924b 100644 --- a/prototype/Core/IslandMotionState.swift +++ b/prototype/Core/IslandMotionState.swift @@ -16,17 +16,6 @@ enum IslandMotionState: CaseIterable { case response case transient case prompt - - var systemTag: Int { - switch self { - case .listening: return 0 - case .thinking: return 1 - case .response: return 2 - case .transient: return 3 - case .hidden: return 4 - case .prompt: return 5 - } - } } /// 这一刻是扩张、收合,还是同状态更新;目前只用来标记 hidden,令牌选择见 Motion.notchSpring。 diff --git a/prototype/Core/NotchLevelEars.swift b/prototype/Core/NotchLevelEars.swift index c4f38966..d2b090ef 100644 --- a/prototype/Core/NotchLevelEars.swift +++ b/prototype/Core/NotchLevelEars.swift @@ -18,7 +18,6 @@ enum NotchLevelEars { static let barThickness: Double = NotchLevelStep.barThickness /// 条离刘海、离外沿。 static let barNotchGap: Double = 8 - static let barOuterInset: Double = 14 /// 比这个宽的耳朵不画肩(令牌 §5.1 S3),肩跟着同一根弹簧收到 0(稿上“前 24 点”就是这一段行程);紧凑两耳最宽 34,两耳 76 一定比它宽。 static let shoulderlessAbove: Double = 34 diff --git a/prototype/Core/NotchLevelGate.swift b/prototype/Core/NotchLevelGate.swift index 49dab988..f1d62e92 100644 --- a/prototype/Core/NotchLevelGate.swift +++ b/prototype/Core/NotchLevelGate.swift @@ -128,12 +128,6 @@ struct NotchLevelGate: Sendable { return .show } - /// 刚按过这一类键(亮度只在这段时间里去读,平时不轮询)。 - func recentlyPressed(_ kind: NotchLevelKind, at time: TimeInterval) -> Bool { - guard let pressed = lastPress[kind] else { return false } - return time >= pressed && time - pressed <= Self.window - } - private static func blocked(_ context: Context) -> Reason? { if context.locked { return .locked } if context.missionControl { return .missionControl } diff --git a/prototype/Core/NotchRow.swift b/prototype/Core/NotchRow.swift index d9dede42..82508244 100644 --- a/prototype/Core/NotchRow.swift +++ b/prototype/Core/NotchRow.swift @@ -88,26 +88,12 @@ enum NotchRow { } return result } - /// 第一条竖线的左边缘;没有竖线是 nil。 - var dividerX: Double? { dividerXs.first } /// 岛至少多宽:内容加两边的边距,不小于 `minimum`。 func islandWidth(minimum: Double) -> Double { max(minimum, count == 0 ? 0 : contentWidth + 2 * edgeMargin) } /// 内容在一排里居中时的左边缘。 func leading(inRowWidth width: Double) -> Double { (width - contentWidth) / 2 } - /// 第一条竖线的外框:x 在一排里的位置,y 与高度按格子的竖直范围算(上下各留 10)。 - func dividerFrame(inRowWidth width: Double, cellsMinY: Double, cellsHeight: Double) - -> (x: Double, y: Double, width: Double, height: Double)? { - dividerFrames(inRowWidth: width, cellsMinY: cellsMinY, cellsHeight: cellsHeight).first - } - /// 每一条竖线的外框。 - func dividerFrames(inRowWidth width: Double, cellsMinY: Double, cellsHeight: Double) - -> [(x: Double, y: Double, width: Double, height: Double)] { - dividerXs.map { - (leading(inRowWidth: width) + $0, cellsMinY + dividerInset, dividerWidth, max(0, cellsHeight - 2 * dividerInset)) - } - } } /// 按数量排版,不裁。 @@ -237,8 +223,6 @@ enum NotchRow { } return quantity.valueText(writesPercent: kind.writesPercent) } - /// 这个格子该怎么画量。 - var quantityDrawing: NotchProgressDrawing { quantity.drawing } /// 等你的会话格:键盘焦点默认落在它上面(NotchTile.waiting)。 var waiting: Bool { phase == .waiting } @@ -494,8 +478,6 @@ enum FileShelfCardLayout { static func documentWidth(count: Int) -> Double { count <= 0 ? width : max(width, 2 * margin + Double(count) * tileWidth + Double(count - 1) * tileGap) } - /// 一屏放几格(含半格):稿里“一屏放六格半”。 - static var visibleTiles: Double { (width - 2 * margin + tileGap) / (tileWidth + tileGap) } /// 键盘选到第 index 格时,横向滚动到哪里才看得全它(原位置够用就不动)。 static func scrollOffset(toReveal index: Int, current: Double, viewport: Double = width) -> Double { let left = tileX(index) - margin @@ -506,35 +488,6 @@ enum FileShelfCardLayout { } } -/// 格子上的名字:最多两行,中间省略,保留扩展名;读屏念全名。 -enum FileShelfTileName { - /// 一行大约放 12 个西文字符或 6 个汉字;两行一共 24 个“字宽”。 - static let units = 22 - static let staleUnits = 10 - - static func width(of c: Character) -> Int { c.unicodeScalars.contains { $0.value >= 0x2E80 } ? 2 : 1 } - static func width(of s: String) -> Int { s.reduce(0) { $0 + width(of: $1) } } - - static func display(_ name: String, units limit: Int = units) -> String { - guard width(of: name) > limit else { return name } - let dot = name.lastIndex(of: ".") - var ext = "", base = name - if let dot, dot != name.startIndex, name.distance(from: dot, to: name.endIndex) <= 6 { - ext = String(name[dot...]); base = String(name[.. head { break }; h.append(c); hw += w } - var t = "", tw = 0 - for c in base.reversed() { let w = width(of: c); if tw + w > tail { break }; t.insert(c, at: t.startIndex); tw += w } - return h + "…" + t + ext - } - - /// 失效的格:名字只留短短一行,下面写原因。 - static func stale(_ name: String, reason: String) -> String { display(name, units: staleUnits) + "\n" + reason } -} - /// 拖出:默认拷贝,原文件不动、这一格留着;按住 ⌘ 移动(和访达一样),移完这一格离开。 enum FileShelfDrag { enum Operation: Equatable, Sendable { case copy, move } diff --git a/prototype/Core/NowPlayingCardLogic.swift b/prototype/Core/NowPlayingCardLogic.swift index 66053790..d53a6adb 100644 --- a/prototype/Core/NowPlayingCardLogic.swift +++ b/prototype/Core/NowPlayingCardLogic.swift @@ -467,11 +467,6 @@ enum AudioOutputList { /// 当前设备是哪一类;列表里没有打勾的就是 nil。 static func currentKind(in routes: [AudioOutputRoute]) -> AudioOutputKind? { routes.first(where: \.isCurrent)?.kind } - /// 控制行右端的图标跟着当前设备;读不到当前设备时用扬声器。 - static func currentSymbol(in routes: [AudioOutputRoute]) -> String { - (currentKind(in: routes) ?? .speaker).symbol - } - /// 读屏念的话:“播放到 AirPods Pro”。 static func spokenSelection(_ route: AudioOutputRoute) -> String { WSL10n.text("nowPlaying.playToName", zh: "播放到 \(route.name)") } } diff --git a/prototype/Core/SystemIslandPolicy.swift b/prototype/Core/SystemIslandPolicy.swift index 3273086d..e148068a 100644 --- a/prototype/Core/SystemIslandPolicy.swift +++ b/prototype/Core/SystemIslandPolicy.swift @@ -7,10 +7,6 @@ enum SystemIslandPolicy { /// `hw.model` 的值,例如 "Mac16,1"。真机量过再填;空表 = 没有任何一台让开。 static let modelIdentifiers: Set = [] - static func hasSystemIsland(modelIdentifier: String) -> Bool { - modelIdentifiers.contains(modelIdentifier) - } - /// 这块屏的面板要不要让开:只有内建屏、并且这台机器有系统的岛。 static func yields(isBuiltin: Bool, modelIdentifier: String, in list: Set? = nil) -> Bool { guard isBuiltin else { return false } diff --git a/prototype/Core/VoiceDraft.swift b/prototype/Core/VoiceDraft.swift index f7e74890..388b3f46 100644 --- a/prototype/Core/VoiceDraft.swift +++ b/prototype/Core/VoiceDraft.swift @@ -96,10 +96,4 @@ struct VoiceDraftSession: Equatable, Sendable { draft = nil failure = nil } - - /// 把草稿交给输入框后调用:草稿本身由页面负责采用/发送。 - mutating func clearDraft() { - guard phase == .idle else { return } - draft = nil - } } diff --git a/prototype/WindowBrowser/WindowBrowserDockDetection.swift b/prototype/WindowBrowser/WindowBrowserDockDetection.swift index 7b3214dc..e8dd37fb 100644 --- a/prototype/WindowBrowser/WindowBrowserDockDetection.swift +++ b/prototype/WindowBrowser/WindowBrowserDockDetection.swift @@ -49,12 +49,6 @@ enum WindowBrowserDockRegion { guard let screen = screenContaining(point, screens: screens) else { return false } return isInEdgeBand(point, screen: screen.frame, band: edgeBand) } - - /// 图标命中区域:只在指针仍位于该图标(含容差)内时才允许产出目标。 - static func iconHitContains(_ point: NSPoint, iconFrame: NSRect, - tolerance: CGFloat) -> Bool { - iconFrame.insetBy(dx: -tolerance, dy: -tolerance).contains(point) - } } struct WindowBrowserDetectionRequest: Equatable { diff --git a/prototype/WindowBrowser/WindowBrowserModels.swift b/prototype/WindowBrowser/WindowBrowserModels.swift index b9f02778..31f6556e 100644 --- a/prototype/WindowBrowser/WindowBrowserModels.swift +++ b/prototype/WindowBrowser/WindowBrowserModels.swift @@ -47,19 +47,6 @@ struct WindowBrowserRequestID: Hashable, Comparable { } } -/// 当前面板会话的所有者令牌:请求代数 + 目标应用实例 + 目标代数。 -/// 异步结果回来时三者都要核对;仅核对 PID 不够,A→B→A 的旧结果必须被挡住。 -struct WindowBrowserTargetToken: Hashable { - let requestID: WindowBrowserRequestID - let application: ApplicationInstanceKey? - let targetGeneration: UInt64 - - func accepts(application: ApplicationInstanceKey, targetGeneration: UInt64) -> Bool { - guard let current = self.application else { return false } - return current == application && self.targetGeneration == targetGeneration - } -} - // MARK: - 状态与能力 enum WindowBrowserDiscoveryConfidence: Int, Comparable { diff --git a/prototype/WindowBrowser/WindowBrowserViews.swift b/prototype/WindowBrowser/WindowBrowserViews.swift index 472aeac3..3790b257 100644 --- a/prototype/WindowBrowser/WindowBrowserViews.swift +++ b/prototype/WindowBrowser/WindowBrowserViews.swift @@ -232,9 +232,3 @@ enum WindowBrowserSurfaceStyle { // MARK: - 状态文案兼容入口 -enum WindowBrowserCardViewStatus { - /// 旧调用点保留:返回不含 emoji 的状态文案。 - static func text(_ record: WindowRecord) -> String { - WindowBrowserStatusPresentationFactory.make(record: record, hasSnapshot: false).text - } -} diff --git a/tests/AppNapActivityTests.swift b/tests/AppNapActivityTests.swift index 50f80d39..3717d2c4 100644 --- a/tests/AppNapActivityTests.swift +++ b/tests/AppNapActivityTests.swift @@ -24,10 +24,6 @@ struct AppNapActivityTests { activity.holdBase() expect(activity.snapshot.baseBegins == 1, "重复拿基础声明只算一次(\(activity.snapshot.baseBegins))") expect(activity.snapshot.baseHeld, "基础声明已持有") - activity.releaseBase() - expect(!activity.snapshot.baseHeld, "还回去之后不再持有") - activity.holdBase() - expect(activity.snapshot.baseBegins == 2, "再拿一次是第二次(重取计数可观测)") // 交互租约:作用域进出一对,返回值原样带出来。 let value = activity.interactive("tap-decision") { 7 } diff --git a/tests/AwaySummaryTests.swift b/tests/AwaySummaryTests.swift index 2f430cb0..c2df2743 100644 --- a/tests/AwaySummaryTests.swift +++ b/tests/AwaySummaryTests.swift @@ -173,8 +173,6 @@ struct AwaySummaryTests { var opened = AwayList(mixed)! opened.rowOpened() expect(!opened.alertEnded() && !opened.isEmpty, "opening the row stops the timer") - opened.rowClosed() - expect(opened.isEmpty, "closing the row clears the list") let backID = list.cells[2].id expect(list.tap(backID, probe: probe()) == .perform(.backToPlace(7)) && list.cells.count == 3 && list.windowIDs.isEmpty, "back to place removes only that cell") diff --git a/tests/CalendarActivityTests.swift b/tests/CalendarActivityTests.swift index 7bee5bd7..790e59b3 100644 --- a/tests/CalendarActivityTests.swift +++ b/tests/CalendarActivityTests.swift @@ -149,10 +149,6 @@ struct CalendarActivityTests { expect(CalendarActivity.nextWake(from: [skipped, ev("x", start: 2000)], now: at(0)) == at(1700), "已拒绝不参与") let farPlan = [ev("farp", start: 30 * 3600)] expect(CalendarActivity.nextWake(from: farPlan, now: at(0)) == at(6 * 3600), "24 小时外的等进入范围时重查") - expect(CalendarActivity.nextAppearance(from: plan, now: at(0)) == at(700), "下一次出现") - expect(CalendarActivity.nextAppearance(from: plan, now: at(700)) == nil, "已在显示的不算") - expect(CalendarActivity.nextAppearance(from: [skipped], now: at(0)) == nil, "过滤掉的不出现") - expect(CalendarActivity.nextAppearance(from: plan, now: at(0), lead: .fifteen) == at(100), "提前量变了出现时刻也变") if failures == 0 { print("CalendarActivityTests: all passed") } else { print("CalendarActivityTests: \(failures) failed"); exit(1) } } diff --git a/tests/ExplainerTests.swift b/tests/ExplainerTests.swift index 7f804c88..e9b8c549 100644 --- a/tests/ExplainerTests.swift +++ b/tests/ExplainerTests.swift @@ -105,8 +105,8 @@ struct ExplainerTests { // 动法只管这一帧:叠完之后不留到下一帧。 expect(ExplainerScenes.swipeUpRoll.keyState.values.allSatisfy { $0.easing == nil }, "per-element easing does not stick to state") // 通用带参数的场景。 - let cell = ExplainerScenes.windowToCell(id: "leftHalf", keys: (ExplainerKeyCap(symbol: "⌃⌘", caption: "control command"), ExplainerKeyCap(symbol: "←", caption: "")), - target: ExplainerScenes.leftHalf, description: ExplainerScenes.swipeSideHalf.description) + let cell = ExplainerScenes.keyPress(id: "leftHalf", keys: (ExplainerKeyCap(symbol: "⌃⌘", caption: "control command"), ExplainerKeyCap(symbol: "←", caption: "")), + result: [.windowA: ExplainerScenes.rect(ExplainerScenes.leftHalf)], description: ExplainerScenes.swipeSideHalf.description) expect(cell.keyState[.windowA]?.w == 153 && cell.keyState[.key1]?.keyCap?.symbol == "⌃⌘", "window-to-cell ends on the target frame") // 0.14 + 0.4 + 0.2 + 0.08 + (0.495 + 1.1) + 0.32 = 2.735 expect(near(cell.timeline.loopDuration, 2.735), "key press loop is 2.735 s (got \(cell.timeline.loopDuration))") diff --git a/tests/FileShelfCardTests.swift b/tests/FileShelfCardTests.swift index 9ad294ab..60ba2fad 100644 --- a/tests/FileShelfCardTests.swift +++ b/tests/FileShelfCardTests.swift @@ -50,28 +50,12 @@ struct FileShelfCardTests { t.expect(L.contentHeight(hasNotch: true) + L.referenceStrip == L.height, "刘海条加内容高 = 160") t.expect(L.tilesTop(hasNotch: true) + L.tileHeight + 14.5 == L.contentHeight(hasNotch: true), "格子下面空 14.5,和稿一致") t.expect(L.tileX(0) == 14 && L.tileX(1) == 98, "最新的在最左,一格 84") - t.expect(L.visibleTiles > 6 && L.visibleTiles < 7, "一屏放六格多") t.expect(L.documentWidth(count: 0) == 560 && L.documentWidth(count: 3) == 560 && L.documentWidth(count: 24) == 2 * 14 + 24 * 76 + 23 * 8, "文档宽:少了不缩,多了横着滑") t.expect(L.scrollOffset(toReveal: 0, current: 300) == 0 && L.scrollOffset(toReveal: 10, current: 0) > 0 && L.scrollOffset(toReveal: 2, current: 0) == 0, "键盘选到哪格就滚到看得全") - // MARK: 名字 - - t.section("FS04-04", "名字最多两行,中间省略,保留扩展名") - t.expect(FileShelfTileName.display("报价单.pdf") == "报价单.pdf", "短名字原样") - let long = FileShelfTileName.display("2026年第三季度销售数据汇总与分析报告终稿.pdf") - t.expect(long.hasSuffix(".pdf") && long.contains("…") && FileShelfTileName.width(of: long) <= FileShelfTileName.units + 1, - "长名字中间省略并留扩展名(\(long))") - let latin = FileShelfTileName.display("Screenshot 2026-10-09 at 14.20.33.png") - t.expect(latin.hasSuffix(".png") && latin.hasPrefix("Screen") && latin.contains("…"), "西文长名字(\(latin))") - let noExt = FileShelfTileName.display("一个没有扩展名但是很长很长很长的文件夹名字") - t.expect(noExt.contains("…") && FileShelfTileName.width(of: noExt) <= FileShelfTileName.units + 1, "没有扩展名也省略(\(noExt))") - t.expect(FileShelfTileName.display(".gitignore_but_a_really_long_hidden_file_name").contains("…"), "点开头的不当扩展名") - t.expect(FileShelfTileName.stale("报价单终稿版本.pdf", reason: "在废纸篓里").hasSuffix("\n在废纸篓里"), "灰格:名字一行,下面写原因") - t.expect(FileShelfTileName.stale("a.txt", reason: "硬盘没接上") == "a.txt\n硬盘没接上", "短名字不省略") - // MARK: 拖出 t.section("FS04-05", "拖出:默认拷贝,按住 ⌘ 移动;只有移动才让这一格离开") diff --git a/tests/GuardRulesTests.swift b/tests/GuardRulesTests.swift index faa1a779..e55631b8 100644 --- a/tests/GuardRulesTests.swift +++ b/tests/GuardRulesTests.swift @@ -35,7 +35,6 @@ struct GuardRulesTests { expect(P.commits(travel: 95, velocity: 400), "95 pt with a decisive upward release commits") expect(P.commits(travel: 130, velocity: 0), "a long slow push past 120 pt commits") expect(P.projectedTravel(travel: 90, velocity: 303) >= 120 - 0.5, "projection uses the pull-down helper (r = 0.99)") - expect(!P.showsHint(travel: 89.9) && P.showsHint(travel: 90), "the hint appears exactly at the threshold and goes away below it") // 2. 落点停留 0.15 秒。 do { diff --git a/tests/IslandMotionStateTests.swift b/tests/IslandMotionStateTests.swift index 473bbecb..266f5ea5 100644 --- a/tests/IslandMotionStateTests.swift +++ b/tests/IslandMotionStateTests.swift @@ -19,16 +19,6 @@ struct IslandMotionStateTests { static func main() { var t = TestSuite("C02") - t.section("C02-01", "27.3 六态 tag:0 listening、1 thinking、2 response、3 transient、4 hidden、5 prompt") - t.expect(IslandMotionState.listening.systemTag == 0, "listening = 0") - t.expect(IslandMotionState.thinking.systemTag == 1, "thinking = 1") - t.expect(IslandMotionState.response.systemTag == 2, "response = 2") - t.expect(IslandMotionState.transient.systemTag == 3, "transient = 3") - t.expect(IslandMotionState.hidden.systemTag == 4, "hidden = 4") - t.expect(IslandMotionState.prompt.systemTag == 5, "prompt = 5") - let tags = IslandMotionState.allCases.map(\.systemTag) - t.expect(tags.count == 6 && Set(tags).count == 6 && tags.sorted() == Array(0...5), "六个 tag 不重不漏") - t.section("C02-02", "形状 → 状态:与 NotchController.motionShape() 的优先序一致") let table: [(Motion.NotchShape, IslandMotionState, Motion.Spring, String)] = [ (.minimum, .hidden, .islandHidden, "hidden"), diff --git a/tests/MenuStructureTests.swift b/tests/MenuStructureTests.swift index cb885233..96237419 100644 --- a/tests/MenuStructureTests.swift +++ b/tests/MenuStructureTests.swift @@ -42,29 +42,17 @@ struct MenuStructureTests { let plain = makeMenu(dynamic: [], hiddenExtras: 2) check(StatusMenuLayout.visibleFixedIDs(in: plain) == ids, "固定项按顺序可见") let busy = makeMenu( - dynamic: StatusMenuLayout.dynamicRowIDs(focusActive: true, waitingCodingSessions: 2), hiddenExtras: 2) + dynamic: [StatusMenuLayout.focusRowID, StatusMenuLayout.codingRowID, StatusMenuLayout.codingRowID], hiddenExtras: 2) check(StatusMenuLayout.visibleFixedIDs(in: busy) == ids, "有动态行时固定项仍是同样 9 项") check(busy.items.count == plain.items.count + 4, "动态行 3 条加 1 条分隔线") - // 动态行只在进行中出现。 - check(StatusMenuLayout.dynamicRowIDs(focusActive: false, waitingCodingSessions: 0).isEmpty, "没有进行中就没有动态行") - check(StatusMenuLayout.dynamicRowIDs(focusActive: true, waitingCodingSessions: 0) - == [StatusMenuLayout.focusRowID], "番茄钟进行中一行") - check(StatusMenuLayout.dynamicRowIDs(focusActive: false, waitingCodingSessions: 2) - == [StatusMenuLayout.codingRowID, StatusMenuLayout.codingRowID], "每个等你的会话一行") - // 有置顶窗口:多一行动态行,固定项不变;没有则不在。 - check(StatusMenuLayout.dynamicRowIDs(focusActive: false, waitingCodingSessions: 0, pinnedCount: 0).isEmpty, - "没有置顶就没有置顶行") - let pinnedIDs = StatusMenuLayout.dynamicRowIDs(focusActive: false, waitingCodingSessions: 0, pinnedCount: 2) - check(pinnedIDs == [StatusMenuLayout.pinnedRowID], "有置顶多一行") + let pinnedIDs = [StatusMenuLayout.pinnedRowID] let withPins = makeMenu(dynamic: pinnedIDs, hiddenExtras: 2) check(StatusMenuLayout.visibleFixedIDs(in: withPins) == ids, "有置顶时顶层仍是同样 9 项") check(withPins.items.count == plain.items.count + 2, "置顶行加分隔线") check(StatusMenuLayout.pinnedRowTitle(count: 2) == "置顶的窗口(2)", "置顶行名") // 辅助功能没开:最上面多一行,不算在固定 9 项里。 - let axIDs = StatusMenuLayout.dynamicRowIDs(focusActive: true, waitingCodingSessions: 0, accessibilityOff: true) - check(axIDs.first == StatusMenuLayout.accessibilityRowID && axIDs.count == 2, "辅助功能那一行排在动态行最前") let withAX = makeMenu(dynamic: [StatusMenuLayout.accessibilityRowID], hiddenExtras: 2) check(StatusMenuLayout.visibleFixedIDs(in: withAX) == StatusMenuLayout.visibleFixedIDs(in: plain), "辅助功能那一行不占固定 9 项") diff --git a/tests/MotionTokensTests.swift b/tests/MotionTokensTests.swift index c99623a7..51d9862f 100644 --- a/tests/MotionTokensTests.swift +++ b/tests/MotionTokensTests.swift @@ -58,21 +58,13 @@ struct MotionTokensTests { // 收进刘海时鼓一下:calm 被踢一脚,峰值由临界阻尼解出来,不写死在关键帧上。 let swell = SwellKick.spring expect(swell.dampingRatio == 1 && swell.response == 0.34, "the swell keeps its own 0.34 (critical) after calm went official") - let widthPeak = swell.criticalKickPeak(velocity: SwellKick.widthVelocity) - let heightPeak = swell.criticalKickPeak(velocity: SwellKick.heightVelocity) - expect(abs(widthPeak.time - 0.054) < 0.002 && abs(heightPeak.time - widthPeak.time) < 1e-9, - "both axes peak together near 0.05s (got \(widthPeak.time))") - expect(abs(widthPeak.displacement - 14) < 0.15, - "700 pt/s on calm peaks near 14 pt (got \(widthPeak.displacement))") - expect(abs(heightPeak.displacement - 6) < 0.1, - "300 pt/s on calm peaks near 6 pt (got \(heightPeak.displacement))") let kick = SwellKick.samples() let sampledWidth = kick.map(\.width).max() ?? 0 let sampledHeight = kick.map(\.height).max() ?? 0 expect(kick.first?.width == 0 && kick.first?.height == 0 && kick.last?.width == 0 && kick.last?.height == 0, "the swell curve starts and ends at rest") - expect(abs(sampledWidth - widthPeak.displacement) < 0.2 && abs(sampledHeight - heightPeak.displacement) < 0.2, - "sampled frames reach the analytic peak (got \(sampledWidth), \(sampledHeight))") + expect(abs(sampledWidth - 14) < 0.3 && abs(sampledHeight - 6) < 0.25, + "700 / 300 pt/s on calm peak near 14 / 6 pt (got \(sampledWidth), \(sampledHeight))") if failures == 0 { print("PASS: motion tokens match the values they were collected from") diff --git a/tests/NotchActivityMotionTests.swift b/tests/NotchActivityMotionTests.swift index c4334926..57b32af4 100644 --- a/tests/NotchActivityMotionTests.swift +++ b/tests/NotchActivityMotionTests.swift @@ -18,7 +18,6 @@ struct NotchActivityMotionTests { t.section("C03-02", "要你注意的:录音 → prompt(islandPrompt)") t.expect(NotchActivityKind.recording.motionState == .prompt, "recording → prompt") - t.expect(NotchActivityKind.recording.motionState.systemTag == 5, "prompt 是 tag 5") t.section("C03-03", "有内容可看的:音乐/计时器/番茄钟/路线 → response") for kind in [NotchActivityKind.music, .timer, .focus, .route] { @@ -41,7 +40,6 @@ struct NotchActivityMotionTests { let states = NotchActivityKind.allCases.map(\.motionState) t.expect(!states.contains(.listening), "没有 listening") t.expect(states.contains(.prompt), "prompt 只来自录音(等你的会话在 activity 层)") - t.expect(Set(states.map(\.systemTag)) == Set([1, 2, 3, 5]), "落在 thinking/response/transient/prompt") t.finish() } diff --git a/tests/NotchIslandMetricsTests.swift b/tests/NotchIslandMetricsTests.swift index 627a6dd8..9c828ad0 100644 --- a/tests/NotchIslandMetricsTests.swift +++ b/tests/NotchIslandMetricsTests.swift @@ -11,10 +11,10 @@ struct NotchIslandMetricsTests { t.section("IM-01", "暂定尺寸(iOS):紧凑耳上限 52.33,iOS 紧凑高 36.67,小圆 36.67,展开 408(刘海屏)/ 371(外接屏),提醒 84,那一排 160,格 104") t.expect(M.compactEarWidth == 52.33 && M.compactHeight == 36.67, "紧凑每耳上限 52.33;iOS 紧凑高 36.67 只作参考") - t.expect(M.compactEarWidth >= 52.33 && M.compactEarWidth <= M.compactEarMaxWidth && M.compactEarMaxWidth == 62.33, "耳宽在 52.33…62.33 内") + t.expect(M.compactEarWidth == 52.33, "耳宽 52.33") t.expect(abs(36.67 / 2 /* deprecated compactCornerRadius */ - 18.335) < 0.0001, "紧凑底角 = 高的一半") t.expect(M.minimalDiameter == 36.67 && M.minimalDiameter == M.compactHeight, "小圆直径 36.67,和紧凑同高") - t.expect(M.expandedWidth == 408 && M.expandedMinimumWidth == 371, "展开宽 371…408,刘海屏取 408") + t.expect(M.expandedWidth == 408, "刘海屏展开宽 408") t.expect(M.expandedWidth(virtual: false) == 408 && M.expandedWidth(virtual: true) == 371 && M.iosExpandedWidth == 371, "按屏取:刘海屏 408(11-05),外接屏 371(11-04 的 iOS 尺寸)") t.expect(M.alertHeight == 84 && M.teachingHeight == 112 && M.expandedMaximumHeight == 160, "提醒 84、教手势 112、上限 160") diff --git a/tests/NotchLeaseHostTests.swift b/tests/NotchLeaseHostTests.swift index b501dab8..7a6687bc 100644 --- a/tests/NotchLeaseHostTests.swift +++ b/tests/NotchLeaseHostTests.swift @@ -307,13 +307,11 @@ import Cocoa expect(hub.acquireLockScreen(.faceRecognition, on: main), "锁着:认你拿到这块屏的锁屏租约") expect(hub.acquireLockScreen(.faceRecognition, on: main), "重复申请是幂等的") expect(hub.isLockScreenCurrent(.faceRecognition, on: main), "租约当前") - expect(hub.lockScreenOwner(of: main) == .faceRecognition, "锁屏上这块屏归认你") expect(!hub.acquire(.notchShelf, on: main), "锁着时那一排照旧拿不到") hub.invalidate(.locked) expect(hub.isLockScreenCurrent(.faceRecognition, on: main), "锁屏这一下不撤认你") locked = false expect(!hub.isLockScreenCurrent(.faceRecognition, on: main), "系统确认解开:租约不再算数") - expect(hub.lockScreenOwner(of: main) == nil, "解开后锁屏上没有主人") locked = true expect(!hub.isLockScreenCurrent(.faceRecognition, on: main), "再锁上不复活旧的那份") expect(hub.acquireLockScreen(.faceRecognition, on: main), "再申请才有") diff --git a/tests/NotchLevelEarsTests.swift b/tests/NotchLevelEarsTests.swift index 9d271858..eabb6670 100644 --- a/tests/NotchLevelEarsTests.swift +++ b/tests/NotchLevelEarsTests.swift @@ -26,7 +26,6 @@ import Foundation static func geometry() { // 稿:刘海 185,两耳各 76,总宽 337;右耳放得下 8 + 54 + 14。 close(Ears.totalWidth(notchWidth: 185), 337) - close(Ears.earWidth, Ears.barNotchGap + Ears.barLength + Ears.barOuterInset) close(Ears.totalWidth(notchWidth: 180), 332) } diff --git a/tests/NotchLevelGateTests.swift b/tests/NotchLevelGateTests.swift index 315a2467..fd7f6bb3 100644 --- a/tests/NotchLevelGateTests.swift +++ b/tests/NotchLevelGateTests.swift @@ -40,7 +40,6 @@ import Foundation precondition(gate.valueChanged(.volume, at: 10.7, context: free) == .ignore(.noKey), "过了窗口不算") // 按的是音量键,亮度自己变了不算。 precondition(gate.valueChanged(.brightness, at: 10.05, context: free) == .ignore(.noKey)) - precondition(gate.recentlyPressed(.volume, at: 10.3) && !gate.recentlyPressed(.brightness, at: 10.3)) } static func valueWithoutKey() { diff --git a/tests/NotchLevelStepTests.swift b/tests/NotchLevelStepTests.swift index cb606502..a68af6bf 100644 --- a/tests/NotchLevelStepTests.swift +++ b/tests/NotchLevelStepTests.swift @@ -275,6 +275,5 @@ import Foundation precondition(gate.valueChanged(.keyboardLight, at: 1.7, context: .init()) == .ignore(.noKey)) // 按的是键盘灯,音量自己变了不算。 precondition(gate.valueChanged(.volume, at: 1.1, context: .init()) == .ignore(.noKey)) - precondition(gate.recentlyPressed(.keyboardLight, at: 1.3) && !gate.recentlyPressed(.volume, at: 1.3)) } } diff --git a/tests/NotchRowMergeTests.swift b/tests/NotchRowMergeTests.swift index 02316237..cd492bd3 100644 --- a/tests/NotchRowMergeTests.swift +++ b/tests/NotchRowMergeTests.swift @@ -14,33 +14,27 @@ struct NotchRowMergeTests { @MainActor static func main() { var t = TestSuite("M11") typealias Cell = NotchFocusController.Cell - let cell = NotchRow.cellWidth, gap = NotchRow.cellGap, pitch = NotchRow.pitch + let gap = NotchRow.cellGap, pitch = NotchRow.pitch // MARK: 分段与坐标 t.section("M11-01", "只有窗口:没有竖线,坐标和原来一样") let windowsOnly = NotchRow.layout(windows: 3, ongoing: 0) - t.expect(!windowsOnly.hasDivider && windowsOnly.dividerX == nil, "没有正在进行的事就没有竖线") + t.expect(!windowsOnly.hasDivider && windowsOnly.dividerXs.isEmpty, "没有正在进行的事就没有竖线") t.expect(windowsOnly.contentWidth == 3 * pitch - gap, "三格:3×132−8") t.expect(windowsOnly.x(ofCell: 0) == 0 && windowsOnly.x(ofCell: 2) == 2 * pitch, "格子之间还是 132") t.expect(windowsOnly.islandWidth(minimum: 0) == 3 * pitch + 20, "岛宽是 n×132+20,两边边距 14") t.expect(NotchRow.layout(windows: 0, ongoing: 0).islandWidth(minimum: 232) == 232, "一格都没有:用最小宽度") - t.expect(windowsOnly.dividerFrame(inRowWidth: 400, cellsMinY: 14, cellsHeight: 100) == nil, "没有竖线就没有外框") t.section("M11-02", "窗口在左、竖线、正在进行的在右") let both = NotchRow.layout(windows: 2, ongoing: 2) t.expect(both.hasDivider && both.count == 4, "两段都有格子才有竖线") - t.expect(both.dividerX == 2 * pitch, "竖线在最后一个窗口格右边的间隙里:窗口右边缘 + 8") + t.expect(both.dividerXs.first == 2 * pitch, "竖线在最后一个窗口格右边的间隙里:窗口右边缘 + 8") t.expect(both.x(ofCell: 1) == pitch, "左段格子位置不变") t.expect(both.x(ofCell: 2) == 2 * pitch + 1 + gap, "右段第一格:竖线 1pt 之后再空 8") t.expect(both.x(ofCell: 3) == 3 * pitch + 1 + gap, "右段第二格接着排") t.expect(both.contentWidth == 4 * pitch - gap + (1 + gap), "内容宽度比没有竖线多 1+8") t.expect(both.islandWidth(minimum: 0) == both.contentWidth + 28, "岛宽 = 内容 + 两边各 14") - let line = both.dividerFrame(inRowWidth: 600, cellsMinY: 14, cellsHeight: 100) - t.expect(line?.width == 1 && line?.y == 24 && line?.height == 80, "竖线 1pt 宽,上下各留 10pt") - t.expect(line?.x == (600 - both.contentWidth) / 2 + 2 * pitch, "竖线跟着整排居中") - t.expect(abs((line?.x ?? 0) - (both.leading(inRowWidth: 600) + both.x(ofCell: 1) + cell + gap)) < 0.001, - "竖线正好在左段最后一格右边 8pt") t.expect(NotchRow.dividerWhite == 0.2 && NotchRow.dividerInset == 10, "白 0.2、上下各留 10") t.section("M11-03", "只有右段:没有竖线") diff --git a/tests/NotchSmallBehaviourTests.swift b/tests/NotchSmallBehaviourTests.swift index 3829cadf..7ca7f9c6 100644 --- a/tests/NotchSmallBehaviourTests.swift +++ b/tests/NotchSmallBehaviourTests.swift @@ -41,11 +41,6 @@ struct NotchSmallBehaviourTests { check(abs(NotchSmallBehaviour.tileFadeDelay(index: 1000) - 0.25) < 1e-9, "huge index stays capped") // 边线渐变:3 点以内看不见,20 点起全显。 - check(NotchSmallBehaviour.keyLineVisibility(atDepth: 0) == 0, "top edge hidden") - check(NotchSmallBehaviour.keyLineVisibility(atDepth: 3) == 0, "3pt still hidden") - check(abs(NotchSmallBehaviour.keyLineVisibility(atDepth: 11.5) - 0.5) < 1e-9, "midpoint half visible") - check(NotchSmallBehaviour.keyLineVisibility(atDepth: 20) == 1, "20pt fully visible") - check(NotchSmallBehaviour.keyLineVisibility(atDepth: 200) == 1, "below stays visible") let stops = NotchSmallBehaviour.keyLineLocations(layerHeight: 102, overscan: 2) check(stops.count == 4 && stops[0] == 0 && stops[3] == 1, "stops span the layer") check(abs(stops[1] - 5.0 / 102) < 1e-9 && abs(stops[2] - 22.0 / 102) < 1e-9, "stops at 3pt and 20pt below the island top") diff --git a/tests/NotchTokenTests.swift b/tests/NotchTokenTests.swift index c57fb4c8..f761be36 100644 --- a/tests/NotchTokenTests.swift +++ b/tests/NotchTokenTests.swift @@ -47,7 +47,6 @@ struct NotchTokenTests { t.expect(Motion.Fade.shapeGate == 0.40, "形状走到四成才开始淡入") t.expect(Motion.Fade.fadeIn(reduced: false) == 0.18 && Motion.Fade.fadeOut(reduced: false) == 0.10, "平时按令牌") t.expect(Motion.Fade.fadeIn(reduced: true) == 0.25 && Motion.Fade.fadeOut(reduced: true) == 0.25, "减少动态效果交叉淡化 0.25(令牌 reducedNotch)") - t.expect(Motion.Fade.exitGap(reduced: false) == 0.04 && Motion.Fade.exitGap(reduced: true) == 0, "减少动态效果没有退场停顿") t.expect(Motion.Fade.secondLayerLag(reduced: false) == 0.20 && Motion.Fade.secondLayerLag(reduced: true) == 0, "减少动态效果不分层") t.section("C01-02b", "倒数数字原地换字:旧字淡出 0.10 下移 2、新字淡入 0.18 pop 0.9→1;减少动态效果只交叉淡化 0.18") diff --git a/tests/NowPlayingCardTests.swift b/tests/NowPlayingCardTests.swift index 341a22b8..867894a6 100644 --- a/tests/NowPlayingCardTests.swift +++ b/tests/NowPlayingCardTests.swift @@ -289,8 +289,8 @@ import Foundation && AudioOutputKind.speaker.symbol == "hifispeaker.fill", "三种图标") let routes = [route("这台 Mac", .mac), route("AirPods Pro", .headphones, current: true), route("Studio Display", .speaker)] expect(O.rows(from: routes) == routes, "列表沿用系统顺序,当前那个在原位打勾") - expect(O.currentKind(in: routes) == .headphones && O.currentSymbol(in: routes) == "headphones", "输出键的图标跟着当前设备") - expect(O.currentKind(in: [route("a", .mac)]) == nil && O.currentSymbol(in: []) == "hifispeaker.fill", "读不到当前设备时用音箱") + expect(O.currentKind(in: routes) == .headphones, "输出键跟着当前设备") + expect(O.currentKind(in: [route("a", .mac)]) == nil, "读不到当前设备") expect(O.spokenSelection(routes[1]) == "播放到 AirPods Pro", "选定后读屏") } diff --git a/tests/ProgressPartTests.swift b/tests/ProgressPartTests.swift index 20cc5dd3..270938fc 100644 --- a/tests/ProgressPartTests.swift +++ b/tests/ProgressPartTests.swift @@ -223,19 +223,19 @@ import Foundation startedAt: 3, progress: .fraction(0.5)) let cells = NotchRow.ongoingCells(from: [download, copying, unknown, music]) expect(cells.count == 3, "右段最多 3 格") - expect(cells[0].quantity == .fraction(0.42) && cells[0].quantityDrawing == .ring && cells[0].quantityText == "42%", "下载格:环加百分比") - expect(cells[1].quantityDrawing == .countText && cells[1].quantityText == "第 2 / 9", "拷贝格:只写第几个") - expect(cells[2].quantityDrawing == .spinningArc && cells[2].quantityText == nil, "不确定:弧,没有字") + expect(cells[0].quantity == .fraction(0.42) && cells[0].quantity.drawing == .ring && cells[0].quantityText == "42%", "下载格:环加百分比") + expect(cells[1].quantity.drawing == .countText && cells[1].quantityText == "第 2 / 9", "拷贝格:只写第几个") + expect(cells[2].quantity.drawing == .spinningArc && cells[2].quantityText == nil, "不确定:弧,没有字") // 格子上的画法就是右耳上的画法。 for (cell, source) in zip(cells, [download, copying, unknown]) { - expect(cell.quantityDrawing == source.progress.drawing, "格子和右耳画法一致") + expect(cell.quantity.drawing == source.progress.drawing, "格子和右耳画法一致") expect(cell.quantityText == source.progress.valueText(writesPercent: source.kind.writesPercent), "格子和右耳的字一致") } expect(!cells[0].spoken.contains("%") && cells[0].spoken == "正在下载,1 个文件", "读屏的句子不随进度每次变(量放进读屏的“值”)") let focus = NotchActivity(id: "ws2.focus", kind: .focus, title: "专注", symbol: "timer", startedAt: 0, progress: .fraction(0.3), trailing: "18 分") - expect(NotchRow.ongoingCells(from: [focus])[0].quantityDrawing == .none, "番茄钟的圈在左耳,格子里不再画") + expect(NotchRow.ongoingCells(from: [focus])[0].quantity.drawing == .none, "番茄钟的圈在左耳,格子里不再画") let withMusic = NotchRow.ongoingCells(from: [music]) - expect(withMusic[0].quantityText == nil && withMusic[0].quantityDrawing == .ring, "音乐在格子里有环、不写 %") + expect(withMusic[0].quantityText == nil && withMusic[0].quantity.drawing == .ring, "音乐在格子里有环、不写 %") expect(withMusic[0].spoken == "September,正在播放", "音乐读屏不变") } } diff --git a/tests/SystemIslandAndDisplayTests.swift b/tests/SystemIslandAndDisplayTests.swift index b6f4825f..566573d5 100644 --- a/tests/SystemIslandAndDisplayTests.swift +++ b/tests/SystemIslandAndDisplayTests.swift @@ -9,8 +9,8 @@ struct SystemIslandAndDisplayTests { static func main() { // 系统岛:名单现在是空的,任何机型都不让开。 check(SystemIslandPolicy.modelIdentifiers.isEmpty, "list empty until device measurement") - check(!SystemIslandPolicy.hasSystemIsland(modelIdentifier: "Mac16,1"), "unknown model does not yield") - check(!SystemIslandPolicy.hasSystemIsland(modelIdentifier: ""), "empty model does not yield") + check(!SystemIslandPolicy.yields(isBuiltin: true, modelIdentifier: "Mac16,1"), "unknown model does not yield") + check(!SystemIslandPolicy.yields(isBuiltin: true, modelIdentifier: ""), "empty model does not yield") let list: Set = ["Mac99,1"] check(SystemIslandPolicy.yields(isBuiltin: true, modelIdentifier: "Mac99,1", in: list), "listed model builtin yields") check(!SystemIslandPolicy.yields(isBuiltin: false, modelIdentifier: "Mac99,1", in: list), "external never yields") diff --git a/tests/VoiceDraftTests.swift b/tests/VoiceDraftTests.swift index 11160ed1..c82a52ea 100644 --- a/tests/VoiceDraftTests.swift +++ b/tests/VoiceDraftTests.swift @@ -84,16 +84,11 @@ struct VoiceDraftTests { t.expect(cancelled.phase == .idle && cancelled.partial.isEmpty && cancelled.draft == nil && cancelled.failure == nil && cancelled.startedAt == nil, "取消后回到空闲") - t.section("V-08", "草稿只由页面采用;清草稿只在空闲时生效") + t.section("V-08", "草稿只由页面采用") var cleared = VoiceDraftSession() _ = cleared.start(at: 0) _ = cleared.stop(at: 1) cleared.finish(.success("一句话")) - cleared.clearDraft() - t.expect(cleared.draft == nil, "空闲时可清草稿") - t.expect(cleared.failure == nil, "清草稿不改变失败状态") - cleared.finish(.success("已在空闲,忽略")) - t.expect(cleared.draft == nil, "清掉之后旧结果不会再回来") _ = cleared.start(at: 2) t.expect(cleared.draft == nil && cleared.phase == .listening, "开始新一句时草稿交给页面,状态机不再持有") diff --git a/tests/WelcomeFlowTests.swift b/tests/WelcomeFlowTests.swift index 31f65299..b60edafa 100644 --- a/tests/WelcomeFlowTests.swift +++ b/tests/WelcomeFlowTests.swift @@ -109,7 +109,6 @@ struct WelcomeFlowTests { static func layout() { expect(WelcomeFlow.windowHeight(forStep: 0) == 470 && WelcomeFlow.windowHeight(forStep: 1) == 470 && WelcomeFlow.windowHeight(forStep: 2) == 520, "470 / 470 / 520") expect(WelcomeFlow.Layout.againHeight == 470, "U1 470") - expect(WelcomeFlow.hasHero(step: 0) && !WelcomeFlow.hasHero(step: 1) && WelcomeFlow.hasHero(step: 2), "A1 and T carry heroes, A2 does not") } // 减少动态效果:翻页只淡化不位移;窗口不走弹簧。 diff --git a/tests/WindowBrowserTests.swift b/tests/WindowBrowserTests.swift index 879fa2f2..2f74a21d 100644 --- a/tests/WindowBrowserTests.swift +++ b/tests/WindowBrowserTests.swift @@ -26,7 +26,6 @@ enum WindowBrowserTests { static func main() { identityAndCatalog() catalogFailureSemantics() - requestTokens() listStabilityAndSelection() panelStateMachine() focusReturnPolicy() @@ -226,29 +225,6 @@ enum WindowBrowserTests { // MARK: 请求代数 - static func requestTokens() { - // 11/12. A→B→A:第一次 A 的结果不能被当成当前有效结果。 - let appA = ApplicationInstanceKey(pid: 1301, generation: 1) - let appB = ApplicationInstanceKey(pid: 1302, generation: 1) - let firstA = WindowBrowserTargetToken(requestID: WindowBrowserRequestID(value: 1), - application: appA, targetGeneration: 1) - let toB = WindowBrowserTargetToken(requestID: WindowBrowserRequestID(value: 2), - application: appB, targetGeneration: 1) - let secondA = WindowBrowserTargetToken(requestID: WindowBrowserRequestID(value: 3), - application: appA, targetGeneration: 2) - - expect(!toB.accepts(application: appA, targetGeneration: 1), - "B session must reject A's result") - expect(!firstA.accepts(application: appA, targetGeneration: 2), - "first A session must not accept a later A target generation") - expect(secondA.accepts(application: appA, targetGeneration: 2), - "current session accepts only its own generation") - expect(!secondA.accepts(application: appA, targetGeneration: 3) && - !secondA.accepts(application: ApplicationInstanceKey(pid: 1301, generation: 2), - targetGeneration: 2), - "app generation change invalidates the session") - } - // MARK: 稳定顺序与选择 /// 键盘面板关闭时的焦点归还策略。 @@ -1841,7 +1817,7 @@ enum WindowBrowserTests { var restoringRecord = selected restoringRecord.shadeState = .restoring - expect(WindowBrowserCardViewStatus.text(restoringRecord).contains("正在展开"), + expect(WindowBrowserStatusPresentationFactory.make(record: restoringRecord, hasSnapshot: false).text.contains("正在展开"), "a restoring window is labelled as restoring, not as open") var foldedRecord = selected foldedRecord.shadeState = .folded @@ -2567,14 +2543,6 @@ enum WindowBrowserTests { "a display topology change rejects the old geometry result") } - // T29:图标命中区域有限,不覆盖半个桌面。 - let icon = NSRect(x: 100, y: 20, width: 52, height: 52) - expect(WindowBrowserDockRegion.iconHitContains(CGPoint(x: 126, y: 46), - iconFrame: icon, tolerance: 8), - "the pointer inside the icon is a hit") - expect(!WindowBrowserDockRegion.iconHitContains(CGPoint(x: 400, y: 400), - iconFrame: icon, tolerance: 8), - "the icon hit region is bounded") } // MARK: 新增:元数据槽 From 5d49836619ebc8910e2d66dd5b39d846faaeaad8 Mon Sep 17 00:00:00 2001 From: Aaron <12213433+surfine@users.noreply.github.com> Date: Wed, 2 Dec 2026 14:31:04 +0800 Subject: [PATCH 6/9] =?UTF-8?q?refactor:=20=E5=88=A0=E6=8E=89=E5=86=99?= =?UTF-8?q?=E4=BA=86=E6=B5=8B=E8=AF=95=E5=8D=B4=E4=BB=8E=E6=B2=A1=E6=8E=A5?= =?UTF-8?q?=E8=BF=9B=E4=BA=A7=E5=93=81=E7=9A=84=2010=20=E9=A1=B9=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 审批卡 2 分钟缩回、音乐右耳剩余时间、岛贴边平移、拖窗靠近刘海时提醒变点、 授权确认的按键新鲜度、欢迎窗日历权限行、Raycast 命令别名、钥匙串存不了的文案、 空的滚轮白名单。产品从未调用它们;以后要做时按规格重写。 Co-Authored-By: Claude Opus 5.5 --- prototype/App/FaceTemplateKeychainStore.swift | 2 -- prototype/App/NotchSpaceGate.swift | 11 ------ prototype/App/RectangleImport.swift | 2 +- prototype/App/WS2CodexApprovalHost.swift | 2 +- prototype/Core/CalendarActivity.swift | 10 ------ prototype/Core/InteractionCoordinator.swift | 27 +------------- prototype/Core/NotchActivities.swift | 7 ---- prototype/Core/RectangleKeymap.swift | 27 -------------- prototype/Core/ScrollInstallPolicy.swift | 9 ----- prototype/Core/SessionCardStyle.swift | 35 ------------------- prototype/Core/StripNotchExchange.swift | 3 -- tests/CalendarPresentationTests.swift | 5 --- tests/FaceTemplateKeychainStoreTests.swift | 2 -- tests/InputHookTests.swift | 4 --- tests/InteractionCoordinatorRulesTests.swift | 20 ----------- tests/NotchSpaceGateTests.swift | 13 ------- tests/NotchTokenTests.swift | 9 ----- tests/Part2CoreTests.swift | 7 +--- tests/RectangleKeymapTests.swift | 1 - tests/SessionCardStyleTests.swift | 15 -------- tests/StripNotchExchangeTests.swift | 5 +-- 21 files changed, 5 insertions(+), 211 deletions(-) diff --git a/prototype/App/FaceTemplateKeychainStore.swift b/prototype/App/FaceTemplateKeychainStore.swift index 5c2b599b..89d438b3 100644 --- a/prototype/App/FaceTemplateKeychainStore.swift +++ b/prototype/App/FaceTemplateKeychainStore.swift @@ -20,8 +20,6 @@ final class FaceTemplateKeychainStore: Sendable { errSecNoSuchKeychain, errSecInvalidKeychain, errSecNoDefaultKeychain, ] } - /// 钥匙串存不了时界面要说的话(日常说法,说用户遇到的事,不说 OSStatus)。 - static let unavailableMessage = "这台 Mac 现在存不了" /// 20 条 × 768 维 ≈ 80 KB;留余量,超出当坏数据。 static let maximumBytes = 256 * 1024 let service: String diff --git a/prototype/App/NotchSpaceGate.swift b/prototype/App/NotchSpaceGate.swift index 0377535a..6eddb2f0 100644 --- a/prototype/App/NotchSpaceGate.swift +++ b/prototype/App/NotchSpaceGate.swift @@ -46,17 +46,6 @@ final class NotchSpaceGate { return type == fullScreenSpaceType ? .yes : .no } - /// 岛如果碰到了屏幕边或角(自动隐藏菜单栏、全屏 App 里常见):只整体平移回屏内,宽高不变,圆角半径不由它改。 - nonisolated static func translatedInside(_ island: CGRect, screen: CGRect) -> CGRect { - guard island.width <= screen.width, island.height <= screen.height else { return island } - var moved = island - if moved.minX < screen.minX { moved.origin.x = screen.minX } - if moved.maxX > screen.maxX { moved.origin.x = screen.maxX - moved.width } - if moved.minY < screen.minY { moved.origin.y = screen.minY } - if moved.maxY > screen.maxY { moved.origin.y = screen.maxY - moved.height } - return moved - } - // MARK: 读系统 struct Sources { diff --git a/prototype/App/RectangleImport.swift b/prototype/App/RectangleImport.swift index f7c52c99..8aa41a1e 100644 --- a/prototype/App/RectangleImport.swift +++ b/prototype/App/RectangleImport.swift @@ -1,7 +1,7 @@ // 从 Rectangle 搬过来:一下把对应的动作设成 Rectangle 的快捷键,手上的习惯不用改。 // 装过 Rectangle 的,照它现在的设置(偏好设置里改过的、清掉的都算);只有它导出的 RectangleConfig.json 的,照那份; // 都没有的,用它首次打开时推荐的那一套(⌃⌥ 加方向键和字母)。算法见 Core/RectangleKeymap.swift。 -// Raycast 的窗口命令没有默认快捷键、设置也读不到:名字一一对应(RectangleCommand.raycastName),照着录就行。 +// Raycast 的窗口命令没有默认快捷键、设置也读不到,只能照着命令名手动录。 import Cocoa diff --git a/prototype/App/WS2CodexApprovalHost.swift b/prototype/App/WS2CodexApprovalHost.swift index 1ea38fd8..9ab2a20f 100644 --- a/prototype/App/WS2CodexApprovalHost.swift +++ b/prototype/App/WS2CodexApprovalHost.swift @@ -132,7 +132,7 @@ import Cocoa guard let self, let view, self.gate.current == review, self.isCurrent(review) else { return } if let panel = view.window as? NotchPanel, panel.isVisible, panel.isSettledForProbe, view.bounds.width > 0, view.bounds.height > 0, view.inputIsCurrent() { - // 只认出现之后的新一下:gate 记下出现的时刻,之前开始的按压不算(同 confirmationIsFresh)。 + // 只认出现之后的新一下:gate 记下出现的时刻,之前开始的按压不算。 do { try self.gate.didPresent(at:self.clock.now(),after:0); view.enableConfirmation() } catch { self.abandonCurrent(decline:true) } return diff --git a/prototype/Core/CalendarActivity.swift b/prototype/Core/CalendarActivity.swift index 264ac54f..4af8412f 100644 --- a/prototype/Core/CalendarActivity.swift +++ b/prototype/Core/CalendarActivity.swift @@ -227,16 +227,6 @@ enum CalendarAccess: Equatable, Sendable { } } - /// 欢迎窗口第三步那一行:没问过才有“允许”;给了写“已允许”;不给就整行不出,不追问。 - enum WelcomeRow: Equatable, Sendable { case allowButton, allowed, hidden } - var welcomeRow: WelcomeRow { - switch self { - case .notAsked: return .allowButton - case .granted: return .allowed - case .denied: return .hidden - } - } - /// 刘海里能不能出日程:只有给了才可能出。 var canRead: Bool { self == .granted } } diff --git a/prototype/Core/InteractionCoordinator.swift b/prototype/Core/InteractionCoordinator.swift index a742e6db..7c316682 100644 --- a/prototype/Core/InteractionCoordinator.swift +++ b/prototype/Core/InteractionCoordinator.swift @@ -35,9 +35,6 @@ final class InteractionCoordinator { let handle: WS2.LeaseHandle let layer: WS2.Layer let deadline: WS2.Instant - /// 这一件出现的时刻与当时的输入序号。确认按各自出现的时刻判断新鲜度。 - let shownAt: WS2.Instant - let shownAfterSequence: UInt64 } private struct Alert { let first: WS2.Instant; var last: WS2.Instant; let deadline: WS2.Instant; var items: [AlertItem] } private let clock: any WS2Clock @@ -65,7 +62,6 @@ final class InteractionCoordinator { /// 排队的放行轮到时发的租约;转换结束后才通知,宿主拿到时 `isCurrent` 已为真。 private var grants: [WS2.LeaseHandle] = [] /// 宿主报告的最新输入序号。放行出现时记下它,之前按下的键不能确认这一件。 - private var inputSequence: UInt64 = 0 private(set) var epoch: UInt64 = 1 /// 排队的放行轮到了。只有用 `queueing: true` 申请过的宿主才会收到。 var onGranted: ((WS2.LeaseHandle) -> Void)? @@ -95,8 +91,7 @@ final class InteractionCoordinator { private func issue(_ r: WS2.LeaseRequest, at now: WS2.Instant) -> WS2.LeaseHandle? { guard let token = source.next() else { exhausted = true; return nil } let h = WS2.LeaseHandle(token: token, ownerID: r.ownerID, display: r.display, environmentEpoch: epoch) - active = Active(handle: h, layer: r.layer, deadline: r.deadline, - shownAt: now, shownAfterSequence: inputSequence) + active = Active(handle: h, layer: r.layer, deadline: r.deadline) // Reminders obscured by an interaction never replay later. dots.formUnion(alerts.keys); alerts.removeAll() // 还排着没说的提醒也一起消耗:第 1-3 层占了屏,点就是它们的样子。 @@ -372,24 +367,4 @@ final class InteractionCoordinator { ongoingIDs:ids,hasSecondaryDot:env.unlocked && (dots.contains(d) || quietDots.contains(d))) } } - /// 宿主报告输入事件的序号(单调)。放行出现时记下当时的序号。 - func noteInput(sequence: UInt64) { - inputSequence = max(inputSequence, sequence) - } - /// 当前这件放行出现的时刻与当时的输入序号;不是当前租约时为 nil。 - func presentation(of lease: WS2.LeaseHandle) -> (shownAt: WS2.Instant, shownAfterSequence: UInt64)? { - guard let a = active, a.handle == lease else { return nil } - return (a.shownAt, a.shownAfterSequence) - } - /// 按这一件自己出现的时刻判断:排在后面的放行,不能被前一件期间按下的键确认。 - func confirmationIsFresh(lease: WS2.LeaseHandle, beganAt: WS2.Instant, sequence: UInt64) -> Bool { - guard let shown = presentation(of: lease) else { return false } - return confirmationIsFresh(lease: lease, beganAt: beganAt, sequence: sequence, - shownAt: shown.shownAt, shownAfterSequence: shown.shownAfterSequence) - } - func confirmationIsFresh(lease: WS2.LeaseHandle, beganAt: WS2.Instant, sequence: UInt64, - shownAt: WS2.Instant, shownAfterSequence: UInt64) -> Bool { - isCurrent(lease) && lease.ownerID == "authorization" && beganAt >= shownAt && - beganAt <= clock.now() && sequence > shownAfterSequence - } } diff --git a/prototype/Core/NotchActivities.swift b/prototype/Core/NotchActivities.swift index 76f636eb..d04f5c9e 100644 --- a/prototype/Core/NotchActivities.swift +++ b/prototype/Core/NotchActivities.swift @@ -496,13 +496,6 @@ enum NotchEarText { return item.subtitle } - /// 音乐右耳:剩余时间 m:ss。来源没给播放位置或总长、或者已经走过头,就是 nil(不编数)。 - static func musicRemaining(elapsed: Double?, duration: Double?) -> String? { - guard let elapsed, let duration, elapsed.isFinite, duration.isFinite, duration > 0, elapsed >= 0 else { return nil } - let left = Int((max(0, duration - elapsed)).rounded(.up)) - return "\(left / 60):\(String(format: "%02d", left % 60))" - } - /// 番茄钟右耳:暂停写“暂停”,否则是 `FocusTimer.compactText`(“18 分”,最后 60 秒“0:42”)。 static func focusTrailing(compactText: String, paused: Bool) -> String { paused ? WSL10n.text("notch.focus.paused", zh: "暂停") : compactText diff --git a/prototype/Core/RectangleKeymap.swift b/prototype/Core/RectangleKeymap.swift index ae608384..c9601e3b 100644 --- a/prototype/Core/RectangleKeymap.swift +++ b/prototype/Core/RectangleKeymap.swift @@ -12,33 +12,6 @@ enum RectangleCommand: String, CaseIterable { case firstThird, centerThird, lastThird, firstTwoThirds, lastTwoThirds case maximize, maximizeHeight, larger, smaller, center, restore case nextDisplay, previousDisplay - - /// Raycast 里同一件事的命令名(English, used as search aliases). - var raycastName: String { - switch self { - case .leftHalf: return "Left Half" - case .rightHalf: return "Right Half" - case .topHalf: return "Top Half" - case .bottomHalf: return "Bottom Half" - case .topLeft: return "Top Left Quarter" - case .topRight: return "Top Right Quarter" - case .bottomLeft: return "Bottom Left Quarter" - case .bottomRight: return "Bottom Right Quarter" - case .firstThird: return "First Third" - case .centerThird: return "Center Third" - case .lastThird: return "Last Third" - case .firstTwoThirds: return "First Two Thirds" - case .lastTwoThirds: return "Last Two Thirds" - case .maximize: return "Maximize" - case .maximizeHeight: return "Maximize Height" - case .larger: return "Make Larger" - case .smaller: return "Make Smaller" - case .center: return "Center" - case .restore: return "Restore" - case .nextDisplay: return "Next Display" - case .previousDisplay: return "Previous Display" - } - } } struct KeyCombo: Equatable, Hashable { diff --git a/prototype/Core/ScrollInstallPolicy.swift b/prototype/Core/ScrollInstallPolicy.swift index d2ca3d4c..ca820744 100644 --- a/prototype/Core/ScrollInstallPolicy.swift +++ b/prototype/Core/ScrollInstallPolicy.swift @@ -1,14 +1,5 @@ import Foundation -/// 规格点名过的产品号里没有普通滚轮。空表不是「这只鼠标没有滚轮」。 -enum ConfirmedInputDevices: Sendable { - static let wheelMice: [(vendor: UInt32, product: UInt32)] = [] - - static func isConfirmedWheel(vendor: UInt32, product: UInt32) -> Bool { - wheelMice.contains { $0.vendor == vendor && $0.product == product } - } -} - /// 还没有核对过的做法,把一条滚动事件绑到某一台 HID 设备上。 enum PerEventAssociation: Sendable { static func available() -> Bool { false } diff --git a/prototype/Core/SessionCardStyle.swift b/prototype/Core/SessionCardStyle.swift index ec73c915..68db32a9 100644 --- a/prototype/Core/SessionCardStyle.swift +++ b/prototype/Core/SessionCardStyle.swift @@ -157,41 +157,6 @@ extension SessionCardStyle { /// p 每秒变多少(缩回时为正)。 var velocity: Double } - - /// 编程会话审批卡“没人管”这条规则(拍板 10-29 第 36 条):2 分钟没人动,卡缩回琥珀点,请求仍挂着。 - /// 规则本身只会说“缩回去”,不带任何“回答”或“改期限”:Claude Code(无期限)和 Codex(30 秒)各自的期限它不碰。 - struct IdleRule: Equatable, Sendable { - static let idleSeconds: Double = 120 - /// 本规则不拥有的期限,原样记着,只为说明它不被改动。 - let requestDeadline: Double? - private(set) var shownAt: Double - private(set) var parked = false - private(set) var cancelled = false - - enum Effect: Equatable, Sendable { case none, retreatToDot } - - init(shownAt: Double, requestDeadline: Double? = nil) { - self.shownAt = shownAt; self.requestDeadline = requestDeadline - } - - func isDue(now: Double) -> Bool { !parked && !cancelled && now - shownAt >= Self.idleSeconds } - - mutating func fire(now: Double) -> Effect { - guard isDue(now: now) else { return .none } - parked = true - return .retreatToDot - } - - /// 点点或耳朵把卡请回来:重新计 2 分钟。已放行、已回答(cancel)的不再回来。 - mutating func restore(now: Double) -> Bool { - guard parked, !cancelled else { return false } - parked = false; shownAt = now - return true - } - - /// 有人回答了、交给 Touch ID、请求没了:不再触发。 - mutating func cancel() { cancelled = true } - } } extension AgentApprovalCard { diff --git a/prototype/Core/StripNotchExchange.swift b/prototype/Core/StripNotchExchange.swift index 053ddc8d..1c60fdc3 100644 --- a/prototype/Core/StripNotchExchange.swift +++ b/prototype/Core/StripNotchExchange.swift @@ -53,9 +53,6 @@ enum StripNotchExchange { private(set) var dragging: CGWindowID? private(set) var landing = false - /// 概览里拖着一扇靠近刘海,算“正在做的手势”:排在放行之下、提醒之上。 - /// 这时来的短暂提醒变成一个点、不回来补说。放行占着刘海时落点不出,所以也不算。 - var claimsNotchAsGesture: Bool { landing } mutating func begin(_ id: CGWindowID) { dragging = id diff --git a/tests/CalendarPresentationTests.swift b/tests/CalendarPresentationTests.swift index 231a620f..82aa1cb8 100644 --- a/tests/CalendarPresentationTests.swift +++ b/tests/CalendarPresentationTests.swift @@ -353,11 +353,6 @@ struct CalendarPresentationTests { expect(CalendarAccess(statusRaw: 3) == .granted, "3 = 完全访问") for raw in [1, 2, 4, 9] { expect(CalendarAccess(statusRaw: raw) == .denied, "\(raw) 一律当不给") } - // 欢迎窗口那一行:没问过才有“允许”,给了写已允许,不给整行不出,也没有再问的入口。 - expect(CalendarAccess.notAsked.welcomeRow == .allowButton, "没问过:有“允许”") - expect(CalendarAccess.granted.welcomeRow == .allowed, "给了:已允许") - expect(CalendarAccess.denied.welcomeRow == .hidden, "不给:整行不出,不追问") - // 设置里的开关:没问过 → 点开才问;不给 → 带去系统设置,不弹窗、不打开;给了 → 直接开。 expect(CalendarSettingsPolicy.toggle(on: true, access: .notAsked) == .requestThenEnable, "开:先问一次") expect(CalendarSettingsPolicy.toggle(on: true, access: .denied) == .openSystemSettings, "不给:去系统设置") diff --git a/tests/FaceTemplateKeychainStoreTests.swift b/tests/FaceTemplateKeychainStoreTests.swift index 00794649..6734e2ab 100644 --- a/tests/FaceTemplateKeychainStoreTests.swift +++ b/tests/FaceTemplateKeychainStoreTests.swift @@ -23,8 +23,6 @@ struct FaceTemplateKeychainStoreTests { expect(!FaceTemplateKeychainStore.Failure(status: status).isUnavailable, "OSStatus \(status) 不算存不了(数据或参数问题)") } - expect(FaceTemplateKeychainStore.unavailableMessage == "这台 Mac 现在存不了", - "存不了时的界面文案照 copy-guide 的一句话") expect(FaceTemplateKeychainStore.Failure(status: errSecMissingEntitlement) == FaceTemplateKeychainStore.Failure(status: errSecMissingEntitlement), "Failure 按 OSStatus 相等") diff --git a/tests/InputHookTests.swift b/tests/InputHookTests.swift index f6ffd821..db39cc4b 100644 --- a/tests/InputHookTests.swift +++ b/tests/InputHookTests.swift @@ -117,10 +117,6 @@ struct InputHookTests { perEventAssociationAvailable: true, systemStopped: false)) == .hold(.off), "with the features off, nothing installs") expect(!PerEventAssociation.available(), "this build has no per-event device association") - expect(!ConfirmedInputDevices.isConfirmedWheel(vendor: 0x05ac, product: 0x0323), - "the Magic Mouse product in the spec is not a confirmed wheel") - expect(!ConfirmedInputDevices.isConfirmedWheel(vendor: 0x046d, product: 0xc52b), - "an unlisted mouse is not treated as a confirmed wheel") } static func yieldNames() { diff --git a/tests/InteractionCoordinatorRulesTests.swift b/tests/InteractionCoordinatorRulesTests.swift index a993237e..f9c193d7 100644 --- a/tests/InteractionCoordinatorRulesTests.swift +++ b/tests/InteractionCoordinatorRulesTests.swift @@ -64,7 +64,6 @@ struct RulesMissing: Error {} clock.set(300); c.release(press, at: clock.now()) t.check(granted().count == 1 && granted().first?.ownerID == "authorization", "authorization appears on release") let auth = try unwrap(granted().first) - t.check(c.presentation(of: auth)?.shownAt == .init(nanoseconds: 300), "shown at the moment it appeared") t.check(c.snapshots(at: clock.now()).first?.layer == .authorization, "authorization is on screen") t.check(c.snapshots(at: clock.now()).first?.hasSecondaryDot == true, "dot still covered by authorization") c.release(auth, at: clock.now()) @@ -135,30 +134,11 @@ struct RulesMissing: Error {} t.check(granted().count == step, "next one appears after a result (\(step))") current = try unwrap(granted().last) order.append(current.ownerID) - t.check(c.presentation(of: current)?.shownAt == clock.now(), "shownAt re-recorded (\(step))") } t.check(order == ["authorization", "agentReview", "authorization", "agentReview", "authorization", "agentReview", "authorization"], "FIFO order") c.release(current, at: clock.now()) t.check(c.snapshots(at: clock.now()).first?.lease == nil, "queue drained") } - t.run("R3b freshness is judged against each item's own appearance") { - let clock = RulesClock(), box = Box(); box.env.displays = [a] - let (c, granted) = make(clock, box) - c.noteInput(sequence: 5) - let first = try lease(c.acquire(request("authorization", .authorization))) - _ = c.acquire(request("authorization", .authorization)) - clock.set(200); c.noteInput(sequence: 9) - t.check(c.confirmationIsFresh(lease: first, beganAt: .init(nanoseconds: 150), sequence: 6), "first fresh") - // 键在第一件期间按下(150 ns,序号 9),第二件在 300 ns 出现。 - clock.set(300); c.release(first, at: clock.now()) - let second = try unwrap(granted().first) - t.check(c.presentation(of: second)?.shownAfterSequence == 9, "sequence watermark at appearance") - clock.set(400) - t.check(!c.confirmationIsFresh(lease: second, beganAt: .init(nanoseconds: 150), sequence: 10), "earlier press rejected") - t.check(!c.confirmationIsFresh(lease: second, beganAt: .init(nanoseconds: 350), sequence: 9), "same sequence rejected") - t.check(c.confirmationIsFresh(lease: second, beganAt: .init(nanoseconds: 350), sequence: 10), "new press fresh") - t.check(!c.confirmationIsFresh(lease: first, beganAt: .init(nanoseconds: 350), sequence: 10), "old lease stale") - } t.run("R3c expiry, waiting expiry, display removal and lock") { let clock = RulesClock(), box = Box(); box.env.displays = [a, b] let (c, granted) = make(clock, box) diff --git a/tests/NotchSpaceGateTests.swift b/tests/NotchSpaceGateTests.swift index da751167..4bb57684 100644 --- a/tests/NotchSpaceGateTests.swift +++ b/tests/NotchSpaceGateTests.swift @@ -38,19 +38,6 @@ func runTests() { check(G.fact(forSpaceType: 4) == .yes && G.fact(forSpaceType: 0) == .no && G.fact(forSpaceType: nil) == .unknown, "space type to fact") - // 几何:碰角只平移,宽高不变;已在屏内不动;比屏还大不动。 - let screen = CGRect(x: 0, y: 0, width: 1512, height: 982) - let inside = CGRect(x: 600, y: 900, width: 200, height: 60) - check(G.translatedInside(inside, screen: screen) == inside, "inside unchanged") - let overTop = CGRect(x: 600, y: 940, width: 200, height: 60) - let movedTop = G.translatedInside(overTop, screen: screen) - check(movedTop.size == overTop.size && movedTop.maxY == screen.maxY && movedTop.minX == overTop.minX, "top overflow translates") - let corner = CGRect(x: -12, y: 950, width: 200, height: 60) - let movedCorner = G.translatedInside(corner, screen: screen) - check(movedCorner.size == corner.size && movedCorner.minX == 0 && movedCorner.maxY == screen.maxY, "corner translates only") - let huge = CGRect(x: 0, y: 0, width: 2000, height: 100) - check(G.translatedInside(huge, screen: screen) == huge, "bigger than screen unchanged") - // 重算:只在变化时通知;读不到当未知不让开;调度中心让所有屏让开。 var type: Int? = 4 var focused: (display: CGDirectDisplayID?, fact: NotchSpaceFact) = (nil, .unknown) diff --git a/tests/NotchTokenTests.swift b/tests/NotchTokenTests.swift index f761be36..50e8fdeb 100644 --- a/tests/NotchTokenTests.swift +++ b/tests/NotchTokenTests.swift @@ -92,15 +92,6 @@ struct NotchTokenTests { t.expect(NotchEarText.cardTitle(item(.music, title: "歌", trailing: "2:14")) == "歌", "别的种类不合并") t.expect(NotchEarText.isRest(item(.focus, title: "休息")) && !NotchEarText.isRest(focusItem), "按标题认休息") - t.section("C01-06", "音乐剩余时间 m:ss") - t.expect(NotchEarText.musicRemaining(elapsed: 106, duration: 240) == "2:14", "240 - 106 = 2:14") - t.expect(NotchEarText.musicRemaining(elapsed: 0, duration: 59.2) == "1:00", "向上取整") - t.expect(NotchEarText.musicRemaining(elapsed: nil, duration: 240) == nil, "没有位置不编数") - t.expect(NotchEarText.musicRemaining(elapsed: 10, duration: nil) == nil, "没有总长不编数") - t.expect(NotchEarText.musicRemaining(elapsed: 10, duration: 0) == nil, "总长为 0 不编数") - t.expect(NotchEarText.musicRemaining(elapsed: 300, duration: 240) == "0:00", "走过头夹到 0:00") - t.expect(NotchEarText.musicRemaining(elapsed: .nan, duration: 240) == nil, "非有限值不编数") - t.section("C01-07", "进度环与信息点几何、语气色") t.expect(NotchFocusRing.viewport == 16 && NotchFocusRing.radius == 6.5 && NotchFocusRing.lineWidth == 2.2, "环 16 / 6.5 / 2.2") t.expect(NotchFocusRing.trackWhiteAlpha == 0.18, "底环白 18%") diff --git a/tests/Part2CoreTests.swift b/tests/Part2CoreTests.swift index 2fa4fa0c..4848ac80 100644 --- a/tests/Part2CoreTests.swift +++ b/tests/Part2CoreTests.swift @@ -37,13 +37,8 @@ final class TestClock: WS2Clock, @unchecked Sendable { if case .acquired(let h) = c.acquire(req("authorization",.authorization,b)) { auth = h } expect(revoked == [shelf],"old cancelled"); expect(!c.isCurrent(shelf),"old token stale"); expect(c.isCurrent(auth),"new lease") } - test("LEASE04 old key-down never confirms new approval") { - clock.set(2) - expect(!c.confirmationIsFresh(lease:auth,beganAt:time(0),sequence:5,shownAt:time(1),shownAfterSequence:6),"old down") - expect(!c.confirmationIsFresh(lease:auth,beganAt:time(2),sequence:6,shownAt:time(1),shownAfterSequence:6),"same sequence") - expect(c.confirmationIsFresh(lease:auth,beganAt:time(2),sequence:7,shownAt:time(1),shownAfterSequence:6),"fresh") - } test("LEASE05 obscured reminder not replayed") { + clock.set(2) c.remind(on:a,at:time(2)); c.release(auth,at:time(2)) expect(c.snapshots(at:time(2)).first?.layer == .idle,"no replay") // 点被那一层消耗:放行结束、屏上没人时熄,不补说(docs/design-grammar.md)。 diff --git a/tests/RectangleKeymapTests.swift b/tests/RectangleKeymapTests.swift index 260a367a..ddb266b3 100644 --- a/tests/RectangleKeymapTests.swift +++ b/tests/RectangleKeymapTests.swift @@ -39,7 +39,6 @@ struct RectangleKeymapTests { expect(RectangleKeymap.spectacle(.topLeft) == KeyCombo(keyCode: 123, carbonModifiers: 0x1100), "the Spectacle set puts Top Left on ⌃⌘←") expect(RectangleKeymap.spectacle(.firstThird) == nil, "Spectacle has no thirds") - expect(RectangleCommand.topLeft.raycastName == "Top Left Quarter", "Top Left Quarter is the Raycast name") } // 照着偏好设置算:没存过就是 Spectacle 那套,选了“推荐”就是推荐那套。 diff --git a/tests/SessionCardStyleTests.swift b/tests/SessionCardStyleTests.swift index 73424b16..942f82bc 100644 --- a/tests/SessionCardStyleTests.swift +++ b/tests/SessionCardStyleTests.swift @@ -95,21 +95,6 @@ struct SessionCardStyleTests { t.expect(reducedPose.scale == 1 && reducedPose.opacity == 0, "减少动态效果:原处淡出,不缩放") t.expect(S.pose(progress: -1, plan: retreat).scale == 1 && S.pose(progress: 9, plan: retreat).opacity == 0, "进度越界取边") - t.section("S11B2-04", "2 分钟没人管:缩回琥珀点,不回答、不改期限") - var rule = S.IdleRule(shownAt: 100, requestDeadline: 130) - t.expect(S.IdleRule.idleSeconds == 120, "2 分钟") - t.expect(rule.fire(now: 219.9) == .none && !rule.parked, "没到点不动") - t.expect(rule.fire(now: 220) == .retreatToDot && rule.parked, "到点:缩回琥珀点") - t.expect(rule.requestDeadline == 130, "请求的期限原样没动(Codex 的 30 秒、Claude Code 的无期限都不碰)") - t.expect(rule.fire(now: 500) == .none, "只缩回一次") - t.expect(rule.restore(now: 600) && !rule.parked && rule.shownAt == 600, "点耳朵把卡请回来,重新计 2 分钟") - t.expect(rule.fire(now: 719) == .none && rule.fire(now: 720) == .retreatToDot, "请回来后又是 2 分钟") - var answered = S.IdleRule(shownAt: 0) - answered.cancel() - t.expect(answered.fire(now: 999) == .none && !answered.restore(now: 1000), "已回答或交给 Touch ID 的不再触发、不再回来") - var never = S.IdleRule(shownAt: 0, requestDeadline: nil) - t.expect(!never.restore(now: 1), "没缩回去就谈不上请回来") - t.finish() } } diff --git a/tests/StripNotchExchangeTests.swift b/tests/StripNotchExchangeTests.swift index a7fac923..2cb0dfc4 100644 --- a/tests/StripNotchExchangeTests.swift +++ b/tests/StripNotchExchangeTests.swift @@ -53,18 +53,15 @@ struct StripNotchExchangeTests { // MARK: 一次拖动的状态 var drag = X.Drag() - expect(drag.update(pointer: under, notch: notch, approvalHolding: false) == .none && !drag.claimsNotchAsGesture, "没开始拖:什么也不变") + expect(drag.update(pointer: under, notch: notch, approvalHolding: false) == .none, "没开始拖:什么也不变") drag.begin(7) expect(drag.update(pointer: faraway, notch: notch, approvalHolding: false) == .none, "远处拖着:没有变化") expect(drag.update(pointer: under, notch: notch, approvalHolding: false) == .showLanding && drag.landing, "进了范围:落点出现") - expect(drag.claimsNotchAsGesture, "靠近刘海算“正在做的手势”") expect(drag.update(pointer: CGPoint(x: under.x + 5, y: under.y), notch: notch, approvalHolding: false) == .none, "范围里继续移动:只出现一次") expect(drag.update(pointer: faraway, notch: notch, approvalHolding: false) == .hideLanding && !drag.landing, "离开范围:落点收回(calm)") - expect(!drag.claimsNotchAsGesture, "收回后不再算手势") _ = drag.update(pointer: under, notch: notch, approvalHolding: false) expect(drag.update(pointer: under, notch: notch, approvalHolding: true) == .hideLanding, "落点出现后放行来了:落点收回") - expect(!drag.claimsNotchAsGesture, "放行占着时不算手势(放行排在手势之上)") _ = drag.update(pointer: under, notch: notch, approvalHolding: false) let tuck = drag.release(pointer: under, notch: notch, approvalHolding: false) expect(tuck.release == .tuck(7) && tuck.change == .hideLanding, "落点上松手:收进刘海,落点收起") From 798e785b225703701398fc2e5f8a631e8d322c1f Mon Sep 17 00:00:00 2001 From: Aaron <12213433+surfine@users.noreply.github.com> Date: Wed, 2 Dec 2026 14:49:47 +0800 Subject: [PATCH 7/9] =?UTF-8?q?chore:=20=E5=88=A0=E6=8E=89=20tests/?= =?UTF-8?q?=E3=80=81tools/=E3=80=81docs/=20=E4=B8=8B=E7=9A=84=20archive=20?= =?UTF-8?q?=E5=BD=92=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 约 4.5 万行已完结轮次的证据快照、一次性研究探针和旧版发布关文档,不参与构建和门禁。 文档里的链接改指 git 历史 026091e9 的永久链接;一并删掉只为 1.0.18 发布关写的 tests/vm/run-updater-phase3-1018.sh(读的正是归档里的清单草稿)。 Co-Authored-By: Claude Opus 5.5 --- docs/DEVELOPMENT.md | 6 +- docs/README.md | 6 +- .../2026-11-02/computer-use-qa-validation.md | 42 - docs/archive/2026-11-02/perf-1018-hotspots.md | 110 - .../2026-11-04/window-browser-progress.md | 2608 ----------- .../slide-over-unminimizable-pullback.md | 12 - .../releases/appcast-item-1.0.18.xml | 22 - .../releases/appcast-item-1.0.19.xml | 22 - .../releases/appcast-item-1.0.20.xml | 14 - .../releases/v1.0.16-release-gate.md | 78 - .../releases/v1.0.17-release-gate.md | 101 - .../releases/v1.0.18-aaron-checklist.md | 60 - .../2026-11-11/releases/v1.0.18-plan.md | 22 - .../releases/v1.0.18-release-gate.md | 114 - .../2026-11-11/update-design-2026-09-29.md | 906 ---- docs/archive/README.md | 12 - docs/code-map.md | 4 +- docs/known-failures.md | 2 +- docs/releases/README.md | 6 +- docs/releases/v1.0.18-defaults.md | 2 +- docs/system-integration-polish.md | 2 +- docs/testing.md | 2 +- docs/update.md | 2 +- .../h4-vision-eval/HeuristicCopy.swift | 87 - tests/archive/h4-vision-eval/main.swift | 100 - .../h4-vision-eval/results-2026-10-16.tsv | 22 - tests/archive/part10/DRIFT.md | 77 - ...16\345\216\237\347\233\256\346\240\207.md" | 33 - ...13\345\256\236\347\272\240\346\255\243.md" | 29 - ...00\347\273\210\350\243\201\345\206\263.md" | 51 - ...17\344\270\216\345\244\215\346\240\270.md" | 33 - ...44\344\270\216\350\257\201\346\215\256.md" | 38 - ...14\346\225\264\346\217\220\347\244\272.md" | 29 - tests/archive/part10/drift.json | 45 - tests/archive/part10/execution-plan.json | 441 -- tests/archive/part10/sources/SOURCES.md | 37 - tests/archive/part10/sources/base-files.json | 1171 ----- tests/archive/part10/sources/code-map.json | 4055 ----------------- tests/archive/part10/sources/code-map.md | 951 ---- .../sources/original-briefs/blueprint.md | 88 - ...37\345\247\213\345\247\224\346\211\230.md" | 86 - ...37\345\247\213\345\247\224\346\211\230.md" | 132 - .../archive/part10/tests/test-build-entry.py | 73 - .../part10/tests/test-handoff-tools.py | 81 - tests/archive/part10/tests/test-journal-id.py | 43 - tests/archive/part10/tests/test-stage.py | 54 - tests/archive/part10/tools/run-final.py | 96 - tests/archive/part10/tools/run-mac-check.py | 52 - tests/archive/part10/tools/stage.py | 120 - tests/archive/part10/tools/verify-package.py | 55 - .../part10/validation/build-entry-tests.json | 64 - .../part10/validation/handoff-tool-tests.json | 72 - .../part10/validation/journal-id-tests.json | 212 - .../part10/validation/tools-tests.json | 79 - ...37\345\256\236\346\236\204\345\273\272.md" | 42 - ...37\345\256\236\351\252\214\346\224\266.md" | 44 - ...34\344\270\216\346\201\242\345\244\215.md" | 56 - ...00\345\220\216\346\262\273\347\220\206.md" | 38 - ...06\345\210\253\346\216\245\351\200\232.md" | 48 - ...36\347\272\277\346\216\245\345\205\245.md" | 52 - ...50\345\216\237\345\205\245\345\217\243.md" | 42 - ...17\350\256\256\350\243\205\351\205\215.md" | 52 - ...45\346\216\247\346\233\277\344\273\243.md" | 41 - ...06\347\241\256\350\276\271\347\225\214.md" | 42 - ...11\345\205\250\350\277\201\347\247\273.md" | 42 - ...21\350\241\214\346\235\220\346\226\231.md" | 42 - tests/archive/part7/fixtures/fake-codex.py | 89 - tests/archive/part7/fixtures/native-child.py | 21 - tests/archive/part7/sources/SOURCES.md | 42 - .../archive/part7/sources/base-manifest.json | 1147 ----- tests/archive/part7/sources/code-map.json | 1516 ------ tests/archive/part7/sources/code-map.md | 441 -- tests/archive/part7/sources/completion.json | 23 - .../part7/sources/privacy-signals.json | 85 - tests/archive/part7/tests/CoreTests.swift | 78 - tests/archive/part7/tests/FlowTests.swift | 184 - tests/archive/part7/tests/NativeTests.swift | 46 - tests/archive/part7/tests/TEST-CASES.md | 54 - tests/archive/part7/tests/TestSupport.swift | 24 - tests/archive/part7/tests/check-build.py | 24 - tests/archive/part7/tests/check-schema.py | 18 - tests/archive/part7/tests/regressions.py | 29 - tests/archive/part7/tests/run-mac-check.sh | 18 - tests/archive/part7/tests/run.py | 28 - tests/archive/part7/tests/test-tools.py | 36 - tests/archive/part7/tools/stage.py | 57 - .../part7/validation/approval-accept.ndjson | 1 - .../part7/validation/build-boundary.json | 81 - .../part7/validation/build-checks.json | 548 --- .../part7/validation/core-commands.json | 65 - .../part7/validation/core-results.json | 137 - .../development/appkit-parse-spacing.txt | 1 - .../development/build-check-interrupted.json | 43 - .../validation/development/flow-first.json | 65 - .../development/logout-params-schema.json | 23 - .../validation/development/native-first.json | 66 - .../development/native-startup-cost.json | 66 - .../strict-json-optional-pattern.txt | 1 - .../validation/exit-inheritance-probe.json | 11 - .../part7/validation/flow-commands.json | 66 - .../part7/validation/flow-outbound.ndjson | 92 - .../part7/validation/flow-results.json | 92 - .../part7/validation/input-integrity.json | 11 - .../part7/validation/mac-check-exit-code.txt | 1 - .../part7/validation/mac-check-not-run.txt | 1 - tests/archive/part7/validation/main.autolink | 16 - .../part7/validation/native-commands.json | 67 - .../part7/validation/native-results.json | 17 - .../validation/regression-PROC04-results.json | 11 - .../regression-part2-outbound.ndjson | 9 - .../regression-part5-core-results.json | 8 - .../regression-part5-process-results.json | 8 - .../regression-part6-core-results.json | 52 - .../regression-part6-process-results.json | 19 - .../regression-part6-wire-outbound.ndjson | 4 - .../regression-part6-wire-results.json | 8 - .../validation/regressions-foundation.json | 241 - .../part7/validation/regressions-process.json | 119 - tests/archive/part7/validation/schema.json | 16 - .../archive/part7/validation/stage-final.json | 7 - .../archive/part7/validation/tools-tests.json | 6 - .../archive/part7/validation/tools-tests.txt | 15 - tests/archive/part8/fixtures/fake-codex.py | 91 - tests/archive/part8/sources/SOURCES.md | 32 - tests/archive/part8/sources/base-files.json | 1159 ----- tests/archive/part8/sources/code-map.json | 3108 ------------- tests/archive/part8/sources/code-map.md | 888 ---- .../archive/part8/sources/primary-fetch.json | 27 - .../archive/part8/sources/privacy-delta.json | 34 - tests/archive/part8/tests/FoldTests.swift | 29 - .../archive/part8/tests/InputFlowTests.swift | 49 - tests/archive/part8/tests/InputHarness.swift | 59 - tests/archive/part8/tests/InputTests.swift | 41 - tests/archive/part8/tests/TEST-CASES.md | 78 - tests/archive/part8/tests/TestLog.swift | 16 - tests/archive/part8/tests/check-build.py | 22 - tests/archive/part8/tests/check-wiring.py | 27 - tests/archive/part8/tests/run-mac-check.sh | 18 - tests/archive/part8/tests/run.py | 33 - tests/archive/part8/tests/test-tools.py | 54 - tests/archive/part8/tools/stage.py | 120 - .../part8/validation/build-boundary.json | 88 - .../part8/validation/build-checks.json | 588 --- .../part8/validation/flow-commands.json | 74 - .../part8/validation/flow-results.json | 32 - .../part8/validation/fold-commands.json | 30 - .../part8/validation/fold-results.json | 107 - .../part8/validation/input-commands.json | 38 - .../part8/validation/input-results.json | 167 - .../regressions/legacy/approval-accept.ndjson | 1 - .../regressions/legacy/core-results.json | 367 -- .../legacy/regression-PROC04-results.json | 11 - .../legacy/regression-part2-outbound.ndjson | 9 - .../legacy/regression-part5-core-results.json | 8 - .../regression-part5-process-results.json | 8 - .../legacy/regression-part6-core-results.json | 52 - .../regression-part6-process-results.json | 19 - .../regression-part6-wire-outbound.ndjson | 4 - .../legacy/regression-part6-wire-results.json | 8 - .../legacy/regressions-foundation.json | 241 - .../legacy/regressions-process.json | 119 - .../regressions/part7/core-commands.json | 65 - .../regressions/part7/core-results.json | 137 - .../regressions/part7/flow-commands.json | 66 - .../regressions/part7/flow-outbound.ndjson | 92 - .../regressions/part7/flow-results.json | 92 - .../regressions/part7/native-commands.json | 67 - .../regressions/part7/native-results.json | 17 - .../archive/part8/validation/tools-tests.json | 79 - .../part8/validation/wiring-static.json | 76 - tests/archive/part9/base-files.json | 1169 ----- tests/archive/part9/manifest.json | 103 - tests/archive/part9/sources/SOURCES.md | 27 - tests/archive/part9/sources/base-files.json | 1166 ----- tests/archive/part9/sources/code-map.json | 1758 ------- tests/archive/part9/sources/code-map.md | 437 -- .../part9/sources/privacy-signals.json | 55 - tests/archive/part9/tests/FrameTests.swift | 52 - .../archive/part9/tests/RegressionTests.swift | 228 - tests/archive/part9/tests/TEST-CASES.md | 70 - tests/archive/part9/tests/check-build.py | 20 - tests/archive/part9/tests/check-wiring.py | 36 - tests/archive/part9/tests/reproduce-v8.py | 37 - tests/archive/part9/tests/run-mac-check.sh | 18 - tests/archive/part9/tests/run-previous.py | 35 - tests/archive/part9/tests/run.py | 16 - tests/archive/part9/tests/test-tools.py | 54 - tests/archive/part9/tools/stage.py | 120 - tests/archive/part9/tools/verify-package.py | 55 - .../part9/validation/artifact-tree-check.json | 10 - .../validation/baseline-reproduction.json | 35 - .../part9/validation/build-boundary.json | 93 - .../part9/validation/build-commands.json | 615 --- .../development/duo-static-old-signature.json | 45 - .../duo-swift6-original-isolation.json | 26 - .../development/frame-test-task-result.json | 19 - .../weak-delivery-capture-compile.json | 21 - .../part9/validation/frame-commands.json | 29 - .../part9/validation/frame-results.json | 68 - .../validation/input-and-stage-integrity.json | 43 - .../archive/part9/validation/mac-not-run.json | 12 - .../part9/validation/regression-commands.json | 31 - .../part9/validation/regression-results.json | 221 - .../validation/regressions/duo/commands.json | 45 - .../validation/regressions/duo/suite.json | 7 - .../legacy-foundation/approval-accept.ndjson | 1 - .../legacy-foundation/commands.json | 20 - .../legacy-foundation/core-results.json | 367 -- .../regression-part2-outbound.ndjson | 9 - .../regression-part5-core-results.json | 8 - .../regression-part6-core-results.json | 52 - .../regression-part6-wire-outbound.ndjson | 4 - .../regression-part6-wire-results.json | 8 - .../regressions-foundation.json | 241 - .../regressions/legacy-foundation/suite.json | 7 - .../regressions/legacy-process/commands.json | 20 - .../regression-PROC04-results.json | 11 - .../regression-part5-process-results.json | 8 - .../regression-part6-process-results.json | 19 - .../legacy-process/regressions-process.json | 119 - .../regressions/legacy-process/suite.json | 7 - .../regressions/part7-core/commands.json | 16 - .../regressions/part7-core/core-commands.json | 65 - .../regressions/part7-core/core-results.json | 137 - .../regressions/part7-core/suite.json | 7 - .../regressions/part7-flow/commands.json | 16 - .../regressions/part7-flow/flow-commands.json | 68 - .../part7-flow/flow-outbound.ndjson | 92 - .../regressions/part7-flow/flow-results.json | 92 - .../regressions/part7-flow/suite.json | 7 - .../regressions/part7-native/commands.json | 16 - .../part7-native/native-commands.json | 67 - .../part7-native/native-results.json | 17 - .../regressions/part7-native/suite.json | 7 - .../regressions/part8-flow/commands.json | 16 - .../regressions/part8-flow/flow-commands.json | 74 - .../regressions/part8-flow/flow-results.json | 32 - .../regressions/part8-flow/suite.json | 7 - .../regressions/part8-fold/commands.json | 16 - .../regressions/part8-fold/fold-commands.json | 30 - .../regressions/part8-fold/fold-results.json | 107 - .../regressions/part8-fold/suite.json | 7 - .../regressions/part8-input/commands.json | 16 - .../part8-input/input-commands.json | 38 - .../part8-input/input-results.json | 167 - .../regressions/part8-input/suite.json | 7 - .../stage-existing-output-refused.json | 15 - tests/archive/part9/validation/stage.json | 15 - .../archive/part9/validation/tools-tests.json | 79 - .../part9/validation/wiring-static.json | 128 - tests/vm/run-updater-phase3-1018.sh | 126 - tools/archive/accessory-probe/README.md | 20 - tools/archive/accessory-probe/main.swift | 136 - tools/archive/accessory-probe/run.sh | 41 - .../archive/activity-source-probe/main.swift | 26 - tools/archive/activity-source-probe/run.sh | 8 - .../archive/capture-color/compare-srgb-p3.py | 111 - .../Batch26CombinedEntry.inputs.json | 10 - .../Batch26CombinedEntry.swift | 355 -- .../BrowserSettingsPreview.swift | 112 - .../CalendarCardPreview.swift | 50 - .../ConductorSurfacePreview.swift | 64 - .../CountdownTimerCardPreview.swift | 51 - .../FeedbackPreview.swift | 619 --- .../design-qa-batch23-29/FileNameChecks.swift | 23 - .../FileShelfStatePreview.swift | 128 - .../FileShelfSurfacePreview.swift | 78 - .../FocusTimerCardPreview.swift | 54 - .../HostSurfacePreview.swift | 125 - .../MediaArtworkPreview.swift | 87 - .../MediaFeedbackPreview.swift | 110 - .../MediaOwnedStatePreview.swift | 192 - .../MediaSurfacePreview.swift | 90 - .../MergedRowPreview.swift | 96 - .../MorphRetargetMathPreview.swift | 163 - .../NotchMotionPreview.swift | 143 - .../NotchRetargetPreview.swift | 236 - .../OwnedErrorFlowChecks.swift | 58 - .../OwnedPhasePreview.swift | 500 -- .../OwnedScrollPreview.swift | 140 - .../OwnedStatePreview.swift | 91 - .../PowerEarPreview.swift | 71 - .../PrivacyDetailColumnDraftPreview.swift | 91 - .../PrivacyPageCompositionPreview.swift | 99 - .../PrivacyRowPreview.swift | 67 - .../ProgressQuantityPreview.swift | 119 - tools/archive/design-qa-batch23-29/README.md | 6 - .../SettingsShadeLanguagePreview.swift | 298 -- .../SilentPageLanguagePreview.swift | 97 - .../SpringVelocityUnitsPreview.swift | 32 - .../UsageDetailDraftPreview.swift | 170 - .../UsageQuantityPreview.swift | 140 - .../WelcomeStatePreview.swift | 59 - .../WindowBrowserGridTitlePreview.swift | 78 - .../WindowBrowserImagePreview.swift | 126 - .../WindowBrowserStatePreview.swift | 113 - .../artwork-palette-check.md | 69 - .../check-batch26-native.py | 365 -- .../check-browser-settings-preview.py | 43 - .../check-english-bundle-path.swift | 76 - .../check-feedback-preview.py | 59 - .../check-fileshelf-preview.py | 37 - .../check-fileshelf-state-preview.py | 56 - .../check-grid-title-preview.py | 42 - .../check-media-owned-state-preview.py | 45 - .../check-media-preview.py | 41 - .../check-merged-row-preview.py | 54 - .../check-notch-motion-preview.py | 259 -- .../check-notch-retarget-preview.py | 35 - .../check-owned-navigation.py | 38 - .../check-owned-preview.py | 58 - .../check-owned-scroll-preview.py | 49 - .../check-power-ear-preview.py | 27 - .../check-privacy-column-draft.py | 45 - .../check-privacy-column-production.py | 54 - .../check-privacy-page-composition.py | 40 - .../check-privacy-row-preview.py | 47 - .../check-progress-quantity-preview.py | 382 -- .../check-settings-shade-language-preview.py | 234 - .../check-spring-velocity-units.py | 22 - .../check-usage-detail-preview.py | 52 - .../check-usage-quantity-preview.py | 60 - .../check-welcome-state-preview.py | 29 - .../check-window-browser-preview.py | 67 - .../check-window-image-fixtures.py | 49 - .../check-window-image-preview.py | 52 - .../make-batch26-entry.py | 63 - .../make-window-image-fixtures.py | 218 - .../media-boundary-review.md | 16 - .../merge-batch27-catalog.py | 257 -- .../design-qa-batch23-29/power-flash-check.md | 3 - .../render-calendar-card.sh | 28 - .../render-countdown-card.sh | 29 - .../design-qa-batch23-29/render-focus-card.sh | 30 - .../render-native-surfaces.sh | 119 - .../run-batch27-before-tree.sh | 61 - .../run-file-name-checks.py | 24 - .../run-owned-error-flow.sh | 13 - .../run-settings-shade-language-preview.sh | 11 - .../run-silent-page-language-preview.sh | 11 - tools/archive/power-context-probe/README.md | 41 - tools/archive/power-context-probe/main.swift | 149 - tools/archive/power-context-probe/run.sh | 22 - tools/archive/user-switch-probe/REPORT.md | 40 - .../user-switch-probe/UserSwitchProbe.c | 33 - tools/archive/user-switch-probe/run.sh | 7 - .../archive/window-snapshot-check/main.swift | 159 - tools/archive/window-snapshot-check/run.sh | 22 - 348 files changed, 16 insertions(+), 46176 deletions(-) delete mode 100644 docs/archive/2026-11-02/computer-use-qa-validation.md delete mode 100644 docs/archive/2026-11-02/perf-1018-hotspots.md delete mode 100644 docs/archive/2026-11-04/window-browser-progress.md delete mode 100644 docs/archive/2026-11-10/slide-over-unminimizable-pullback.md delete mode 100644 docs/archive/2026-11-11/releases/appcast-item-1.0.18.xml delete mode 100644 docs/archive/2026-11-11/releases/appcast-item-1.0.19.xml delete mode 100644 docs/archive/2026-11-11/releases/appcast-item-1.0.20.xml delete mode 100644 docs/archive/2026-11-11/releases/v1.0.16-release-gate.md delete mode 100644 docs/archive/2026-11-11/releases/v1.0.17-release-gate.md delete mode 100644 docs/archive/2026-11-11/releases/v1.0.18-aaron-checklist.md delete mode 100644 docs/archive/2026-11-11/releases/v1.0.18-plan.md delete mode 100644 docs/archive/2026-11-11/releases/v1.0.18-release-gate.md delete mode 100644 docs/archive/2026-11-11/update-design-2026-09-29.md delete mode 100644 docs/archive/README.md delete mode 100644 tests/archive/h4-vision-eval/HeuristicCopy.swift delete mode 100644 tests/archive/h4-vision-eval/main.swift delete mode 100644 tests/archive/h4-vision-eval/results-2026-10-16.tsv delete mode 100644 tests/archive/part10/DRIFT.md delete mode 100644 "tests/archive/part10/docs/01-\346\234\200\347\273\210\345\210\244\346\226\255\344\270\216\345\216\237\347\233\256\346\240\207.md" delete mode 100644 "tests/archive/part10/docs/02-\346\234\254\346\254\241\344\277\256\345\244\215\344\270\216\344\272\213\345\256\236\347\272\240\346\255\243.md" delete mode 100644 "tests/archive/part10/docs/03-\345\256\236\347\216\260\350\276\271\347\225\214\347\232\204\346\234\200\347\273\210\350\243\201\345\206\263.md" delete mode 100644 "tests/archive/part10/docs/04-\346\211\247\350\241\214\351\241\272\345\272\217\344\270\216\345\244\215\346\240\270.md" delete mode 100644 "tests/archive/part10/docs/05-\351\252\214\346\224\266\345\221\275\344\273\244\344\270\216\350\257\201\346\215\256.md" delete mode 100644 "tests/archive/part10/docs/06-\344\272\244\347\273\231\346\211\247\350\241\214\346\250\241\345\236\213\347\232\204\345\256\214\346\225\264\346\217\220\347\244\272.md" delete mode 100644 tests/archive/part10/drift.json delete mode 100644 tests/archive/part10/execution-plan.json delete mode 100644 tests/archive/part10/sources/SOURCES.md delete mode 100644 tests/archive/part10/sources/base-files.json delete mode 100644 tests/archive/part10/sources/code-map.json delete mode 100644 tests/archive/part10/sources/code-map.md delete mode 100644 tests/archive/part10/sources/original-briefs/blueprint.md delete mode 100644 "tests/archive/part10/sources/original-briefs/round1-\345\216\237\345\247\213\345\247\224\346\211\230.md" delete mode 100644 "tests/archive/part10/sources/original-briefs/round2-\345\216\237\345\247\213\345\247\224\346\211\230.md" delete mode 100644 tests/archive/part10/tests/test-build-entry.py delete mode 100644 tests/archive/part10/tests/test-handoff-tools.py delete mode 100644 tests/archive/part10/tests/test-journal-id.py delete mode 100644 tests/archive/part10/tests/test-stage.py delete mode 100644 tests/archive/part10/tools/run-final.py delete mode 100644 tests/archive/part10/tools/run-mac-check.py delete mode 100644 tests/archive/part10/tools/stage.py delete mode 100644 tests/archive/part10/tools/verify-package.py delete mode 100644 tests/archive/part10/validation/build-entry-tests.json delete mode 100644 tests/archive/part10/validation/handoff-tool-tests.json delete mode 100644 tests/archive/part10/validation/journal-id-tests.json delete mode 100644 tests/archive/part10/validation/tools-tests.json delete mode 100644 "tests/archive/part10/workorders/W00-\345\206\273\347\273\223\345\200\231\351\200\211\344\270\216\347\234\237\345\256\236\346\236\204\345\273\272.md" delete mode 100644 "tests/archive/part10/workorders/W01-\345\267\262\346\234\211\345\212\237\350\203\275\347\232\204\344\270\211\346\235\241\347\234\237\345\256\236\351\252\214\346\224\266.md" delete mode 100644 "tests/archive/part10/workorders/W02-\347\225\252\350\214\204\351\222\237\345\256\236\351\231\205\347\252\227\345\217\243\346\225\210\346\236\234\344\270\216\346\201\242\345\244\215.md" delete mode 100644 "tests/archive/part10/workorders/W03-\346\205\242AX\344\270\216\350\277\207\346\234\237\345\233\236\350\260\203\347\232\204\346\234\200\345\220\216\346\262\273\347\220\206.md" delete mode 100644 "tests/archive/part10/workorders/W04-\345\216\237\347\224\237\346\211\271\345\207\206\344\270\216\345\244\226\351\203\250hook\345\210\206\345\210\253\346\216\245\351\200\232.md" delete mode 100644 "tests/archive/part10/workorders/W05-\346\214\207\346\214\245\351\241\265\351\235\242\345\222\214\345\205\266\344\275\231\350\276\223\345\205\245\347\232\204\345\256\236\347\272\277\346\216\245\345\205\245.md" delete mode 100644 "tests/archive/part10/workorders/W06-\347\224\265\351\207\217\345\256\236\346\227\266\346\264\273\345\212\250\345\222\214\345\205\250\351\203\250\345\216\237\345\205\245\345\217\243.md" delete mode 100644 "tests/archive/part10/workorders/W07-\351\205\215\345\257\271\345\257\206\351\222\245\344\270\216\346\216\245\346\224\266\345\215\217\350\256\256\350\243\205\351\205\215.md" delete mode 100644 "tests/archive/part10/workorders/W08-\345\256\214\346\225\264CarPlay\346\216\245\346\224\266\350\200\214\351\235\236\351\201\245\346\216\247\346\233\277\344\273\243.md" delete mode 100644 "tests/archive/part10/workorders/W09-\347\263\273\347\273\237\351\224\201\344\270\216\350\272\253\344\273\275\345\256\236\351\252\214\347\232\204\345\207\206\347\241\256\350\276\271\347\225\214.md" delete mode 100644 "tests/archive/part10/workorders/W10-\351\232\220\347\247\201\346\201\242\345\244\215\346\225\260\346\215\256\345\222\214\345\256\211\345\205\250\350\277\201\347\247\273.md" delete mode 100644 "tests/archive/part10/workorders/W11-\345\205\250\351\207\217\351\252\214\346\224\266\345\275\261\347\211\207\345\222\214\345\217\221\350\241\214\346\235\220\346\226\231.md" delete mode 100644 tests/archive/part7/fixtures/fake-codex.py delete mode 100644 tests/archive/part7/fixtures/native-child.py delete mode 100644 tests/archive/part7/sources/SOURCES.md delete mode 100644 tests/archive/part7/sources/base-manifest.json delete mode 100644 tests/archive/part7/sources/code-map.json delete mode 100644 tests/archive/part7/sources/code-map.md delete mode 100644 tests/archive/part7/sources/completion.json delete mode 100644 tests/archive/part7/sources/privacy-signals.json delete mode 100644 tests/archive/part7/tests/CoreTests.swift delete mode 100644 tests/archive/part7/tests/FlowTests.swift delete mode 100644 tests/archive/part7/tests/NativeTests.swift delete mode 100644 tests/archive/part7/tests/TEST-CASES.md delete mode 100644 tests/archive/part7/tests/TestSupport.swift delete mode 100644 tests/archive/part7/tests/check-build.py delete mode 100644 tests/archive/part7/tests/check-schema.py delete mode 100644 tests/archive/part7/tests/regressions.py delete mode 100644 tests/archive/part7/tests/run-mac-check.sh delete mode 100644 tests/archive/part7/tests/run.py delete mode 100644 tests/archive/part7/tests/test-tools.py delete mode 100644 tests/archive/part7/tools/stage.py delete mode 100644 tests/archive/part7/validation/approval-accept.ndjson delete mode 100644 tests/archive/part7/validation/build-boundary.json delete mode 100644 tests/archive/part7/validation/build-checks.json delete mode 100644 tests/archive/part7/validation/core-commands.json delete mode 100644 tests/archive/part7/validation/core-results.json delete mode 100644 tests/archive/part7/validation/development/appkit-parse-spacing.txt delete mode 100644 tests/archive/part7/validation/development/build-check-interrupted.json delete mode 100644 tests/archive/part7/validation/development/flow-first.json delete mode 100644 tests/archive/part7/validation/development/logout-params-schema.json delete mode 100644 tests/archive/part7/validation/development/native-first.json delete mode 100644 tests/archive/part7/validation/development/native-startup-cost.json delete mode 100644 tests/archive/part7/validation/development/strict-json-optional-pattern.txt delete mode 100644 tests/archive/part7/validation/exit-inheritance-probe.json delete mode 100644 tests/archive/part7/validation/flow-commands.json delete mode 100644 tests/archive/part7/validation/flow-outbound.ndjson delete mode 100644 tests/archive/part7/validation/flow-results.json delete mode 100644 tests/archive/part7/validation/input-integrity.json delete mode 100644 tests/archive/part7/validation/mac-check-exit-code.txt delete mode 100644 tests/archive/part7/validation/mac-check-not-run.txt delete mode 100644 tests/archive/part7/validation/main.autolink delete mode 100644 tests/archive/part7/validation/native-commands.json delete mode 100644 tests/archive/part7/validation/native-results.json delete mode 100644 tests/archive/part7/validation/regression-PROC04-results.json delete mode 100644 tests/archive/part7/validation/regression-part2-outbound.ndjson delete mode 100644 tests/archive/part7/validation/regression-part5-core-results.json delete mode 100644 tests/archive/part7/validation/regression-part5-process-results.json delete mode 100644 tests/archive/part7/validation/regression-part6-core-results.json delete mode 100644 tests/archive/part7/validation/regression-part6-process-results.json delete mode 100644 tests/archive/part7/validation/regression-part6-wire-outbound.ndjson delete mode 100644 tests/archive/part7/validation/regression-part6-wire-results.json delete mode 100644 tests/archive/part7/validation/regressions-foundation.json delete mode 100644 tests/archive/part7/validation/regressions-process.json delete mode 100644 tests/archive/part7/validation/schema.json delete mode 100644 tests/archive/part7/validation/stage-final.json delete mode 100644 tests/archive/part7/validation/tools-tests.json delete mode 100644 tests/archive/part7/validation/tools-tests.txt delete mode 100644 tests/archive/part8/fixtures/fake-codex.py delete mode 100644 tests/archive/part8/sources/SOURCES.md delete mode 100644 tests/archive/part8/sources/base-files.json delete mode 100644 tests/archive/part8/sources/code-map.json delete mode 100644 tests/archive/part8/sources/code-map.md delete mode 100644 tests/archive/part8/sources/primary-fetch.json delete mode 100644 tests/archive/part8/sources/privacy-delta.json delete mode 100644 tests/archive/part8/tests/FoldTests.swift delete mode 100644 tests/archive/part8/tests/InputFlowTests.swift delete mode 100644 tests/archive/part8/tests/InputHarness.swift delete mode 100644 tests/archive/part8/tests/InputTests.swift delete mode 100644 tests/archive/part8/tests/TEST-CASES.md delete mode 100644 tests/archive/part8/tests/TestLog.swift delete mode 100644 tests/archive/part8/tests/check-build.py delete mode 100644 tests/archive/part8/tests/check-wiring.py delete mode 100755 tests/archive/part8/tests/run-mac-check.sh delete mode 100644 tests/archive/part8/tests/run.py delete mode 100644 tests/archive/part8/tests/test-tools.py delete mode 100755 tests/archive/part8/tools/stage.py delete mode 100644 tests/archive/part8/validation/build-boundary.json delete mode 100644 tests/archive/part8/validation/build-checks.json delete mode 100644 tests/archive/part8/validation/flow-commands.json delete mode 100644 tests/archive/part8/validation/flow-results.json delete mode 100644 tests/archive/part8/validation/fold-commands.json delete mode 100644 tests/archive/part8/validation/fold-results.json delete mode 100644 tests/archive/part8/validation/input-commands.json delete mode 100644 tests/archive/part8/validation/input-results.json delete mode 100644 tests/archive/part8/validation/regressions/legacy/approval-accept.ndjson delete mode 100644 tests/archive/part8/validation/regressions/legacy/core-results.json delete mode 100644 tests/archive/part8/validation/regressions/legacy/regression-PROC04-results.json delete mode 100644 tests/archive/part8/validation/regressions/legacy/regression-part2-outbound.ndjson delete mode 100644 tests/archive/part8/validation/regressions/legacy/regression-part5-core-results.json delete mode 100644 tests/archive/part8/validation/regressions/legacy/regression-part5-process-results.json delete mode 100644 tests/archive/part8/validation/regressions/legacy/regression-part6-core-results.json delete mode 100644 tests/archive/part8/validation/regressions/legacy/regression-part6-process-results.json delete mode 100644 tests/archive/part8/validation/regressions/legacy/regression-part6-wire-outbound.ndjson delete mode 100644 tests/archive/part8/validation/regressions/legacy/regression-part6-wire-results.json delete mode 100644 tests/archive/part8/validation/regressions/legacy/regressions-foundation.json delete mode 100644 tests/archive/part8/validation/regressions/legacy/regressions-process.json delete mode 100644 tests/archive/part8/validation/regressions/part7/core-commands.json delete mode 100644 tests/archive/part8/validation/regressions/part7/core-results.json delete mode 100644 tests/archive/part8/validation/regressions/part7/flow-commands.json delete mode 100644 tests/archive/part8/validation/regressions/part7/flow-outbound.ndjson delete mode 100644 tests/archive/part8/validation/regressions/part7/flow-results.json delete mode 100644 tests/archive/part8/validation/regressions/part7/native-commands.json delete mode 100644 tests/archive/part8/validation/regressions/part7/native-results.json delete mode 100644 tests/archive/part8/validation/tools-tests.json delete mode 100644 tests/archive/part8/validation/wiring-static.json delete mode 100644 tests/archive/part9/base-files.json delete mode 100644 tests/archive/part9/manifest.json delete mode 100644 tests/archive/part9/sources/SOURCES.md delete mode 100644 tests/archive/part9/sources/base-files.json delete mode 100644 tests/archive/part9/sources/code-map.json delete mode 100644 tests/archive/part9/sources/code-map.md delete mode 100644 tests/archive/part9/sources/privacy-signals.json delete mode 100644 tests/archive/part9/tests/FrameTests.swift delete mode 100644 tests/archive/part9/tests/RegressionTests.swift delete mode 100644 tests/archive/part9/tests/TEST-CASES.md delete mode 100644 tests/archive/part9/tests/check-build.py delete mode 100644 tests/archive/part9/tests/check-wiring.py delete mode 100644 tests/archive/part9/tests/reproduce-v8.py delete mode 100644 tests/archive/part9/tests/run-mac-check.sh delete mode 100644 tests/archive/part9/tests/run-previous.py delete mode 100644 tests/archive/part9/tests/run.py delete mode 100644 tests/archive/part9/tests/test-tools.py delete mode 100644 tests/archive/part9/tools/stage.py delete mode 100644 tests/archive/part9/tools/verify-package.py delete mode 100644 tests/archive/part9/validation/artifact-tree-check.json delete mode 100644 tests/archive/part9/validation/baseline-reproduction.json delete mode 100644 tests/archive/part9/validation/build-boundary.json delete mode 100644 tests/archive/part9/validation/build-commands.json delete mode 100644 tests/archive/part9/validation/development/duo-static-old-signature.json delete mode 100644 tests/archive/part9/validation/development/duo-swift6-original-isolation.json delete mode 100644 tests/archive/part9/validation/development/frame-test-task-result.json delete mode 100644 tests/archive/part9/validation/development/weak-delivery-capture-compile.json delete mode 100644 tests/archive/part9/validation/frame-commands.json delete mode 100644 tests/archive/part9/validation/frame-results.json delete mode 100644 tests/archive/part9/validation/input-and-stage-integrity.json delete mode 100644 tests/archive/part9/validation/mac-not-run.json delete mode 100644 tests/archive/part9/validation/regression-commands.json delete mode 100644 tests/archive/part9/validation/regression-results.json delete mode 100644 tests/archive/part9/validation/regressions/duo/commands.json delete mode 100644 tests/archive/part9/validation/regressions/duo/suite.json delete mode 100644 tests/archive/part9/validation/regressions/legacy-foundation/approval-accept.ndjson delete mode 100644 tests/archive/part9/validation/regressions/legacy-foundation/commands.json delete mode 100644 tests/archive/part9/validation/regressions/legacy-foundation/core-results.json delete mode 100644 tests/archive/part9/validation/regressions/legacy-foundation/regression-part2-outbound.ndjson delete mode 100644 tests/archive/part9/validation/regressions/legacy-foundation/regression-part5-core-results.json delete mode 100644 tests/archive/part9/validation/regressions/legacy-foundation/regression-part6-core-results.json delete mode 100644 tests/archive/part9/validation/regressions/legacy-foundation/regression-part6-wire-outbound.ndjson delete mode 100644 tests/archive/part9/validation/regressions/legacy-foundation/regression-part6-wire-results.json delete mode 100644 tests/archive/part9/validation/regressions/legacy-foundation/regressions-foundation.json delete mode 100644 tests/archive/part9/validation/regressions/legacy-foundation/suite.json delete mode 100644 tests/archive/part9/validation/regressions/legacy-process/commands.json delete mode 100644 tests/archive/part9/validation/regressions/legacy-process/regression-PROC04-results.json delete mode 100644 tests/archive/part9/validation/regressions/legacy-process/regression-part5-process-results.json delete mode 100644 tests/archive/part9/validation/regressions/legacy-process/regression-part6-process-results.json delete mode 100644 tests/archive/part9/validation/regressions/legacy-process/regressions-process.json delete mode 100644 tests/archive/part9/validation/regressions/legacy-process/suite.json delete mode 100644 tests/archive/part9/validation/regressions/part7-core/commands.json delete mode 100644 tests/archive/part9/validation/regressions/part7-core/core-commands.json delete mode 100644 tests/archive/part9/validation/regressions/part7-core/core-results.json delete mode 100644 tests/archive/part9/validation/regressions/part7-core/suite.json delete mode 100644 tests/archive/part9/validation/regressions/part7-flow/commands.json delete mode 100644 tests/archive/part9/validation/regressions/part7-flow/flow-commands.json delete mode 100644 tests/archive/part9/validation/regressions/part7-flow/flow-outbound.ndjson delete mode 100644 tests/archive/part9/validation/regressions/part7-flow/flow-results.json delete mode 100644 tests/archive/part9/validation/regressions/part7-flow/suite.json delete mode 100644 tests/archive/part9/validation/regressions/part7-native/commands.json delete mode 100644 tests/archive/part9/validation/regressions/part7-native/native-commands.json delete mode 100644 tests/archive/part9/validation/regressions/part7-native/native-results.json delete mode 100644 tests/archive/part9/validation/regressions/part7-native/suite.json delete mode 100644 tests/archive/part9/validation/regressions/part8-flow/commands.json delete mode 100644 tests/archive/part9/validation/regressions/part8-flow/flow-commands.json delete mode 100644 tests/archive/part9/validation/regressions/part8-flow/flow-results.json delete mode 100644 tests/archive/part9/validation/regressions/part8-flow/suite.json delete mode 100644 tests/archive/part9/validation/regressions/part8-fold/commands.json delete mode 100644 tests/archive/part9/validation/regressions/part8-fold/fold-commands.json delete mode 100644 tests/archive/part9/validation/regressions/part8-fold/fold-results.json delete mode 100644 tests/archive/part9/validation/regressions/part8-fold/suite.json delete mode 100644 tests/archive/part9/validation/regressions/part8-input/commands.json delete mode 100644 tests/archive/part9/validation/regressions/part8-input/input-commands.json delete mode 100644 tests/archive/part9/validation/regressions/part8-input/input-results.json delete mode 100644 tests/archive/part9/validation/regressions/part8-input/suite.json delete mode 100644 tests/archive/part9/validation/stage-existing-output-refused.json delete mode 100644 tests/archive/part9/validation/stage.json delete mode 100644 tests/archive/part9/validation/tools-tests.json delete mode 100644 tests/archive/part9/validation/wiring-static.json delete mode 100755 tests/vm/run-updater-phase3-1018.sh delete mode 100644 tools/archive/accessory-probe/README.md delete mode 100644 tools/archive/accessory-probe/main.swift delete mode 100644 tools/archive/accessory-probe/run.sh delete mode 100644 tools/archive/activity-source-probe/main.swift delete mode 100644 tools/archive/activity-source-probe/run.sh delete mode 100644 tools/archive/capture-color/compare-srgb-p3.py delete mode 100644 tools/archive/design-qa-batch23-29/Batch26CombinedEntry.inputs.json delete mode 100644 tools/archive/design-qa-batch23-29/Batch26CombinedEntry.swift delete mode 100644 tools/archive/design-qa-batch23-29/BrowserSettingsPreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/CalendarCardPreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/ConductorSurfacePreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/CountdownTimerCardPreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/FeedbackPreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/FileNameChecks.swift delete mode 100644 tools/archive/design-qa-batch23-29/FileShelfStatePreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/FileShelfSurfacePreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/FocusTimerCardPreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/HostSurfacePreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/MediaArtworkPreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/MediaFeedbackPreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/MediaOwnedStatePreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/MediaSurfacePreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/MergedRowPreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/MorphRetargetMathPreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/NotchMotionPreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/NotchRetargetPreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/OwnedErrorFlowChecks.swift delete mode 100644 tools/archive/design-qa-batch23-29/OwnedPhasePreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/OwnedScrollPreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/OwnedStatePreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/PowerEarPreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/PrivacyDetailColumnDraftPreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/PrivacyPageCompositionPreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/PrivacyRowPreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/ProgressQuantityPreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/README.md delete mode 100644 tools/archive/design-qa-batch23-29/SettingsShadeLanguagePreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/SilentPageLanguagePreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/SpringVelocityUnitsPreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/UsageDetailDraftPreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/UsageQuantityPreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/WelcomeStatePreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/WindowBrowserGridTitlePreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/WindowBrowserImagePreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/WindowBrowserStatePreview.swift delete mode 100644 tools/archive/design-qa-batch23-29/artwork-palette-check.md delete mode 100644 tools/archive/design-qa-batch23-29/check-batch26-native.py delete mode 100644 tools/archive/design-qa-batch23-29/check-browser-settings-preview.py delete mode 100644 tools/archive/design-qa-batch23-29/check-english-bundle-path.swift delete mode 100644 tools/archive/design-qa-batch23-29/check-feedback-preview.py delete mode 100644 tools/archive/design-qa-batch23-29/check-fileshelf-preview.py delete mode 100644 tools/archive/design-qa-batch23-29/check-fileshelf-state-preview.py delete mode 100644 tools/archive/design-qa-batch23-29/check-grid-title-preview.py delete mode 100644 tools/archive/design-qa-batch23-29/check-media-owned-state-preview.py delete mode 100644 tools/archive/design-qa-batch23-29/check-media-preview.py delete mode 100644 tools/archive/design-qa-batch23-29/check-merged-row-preview.py delete mode 100644 tools/archive/design-qa-batch23-29/check-notch-motion-preview.py delete mode 100644 tools/archive/design-qa-batch23-29/check-notch-retarget-preview.py delete mode 100644 tools/archive/design-qa-batch23-29/check-owned-navigation.py delete mode 100644 tools/archive/design-qa-batch23-29/check-owned-preview.py delete mode 100644 tools/archive/design-qa-batch23-29/check-owned-scroll-preview.py delete mode 100644 tools/archive/design-qa-batch23-29/check-power-ear-preview.py delete mode 100644 tools/archive/design-qa-batch23-29/check-privacy-column-draft.py delete mode 100644 tools/archive/design-qa-batch23-29/check-privacy-column-production.py delete mode 100644 tools/archive/design-qa-batch23-29/check-privacy-page-composition.py delete mode 100644 tools/archive/design-qa-batch23-29/check-privacy-row-preview.py delete mode 100644 tools/archive/design-qa-batch23-29/check-progress-quantity-preview.py delete mode 100644 tools/archive/design-qa-batch23-29/check-settings-shade-language-preview.py delete mode 100644 tools/archive/design-qa-batch23-29/check-spring-velocity-units.py delete mode 100644 tools/archive/design-qa-batch23-29/check-usage-detail-preview.py delete mode 100644 tools/archive/design-qa-batch23-29/check-usage-quantity-preview.py delete mode 100644 tools/archive/design-qa-batch23-29/check-welcome-state-preview.py delete mode 100644 tools/archive/design-qa-batch23-29/check-window-browser-preview.py delete mode 100644 tools/archive/design-qa-batch23-29/check-window-image-fixtures.py delete mode 100644 tools/archive/design-qa-batch23-29/check-window-image-preview.py delete mode 100644 tools/archive/design-qa-batch23-29/make-batch26-entry.py delete mode 100644 tools/archive/design-qa-batch23-29/make-window-image-fixtures.py delete mode 100644 tools/archive/design-qa-batch23-29/media-boundary-review.md delete mode 100644 tools/archive/design-qa-batch23-29/merge-batch27-catalog.py delete mode 100644 tools/archive/design-qa-batch23-29/power-flash-check.md delete mode 100644 tools/archive/design-qa-batch23-29/render-calendar-card.sh delete mode 100644 tools/archive/design-qa-batch23-29/render-countdown-card.sh delete mode 100644 tools/archive/design-qa-batch23-29/render-focus-card.sh delete mode 100644 tools/archive/design-qa-batch23-29/render-native-surfaces.sh delete mode 100644 tools/archive/design-qa-batch23-29/run-batch27-before-tree.sh delete mode 100644 tools/archive/design-qa-batch23-29/run-file-name-checks.py delete mode 100644 tools/archive/design-qa-batch23-29/run-owned-error-flow.sh delete mode 100644 tools/archive/design-qa-batch23-29/run-settings-shade-language-preview.sh delete mode 100644 tools/archive/design-qa-batch23-29/run-silent-page-language-preview.sh delete mode 100644 tools/archive/power-context-probe/README.md delete mode 100644 tools/archive/power-context-probe/main.swift delete mode 100644 tools/archive/power-context-probe/run.sh delete mode 100644 tools/archive/user-switch-probe/REPORT.md delete mode 100644 tools/archive/user-switch-probe/UserSwitchProbe.c delete mode 100755 tools/archive/user-switch-probe/run.sh delete mode 100644 tools/archive/window-snapshot-check/main.swift delete mode 100644 tools/archive/window-snapshot-check/run.sh diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md index de5787de..658e0dc2 100644 --- a/docs/DEVELOPMENT.md +++ b/docs/DEVELOPMENT.md @@ -16,7 +16,7 @@ 现在是 macOS 15、26、27;下一个 macOS 的测试版尽力而为、不承诺。每年 9 月新版 macOS 正式推出时往前滚一版 (2027 年 9 月起最低是 26)。 -- **1.0.16 仍是 macOS 14**:它的候选包按 [发布关 runbook](archive/2026-11-11/releases/v1.0.16-release-gate.md) 用固定快照构建,不受这里影响。 +- **1.0.16 仍是 macOS 14**:它的候选包按 [发布关 runbook](https://github.com/surfine/WindowShade/blob/026091e9/docs/archive/2026-11-11/releases/v1.0.16-release-gate.md) 用固定快照构建,不受这里影响。 - **从 1.0.17 起最低 macOS 15**:`build.sh` 的构建目标与 `prototype/Info.plist` 的 `LSMinimumSystemVersion` 已经改好; 发 1.0.17 时那一项 appcast 的 `minimumSystemVersion` 写 `15.0.0`(旧项保持 `14.0.0`,留在 14 的人停在 1.0.16), README(三份)、官网与宣传片里的「macOS 14 及以上」在 1.0.17 发布时一起改,**不要提前改**(会把 1.0.16 说错)。 @@ -47,7 +47,7 @@ tests/vm/run-core-probes.sh lume@<虚拟机地址> (1.0.16 只提示、手动下载一次);发布关第 3 步的「DR 与上一版逐字相同」这一版改为核对「Developer ID、Team 是 DQ45KFVHJ8」; 用户要重新给一次辅助功能与屏幕录制。之后各版回到「DR 与上一版逐字相同」。 同一版要一起改、不要提前改:三份 README 与官网里「安装包还没公证 / 第一次打开会被拦」那句删掉,「macOS 14 及以上」改 15。 -**2026-10-17 候选源码已改好**(版本号 1.0.17/17、appcast 条目已并入 site/public/appcast.xml、三份 README 与官网;合入 main 与部署站点都要等 1.0.17 的包上传之后);剩下的步骤见 [1.0.17 发布关 runbook](archive/2026-11-11/releases/v1.0.17-release-gate.md)。 +**2026-10-17 候选源码已改好**(版本号 1.0.17/17、appcast 条目已并入 site/public/appcast.xml、三份 README 与官网;合入 main 与部署站点都要等 1.0.17 的包上传之后);剩下的步骤见 [1.0.17 发布关 runbook](https://github.com/surfine/WindowShade/blob/026091e9/docs/archive/2026-11-11/releases/v1.0.17-release-gate.md)。 ### 默认值翻开与 DMG(1.0.18) @@ -306,7 +306,7 @@ cd prototype 分段控件(用来验证“点了就换布局”,输出里的 `renderedStyle/renderedRows/renderedCards` 是真实渲染结果)。 - 只读真机探针(不移动用户指针、不捕获用户窗口;详见 - [窗口浏览进度](archive/2026-11-04/window-browser-progress.md) 的命令清单): + [窗口浏览进度](https://github.com/surfine/WindowShade/blob/026091e9/docs/archive/2026-11-04/window-browser-progress.md) 的命令清单): `--window-browser-dock-probe`、`--window-browser-hover-probe`、 `--window-browser-catalog-probe`、`--window-browser-capture-probe` (只捕获本应用自己的探针窗口)、`--window-browser-thumbnail-probe`、 diff --git a/docs/README.md b/docs/README.md index 6b4eda77..a8a9c576 100644 --- a/docs/README.md +++ b/docs/README.md @@ -33,11 +33,11 @@ Feature notes, design rules and release notes. Most of these are written in Chin - [copy-guide.md](copy-guide.md) — 文案规则与固定词汇表 / copy rules and vocabulary. - [design-system.md](design-system.md)、[design-grammar.md](design-grammar.md)、[design-v1.md](design-v1.md) — 设计令牌与文法 / design tokens and rules. - [computer-use-qa.md](computer-use-qa.md) — 原生界面验收手册 / UI acceptance. -- 归档:[archive/](archive/) — 一次性调查与旧版验收记录 / one-off investigations and old acceptance records. +- 归档:一次性调查与旧版验收记录已从仓库删除,在 git 历史 [`026091e9` 的 docs/archive/](https://github.com/surfine/WindowShade/tree/026091e9/docs/archive) / removed from the tree; see git history. - [performance.md](performance.md) — 实测与手法 / performance. - [perf-ledger.md](perf-ledger.md) — 卡顿账 / hitch ledger. - [lost-notes.md](lost-notes.md) — 未入库设计底稿的指引 / pointers to design notes that never got committed. -- [window-browser-progress.md](archive/2026-11-04/window-browser-progress.md)、[system-integration-polish.md](system-integration-polish.md) — 功能进度与质感批次 / progress notes. +- [window-browser-progress.md](https://github.com/surfine/WindowShade/blob/026091e9/docs/archive/2026-11-04/window-browser-progress.md)、[system-integration-polish.md](system-integration-polish.md) — 功能进度与质感批次 / progress notes. - Build, signing and release: [DEVELOPMENT.md](DEVELOPMENT.md). - Third-party licenses: [THIRD-PARTY-LICENSES.md](THIRD-PARTY-LICENSES.md). - Original design notes: [WindowShade.md](WindowShade.md). @@ -46,5 +46,5 @@ Feature notes, design rules and release notes. Most of these are written in Chin ## Releases / 发布 -- [releases/](releases/) — 每版发布说明(已发布版本的发布关 runbook 在 [archive/2026-11-11/releases/](archive/2026-11-11/releases/))/ release notes; old release runbooks are archived. +- [releases/](releases/) — 每版发布说明(已发布版本的发布关 runbook 在 [archive/2026-11-11/releases/](https://github.com/surfine/WindowShade/tree/026091e9/docs/archive/2026-11-11/releases))/ release notes; old release runbooks are archived. - [third-party-lock-overlay.txt](third-party-lock-overlay.txt) — 锁屏层的第三方许可 / third-party license. diff --git a/docs/archive/2026-11-02/computer-use-qa-validation.md b/docs/archive/2026-11-02/computer-use-qa-validation.md deleted file mode 100644 index dde7ea54..00000000 --- a/docs/archive/2026-11-02/computer-use-qa-validation.md +++ /dev/null @@ -1,42 +0,0 @@ -# Computer Use QA 验收记录(归档) - -> 归档日期:2026-11-02 · 状态:历史记录,现行做法见 docs/testing.md 与 docs/performance.md。 - -# Computer Use 工具实施与验收 - -2026-10-09:方法、CLI、八场景合同和项目入口已落地于独立分支 `codex/computer-use-qa`。没有改动产品源码、签名或发布;原工作区并行改动保持独立。 - -## 已验证 - -- Python 标准库工具:83 项离线检查通过,覆盖传输失败、旧截图、缺文件、哈希/AX 身份冲突、错误的通过结论、历史失败保留、会话停止、VM 互斥与清理边界。 -- CounterFixture 使用 Swift 6、完整并发检查、警告视为错误编译成功;经 prepare 实际传入 VM、核对哈希并持续计数。 -- 真实 CLI 完成收起、静态看一眼、取消、展开与清理;窗口位置、尺寸、身份和文本与本次基线一致。 -- 动态预览中看见计数 217→317→507,但曾有截图超时与 AX 截断,本轮为 inconclusive;故障后的点击确实在 CLI 内被拒绝。受控恢复与视觉复核之后,清理通过。 -- 从外置盘交付副本执行 verify,确认四个已测场景通过,未测项没有变绿。report 返回 2 表示仍有未测/失败,不是完整产品验收通过。 - -测试对象始终是历史签名 WindowShade 1.0.16(SHA256 `128b76bd47c4d3ea27220deb03f4d30256d4640fd844ba50bbc5ba0c7717e8f1`),来宾 macOS 26.6.2;没有把结果套到当前源码。单窗口、目标变更、多屏及真实硬件矩阵仍需针对候选构建执行。 - -## 实际运行记录 - -- 20261009T173952-939c09b4(报告 report-1791541852533221000.md,在外置 QA 盘上):fold-companion=fail、restore=pass;cleanup=pass。 -- 20261009T175511-f5cb6b23(报告 report-1791541852971869000.md,在外置 QA 盘上):fold-companion=blocked;cleanup=pass。 -- 20261009T180056-38310eec(报告 report-1791541853339932000.md,在外置 QA 盘上):fold-companion=pass、peek-static=blocked;cleanup=pass。 -- 20261009T180537-8b806344(报告 report-1791541853738987000.md,在外置 QA 盘上):fold-companion=pass、peek-static=pass、peek-cancel=pass、restore=pass;cleanup=pass。 -- 20261009T181007-61ccb18b(报告 report-1791541854073982000.md,在外置 QA 盘上):peek-live=blocked;cleanup=pass。 -- 20261009T181327-fa8395b9(报告 report-1791541854364794000.md,在外置 QA 盘上):fold-companion=pass、peek-live=inconclusive、restore=pass、observation-failure=pass;cleanup=pass。 - -## 缺陷与边界 - -历史二进制在存在第二个 TextEdit 文档时走最小化路径,菜单计数增加但卷帘条没有出现。复现:保留两个 TextEdit 文档和 Finder,从 WindowShade 菜单收起当前文档;首份运行保留 before/after。仅确认该环境现象,未定位源码根因,不宣称当前工作区有同一缺陷。 - -动态预览会临时使原窗口可见,AX 的原几何和可见性不足以证明已经展开。因此 cleanup 必须有实际查看画面的 restore 复核,并重新核对 AX;故障恢复通道只允许新截图中原标题条区域的双击,不解除 HALTED,也不直接关闭窗口。 - -开发期发现并修复的工具问题也保留在运行记录:SSH 参数位置、move_cursor 不支持 capture_id、截图有效期、AX 完整等待、WindowServer 保留已关闭窗口编号、精确焦点确认与异步关闭核对。不能把这些工具阻塞写成产品失败。 - -## 交接 - -[主手册](../../computer-use-qa.md) 和 [工具入口](../../../tools/computer-use-qa/README.md) 是维护入口。六个公开基础命令另加 observe/act,均支持 --help。所有原始证据与运行报告保存在外置 QA 盘,不向仓库塞图片与二进制。 - -DeepSeek 负责传输层和离线测试初稿;主模型修正实际接口与验收边界、独立增加反例测试,并完成实机视觉复核。第二次委派达到轮次上限,后续测试与修正由主模型接手,未采信其完成声明。 - -所有本次测试窗口与会话已清理。VM 保留运行供复用;它的运行状态不属于产品通过证明。没有安装新的模型服务或创建后台自动化。 diff --git a/docs/archive/2026-11-02/perf-1018-hotspots.md b/docs/archive/2026-11-02/perf-1018-hotspots.md deleted file mode 100644 index 9a921e80..00000000 --- a/docs/archive/2026-11-02/perf-1018-hotspots.md +++ /dev/null @@ -1,110 +0,0 @@ -# 1.0.18 性能热点调查(归档) - -> 归档日期:2026-11-02 · 状态:历史记录,现行做法见 docs/testing.md 与 docs/performance.md。 - -# 1.0.18 性能热点清单(静态勘察,未跑任何探针) - -2026-10-17。范围:Apple silicon 上四个场景——收起/展开、窗口浏览打开、看一眼、刘海空闲。 -方法:只读代码,按 `rg` 找计时器、显示链接、主线程上的 AX/CGWindowList 调用、图像转换和 Metal 管线创建,再顺着调用链读上下文。 -**这份清单里的毫秒数全是估计**,来源分三种,每条都标了:【注】代码或文档里已有的实测说明;【推】我按调用类型与 [performance.md](../../performance.md) 的量级表推的;【无】没有任何数字,只是结构上可疑。 -没有改任何产品代码。哪条值得动,等 `scripts/perf-report.sh` 跑出的 `--hitch` 数字和下面的"怎么确认"一起定,再改;Pareto 规则:只改有前后数字、行为不变的地方。 - -## 怎么读 `--hitch` - -`--hitch` 量的是**主线程**在交互期间有没有按时让出每一帧(`App/HitchProbe.swift` 的显示链接回调在主线程 run loop 上)。所以它只会被"主线程上的同步阻塞"抓到;纯 GPU 或窗口服务器那一侧的掉帧要用 Instruments。下面的候选因此按"是不是主线程上同步做了一件大事"来排。 - -类对应的场景:`fold`/`unfold` = 收起/展开;`browser-open`/`browser-close` = 窗口浏览;`glance-show`/`glance-hide` = 看一眼。刘海空闲没有 `--hitch` 类,用能耗脚本量(见"确认手段")。 - -## 排序总表 - -| # | 场景 | 候选 | 位置 | 估计 | 依据 | 风险 | -| --- | --- | --- | --- | --- | --- | --- | -| H1 | 收起 | 恢复记录落盘用 `F_FULLFSYNC`,在主线程同步做,一次收起至少两次写 | `Recovery/DurableShadeJournal.swift:52,68`;调用 `App/ShadeController.swift:381,430` | 每次写 3–20 ms,两次合计 6–40 ms | 【推】 | 高:这是崩溃一致性保证(先落盘再隐藏),只能量,不能随手挪 | -| H2 | 收起 | 背景快速合成在 `@MainActor` 里同步跑:全量 `CGWindowListCopyWindowInfo` + `CGWindowListCreateImageFromArray`(整窗大小,Retina) | `Effects/WindowFoldEffects.swift:174`(函数)、`:197`(调用);实现 `Capture/FastCapture.swift:52-73` | 20–60 ms,随窗口像素数涨 | 【注】`FastCapture.swift:4` 与 `WindowFoldEffects.swift:195` 自述"几十毫秒" | 中:搬到后台队列即可,`ShadeController.fastWindowCapture` 已有现成做法(`:851`,`pixelAnalysisQueue`) | -| H3 | 窗口浏览 | 每个 App 的发现结果回来都整面板重算:`finishMetadataJob` → `refreshPanel()`,没有合并 | `WindowBrowser/WindowBrowserController.swift:1276`(`refreshPanel()` 调用在其函数体内)、`:1387` | 开面板后第一秒内 N 次(N=常规 App 数,常见 15–40)整面板布局+`contentView.update`;单次 1–5 ms | 【推】;文档里 window-browser-performance.md(私有库) 量过"暖刷新"单次,但没量过 N 次叠加 | 低:合并到每帧一次(或 16 ms 内一次)不改结果,只改时机 | -| H4 | 看一眼 | 出现时在主线程同步做 `FastCapture.composite`(取消隐藏路径要先截背景) | `App/Glance.swift:691` | 20–60 ms | 【注】同 H2 的自述;这里用的是卡片区域,比整窗小,估计偏下限 | 中:背景必须在取消隐藏**之前**取到,顺序不能乱,可以先后台取、取到再 show | -| H5 | 收起/展开 | 隐藏策略在主线程做多次 AX:`fallbackHide` 里 `appCurrentUserWindowCount`+`appWindowCount`(各一次 `kAXWindowsAttribute`,事务备忘 `Window/AppWindows.swift:73-85` 内只有第一次真问),`axOffscreenHide` 最多 4 轮"写位置+读位置" | `App/FoldTransaction.swift:759-761,640-657`;`Window/AppWindows.swift:73` | 目标空闲时 20–25 ms(首次枚举)+每轮 0.2 ms;目标忙时每次 ≈19 ms,最坏被 2 s 超时托住(`WindowShade.swift:367`) | 【注】[performance.md](../../performance.md) 表里 `kAXWindowsAttribute` 18–25 ms、忙时单读 ≈19 ms | 中:已有 `AXStallBreaker`、`timedRead`;真收益在"忙目标",空闲目标已被备忘压住 | -| H6 | 收起(冷) | 第一次收起时在主线程同步创建 Metal 设备、库和三条管线 | `Effects/FoldGPU.swift:79`(`objects()`)、`:125-136`;预热 `:96`、触发 `Effects/DuoController.swift:96`(启动后 4 秒,仅在效果开着时) | 冷启动首次 100–400 ms;预热后为 0 | 【注】`EffectSession.swift:71-74` 注释写"首次收起含 GPU 共享对象创建";数字【无】 | 低:已有预热;风险点是"启动 4 秒内就收起"或"效果当时关着、后来才开" | -| H7 | 刘海空闲 | `syncTimer` 每 2 秒一次(容差 0.5 s),永久存在;内部 `leases.tick()`、`syncWatchers()`,有收起窗口时还 `refresh()` | `App/Notch.swift:318-326` | 每次 <0.2 ms,但是 0.5 次/秒的固定唤醒 | 【推】 | 低:可在 `owner.shaded` 为空且没有 lease 时停掉,事件来了再起;但要确认 `leases.tick()` 的到期结算不能停 | -| H8 | 刘海空闲(有音乐播放器) | 活动轮询在进度档每 2 秒一次,每次主线程先扫 `NSWorkspace.shared.runningApplications`(两处)再切 worker | `App/NotchActivitySources.swift:253-256,284`;档位 `App/NotchActivityPollPolicy.swift:20-26` | 每次主线程 0.2–1 ms;整体约 0.5 次/秒唤醒 | 【推】;`:283` 的注释自己写过"列系统音频进程每 2 秒约占一个核的 1.7%",说明这里的成本有过先例 | 低:推送流健康时已不问脚本(`:266-270`),所以主要是 `runningApplications` 那两次;可改为缓存+`NSWorkspace` 通知失效 | -| H9 | 刘海空闲 | 听不到媒体键时亮度每 0.2 秒读一次,永久 | `App/NotchLevelObserver.swift:132`、`:488-495` | 5 次/秒唤醒,每次一次 IOKit/DisplayServices 读,<0.1 ms | 【推】;只在 `gate.keysAvailable == false` 时走(`:130-134`) | 低;条件罕见,先确认真机上会不会走到(日志里有 `media-key monitor unavailable`) | -| H10 | 收起中的窗口存在时 | 巡检计时器 5 秒一次(容差 1.5 s):每轮 `shadeJournalEntries()` 读盘解码+`pruneShadeJournal` 再读一次,都在主线程 | `App/Reconcile.swift:11-16,40-60`;`Recovery/Journal.swift:12,56` | 每轮 2 次小文件读+plist 解码,约 0.2–1 ms;0.2 次/秒唤醒 | 【推】 | 低:日志只在本进程里变,可以内存里留一份、写时更新;但"另一个进程改过日志"的假设要先确认没有 | -| H11 | 窗口浏览打开 | 面板打开时主线程一次性做 `refreshHelperMap`(遍历所有 `runningApplications`,对没缓存的进程 `resolvingSymlinksInPath`)和 `scheduleGlobalDiscovery`(再遍历一次),两次遍历 | `WindowBrowser/WindowBrowserController.swift:1169-1199,1201-1213` | 0.5–3 ms(首次,路径解析要碰文件系统);之后有缓存 | 【推】 | 低 | -| H12 | 窗口浏览(实时画面) | 选中项实时预览起流时用 `ShareableContentLoader.current()`(未缓存的 `SCShareableContent.current`),不走 `ShareableContentCache` | `WindowBrowser/WindowBrowserController.swift:1709`;对照 `Capture/ShareableContentCache.swift` | 约 30 ms 起(全量枚举),慢机器数百毫秒;在后台 `Task` 里,**不卡主线程但拖延实时画面出现** | 【注】perf-energy.md(私有库) 实测 `SCShareableContent` 32.1 ms;`ShareableContentCache.swift:5-9` 自述"数百毫秒到数秒" | 低:缓存已有,且命中不到目标时会强制刷新(正确性不依赖 TTL) | - -## 分场景细节 - -### 收起/展开(`fold`/`unfold`) - -主线程上的同步块按顺序是:读位置和大小(`ShadeController.swift:277-278`,`timedRead` 包着,空闲 App 约 0.1 ms)→ 解析外框/计划 → **恢复意图落盘(H1)** → 焦点交接 → 隐藏(H5)→ 隐藏验证 → **恢复记录再落盘(H1)**。 -卷帘动画那一侧:`EffectSession` 的显示链接锁在 60 Hz(`Effects/EffectSession.swift:32`),帧由 GPU 完成回调归还空位,不绕主线程;图像准备(vImage 色彩空间转换+纹理)在有界 worker(`Effects/FoldRenderer.swift:42-48`)。这一侧结构上没发现主线程重活,所以先不列候选。 - -`ShadeController` 里已经有逐段计时(`foldPhase`,`Window/AppWindows.swift:41-52`,阶段名如"恢复意图落盘""隐藏窗口""元素刷新""折叠计划"),累计报告 `foldPhaseReport()`;**它目前只在专注一次折叠一批窗口后打印**(`App/FocusSession.swift:476`),单次双击收起不会出报告。所以 H1、H5 不需要新增计时,但要让探针(`--fold-timing`)或日志在一次收起后读出 `foldPhaseTotals`——这是探针侧的小改动,不碰产品行为。 - -- **H1 的取舍**:先落盘再隐藏是故意的(`ShadeController.swift:376` 起的注释)。可行的方向只有两类:不改语义,只把"第二次写"(隐藏验证后的更新,`:430`)挪到后台串行队列;或者把每次落盘的 `F_FULLFSYNC` 换成只在第一次(意图)用。第二类会削弱崩溃一致性,**不建议在 1.0.18 动**。先量。 -- **H2**:`background(for:)` 里的 `FastCapture.composite` 是**同步**的,前面的 `fastWindowCapture` 已经是后台的了,这一段是漏网的。展开路径(`FoldExit.swift`)我没逐行读,是否有对称的同步截图未核对。 -- **H6**:预热的触发条件是 `settings.desktopEnabled || settings.windowsEnabled`(`DuoController.swift:96`)。如果收起效果在启动时是关的、之后才在设置里打开,第一次收起仍会走同步创建;`objects()` 没有任何 signpost。 - -### 窗口浏览打开(`browser-open`/`browser-close`) - -`openKeyboardPanel`(`:931`)一次性在主线程做:新建 `Session`、新建 `WindowBrowserPanel`(`:985`,每次新建,Dock 路径有预热 `prewarmDockPanelIfNeeded` `:763` 而键盘路径没有)、`refreshManagedWindows`(`:1150`,内部 `refreshPanel()`)、`installPanelMonitors`(3 个全局事件监视器)、`refreshHelperMap`、`scheduleGlobalDiscovery`。 -AX 发现本身在后台队列里跑(`startMetadataJob` `:1236`,`metadataQueue`),并且有 `AXStallBreaker` 和每应用一个在途任务的限制;**主线程的代价在结果回来之后的 `refreshPanel()`**(H3)。 -面板打开期间还有 0.6 秒一次的存活扫描(`:1336`,只在面板开着时),以及一个全局 `mouseMoved` 监视器(`:2538-2547`,每次鼠标移动都进主线程;Dock 模式下函数体内有 `NSEvent.mouseLocation`+几何判断,量级很小但事件频率高)。 -`--hitch` 的 `browser-open` 量的是 `openKeyboardPanel()` 到"面板可见+列表填进来最多 1.5 秒+350 ms 尾巴",所以 H3 的 N 次重算**正好落在测量窗口里**。 - -### 看一眼(`glance-show`/`glance-hide`) - -- 出现:H4(同步背景截图)。`GlancePanel`、`GlanceContentView` 每次新建(`Glance.swift:679-690`),这类创建通常 1–3 ms,不单列。 -- 期间:`ensureTimer`(`:908-935`)用 `DispatchSource` 在 **主队列**上 33 ms 一次(有会话时),每拍 `driveUnhide` 里:`windowIsOnScreenNow`=`cgWindowInfo(id)` 单窗口 `CGWindowListCopyWindowInfo`(`Window/AXWindow.swift:387`),出现后约 0.8 秒内每拍一次,约 30 次/秒;`sample(at:)` 里每拍一次 `NSWindow.windowNumber(at:belowWindowWithWindowNumber:)`(`:1031`,`hitTestsByGeometry` 为假时)。单次都小(<0.3 ms),合计 <10 ms/s,**不是 hitch 来源,但算能耗**。 -- 空闲(没有会话、没有等待指针离开的卷帘条)时 `needsTimer` 为假,定时器会取消(`:908-912`),**这一条我读过,空闲零计时器**。 -- `windowCornerRadius` 每个窗口只量一次(有缓存 `cornerRadii`),裁 240×240 的图做像素扫描,<1 ms,不单列。 - -### 刘海空闲 - -固定唤醒源(刘海开着、没有任何收起窗口、没有播放器时): - -| 来源 | 位置 | 频率 | -| --- | --- | --- | -| `syncTimer`(H7) | `App/Notch.swift:318` | 0.5 次/秒 | -| 活动轮询空闲档 | `App/NotchActivityPollPolicy.swift:24`(30 s),`NotchActivitySources.swift:97` | 0.03 次/秒 | -| `environmentWatch` | `WindowShade.swift:1058`(5 s),内部 `EventTapHealth.sweep`+`AXIsProcessTrusted()` | 0.2 次/秒 | -| 亮度回退轮询(H9,条件性) | `App/NotchLevelObserver.swift:488` | 5 次/秒 | -| LidAngle 看门狗(仅相关效果开时) | `Effects/LidAngleSource.swift:97-104`,推送健康 1 Hz/不健康 4 Hz | 1–4 次/秒 | - -有收起窗口时加:`reconcileTimer`(H10,0.2 次/秒)、`Carry` 1.5 s(只在有"带到每张桌面"的窗口时,`Carry.swift:425`)。 -有播放器时加:活动轮询进度档(H8,0.5 次/秒)。 -事件监视器:`NotchLevelObserver` 的全局 `.systemDefined` 监视器和(可选)HID 级 tap(`:296-298`)只在媒体键事件到来时工作,空闲无成本;它的 tap 跑在哪条 run loop **没核对**。 -我核对过的 session 级 tap 都在自己的线程上(`WindowShade.swift:1000-1004` 的标题栏单击 tap、`ScrollTap.swift:127-129`、`TrackpadGestures.swift:2221-2223`、`MiddleTitlebarTap.swift:60-79`、`WindowSwitcher.swift` 的按键 tap),回调不占主线程;其中 `WindowSwitcher` 的 tap 是 `headInsert`+`defaultTap`,掩码是全部 `keyDown/keyUp/flagsChanged`,意味着只要窗口切换器开着,**全系统每次按键都先过这个回调**(回调体里先 `async` 到主线程,`WindowSwitcher.swift:98`),延迟成本是每键一次进程间往返,没数字,值得用 E6 的探针看一眼。 - -没有任何一项是显示链接或 120 Hz 计时器在空闲时常驻:`rg` 全仓 `CADisplayLink`/`1.0 / 120` 的使用点我逐个对过上下文,都挂在一次交互的生命周期里(`EffectSession`、`ScrollStripOverview`、`ScrollStripRun`、`Notch` 内容进场的 `contentLink`、`ScrollTap` 等),有 `invalidate`。**唯一要核实的是 `Notch.swift:5205-5208` 的 `contentLink`**(步进在 `:5133` 的 `contentWatchStep`):它请求 60–120 Hz(preferred 120),应该在内容到达 40% 后停(`contentWatchStep`),我没读到停止分支的完整路径,列为"确认生命周期"。 - -## 怎么确认(每条对应的测量) - -| # | 现成手段 | 具体做法 | 缺什么 | -| --- | --- | --- | --- | -| H1 | `--fold-timing`(打印 `TIMING`)+ `foldPhaseReport()` 阶段"恢复意图落盘""隐藏验证" | `bash tests/run-glance-probe.sh --fold-timing`,读阶段累计;`HITCH fold` 的 worst 对照 | 日志里要有 `foldPhaseReport` 输出,若只在专注结束时打印,探针里需要读一次(**探针改动,不是产品改动**) | -| H2 | `HITCH fold`(`worst`)、`SystemLog.foldSignposter` 的 `fold` 区间 | 对比 `WINDOWSHADE_DISABLE_FAST_CAPTURE=1`(`FastCapture.swift:29`)前后 `worst`;Instruments 的 os_signpost 轨道 | 缺 `background` 的单独 signpost:建议加 `SystemLog.foldSignposter.beginInterval("fold-background")`(只增埋点) | -| H3 | `HITCH browser-open`(`n=20` 的 `worst`/`p95`)、`SystemLog.windowBrowserSignposter` 的 `session` 区间与 `stage` 事件(`WindowBrowserController.swift:217,231`);`noteDiscoveryRequest`/`first-catalog-publish` 计数 | `log stream --signpost --predicate 'subsystem == "com.windowshade.prototype"'` 数 `refreshPanel` 次数;加一个 `refreshPanel` 计数器进诊断(window-browser-performance.md(私有库) §17.1 有会话计数框架) | `refreshPanel` 次数还没有计数 | -| H4 | `HITCH glance-show` | 对比 `viaUnhide`(卷帘条背后窗口被隐藏)与非 `viaUnhide`(有快照)两种场景的 `worst` | `--hitch` 的看一眼用的是 fixture 窗口,是否走 `viaUnhide` 取决于收起方式;要在日志里确认 `glance: unhide under cover` 出现 | -| H5 | `foldPhaseTotals`:"元素刷新""窗口属性读取""隐藏窗口";`axWindowListEnumerations`(`AppWindows.swift:34`,数一次折叠真枚举几遍);E5 `AXStallBreaker` 日志 | `--fold-timing` 后读这三个数;忙目标场景用 `--switch-cpu`/`--idle-first-op`(E6,`GlanceProbe.swift:159,164`) | 忙目标只能人为造(先让目标 App 做重活),现成探针没有 | -| H6 | `EffectSession.rendererInitMs`(`EffectSession.swift:74-81`,`WINDOWSHADE_DUO_DIAGNOSTICS=1` 时写日志 `rendererInit=`) | 冷启动后 4 秒内第一次收起,对比 4 秒后第一次收起的 `rendererInit` | 需要冷启动场景脚本 | -| H7 | `scripts/energy-profile.sh`(E1,60 秒静置 CPU%,3 次取中位)、`tests/run-idle-timer-tests.sh` | 空闲 CPU% 和 `sudo powermetrics --samplers tasks` 的 wakeups/s;对照"停 `syncTimer`"前后 | 一个计时器的收益在噪声里,需要 `powermetrics` 的唤醒计数而不是 CPU% | -| H8 | 同上+播放器开着 | 开 Music 播放,跑 E1 | 同上 | -| H9 | 日志 `media-key monitor unavailable`(`NotchLevelObserver.swift:133`) | 先 grep 真机日志有没有;没有就不用管 | — | -| H10 | E1(有收起窗口时)、`wlog("reconcile: timer started")` | 收起一扇窗后跑 E1 | 同 H7 | -| H11 | `windowBrowserSignposter` 的 `stage` 事件 | 加一个 `stage`;或用 Instruments Time Profiler 看 `openKeyboardPanel` 自身耗时 | 缺 stage 埋点 | -| H12 | `HITCH browser-open` 不会抓到(在后台);看"选中项到实时画面出现"的间隔 | 日志里 `LivePreviewLease` 起流时间戳(`WindowBrowserController.swift:1700-1730`) | 缺计时 | - -## 建议的量测顺序(一次真机,不动产品代码) - -1. `scripts/perf-report.sh --host`(主机空闲时)取六类 `HITCH` 基线,同时留 `.build/perf/*.json`。 -2. 对 `fold` 读 `foldPhaseReport()`,一次看清 H1、H5 各占几毫秒;对 `browser-open` 数 `refreshPanel` 次数看 H3;对 `glance-show` 分 `viaUnhide`/快照两种看 H4。 -3. 只有 `worst` 或 `p95` 超预算的类,才进下一步,而且**只改有前后数字的那一处**。已知的预期:`fold`/`browser-open`/`glance-show` 最可能是 H2、H3、H4;H1 即便量出来大,也不在 1.0.18 动。 -4. 虚拟机里的 `--hitch` 只拦 ≥500 ms 单帧,对这些毫秒级候选基本没有分辨力;VM 数字只用来确认没有新的整秒阻塞,别拿它判 H1–H5。 - -## 没有覆盖的地方 - -- 展开路径(`App/FoldExit.swift`)只读了开头:`:55-58` 有 `timedRead` 包着的 AX 读,其余(解除隐藏、AX 写回、日志记录移除)没逐行核对,H1 的"展开时的第三次落盘"也是推测。 -- `PinnedPreview`(`PinnedPreview.swift:1096` 的 0.2 s、`:1418` 的 30 Hz 计时器)、`Launchpad`、`PictureInPicture`、`SplitView`、`SlideOver`、设置窗口(`Preferences.swift:1271` 的 1 秒计时器)不在这四个场景里,没有评估。 -- 内存与能耗的绝对值(E2)不在这份里。 -- 没有任何一条被实测证实;本清单的作用是缩小测量范围,不是给结论。 diff --git a/docs/archive/2026-11-04/window-browser-progress.md b/docs/archive/2026-11-04/window-browser-progress.md deleted file mode 100644 index 627b3aea..00000000 --- a/docs/archive/2026-11-04/window-browser-progress.md +++ /dev/null @@ -1,2608 +0,0 @@ -> 归档 2026-11-04:本进度日志完结于 1.0.14(2026-09-22),仅作历史记录。 - -# WindowShade 窗口浏览功能进度 - -任务书:《WindowShade 独立开发任务书》(2026-09-17),要求按阶段 0–7 实现 -Dock 悬停窗口面板与独立快捷键窗口选择面板。 - -## 基线 - -- 仓库 `surfine/WindowShade`,实际工作区 `.`。 -- 设计核对基线 `2e107cf841f153c9f07de02d0ec554f5da36aa8e`;本工作区 HEAD - `2abd49b`(`main`,比 origin/main 落后 1 个站点提交)。`prototype/`、`tests/`、 - `docs/` 与该基线一致,未回退。 -- 开始前工作区干净,没有其他会话的未提交修改。 -- 任务相关既有入口已确认:`App/HoverPreview.swift` 的只读预览与 - `presentPreview`/`hidePreview` 单槽不变量;`App/FoldExit.swift` 的 - `unshadeReturningElement(_:playSound:pinAfterRestore:onVerified:)` 恢复与验证 - 回调;`App/FoldTransaction.swift` 的 `verifyRestoredWindow`、 - `pinRestoredWindow`、`stopPreviewBeforeFoldCapture` 调用点;`PinnedPreview.swift` - 的 `startPreview(for:id:)`(私有,按焦点解析)与单槽 `mirrorLayer`; - `Capture/WindowSnapshotCache.swift` 折叠路径专用短 TTL 缓存; - `Window/WindowRegistry.swift` 只是 PID→应用元数据缓存,不是窗口目录。 -- 构建方式:`prototype/build.sh --check` 做 swiftc 类型检查,不签名、不改 - bundle;默认构建会停止正在运行的 WindowShade,本任务不运行。 - -## 阶段 - -- 阶段 0:完成入口与基线核对,开始建立进度记录(本文件)。 -- 阶段 1:身份模型、值类型快照、已管理窗口目录合并与 fake 测试。 -- 阶段 2:明确目标动作适配器、按目标置顶入口、恢复真实终态回传与防重入。 -- 阶段 3:独立可交互面板、卡片/列表、布局、临时预览仲裁、fixture。 -- 阶段 4:Dock 悬停目标检测、通知失效处理、鼠标过渡区域与开关。 -- 阶段 5:普通窗口发现、受控缩略图、按应用排除、关闭/最小化能力。 -- 阶段 6:搜索、键盘面板、独立快捷键与可访问性。 -- 阶段 7:置顶镜像 owner 租约、默认关闭的普通窗口实时预览、回归。 - -## 真实修改与验证记录 - -(每阶段完成后在这里追加:真实修改、实际运行的命令、测试结果、未验证项、 -下一步具体文件或符号。) - -### 阶段 0 - -- 修改:仅新增本文件。 -- 运行:`git status --short --branch`、`git log --oneline -5`、 - `git diff --stat 2e107cf HEAD -- prototype tests docs`(输出为空,确认基线 - 内容一致)、阅读 `DEVELOPMENT.md` 与 `prototype/build.sh`。 -- 结果:工作区干净,无需保留的未提交修改;未回退工作区。 -- 未验证项:尚无。 -- 下一步:`prototype/WindowBrowser/WindowBrowserModels.swift` 与 - `WindowBrowserGeometry.swift` 的纯逻辑及 `tests/run-window-browser-tests.sh` - 阶段 1 测试。 - -### 阶段 1:身份与目录 - -- 新增 `WindowBrowser/WindowBrowserModels.swift`:`ApplicationInstanceKey`、 - `WindowKey`(应用实例 + 原窗口 ID + 会话窗口代数)、请求/目标令牌、值类型 - `WindowRecord`、`WindowIdentityAllocator`、稳定列表与选择 `WindowBrowserListState`、 - 搜索规范化。 -- 新增 `WindowBrowser/WindowCatalog.swift`:合并折叠/置顶只读快照与普通发现结果; - 已管理状态优先;成功空结果只清普通发现记录;失败/超时保留旧记录并标注待刷新; - 只有确证销毁或应用终止才移除。`WindowBrowser/WindowBrowserDiscoveryFilter.swift` - 集中过滤自身进程、代理条/效果窗、非 layer-0、桌面组件、排除清单与桌面小组件。 -- 新增 `WindowBrowser/WindowBrowserGeometry.swift`:左/右/底部 Dock 的面板矩形、 - 有限梯形过渡区域、列数与列表切换;全部使用 Cocoa 全局 point 坐标。 -- 测试:`tests/run-window-browser-tests.sh` → `PASS: 104 window-browser pure-logic checks` - (含同窗口去重、同标题独立身份、多 PID 不合并、PID/窗口 ID 复用代数、折叠离屏 - 保留、超时/空/失败分支、A→B→A 令牌、稳定顺序与按身份选择、搜索折叠、三种 Dock - 方向、负坐标屏幕、过渡区域不放大会导致常驻、代理条与非窗口角色过滤;另有 - 缺 bundle ID 时不重复分配应用实例、按钮点击不冒泡成主体激活、`canBecomeKey` - 模式语义与镜像 owner 租约)。 - -### 阶段 2:明确目标动作与恢复终态 - -- 新增 `WindowBrowser/WindowBrowserActions.swift`:`WindowBrowserActionCoordinator` - 统一动作入口,按 PID 串行、同义请求合并、异义请求回 `busy`、超时回 `uncertain` - 但继续占额度直到真实的同步调用返回;`WindowBrowserActionPolicy` 做能力/权限预检。 -- `WindowBrowser/WindowBrowserAppDelegate.swift`:`windowBrowserManagedSnapshots()` - 只读快照;`windowBrowserBeginFold(key:element:completion:)` 进入原有 `shade` - 事务;`windowBrowserResolveElement(key:)` 按 PID + 原窗口 ID 重新核对; - `register/settleWindowBrowserFoldWaiter` 回传折叠真实终态。 -- 原有折叠路径接入:`App/ShadeController.swift` 的中止/回滚与 - `App/FoldTransaction.swift` 的 `revealOverlayAfterVerification` / - `rollbackFoldTransaction` 在真实终态结算等待者;没有改隐藏策略、恢复日志或动画。 -- `PinnedPreview.swift` 增加明确目标 `startPreview(targetWindowID:pid:axWindow:completion:)` - 与 `startingPreviewIDs` 防重入;启动成功的判定以对应捕获启动完成为准,启动中 - 目标变化会停掉刚起来的流;新增 `WindowMirrorSlot` owner 租约,旧 owner 释放 - 不会摘掉新 owner 的镜像。 -- 测试:动作协调器覆盖同义合并、异义 busy、不可验证拒绝、权限缺失、超时后仍占 - 额度且不启动相反动作、迟到完成记账、恢复验证失败不继续置顶;镜像 owner 测试 - 覆盖旧 owner 释放不影响新 owner。 - -### 阶段 3–4:面板、Dock 与静态预览 - -- 新增 `WindowBrowser/WindowBrowserViews.swift`、`WindowBrowserPanel.swift`: - 卡片/紧凑列表、状态与按钮、搜索框、方向键/Return/Escape、输入法 marked text - 优先、可访问性标签;Dock 模式 `canBecomeKey == false` 且不抢焦点,键盘模式可 - 成为 key window;两种模式共用同一套视图与动作。 -- 新增 `WindowBrowser/WindowBrowserController.swift` 与 - `WindowBrowser/WindowBrowserAppDelegate.swift`:请求代数校验、元数据每 PID 单飞、 - 合并刷新、面板显示/离开延迟、外部点击关闭、菜单优先于 Dock、键盘面板优先于 - Dock 面板;打开新面板时清掉原有只读临时预览。 -- 新增 `WindowBrowser/DockHoverObserver.swift`:有界只读遍历 Dock AX 树、订阅 - 选中子项变化与对象销毁、Dock 重启/实例变化失效重建、鼠标回退检测(≥100ms - 节流 + 命中测试,只在 Dock 条带或屏幕边缘候选区域执行)。通知与回退命中都会 - 经过“鼠标必须在当前图标有效区域内”的校验;观察器不在中间过渡区域清除目标, - 面板是否隐藏由控制器结合面板矩形判断。不写 Dock 设置、不模拟点击、不启动 - 未运行应用。 -- 接线:`App/MenuBarController.swift` 菜单新增“选择窗口…”;`App/EventTap.swift` - 注册可选独立快捷键(默认不注册、失败保留旧组合);设置新增“窗口浏览”页 - (Dock 开关、面板开关、实时预览开关、快捷键录制、按应用排除清单、权限入口), - 见 `App/Preferences.swift` 与 `Effects/DuoSettingsWindow.swift`。 -- 缩略图:`WindowBrowser/WindowThumbnailService.swift` 有界缓存 24 MiB、同 key - 共享在途任务、订阅取消、最多两路真实截图、取消但未返回仍占额度、失败/排除/ - 关闭后不投递;`WindowBrowserThumbnailBackend` 只调用 `captureWindow`(单窗 - 过滤器),没有整屏截图回退。 - -### 阶段 5–7:普通窗口、实时预览与回归 - -- 普通窗口发现抽到 `WindowBrowser/WindowBrowserDiscovery.swift`,控制器与探针 - 共用同一实现;AXWindows 读取失败与成功空结果分开返回,多应用失败互相隔离。 -- 实时预览:普通窗口默认关闭,选中稳定约 0.4 秒后最多建立一路 8fps/≤640×400 - 的 `WindowStreamCapture(preview: true)`;目标已置顶时改用 `WindowMirrorSlot` - 挂接既有流的镜像;启动成功后再次核对代数与面板会话,离开时停止自有流。 -- fixture:`window-browser-fixture` 支持 mixed / many / empty / long 场景与 - 自动退出环境变量,按钮只改 fake 状态;正常启动不会出现。 - -## 实际运行的命令与结果 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 104 window-browser pure-logic checks`。 -- `bash prototype/build.sh --check` → 65 个 Swift 文件类型检查通过(唯一输出是 - `ScreenCaptureBridge.swift:112` 既有的 `stopCapture` 异步 API 建议警告)。 -- `bash tests/run-paper-tests.sh` → 通过(纸面组件范围/显示/点击穿透/缩放)。 -- `bash tests/run-duo-tests.sh` → 4 组通过,含恢复意图先于隐藏、动画后验证、 - 同步恢复契约与会话/捕获排除接线。 -- `git diff --check` → 通过(无空白错误)。 -- 隔离构建(未替换正在运行的应用): - `WINDOWSHADE_CODESIGN_IDENTITY="Apple Development: …()" bash prototype/build.sh --stage` - → `.build/duo-validation/WindowShade.app` 签名验证通过;运行中的 WindowShade - 进程保持运行。 -- 真实只读 Dock 探针 - `.build/duo-validation/WindowShade.app/Contents/MacOS/WindowShade --window-browser-dock-probe` - → 本机 Dock AX 树为 `AXApplication → AXList(31 子项,25 个可解析应用项)→ AXDockItem`, - `AXSelectedChildrenChanged` 注册 `result=0`,观察器创建/拆除配对;没有鼠标移动时 - 2 秒内 0 条通知。 -- 真实只读窗口发现探针 `--window-browser-catalog-probe` → 8 个 regular 应用、 - 6 个窗口、0 失败;样本包含 Safari 2 窗口(1 最小化、1 屏外)、Finder、Codex、 - Telegram、QQ,证明非在屏/最小化窗口不会被误删。 -- fixture 启动(`--window-browser-fixture`,自动退出)→ mixed 9 条、many 20 条 - (自动切列表)、empty 0 条;面板 720×560、键盘模式 `canBecomeKey=true`、 - 搜索框可见。上述 stage 构建与 fixture 在最后一轮改动后重新执行过一次, - 结果一致;运行中的 WindowShade(检查时 pid 3342)全程保持运行, - `prototype/WindowShade.app` 的 Mach-O 未被替换。 - -## 未验证项(需要真人或 macOS 实机继续确认) - -- Dock 选中子项通知是否跟随真实鼠标悬停变化:本机只在无鼠标移动的 2 秒窗口内 - 观察到 0 条通知,未移动用户指针做悬停验证。回退路径(节流命中测试)已实现但 - 同样未在真实悬停中验证。 -- 从真实菜单/快捷键打开面板、在面板中点击折叠/展开/置顶/关闭的端到端流程: - 类型检查、纯逻辑测试与隔离 fixture 通过;没有在正常启动的 AppDelegate 中做 - 这一步,以避免停止或干扰正在运行的 WindowShade。 -- 多显示器不同缩放、Space 切换、全屏、Mission Control、Dock 自动隐藏/放大、 - Dock 重启、睡眠唤醒、锁屏、权限撤销与重新授权、连续 100 次打开关闭的资源计数 - 与性能对照:未运行。 -- 普通窗口实时预览的真实帧率/资源占用、镜像在第 15 帧后的稳定性:未运行。 -- Dock 位于左/右/底部时的真实面板位置:仅在纯几何测试与底部 Dock 探针中核对。 - -## 下一步的具体文件或符号 - -### 开发/验收探针命令(都用隔离 stage 构建运行,不会替换正在使用的应用) - -```sh -cd prototype && WINDOWSHADE_CODESIGN_IDENTITY="<你的 Apple Development 身份>" bash build.sh --stage -APP=../.build/duo-validation/WindowShade.app/Contents/MacOS/WindowShade -$APP --window-browser-dock-probe # Dock AX 树 + 选中属性 + 通知注册/拆除 -$APP --window-browser-hover-probe # 回退命中:命中图标产出目标 / 非图标清除目标 -$APP --window-browser-catalog-probe # 普通窗口发现与逐应用 AX 耗时 -$APP --window-browser-capture-probe # 只捕获自己窗口:像素上限/长宽比/内容/延迟 -$APP --window-browser-thumbnail-probe # 生产缩略图服务 + 真实截图:共享/缓存/失效 -$APP --window-browser-stream-probe # 8fps 预览流:首帧/镜像帧/停止确认 -$APP --window-browser-panel-probe # Dock 面板不激活、不抢 key;键盘面板可编辑 -$APP --window-browser-fixture # fixture 面板(mixed/many/empty/long/small) -``` - -`WINDOWSHADE_BROWSER_FIXTURE` 选择场景,`WINDOWSHADE_BROWSER_FIXTURE_AUTOEXIT=<秒>` -自动退出,`WINDOWSHADE_BROWSER_FIXTURE_SIZE=small` 用小屏尺寸。 - -1. 真人验证并修正 `DockHoverObserver.refreshFromSelection` 的悬停通知路径; - 若通知不跟随,确认 `mouseMoved()` 回退在真实 Dock 上的命中。 -2. 从正常启动的应用菜单执行一次折叠/展开/置顶/关闭,核对 - `WindowBrowserController.performFold/performUnfold/performPinPreview/performClose` - 的终态与 `windowBrowser-progress` 记录。 -3. 在多显示器/Space 环境复测 `WindowBrowserGeometry.panelGeometry` 与 - `WindowBrowserController.screensDidChange/spaceDidChange`。 -4. 若要开启普通窗口实时预览,先在设置中打开并记录 - `WindowBrowserController.updateLivePreview` 的流数量与 CPU。 - -## 补充轮次:折叠前停流、缓存优先、列表预览与生命周期 - -以下改动在上一轮之后追加,均已重新通过类型检查与纯逻辑测试。 - -### 真实修改 - -- `ScreenCaptureBridge.swift` 新增 `stop(completion:)`:停止系统捕获并在真实返回后 - 回调一次,供折叠前等待自有流停妥。 -- `WindowBrowserController.prepareForFold(target:completion:)`:折叠前先取消展示 - 任务、释放借用镜像、停止自有流;1.5 秒内无法确认停妥就拒绝本次折叠并保留真实 - 窗口,不进入 `shade`。 -- 新增 `WindowBrowserThumbnailPolicy.swift`:把缩略图读取顺序做成纯决策 - (排除/权限 → 已保存折叠快照 → 运行中的置顶镜像 → 单窗截图 → 图标与说明)。 - 控制器据此对折叠窗口直接复用 `ShadeState.previewImage`(不新截图、不展开), - 对最小化/暂停置顶会话显示图标和原因。 -- `WindowBrowserViews.swift`:列表风格新增右侧选中项预览栏(较大静态图或唯一一路 - 实时画面),修复了“列表风格下实时预览视图无处挂载”的真实缺口;状态文字带符号 - (◫/📌/⏸ 等),不只依赖颜色;键盘面板重新计算 key view loop 支持 Tab。 -- `WindowBrowserPanel.performClose(_:)` 回到控制器,避免 ⌘W 关闭面板后控制器仍 - 以为面板可见。 -- `WindowBrowserController` 接入与项目一致的会话/睡眠/锁屏通知:进入不可交互阶段 - 关闭临时面板、清图像缓存、停自有流、停用 Dock 入口;唤醒/解锁后按设置重建。 -- Quick Look:`performUnfold` 遇到 `hide == .quickLookClosed` 时按“重新打开”处理, - 旧 `WindowKey` 立即失效并提示用户重新选择;`performPinPreview`/`performMinimize` - 对这种窗口返回 `unsupported`,不自动接到新窗口。 -- `WindowBrowserSettings.keyName` 改用当前输入源键盘布局(`UCKeyTranslate`)翻译 - 键码,取不到布局时才回退内置 US 表;`MenuBarController` 的“选择窗口…”入口在 - 设置关闭时置灰。 -- fixture 支持 `WINDOWSHADE_BROWSER_FIXTURE_SIZE=small` 小屏场景。 - -### 新增真实运行证据 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 114 window-browser pure-logic checks` - (新增缩略图读取顺序的 8 条断言)。 -- `bash prototype/build.sh --check` → 67 个 Swift 文件类型检查通过。 -- Dock 只读探针(不移动指针): - `AXList children=31 appItems=25 selectedAttrReadable=true frame=(40,1027 1630x70)`; - 对第一个图标矩形内坐标 (74,1067) 的系统命中测试 - `synthetic-hit=appItem bundle=com.apple.finder depth=0`; - `AXSelectedChildrenChanged` 注册 `result=0`,观察器创建/拆除配对完成。 - 这证明鼠标回退路径在本机 Dock 上能直接解析出应用项,即使悬停通知不触发也 - 可用。 -- 窗口发现探针(真实 8 个 regular 应用):`windows=5 empty=4 failed=0 - total=458ms slowestApp=173ms`,逐应用耗时 - Safari 147–173ms、Finder 35ms、Codex 82ms、Telegram 35ms、空结果 28–59ms。 - 这是新增 AX 查询的实测基线,可作为后续性能对照的参照。 -- fixture:`small 460x341`、`mixed 720x561` 均正常构建,列表风格含选中项预览栏。 - -### 仍未验证 - -- Dock 悬停通知是否随真实鼠标移动触发(需要移动用户指针,未做);回退命中路径 - 已在真实 Dock 上验证。 -- 从正常启动的菜单/快捷键打开面板并执行折叠/展开/置顶/关闭的真实端到端流程。 -- 列表选中项预览栏与一路实时流的真实画面、性能与资源占用。 -- 多显示器缩放、Space、全屏、Mission Control、睡眠/锁屏/唤醒、权限撤销重授权、 - 连续 100 次开关的资源计数。 - -## 补充轮次 2:交互细节与完成门 - -### 真实修改 - -- Dock 面板已经可见时切换到另一个图标:`presentDockPanelIfNeeded` 立即更新几何与 - 内容,不再重新走 250ms 显示延迟;旧目标的图像按 `WindowKey` 隔离,不会冒充新 - 应用。 -- Dock 观察器无法建立/恢复时只停用 Dock 入口:`DockHoverObserver.onUnavailable` - → `WindowBrowserController.handleDockObserverUnavailable` 提示一次;菜单与快捷键 - 入口继续可用,收到新目标后自动清除不可用标记。 -- 卡片与列表行提供可访问性动作(激活/展开、折叠、置顶、关闭窗口); - `content.onClose` 走同一个 `submit(.close:)` 动作入口。 -- 快捷键保留组合策略纳入测试:⌘Q、无修饰单字母、仅 Shift 被拒绝,⌘⌥/⌃ 组合被 - 接受,显示名包含修饰符与当前布局的键名。 -- `WindowBrowserSingleShotCompletion` 单次完成门:`RestoreVerifier` 在 token 失效时 - 会静默结束,浏览器适配层现在保证展开、展开后置顶、展开后最小化的桥接 - completion 恰好生效一次。 -- 自有实时流的停止失败处理:`WindowStreamCapture.stop(completion:)` 回报真实错误; - 折叠前停止失败或 1.5 秒未确认 → 拒绝折叠并保留窗口;普通停止失败 → 5 秒内不再 - 新建自有流。 -- `WindowBrowserLivePreviewPolicy`:视频流在面板关闭/租约释放/目标消失之后才启动 - 成功时,保留判断为假,调用方立即停掉刚建立的流(测试直接覆盖四种组合)。 -- 修正动作协调器的真实缺陷:原实现下“同一 PID 的不同窗口”会被直接判 busy, - `queueByPID` 实际不可达。现在按任务书语义改为:同窗口同义动作合并、同窗口 - 相反动作直接 busy、同一 PID 的其他窗口进入最多 2 条的串行队列、队列满才 busy; - 面板关闭只取消排队请求(回 uncertain),已经开始的同步事务继续到真实终态。 -- 新增 `WindowBrowserTargetIdentity`:目标身份只由“元素 PID + 原窗口 ID”决定, - 函数不读取当前焦点;`windowBrowserResolveElement` 与 - `PinnedPreviewController.startPreview(targetWindowID:pid:axWindow:)` 共用它。 - -### 新增真实运行证据 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 138 window-browser pure-logic checks` - (新增完成门、快捷键策略、可访问性动作、迟到流保留判断、面板关闭时“已开始事务 - 不被取消/排队请求被取消”、PID+窗口 ID 身份判定等断言)。 -- `bash prototype/build.sh --check` → 67 个 Swift 文件类型检查通过。 -- 在最终修订上重新 stage 构建(未替换正在运行的应用)并重跑:Dock 探针 - `selectedAttrReadable=true`、`synthetic-hit=appItem bundle=com.apple.finder - depth=0`、`AXSelectedChildrenChanged result=0`、观察器拆除完成;窗口发现探针 - `apps=9 windows=4 empty=7 failed=0 total=210ms slowestApp=38ms`;fixture - `mixed 720x561` 与 `small 460x340` 均正常构建。 - -### 仍未验证 - -- 与上一轮相同的人类交互项:真实悬停通知、菜单/快捷键端到端动作、列表预览栏与 - 实时画面、多显示器/Space/睡眠锁屏、性能与资源计数。 - -## 补充轮次 3:权限态按钮、动作预检与真实单窗截图 - -### 真实修改 - -- `WindowBrowserViews` 的卡片/列表行接收 `screenRecordingAvailable`:缺少屏幕录制 - 时“创建置顶预览”按钮禁用并带原因提示;取消置顶属于本地清理,权限撤销后仍可用。 - 控制器在每次渲染时传入真实的 `hasScreenRecordingPermission()`。 -- 动作能力/权限预检纳入直接测试:折叠/展开/关闭/激活/置顶/取消置顶/最小化在 - 能力缺失、权限缺失、已折叠、已展开、已最小化、恢复中、置顶暂停等情况下的结果。 -- 新增只捕获 WindowShade 自己窗口的 `--window-browser-capture-probe`:走与 - `WindowBrowserThumbnailBackend` 相同的 `SCContentFilter(desktopIndependentWindow:)` - + `SCScreenshotManager.captureImage` 路径,测量像素上限、长宽比与内容,并读取 - 中心像素确认捕获的是目标窗口而不是整屏裁切。 - -### 新增真实运行证据 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 153 window-browser pure-logic checks`。 -- stage 构建后运行截图探针(只捕获本应用自己的探针窗口,不碰用户窗口): - - `profile=card pixels=461x320 source=840x584 took=131ms bytesPerRow=1920 center=(27,148,254)` - - `profile=selectedLarge pixels=840x584 source=840x584 took=25ms bytesPerRow=3456 center=(27,148,254)` - - 461/320 与 840/584 比例一致(长宽比保持);中心像素是探针窗口的 systemBlue, - 说明单窗过滤器命中的就是目标窗口;首次捕获 131ms、热态 25ms 是本机实测基线。 -- 运行中的 WindowShade 全程保持运行,`prototype/WindowShade.app` 未被替换。 - -### 仍未验证 - -- 真实用户窗口的截图延迟(探针只测了自己的窗口,避免读取用户内容)。 -- 其余人类交互项与多显示器/Space/睡眠锁屏/资源计数同上一轮。 - -## 补充轮次 4:Dock 回退路径真实验证与残留目标修复 - -### 真实修改 - -- `DockHoverObserver` 增加 `simulatePointer(at:)` 测试/探针接缝(生产路径仍传 - `NSEvent.mouseLocation`),把指针位置改为显式参数贯穿候选区域判断、命中检测与 - 图标区域校验,使回退路径可以在不移动系统指针的情况下被真实验证。 -- 修复探针暴露的真实缺陷:指针停在 Dock 的非图标区域(例如分隔符)后不再移动时, - 旧目标会一直残留,因为清除只在“下一次指针移动”时判定。现在: - 超过 0.4 秒宽限期立即清除;否则按最后一次指针位置安排一次延迟复检;目标产生或 - 清除时取消待执行的复检,观察器停止时一并取消。 - -### 新增真实运行证据 - -- 新增 `--window-browser-hover-probe`:使用生产 `DockHoverObserver`,以真实 Dock - 图标/分隔符坐标驱动回退命中路径(不移动用户指针): - - `hover-probe: icon-hit pid=3157 bundle=com.apple.finder expected=com.apple.finder match=true` - —— 命中图标坐标后产出正确的应用实例目标。 - - `hover-probe: non-icon dock point (1193,39) target=cleared` - —— 指针停在 Dock 上但不在任何图标(8pt 容差外)时,旧目标被清除。 - - `hover-probe: observer stopped` —— 观察器创建/停止配对完成。 -- `bash prototype/build.sh --check` 通过;stage 构建后重跑上述探针与之前三项探针 - 均正常;运行中的 WindowShade 未被停止或替换。 - -### 仍未验证 - -- 真实鼠标悬停时 AX 通知是否触发(回退路径已真实验证;通知路径仍无真机证据)。 -- 其余人类交互项、多显示器/Space/睡眠锁屏与资源计数同前几轮。 - -## 补充轮次 5:缩略图服务真实端到端与 100 轮基线 - -### 真实修改 - -- 新增 `--window-browser-thumbnail-probe`:把生产 `WindowThumbnailService` 接上真实 - 单窗截图后端(只捕获本应用自己的探针窗口),验证并发共享、缓存命中、失效重截与 - 资源归零。 -- 测试清单第 37 项落为直接测试:`hundredCyclesReturnToBaseline` 连续 100 轮 - 缩略图请求/取消/失效,以及 100 轮动作提交,断言在途截图、缓存字节、活动/排队 - 动作全部回到零。 - -### 新增真实运行证据 - -- 缩略图端到端探针输出: - - `first delivered 461x320 captures=1 cachedBytes=675840` - - `second delivered 461x320 captures=1 cachedBytes=675840` - - `cached delivered 461x320 captures=1 cachedBytes=675840` - - `after-invalidate delivered 461x320 captures=2 cachedBytes=675840` - - `deliveries=4 captures=2 running=0 cachedBytes=675840` - 说明:两次并发只进行一次真实截图;缓存命中不新增截图;`invalidateAll` 后旧结果 - 不复用、重新截图;结束无在途截图。`675840 = 1920 bytesPerRow × 320 × 1.1`, - 与生产成本模型一致。 -- `bash tests/run-window-browser-tests.sh` → `PASS: 156 window-browser pure-logic checks`。 - -### 仍未验证 - -- 与上轮相同:真实悬停通知、菜单/快捷键端到端动作、列表预览栏与实时画面、 - 多显示器/Space/睡眠锁屏,以及除上述探针以外的资源计数与性能对照。 - -## 补充轮次 6:实时预览真实流与布局选择修正 - -### 真实修改 - -- 修正布局选择缺陷:`WindowBrowserContentView.effectiveStyle()` 原会在窗口数超过 - 阈值时无条件覆盖用户选择,与任务书“同时提供缩略图/列表选择”冲突。现在自动 - 判定只在每个面板会话首次拿到记录时做一次;用户在分段控件显式选择后 - (`sessionAutoStyle`)不再被窗口数量或图像到达覆盖。规则只存在于控制器一处。 -- `WindowStreamCapture` 增加只读诊断计数 `deliveredFrameCount` 与 - `configuredFrameRate`(同一把锁保护),用于性能对照与集成探针。 -- 新增 `--window-browser-stream-probe`:只对 WindowShade 自己的探针窗口建立一路 - `WindowStreamCapture(preview: true)`,测量首帧延迟、实测帧率、停止返回与停止后 - 是否还有帧。 -- 离线 AppKit 回归:列表风格显示选中项预览栏,唯一一路实时视图挂到预览栏; - 切回缩略图风格后预览栏消失。 - -### 新增真实运行证据 - -- 实时预览流探针(自己的探针窗口,8fps 低分辨率配置): - `stream-probe: configuredFPS=8 firstFrame=186ms observedFPS=7.8`、 - `stream-probe: stopError=none framesAfterStop=9 framesNow=9 stable=true` - —— 配置的 8fps 生效、首帧 186ms、停止方法真实返回且停止后不再有帧,折叠前的 - 停流门有真机依据。 -- `bash tests/run-window-browser-tests.sh` → `PASS: 159 window-browser pure-logic checks` - (新增列表预览栏布局与实时视图挂载断言)。 -- stage 构建后上述探针与之前五个探针全部正常;运行中的 WindowShade 未停止、 - `prototype/WindowShade.app` 未替换。 - -### 仍未验证 - -- 真实用户窗口上的实时预览画质/资源占用(探针只测了自己的窗口)。 -- 与上轮相同:真实悬停通知、菜单/快捷键端到端动作、多显示器/Space/睡眠锁屏、 - 其余资源计数与性能对照。 - -## 补充轮次 7:镜像投递与面板激活语义真实验证 - -### 真实修改 - -- `WindowStreamCapture` 增加镜像帧诊断计数 `mirroredFrameCount`(与投递计数同锁), - 用于验证镜像子集投递真实发生。 -- 新增 `--window-browser-panel-probe`:用生产 `WindowBrowserPanel`/内容视图验证 - Dock 模式出现时是否改动前台应用或 key window,以及键盘模式是否按设计取得 key - window 并把焦点给搜索框。 -- 探针自身不再调用 `NSApp.activate`/`makeKeyAndOrderFront`:之前的“前台被改” - 观察已定位为探针自己的激活副作用,不是面板行为;现在所有探针都不改动用户前台。 - -### 新增真实运行证据 - -- 面板激活语义(连续两次干净复现): - - Dock 模式:`before-present appActive=false`、`after-present appActive=false - key=false visible=true`、`dock frontmostBefore=com.apple.Safari - frontmostAfter=com.apple.Safari unchanged=true canBecomeKey=false` - —— 面板出现但不激活 WindowShade、不抢 key、不改前台应用。 - - 键盘模式:`keyboard key=true searchFocused=true canBecomeKey=true` - —— 用户明确打开时按设计取得键盘焦点并可编辑搜索。 -- 实时预览流(自己的探针窗口,8fps 上限配置): - `configuredFPS=8 firstFrame=125–658ms framesInWindow=1/1000ms` - `mirroredFrames=1 tickerFires=28 visible=true onScreen=true`、 - `stopError=none framesAfterStop=2 framesNow=2 stable=true`。 - 结论:启动、首帧、镜像子集投递、停止返回与停止后无帧均已在真机成立;同时确认 - ScreenCaptureKit 对后台/无实质变化的窗口按“内容变化才出帧”工作(实测约 1fps, - 探针窗口强制 15–28Hz damage 也未提升),因此配置的 8fps 是上限而非保证值。 -- stage 构建后八个探针(dock / catalog / capture / hover / thumbnail / stream / - panel / fixture)均可运行;运行中的 WindowShade 未被停止或替换。 - -### 仍未验证 - -- 前台用户可见窗口(有真实内容变化)下的普通窗口实时预览帧率与资源占用。 -- 与上轮相同:真实悬停通知、菜单/快捷键端到端动作、多显示器/Space/睡眠锁屏、 - 其余资源计数与性能对照。 - -## 补充轮次 8:首屏延迟实测与两处性能修复 - -### 真实修改 - -- 新增首屏延迟测试:已管理快照 → 目录发布 → 稳定排序 → 面板几何,50 个窗口 - 的全部同步工作必须远小于任务书的 50ms 开发目标,并打印实测值。 -- 首次实测 **69.83ms**,超目标。定位到两处真实开销并修复: - 1. `WindowCatalog.publish()` 的读路径(`records(forPID:)` / `record(for:)`)每次 - 都重新做全量合并与排序;现在发布结果按需缓存,所有写路径先失效缓存。 - 2. 排序比较器每次比较都调用 `WindowBrowserSearch.normalize`(大小写/宽度/变音 - 折叠);现在每条记录只算一次规范化键(`WindowCatalog.publish()` 与 - `WindowBrowserListState.reconcile` 都改掉)。 -- 修复后同一测量 **2.82ms(50 窗口)**,另一次完整套件运行实测 6.72ms,均在 - 50ms 目标内。 - -### 新增真实运行证据 - -- `window-browser: first-content latency windows=50 took=2.82ms`(修复前 69.83ms)。 -- `bash tests/run-window-browser-tests.sh` → `PASS: 161 window-browser pure-logic checks`。 -- 对照:同一台机器上真实普通窗口发现 8 个应用约 210–468ms(逐应用 AX 读取), - 说明“标题与已有缓存先行”确实不等待系统发现与截图。 - -### 仍未验证 - -- 真实面板里的端到端首屏时间(含视图构建与权限查询)需要真实悬停才能测。 -- 与上轮相同的人类交互项与其余资源计数。 - -## 补充轮次 9:真实双显示器几何与环境记录 - -### 真实修改 - -- Dock 探针记录运行环境(macOS 版本、显示器数量、每屏分辨率与缩放),并用本机 - 真实的 `NSScreen.frame`/`visibleFrame` 复核左/右/底部三个方向的面板归属、 - 是否完整落在可用区域、过渡区域是否包含图标与面板之间的空隙。 -- 搜索过滤复用已规范化的查询串,不再为每条记录重复折叠查询(面板刷新热路径)。 - -### 新增真实运行证据 - -- 环境:`dock-probe: macOS=27.0.0 screens=2 [1710x1107@2.0,2560x1440@2.0]` - —— 本机确实是双显示器、不同分辨率、含负原点副屏。 -- 真实屏幕几何(逐屏三方向,均 `contained=true side=true transition=true - columns=3`): - - `screen[0] bottom panel=(497,87 716x572)` - - `screen[0] left panel=(66,267 716x572)` / `right panel=(928,267 716x572)` - - `screen[1] bottom panel=(487,1173 716x572)` - - `screen[1] left panel=(-369,1541 716x572)` / `right panel=(1343,1541 716x572)` - —— 负原点副屏、不同分辨率下没有坐标翻转,面板始终在图标正确一侧并完整落在 - 该屏可用区域内。 -- 同一次探针仍输出 `synthetic-hit=appItem bundle=com.apple.finder depth=0` 与 - 观察器注册/拆除配对完成。 - -### 仍未验证 - -- 系统 Dock 实际位于左/右时的真实悬停(本机 Dock 在底部;左/右仅用真实屏幕 - frame 验证了几何归属)。 -- 与上轮相同:真实悬停通知、菜单/快捷键端到端动作、睡眠锁屏,以及真实面板内 - 的端到端首屏时间。 - -## 补充轮次 10:真实入口(设置页 + 菜单项)接线验证 - -### 真实修改 - -- 新增 `--window-browser-ui-probe`:直接构造真实设置页与状态栏菜单,但**不运行** - AppDelegate 的启动序列(不启动传感器、不写 Dock 偏好、不触发救援、不装 event - tap)。探针会原样恢复被临时改动的设置。 - -### 新增真实运行证据 - -- 设置页真实构建: - `ui-probe: settingsPage switches=3 buttons=6 fields=24 hotKeyRecorders=1 - fittingHeight=601` - —— Dock 开关、键盘面板开关、实时预览开关、快捷键记录器(恰好 1 个)、打开面板与 - 编辑排除清单按钮、权限入口都在页面里,601pt 高度可放进设置窗口。 -- 菜单入口真实构建与开关联动: - `menuItem present=true enabled=true hasAction=true`、 - `menuItemWhenDisabled present=true enabled=false`、 - `menuItemRestored enabled=true settingsRestored=true` - —— “选择窗口…”入口接入真实菜单,按设置启用/置灰,探针退出后用户偏好完全恢复。 - -### 仍未验证 - -- 真人点击设置页控件与菜单项后的完整动作链(需要真实会话;纯逻辑与动作适配层 - 已有测试,UI 构建已在上方验证)。 -- 与上轮相同:真实悬停通知、真实折叠/展开/置顶/关闭端到端、睡眠锁屏、真实面板 - 端到端首屏时间。 - -## 补充轮次 11:异步结果接收条件与部分失败说明 - -### 真实修改 - -- 新增纯函数 `WindowBrowserRequestValidity.accepts(...)` 并接入 - `WindowBrowserController.scheduleMetadataRefresh` 的结果回调:结果回来时必须同时 - 满足「功能仍开启」「仍是同一个面板请求代数」「目标应用实例没有被终止后复用」, - 否则丢弃并记录 `stale metadata dropped`。此前只核对了 running 与请求代数, - 缺少功能开关与 PID 复用两项。 -- “展开成功但置顶失败”现在返回明确的部分失败说明 - (`展开已成功,但置顶预览失败:<原因>`),窗口保持展开,不再只报通用失败。 -- 测试补充:已置顶窗口折叠仍然通过原有折叠路径(由原折叠流程负责停掉置顶流)。 - -### 新增真实运行证据 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 168 window-browser pure-logic checks` - (新增功能关闭丢弃、A→B→A 丢弃、PID 复用丢弃、键盘会话面向所有当前实例、 - 已置顶窗口折叠等断言)。 -- `bash prototype/build.sh --check` 通过。 - -### 仍未验证 - -- 与上轮相同:真实悬停通知、真人菜单/快捷键端到端动作、睡眠锁屏、真实面板端到端 - 首屏时间。 - -## 补充轮次 12:按真实视口请求缩略图 - -### 真实修改 - -- 补上规格缺口:此前缩略图只请求记录列表的“前 8 条”,长列表滚动进入视口的窗口 - 不会补图,也不符合“只有视口中的卡片、选中项和少量即将滚入的项目可以请求截图”。 - 现在 `WindowBrowserContentView` 监听 clip view 的 bounds 变化,按真实 - `documentVisibleRect`(额外向下预取一行)计算可见键集合并通知控制器; - 滚动时不再需要的订阅立即取消,布局尚未完成时退回前 8 条兜底。 -- 修正顺带发现的副作用:`refreshPanel` 原会用固定“前 8 条”覆盖用户已滚动到的 - 位置,现改为一律以内容视图的真实可见集合为准。 -- 新增 `scrollDocument(toY:)` 诊断/测试接缝,用于在离屏回归里验证视口集合随滚动 - 变化。 - -### 新增真实运行证据(离屏 AppKit 回归) - -- `bash tests/run-window-browser-tests.sh` → `PASS: 172 window-browser pure-logic checks` - (新增:长列表只请求有界视口子集、首行在视口内、滚动后集合变化、视口变化会上报 - 给控制器)。 -- `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh`、`git diff --check` 全部通过。 -- 首屏延迟复测 1.60ms(50 窗口)。 - -### 仍未验证 - -- 真实鼠标滚动长列表时的补图时序与真实图片出现时间(需要真实面板会话)。 -- 与上轮相同:真实悬停通知、真人菜单/快捷键端到端动作、睡眠锁屏。 - -## 补充轮次 13:同步 AX 读取移出主线程 + 捕获几何取最新值 - -### 真实修改 - -- 修正与任务书第 9 节冲突的真实问题:缩略图与动作路径此前在**主线程**做同步 AX - 读取(解析元素、枚举应用窗口、查询按钮能力、读几何),忙应用会卡住 UI。 - 现在新增 `WindowBrowserTargetResolver` 与控制器专用串行队列 - `axResolverQueue`: - - 主线程只读取折叠/置顶会话里已有的廉价值(无 IPC); - - 身份核对、应用窗口枚举、按钮能力、几何读取全部在 `axResolverQueue` 执行; - - `resolveBrowserTarget` 回到主线程交付结果,解析不唯一或身份不匹配一律返回 nil。 - `validate`、`perform`(含激活/关闭/最小化/置顶前复核)、实时预览启动、缩略图 - 后端全部改走该入口;旧的同步 `windowBrowserResolveElement`/能力查询已删除。 -- 缩略图捕获改为使用目标窗口**最新**的 AX 位置与尺寸计算缩放和像素上限(此前用 - 目录里可能过期的逻辑位置,窗口跨不同缩放的显示器移动后会算错)。 -- 捕获所需的能力与几何在同一次后台读取里返回(`WindowBrowserResolvedTarget`), - 避免多次往返与主线程阻塞。 - -### 新增真实运行证据 - -- 目录发现探针增加主线程心跳:真实发现 10 个应用(AX 读取合计 277ms、最慢单应用 - 60ms)期间,主线程**最大间隔 6ms** —— 证明新增同步 AX 读取不再阻塞主线程。 - `catalog-probe: apps=10 windows=5 empty=6 failed=0 total=277ms slowestApp=60ms - mainThreadMaxGap=6ms` -- `bash tests/run-window-browser-tests.sh` → `PASS: 172 window-browser pure-logic checks`; - `bash prototype/build.sh --check` 通过(只剩既有 stopCapture 建议警告)。 - -### 仍未验证 - -- 忙应用(AX 超时 2s)下动作路径的主线程表现:探针机器上当前没有无响应应用。 -- 与上轮相同:真实悬停通知、真实滚动补图时序、真人端到端动作、睡眠锁屏。 - -## 补充轮次 14:按用途收敛单次 AX 读取预算 - -### 真实修改 - -- `WindowBrowserTargetResolver.inspect` 增加 `Options`(`geometry` / `capabilities`): - 身份核对总是执行,几何与按钮能力按用途按需读取,避免一次解析在无响应应用上叠加 - 多次 2 秒 AX 超时。各调用点的用途: - - `validate`:仅身份(动作前核对,不读几何/能力) - - `perform`(激活/关闭/最小化/置顶前):身份 + 能力(含 isMinimized/canClose/canMinimize) - - 实时预览启动、缩略图捕获:身份 + 几何(按目标窗口“现在”所在屏幕算缩放) - - 展开后复核、激活后复核:仅身份 -- 缩略图后端在控制器已释放时显式失败返回,避免服务端在途槽位因缺少 completion 而 - 永远占用。 - -### 新增真实运行证据 - -- 真实窗口(普通响应式应用)解析耗时中位数: - `catalog-probe: resolve identity=0ms geometry=0ms capabilities=1ms` - —— 动作前核对走身份-only 后,单次解析在毫秒以内。 -- 同一次探针:`apps=10 windows=5 empty=6 failed=0 total=265ms slowestApp=39ms - mainThreadMaxGap=7ms`(AX 读取全部在后台队列,主线程最大间隔 7ms)。 -- `bash tests/run-window-browser-tests.sh` → `PASS: 172 window-browser pure-logic checks`; - `bash prototype/build.sh --check` 通过。 - -### 仍未验证 - -- 无响应应用(单次 AX 调用打满 2 秒)下各动作路径的实际表现与退避:本机当前没有 - 可复现的卡死应用。 -- 与上轮相同:真实悬停通知、真实滚动补图时序、真人端到端动作、睡眠锁屏。 - -## 补充轮次 15:会话状态泄漏修复与“无权限”fixture - -### 真实修改 - -- 修复真实状态泄漏:键盘面板每次都是新建的(搜索框为空),但控制器可能保留上一次 - 会话的查询串,出现“搜索框是空的、列表却被旧查询过滤”的错误状态。现在 - 打开键盘面板时显式清空 `searchText`,并在关闭面板时统一复位全部会话级状态 - (查询、布局自动判定、选中项、缩略图订阅、几何)。 -- 补上任务书点名的 fixture 场景“无权限”: - `WINDOWSHADE_BROWSER_FIXTURE=nopermission` 会渲染缺少屏幕录制权限的列表 - (应用图标 + 标题 + 状态、图像相关按钮禁用、页脚说明)。 - -### 新增真实运行证据 - -- 隔离 fixture 三种场景均正常构建并退出: - - `nopermission`:`records=2 panel=720x560 canBecomeKey=true searchVisible=true` - - `many`:`records=20 panel=720x560 style=list` - - `empty`:`records=0` -- `bash prototype/build.sh --check` 通过;`bash tests/run-window-browser-tests.sh` - → `PASS: 172 window-browser pure-logic checks`。 - -### 仍未验证 - -- 与上轮相同:真实悬停通知、真实滚动补图时序、真人端到端动作、无响应应用、 - 睡眠锁屏。 - -## 补充轮次 16:跨入口状态一致性与折叠前订阅解除 - -### 真实修改 - -- 跨入口一致性:面板打开期间若用户通过原有菜单/快捷键折叠、展开或置顶窗口, - 面板此前不会更新。现在 `rebuildMenu()`(原有路径改变折叠/置顶状态后必然触发) - 调用 `WindowBrowserController.managedWindowsDidChange()` 刷新投影;面板未打开时 - 是空操作,不产生常驻开销。原有菜单与快捷键入口本身行为不变。 -- 折叠前清理补全:除了释放自有实时流与借用镜像,`prepareForFold` 还会取消该窗口的 - 临时缩略图订阅并让服务作废在途截图,避免自己的面板/捕获标识与折叠截图竞争 - (折叠后的画面仍由 `ShadeState.previewImage` 提供)。 -- 面板被设置关闭或处于锁定/挂起状态时,打开请求给出明确提示,而不是静默失败。 - -### 验证 - -- `bash prototype/build.sh --check`、`bash tests/run-window-browser-tests.sh` - (`PASS: 172 window-browser pure-logic checks`)、`bash tests/run-paper-tests.sh`、 - `git diff --check` 全部通过;首屏延迟 1.44ms。 - -### 仍未验证 - -- 真人从原有菜单折叠另一个窗口时,新面板在同一屏内实时反映状态(需要真实面板会话)。 -- 与上轮相同:真实悬停通知、真实滚动补图时序、真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 17:单窗捕获非整屏裁切的真机证明 + 缓存隔离断言 - -### 真实修改 - -- 截图探针升级为“遮挡实验”:先在屏幕中央放蓝色探针窗口,再在其上方压一个偏移的 - 红色窗口盖住蓝窗中心。若实现退回成“整屏截图后按坐标裁切”,中心会拍到红色; - 只有真正的单窗过滤器才会返回蓝窗自己的内容。 -- 测试清单第 29 项落为可执行断言:把折叠路径的 `WindowSnapshotCache` 编进测试 - 程序,验证新缩略图服务既不会写入/登记折叠缓存,也不会把折叠缓存里的图当成 - 自己的缓存复用。 - -### 新增真实运行证据 - -- 遮挡实验(真机,stage 构建): - `capture-probe: profile=card pixels=461x320 source=840x584 took=919ms - bytesPerRow=1920 center=(27,148,254) blue=true` - —— 被红窗完全盖住中心的蓝窗,单窗捕获中心仍是 systemBlue - `(27,148,254)`,证明没有整屏截图回退;`selectedLarge` 中心同样是蓝色。 - (首次 919ms 含双窗搭建与首次 SCK 冷启动,第二次 136ms。) -- `bash tests/run-window-browser-tests.sh` → `PASS: 176 window-browser pure-logic checks` - (新增 4 条缓存隔离断言)。 - -### 仍未验证 - -- 与上轮相同:真实悬停通知、真实滚动补图时序、真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 19:排版跟随系统字号 - -### 真实修改 - -- 新增 `WindowBrowserTypography`:字号取自 `NSFont.systemFontSize`(系统文本尺寸 - 设置会改变它),正文字号用于标题/表头,`bodySize - 2`(下限 9pt)用于次要说明与 - 控件字体,并提供行高计算。 -- 面板字体不再写死 11/12/13pt:卡片标题与状态、列表行标题与状态、面板表头/刷新 - 说明、选中项预览栏标题与状态、快捷键记录器都改用统一排版;卡片标题高度、 - 状态高度、行标题/状态高度、行控件高度、表头/页脚高度都按真实行高派生,字号变大时 - 自动长高,配合原有“列数收缩 + 滚动”避免文字被裁切。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 179 window-browser pure-logic checks` - (布局断言在新派生尺寸下仍成立:按钮 ≥28pt、按钮在卡片内、图像区不超上限)。 -- `bash prototype/build.sh --check` 通过;stage 构建后 fixture `mixed 9 / many 20(list)` - 面板尺寸仍为 720×560,布局正常。 - -### 仍未验证 - -- 把 macOS 系统文本尺寸调大后的真实排版效果(需要你手动调整系统设置后回来看面板; - 当前实现按行高派生,未实测超大字号)。 -- 与上轮相同:真实悬停通知、真实滚动补图时序、真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 20:镜像只挂在真正运行的源流上 + 解除镜像不停流 - -### 真实修改 - -- `WindowStreamCapture` 新增只读 `isRunning`(`stream != nil && !_isStopped`)。 -- `PinnedPreviewController.attachMirror` 现在要求源流确实在运行:暂停、已停止或异常 - 终止后不再挂接镜像,避免得到一个永远空白的预览(对应任务书“仅在源流确实运行、 - 没有暂停且目标仍有效时挂接镜像”)。 -- 配套重试:选中项未变但当前没有实时画面时(例如置顶流刚启动、挂接时源流尚未运行), - 面板刷新会再尝试一次,不必重新选择才能看到画面。 - -### 新增真实运行证据 - -- 流探针新增“解除镜像”阶段(等价于 `releaseMirror`:只摘掉镜像层,不停止源流): - `stream-probe: afterMirrorRelease running=true mirrorFrames=1->1 frames=2->2` - —— 解除镜像后源流仍在运行、镜像不再收到帧;持久置顶流没有被关闭临时面板停掉。 -- 同次输出:`configuredFPS=8 firstFrame=127ms mirroredFrames=1`、 - `stopError=none framesAfterStop=2 framesNow=2 stable=true`。 -- `bash tests/run-window-browser-tests.sh` → `PASS: 179 window-browser pure-logic checks`; - `bash prototype/build.sh --check` 通过。 - -### 仍未验证 - -- 真实置顶会话(用户点“置顶当前窗口”后)在面板关闭/重开时的镜像挂接与暂停/恢复 - 组合,需要在真实会话里点一次置顶才能覆盖。 -- 与上轮相同:真实悬停通知、真实滚动补图时序、真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 21:镜像层共享状态纳入同一把锁 - -### 真实修改 - -- 任务书要求“更换镜像层涉及主线程和帧队列时,新增共享属性必须受同一锁或队列约束”。 - `WindowStreamCapture.mirrorLayer` 原本是主线程挂接/解除、帧队列读取的裸弱引用, - 存在数据竞争;现在改为 `stateLock` 保护的读写属性(内部 `_mirrorLayer`),与帧 - 投递、代数、帧率共用同一把锁。锁只在帧回调释放之后获取,没有嵌套加锁。 - -### 验证 - -- `bash prototype/build.sh --check`、`bash tests/run-window-browser-tests.sh` - (`PASS: 179 window-browser pure-logic checks`)、`bash tests/run-duo-tests.sh` 通过。 -- stage 构建后重跑两个真实探针确认锁没有破坏帧路径: - - 流探针:`configuredFPS=8 firstFrame=136ms mirroredFrames=1`、 - `afterMirrorRelease running=true mirrorFrames=1->1`、 - `stopError=none framesAfterStop=2 framesNow=2 stable=true`(镜像仍能收到帧, - 解除镜像后源流继续运行)。 - - 缩略图探针:`deliveries=4 captures=2 running=0 cachedBytes=675840`(不变)。 - -### 仍未验证 - -- 与上轮相同:真实置顶会话下的镜像/暂停组合、真实悬停通知、真实滚动补图时序、 - 真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 22:视图侧缩略图内存边界 - -### 真实修改 - -- 复查内存时发现真实问题:内容视图的缩略图字典会随会话累积——滚动过的每一屏都 - 一直留在内存里,不受任何预算约束(服务的 24 MiB 缓存只管它自己的那份)。 - 现在 `notifyVisibleKeys()` 会把视图持有的图像裁剪到“视口 + 向下预取 + 选中项”, - 滚出视口的卡片图像立即释放;滚动回来时由服务缓存命中或重新请求。 - 这样形成两层有界内存:视图 ≤ 一屏 + 1 行,服务 ≤ 24 MiB。 -- 新增只读 `cachedThumbnailCount` 供内存边界回归与诊断使用。 - -### 新增真实运行证据 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 182 window-browser pure-logic checks` - (新增:可以为每条记录应用缩略图、滚出视口的图像会被释放、视图保留量 - ≤ 视口 + 1)。 -- `bash prototype/build.sh --check` 通过;stage 构建后 fixture `many`(20 条列表) - 仍正常。 - -### 仍未验证 - -- 真实滚动长列表时视图内存峰值的实测(需要真实面板会话与长列表)。 -- 与上轮相同:真实置顶会话下的镜像/暂停组合、真实悬停通知、真人端到端动作、 - 无响应应用、睡眠锁屏。 - -## 补充轮次 23:AX 与 WindowServer 窗口来源交叉核对(实测限制) - -### 真实修改 - -- 目录探针增加交叉核对列 `cgLayer0=`:对每个 regular 应用同时统计 - `WindowBrowserDiscovery` 得到的记录数与 `WindowListCache` 里该进程的 layer-0、 - 可见 alpha、有几何、非桌面组件的窗口数。 - -### 实测结果与结论 - -- 本机一次运行:`Safari windows=4 cgLayer0=18`、`Drafts windows=1 cgLayer0=9`, - 其余应用两者一致(多为 0 或 1);`apps=10 windows=5 empty=8 failed=0 - total=254ms slowestApp=51ms mainThreadMaxGap=6ms`。 -- 结论:两种来源差异显著,多出来的通常是应用未作为窗口暴露的辅助/帮助窗口。 - 当前实现以应用自报的辅助功能窗口列表作为窗口身份来源(CG 只补可见性与能力), - 因此这些多出来的项不会获得窗口级写操作;这也正是任务书要求的“不能声称两种来源 - 可以发现所有应用、所有 Space 的每个窗口”。该限制已写入用户文档 - (`docs/window-browser.md` 的兼容限制一节)。 - -### 仍未验证 - -- 同一应用在多个 Space 同时有窗口时的 AX/CG 覆盖差异(需要多 Space 会话)。 -- 与上轮相同:真实滚动内存峰值、真实置顶会话镜像组合、真实悬停通知、 - 真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 25:临时面板显式状态机 - -### 真实修改 - -- 任务书要求“实现可测试的临时面板状态,不用多个互相独立的 Bool 拼凑。可采用 - hidden、pendingShow、visible、pendingHide、interacting,并让每个状态携带对应 - 请求 token”。此前只定义了枚举,控制器仍靠独立工作项判断;现在新增纯状态机 - `WindowBrowserPanelStateMachine` 并真正接入: - - `presentDockPanelIfNeeded`:`beginShow(request:)`,过期 token 的延迟显示任务 - 直接失效,面板真正出现后 `confirmShow`; - - 键盘面板打开:`beginShow` + `confirmShow`; - - 鼠标离开:`beginHide`(延迟内重新进入会 `cancelHide`);指针在面板内: - `beginInteraction`,交互期间禁止自动隐藏,离开后 `endInteraction`; - - 关闭面板:`reset()`,下一次打开不会继承旧 token。 - 状态机同时提供 `accepts(request)`,作为延迟工作项的第二道过期校验。 - -### 新增真实运行证据 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 201 window-browser pure-logic checks` - (新增 19 条状态机断言:隐藏起始无 token、pendingShow 携带 token、过期 token 不能 - confirmShow/beginHide、cancelHide 回到 visible、interaction 阻止自动隐藏、endInteraction - 回到 visible、reset 丢弃 token、Dock 图标切换替换待显示 token)。 -- `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh` 通过;stage 构建后 fixture `mixed` 仍正常。 - -### 仍未验证 - -- 真实悬停下的完整状态迁移(进入图标 → 延迟显示 → 进入面板 → 离开 → 关闭)需要 - 真实鼠标会话;离屏测试覆盖的是状态机本身与控制器接线点。 -- 与上轮相同:真实滚动内存峰值、真实置顶会话镜像组合、真实悬停通知、 - 真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 26:实时不可用回退到快照/图标 - -### 真实修改 - -- 复查实时预览失败路径时发现真实回退缺陷:挂接实时画面时会把卡片已缓存的静态图 - 一并清掉,一旦流启动失败或随后停止,卡片只剩占位符,而不是任务书要求的 - “实时不可用就回到快照或图标”。 -- 现在改为“静态图在下、实时视图覆盖在上”:挂接实时视图时不再清除静态缩略图, - 解除/失败/停止时实时视图被移除,下面的快照自动重新可见;没有快照时仍是 - 图标 + 说明。 - -### 新增真实运行证据 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 204 window-browser pure-logic checks` - (新增:实时视图挂到卡片之上、解除后从父视图移除、缓存的静态快照仍可作为回退)。 -- 该回归还确认了一个设计细节:列表风格下只有选中项会承载实时视图,非选中项不会 - 被挂接(测试用缩略图风格验证卡片路径)。 -- `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh` 通过;stage 构建后 fixture `many` 正常。 - -### 仍未验证 - -- 真实置顶流启动失败/停止后的画面回退观感(需要真实面板会话)。 -- 与上轮相同:真实滚动内存峰值、真实悬停通知、真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 27:死代码清理 + 观察器诊断落地 - -### 真实修改 - -- 用“定义/引用计数”审计整个新模块,删除只被定义、没有任何调用点的 API: - `WindowBrowserFetchResult.value`/`isPublishable`、`WindowBrowserActionOutcome.isTerminal`、 - `WindowBrowserTemporaryPanelState.isOnScreenOrPending`、`WindowBrowserListState.selectAdjacent`、 - `WindowBrowserListState.newItemOrdering`、`WindowIdentityAllocator.noteApplicationRelaunched`、 - `AppDelegate.cancelWindowBrowserFoldWaiter`、控制器的 `isPanelVisible`/`isDockObserverRunning`/ - `currentSessionID`、内容视图的 `selectedKey()`/`setStatus(_:)`、缩略图服务的 - `currentCaptureVersion`,以及 `PinnedPreviewSessionSnapshot.isInteracting`。 - 保留 `controlTextDidChange`(AppKit 代理回调,框架调用)。 -- 把原本孤立无引用的观察器诊断 `usesNotifications`/`observerGeneration` 真正用于回退探针 - 输出;`WindowThumbnailService.startedCount`/`deliveredCount` 也已进入缩略图探针输出。 - -### 新增真实运行证据 - -- 回退探针复测: - `hover-probe: icon-hit pid=3157 bundle=com.apple.finder expected=com.apple.finder match=true`、 - `hover-probe: non-icon dock point (1157,39) target=cleared`、 - `hover-probe: diagnostics notificationsReliable=false generation=1` - —— 再次确认当前这台机器上成功路径来自回退命中,AX 通知仍未观察到(与未验证项一致)。 -- `bash tests/run-window-browser-tests.sh` → `PASS: 204 window-browser pure-logic checks`; - `bash prototype/build.sh --check` 通过。 - -### 仍未验证 - -- 与上轮相同:真实悬停通知、真实置顶会话镜像组合、真实滚动内存峰值、 - 真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 28:对齐项目既有纸面外观 - -### 真实修改 - -- 任务书要求“保留现有原生外观和纸张组件,使用现有颜色、阴影、字体及浅深色规则”。 - 浏览面板此前用通用圆角与系统窗口阴影;现在改为与置顶预览面板完全相同的纸面处理: - `PaperSurfaceStyle.installShadow(on: self)`(子阴影面板随窗口生命周期自动清理), - 面板内容与选中项预览栏圆角统一为项目纸面圆角 10pt,卡片/缩略图仍为 6–10pt。 - 面板颜色继续使用系统动态色(`windowBackgroundColor`/`controlBackgroundColor`/ - `separatorColor`/`labelColor`),浅深色自动跟随,不引入新主题或网页视图。 -- 测试程序同步纳入 `PaperSurfaceStyle.swift`(面板现在引用它)。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 204 window-browser pure-logic checks`; - `bash tests/run-paper-tests.sh` 通过(纸面组件回归未受影响)。 -- `bash prototype/build.sh --check` 通过;stage 构建后 fixture `mixed/many/nopermission` - 三个场景仍正常渲染。 - -### 仍未验证 - -- 纸面阴影与圆角在浅色/深色下的实际观感(需要你打开面板目视确认;实现与置顶预览 - 面板同一套参数)。 -- 与上轮相同:真实悬停通知、真实置顶会话镜像组合、真实滚动内存峰值、 - 真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 29:面板激活语义决定性验证 + 键盘焦点加固 - -### 真实修改 - -- 面板探针升级为三阶段并带对照实验: - 1. `WINDOWSHADE_PANEL_PROBE_SKIP_PRESENT=1`:完全不显示窗口,只看进程本身是否被激活; - 2. 首次显示 Dock 面板 → 键盘面板; - 3. 同一进程稍后再次显示 Dock 面板(稳态)。 -- `presentKeyboardPanel` 加固:显式 `activate(ignoringOtherApps: true)` 后,在 - 0.12/0.3/0.6s 做有限重试(再次激活 + makeKeyAndOrderFront + 聚焦搜索框), - 解决“激活完成晚于 makeKeyAndOrderFront”导致的键盘焦点丢失。 -- `PaperSurfaceStyle` 的纸面阴影子窗口改为不可成为 key/main(`PaperShadowPanel`), - 影子窗口本身不该抢键盘焦点(对置顶预览/覆盖层同样受益)。纸面阴影本身保留: - 对照实验证明它不是激活原因。 - -### 实测结论(重要) - -- 对照实验:不显示任何窗口时 `frontmostBefore=frontmostAfter=com.openai.codex - unchanged=true appActiveAfter=false` —— 进程本身不会被激活。 -- 首次显示 Dock 面板会激活所属 app - (`unchanged=false appActiveAfter=true`),但同一进程**稍后第二次**显示时: - `frontmostBefore=com.openai.codex → frontmostAfter=com.openai.codex unchanged=true - appActiveAfter=false key=false`。 - 恢复纸面阴影后再次复测(前台为 Safari): - `frontmostBefore=com.apple.Safari frontmostAfter=com.apple.Safari unchanged=true - appActiveBefore=false appActiveAfter=false key=false` - —— 稳态悬停面板在别的应用前台时不激活 WindowShade、不成为 key window, - 且纸面阴影保留。 - 结论:首次激活是“从当前前台应用启动的新进程首次出窗”的探针启动假象;长期运行的 - WindowShade(真实情况)显示悬停面板时不会激活自己,也不会成为 key window。 -- 键盘面板连续 3 次运行均为 `key=true searchFocused=true canBecomeKey=true`。 - -### 仍未验证 - -- 真人在其他应用前台时悬停 Dock 图标的面板激活行为(探针已用稳态对照证明; - 真实会话仍建议目视确认一次)。 -- 与上轮相同:真实悬停通知、真实置顶会话镜像组合、真实滚动内存峰值、 - 真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 30:键盘面板关闭时归还焦点 - -### 真实修改 - -- 补上任务书要求但此前缺失的一环:“用户在键盘面板中取消时,不激活任何候选窗口; - 避免在关闭时无条件重新激活打开前的应用……只有确实由本面板暂时取得焦点且没有 - 新的用户目标时,才按 AppKit 正常流程归还焦点。” - 现在打开键盘面板前记录当前前台应用;关闭时若「面板曾是 key window」 - 「我们仍是前台(用户没有点击别处)」「记录的确实是别的应用」三条同时成立, - 才调用现有 `activateApp(pid:)` 归还焦点,否则不打扰。 -- 判定抽成纯函数 `WindowBrowserFocusReturnPolicy.shouldReturnFocus(...)`。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 210 window-browser pure-logic checks` - (新增 6 条:仍持有时归还、用户已切走时不抢回、Dock 面板从不归还、面板未成为 key - 时不归还、没有记录不归还、不把焦点“归还”给自己)。 -- `bash prototype/build.sh --check` 通过。 - -### 仍未验证 - -- 真实会话里“快捷键打开面板 → Escape 关闭 → 焦点回到原应用”的端到端观感 - (策略有测试、控制器接线经代码复核;需要真实快捷键会话确认)。 -- 与上轮相同:真实悬停通知、真实置顶会话镜像组合、真实滚动内存峰值、 - 真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 31:重复打开面板不再叠加 - -### 真实修改 - -- 修复真实入口缺陷:菜单“选择窗口…”每次点击都会调用 `openKeyboardPanel()`, - 而该函数此前无条件新建面板——连续点击会**叠加多个面板**(旧面板无人引用、 - 资源泄漏且堆在后面);Dock 面板开着时打开键盘面板也会覆盖引用。 - 现在:键盘面板已打开时只把它带到前台并聚焦搜索框;存在 Dock 面板时先按正常流程 - 收掉旧面板(含会话状态复位与资源释放),再创建键盘面板。 -- 焦点归还策略补一个边界:应用退出(`stop`)时不归还焦点,其余情况仍按策略判断。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 214 window-browser pure-logic checks` - (新增 4 条 `WindowBrowserOpenPolicy` 断言:无面板→新建、键盘面板已开→聚焦、 - Dock 面板→替换、面板已关→新建);`bash prototype/build.sh --check` 通过; - stage 构建后 fixture `mixed` 正常。 - -### 仍未验证 - -- 真实会话里连续点击菜单多次、以及 Dock 面板与键盘面板之间切换的实际观感 - (入口逻辑已修复,需要真实菜单/悬停会话确认不会出现两个面板)。 -- 与上轮相同:真实悬停通知、真实置顶会话镜像组合、真实滚动内存峰值、 - 真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 32:选中项滚入视口 - -### 真实修改 - -- 补上键盘操作的真实体验缺陷:方向键把选中项移出视口后列表不滚动,用户看不到 - 当前选中项,视口缩略图请求也停留在旧位置。现在 `WindowBrowserContentView.select` - 在选中项变化时用 `documentView.scrollToVisible(...)` 把它滚入可见区域,并重新 - 计算可见键集合,让控制器只对真正可见的项目请求缩略图。 - -### 新增真实运行证据 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 216 window-browser pure-logic checks` - (新增:最后一行初始不在视口内;选中它之后 `visibleWindowKeys` 包含它)。 -- `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh` 通过;stage 构建后 fixture `many` 正常。 - -### 仍未验证 - -- 真实面板里连续按方向键滚动的观感与滚动惯性(离屏测试覆盖布局与视口集合)。 -- 与上轮相同:真实悬停通知、真实置顶会话镜像组合、真实滚动内存峰值、 - 真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 33:面板窗口的可访问性名称 - -### 真实修改 - -- 无边框面板默认没有窗口标题,VoiceOver 会读成无名窗口。现在按用途设置窗口标题/ - 可访问性名称(Dock 悬停 = “窗口浏览”,键盘面板 = “窗口选择”),并把临时面板 - 排除在窗口菜单之外,避免污染 app 的窗口列表。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 218 window-browser pure-logic checks` - (新增:两种模式的面板都有可访问性窗口标题;临时面板不在窗口菜单中)。 -- `bash prototype/build.sh --check` 通过。 - -### 仍未验证 - -- VoiceOver 实际朗读效果(需要开启读屏器逐项确认卡片标题、状态与动作名称)。 -- 与上轮相同:真实悬停通知、真实置顶会话镜像组合、真实滚动内存峰值、 - 真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 34:开发验收入口写入 DEVELOPMENT.md - -### 真实修改 - -- 按仓库既有惯例(`docs/design-v1.md` 有“开发验收入口”一节),在 `DEVELOPMENT.md` - 的调试章节新增“窗口浏览”小节:纯逻辑与离屏 AppKit 回归命令、隔离 fixture 的 - 运行方式(场景与自动退出/小屏环境变量)、以及八个只读真机探针的清单, - 并指向用户向说明 `docs/window-browser.md` 与进度记录。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 218 window-browser pure-logic checks`; - `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh`、`git diff --check` 全部通过。 - -### 仍未验证 - -- 与上轮相同:VoiceOver 实测、真实悬停通知、真实置顶会话镜像组合、 - 真实滚动内存峰值、真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 35:排除清单即时生效 + 选中档位替换 - -### 真实修改 - -- 排除清单边界:用户把当前 Dock 目标应用加入排除清单时,立即关闭面板, - 而不是留下一个被过滤成空的面板(键盘面板仍按过滤后列表正常刷新)。 -- 缩略图档位替换:选中项从卡片档升到“选中大图档”时,此前已有订阅会挡住重新请求, - 选中预览一直停留在 512×320。现在记录每个 key 当前档位,档位变化时替换订阅 - (`WindowBrowserThumbnailSubscriptionPolicy.needsReplace`),同档位继续复用。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 221 window-browser pure-logic checks` - (新增:同档位复用、卡片档→选中大图档替换、档位未知时替换)。 -- `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh` 通过;stage 构建后 fixture `many` 正常。 - -### 仍未验证 - -- 真机观察选中大图档的清晰度与占用(离屏测试覆盖订阅替换逻辑)。 -- 与上轮相同:VoiceOver 实测、真实悬停通知、真实置顶会话镜像组合、 - 真实滚动内存峰值、真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 36:状态机滞留漏洞修复 - -### 真实修改 - -- 复核实测状态机接线时发现真实漏洞:一次隐藏检查若判定“鼠标仍在内”,状态会停在 - `pendingHide`;之后 `beginHide` 对 `pendingHide` 返回 false,导致再也排不出隐藏, - 面板可能滞留(只剩外点击/切前台等路径能关)。现在: - - `beginHide` 对 `visible / pendingShow / pendingHide` 都接受并幂等回到 - `pendingHide`(重复排程安全); - - `confirmShow` 允许从 `pendingHide` 回到 `visible`(面板确实出现时状态更准确, - 待执行的隐藏工作项仍按鼠标位置决定是否关闭); - - `scheduleHideCheck` 不再单开一条绕过状态机的路径,统一走 `scheduleHide`。 -- 顺带删除卡片视图里从未被使用(没有 `mouseEntered/Exited` 回调)的 tracking area。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 225 window-browser pure-logic checks` - (新增:pendingHide 重复排程幂等、pendingHide → visible 保住 token)。 -- `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh` 通过;stage 构建后 fixture `many` 正常。 - -### 仍未验证 - -- 真实悬停里的完整“出现 → 留在面板 → 离开 → 关闭”迁移(状态机与接线有测试, - 仍需真实鼠标会话确认观感)。 -- 与上轮相同:VoiceOver 实测、真实悬停通知、真实置顶会话镜像组合、 - 真实滚动内存峰值、真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 37:规模回归(面板与首屏数据路径) - -### 真实修改 - -- 面板规模回归:新增 200 个窗口的列表布局断言——视口子集仍然有界 - (`visibleWindowKeys.count < 记录数`),视图侧缩略图数量仍 ≤ 视口 + 1。 -- 首屏数据路径规模对照:同一“已管理快照 → 发布 → 稳定排序”路径测 50 与 200 个 - 窗口,都必须在任务书的 50ms 开发预算内,并打印实测值。 - -### 新增真实运行证据 - -- `window-browser: first-content latency windows=50 took=0.66ms` -- `window-browser: first-content latency windows=200 took=2.28ms` -- `bash tests/run-window-browser-tests.sh` → `PASS: 229 window-browser pure-logic checks` - (新增 4 条规模断言:200 条全部发布、首屏仍在预算内、视口有界、视图图像有界)。 -- `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh` 通过;stage 构建后 fixture `many` 正常。 - -### 仍未验证 - -- 真实 200 个已管理窗口的场景(需要大量折叠窗口;离屏规模回归覆盖数据与布局)。 -- 与上轮相同:VoiceOver 实测、真实悬停通知、真实置顶会话镜像组合、 - 真实滚动内存峰值、真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 38:刷新时跳过无变化的卡片重建 - -### 真实修改 - -- 面板每次收到元数据都会重配所有可见卡片(重建可访问性动作、重设图层/文本), - 即使该卡片内容未变。现在卡片与列表行分别记录“内容签名” - (metadataRevision + 应用名 + 标题 + 选中态 + 忙碌态 + 录屏权限),签名不变时 - 直接跳过重配;标题/状态/能力/选中态变化时才重建。这样多应用并发刷新时 - 主线程只处理真正变化的项。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 231 window-browser pure-logic checks` - (新增:无变化记录跳过重配——用“手工改写按钮标题后再次 configure 仍保留”验证; - 记录变化后确实重建)。 -- 首屏延迟复测:50 窗口 0.68ms、200 窗口 2.28ms。 -- `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh` 通过;stage 构建后 fixture `mixed/many` 正常。 - -### 仍未验证 - -- 多应用并发刷新下主线程耗时的真机对照(需要真实面板会话与多个忙碌应用)。 -- 与上轮相同:VoiceOver 实测、真实悬停通知、真实置顶会话镜像组合、 - 真实滚动内存峰值、真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 39:列表行可访问性对齐 - -### 真实修改 - -- 列表行的操作按钮现在带窗口名(VoiceOver 读作“折叠:<窗口标题>”等),应用图标 - 不作为独立可访问性元素——与卡片视图的行为保持一致,避免读屏器逐个朗读装饰图标。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 234 window-browser pure-logic checks` - (新增:列表行有两个操作按钮、按钮名称含目标窗口标题、图标不是独立可访问性元素)。 -- `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh` 通过;stage 构建后 fixture `mixed` 正常。 -- 首屏延迟同轮复测:50 窗口 2.77ms、200 窗口 8.70ms(仍在 50ms 预算内)。 - -### 仍未验证 - -- 开启 VoiceOver 的实际朗读顺序与措辞(需要人工逐项确认)。 -- 与上轮相同:真实悬停通知、真实置顶会话镜像组合、真实滚动内存峰值、 - 真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 40:设置页两个真实交互缺陷 - -### 真实修改 - -- 排除清单编辑器此前用单行 `NSTextField` 承载“每行一个 bundle ID”,实际无法正常 - 多行编辑;改为 `NSScrollView + NSTextView`(带滚动条、等宽字体),保存时仍支持 - 换行/逗号/分号分隔。 -- 快捷键记录器此前会把“只按修饰键”(如单按 ⌘)记成一个组合,随后注册必然失败; - 现在修饰键单独按下时保持录制状态,等真正的键。判定抽成 - `WindowBrowserSettings.isModifierOnlyKeyCode` 并加断言。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 236 window-browser pure-logic checks` - (新增:⌘ / 右⌥ 视为修饰键、普通按键可以录制)。 -- UI 路由探针在最新构建上复测:`settingsPage switches=3 buttons=6 fields=24 - hotKeyRecorders=1 fittingHeight=601`、菜单项启用/置灰联动与设置还原均正常。 -- `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh` 通过。 - -### 仍未验证 - -- 真人打开“编辑排除清单…”对话框做一次多行输入(需要真实设置窗口交互)。 -- 与上轮相同:VoiceOver 实测、真实悬停通知、真实置顶会话镜像组合、 - 真实滚动内存峰值、真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 41:全局快捷键不再抢占系统编辑组合 - -### 真实修改 - -- 复查全局热键安全性时发现真实风险:`RegisterEventHotKey` 注册的是**全局**热键, - 而此前只拒绝了少量保留组合,用户可能录出 ⌘C/⌘V/⌘A/⌘S 这类系统级编辑快捷键, - 导致全系统对应功能失效。现在要求组合必须包含 Control 或 Option(项目自身的 - ⌃⌘ 系列即符合此约定):单字母无修饰键、仅 Shift、纯 ⌘ 与 ⌘⇧ 组合都会被拒绝。 - 设置页副标题与 `docs/window-browser.md` 已同步说明。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 238 window-browser pure-logic checks` - (新增:纯 ⌘ 组合被拒绝、⌘⇧ 组合被拒绝;⌘⌥ 与 ⌃ 组合仍被接受)。 -- UI 路由探针复测:设置页与菜单联动正常(`menuItemRestored enabled=true - settingsRestored=true`)。 -- `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh` 通过。 - -### 仍未验证 - -- 真人录制一个含 ⌃ 或 ⌥ 的组合并实际触发(需要真实快捷键会话)。 -- 与上轮相同:排除清单多行输入实测、VoiceOver 实测、真实悬停通知、 - 真实置顶会话镜像组合、真实滚动内存峰值、真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 42:运行中权限变化的入口联动 - -### 真实修改 - -- 权限可能在运行中才被授予或撤销,此前没有联动:Dock 入口在启动时无辅助功能权限 - 就不会启动观察器,之后授权也不会自动生效(要重启应用)。现在 - `permissionsDidChange` 会按当前设置与权限重新裁决: - - 有权限且 Dock 开关开启 → 若观察器未运行则启动; - - 无权限或开关关闭 → 停用观察器,并关闭正在显示的 Dock 面板(避免留下无法操作 - 的窗口); - 屏幕录制变化仍会清空图像缓存并释放自有实时流。 -- 顺带清理:若旧版本存下的快捷键现在属于被拒绝组合,启动时清掉该存储值并只提示 - 一次,不再每次启动都弹提示。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 238 window-browser pure-logic checks`; - `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh` 通过。 -- stage 构建后 fixture `mixed` 正常。 - -### 仍未验证 - -- 真实“运行中授予辅助功能权限后立刻悬停 Dock”的联动(需要真机改系统设置; - 代码路径已按权限状态重新裁决)。 -- 与上轮相同:快捷键实录、排除清单多行输入、VoiceOver 实测、真实悬停通知、 - 真实置顶会话镜像组合、真实滚动内存峰值、真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 43:回退解析稳定性复测 + 防御性复查 - -### 复测与复查 - -- Dock 回退探针连续 3 次运行结果一致: - `icon-hit pid=3157 bundle=com.apple.finder expected=com.apple.finder match=true`、 - `non-icon dock point (1157,39) target=cleared` - —— 命中图标产出正确应用实例、非图标位置清除旧目标,均非偶然成功。 -- 防御性复查新模块:强制解包、`try!`、`as!` 与下标访问逐处核对。`as! AXUIElement` - 前都有 `CFGetTypeID == AXUIElementGetTypeID()` 守卫;`parts[0]`、`records[0]`、 - `queued[index]`、`matches[0]`、`keys[min(...)]` 等全部有前置 guard/空集合检查; - 未发现未受保护的下标或强制解包。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 238 window-browser pure-logic checks`; - `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh`、`git diff --check` 全部通过。 - -### 仍未验证 - -- 与上轮相同的人类交互项(真实悬停通知、真人端到端动作、权限/睡眠锁屏、 - VoiceOver、排除清单多行输入、快捷键实录)。 - -## 补充轮次 44:Dock 观察器的 AX 读取真正移出主线程 - -### 真实修改 - -- 死代码审计发现 `DockHoverObserver.workQueue` 从未使用——也就是说 Dock 悬停路径的 - AX 命中与解析(`AXUIElementCopyElementAtPosition`、父链遍历、`AXURL`/几何读取、 - 选中子项读取、Dock 树遍历)其实仍跑在**主线程**,鼠标每次靠近 Dock 都会做同步 - IPC,违反任务书第 9 节。现在: - - Dock 树发现移到 `workQueue`,只把 AX 矩形带回主线程换算 Cocoa 区域; - - 鼠标命中与解析移到 `workQueue`,结果回主线程后再 `emit`/清除; - - 通知路径(选中子项)同样移到 `workQueue`; - - `NSScreen`/坐标基准的换算一律在主线程算好后传入(不把主线程 API 带到后台)。 - - 回调都核对观察器代数,过期结果直接丢弃。 -- 探针改为轮询等待异步结果(最多约 1.5s,必要时重发一次指针事件),不再依赖固定 - 0.3s。 - -### 验证 - -- 回退探针 3/3 次一致: - `icon-hit pid=3157 bundle=com.apple.finder expected=com.apple.finder match=true`、 - `non-icon dock point (1157,39) target=cleared`、 - `diagnostics notificationsReliable=false generation=1`。 -- `bash tests/run-window-browser-tests.sh` → `PASS: 238 window-browser pure-logic checks`; - `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh` 通过。 - -### 仍未验证 - -- 真实鼠标悬停下主线程间隔的实测(探针已证明 AX 不再在主线程执行;真实会话可再 - 用日志里的 `main-thread stall` 观察)。 -- 与上轮相同的人类交互项。 - -## 补充轮次 45:折叠入口的冗余主线程 AX 读取 - -### 真实修改 - -- 扫查新代码剩余的 AX 调用点后发现:`AppDelegate.windowBrowserBeginFold` 在折叠前 - 又做了一次 `windowID(of:)`(可能触发 CG 列表枚举 + AX 属性读取),而调用方刚刚在 - `WindowBrowserTargetResolver.inspect`(专用队列)里核对过同一身份。现在这里只保留 - 廉价的 PID 复核,主线程不再重复 AX 读取。 -- 复查其余调用点:新功能里的 AX **读取**都已在后台队列(解析/发现/Dock 命中); - 留在主线程的是动作写入(`setAXMinimized`/`raiseAXWindow`/`focusAXWindow`/ - `pressAXButton`)与既有折叠/恢复事务——与任务书“只移动确认为独立的读取工作”一致; - `axPosition(fromCocoaFrame:)` 是纯坐标换算,不涉及 AX。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 238 window-browser pure-logic checks` - (首屏 200 窗口 4.34ms)。 -- `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh`、`git diff --check` 通过。 -- stage 构建后回退探针 `icon-hit ... match=true` / `non-icon ... target=cleared`, - fixture `mixed` 正常。 - -### 仍未验证 - -- 与上轮相同的人类交互项(真实悬停通知、真人端到端动作、权限/睡眠锁屏、 - VoiceOver、排除清单多行输入、快捷键实录、真实主线程间隔观察)。 - -## 补充轮次 46:Dock 目标的元数据查询走独立高优先级队列 - -### 真实修改 - -- 任务书要求“Dock 实例的识别工作不能排在几十个普通应用查询之后”。此前单目标 - (Dock 悬停)与整批(键盘面板全局发现)共用同一条串行队列:若上一会话的全局 - 发现仍在跑,Dock 目标的查询会排在最多十几个应用之后。现在单目标请求走 - `targetMetadataQueue`(userInitiated),批量走原 `metadataQueue`(utility)。 - 两条队列共享 `metadataInFlight`/`lastMetadataRequest` 记账,仍然保证“每个应用 - 实例只有一个在途任务”;同时最多只有 1 个目标查询 + 1 个批量查询并发, - 符合任务书“初始最多同时处理两个应用实例”的上限。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 238 window-browser pure-logic checks` - (首屏 200 窗口 4.50ms)。 -- `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh`、`git diff --check` 通过。 - -### 仍未验证 - -- 真实“全局发现进行中同时悬停 Dock 图标”的先后顺序与耗时(需要真实面板会话; - 队列拓扑已按上限拆分)。 -- 与上轮相同的人类交互项。 - -## 补充轮次 47:异步记账清理与恢复中状态文案 - -### 真实修改 - -- 异步记账残留:过期元数据结果被丢弃时未清除该 PID 的“需要补刷”标记;现在一并 - 清掉,避免记账长期残留。 -- `stop()` 现在同时清空 `metadataInFlight`/`metadataQueued`/`lastMetadataRequest` - 三份记账(此前只清目录与会话状态)。 -- 状态文案缺陷:恢复中的窗口此前落到默认文案“打开”,现在明确显示“◌ 正在展开”。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 239 window-browser pure-logic checks` - (新增:恢复中记录显示“正在展开”)。 -- `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh` 通过;stage 构建后 fixture `mixed` 正常; - 首屏 200 窗口 5.25ms。 - -### 仍未验证 - -- 与上轮相同的人类交互项(真实悬停通知、真人端到端动作、权限/睡眠锁屏、 - VoiceOver、排除清单多行输入、快捷键实录、全局发现与 Dock 悬停并发顺序)。 - -## 补充轮次 48:实时不可用时的用户可见说明 - -### 真实修改 - -- 实时预览启动失败(找不到 SCWindow 或 startCapture 抛错)此前只写日志,用户没有 - 任何说明,只会看到画面停在快照。现在面板页脚会显示“实时预览不可用,已回到快照”, - 并且选中项变化或重新开始实时预览时自动清除该说明。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 239 window-browser pure-logic checks`; - `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh`、`git diff --check` 通过。 -- stage 构建后 fixture `mixed` 正常;首屏 200 窗口 3.18ms。 - -### 仍未验证 - -- 真机看到“实时预览不可用,已回到快照”的实际时机(需要真实面板会话来制造捕获失败, - 例如目标窗口受保护内容或权限撤销)。 -- 与上轮相同的人类交互项。 - -## 补充轮次 49:右键菜单期间的关闭请求延后执行 - -### 真实修改 - -- `NSMenu.popUp` 使用嵌套事件循环;此间若其它路径要求关闭面板(切前台、切 Space、 - 点外部等),直接释放面板会把正在作为菜单锚点的视图一起带走,存在崩溃风险。 - 现在菜单跟踪期间收到的关闭请求先记入 `pendingCloseReason`,菜单结束后再执行。 -- 复用同一标记:菜单打开时已有的自动隐藏抑制(`contextMenuOpen`)保持不变。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 239 window-browser pure-logic checks`; - `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh`、`git diff --check` 通过。 -- stage 构建后 fixture `nopermission` 正常;首屏 200 窗口 2.90ms。 - -### 仍未验证 - -- 真人右键打开卡片菜单、期间切换应用或点击外部,确认菜单关闭后父面板才关闭 - (需要真实面板交互)。 -- 与上轮相同的人类交互项。 - -## 补充轮次 50:全探针冒烟(最新构建) - -### 运行 - -在最新 stage 构建上顺序运行全部只读探针与 fixture: -`dock / hover / catalog / capture / thumbnail / stream / panel / ui / fixture`。 - -### 结果(全部通过,用户 WindowShade 全程保持运行) - -```text -dock-probe: selected-children notifications in 2s = 0 / observer teardown complete -hover-probe: icon-hit ... match=true / non-icon ... target=cleared / - diagnostics notificationsReliable=false generation=1 -catalog-probe: resolve identity=0ms geometry=0ms capabilities=0ms - apps=10 windows=6 empty=5 failed=0 total=210ms slowestApp=50ms - mainThreadMaxGap=6ms -capture-probe: card pixels=461x320 center=(27,148,254) blue=true(遮挡实验仍成立) - selectedLarge pixels=840x584 took=42ms -thumbnail-probe: deliveries=4 captures=2 serviceStarted=2 serviceDelivered=3 - running=0 cachedBytes=675840 -stream-probe: afterMirrorRelease running=true mirrorFrames=1->1 frames=2->2 - stopError=none framesAfterStop=2 framesNow=2 stable=true -panel-probe: keyboard key=true searchFocused=true canBecomeKey=true - dock-second unchanged=true key=false -ui-probe: menuItemWhenDisabled enabled=false / menuItemRestored - enabled=true settingsRestored=true -fixture: records=9 panel=720x560 canBecomeKey=true searchVisible=true -``` - -这轮冒烟覆盖了最近几轮的异步化改造(Dock 观察器后台队列、目标元数据高优先级队列、 -模型/缓存清理),确认没有回归。 - -### 仍未验证 - -- 与上轮相同的人类交互项(真实鼠标悬停通知、真人端到端窗口动作、权限/睡眠锁屏、 - VoiceOver、排除清单多行输入、快捷键实录)。 - -## 补充轮次 51:面板与搜索框的可访问性标签 - -### 真实修改 - -- 搜索框此前只有 placeholder 供 VoiceOver 推断用途;现在显式设置 - `accessibilityLabel = "搜索窗口"`。面板内容视图也设置组角色与名称 - “窗口浏览面板”,便于读屏器说明当前位置。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 241 window-browser pure-logic checks` - (新增:内容视图与搜索框都有可访问性标签)。 -- `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh`、`git diff --check` 通过;stage 构建后 fixture - `mixed` 正常。 - -### 仍未验证 - -- VoiceOver 实际朗读整体顺序(需要开启读屏器人工确认)。 -- 与上轮相同的人类交互项。 - -## 补充轮次 52:“功能关闭时新增常驻查询为零”实测 - -### 真实修改 - -- 控制器新增只读计数 `axQueryCount`(元数据发现 + 目标解析各计一次),用于把任务书 - “关闭新功能时新增常驻系统查询为零”从代码复核升级为实测。 -- 新增 `--window-browser-idle-probe`:临时把 Dock 开关置为关闭,构造 AppDelegate 与 - 窗口浏览控制器并 `start()`,观察一秒后读计数,然后 `stop()` 并**原样恢复**用户的 - Dock 开关设置。探针不启动传感器、不触发救援、不写 Dock 偏好。 - -### 实测结果 - -```text -idle-probe: dockEnabled=false axQueries=0 thumbnailsInFlight=0 thumbnailBytes=0 -idle-probe: afterStop axQueries=0 thumbnailsInFlight=0 thumbnailBytes=0 settingsRestored=true -``` - -即:Dock 入口关闭时,新功能在启动一秒后没有发起任何 AX 查询、没有在途截图、没有 -新增缓存字节;停止后依然为零,用户设置被完整恢复。 - -### 验证 - -- `bash prototype/build.sh --check` 通过;`bash tests/run-window-browser-tests.sh` - → `PASS: 241 window-browser pure-logic checks`。 - -### 仍未验证 - -- 与上轮相同的人类交互项(真实悬停通知、真人端到端动作、权限/睡眠锁屏、VoiceOver、 - 排除清单多行输入、快捷键实录)。 - -## 补充轮次 53:过期最后画面作为快照展示 - -### 真实修改 - -- 任务书要求“折叠及最小化窗口优先使用已保存的最后有效画面,明确标为快照”,此前这类 - 记录在没有折叠快照时直接显示图标。现在: - - `WindowThumbnailService.snapshotImage(windowKey:purpose:)` 提供“过期但合法”的 - 最后画面(不触发新截图、不改变 `cachedImage` 的新鲜度判定); - - 面板在“图标回退”分支优先使用该快照并标注“已保存的快照”,没有才显示图标与说明; -- 用户文档补充了这条行为说明。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 244 window-browser pure-logic checks` - (新增:新鲜缓存可读、超过新鲜期后 `cachedImage` 返回 nil、`snapshotImage` 仍返回 - 最后画面——用注入时钟推进,无真实 sleep)。 -- `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh`、`git diff --check` 通过;stage 构建后 - fixture `mixed`(9 条)与 `nopermission`(2 条)正常。 - -### 仍未验证 - -- 真机上最小化窗口显示“已保存的快照”的实际观感(需要真实面板会话)。 -- 与上轮相同的人类交互项。 - -## 补充轮次 54:视图侧图像内存可观测 + 一次偶发测试崩溃的记录 - -### 真实修改 - -- 任务书要求“仍被视图、折叠状态或置顶流持有的内存也要另外观测”。内容视图新增 - `cachedThumbnailBytes`(按 `bytesPerRow × height` 求和,防溢出),与服务的 - `cachedCostBytes` 分开报告;fixture 自动退出时一并打印 - `viewThumbnails=`/`viewImageBytes=`。规模回归断言视图侧字节 > 0 且 < 20 MiB。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 245 window-browser pure-logic checks`。 -- stage 构建后 fixture 输出: - `records=9 ... viewThumbnails=0 viewImageBytes=0`(fixture 不加载真实图片,符合预期)、 - `records=20 ... viewThumbnails=0 viewImageBytes=0`。 -- `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、`git diff --check` 通过。 - -### 偶发失败记录(诚实记录,未复现) - -- 在“stage 构建 → 多个 fixture → duo 测试 → paper 测试”连跑的那一次, - `tests/run-paper-tests.sh` 以 `Trace/BPT trap: 5` 退出。 -- 随后单独重跑 1 次、在 fixture 之后连跑 2 次、再单独连跑 3 次,全部通过 - (共 6 次通过);本轮改动的文件都不在该脚本的编译清单内 - (`PaperSurfaceStyle.swift`、`PinnedPreviewPanel.swift` 本轮未改)。 -- 结论:按“一次偶发、未能复现”记录;若后续再出现,需要抓取 stderr 的 - precondition 信息定位。 - -### 仍未验证 - -- 真实长列表滚动时的视图侧字节峰值(离屏断言为 < 20 MiB)。 -- 与上轮相同的人类交互项。 - -## 补充轮次 55:paper 回归加固 + 选中滚动的完整覆盖 - -### 真实修改 - -- paper 回归加固:`PaperSurfaceTests` 在窗口尚未真正上屏时就断言 `visibleRect`, - 紧跟多个 GUI 探针进程之后可能因 WindowServer 尚未提交窗口而假失败(此前记录过 - 一次 `Trace/BPT trap: 5`)。现在测试先 `orderFrontRegardless()` 并短暂跑一次 - RunLoop,再断言。 -- 选中滚动覆盖所有来源:`WindowBrowserContentView.update` 在选中项发生变化时 - (搜索过滤、窗口关闭后的回退选择)同样把选中项滚入视口;用户自己滚走且选中项 - 未变时,刷新不会把视图强行拉回(保留用户滚动位置)。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 247 window-browser pure-logic checks` - (新增:update 路径的选中项滚入视口;同一选中项下手动滚走不被刷新拉回)。 -- `bash tests/run-paper-tests.sh` 单独连跑 3 次、并在“3 个 fixture → duo → paper” - 完整序列连跑 2 轮,均通过,此前的偶发 trap 未再出现。 -- `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、`git diff --check` - 通过;stage 构建后 fixture `many` 正常。 - -### 仍未验证 - -- 真实鼠标滚轮操作下手动滚走与选中项变化的行为观感(离屏断言覆盖两条规则)。 -- 与上轮相同的人类交互项。 - -## 最终验收快照(当前修订 2abd49b + 未提交改动) - -### 交付清单 - -- 新增源码:`prototype/WindowBrowser/`(17 个文件,约 7,160 行)—— - 模型/目录/动作协调器/面板状态机/几何/缩略图服务与策略/镜像槽/目标解析/发现与过滤/ - 排版/Dock 观察器/面板与视图/控制器/设置/AppDelegate 适配/fixture/9 个只读探针。 -- 接线改动:`App/MenuBarController.swift`(菜单“选择窗口…”)、 - `App/Preferences.swift`(窗口浏览设置页 + 快捷键记录器)、`App/EventTap.swift` - (可选全局快捷键,默认不注册)、`WindowShade.swift`(控制器接线与折叠等待者)、 - `App/ShadeController.swift` / `App/FoldTransaction.swift`(折叠终态结算)、 - `PinnedPreview.swift`(明确目标置顶 + 镜像租约)、`ScreenCaptureBridge.swift` - (预览配置、帧计数、镜像层加锁)、`Overlay/PaperSurfaceStyle.swift`(阴影子窗口 - 不可成为 key)、`Effects/DuoSettingsWindow.swift`(新设置分页)、`main.swift` - (fixture 与探针入口)。 -- 测试:`tests/WindowBrowserTests.swift`(1,539 行)、 - `tests/run-window-browser-tests.sh`;`tests/PaperSurfaceTests.swift` 增加了 - “先上屏再断言”的稳健性处理。 -- 文档:`docs/window-browser.md`(用户向入口/权限/兼容限制)、 - `DEVELOPMENT.md`(开发验收入口与 9 个探针)、本文件(阶段记录与实测证据)。 - -### 本轮全套验证(全部通过) - -```text -bash tests/run-window-browser-tests.sh PASS: 247 window-browser pure-logic checks -bash prototype/build.sh --check 编译验证通过(仅既有 stopCapture 建议警告) -bash tests/run-duo-tests.sh 4 组通过 -bash tests/run-paper-tests.sh 通过 -git diff --check 干净 -``` - -9 个只读探针 + fixture(最新 stage 构建): - -```text -dock observer teardown complete -hover icon-hit match=true / non-icon target=cleared / notificationsReliable=false -catalog apps=11 windows=7 empty=5 failed=0 total=313ms slowestApp=50ms - mainThreadMaxGap=6ms / resolve identity=0ms geometry=0ms capabilities=0ms -capture card 461x320 center=(27,148,254) blue=true(遮挡实验)/ selectedLarge 27ms -thumbnail deliveries=4 captures=2 running=0 cachedBytes=675840 -stream afterMirrorRelease running=true / stopError=none / framesAfterStop 稳定 -panel keyboard key=true searchFocused=true / dock-second unchanged=true key=false -ui menuItem 启用/置灰/恢复正确 -idle axQueries=0 thumbnailsInFlight=0 thumbnailBytes=0 settingsRestored=true -fixture records=9 panel=720x560 viewThumbnails=0 viewImageBytes=0 -``` - -### 已验证(真机或离屏证据) - -身份代数与去重、目录合并与失败保留、稳定顺序与按身份选择、A→B→A/关闭后回调/PID 复用 -丢弃、标注目标动作与防重入、恢复真实终态、明确目标置顶与镜像 owner 租约、单窗截图 -(遮挡实验证明不退回整屏裁切)、缩略图服务并发/缓存/失效/快照/内存预算、实时预览启动与 -停流(解除镜像不停持久流)、面板非激活语义与键盘焦点、多显示器真实屏幕几何、菜单与设置 -入口构建、快捷键保留组合策略、排除清单、空闲零查询、fixture 五场景。 - -### 未验证(必须由真人在 macOS 会话确认) - -1. 新面板触发的真实窗口动作(折叠/展开/置顶/关闭)在真实窗口上的完整端到端结果。 -2. 睡眠/锁屏/唤醒、运行中权限撤销与重授、多 Space、Mission Control、全屏。 -3. VoiceOver 朗读顺序、排除清单多行输入、快捷键实录与触发、真实滚动内存峰值、 - 无响应应用下的动作表现。 - -(真实鼠标悬停通知原为第 1 项,已在补充轮次 57 用真机探针验证并修复,见下。) - -以上未验证项同时保留在本文件各阶段小节中,代码不会把它们标为已完成。 - -## 补充轮次 57:真实悬停通知验证 + 通知选中滞后缺陷修复 - -### 真机操作说明 - -新增 `--window-browser-hover-live-probe`:保存当前指针位置 → 把系统指针移到 Dock 上 -第一个应用图标约 1.2 秒 → 再移到分隔符位置 → **原样放回**指针。只悬停,不点击、 -不激活任何应用、不打开任何东西;全程约 2 秒。 - -### 第一次运行暴露的真实缺陷 - -首次运行得到 `notificationsReliable=true target=com.apple.Safari expected=com.apple.finder -match=false`(第二次 `target=none`):通知路径确实会被真实悬停触发,但 Dock 上报的 -选中子项可能滞后于指针(放大/切换动画期间),此时: - -1. 旧实现只按“鼠标必须在选中图标内”拒绝过期目标,然后**清除**; -2. 用户把指针停在图标上不动时不会再有鼠标移动事件,回退命中路径就不会补上正确目标 - —— 面板可能不出现或闪烁。 - -### 真实修改 - -- `DockHoverObserver.fallbackHitTestAfterNotification(reason:)`:通知没有可用选中项、 - 或选中项被判定过期时,立即用**最后一次指针位置**做一次兜底命中检测(不受 100ms - 节流限制),命中失败才走原有清除逻辑。 - -### 修复后实测(3/3 一致) - -```text -hover-live: icon notificationsReliable=true target=com.apple.finder - expected=com.apple.finder match=true - point=(68,1069) expectedFrame=(43,1036 49x65) targetFrame=(43,1036 49x65) -hover-live: non-icon target=cleared -hover-live: pointerRestored=true -``` - -即:真实悬停触发通知 → 解析出正确应用实例与图标矩形;移到 Dock 上非图标位置 -(分隔符)后旧目标被清除;指针已恢复原位。 - -### 验证 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 247 window-browser pure-logic checks`; - `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh`、`git diff --check` 通过。 - -### 仍未验证 - -- 与真人拖拽/输入同时进行时的悬停表现(探针已尽量缩短指针占用并恢复)。 -- 剩余人类交互项:真实窗口动作端到端、睡眠/锁屏/权限、VoiceOver、排除清单、 - 快捷键实录、真实滚动内存峰值、无响应应用。 - -## 补充轮次 56:fixture 支持强制浅色/深色 - -### 真实修改 - -- 任务书要求隔离演示“支持浅色、深色”。fixture 新增 - `WINDOWSHADE_BROWSER_FIXTURE_APPEARANCE=dark|light`,在隔离入口里设置 - `NSApp.appearance`,不修改系统外观设置、不影响正常启动; - `DEVELOPMENT.md` 的环境变量清单已补充该选项。 - -### 验证 - -- stage 构建后分别以深色与浅色运行 fixture:两次输出一致 - (`records=9 panel=720x560 canBecomeKey=true ... viewThumbnails=0 viewImageBytes=0`), - 未出现异常。 -- `bash prototype/build.sh --check` 通过;`bash tests/run-window-browser-tests.sh` - → `PASS: 247 window-browser pure-logic checks`。 - -### 仍未验证 - -- 浅色/深色的实际观感(需要人眼看截图或运行 fixture;实现与置顶预览面板同一套 - 动态系统色与纸面阴影)。 -- 与上轮相同的人类交互项。 - -## 补充轮次 24:交叉核对细分(“像真实窗口”的子集) - -### 真实修改 - -- 目录探针在 `cgLayer0=` 之外增加 `cgWindowLike=`:WindowServer 里大尺寸(>300×200) - 且有标题的 layer-0 窗口数,用来分辨“真实窗口”与辅助/帮助窗口。 - -### 实测结果与结论 - -- `com.apple.Safari windows=4 cgLayer0=18 cgWindowLike=3`、 - `com.agiletortoise.Drafts-OSX windows=1 cgLayer0=9 cgWindowLike=1`; - 其余应用三者一致(多为 0 或 1)。 -- 结论修正:Safari 的 18 个 layer-0 项里只有 3 个“像真实窗口”,而应用报告的 4 个 - 包含 1 个最小化窗口(最小化后几何很小,因此不计入 `cgWindowLike`)。也就是说 - 发现路径没有漏掉真实窗口,差异来自无法映射的辅助窗口。 - `docs/window-browser.md` 的兼容限制已按实测数字改写,避免反向夸大问题。 -- 性能同轮:`apps=10 total=244ms slowestApp=41ms mainThreadMaxGap=6ms`。 - -### 仍未验证 - -- 同一应用在多个 Space 同时有窗口时的 AX/CG 覆盖差异(需要多 Space 会话)。 -- 与上轮相同:真实滚动内存峰值、真实置顶会话镜像组合、真实悬停通知、 - 真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 18:布局尺寸集中化 - -### 真实修改 - -- 落实任务书“所有尺寸集中在布局参数中,不能散落为几十个 magic number”: - `WindowBrowserLayoutParams` 新增卡片/行/预览栏内部尺寸(`cardPadding`、 - `cardTitleHeight`、`cardStatusHeight`、`cardTitleIconGap`、`rowHorizontalPadding`、 - `rowIconLeading`、`rowTrailingControlsWidth`、`rowControlWidth`、`rowControlHeight`、 - `rowTitleHeight`、`rowStatusHeight`、`selectionPanePadding`、 - `selectionPaneMinimumWidth/MaximumWidth/MinimumContentWidth`),卡片、列表行与 - 选中项预览栏的布局全部改为读这些参数,布局结果不变。 - -### 新增真实运行证据 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 179 window-browser pure-logic checks` - (新增:动作按钮保持 ≥28pt 命中区、按钮不越出卡片、卡片图像区不超过配置上限)。 -- stage 构建后 fixture 三场景仍正常:`mixed 9 / many 20(list) / nopermission 2`。 -- `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh`、`git diff --check` 全部通过。 - -### 仍未验证 - -- 与上轮相同:真实悬停通知、真实滚动补图时序、真人端到端动作、无响应应用、睡眠锁屏。 - -## 补充轮次 58:真实 AX 上的身份拒绝链验证探针 - -### 真实修改 - -- 新增 `prototype/WindowBrowser/WindowBrowserIdentityProbe.swift` 与入口 - `--window-browser-identity-probe`(在 `prototype/main.swift` 注册)。 - 探针不写任何窗口状态,只做两件事: - 1. 用生产 `WindowBrowserTargetResolver.enumerate/inspect` 读取自己创建的探针窗口 - 和一个其他应用的真实窗口,核对正向解析与全部拒绝分支(换窗口 ID、换 PID、 - 从未分配过的窗口 ID); - 2. 把只记录调用的 `IdentityProbeBackend` 接到生产 - `WindowBrowserActionCoordinator` 上,`validate` 复用生产判定顺序 - (`WindowIdentityAllocator.isCurrent` → `WindowBrowserTargetResolver.enumerate` - → `inspect`),用来证明被拒绝的提交一次都到不了 `perform`,而允许执行时传给 - `perform` 的 key 与提交的 key 逐字段相同(不会换成别的窗口)。 -- 探针只在自身进程里短暂显示一个小窗口(`.floating` + `orderFrontRegardless()`, - 不激活、不抢 key),结束时随进程退出;不移动指针、不捕获用户窗口内容。 -- `DEVELOPMENT.md` 的探针清单已补上该入口。 - -### 实际运行的命令与结果 - -- 隔离 stage 构建(未替换正在使用的应用): - `WINDOWSHADE_CODESIGN_IDENTITY="Apple Development: Your Name ()" bash prototype/build.sh --stage` - → 签名验证通过。 -- `.build/duo-validation/WindowShade.app/Contents/MacOS/WindowShade --window-browser-identity-probe` - 连续两次运行,均为 `checks=25 failures=0 result=pass`: - -```text -identity-probe: ownWindow element=true inspected=true geometryMatch=true canClose=true wrongWindowID=rejected wrongPID=rejected fabricated=rejected -identity-probe: foreignWindow bundle=com.apple.Safari id=1568 wrongWindowID=rejected wrongPID=rejected -identity-probe: coordinator fabricatedKey outcome=targetGone performCalls=0 -identity-probe: coordinator liveKey outcome=completed performCalls=1 keyUnchanged=true -identity-probe: closedWindow gone=true enumerate=none allocatorStillCurrent=true -identity-probe: coordinator goneWindow outcome=uncertain(reason: "目标无法确认:无法按完整身份解析窗口") performCalls=0 -identity-probe: coordinator staleGeneration outcome=targetGone performCalls=0 -identity-probe: coordinator regeneratedKey outcome=uncertain(reason: "目标无法确认:无法按完整身份解析窗口") performCalls=0 -identity-probe: checks=25 failures=0 result=pass -``` - - 其中 `closedWindow gone=true allocatorStillCurrent=true` 是关键:真实窗口已经关闭、 - 目录代数还没结算时,`validate` 仍在真实 AX 上重新核对并拒绝,不会凭旧记录继续 - 执行。`staleGeneration` 与 `regeneratedKey` 两行覆盖同一数字窗口 ID 复用 - (A→B→A)后旧代数与新代数都必须重新核对、都到不了 `perform`。 -- `bash prototype/build.sh --check`(70 个源文件)通过; - `bash tests/run-window-browser-tests.sh` → `PASS: 247 window-browser pure-logic checks`; - `bash tests/run-duo-tests.sh`、`bash tests/run-paper-tests.sh`、`git diff --check` 通过。 -- 用户正在运行的 WindowShade(pid 3342)全程保持运行,`prototype/WindowShade.app` - 的 Mach-O 未被替换(mtime 仍为 Sep 13 04:59)。 - -### 一次实现缺陷与结论 - -- 探针首版写成“先 `WindowBrowserTargetResolver.inspect(element, key:)`(默认选项) - 再要求 `axSize != nil`”,而默认选项按设计不读几何,导致真实的外部窗口被误判成 - “无合适目标”并跳过(输出 `foreignWindow skipped=no-suitable-target`)。改为 - `options: [.geometry]` 后命中 `com.apple.Safari id=1568`。 - 结论:这是探针用法错误,生产代码“按用途按需读取几何”的行为正确。 - -### 仍未验证 - -- 生产 `WindowBrowserController.performFold/performUnfold/performPinPreview/performClose` - 对**其他应用真实窗口**的写行为仍未在真实会话里端到端跑过:要拿到目录里的记录, - 必须先由 Dock 悬停或键盘面板开启一次面板会话,探针照做就会在用户屏幕上开面板并 - 抢焦点,因此没有自动化。现有证据是:身份拒绝链已在真实 AX 上验证;写路径复用既有 - 折叠事务(`ShadeController.windowBrowserBeginFold`、`unshadeReturningElement`) - 与既有 AX 按钮投递,并由 `tests/run-duo-tests.sh` 与纯逻辑测试覆盖。 -- 其余与上轮相同:睡眠/锁屏/运行中权限撤销、多 Space、Mission Control、全屏、 - VoiceOver 朗读顺序、无响应应用、真实滚动内存峰值、真人悬停与真人端到端动作。 - -### 下一步的具体文件或符号 - -- 真人闭环验证:`WindowBrowserController.performFold/performUnfold/performPinPreview/performClose`、 - `WindowBrowserSettings`(Dock/面板/实时预览开关与排除清单)、 - `EventTap.registerWindowBrowserHotKey`、`App/MenuBarController.swift` 的“选择窗口…”。 -- 若要把真实写动作也自动化,需要给探针加一条受控入口(例如为指定 pid 建立一次性 - 发现会话而不显示面板),这会改动生产代码,需先确认是否接受该测试缝。 - -## 补充轮次 59:真实安装部署 + 真实入口验证 - -### 真实修改 - -- 新增 `prototype/WindowBrowser/WindowBrowserLiveAppProbe.swift` 与入口 - `--window-browser-live-app-probe`(在 `prototype/main.swift` 注册)。 - 它瞄准**另一个正在运行的 WindowShade 进程**(正常启动的应用,不是探针自己): - 点开真实状态栏菜单 → 按“选择窗口…”→ 读面板里的真实窗口条目 → 按 Esc 关闭 → - 用 WindowServer 在屏窗口确认面板消失。除这两次菜单操作与一次 Esc 外不改任何状态。 -- `DEVELOPMENT.md` 的探针清单补充该入口,并写明它会短暂占用菜单栏与屏幕。 - -### 真实部署(用户确认“现在是一个合适的时机”后执行) - -- 命令:`cd prototype && WINDOWSHADE_CODESIGN_IDENTITY="Apple Development: Your Name ()" bash build.sh` - (默认路径:`pkill -x WindowShade` → 优化整模块编译 → 原地替换 Mach-O → 同一身份签名)。 -- 结果:`prototype/WindowShade.app/Contents/MacOS/WindowShade` 由 - `d41d0a35…`(2,178,752 B,Sep 13 04:59)换成 `a19255ac…`(3,152,592 B,06:47); - TeamIdentifier 仍为 ``,签名身份未变,TCC 授权未重置。 -- 重启:`open prototype/WindowShade.app` → pid 3342 → **22802**。 - `/tmp/windowshade.log` 记录 `=== session start pid=22802 ===`、 - `status item visible=true`、`reconcile: timer started`、 - `dock: mineffect=scale verified reason=session-start`;`~/Library/Logs/DiagnosticReports` - 无 WindowShade 崩溃报告。 - -### 真实入口验证(首次运行,直接命中) - -```text -live-app-probe: target pid=22802 bundle=com.windowshade.prototype frontmostBefore=66857 -live-app-probe: statusItem role=AXMenuBarItem actions=AXPress -live-app-probe: statusItem axPress=err=-25204; falling back to a real click -live-app-probe: statusItem clicked at=(1201,17) -live-app-probe: statusMenu items=10 titles=铰链角度:0.0° | 当前窗口 | 折叠当前窗口 | 整理卷帘条 | 双击标题栏以折叠 | 置顶当前窗口 | 选择窗口… | 使用说明… | 设置… | 退出 WindowShade -live-app-probe: pointerRestored=true -live-app-probe: panel window title=窗口选择 appWindows=2 -live-app-probe: panelLabels=75 cards=8 sample=[ChatGPT,ChatGPT / QQ,QQ / Safari,"闻音识" - Google 搜尋] -live-app-probe: crossCheck matchedTitle=I recreated the 1999 OS Classic Mac System 9 … -``` - -- 结论:真实状态栏菜单里有“选择窗口…”且可用;点它打开了键盘面板 - (WindowServer 在屏窗口名 `窗口选择`,640×520),面板里 8 张卡片, - 条目文本与外部真实窗口标题逐字对上(交叉核对命中一个 Safari 真实标签页标题)。 - 这就是“可从真实菜单进入”的直接证据,不再只依赖本进程构造的菜单对象。 - -### 本轮发现(影响后续自动化) - -1. 状态项**不响应 AXPress**(`AXUIElementPerformAction` 返回 -25204),自动化必须像真人 - 一样在状态项位置点一下;探针已加该回退,并在面板出现前把指针原样放回 - (两次运行都打印 `pointerRestored=true`)。 -2. 不能用应用 AXWindows 判断面板是否可见:面板关闭只是 orderOut,加上 - `isReleasedWhenClosed = false`,它仍留在 AX 窗口列表里。首次运行的 - “Esc 关闭失败”就是这个误报(随后用 WindowServer 在屏窗口确认面板其实已不在屏幕上)。 - 正确判定是 `CGWindowListCopyWindowInfo([.optionOnScreenOnly])` 按窗口名匹配。 -3. 同一条判定也不能只看“目标应用有没有大窗口”:用户自己打开着设置窗口时会假阳性。 -4. 真人正在同一台机器上操作时(日志里 06:51–06:52 有 Space 切换与鼠标事件), - 第二次运行没有得到可信结论(用户在屏窗口与当前 Space 干扰了判定)。 - 交互式探针不适合在真人正在用机时反复运行,本轮因此主动停止复跑。 - -### 仍未验证 - -- “按 Esc 关闭面板并把前台应用还回去”这一条,本轮自动化没有得到可信结论 - (首次判定用错、第二次被用户窗口与 Space 干扰);需要真人按一次 Esc 确认, - 或在机器空闲时用修好的探针复跑。 -- 与上轮相同:面板卡片动作对**其他应用真实窗口**的写行为、睡眠/锁屏/运行中权限撤销、 - 多 Space、Mission Control、全屏、VoiceOver、无响应应用、真实滚动内存峰值。 - -### 下一步的具体文件或符号 - -- 机器空闲时复跑真实入口探针(判定已改为 WindowServer 在屏窗口): - `.build/duo-validation/WindowShade.app/Contents/MacOS/WindowShade --window-browser-live-app-probe` -- 真人确认 Esc 关闭与焦点归还:`WindowBrowserPanel.cancelOperation` → - `WindowBrowserController.closePanel(reason: "cancel")` → 键盘面板焦点归还分支。 -- 真人确认卡片动作:`WindowBrowserController.performFold/performUnfold/performPinPreview/performClose`。 -- 工作区仍未提交(按原约定等你点头);当前未提交内容见 `git status --short`。 - -## 补充轮次 60:修复“搜索框与窗口缩略图列表重叠” - -### 真实修改 - -- 用户截图报告:键盘面板里搜索框被缩略图列表压住。定位到 - `WindowBrowserContentView.layout()`:搜索框画在 `footerHeight + 12` 到 - `footerHeight + 38`(34…60),而列表底边算的是 `footerHeight + 30`(52), - 两者重叠 8pt;更靠后加入 subviews 的滚动视图又正好画在搜索框之上, - 于是看起来是“列表盖住搜索框”。系统字号变大、底部状态行变高时错位还会加剧。 -- 修复:搜索框位置与列表底边改为从同一份几何推出,新增布局参数 - `searchFieldHeight = 26`、`searchFieldBottomGap = 12`、`listTopGap = 6`, - 列表底边 = 搜索框顶边 + `listTopGap`。Dock 面板(没有搜索框)路径保持原样。 -- 新增诊断属性 `WindowBrowserContentView.layoutFrameSummary`(搜索框与列表 frame), - fixture 输出补充 `searchTop`、`listBottom`、`overlap` 三个字段,便于以后一眼看出回归。 - -### 新增与运行的测试 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 266 window-browser pure-logic checks` - (新增 19 项布局回归): - - 两种面板尺寸(640×520、460×340)× 两种风格(缩略图/列表):搜索框与列表不相交、 - 列表底边不低于搜索框顶边、搜索框不低于底部状态行; - - 字号变大(`footerHeight + 10`、`headerHeight + 8`)后仍不相交; - - Dock 面板搜索框 frame 为零、列表仍在状态行之上。 - 断言方向先写反过一次(容器是左下原点,“下方”应为更小的 y),修正后全部通过。 -- 真实 AppKit(隔离 stage 构建 + fixture): - -```text -window-browser-fixture: records=10 panel=720x560 style=grid … searchTop=60 listBottom=66 overlap=false -window-browser-fixture: records=20 panel=720x560 style=list … searchTop=60 listBottom=66 overlap=false -``` - -- `bash prototype/build.sh --check`、`bash tests/run-duo-tests.sh`、 - `bash tests/run-paper-tests.sh`、`git diff --check` 通过。 - -### 真实部署 - -- `bash prototype/build.sh`(同一签名身份)→ `prototype/WindowShade.app` 的 Mach-O - `a19255ac…` → `d02b4a7d…`;`open prototype/WindowShade.app` 后 pid 22802 → 35907, - `/tmp/windowshade.log` 记录 `=== session start pid=35907 ===`、`dock: mineffect=scale` - 正常,无崩溃。 - -### 仍未验证 - -- 视觉观感:`screencapture -l` 因调用方缺少屏幕录制授权失败,我没有为了截图去改动 - 你的隐私授权设置,因此没有留下修复后的截图;数值证据(`overlap=false`、 - 列表底边高于搜索框顶边 6pt)已足够,最终观感请你在面板里看一眼。 -- 其余与上轮相同:卡片动作对其他应用真实窗口的写行为、Esc 关闭与焦点归还、 - 睡眠/锁屏/权限撤销、多 Space、Mission Control、全屏、VoiceOver、无响应应用。 - -### 下一步的具体文件或符号 - -- 若觉得搜索框与列表的间距不合适,只调 `WindowBrowserLayoutParams.standard` 的 - `searchFieldBottomGap` / `listTopGap` 两个值即可,`WindowBrowserContentView.layout()` - 不需要再改。 - -## 补充轮次 61:修复“点列表仍是缩略图网格”+ paper 回归的环境依赖 - -### 真实修改 - -- 用户截图报告:分段控件已经高亮“列表”,内容却还是缩略图网格。定位到 - `WindowBrowserContentView.styleChanged` 只改了 `style` 变量并回调控制器, - 而控制器的 `onStyleChanged` 只把风格记进 `style` / `sessionAutoStyle`, - 两边都没有重排,所以要点列表后**再等一次别的刷新**才会变。 -- 修复两处: - - `WindowBrowserContentView.styleChanged`:改完样式立刻 `rebuildRows()` + - `needsLayout = true`,视图自己当场换布局(真实 AppKit 已验证); - - `WindowBrowserController` 的 `onStyleChanged`:记下风格后调用 `refreshPanel()`, - 让选中项预览栏、缩略图视口请求与实时画面挂载点跟着新布局对齐。 -- 新增诊断属性 `WindowBrowserContentView.renderedLayout`(当前渲染风格 + 行数/卡片数), - fixture 增加 `WINDOWSHADE_BROWSER_FIXTURE_STYLE=list|grid`,会像用户一样点一次 - 分段控件并打印 `clickedStyle / renderedStyle / renderedRows / renderedCards`; - `DEVELOPMENT.md` 已补该环境变量。 - -### 新增与运行的测试 - -- `bash tests/run-window-browser-tests.sh` → `PASS: 272 window-browser pure-logic checks` - (新增 6 项):点击“列表”后 `renderedLayout` 立即变成 list、行数 = 窗口数、卡片数 = 0、 - 控制器收到 `.list` 回调、列表模式下选中项预览栏出现;再点回“缩略图”立刻恢复卡片。 -- 真实 AppKit(stage 构建 + fixture,走的是分段控件的真实 action): - -```text -… style=grid clickedStyle=list renderedStyle=list renderedRows=10 renderedCards=0 … -… style=list clickedStyle=grid renderedStyle=grid renderedRows=0 renderedCards=20 … -``` - -- 顺带修好一个此前记为“偶发”的 paper 回归失败:`enter did not reveal title` - (`Trace/BPT trap: 5`)。这次它变成必现,于是查清了根因:**排查时屏幕已经锁定** - (`CGSessionCopyCurrentDictionary` 实测 `CGSSessionScreenIsLocked = 1`,屏幕上出现了 - Display Shield),锁屏期间窗口不参与合成(实测 `occlusionState` 不含 `.visible`), - 材质视图不会自己变成 layer-backed, - **没有 layer 时第一次 alpha 动画会被 AppKit 丢掉**,alpha 一直停在 0。 - 对照实验:普通 layer-backed 视图动画正常、`withinWindow` 正常、显式 - `wantsLayer = true` 后 `behindWindow` 也正常。修的是测试而不是产品: - `tests/PaperSurfaceTests.swift` 里显式开启 layer,混合模式仍保留生产用的 - `behindWindow`,断言覆盖的仍是 `mouseEntered → setTitleVisible` 这条真实路径; - 连续 3 次 `bash tests/run-paper-tests.sh` 全部通过。 -- 由此得到的经验:**锁屏/无合成状态下不要相信与动画、可见性、截图有关的结论**, - 这类回归要么在解锁状态下跑,要么像上面这样把对合成器的依赖显式去掉。 - -### 真实部署 - -- `bash prototype/build.sh` + `open prototype/WindowShade.app`: - Mach-O `d02b4a7d…` → `4e9ea1a2…`,`=== session start pid=38329 ===`(07:06:51)。 -- 排查 paper 回归时临时停过一次应用(约 2 分钟,用于排除“WindowShade 在跑”这个变量, - 结论是无关),随后重新启动:pid 40843,`=== session start ===`(07:09:38), - `dock: mineffect=scale verified`,无崩溃。 - -### 仍未验证 - -- 列表/缩略图切换后的目视效果与滚动手感需要真人看一眼(数值上已确认行/卡片数量与 - 预览栏状态正确)。 -- 其余与上轮相同:卡片动作对其他应用真实窗口的写行为、Esc 关闭与焦点归还、 - 睡眠/锁屏/权限撤销、多 Space、Mission Control、全屏、VoiceOver、无响应应用。 - -### 下一步的具体文件或符号 - -- 若风格切换后仍看到旧布局,先看 `renderedLayout` 与 fixture 的 - `clickedStyle/renderedRows/renderedCards`,再查 `renderPanel()` 里 - `contentView.update(..., style: effectiveStyle)` 的 `effectiveStyle` 取值。 - -## 补充轮次 62:提交、推送并发布 v1.0.12 - -### 提交与推送 - -- `2323c54` Add the window browser: Dock hover and keyboard window panels - (功能代码 + 272 项测试 + 探针/fixture + 两份 docs)。 -- `07fb907` Make the offscreen paper regression independent of compositing。 -- `899cc43` Release 1.0.12: the window browser ships - (`prototype/Info.plist` 1.0.12 / build 12、`docs/releases/v1.0.12.md`、 - README 与 README_CN 指向新 tag 与 zip)。 -- 推送前先把本地两个提交 rebase 到远端已有的 `2e107cf`(只改 `site/deployment.json`) - 之上,没有 force、没有覆盖他人提交;`main` 现与 `origin/main` 一致。 - -### 发布(按 DEVELOPMENT.md 的发布流程) - -- 版本号只改 `prototype/Info.plist` 两行(PlistBuddy 会把整个文件的缩进从空格改成 tab, - 所以改回原格式后用补丁只动版本字段,最终 diff 是 2 行)。 -- `bash build.sh --stage` → `.build/duo-validation/WindowShade.app`: - `codesign --verify --deep --strict` 通过、TeamIdentifier ``、 - 版本 1.0.12 / build 12、`lipo -archs` = arm64。 -- 打包 `prototype/dist/WindowShade-v1.0.12.zip`(3,534,079 B)+ `.sha256` - (`0e067102072936a886dec645c1dcb187f1cc341cf62eb3f3021a4a05d9fc6edd`); - 解压后再次校验签名、版本、架构,并从解压副本跑只读身份探针 - (`checks=25 failures=0`),确认发布包本身可启动。 -- `gh release create v1.0.12` 第一次在“上传完成后的发布/清理”阶段遇到网络 EOF, - 只留下一个草稿(id 390860781)。**两个附件其实都已上传成功**,网络恢复后 - `gh release edit v1.0.12 --draft=false` 即发布;再 `gh release download` 回来核对, - 附件 SHA-256 与本地构建完全一致。 -- 结果:, - 非草稿、非预发布、标记为 Latest,附件两个(zip + sha256)。 - -### 期间的环境观察(供以后排查) - -- 发布中途网络中断:本机同时装着 Surge(127.0.0.1:8888/8889)与 Clash Party 的 - mihomo TUN(utun1500),DNS 返回 fake-IP `198.18.x.x`。故障期间 `curl`/`gh`/`git` - 的 HTTPS 全部 0.02s 内失败(`SSL_ERROR_SYSCALL`),ICMP 到真实 IP 正常, - 属于代理分流线路的问题而非 GitHub 故障;约 5 分钟后自行恢复。 -- 那个时段恰好在写归档记录,`CGSessionScreenIsLocked` 也曾为 1;两者都只影响本机观察, - 与发布产物无关。 - -### 仍未验证(与发布说明一致) - -- 真实会话里对第三方窗口执行折叠 / 展开 / 置顶 / 关闭的端到端流程、锁屏与唤醒、 - 运行中撤销权限、多 Space 与 Mission Control、全屏、VoiceOver、无响应应用、 - 长列表滚动内存峰值、Dock 自动隐藏/放大组合。 -- 官网 `site/` 里的截图说明文字仍写着 v1.0.11(网站是独立部署流程,本次未动)。 - -### 下一步 - -- 若要让人正在使用的应用也报 1.0.12:`cd prototype && WINDOWSHADE_CODESIGN_IDENTITY=… bash build.sh` - 再 `open WindowShade.app`(会短暂停止并重启应用)。 - -## 2026-09-18:窗口浏览效率 / 原生界面 / 成熟化改版(阶段 0–7) - -依据:《WindowShade:窗口浏览效率、原生界面与窗口管理成熟化任务书》 -(`~/Downloads/WindowShade-native-polish-execution.md`)。实际 HEAD `05e5472`, -工作区开始时干净;未回退任何更新代码,未提交、未推送、未发版、未替换用户正在 -运行的应用(只用了 `build.sh --stage` 的隔离 bundle)。 - -### 阶段结果 - -- 阶段 0:核对 HEAD、`AGENTS.md`、`DEVELOPMENT.md`、`docs/window-browser.md`、 - 构建脚本与测试入口;`tests/run-window-browser-tests.sh` 基线 272 项断言全部通过。 - 建立隔离截图入口(`--window-browser-shots`)。 -- 阶段 1:重写 `WindowThumbnailService`(JobID、runningJobs 强持有、唯一 - `drainQueue`、订阅终态门、过期结果只结算不发布、后端停滞有界降级);修好卡片/ - 列表行的闭包自持有;实时预览引入明确挂载点与租约身份核对。 -- 阶段 2:`DockHoverObserver` 拆开身份与锚点,多屏候选区域改为“先找包含指针的 - 屏幕”,所有检测入口共用“一个在途 + 一个最新待处理”的排队器,结果回主线程核对 - 代数/拓扑/最新指针;元数据改为每应用一个槽(在途 + 最新需求);AX 计数分 - “逻辑发现”与“真实调用”并加锁。 -- 阶段 3:`WindowBrowserGeometry` 输出完整布局计划(面板/内容/列数/单元/详情/ - 滚动/锚点/过渡);网格改用 `NSCollectionView` 复用单元,列表改用 view-based - `NSTableView`;头部、搜索(键盘面板顶部)、卡片、动作条与详情区按新间距序列重做; - 动作与状态统一到 `WindowBrowserActionPresentation`,状态不再使用 emoji。 -- 阶段 4:新增真实玻璃路径(macOS 26+ 公开 `NSGlassEffectView`,构建期由 SDK 头 - 文件探测决定是否编译)、`NSVisualEffectView` 与纸面回退;减少透明度/提高对比度 - /减少动态效果都有明确策略;键盘面板延迟激活重试携带请求代数,用户切走不再抢 - 焦点;激活以“焦点确实到达目标”为成功。 -- 阶段 5:截图需求集合、可见资源释放、实时失败退避(每窗口每会话最多 2 次,权限 - 拒绝/源消失直接停止)、缓存新鲜度、图标读取缓存与性能阶段日志 - (`perf: input-arrival / intent-delay-end / first-panel-show / first-catalog-publish / - first-new-screenshot / live-first-frame / action-submit-* / action-verified-* / - panel-resources-released`)。 -- 阶段 6:新增 `WindowPlacement`(纯数据计划 + 预览 + 验证 + 撤销)并接入右键菜单; - 排布前重新核对身份,验证通过才登记撤销,用户已移动则拒绝撤销。 -- 阶段 7:回归(497 项断言)、真实组件截图 11 张 + 交互 GIF、同机前后性能对照、文档更新。 - -### 本次运行的命令与结果 - -| 命令 | 结果 | -| --- | --- | -| `bash tests/run-window-browser-tests.sh` | PASS:497 项断言(基线 272 → 497) | -| `bash tests/run-paper-tests.sh` | PASS(见交付报告) | -| `bash tests/run-duo-tests.sh` | PASS(见交付报告) | -| `cd prototype && ./build.sh --check` | 类型检查通过,未签名、未改 bundle | -| `./build.sh --stage`(隔离 bundle) | 构建 + 签名成功,未停止正在运行的应用 | -| `… --window-browser-shots .build/window-browser-shots` | 11 张生产组件截图 + `manifest.txt` | -| `/tmp/run-perf.sh`(基线 worktree 对照) | 见 `docs/window-browser-performance.md`(私有库) | -| `… --window-browser-catalog-probe`(隔离 bundle,只读) | apps=15 windows=0:新构建没有 TCC 授权,实机 AX 未验证 | - -### 仍未验证 - -- 实机 Dock 悬停、真实焦点、真实折叠/展开/排布(需要辅助功能与屏幕录制授权的 - 新构建,必须由用户执行;步骤见 `docs/window-browser-visual-qa.md`(私有库))。 -- 真实玻璃折射的整窗截图、多显示器/混合缩放与 120 Hz 实机、WindowServer 与能耗 - 采样、长时间会话的进程 footprint。 - -### 补充(同一轮继续):T26 / T16 / T34 / T37–T39、显示偏好与交互片段 - -- T26:新增 `WindowBrowserDockSessionPolicy`,把“键盘面板优先 / 同应用只更新锚点 / - 换应用新建会话”变成纯策略并接入控制器;同一 PID 的多次图标几何变化不会分配新的 - 应用实例。 -- T16:数量相同但键完全不同的刷新会清掉旧键保留的图像。 -- T34:新增目录版本隔离断言,另一个应用的结果不改变既有记录的 `metadataRevision`。 -- T37–T39:直接断言租约身份(旧 A 不能释放新 B、A→B→A 按租约区分)与重试上限 - (每窗口每会话最多 2 次自动重试;权限拒绝/源消失直接停止)。 -- 显示偏好:`WindowBrowserSettings.PreferredStyle`(自动/缩略图/列表)接入设置页 - “默认显示方式”,面板会话内显式切换优先于该默认值;断言覆盖往返与自动规则。 -- 交互片段:`WINDOWSHADE_SHOTS_CLIP=1` 让隔离展示入口输出 - `window-browser-interaction.gif`(真实面板的选择移动、搜索过滤、网格/列表切换、 - 失败状态与释放,约 17 帧循环)。真实 Dock 悬停、跨图标切换、斜移、折叠再展开、 - 失败重试的录像仍需要辅助功能与屏幕录制授权,未运行。 - -- 覆盖对照:新增 `docs/window-browser-test-coverage.md`(私有库),逐条列出 T01–T60 对应的 - 生产逻辑断言与仍未自动化的证据缺口。 -- 只读探针在本轮改版后的隔离构建上复跑:`--window-browser-hover-probe` 在无 AX 授权 - 时不产出目标并干净停止;`--window-browser-thumbnail-probe` 在无录屏授权时 - 3 次物理尝试全部失败,`running=0 cachedBytes=0`(额度与缓存都回到零,无泄漏)。 - -- 阴影审计:面板通过 `PaperSurfaceStyle.installShadow` 关闭原生阴影并改用一个鼠标 - 穿透的子窗口,卡片不再创建额外 NSWindow,因此没有重复阴影或孤立影子。 -- 首次体验:新增一次性说明(Dock 悬停与菜单/快捷键两个入口 + “不会改动窗口”), - 之后不再打断;示例数据预览仍留在隔离入口,不注入真实面板。 - -## 2026-09-18:1.0.13 提交、推送、发版与本机替换 - -用户确认“时机成熟”,于是执行了此前按任务书暂缓的动作: - -| 动作 | 结果 | -| --- | --- | -| 提交 | `0b1b240` 窗口浏览改版;`fe394e3` Release 1.0.13(版本号 + 发布说明 + README) | -| 推送 | `git push origin main`(05e5472 → fe394e3) | -| 发版 | tag `v1.0.13` + `gh release create`,附件 zip(3,652,589 字节)与 sha256 已上传,标记 Latest | -| 本机替换 | `./build.sh`(同一 Apple Development 身份,TeamIdentifier )替换 `prototype/WindowShade.app` 并 `open`;进程 40843 → 20543 | -| 校验 | bundle 版本 1.0.13 / build 13,签名身份未变;启动日志出现 `dock-hover: observer rebuilt ... lists=1` 与 `perf-summary:` | - -同一已授权 bundle 的只读实机探针(1.0.13):`--window-browser-catalog-probe` -得到 `apps=15 windows=17 empty=4 failed=0 total=371ms slowestApp=42ms -mainThreadMaxGap=6ms`,身份/几何/能力解析各 0 ms。`--window-browser-hover-probe` -用合成坐标仍无法命中真实 Dock 图标(需要人工悬停),未通过项已写入视觉验收文档。 - -发版后仅追加文档(本段与探针数据),源码与发布包保持一致;zip 内容为 tag 提交 -构建,构建脚本使用与商店一致的身份签名。 - -## 2026-09-18:1.0.14 提交、推送、发版、站点更新与本机替换 - -用户确认“时机成熟”,于是执行此前按任务书暂缓的动作: - -| 动作 | 结果 | -| --- | --- | -| 提交 | `08dab48 Release 1.0.14: system integration and native polish`(73 个文件) | -| 推送 | `git push origin main`(4406db3 → 08dab48) | -| 发版 | tag `v1.0.14` + `gh release create`,附件 `WindowShade-v1.0.14.zip`(首发 3,702,219 字节,sha256 `620bb348…0852`),标记 Latest | -| 站点 | `site/scripts/content.mjs` 增补“空格大图预览”与 1.0.14 设置说明,`npm run deploy` → 生产域名已核验中英文页面包含新文案 | -| 本机替换 | `./build.sh`(同一 Apple Development 身份,TeamIdentifier )替换 `prototype/WindowShade.app` 并 `open`;进程 20543 → 14370,bundle 1.0.14 / build 14 | - -发版前的完整回归:窗口浏览 **589 项断言**、纸质与双屏测试、`build.sh --check`、 -`build.sh --stage` 隔离构建与签名、五页设置外观检查(浅深亮度差 0.744–0.842)、 -标准菜单对照(⌘V)、`--window-browser-shots`(`classic-strip-palette PASS`)。 -性能表按同一次会话内背靠背对照改写为 271.8 / 342.8 → 24.2 / 30.4 ms。 - -替换后同一构建的实机只读证据(1.0.14 已安装构建,非人工编排): - -- 启动后本机日志出现一次 Dock 入口会话:`thumbnails started=1 delivered=1 - queuedCancelled=0 stale=0 duplicates=0 running=0 ax discoveryRequests=1 axCalls=2 - detections=5`,阶段耗时 `first-panel-show +345.7ms`、`first-new-screenshot +528.6ms`。 -- `--window-browser-catalog-probe` 四次:total 1710 / 334 / 518 / 895 ms(第一次为冷启动, - 其余 334–895 ms,接近 1.0.13 记录的 371 ms),`apps=15 windows=18 empty=4 failed=0`, - `mainThreadMaxGap` 6 / 6 / 6 / 15 ms。 -- `--window-browser-idle-probe`:功能关闭后 `axQueries=0 thumbnailsInFlight=0 - thumbnailBytes=0`、`settingsRestored=true`。 - -仍未验证的项目与 1.0.13 相同(真实斜向悬停、真实键盘焦点、真实折叠与排布、玻璃折射整窗 -截图、1x 与多显示器 / 120 Hz、能耗与长会话内存),已写入 `window-browser-visual-qa.md`(私有库) -与 `releases/v1.0.14.md`。 - -补充(同一版本重新发布):设置页截图入口改成整窗截图(侧栏材质进入归档图)后,按 -`DEVELOPMENT.md` 的“同一版本重新发布”路径重发 1.0.14——tag 从 `08dab48` 移到 -`3136799`,附件 `WindowShade-v1.0.14.zip`(3,702,451 字节,sha256 -`f7e0086606fae80e7ff9a3c1f097a3cbffa7a0be0cc683c38f19e89d37ab7a35`)与校验文件 -已覆盖,Release Notes 同步;本机应用用同一身份重新构建替换(pid 14370 → 24486)。 - -## 2026-09-18:圆角对齐 macOS 27(`5b7c683`) - -用户指出“圆角注意一下,要跟 macOS 27 相协调”。先做检索与实测,再统一实现: - -- **依据**:HIG《Materials》要求 Liquid Glass 只用于控件/导航层、内容层用标准材质; - 《Toolbars》要求自定义控件与外框圆角同心;《Live Activities》《Widgets》给出同心公式 - “内层圆角 = 外层圆角 − 边距”。本机实测:`screencapture -l` 抓 Finder 与 ChatGPT - 窗口,左上角弧长 26 px @2x = 13 pt,轮廓比正圆更平(连续曲率)。 -- **实现**:新增 `SystemCornerRadius`(窗口 13 / 卡片 12 / 控件 6 / 同心取 `max(4, 外 − 间距)`) - 与 `SystemCornerPath`(连续曲率路径,含 CGPath 版)。卷帘条、面板、卡片、缩略图、 - 悬停/置顶预览、设置分组盒、chip 与按钮、排布预览全部改读这份刻度,图层统一 `.continuous`。 -- **形状**:经典卷帘条从整块直角改为“上面两角圆、下边缘直切”,截图条/代理条/经典条 - 共用同一条轮廓的纸面阴影(面板四角圆、卷帘条上圆下直)。 -- **顺带修**:fixture 用 `String.hashValue` 挑强调色,而它每个进程重新播种,导致同一份 - 数据每次渲染出不同画面;换成 FNV-1a 后两次渲染逐字节一致,归档图可以逐像素比较。 - fixture 的窗口画面也补上了窗口圆角,不再是直角。 -- **验证**:窗口浏览 594 项断言、纸质与双屏测试、五页设置外观检查(侧栏 alpha 1.000)、 - `classic-strip-palette PASS`、`--window-browser-idle-probe` 干净;`docs/visual-qa/**`(私有库) - 全部重新生成。离屏 `cacheDisplay` 会把图层蒙版按 1x 光栅化,归档图上量到的弧长比实际 - 小约 20%(已用独立实验确认),因此数值以代码值与调试打印 `panelRadius=13.0` 为准。 - -交付(同一版本重新发布):用户确认“同一版本重新发布”,于是按 `DEVELOPMENT.md` 覆盖 -1.0.14——tag 从 `3136799` 移到 `6c744cc`,附件 `WindowShade-v1.0.14.zip` -(3,706,089 字节,sha256 -`77aa0ebc014b88bcfe79f418cfd969c5fdca561aa323eb8a2db91af565748f55`)与校验文件已 -覆盖,Release Notes 增补圆角条目与“本次一并修好的问题”;本机应用用同一身份 -(TeamIdentifier )重新构建替换,pid 24486 → 73939,bundle 1.0.14 / build 14。 -线上附件 sha256 与本地打包结果一致;隔离构建的 `--window-browser-idle-probe` 干净。 - -## 2026-09-18:面板不再留“下巴”(A+C) - -用户看了单窗口 Dock 面板的截图,问“为什么要留一个下巴”。查清是三层无条件预留叠加: -`chromeHeight` 多算一圈 `panelPadding * 2`(24 pt,内容布局并不消费)、没有状态文字时 -页脚仍占 19 pt + 8 pt 间隔、卡片标题无条件按两行预留 34 pt。 - -- **实现**:新增 `footerVisible` / `effectiveFooterHeight`(没有状态文字时页脚不占位)、 - `cardTitleLines` + `titleLineHeight`(标题按实际行数取高,量宽结果带缓存,200 条约 - 0.02 ms)、`derivedParams(base:titles:hasStatus:)`(控制器与截图探针共用同一条派生规则); - 面板高度公式去掉无人消费的余量,`content.listRect.height == documentHeight` 成了断言; - 状态出现/消失导致的高度变化走 `setPanelFrame(_:animated:)`,减少动态效果下不动画。 -- **实测(生产组件截图,2x)**:单窗口 · 短标题 · 无状态 312×329 → **312×274 pt**, - 卡片下方空档 51.5 → 12.5 pt;有状态时 312×289 pt;三窗口两行网格 612×575 → 612×519 pt。 -- **验证**:窗口浏览 604 → **605 项断言**(新增圆角/页脚/标题行数与“面板贴合内容”、 - “状态行只让面板长出一条页脚”的断言)、纸质与双屏测试、五页设置外观检查、 - 标准菜单对照、`--window-browser-shots`(`classic-strip-palette PASS`)全部通过; - `docs/visual-qa/**`(私有库) 重新生成。 - -## 2026-09-18:液态玻璃的分层纪律 - -用户反馈“要有液态玻璃的感觉,不要只是毛玻璃”,并明确不能玻璃叠玻璃、不能自创对 -Liquid Glass 的理解。于是回到 HIG 原文(`apple-design` 语料里的《Materials》《Color》 -与逐页蒸馏指南,Apple 最后更新 2025-12-16)逐条核对,只按写明的规则改: - -- **删掉控制层那层玻璃**。原来面板背景一层玻璃、控制层再叠一层,两层互相抹掉折射与 - 高光——这正是“毛玻璃感”的来源;HIG 的审查清单明确写着玻璃叠玻璃会毁掉层级。 -- **内容层改标准材质**。卡片、列表行、详情区在玻璃面板下改用 - `NSVisualEffectView(.contentBackground, .withinWindow)`;纸面与旧系统仍是实色卡片。 -- **固定 `regular` 变体、不上色**。HIG:文字多的弹窗/侧栏用 regular,clear 只用于浮在 - 照片/视频上的控件;玻璃本身不带色,所以不设 `tintColor`。过程中试过的 `clear` + 自造 - 薄纱方案按这条删掉。 -- **容器只在需要时用**。`NSGlassEffectContainerView` 负责合并多个玻璃形状;现在只有一层, - 容器路径不再创建(代码保留并注明触发条件)。 -- **滚动边缘**:列表位于页眉与页脚之间,滚动内容不与功能条重叠,不需要自造 scroll edge - effect;本机 SDK 的 AppKit 也没有对应公开 API(已逐个 grep Headers)。 -- **真实观感证据**:离屏渲染看不到玻璃,单窗口截图只有窗口自己的表面,所以给截图探针加了 - 确定性对照板(`WINDOWSHADE_GLASS_RIG=1`,440×380 的渐变+细字+明暗分区)与 - `WINDOWSHADE_SHOTS_HOLD`,用系统截屏抓真实合成结果: - `docs/visual-qa/system-appearance/liquid-glass-panel.png`(私有库)(同一帧里还有系统 Dock 作对照)。 -- **断言**:面板只有一个玻璃表面、控制层无玻璃、单层时不创建容器、玻璃面板下卡片用内容层 - 材质(纸面与旧系统仍为实色);窗口浏览检查 605 → **608 项**,全部通过;纸质、双屏、 - 五页设置外观检查、标准菜单对照、`classic-strip-palette PASS` 一并复跑。 - -交付(同一版本重新发布,第三次):用户确认“同一版本重新发布”,把“面板贴合内容” -(`ca3f295`)与“液态玻璃分层纪律”(`ac648cf`)连同文档(`480a7fd`)一起覆盖进 1.0.14—— -tag 从 `6c744cc` 移到 `480a7fd`,附件 `WindowShade-v1.0.14.zip`(3,715,311 字节, -sha256 `ed82d3a6d3f7f3fc28c1a5e09b0754f03a86f6b3d9e68353656479dbdfcd160e`)与校验文件 -已覆盖;Release Notes 增补“面板贴着内容收口”与“液态玻璃按 HIG 只用一层”两条中英文; -本机应用用同一身份(TeamIdentifier )重新构建替换,pid 73939 → 20707, -bundle 1.0.14 / build 14。线上附件 sha256 与本地打包结果一致;隔离构建的 -`--window-browser-idle-probe`、`--window-browser-shots`(`classic-strip-palette PASS`)干净。 - -## 2026-09-20:用户截图里的“空面板 + 被裁的小卡片”修正 - -用户在实机截图里看到:Dock 悬停时面板是一整块宽而空的玻璃,里面只有一张很小的、被裁掉标题的 -窗口画面,系统应用名气泡落在面板下沿。查出三条真实缺陷,彼此叠加: - -| 现象 | 原因 | 修正 | -| --- | --- | --- | -| 面板宽而空、卡片小且丢了标题 | `WindowBrowserPanel.setPanelFrame(animated:)` 在动画开始时就 -把内容视图设成终点尺寸,而窗口还在半路;系统把偏小的内容视图摆到窗口中间,于是露出“窗口还是旧 -尺寸、内容已经按新尺寸画”的中间帧 | 换尺寸时让窗口动画带着内容一起走,动画收尾才收口;新增换 -尺寸代数,旧动画不会把新尺寸盖回去。内容视图在尺寸变化时重排,中间帧不再拉伸已画好的图层 | -| 单窗口应用拿到列表面板尺寸(544 × 129) | 面板几何用“上一次会话遗留的 `style`”和未过滤的目录 -计数决定风格与数量,内容却用本会话过滤后的记录,两边各算一套 | 几何与内容共用 -`resolvedStyle(windowCount:)` 与 `dockPlanRecords(for:)`;`refreshPanel` 每次都按同一份记录重算 -面板 frame,指针已离开图标(`lastDockTarget == nil`)时也不再冻结旧尺寸 | -| 缩略图被拉扁/裁掉 | `captureWindow` 用调用方给的 AX 尺寸配置 `SCStreamConfiguration`;那个尺寸 -可能过期,或正好落在窗口动画中间,SCK 会把画面拉伸到它 | 截图尺寸改取窗口自身 -(`SCWindow.frame`)的长宽比,AX 尺寸只作回退 | - -证据(都在本机执行,不操作用户窗口): - -- 隔离构建面板探针 `--window-browser-panel-probe`:把一块列表面板尺寸(544 × 129)动画换成单窗口 - 缩略图尺寸(312 × 236),逐帧比对内容视图与窗口尺寸。 - - 修正前:`animated-resize before=0 immediate=232 worst=232 settled=0 samples=20 - finalFrame=(312x236) matchesRequestedFrame=true interpolatedFrame=true` - ——请求动画的那一刻,内容视图就比窗口大 232 pt,整个动画期间都是这个错位帧。 - - 修正后:`animated-resize before=0 immediate=0 worst=0 settled=0 samples=20 - finalFrame=(312x236) matchesRequestedFrame=true interpolatedFrame=true` - ——全程同尺寸,动画照常插值。 -- `bash tests/run-window-browser-tests.sh` → `PASS: 663 window-browser pure-logic checks` - (新增 15 项:“内容计划与面板 frame 同尺寸”“内容不画到面板之外”“缩略图/列表面板宽度”“自动风格 - 只由当前窗口数决定”“本会话显式选择优先于自动判定”)。首屏延迟同批打印:50 窗口 2.16 ms、 - 200 窗口 7.99 ms。 -- `bash prototype/build.sh --check` → 通过(81 个 Swift 文件)。 -- 真实 Dock 悬停(同一身份原地重建并重启本机应用后实测):指针停在“照片”图标上约 2.3 s 再放回, - 面板出现且几何正确(卡片画面、标题、底部标签带完整),截图与日志一致。 - -顺带修掉同一功能里的一个真实缺口:Dock 重启如果发生在订阅真正生效之前, -`kAXUIElementDestroyedNotification` 与 `didLaunchApplicationNotification` 都可能错过,观察器会一直 -绑在已经消失的 Dock 进程上,Dock 悬停从此静默失效(本机重建应用后即复现:观察器记录 -`pid=47501`,实际 Dock 已是 `pid=48344`,无任何目标产出)。现在“指针在 Dock 条带里却解析不出应用 -项”时按秒节流核对一次 Dock 实例,换了就重建。实测日志: -`dock-hover: dock instance changed 48344 -> 61602` → -`dock-hover: observer rebuilt pid=61602 lists=1 reason=dock-instance-changed` → -下一次指针移动立即 `dock-hover: target pid=54155 bundle=com.apple.Photos`,面板正常出现。 - -仍未验证(沿用之前的清单,与本轮改动无关):多显示器缩放、Space、全屏、Mission Control、 -睡眠唤醒、锁屏、权限撤销重授权、连续 100 次开关的资源计数与性能对照。 - -`prototype/WindowShade.app` 已用同一身份原地重建并重启,供用户继续测试。 - -## 2026-09-19(晚):用户实机反馈后的三处修正 - -用户测试 1.0.14 第四次重发版时指出:面板圆角处的阴影不对;单窗口面板底部空太多;面板与 Dock -的应用名气泡重叠,且与气泡重复写了应用名。 - -| 问题 | 原因 | 修正 | -| --- | --- | --- | -| 圆角阴影 | 纸面阴影子窗口按自己的圆角路径画阴影再挖空,与系统玻璃圆角不重合 | 玻璃路径改用系统窗口阴影(`hasShadow`),纸面/旧系统路径保留纸面阴影;材质切换时面板跟着切换 | -| 底部留空 | 卡片为悬停按钮预留 28 pt 信息行,无状态、未悬停时是空带 | 操作按钮浮在画面右上角;状态行只在这一批里真有状态时才留;单窗口卡片 218 → 186 | -| 气泡重叠与重复信息 | 面板位置被“可见区域内缩 12 pt”夹住(可见区域不含 Dock 带),落在系统气泡位置上;页眉又写一遍应用名 | 用户否定了“把面板挪到气泡上方”的第一版(两者仍是分开的)。现为:底部 Dock 面板贴近图标,底部留 38 pt 标签带给系统气泡,气泡成为面板的标签;指针移进面板、气泡收起后面板在同一位置显示应用名接替;Dock 页眉不写应用名,单窗口不留页眉(312 × 236),多窗口页眉只写窗口数(高 32)。气泡位置按用户截图推算,真机对齐待用户确认 | - -验证:窗口浏览 645 项断言(新增 10 项)通过;隔离构建截图与对照板真实合成截图复核;本机 -`prototype/WindowShade.app` 同身份原地重建并重启供用户测试。机器负载很高(load average 180–265)时, -“200 窗口首屏 < 50 ms”这条断言会偶发超时,负载下降后复跑通过。 - -## 2026-09-19:按复检设计稿落地(已合入 main,第四次重新发布 1.0.14) - -依据 `docs/design-proposal-claude.md`(私有库),修复复检列出的 R1–R18(R19 文档已同步,R20 性能未复测): - -| 项 | 改动 | -| --- | --- | -| 玻璃 | 面板根视图是唯一 `NSGlassEffectView`,界面在其 contentView 内;删除控制层表面、协调容器与卡片材质;旧系统材质 `.active` | -| 卡片/列表 | 系统填充色 + 选中环;信息行 28、画面 144(圆角落在实际画面上)、圆角 8;列表 `.plain`、行距 4、无系统选中灰块;详情画面在上 | -| 交互 | 悬停追踪 `.activeAlways`;Dock 面板不画键盘选中环、当前项随悬停;PageUp/PageDown;选中 100 ms / 首图 80 ms / 尺寸 120 ms 淡变;键盘面板淡入 | -| 几何 | 3 窗口单行三列(912 × 274);操作按钮 28 × 28、间距 4;页脚 18;搜索框取系统固有高度;次级字号下限 10 | -| 正确性 | 截图服务回调不在锁内执行、计数全在锁内;控制器释放后目标解析仍回调;旧实时预览租约失败不再给新选中项报错;排布预览计时器绑定令牌、清页脚,描边内缩 + 连续曲率 + 随外观刷新 | -| 文案 | 画面区原因只写原因(“需要屏幕录制权限”“画面暂不可用”等) | - -验证:`tests/run-window-browser-tests.sh` **627 项**通过(新增 16 项:跟踪区域、列表不溢出与行距、翻页、Dock 无选中环、三列、预览令牌、服务回调重入、单层玻璃与 contentView);`run-paper-tests.sh`、`run-duo-tests.sh`、`build.sh --check` 通过;`build.sh --stage` 后重新生成 `docs/visual-qa/window-browser/*.png`(私有库)。 - -同日补齐:Tab 键视图循环(搜索框 → 列表/网格 → 显示方式);操作按钮悬停/按下底(6 pt 圆角系统填充); -动作执行中操作条前方显示转圈;搜索无结果时列表区显示“没有匹配的窗口”;缺少屏幕录制权限时页脚 -给出“打开‘屏幕录制’设置…”入口,卡片只留图标;列表选中行改为系统列表的强调色实心底; -左/右 Dock 的列数上限在面板级与内容级布局共用 `columnCap(edge:)`;截图探针打印的屏幕坐标改用 -主显示器高度(多显示器时原来算错)。断言增至 **638 项**。 - -性能:同一会话与 `a1a0a01` 交替 6 轮取中位数,冷启动与暖刷新持平,暖刷新 p95 ≤ 2.9 ms -(见 `docs/window-browser-performance.md`(私有库))。第一版曾把暖刷新 p95 推到 4.7–6.6 ms,已查明并修掉。 - -实机检查(详见 `docs/window-browser-visual-qa.md`(私有库)“设计稿落地后的实机检查”):真实合成的玻璃截图 -已重拍;玻璃路径未见重复阴影;非 key 面板里 `.activeAlways` 收到真实指针的进入/离开而旧写法 0 次; -第一次点击经窗口派发直达卡片;非 key 面板上 `.followsWindowActiveState` 实测恒为灰色非激活外观。 - -仍受环境限制:没有 macOS 14/15 机器(旧系统路径以 macOS 27 上同一 API 的表现为据); -没有做经窗口服务器的全局点击(屏幕上有系统截图程序的全屏窗口)。真实 Dock 悬停用 -`--window-browser-hover-live-probe` 实测通过(Finder 图标 `match=true`,移开后清空,指针已放回)。 - -交付(同一版本重新发布,第四次):设计稿实现 `c303965` 连同站点渲染 `68033e3`、部署记录 -`e7649a0` 与发布说明 `e744555` 合入并推送到 `main`;tag 从 `480a7fd` 移到 `e744555`,附件 -`WindowShade-v1.0.14.zip`(3,729,620 字节, -sha256 `25af12cea07ae44aa4ed8bdf20672e270e5e3c1e139d43a03be4dc8aeb6b8e31`)与校验文件用 -`--clobber` 覆盖,Release Notes 增补“内容挂进玻璃的 contentView / 卡片只用系统填充色” -与面板几何、内容、交互、状态四条中英文;本机应用用同一身份(TeamIdentifier ) -重新构建替换,bundle 1.0.14 / build 14 / arm64。发布前的隔离构建检查: -`--window-browser-shots`(`classic-strip-palette PASS`,16 张 PNG 与文档归档逐字节一致)、 -`--window-browser-idle-probe`(`axQueries=0 settingsRestored=true`)、 -`tests/run-window-browser-tests.sh`(638 项)、`run-paper-tests.sh`、`run-duo-tests.sh`、 -`build.sh --check`、`scripts/check-settings-appearance.sh`、`scripts/check-standard-menu.sh` -全部通过;打包后解压复核签名、架构(arm64)与版本。 - -站点同一批重新部署:`https://70d1449c.windowshade.pages.dev`,线上 28 个文件与本地构建 -逐字节一致(`_headers` / `_redirects` 仍由 Pages 消费,与以前一样返回 404 页)。首页 hero 与 -历史页 bridge 换成新面板的真实渲染,历史页 bridge 改按 1102 × 348 的比例显示;Dock 一节的 -单窗口尺寸从 1.0.13 遗留的 312 × 349 pt 更正为 312 × 274 pt。 - -## 2026-09-22:发版前的设计评审与站点同步 - -按 `apple-design` 与 `apple-design-hig` 两套标准做了一次发版前评审,报告见 -设计评审:WindowShade 1.0.14。应用侧没有发现 Critical,两条 High -(底 Dock 标签带依赖系统气泡落点、列表行按两行预留高度)记在该报告的改进项里,并同步进 -复检交接 的 G12 / G13;这一轮不改应用的几何与行为,避免动到已经逐帧验证过的 -面板。 - -站点这一轮改了四处,改完重新构建、逐页实拍复核: - -| 改动 | 说明 | -| --- | --- | -| 中文 hero 字距 | `style.css` 新增 `html[lang="zh-CN"] .hero h1{letter-spacing:-.02em}`。拉丁文的 `-.055em` 用在 PingFang 上会把全角字身压掉 5.5%(实测“窗口挡路?”374.4 → 353.8 px),字与字几乎相碰 | -| 面板尺寸数字 | 中文与英文的窗口浏览段落、两侧 README、发布说明从 312 × 274 pt 更正为 **312 × 236 pt**(有状态 312 × 253),三窗口 Dock 面板 288 → **286** | -| 引号方向 | FAQ 里四组中文引号从右引号改为成对的 `“ ”` | -| 面板渲染 | `site/public/media/bridge-windows.webp` 用当前 `--window-browser-shots` 的 `dock-three` 重出(1824 × 572 → 1102 × 348) | - -站点改动只涉及 `content.mjs`、`style.css` 和一张渲染图;`npm run build` 与 `npm run check` 通过 -(30 个部署文件),浅色/深色/移动端实拍与逐宽度断行比对通过,等待与这一版发布一起部署。 - -补记(同日):官网又用 WebKit 复核了一遍(Playwright 自带构建,需把 `DYLD_FRAMEWORK_PATH` 指向该 -bundle,直接用系统 WebKit 会因 `_WKBrowserContext` 符号缺失而崩)。390 / 767 / 900 / 1100 / 1440 -五个宽度下每个标题的断行结构与 Chromium 完全一致,绝对字宽小约 2%;唯一可见差异是全角标点(`?` -`。`)WebKit 留完整字身、Chromium 压紧,与这轮字距改动无关。 - -## 2026-09-22:设置页内容列改为居中(收起侧栏后右半边不再空着) - -用户指出"切换侧边栏的时候"内容区有一大片空白。两张截图对比后确认:两张图是**同一个窗口的两种侧栏状态**—— -图 1 侧栏展开(左侧区域 237 底色 1073 行、选中行 215),图 2 **侧栏已收起**(左侧区域已是内容卡片 248 -底色 786 行)。收起侧栏后详情区变成整窗宽 ~1115 pt,而内容列仍是 640 pt 且钉在左边,右侧留白实测 -**447 pt**;展开侧栏时也有 187 pt。 - -对照 Apple 自己的分组表单(本机离线渲染 SwiftUI `.formStyle(.grouped)`):854 pt 容器左右各 75 pt、 -1200 pt 容器左右各 248 pt,内容列恒为 703.5 pt——**上限 + 居中**,不贴边。 - -改动:`DuoSettingsWindow.select(section:)` 把 `leading == pageHost.leading + 28` 换成 -`centerX == pageHost.centerX`,两侧各留 ≥28 pt、宽度仍 ≤640(`== 640` 降为 510 优先级,窄窗口自动收窄)。 -实测(生产窗口截图,2x):900 × 680 → 左右 **28.0 / 28.5 pt**(改前 28 / 20);1115 × 680 → **130.5 / 131.0 pt** -(改前 28 / 187);侧栏收起时按同一约束即为整窗居中。 - -同时加防回归:`DuoSettingsWindow.contentColumnOffsetForDiagnostics` 给出当前分页相对详情区中心的偏移, -`--settings-shots` 每次渲染打印一行(两档宽度、5 个分页全部 `0.0pt PASS`)。探针新增 -`WINDOWSHADE_SETTINGS_SHOTS_SIZE=1115x680`,可在非默认窗口宽度上复核(窗口本来就可自由缩放, -只在 900 pt 宽看是看不出这个缺陷的)。 - -验证:`build.sh --check`、`build.sh --stage`、`--settings-shots`(10 张归档图重出)、 -`scripts/check-settings-appearance.sh`(浅深亮度 0.547–0.796 全 PASS,侧栏材质 alpha 1.000)、 -`tests/run-window-browser-tests.sh`(663 项)通过;`prototype/WindowShade.app` 用同一身份 -()原地重建,重新打包 `WindowShade-v1.0.14.zip`(3,736,666 字节, -sha256 `84e7f581ae949d96caa86cc977abe14ab3c715ef0348b8c72e1c10579b21a678`)。 - -## 2026-09-22:切换侧栏不再改变窗口尺寸 - -用户指出"展开和收纳侧边栏不应该把窗口撑大",附了三张截图。量窗口宽度确认:**收起侧栏 900 pt,展开 -侧栏 1105–1115 pt,差值正好是一个侧栏的宽度**。 - -最小复现(`/tmp` 的 AppKit 小程序,同样的 split view + 侧栏 item + 详情页约束): - -| 变体 | 初始 | 收起 | 展开 | -| --- | --- | --- | --- | -| 现状:`splitController.view.widthAnchor ≥ 820` | 900 | 900 | **1115** | -| 去掉该约束、改用 `window.contentMinSize` | 900 | 900 | **900** | -| 只去掉约束 | 900 | 900 | 900 | - -根因:设置窗口把最小尺寸写成 `splitController.view` 的 **required 宽度约束**。AppKit 为了让这条约束 -成立,在展开侧栏时选择"把整扇窗口撑宽一个侧栏",而不是压窄详情区。现在最小尺寸只写在 -`window.contentMinSize`(它只限制用户能把窗口拖多小,不参与窗口内部的宽度分配),required 约束删除。 - -防回归:`DuoSettingsWindow.sidebarCollapsedForDiagnostics` + 探针开关 -`WINDOWSHADE_SETTINGS_SHOTS_SIDEBAR=collapsed|expanded`,拍卷帘页前切换侧栏并核对窗口宽度: -收起 `900pt(切换前 900pt)PASS`、展开 `900pt(切换前 900pt)PASS`(改前展开是 1115)。 - -验证:`build.sh --check`、`--stage`、`--settings-shots`(归档图重出)、663 项窗口浏览器断言、 -`scripts/check-settings-appearance.sh` 通过;`prototype/WindowShade.app` 同身份原地重建并重新打包 -`WindowShade-v1.0.14.zip`(sha256 `b30a5922308217306ad944c539d59c4f56eabbceac8adc4e1ceb8c74de2f39f8`)。 - -## 2026-09-22:1.0.14 第五次重新发布(同版本号)与官网部署 - -GitHub:tag `v1.0.14` 从 `e744555` 移到 `c62c4ba`(本轮全部改动所在的提交),Release 说明替换为 -`docs/releases/v1.0.14.md` 最新版,附件 `WindowShade-v1.0.14.zip` 与校验文件 `--clobber` 覆盖。 -端到端复核:从 Release 下载回来重算 `sha256 b30a5922308217306ad944c539d59c4f56eabbceac8adc4e1ceb8c74de2f39f8` -(3,737,534 字节),与本地构建逐字节一致,`.sha256` 自校验 OK;Release 仍是最新,非草稿/预发布。 - -官网:`npm run deploy` 部署到 `https://6044efba.windowshade.pages.dev`,上传 4 个文件(其余 24 个未变, -与本地 diff 预测一致):`index.html`、`en/index.html`、`style.css`、`media/bridge-windows.webp`。 -复核:28 个可部署文件从部署域名逐个下载重算哈希,与本地构建**全部一致**(`_headers` / `_redirects` -按 Pages 约定由平台消费,不参与比对);生产域名 `https://windowshade.pages.dev` 的 `index.html` 与 -`style.css` 哈希也已等于新构建(`8e65d8fe…` / `149112f6…`)。`site/deployment.json` 更新为本次记录。 diff --git a/docs/archive/2026-11-10/slide-over-unminimizable-pullback.md b/docs/archive/2026-11-10/slide-over-unminimizable-pullback.md deleted file mode 100644 index 06d1d301..00000000 --- a/docs/archive/2026-11-10/slide-over-unminimizable-pullback.md +++ /dev/null @@ -1,12 +0,0 @@ -# 台前调度下不能最小化的窗口收起被拉回(已修,归档) - -> 归档 2026-11-10:修复随 1.0.22 发布,不再跟踪。仅作历史记录。 - -原登记(`docs/known-failures.md`,首次记录 2026-11-09): - -- 失败项:台前调度下不能最小化的窗口收起仍会被拉回。 -- 环境 / 构建:本机 M5(macOS 27),台前调度开,`--restore-guard` 用的那种不给最小化的临时窗。 -- 复现:`slide.hide` 走系统收起失败(补写一次仍收不起)→ 退回推到屏外的老路,窗口右边被系统钳在 255。 -- 当时状态:侧拉收起现在优先交给系统收起(侧条卡片);只有 App 自己不让最小化的窗口走老路,这种窗口在这一侧收不干净。真遇到再定:要么换边,要么按住不动只记日志。 -- 修复:换边(`flipToFreeEdge`,`prototype/App/SlideOver.swift`)已实现并合入;探针 `--slide-over-unminimizable` 在真机门禁 PASS。 -- 关联探针:`--slide-over`(标准窗口)、`--slide-over-unminimizable`(不可最小化窗口)。 diff --git a/docs/archive/2026-11-11/releases/appcast-item-1.0.18.xml b/docs/archive/2026-11-11/releases/appcast-item-1.0.18.xml deleted file mode 100644 index dda6ec48..00000000 --- a/docs/archive/2026-11-11/releases/appcast-item-1.0.18.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - 1.0.18 - Sat, 18 Oct 2026 12:00:00 +0000 - 18 - 1.0.18 - 15.0.0 - arm64 - - - 17 - - https://github.com/surfine/WindowShade/releases/tag/v1.0.18 - - - diff --git a/docs/archive/2026-11-11/releases/appcast-item-1.0.19.xml b/docs/archive/2026-11-11/releases/appcast-item-1.0.19.xml deleted file mode 100644 index 7290c3bc..00000000 --- a/docs/archive/2026-11-11/releases/appcast-item-1.0.19.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - 1.0.19 - Sun, 01 Nov 2026 12:00:00 +0000 - 19 - 1.0.19 - 15.0.0 - arm64 - - - 17 - - https://github.com/surfine/WindowShade/releases/tag/v1.0.19 - - - diff --git a/docs/archive/2026-11-11/releases/appcast-item-1.0.20.xml b/docs/archive/2026-11-11/releases/appcast-item-1.0.20.xml deleted file mode 100644 index 2b397105..00000000 --- a/docs/archive/2026-11-11/releases/appcast-item-1.0.20.xml +++ /dev/null @@ -1,14 +0,0 @@ - - 1.0.20 - Mon, 02 Nov 2026 12:00:00 +0000 - 20 - 1.0.20 - 15.0.0 - arm64 - - 17 - - https://github.com/surfine/WindowShade/releases/tag/v1.0.20 - - - diff --git a/docs/archive/2026-11-11/releases/v1.0.16-release-gate.md b/docs/archive/2026-11-11/releases/v1.0.16-release-gate.md deleted file mode 100644 index 1889429f..00000000 --- a/docs/archive/2026-11-11/releases/v1.0.16-release-gate.md +++ /dev/null @@ -1,78 +0,0 @@ -> 归档于 2026-11-11。1.0.16 已发布,这是当时的一次性发布关文档,仅作历史记录;现行流程见 [../../../DEVELOPMENT.md](../../../DEVELOPMENT.md) 和 [../../../testing.md](../../../testing.md)。 - -# 1.0.16 发布关 runbook(真机,60–90 分钟) - -用途:把 1.0.16 从"候选"推到"可发布"。门内全过 → 走文末「发布日流程」;任何一项 inconclusive/fail → 停,按本项目惯例记档。 - -**为什么不是直接用旧候选 ZIP(4fe6518e)**:其构建源是 2026-10-10 的未提交工作树,与任何提交都对不上(对照 `source-manifest.json` 逐文件核对:与「第二十二波」提交差少数文件,与当前 main 差更多);其包内主程序二进制(sha256 前缀 `9567012c`)与此前真机探针所用的 staged 二进制(`91762d1d`)**不是同一个**。用旧包发布等于"验过的包 ≠ 发布的包"。因此本关的基线是从提交重建的新候选——做到**标签=源码=包=证据**四者一致。全部旧证据继续留档,但真机门本来就得在新包上补。 - -## Phase 0 · 建发布候选并过包级门禁(约 15 分钟) - -基线提交二选一(**2026-10-12 晚已改选 0-B,见下**): - -- 0-A:`82681b0`(第二十二波快照 + 「去掉 reused 多余强制解包」修复)——纯二十二波范围,无英语界面。 - (注:纯第二十二波快照 `e4db602` 在本机全量编译下有一个 `non-optional force unwrap` 编译错误——`LaunchpadController.swift` 的 `reused!`;修复即 `82681b0`。2026-10-12 实测。) -- **0-B(当前选择):`main` + 第28批(静音散句英语)+ #39 修复的工作区** —— 用户 2026-10-12 定案:把已完成的英语适配(设置外壳+卷帘页+高级页+静音散句)与 #39(按住 Option 双击不收起)一起发 1.0.16(issue #39/#40)。**Phase 1 里加验**:① 设置 → 高级 → 界面语言切 English 后立即生效且停在当前页;② 卷帘页滑杆读数位置正常(两形态卡点的回归);③ **新增 #39 判据**:按住 Option 双击标题栏不收起(系统行为放行),普通双击仍收起。 - 工作区源码身份:`git diff` 与未跟踪文件哈希见证据目录 `.build/release-acceptance-20261012/`(本次以工作区直接 --stage,未提交;发布日打包前需把这一版提交,保证 标签=源码=包 一致)。 - -命令(干净检出 + 构建;需 Xcode/Metal 与签名证书,见 DEVELOPMENT.md): - -```sh -git worktree add /tmp/ws-b16 82681b0 # 或 HEAD -cd /tmp/ws-b16/prototype -WINDOWSHADE_CODESIGN_IDENTITY="Apple Development: …" ./build.sh --stage -# 产出 dist/WindowShade-v1.0.16.zip 与 .sha256 —— 记下大小与 sha256,这就是要发布的数字 -``` - -包级门禁 = DEVELOPMENT.md「发布关」§4 的 9 步(deep-strict / DR 与 1.0.15 逐字一致 / `--self-check` 含 `build=16` / CFBundleVersion>15 / LSMinimumSystemVersion / lipo 架构 / Sparkle 键与 UpdateGuard / 首个更新器版跳过"上版读状态")。一条条跑,结果记进证据目录。 - -启动候选(供 Phase 1–3 用;shell 直启会丢 AX 授权,用已验证过的路线): - -```sh -open -a /tmp/ws-b16/prototype/dist/…(或解压出的 WindowShade.app)--args # open 路线:责任人=自身,继承日常版 TCC -# 跑前守卫:lsappinfo front 是 loginwindow 就先解锁 -``` - -## Phase 1 · 核心窗口路径(约 20 分钟)← 门里最重要,历史雷在这 - -用一个专用测试文档(不要动你自己的文档): - -1. **单文档**:双击标题栏收起 → 看到卷帘条(预期:首变 ~165ms、条 ~415ms;以实际截图为准)→ 双击卷帘条 → 原样恢复。 -2. **同 App 两文档**(历史缺陷"两文档时收起不出卷帘条",当前源码从未复现过——**门内最关键的一条**):同一文本编辑器开 A、B 两份 → 对 A 双击标题栏 → 看卷帘条是否出现 → 双击恢复 → 对 B 重复。 -3. **菜单栏路径**:菜单里对当前窗口收起/展开,行为与双击一致。 -4. **外观**:浅色、深色各做一次第 1 条;"收起后的样子"两档(跟原来一样 / 统一标题栏)各看一眼。 -5. 每个动作:截图 + 备注时间;看不到、说不清 → 直接记 inconclusive,不许猜成 PASS。 - -## Phase 2 · 欢迎三步(约 10 分钟) - -- 走一遍首次启动:说用途 → 之前常用哪个系统 → 两项授权(辅助功能、屏幕录制)。开着"减少动态效果"时应不动动画。 -- 菜单「欢迎使用 WindowShade…」随时能重开。 -- 试用入口/默认值细节见 `v1.0.16-defaults.md`(私有库)。 - -## Phase 3 · 更新器(约 10 分钟)← 1.0.16 是首个带 Sparkle 的公开版 - -- 包内已核:`SUFeedURL = https://windowshade.aaronlau.me/appcast.xml`、`SUPublicEDKey` 正确、UpdateGuard 同 Team。 -- 线上 appcast 尚未部署(本来就是发布日先上)。门内做简验:打开更新菜单/点"检查更新"——**不崩溃、不弹假版本**;feed 缺失时的实际表现如实记录(不猜测 Sparkle 行为)。 -- 完整更新验证在发布日(见下)。 - -## Phase 4 · 判定与记录(约 5 分钟) - -- 门的通过条件:Phase 1 全部 PASS(含同 App 两文档)+ Phase 2 全过 + Phase 3 简验无双异常。 -- 证据落 `.build/release-acceptance-20261012/`,每条一张表:场景 / 期望 / 实际 / 证据(截图名)/ 判读(pass/inconclusive/fail)。截图按 `场景-顺序.png` 命名。 -- 全过后把结果给我,我按发布日流程收尾。 - -## 发布日流程(门过后执行;照 DEVELOPMENT.md §4–§8) - -1. 冻结新 ZIP + `.sha256` + 证据目录(source 清单、包级门禁输出、本 runbook 结果)。 -2. `sign_update` 签 ZIP → 在 `site/public/appcast.xml` 建/加 1.0.16 条目(保留最近三条,条目写法照 `site/public/appcast.xml` 里最近的一条)→ 站点 build/check → 部署(先上传包、后发清单)。 -3. GitHub Release:`git tag v1.0.16`(指 Phase 0 的基线提交)→ `gh release create ... --notes-file docs/releases/v1.0.16.md`(去掉草稿标记)→ 上传 ZIP 与 `.sha256` → 下载回来核对哈希。 -4. 更新 README 双版下载数字(1.0.16 实际大小)。 -5. 可选但建议:先发 beta 频道自用一天,再去掉频道标记(DEVELOPMENT.md §7);分批推送 `phasedRolloutInterval`(§8)。 - -## 门内不做、发布后 beta 项(如实写进发布说明/回执) - -真机安装升级一部、日常使用一天、硬件矩阵、H07/H08、CarPlay 真人手指长按(上轮 inconclusive)、120Hz、真手感清单、shelf-glance(已定案为 macOS 27 能力缺口,随系统更新复查)。 - -## 谁跑什么 - -Phase 0/1/2/3 需要在 Mac 上动手(构建、运行、观察)。**构建与临时运行候选超出我当前批次的红线(不签名运行产品)**——两条路:你跑(命令都备好了),或你明确授权我代跑 Phase 0 的构建与包级门禁(不安装、不替换日常版、不动用户文档),真机观察部分仍由你完成。 diff --git a/docs/archive/2026-11-11/releases/v1.0.17-release-gate.md b/docs/archive/2026-11-11/releases/v1.0.17-release-gate.md deleted file mode 100644 index a6a2ae56..00000000 --- a/docs/archive/2026-11-11/releases/v1.0.17-release-gate.md +++ /dev/null @@ -1,101 +0,0 @@ -> 归档于 2026-11-11。1.0.17 已发布,这是当时的一次性发布关文档,仅作历史记录;现行流程见 [../../../DEVELOPMENT.md](../../../DEVELOPMENT.md) 和 [../../../testing.md](../../../testing.md)。 - -# 1.0.17 发布关 runbook(第一个 Developer ID 版) - -用途:把 1.0.17 从"候选源码"推到"可发布"。门内全过 → 走文末「发布日流程」;任何一项 inconclusive / fail → 停,按本项目惯例记档。格式沿用 [1.0.16 runbook](v1.0.16-release-gate.md)。 - -**这一版特殊在三处**(2026-10-17 候选源码已备好,见各处 TODO): - -1. **换证书的一版。** 1.0.16 及以前是开发证书签的(Team `FVGLY6W6S4`),1.0.17 用 Developer ID(Team `DQ45KFVHJ8`),DR 一定不同。自动更新跨不过去,所以 appcast 那一项标了 `sparkle:informationalUpdate`(`belowVersion=17`):1.0.16 只弹提示、给下载页(见 [docs/update.md](../../../update.md) 的“签名与公证”)。发布关第 3 步改核「Developer ID、Team 是 `DQ45KFVHJ8`」。 -2. **最低系统 macOS 15。** `Info.plist` 的 `LSMinimumSystemVersion` 早已是 15.0,appcast 这一项是 `15.0.0`(1.0.16 那项保持 `14.0.0`,留在 macOS 14 的人停在 1.0.16)。 -3. **公证。** `./build.sh --release`+`bash scripts/notarize.sh`;README 与官网里"还没公证"那句已删。 - -候选源码里已完成(本 runbook 之前):`CFBundleShortVersionString 1.0.17`/`CFBundleVersion 17`;appcast 的 1.0.17 条目草稿放在 appcast-item-1.0.17.xml(私有库)(url、length、`edSignature` 写着 TODO;**故意不放进 `site/public/appcast.xml`**——线上清单带着 TODO 和旧签名块会让 1.0.16 的更新检查失败,所以 build 17 照样 PASS);三份 README 与官网(中、繁、英)改 macOS 15、已公证、从 1.0.16 升级要手动下载一次;发布说明草稿 [v1.0.17.md](../../../releases/v1.0.17.md)。**没做**:构建、签名、公证、打标签、发布。 - -**顺序纪律:** 三份 README 与官网已写"已公证、macOS 15",1.0.16 并不成立(开发证书签、未公证、支持 macOS 14)。所以这批候选源码**不要先合进 `main`、不要先部署站点**;README/官网/appcast 随 1.0.17 的 zip 上传到 GitHub Release 之后一起上线(发布日流程第 3 步),之前站点任何文案修改都从不含这批的提交出。 - -## Phase 0 · 建发布候选并过包级门禁(约 20 分钟) - -先决条件:本人的钥匙串里有 Developer ID Application 证书(Team `DQ45KFVHJ8`),`xcrun notarytool store-credentials windowshade-notary …` 已存过凭证(见 docs/DEVELOPMENT.md 第 3 步)。 - -```sh -git worktree add /tmp/ws-b17 <要发布的提交> # 标签=源码=包:必须是已提交的干净检出 -cd /tmp/ws-b17 -bash scripts/check-release-version.sh # 必须 PASS(build 17 > appcast 已发过的 16) -cd prototype -./build.sh --stage # 开发证书隔离构建,先验:更新器接齐、--self-check 过 -./build.sh --release # Developer ID 签名,产物 ../.build/release/WindowShade.app -cd .. && bash scripts/notarize.sh # 送公证、钉票据、Gatekeeper 核 -cd prototype && mkdir -p dist -VERSION=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" Info.plist) -ditto -c -k --sequesterRsrc --keepParent ../.build/release/WindowShade.app "dist/WindowShade-v${VERSION}.zip" -(cd dist && shasum -a 256 "WindowShade-v${VERSION}.zip" > "WindowShade-v${VERSION}.zip.sha256") -``` - -记下 zip 大小与 sha256:这就是要发布的数字。 - -### 包级门禁(`scripts/release-gate.sh`,换证书的一版要带 `--cert-change`) - -先把草稿条目插进 `site/public/appcast.xml`(放在 1.0.16 条目前)并把 TODO 填完(url、`length` = zip 的字节数、`sparkle:edSignature` 用 `sign_update` 签 zip;然后重新签整份清单),再跑: - -```sh -bash scripts/release-gate.sh prototype/dist/WindowShade-v1.0.17.zip --cert-change DQ45KFVHJ8 -``` - -默认会用 `gh` 下载 v1.0.16 的 zip 当"上一版"(要联网、`gh` 已登录)。与 1.0.16 的差别只有一处: - -| 步骤 | 1.0.16 | 1.0.17 | -| --- | --- | --- | -| 3 DR | 与上一版逐字相同 | **`--cert-change DQ45KFVHJ8`**:核 `Authority` 是 `Developer ID Application:`、`TeamIdentifier` 是 `DQ45KFVHJ8`;不比上一版的 DR | -| 7c | 无 | 清单里这一项是 `informationalUpdate` | -| 6 | 最低系统 14.0 | `LSMinimumSystemVersion` 15.0 = 清单 `15.0.0` | -| 9 | 跳过 | 仍要做:新版 `--self-check --write-sample-state <目录>`,1.0.16 的 `--self-check --read-state <目录>` 返回 0(上一版看得懂这一版的状态;脚本里这一步的结果如实记) | - -另外手动核两件事,记进证据目录:`spctl -a -vv -t exec ` 显示 `source=Notarized Developer ID`;`xcrun stapler validate ` 通过。之后各版回到"DR 与上一版逐字相同",不再带 `--cert-change`。 - -## Phase 1 · 核心窗口路径(真机,约 20 分钟) - -同 [1.0.16 runbook](v1.0.16-release-gate.md) 的 Phase 1,对象换成 Developer ID 的新包(用 `open -a` 路线启动,别用 shell 直启;跑前 `lsappinfo front` 是 loginwindow 就先解锁):单文档收起/展开、**同 App 两文档**、菜单栏路径、浅色与深色。 - -**这一版加验**: -1. **重新授权。** 新签名是新身份:辅助功能和屏幕录制都要重新打开;没授权时欢迎流程把这两项说清楚,授权后不用重启也能用。 -2. **从公证包首次打开不被拦**(把 zip 经浏览器下载一次再解压,带隔离标记,双击打开)。 -3. 本批新功能各看一眼:设置 → 高级 → 关于(导出诊断、导出/导入设置)、关掉计算器的卷帘条后 App 随之退出、音量亮度"改回用系统的提示"开关。 - -每个动作:截图 + 备注时间;说不清就记 inconclusive,不许猜成 PASS。 - -## Phase 2 · macOS 15 与 26 虚拟机回归(约 15 分钟) - -最低支持系统是 15,发版前在另外两个支持版本的虚拟机里跑核心探针(规格已定:Aaron 2026-10-16)。VM 的搭法、账号、授权见 [DEVELOPMENT.md](../../../DEVELOPMENT.md)「发版前的虚拟机回归」一节(外置 QA 盘上的 `wsqa-manual` 是 macOS 26.6.2,`wsqa-15` 是 15.6.1,先用 `./lume.sh run <名字> --storage windowshade-qa --display none` 开机)。 - -```sh -cd prototype && ./build.sh --stage # VM 回归用开发证书包(同源);Developer ID 包另在真机验 -cd .. && tests/vm/run-core-probes.sh lume@ # macOS 15.6.1 -tests/vm/run-core-probes.sh lume@ # macOS 26.6.2 -``` - -通过条件:两台各六组全过。首次已有基线:2026-10-16,macOS 26.6.2 前五组全过、browser-more 三次里一次全过(记 inconclusive);macOS 15.6.1 六组全过。这次的计时与基线相近(第一次画面变化约 170 ms、卷帘条约 390 ms);明显更慢要记下来,不当作 PASS。VM 不能代替真实硬件矩阵,本关不写"硬件矩阵通过"。 - -## Phase 3 · 更新器(约 15 分钟) - -- 在装着 1.0.16 的机器上,指向包含 1.0.17 条目的本地或预发布 appcast:应弹出"这一版要手动下载"的提示和**打开下载页**按钮,**不**尝试一键安装。 -- 在 1.0.17 上点"检查更新":显示已是最新,不崩溃、不弹假版本。 -- 设置里不应出现"回到 1.0.16"(没有自动安装过,没有备份)。 - -## Phase 4 · 判定与记录(约 5 分钟) - -通过条件:Phase 0 门禁全 PASS(含 `--cert-change`、公证核对)+ Phase 1 全 PASS(含同 App 两文档)+ Phase 2 两台 VM 各六组过 + Phase 3 行为如上。证据落 `.build/release-acceptance-<日期>/`,每条一张表:场景 / 期望 / 实际 / 证据 / 判读(pass/inconclusive/fail)。 - -## 发布日流程(门过后;Aaron 点头、Aaron 按发布) - -1. 冻结 zip + `.sha256` + 证据目录。 -2. `sign_update` 签 zip,把 草稿条目 插进 appcast 并填 1.0.17 的 url/length/`edSignature`,改 `pubDate`,**重新签整份清单**;`bash scripts/check-release-version.sh` 此时应失败(build 17 已在清单里)——这是预期,说明清单已含这一版;`release-gate.sh` 的 6、7b、7c 靠它通过。 -3. 站点:`cd site && npm run build && npm run check`;**先上传包、后发清单**。 -4. `git tag v1.0.17`(指向 Phase 0 的提交)→ `gh release create v1.0.17 … --notes-file docs/releases/v1.0.17.md` → 上传 zip 与 `.sha256` → 下载回来核对哈希。 -5. 更新下载大小的数字:README 三份"1.0.16 download"那一行改成 1.0.17 的实际大小;官网 `site/scripts/content.mjs` 里的 `facts`(中、英两处 `1.0.16 · ZIP 9.83 MB`)和 `zh-hant.json` 对应项;`notchIntro` 里"1.0.16 候选功能,尚未发布"的措辞按当时实际状态改。 -6. `docs/releases/v1.0.17.md` 去掉草稿说明;`docs/releases/README.md` 的"已发布"表补一行。 -7. 可选:先 beta 频道自用一天;分批推送见 docs/DEVELOPMENT.md 对应节。 - -## 门内不做、发布后 beta 项(如实写进发布说明/回执) - -日常使用一天、硬件矩阵、CarPlay 真人手指长按、120Hz、真手感清单。 diff --git a/docs/archive/2026-11-11/releases/v1.0.18-aaron-checklist.md b/docs/archive/2026-11-11/releases/v1.0.18-aaron-checklist.md deleted file mode 100644 index fe08c4f7..00000000 --- a/docs/archive/2026-11-11/releases/v1.0.18-aaron-checklist.md +++ /dev/null @@ -1,60 +0,0 @@ -> 归档于 2026-11-11。1.0.18 已发布,这是当时的一次性发布关文档,仅作历史记录;现行流程见 [../../../DEVELOPMENT.md](../../../DEVELOPMENT.md) 和 [../../../testing.md](../../../testing.md)。 - -# 1.0.18 你要亲手做的(清单) - -只列机器做不了的。Phase 0(构建、公证、包级门禁含 DMG)、Phase 2(macOS 15/26 虚拟机)、Phase 3(更新器)由控制端自动跑,证据在 `.build/release-acceptance-2026-10-18/`,开始前先看一眼那里没有 fail。细节与背景见 [v1.0.18-release-gate.md](v1.0.18-release-gate.md)。 - -要发布的数字(控制端填):候选(提交 a9ec92cd,1.0.18 build 18)——**zip 9,347,836 字节,sha256 `6de03040187edd2a813be5a0861c6aa7874b9c42fba4cbe9de013ed729615fec`**;DMG 10,419,510 字节,sha256 `46ec6219adde425da933ea6d4215f1c41376c5045b5fef817b0973a9fc8e10aa`。冻结的 zip、`.sha256`、DMG 与证据在 `.build/release-acceptance-2026-10-18/phase0/`。 - -## 一、发布 1.0.18(约 10 分钟) - -截图统一放 `.build/release-acceptance-2026-10-18/phase1/`,按 `场景-顺序.png` 命名;说不清就记 inconclusive,别猜成 PASS。 - -### 准备 - -- [ ] 1. 屏幕已解锁,终端跑 `lsappinfo front`。预期:前台不是 loginwindow。 -- [ ] 2. 证据目录里 Phase 0/2/3 都是 pass。预期:Phase 0 只有第 6 项 FAIL(清单还没写 build 18,发布日第 13 步补上);Phase 3 有定时检查一条 inconclusive 是预期的(发布日第 20 步你点一次看);其余有 fail 就先停。 - -### 从 1.0.17 升级与 OOBE(约 4 分钟) - -- [ ] 3. 在装着 1.0.17 的机器上,按住 Option 点菜单栏「检查更新…」,指向本地清单(控制端备好)。预期:**一键安装**,装完授权不重开。截图 `update-1.png`。 -- [ ] 4. 装完第一次打开。预期:弹一次「这一版新开了这几样」(N1),只列真变了的(没动过开关的人有刘海、实时活动、文件架、Dock 两样);点「在设置里改…」能到那一页。截图 `n1-1.png`。 -- [ ] 5. N1 关掉后再启动。预期:不再弹(只弹一次)。 - -### 默认值翻开(约 2 分钟) - -- [ ] 6. 不动任何开关,朝刘海甩一下标题栏。预期:窗口收进刘海,刘海里列得出来;点一下放回。 -- [ ] 7. 播一首歌(Music 或 Spotify)。预期:刘海出现「正在播放」,歌曲信息对。 -- [ ] 8. 连着 AirPods 或妙控鼠标看一眼。预期:「设备的电量」在刘海出现。 -- [ ] 9. 拖一个文件到屏幕边缘松手。预期:出现文件架。 -- [ ] 10. 再点一下最前面 App 的 Dock 图标。预期:这个 App 让开;再点一次回来。 -- [ ] 11. 指针停在别的 App 的 Dock 图标上。预期:翻出它的窗口预览;预览卡左上角有红黄绿,点红灯关掉一扇。 - -### 新界面各看一眼(约 2 分钟) - -- [ ] 12. 设置 → 效果页:指到「收起窗口时的动画」那一行。预期:顶上的演示带演这一行说的那件事;指别的行换别的演示;关着的开关演「关着」。截图 `explainer-1.png`。 -- [ ] 13. 八个设置页各指一行。预期:每页都有演示带,演的和行说的对得上。 -- [ ] 14. 设置侧栏搜索框打「liuhai」。预期:搜出刘海那几行,点一下跳过去闪两下。截图 `search-1.png`。 -- [ ] 15. 菜单「欢迎使用 WindowShade…」。预期:A1 先演再让你亲手双击试一下;A2 只等辅助功能;T 四段自己走。 -- [ ] 16. 系统设置里开着「减少动态效果」再打开设置。预期:演示停在关键帧,不动。 - -### 发布日流程(约 1 分钟动手,其余等命令) - -- [ ] 17. 冻结 zip、`.sha256`、DMG、证据目录。 -- [ ] 18. 用 EdDSA 私钥签 zip:`/sign_update prototype/dist/WindowShade-v1.0.18.zip`。预期:输出 `sparkle:edSignature="…"` 和 `length="…"`。 -- [ ] 19. 把 [appcast-item-1.0.18.xml](appcast-item-1.0.18.xml) 插进 `site/public/appcast.xml`(放在 1.0.17 条目前),填 url、`length`、`edSignature`,改 `pubDate`,**重新签整份清单**。预期:`bash scripts/check-release-version.sh` 此时**失败**(build 18 已在清单里)——这是对的。 -- [ ] 20. 站点:`cd site && npm run build && npm run check`。**先上传包、后发清单。** -- [ ] 21. `git tag v1.0.18 a9ec92cd`,推送标签,`gh release create v1.0.18 prototype/dist/WindowShade-v1.0.18.zip prototype/dist/WindowShade-v1.0.18.zip.sha256 prototype/dist/WindowShade-v1.0.18.dmg --notes-file docs/releases/v1.0.18.md`。 -- [ ] 22. 下载回来核哈希(zip 与 DMG 各一次)。 -- [ ] 23. 上线清单与站点;README 三份与 `site/scripts/content.mjs`、`zh-hant.json` 的下载大小数字改成 1.0.18 实际值(以 zip.txt 为准),下载段补 DMG 一句。 -- [ ] 24. 更新器看一眼:1.0.16 那台仍弹「要手动下载」(belowVersion 17);1.0.18 上点「检查更新」是「已是最新」。截图 `update-1016.png`。 - -## 二、只有真手才能验的(可另找时间,不挡发布) - -- [ ] **真手指过一遍新默认**:双指甩、文件架拖放、Dock 悬停的手感(合成事件测不出手感)。 -- [ ] **讲解带长时间播放的能耗**:开着设置页让演示循环几分钟,感觉风扇/电量(控制端只用帧间隔卡顿表量了流畅度,能耗要真机)。 -- [ ] **新装走一遍浏览器下载 DMG**: Safari 下载、打开、拖进「应用程序」(带隔离标记的第一次打开;控制端的 DMG 没经过浏览器下载)。 - -## 三、之后顺手做的 - -- 外接屏插拔(V9 尾巴)、Rectangle 共存(V4)、妙控鼠标(V6)照 1.0.17 清单(私有库) 第二节,没变化。 diff --git a/docs/archive/2026-11-11/releases/v1.0.18-plan.md b/docs/archive/2026-11-11/releases/v1.0.18-plan.md deleted file mode 100644 index 39112450..00000000 --- a/docs/archive/2026-11-11/releases/v1.0.18-plan.md +++ /dev/null @@ -1,22 +0,0 @@ -> 归档于 2026-11-11。1.0.18 已发布,这是当时的一次性发布关文档,仅作历史记录;现行流程见 [../../../DEVELOPMENT.md](../../../DEVELOPMENT.md) 和 [../../../testing.md](../../../testing.md)。 - -# 1.0.18 计划(Aaron 拍板,2026-10-17 晚) - -一周内发;机器验收过了就发,直接全推(不走 beta、不分批)。WindowShade 2 这一版不碰。设计稿以 首次打开 1.0.17 小样(私有库) 第 4 版(私有页 https://claude.ai/artifact/R2h7LCy9eQFF1GgH6kHF8u ,提交 943853c)为定稿;稿末「1.0.18 工作单」是实现清单。 - -## 范围 - -1. **默认值**:刘海主功能、刘海实时活动、Dock 悬停看窗口、文件架+点 Dock 隐藏默认开;新装和没动过开关的老用户都开(`ReleaseDefaults` 加 `ownerDecided`)。 -2. **OOBE**:三页(A1 看一遍再试一下、A2 辅助功能+屏幕录制一起问、T 再看四样),升级用户 U1(再打开一次这两项)+ N1(这一版新开了这几样,只看一次);启动时不再带 prompt 弹系统框。 -3. **整个设置的动画讲解**:共用 `SettingsExplainer`(帧数据纯逻辑+CALayer 视图+行接入),八页全做(效果、卷帘、刘海、手势、窗口浏览、快捷键、隐私、高级与实验),欢迎窗口共用同一套。 -4. **升级路径修正**:手动从旧版装上来也能看到 U1;启动时系统框与欢迎窗口不再同时出现(并入 2)。 -5. **Apple silicon 性能**:`--hitch` 卡顿表进门禁(只报不挡,证据落盘),先量热点,只改有前后数字、行为不变的地方。 -6. **1.0.17 遗留小修**:R24 剩的英文长说明、「日程」开关对齐、`short-hant.py` 漏项、NotchLeaseHostTests H11 两条既有失败、设置窗口总在最前(已在基线 be34203)。 - -## 验收(机器) - -`build.sh --check`/`--stage`;主机签名构建全套探针(Aaron 不用机器时,含刘海 20、home、habits);两台 VM 核心六组;`--hitch` 主机+VM;三语 `--settings-shots` 自查;computer-use 走一遍新装与升级 OOBE;发布关 Phase 0(`--release`、公证、`release-gate.sh`,这一版不带 `--cert-change`)。 - -## 分工 - -先做(可并行):默认值总账+升级路径+启动不弹框(A);讲解共用部件+行接入(B);性能量测与门禁(C);遗留小修(D)。B 合入后:八页各一路+欢迎窗口一路并行;最后整合构建与验收。 diff --git a/docs/archive/2026-11-11/releases/v1.0.18-release-gate.md b/docs/archive/2026-11-11/releases/v1.0.18-release-gate.md deleted file mode 100644 index edcd4c40..00000000 --- a/docs/archive/2026-11-11/releases/v1.0.18-release-gate.md +++ /dev/null @@ -1,114 +0,0 @@ -> 归档于 2026-11-11。1.0.18 已发布,这是当时的一次性发布关文档,仅作历史记录;现行流程见 [../../../DEVELOPMENT.md](../../../DEVELOPMENT.md) 和 [../../../testing.md](../../../testing.md)。 - -# 1.0.18 发布关 runbook - -用途:把 1.0.18 从「候选源码」推到「可发布」。门内全过 → 走文末「发布日流程」;任何一项 inconclusive / fail → 停,按本项目惯例记档。格式沿用 [1.0.17 runbook](v1.0.17-release-gate.md)。 - -**这一版特殊在四处**: - -1. **同一张 Developer ID 证书**(Team `DQ45KFVHJ8`,1.0.17 起不再变)。发布关第 3 步回到「DR 与上一版逐字相同」,**不带 `--cert-change`**。1.0.17 用户一键更新。 -2. **默认值翻开的十三个键**([v1.0.18-defaults.md](../../../releases/v1.0.18-defaults.md),Aaron 拍板 2026-10-17)。验收因此更重:默认开了更要跑(刘海 20、home 3、habits 7),OOBE 要真的走一遍新装与升级。 -3. **首次下载改用 DMG**(`scripts/make-dmg.sh`):Release 页挂 DMG,Sparkle 更新照旧用 zip(docs/update.md)。release-gate 多一步 `--dmg`。 -4. **OOBE 重做**(A1/A2/T/U1/N1)+设置八页讲解带+设置侧栏搜索。真机路径见 Phase 1。 - -候选源码里已完成(本 runbook 之前):`CFBundleShortVersionString 1.0.18`/`CFBundleVersion 18`;appcast 条目草稿 [appcast-item-1.0.18.xml](appcast-item-1.0.18.xml)(url、length、`edSignature` 写着 TODO;**故意不放进 `site/public/appcast.xml`**——占位条目的 url 以 TODO 开头,`check-release-version.sh` 不把它算「已发过」,所以 build 18 照样 PASS);发布说明草稿 [v1.0.18.md](../../../releases/v1.0.18.md);[docs/welcome.md](../../../welcome.md)、设计系统 §5.11/§5.14、固定词汇已跟上。**没做**:构建、签名、公证、打标签、发布。 - -**本轮(2026-10-18)已完成**(证据都在 `.build/release-acceptance-2026-10-18/`): - -- 建置闸门 `--check` 全绿;主机签名构建(`--stage`)全套 20 组探针全 PASS(`--notch` 20 项,`--dock-scenarios` 真跑过、三条环境 not_run:自动隐藏/睡眠唤醒/台前调度);三语 `--settings-shots` 各 55 张(含 A1/A2/T/U1/N1 与八页讲解带),抽查明侧栏 8 页+搜索框+讲解带。 -- 虚拟机:wsqa-manual(macOS 26.6.2)六组全 PASS,卡顿账已记 `docs/perf-ledger.md`;wsqa-15(macOS 15.6.1)六组全 PASS,`--hitch` 在来宾 GUI 服务卡死(`lsappinfo front` 空、AppleEvent 逾时)下 not_run,已记 `vm-15/hitch-not-run.txt`。 -- Phase 0:干净 worktree 检出 `a9ec92cd` → `--release`(Developer ID `DQ45KFVHJ8`)→ 公证+钉票据(`source=Notarized Developer ID`)→ zip 9,347,836 字节(sha256 `6de03040…615fec`)+ DMG 10,419,510 字节(sha256 `46ec6219…e10aa`)→ `release-gate.sh --dmg`:**1/2/3/4/5/8/8b/9/10/12 全 PASS**,只有第 6 项按预期 FAIL(清单里还没 build 18 的条目,发布日补)。 -- Phase 3:wsqa-manual 里装真 1.0.17、本地清单喂 1.0.18(测试密钥签)——清单被取到、**验签通过、认出 1.0.18 (18)**、零错误;没取 zip 符合设计(定时检查不下载,只有菜单手动点才 presentOffer)。「一键安装」留 Aaron 清单第 3 条。 -- 主机 `--hitch`:试了三次,前两次撞上 `ioreg | awk` 的 SIGPIPE bug(已修:`scripts/perf-report.sh`、`tests/e3/run-one.sh`、`tests/vm/run-in-guest.sh`),第三次在显示器已休眠(HID 闲置 370 秒)时跑,帧率掉到约 3 fps,数字不代表真实手感,**未纳入卡顿账基线**;有效基线是 wsqa-manual 那一行。要在屏幕亮着、机器闲置时重跑一次(只报不挡)。 -- computer-use 走 OOBE:机器被占时不抢指针,静态截图已覆盖五页;动态走查并入 Aaron 清单第 4、15 条。 - -**2026-10-18 已发布**:[GitHub Release v1.0.18](https://github.com/surfine/WindowShade/releases/tag/v1.0.18)(tag 指向构建提交 `a9ec92cd`);线上清单已含 1.0.18 条目并用真 EdDSA 公钥验签通过;站点已部署;Homebrew cask 已更新到 1.0.18。 - -**顺序纪律**:三份 README 与官网的「当前下载版 1.0.17」等数字,等 1.0.18 的 zip/DMG 上传 GitHub Release 之后一起改(发布日流程第 5 步);之前不部署任何 1.0.18 文案。本地 `main` 快进可以。 - -## Phase 0 · 建发布候选并过包级门禁(约 25 分钟) - -先决条件:钥匙串里有 Developer ID Application 证书(Team `DQ45KFVHJ8`),notarytool profile `windowshade-notary` 已存(DEVELOPMENT.md 第 3 步)。 - -```sh -git worktree add /tmp/ws-b18 <要发布的提交> # 标签=源码=包:必须是已提交的干净检出 -cd /tmp/ws-b18 -bash scripts/check-release-version.sh # 必须 PASS(build 18 > appcast 已发过的 17) -cd prototype -./build.sh --stage # 开发证书隔离构建,先验:更新器接齐、--self-check 过 -./build.sh --release # Developer ID 签名,产物 ../.build/release/WindowShade.app -cd .. && bash scripts/notarize.sh # 送公证、钉票据、Gatekeeper 核 -scripts/make-dmg.sh # 首次安装 DMG(先做排版模板,见下) -cd prototype && mkdir -p dist -VERSION=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" Info.plist) -ditto -c -k --sequesterRsrc --keepParent ../.build/release/WindowShade.app "dist/WindowShade-v${VERSION}.zip" -(cd dist && shasum -a 256 "WindowShade-v${VERSION}.zip" > "WindowShade-v${VERSION}.zip.sha256") -``` - -**DMG 排版模板(一次性)**:`assets/dmg/DS_Store` 还没提交。在能开 Finder 的 Mac 上跑 `scripts/make-dmg.sh --capture-template`(短暂弹 Finder 排版后把 DS_Store 提交);没有模板也会做出能用的 DMG,只是没排版。无人值守流程里放不进 Finder 自动化授权,所以这步在有屏幕的会话里做。 - -### 包级门禁(同一证书的一版,**不带 `--cert-change`**) - -先把草稿条目插进 `site/public/appcast.xml`(放在 1.0.17 条目前)并填完 TODO(url、`length` = zip 字节数、`sparkle:edSignature` 用 `sign_update` 签 zip;重新签整份清单),再跑: - -```sh -bash scripts/release-gate.sh prototype/dist/WindowShade-v1.0.18.zip --dmg prototype/dist/WindowShade-v1.0.18.dmg -``` - -与 1.0.17 的差别: - -| 步骤 | 1.0.17 | 1.0.18 | -| --- | --- | --- | -| 3 DR | `--cert-change DQ45KFVHJ8` | **回到与上一版(1.0.17 zip)逐字相同** | -| 7c | informationalUpdate | 仍有:`belowVersion=17`(1.0.16 及以前只提示手动下载) | -| 9 | 状态兼容 | 同做:1.0.17 的 `--self-check --read-state` 读得懂这一版的状态 | -| 12 | 无 | **`--dmg`**:DMG 已签名公证钉票据、挂载后恰好一个 .app 加一个指向 /Applications 的链接、build 号与 zip 一致 | - -手动核对并记证据:`spctl -a -vv -t exec ` 是 `source=Notarized Developer ID`;`xcrun stapler validate ` 通过。 - -## Phase 1 · 核心窗口路径(真机,约 20 分钟) - -同 [1.0.17 runbook](v1.0.17-release-gate.md) Phase 1 的基础四样(单文档收起/展开、同 App 两文档、菜单栏路径、浅色与深色)。**这一版加验**: - -1. **默认值翻开**:装好后不动任何开关——刘海能收窗口、实时活动出得来、文件架能拖、再点 Dock 图标让开、停在 Dock 图标看得到窗口。 -2. **OOBE 三条路各走一遍**:新装(A1 → A2 → T,A1 里真的双击练习窗口);从 1.0.17 升级(一键更新装完 → N1「这一版新开了这几样」,只列真变了的);从 1.0.16 手动装(U1「再打开一次这两项」→ N1)。 -3. **讲解带**:八个设置页各指两行,演的东西和行说的对得上;开关关着演「关着」;「减少动态效果」开着重摆。 -4. **设置侧栏搜索**:打「刘海」「liuhai」「窗口」各搜一次,跳转正确。 -5. **Dock 预览卡红黄绿**:关窗、最小化、全屏各点一次;窗口浏览面板里 ⌘W/⌘M/⌃⌘F。 -6. 启动不再弹系统授权框(全新装第一次启动只有欢迎窗口)。 - -每个动作:截图+备注时间;说不清就记 inconclusive,不许猜成 PASS。能机器做的(探针、computer-use、VM)都先机器做,剩下的列成给 Aaron 的十分钟清单(`v1.0.18-aaron-checklist.md`,随候选包一起出)。 - -## Phase 2 · macOS 15 与 26 虚拟机回归(约 15 分钟) - -```sh -cd prototype && ./build.sh --stage -cd .. && tests/vm/run-core-probes.sh lume@ # macOS 15.6.1 -tests/vm/run-core-probes.sh lume@ # macOS 26.6.2 -``` - -通过条件:两台各六组全过;计时与 1.0.17 基线相近(26.6.2:首次画面变化约 138 ms、卷帘条约 383 ms;15.6.1:233/448 ms)。明显更慢要记下来,不当作 PASS。`--hitch` 卡顿表在两台 VM 上各跑一轮(`WSQA_HITCH_ROUNDS` 可调),只报不挡。 - -## Phase 3 · 更新器(约 15 分钟) - -- 装着 1.0.17、指向含 1.0.18 条目的本地 appcast:**一键安装**,装完授权不重开(同一证书)。 -- 装着 1.0.16:仍弹「这一版要手动下载」提示+下载页按钮(belowVersion=17),不尝试一键安装。 -- 1.0.18 上点「检查更新」:已是最新。 - -## Phase 4 · 判定与记录(约 5 分钟) - -通过条件:Phase 0 门禁全 PASS(含 `--dmg`、公证核对)+ Phase 1 全 PASS(或只剩 Aaron 清单里的项且他点头)+ Phase 2 两台 VM 各六组过 + Phase 3 行为如上。证据落 `.build/release-acceptance-<日期>/`,每条一张表:场景/期望/实际/证据/判读(pass/inconclusive/fail)。 - -## 发布日流程(门过后;Aaron 点头、Aaron 按发布) - -1. 冻结 zip+`.sha256`+DMG+证据目录。 -2. `sign_update` 签 zip,把[草稿条目](appcast-item-1.0.18.xml)插进 appcast 并填 url/length/`edSignature`、改 `pubDate`,**重新签整份清单**;`check-release-version.sh` 此时应失败(build 18 已在清单里)——预期。 -3. 站点:`cd site && npm run build && npm run check`;**先上传包、后发清单**。 -4. `git tag v1.0.18` → `gh release create v1.0.18 … --notes-file docs/releases/v1.0.18.md` → 上传 zip、`.sha256` 与 DMG → 下载回来核对哈希。 -5. 下载大小数字:README 三份、官网 `site/scripts/content.mjs`(中英两处)与 `zh-hant.json` 的 1.0.17 数字改成 1.0.18 实际值;下载口径如有「ZIP」措辞的地方补 DMG 一句。 -6. `docs/releases/v1.0.18.md` 去掉草稿说明;`docs/releases/README.md` 的「已发布」表补一行。 -7. Homebrew cask 若仍分发 zip:按 DEVELOPMENT.md 更新 cask 一节。 - -## 门内不做、发布后 beta 项(如实写进发布说明/回执) - -日常使用一天、硬件矩阵、讲解带长时间播放的能耗(Instruments 量一次,数写回设计稿 E 节)、真手感清单。 diff --git a/docs/archive/2026-11-11/update-design-2026-09-29.md b/docs/archive/2026-11-11/update-design-2026-09-29.md deleted file mode 100644 index 88fedbb5..00000000 --- a/docs/archive/2026-11-11/update-design-2026-09-29.md +++ /dev/null @@ -1,906 +0,0 @@ -> 归档于 2026-11-11,原为 docs/update.md(2026-09-29 的设计稿);已被后来的实现取代,其中的文件名、“不做 Developer ID”“编译目标 14.0”等已与代码不符,仅作历史记录。 -> 现行说明见 [../../update.md](../../update.md);发布与签名步骤见 [../../DEVELOPMENT.md](../../DEVELOPMENT.md)。 - -# 应用内更新:Sparkle 负责搬运,我们在前后把关 - -2026-09-29 第二次改版。第一版推荐自己写更新器(b),理由是 Sparkle 2(a)不管授权、不管坏包。Aaron 问:能不能用 Sparkle 处理边角情况, -同时做到不丢授权、坏包不会让人没了 App、引导他把 App 装好用起来。第一次改版给出了合起来的方案;这一版按对抗审查补上了两条能绕过关的路 -(旧版在关跑完前死掉、Sparkle 续装已准备好的安装)、几处钩子时机和一个会让关永远找不到包的 bug。只是方案,没有改代码。 - -## 结论 - -- **能合,不用 fork。** 查新版、清单、EdDSA 验签、下载、解包、清隔离标记、gktool 预扫描、等 App 退出、原子交换、重新打开,全交给 Sparkle 2.10.0。 - 我们只补三件它不管的事: - - **授权**:安装前拿解开的新版和正在运行的这一版比“指定要求”(designated requirement,下称 DR),不一样就不装,改成手动安装并说清要重新授权。 - - **坏包**:他同意更新时先备份旧版、交出看护;安装前让新版试跑一次;装后看护盯着新版起来,起不来就换回。之后 7 天里连续崩两次也会自己换回,设置里还能“回到 1.0.16”。 - - **引导**:官网下载处写清三步,照顾到 14 和标准账户;App 第一次打开时,不在“应用程序”里就多一步“移到‘应用程序’”;更新前后什么都不弹,只在要他动手时开口。 -- **界面必须自己实现 `SPUUserDriver`。** Sparkle 里能在安装前否决的只有两处,都在 user driver 上:第 1 阶段做完后的 `showReadyToInstallAndRelaunch:`, - 和续装时 stage 为 `.installing` 的 `showUpdateFoundWithAppcastItem:state:reply:`。两处都只回 `.install` 或 `.skip`,**绝不回 `.dismiss`**。 - `updaterShouldRelaunchApplication:` 返回 NO、`shouldPostponeRelaunch…` 不调 block、回 `.dismiss` 都拦不住:安装器准备好以后,App 一退出就会装。 - 标准界面拿不到否决点,中文也用“您”“安装并重启应用”,不合文案规则。 -- **`.skip` 只是请求,不是否决。** 取消消息是异步发的;消息没送到而安装器听到 App 退出,照样装。所以否决后要确认 Sparkle 的安装任务真的没了, - 超时就由我们 `SMJobRemove` 掉,再放行退出。 -- **看护在他点“更新并重新打开”时就交出去,不等过关。** 关里任何一处崩溃(我们自己的代码、试跑时内存吃紧),旧版一死,Sparkle 可能装一个没过关的包,而且不重开。 - 这时只有提前交出的看护在场:没装上就重开旧版,装上了就补做 DR 比对和试跑,不过就换回。 -- **两个前提来自源码。** - - delegate 和 user driver 都拿不到解开的 `.app` 在哪,只能去 Sparkle 的内部缓存目录找。锁定版本,升级跑集成测试;找不到就不装。 - - Sparkle 没有“换回上一版”,也拒绝降级;退出后安装失败不会重开旧版,重开新版后也不看它有没有起来。备份、看护、换回都得自己写。 -- **跟第一版比,省掉的**:自定义清单、验签、下载、解压、交换、“旧进程收尾但不退出”和 `createsNewApplicationInstance`。 - Sparkle 让 App 正常退出,`applicationWillTerminate` 里的 `restoreAll()` 照常执行,也不会有两个 WindowShade 同时在跑。 -- **多出来的成本**:接入二进制框架(构建、按顺序重签、测试编译都要改);一个约三百行的看护小 App;依赖已弃用的 `SMJobSubmit`(Sparkle 自己也靠它); - 安装包变大,大小待实测;新版在 7 天内不能以旧版读不懂的方式改写停车日志和偏好。 -- **必须先处理的两件事。** - - 停掉“同一版本重新发布”:Sparkle 按 `CFBundleVersion` 认版本,换包不升 build,已装旧包的人永远收不到。 - - 开发证书 2027-06-14 到期,2027 年 5 月前续期,流程见“发布流程”。 -- 已经装了 1.0.15、1.0.16 的人不会收到任何通知(这两版不联网)。第一个带更新器的版本要靠官网和 README 一句话接住,之后在菜单里点一下就行。 - -## 核实过的事实 - -第一版和第一次改版核实过、至今成立的,加上这次对抗审查在 2.x 分支原文里确认的几条。 - -**不会碰到“仍要打开”。** App 自己下载的文件默认不带隔离标记(`LSFileQuarantineEnabled` 默认 false, -[Launch Services Keys](https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html))。 -Sparkle 装之前还会递归清一遍 `com.apple.quarantine`,macOS 14.4 起再跑 `/usr/bin/gktool scan`,把第一次打开时的检查提前做掉 -([SUPlainInstaller.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Autoupdate/SUPlainInstaller.m);本机 `man gktool` 写明用途是预热缓存)。 -Apple 仍会在第一次打开时查已知恶意内容 -([Gatekeeper and runtime protection](https://support.apple.com/guide/security/gatekeeper-and-runtime-protection-sec5599b66df/web)), -所以更新后最多看到一次“正在验证”。这是从文档推出来的,要在另一个用户账户上实测。 - -**授权跟着 DR 走。** macOS 把 DR 记进授权数据库,以后每次都检查这一版是否满足它 -([TN3127](https://developer.apple.com/documentation/technotes/tn3127-inside-code-signing-requirements))。v1.0.15 发布包的 DR: - -```text -identifier "com.windowshade.prototype" and anchor apple generic - and certificate leaf[subject.CN] = "Apple Development: <账号> ()" - and certificate 1[field.1.2.840.113635.100.6.2.1] /* exists */ -``` - -它认 bundle ID、Apple 签发和证书 CN,不认路径、文件内容和具体哪一张证书。嵌入 Sparkle 框架不改变主程序的 DR,发布关会再验一遍。 -改用 Developer ID 时 DR 一定会变(它认 Team,即 `subject.OU`),那时所有人要手动装一次、重新授权一次。 -残余风险:我们比的是“新版满足当前这一版的 DR、且 DR 字符串相同”,授权数据库里存的那条要求(csreq)读不到。当前这一版能用,说明它满足 csreq; -字符串相同时可以推出新版也满足,但没法直接验证。所以界面上不写“保证”。 - -**开发证书一年一张。** 本机唯一的签名身份是 Apple Development,团队 ``,有效期 2026-06-14 到 2027-06-14,签名没有 Apple 安全时间戳。 -“证书过期后已签名的版本仍能运行”这句 Apple 只写给了 Developer ID([Certificates](https://developer.apple.com/support/certificates/)), -所以开发证书过期后会怎样按**未知**处理。续期后 CN 会不会变,Apple 没写,只能靠发布关拦。 - -**App 能替换自己,前提是同一个 Team。** 对签名的 App,同一 Team ID 的程序可以修改它的包,不经过“App 管理”授权 -([NSUpdateSecurityPolicy](https://developer.apple.com/documentation/bundleresources/information-property-list/nsupdatesecuritypolicy))。 -所以 Sparkle 的 `Autoupdate`、`Updater.app` 和我们的看护都必须用同一张证书重签;新旧两版 Team 不同时,新版替换自己会弹系统询问或直接失败。 - -**Sparkle 怎么认包**([SUUpdateValidator.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/SUUpdateValidator.m)、 -[SUCodeSigningVerifier.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Autoupdate/SUCodeSigningVerifier.m)): - -- EdDSA 和“新版满足旧版的 DR”两项,过一项就装。EdDSA 通过时,新版的签名只需本身有效,不要求满足旧 DR,所以换了证书也会装,授权悄悄丢掉。 -- 设了 `SUVerifyUpdateBeforeExtraction=YES` 时,解压前先验 EdDSA,解开后不再比 DR。所以 **DR 这一关只能我们自己做**。 -- 换密钥的兜底只认 Developer ID 的 Team,Apple Development 签名永远过不了。 -- Sparkle 自己的安装器和 App 之间也要校验连接,要求同一个 Team 的证书。 -- 新版 `CFBundleVersion` 比旧版低就拒绝,所以“换回上一版”不能走 Sparkle。 - -**Sparkle 怎么装**([AppInstaller.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Autoupdate/AppInstaller.m)、 -[SUInstallerLauncher.m](https://github.com/sparkle-project/Sparkle/blob/2.x/InstallerLauncher/SUInstallerLauncher.m)、 -[InstallerProgressAppController.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/InstallerProgress/InstallerProgressAppController.m)): - -1. 开始解包时用 `SMJobSubmit` 提交一个临时 launchd 任务,标签是 `-sparkle-updater`。App 可写时在用户域;不可写时改到系统域,弹管理员授权框。 -2. **App 还开着时**做第 1 阶段:解压、验签、清隔离、对齐属主、登记 LaunchServices、gktool。解开的 App 放在 - `~/Library/Caches/com.windowshade.prototype/org.sparkle-project.Sparkle/Installation/<临时>/<临时>/WindowShade.app`,这是内部实现,不是 API - ([SPULocalCacheDirectory.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/SPULocalCacheDirectory.m))。 -3. 第 1 阶段做完、App 还在运行,就调用 `showReadyToInstallAndRelaunch:` - ([SPUUIBasedUpdateDriver.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/SPUUIBasedUpdateDriver.m))。回 `.install` 就装;回 `.skip` 调用 - `cancelUpdate`,只记取消、不记跳过;回 `.dismiss` 只结束这次会话,App 退出时照样装 - ([SPUCoreBasedUpdateDriver.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/SPUCoreBasedUpdateDriver.m))。 -4. **续装**:安装器已经准备好时再查一次,走的是 `showUpdateFoundWithAppcastItem:state:reply:`,`state.stage == .installing`。 - 三种回复都进 `finishInstallationWithResponse`,不会再调用 ready-to-install;这里的 `.skip` 还会写 `SUSkippedVersion` - (同一文件)。续装时 `shouldProceedWithUpdate` 也不调用([SPUBasicUpdateDriver.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/SPUBasicUpdateDriver.m))。 -5. **取消是异步的**:`cancelUpdate` 只是发出 `SPUCancelInstallation`;安装器收到才清理退出。`dismissUpdateInstallation` 只说明 App 这边的会话结束了 - ([SPUInstallerDriver.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/SPUInstallerDriver.m))。 -6. **App 死掉时**:安装器听到 App 退出就记下;第 1 阶段已做完就直接装,没做完就等做完再装。重开只由 App 发出的 `SPUResumeInstallationToStage2` 决定, - App 是崩掉的就不重开。连接断开时若还没决定完成安装,安装器会清理后退出。两者谁先到不确定,所以“崩了以后装没装”两种结局都要接。 -7. 正常路径让 App 退出:发普通的退出事件,App 的收尾照常执行。 -8. **App 退出后**:先试 `renamex_np(RENAME_SWAP)` 原子交换,失败时退回“挪开旧版、放进新版、再失败就挪回”。换下来的旧版随临时目录删掉。 - macOS 13 起,只有 `Autoupdate` 和新版的 Team 相同时才走原子交换和 gktool。 -9. `Updater.app` 用 `NSWorkspace` 重开新版,不带参数,也不看它有没有起来。**第 8 步失败时直接退出,不重开**,他会看到 App 消失。 -10. 这一段超过 0.7 秒时,Sparkle 会弹自己的进度窗(标题“Updating %@”,按钮“Cancel Update”),文字改不了。包小,大概看不到。 - -**`shouldProceedWithUpdate` 在“有新版本”之前调用**,不是在他点更新之后。返回 NO 走 abort,定时检查时他什么都看不到。所以它不能用来做需要他知道的判断。 - -**被系统挪走和只读卷。** App 从“下载”直接打开时,系统会把它挪到一个随机的只读路径里运行(App Translocation)。Apple DTS 说: -没有受支持的办法判断是不是被挪走,也拿不到原路径;用访达挪一下位置就会解除 -([App Translocation Notes](https://developer.apple.com/forums/thread/724969))。Sparkle 的判断很简单:路径含 `/AppTranslocation/`,或 -`statfs` 带 `MNT_RDONLY`,就拒绝更新([SUHost.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/SUHost.m)、SPUBasicUpdateDriver.m)。 -定时检查碰到这种情况默认不出声([Documentation](https://sparkle-project.org/documentation/))。位置问题要我们自己查、自己教。 - -**后台活动规则。** App 退出后还在跑的 helper 和 launchd 任务都算后台活动,用户可以在“登录项与扩展”里关掉; -屏幕上看得见的进程不受限([Managing ongoing background processes](https://developer.apple.com/documentation/appkit/managing-ongoing-background-processes-in-your-mac))。 -macOS 26 起,App 退出后它起的后台任务还在跑时,系统可能弹窗问 -([部署指南](https://support.apple.com/guide/deployment/manage-login-items-background-tasks-mac-depdca572563/web))。 -有第三方报告说,macOS 27 关掉后台活动后,用 `SMJobSubmit` 起的安装器在宿主退出约 5 秒后被杀 -([Squirrel.Mac #336](https://github.com/Squirrel/Squirrel.Mac/issues/336))。Sparkle 的安装器和我们的看护都是这样提交的,可能一起被杀。 - -**第一次打开被拦。** macOS 15 起不能再按住 Control 点“打开”绕过,只能去系统设置点“仍要打开”;14 上两种都行,对话框的按钮也不一样 -([Updates to runtime protection in macOS Sequoia](https://developer.apple.com/news/?id=saqachfa))。按钮只在尝试打开后大约一小时内出现, -点过以后这个 App 记为例外([mh40616](https://support.apple.com/guide/mac-help/open-a-mac-app-from-an-unknown-developer-mh40616/mac)、 -[102445](https://support.apple.com/en-us/102445))。点“仍要打开”和打开辅助功能、屏幕录制的开关都要管理员身份,标准账户要输入管理员的名字和密码。 -中文系统设置里的名字 14、15、26 叫“隐私与安全性”,27 叫“隐私与安全” -(Apple 中文页 [15](https://support.apple.com/zh-cn/guide/mac-help/mh40616/15.0/mac/15.0)、[27](https://support.apple.com/zh-cn/guide/mac-help/mh40616/27/mac/27)), -所以引导里写“隐私与安全”,各版本都对得上。本机 macOS 27.0 的 `CoreServicesUIAgent` 里有一组专给开发证书签名 App 的拦截文案, -标题大意是“供……用于个人测试目的”。我们的包会不会命中,只能实测。 - -## 分工 - -| 环节 | 谁做 | 怎么做 | -| --- | --- | --- | -| 按时检查 | Sparkle | `SUScheduledCheckInterval`,每天或每周;App 在哪里都照常检查,开发版不启动更新器 | -| 清单 | Sparkle | `https://windowshade.aaronlau.me/appcast.xml`,清单本身签名(`SURequireSignedFeed`);Intel 实验版(1.0.21 起)读同目录的 `appcast-intel.xml`,规则相同 | -| 选版本 | Sparkle + 我们 | Sparkle 按版本、系统、芯片、分批推送挑;定时检查时我们用 `bestValidUpdateInAppcast:forUpdater:` 去掉 `refused.json` 里的版本 | -| 界面 | 我们 | 自己的 `SPUUserDriver`:菜单那一项和更新小窗 | -| 能不能一键更新 | 我们 | 打开小窗时判断位置、写权限、卷、空间、别的用户、`refused.json`;不能就说原因,不回 `.install` | -| 备份、写日志、交出看护 | 我们 | 他点“更新并重新打开”后、回 `.install` 前 | -| 下载、验 EdDSA、解压 | Sparkle | `SUVerifyUpdateBeforeExtraction=YES`:EdDSA 不过就不解开 | -| 清隔离、gktool、登记 | Sparkle | 第 1 阶段,App 还开着 | -| **安装前的关** | 我们 | `showReadyToInstallAndRelaunch:`,以及续装时 `.installing` 的 `showUpdateFound`:找到解开的 App,比 DR、试跑,过了才回 `.install` | -| 否决到底 | 我们 | 回 `.skip` 后确认 `-sparkle-updater` 任务没了,超时自己 `SMJobRemove` | -| 退出、交换、重开 | Sparkle | App 正常退出,原子交换,重开新版 | -| 装后看护 | 我们 | 旧版一退出就接手:没装上就开旧版;装了没过关的包就补关;新版起不来就换回 | -| 看护被杀的兜底 | 我们 | 每一版启动时先读更新日志,补完或换回;7 天内连续崩两次自己换回 | -| 回到上一版 | 我们 | 设置里 7 天内一键换回,用旧版自带的看护 | -| 位置引导 | 我们 | 第一次打开时多一步“移到‘应用程序’” | - -## G1 不丢授权 - -1. **发布关**(发布前,见“发布流程”第 4 步):把要发的 zip 解开,新版的 DR 字符串必须和上一版发布包的 DR **完全相同**。 - 不同就停下,只有有意换证书时才走“换证书的一版”。 -2. **安装前比 DR**(客户端,在安装前的关里): - - 取正在运行这一版的 DR:`SecCodeCopySelf` → `SecCodeCopyDesignatedRequirement`; - - 对解开的新版做 `SecStaticCodeCheckValidityWithErrors`,参数是 `kSecCSCheckAllArchitectures | kSecCSStrictValidate | kSecCSCheckNestedCode`,要求用上面那个 DR; - - 再取新版自己的 DR,`SecRequirementCopyString` 后和旧 DR 字符串逐字相同。 - 前一项保证这一次授权不丢,后一项保证下一次更新也还能比。任一项不过就回 `.skip`,说“这一版要手动安装……”。 - 这里默认不把证书过期算作失败([considerExpiration](https://developer.apple.com/documentation/security/seccsflags/considerexpiration)),和授权数据库的判断一致。 -3. **装后自查**:新版启动后,用 `SecCodeCheckValidity(self, 日志里的 oldDR)` 再确认一次,并比 DR 字符串。不过就记 `abnormal`,换回。 - 正常流程下这一步不会失败,它接的是“关没跑成 Sparkle 就装了”那种情况。 -4. **换证书的一版**(续期后 CN 变了,或改用 Developer ID):清单里标成 `sparkle:informationalUpdate`,配 `belowVersion=<换证书后第一个 build>`。 - Sparkle 只给下载链接,不会一键跨过 DR 变化([Publishing](https://sparkle-project.org/documentation/publishing/))。 - EdDSA 密钥这一版不能同时换,Sparkle 规定两样一次只能换一样([Documentation](https://sparkle-project.org/documentation/))。 -5. **授权还是丢了**(比如 macOS 自己的问题):不换回,因为换回也找不回授权。新版启动时比较更新前记下的授权状态;少了哪一项, - 就打开欢迎窗口的授权那一步,换成“再打开一次这两项”那组文案。 - -## G2 不让人没了 App - -### 更新日志 - -`~/Library/Application Support/WindowShade/Update/journal.json`,每次先写临时文件再原子改名。App、看护、新旧两版都读写它: - -```json -{ - "from": { "version": "1.0.16", "build": 16 }, - "to": { "version": "1.0.17", "build": 17 }, - "appPath": "/Applications/WindowShade.app", - "oldDR": "identifier \"com.windowshade.prototype\" and anchor apple generic and …", - "backup": "~/Library/Application Support/WindowShade/Previous/WindowShade-1.0.16-16.zip", - "permissionsBefore": { "accessibility": true, "screenRecording": true }, - "phase": "started", - "startedAt": "2026-10-06T10:00:00+08:00", - "oldPID": 812, - "launches": [ { "build": 17, "pid": 905, "cleanExit": false, "runSeconds": 0 } ] -} -``` - -`phase` 主线:`started`(已备份、已交出看护,交给 Sparkle 下载)→ `gating`(关在跑)→ `approved`(过关)→ `launched`(新版进了 `main`)→ `healthy`。 -旁路:`cancelled`、`refused`、`installFailed`、`restoring`、`restored`、`rollbackRequested`。 - -同目录另有两个文件: - -- `refused.json`:换回过或试跑没过的 build,每条带原因(`crashed`、`selfCheckFailed`、`drChanged`)。它是“拒绝过的版本”的唯一记录, - 不靠 Sparkle 的 `SUSkippedVersion`。 -- `Previous/backup.json`:备份的版本号、build、DR、SHA-256,全部从备份里的 App 读出,不推算。“回到 x.y.z”用它。 - -### 能不能一键更新 - -定时检查照常做,App 在哪里都一样;有新版本时菜单那一项变成“更新到 1.0.17…”。他打开小窗时判断,不能一键更新就说原因、给能走通的那一步: - -| 条件 | 不满足时 | -| --- | --- | -| 不在被系统挪走的路径里,卷不是只读的,在 `/Applications` 或 `~/Applications` 里 | “先把 WindowShade 移到‘应用程序’文件夹……”,按钮 **移到“应用程序”** | -| App 所在卷 `getattrlist` 报告 `VOL_CAP_INT_RENAME_SWAP`,且和 `~/Library/Caches` 在同一个卷 | 同上:多半是装在外接磁盘上 | -| App 所在文件夹和 App 本身当前用户都能写 | “要这台 Mac 的管理员来更新。”,按钮 **好** | -| 没有别的用户开着 WindowShade(按进程表查同一路径、不同 uid) | “这台 Mac 上还有别人开着 WindowShade……” | -| 磁盘剩余空间至少是安装包的 4 倍(备份、下载、解开、交换) | “Mac 上的空间不够……” | -| 这个 build 不在 `refused.json` 里 | 只有手动检查会看到它:“1.0.17 上次在这台 Mac 上没能正常打开……”,按钮 **再试一次** / 稍后再说 | - -- 不走 Sparkle 的管理员授权:系统域安装时解开的 App 不在我们的缓存目录,关就看不到;以 root 装的包,用户级的看护也换不回。 - 标准账户里“下载新版手动装”同样写不进 `/Applications`,所以不给“打开下载页”这条死路。 -- 别的用户开着旧版时不更新:他的旧进程会从换过的包里懒加载 `Duo.metallib` 和本地化文件,可能崩。 -- 这些判断不放进 `shouldProceedWithUpdate`:它在“有新版本”之前调用,返回 NO 会让定时检查永远不出声。 - -### 他点“更新并重新打开”之后 - -在 `showUpdateFound` 的回复处理里、回 `.install` 之前,按顺序做: - -1. **再判断一次**上表。 -2. **备份**:`ditto -c -k --keepParent` 把当前的 App 压成 zip,先写成 `Previous/….zip.partial`。压成 zip,系统就不会把它当成第二个 WindowShade 登记。 - 写完立刻解到临时目录,`codesign --verify --strict` 并确认 DR 等于正在运行的这一版,过了才算备份成功;不过就不更新。 - 旧的那份备份到 `approved` 才被替换,所以被关拦下或他取消时,“回到 1.0.16”那份还在。 -3. **交出看护**:把正在运行这一版里的 `Contents/Helpers/WindowShadeUpdateGuard.app` 拷到 `Application Support/WindowShade/Update/` - (换包时它不能在包里;用的是已知能跑的旧版里那一份),验签名和我们同一个 Team。先 `SMJobRemove` 同名标签,再用 `SMJobSubmit` 在用户域提交。 - 任务字典照抄 Sparkle 的:`RunAtLoad`、`LaunchOnlyOnce`,不写 plist 文件,标签 `com.windowshade.prototype.update-guard`,参数是日志路径。 -4. **写日志** `phase=started`,记下旧 DR、旧 pid、授权状态、开始时间。 -5. 回 `.install`。 - -`stage` 是 `.downloaded` 时同样走这五步。`stage` 是 `.installing`(续装)时,先走这五步,再跑下面的安装前的关,过了才回 `.install`,否则回 `.skip`。 -续装的 `.skip` 会写 `SUSkippedVersion`;这不影响判断,因为我们只认 `refused.json`,他手动检查时我们会绕过 Sparkle 的跳过记录再问一次。 - -`.dismiss`(“稍后再说”)只在 `stage` 是 `.notDownloaded` 或 `.downloaded` 时用:这时安装器还没起来,不会装。 - -### 安装前的关 - -Sparkle 调用 `showReadyToInstallAndRelaunch:`(或续装时进入上一节)时跑,写 `phase=gating`,整个过程几秒: - -1. **找到解开的 App**:在 `…/org.sparkle-project.Sparkle/Installation/` 下,只看**创建时间**晚于 `startedAt` 的第一层临时目录, - 往里找 `CFBundleIdentifier` 等于我们的、`CFBundleVersion` 等于这次版本的 `.app`,必须正好一个。 - 不看 `.app` 的修改时间:解包保留归档里的时间,也就是构建时间,一定早于 `startedAt`。 - 找不到或不止一个就否决。这样 Sparkle 改了目录结构时,结果是“不装”,不是“不检查就装”。 -2. **不在 `refused.json` 里**,位置和上表仍然成立(续装时这一步是第一次做)。 -3. **比 DR**:见 G1 第 2 步。 -4. **看系统版本**:新版的 `LSMinimumSystemVersion` 不高于本机。 -5. **试跑**:以超时 10 秒运行 `WindowShade.app/Contents/MacOS/WindowShade --self-check`,要求返回 0,输出里带上这次的 build 号。 - Sparkle 已经清掉隔离标记,直接运行没有障碍。超时重试一次;返回非零、框架缺失才记进 `refused.json`,偶发的超时只是这次不装。 - `--self-check` 是长期约定,每一版都得支持:写在 `main.swift` 最前面,不建窗口,不碰授权,不联网,不写文件; - 只让系统加载全部链接的框架(包括 Sparkle 和 `libswift_Concurrency`),载入 `Duo.metallib`,读一遍资源,就退出。 -6. **放行**:备份从 `.partial` 改成正式名并更新 `backup.json`,写 `phase=approved`,回 `.install`。Sparkle 让 App 正常退出,交换,重开新版。 - -**否决**:回 `.skip`,写 `refused` 或 `cancelled`,然后确认 Sparkle 真的停了: - -1. 等 `dismissUpdateInstallation`; -2. 查用户域里 `-sparkle-updater` 任务还在不在(`SMJobCopyDictionary`),最多等 5 秒; -3. 还在就 `SMJobRemove` 这个标签(同一用户域,我们删得掉),再查一次; -4. 确认没了,才 `SMJobRemove` 看护、删掉 `.partial` 备份、放行挂起的退出。 - -第 1 步不过只说“没能更新到 1.0.17,稍后再试。”;DR 不对说“这一版要手动安装……”;试跑没过说“1.0.17 在这台 Mac 上没能正常打开,所以没有更新。”。 - -### 退出请求 - -`applicationShouldTerminate`: - -- **下载中**:调用下载的取消 block,写 `cancelled`,立即 `.terminateNow`。不挡注销和关机。 -- **解包开始到结论**(几秒):`.terminateLater`。安装器第 1 阶段做完后,App 一退出它就会装,所以这时的退出先记下,到关那一步直接否决、确认 Sparkle 停了,再放行。 -- **`approved` 之后**:这是 Sparkle 发起的退出,`.terminateNow`。 - -这只防得住正常退出。崩溃、SIGKILL、强制退出由看护接。 - -### 看护 - -`prototype/UpdateGuard/`(**路径已变:实际在 `prototype/Watchdog/`**,见文末「实现和上文不一样的地方」),一个不带 Dock 图标的小 App(`LSUIElement`),约三百行,用我们的证书签名。它在 `started` 就已经在跑,做完立刻退出: - -1. **旧版还开着**:盯旧 pid(kqueue `NOTE_EXIT`),同时读日志。日志变成 `cancelled` 或 `refused`、旧版干净退出,它就退出。 -2. **旧版退出了**:从这一刻起显示和 WindowShade 相同的菜单栏图标,直到交给新版或旧版为止。屏幕上看得见的进程不受后台活动限制,菜单栏图标也不会空出来。 - 然后按退出时的 `phase` 分: - - **`started`、`gating`(关还没跑完)**:旧版是崩掉的,或者我们自己的代码崩了。等 `-sparkle-updater` 任务结束,最多 120 秒。 - - 已装 App 的版本没变:Sparkle 没装。写 `installFailed`,打开旧版。 - - 版本变了:这是**没过关的安装**。对已装的新版补做 DR 比对和试跑(规则同关);过了按下面 `approved` 继续,不过就换回。 - - **`approved`**:等已装 App 的 `CFBundleVersion` 变成新版,同时看安装任务还在不在,最多 120 秒。 - 任务没了、版本也没变,是交换失败:写 `installFailed`,打开旧版。 -3. **等新版起来**:新版 pid 20 秒还没出现在日志里,说明 Sparkle 没重开,看护自己打开。 -4. **等 `healthy`**,最多 60 秒。下面几种情况换回: - - 新版被信号结束,或退出时没写 `cleanExit`; - - 新版写了 `abnormal`; - - 60 秒到了。卡住的新版先发 SIGTERM,5 秒后 SIGKILL;它收起的窗口由旧版启动时的停车日志救回。 - 新版写了 `cleanExit` 才退出的(他自己按了退出、授权后系统要求重新打开、`--after-move` 重开),不算失败;之后又出现同一版的新 pid 就接着盯,没出现就退出, - 剩下的由新版下次启动接着判断。 -5. **换回**: - - 先写 `refused.json` 和 `phase=restoring`,再动文件。否则交换后、写日志前掉电,旧版会把日志当成“没装上”安静清掉,坏版本还会被再次提醒。 - - 把备份解到和 App 同一个卷的临时目录(`url(for: .itemReplacementDirectory, …, appropriateFor:)`),核对 SHA-256,确认 DR 等于 `oldDR`(换回也不能丢授权); - - `renamex_np(RENAME_SWAP)` 换回,删掉换下来的坏版,写 `restored`,打开旧版。 -6. 拿到 `healthy` 就写完日志、收起图标、退出。 - -看护打开 App 一律按 `appPath` 这个 URL(`NSWorkspace.openApplication(at:)`),不按 bundle ID:“下载”里的原件、缓存里解开的副本、换回用的临时副本, -同一个 bundle ID 都可能被 LaunchServices 选中。换回的代码在 `prototype/Update/UpdateRestore.swift`,App 和看护编译同一份。 - -### 新版启动 - -在 `main.swift` 里,`--self-check` 之后、`NSApplication` 之前,先读更新日志: - -- **我是 `to` 那一版**:在 `launches` 里记一条,写 `launched`。 - - 日志停在 `started` 或 `gating`,而看护不在:关没跑完就被装上了,看护也没了。这时 DR 自查必做,不过就交给旧版的看护换回。 - - 看护不在、这个 build 已经有一次启动没走到 `healthy`:直接交给旧版的看护换回,不再往下跑。所以新版只要能跑到 `main`,就能换回。 - - 否则照常启动。启动完成、稳定运行 10 秒后做 G1 第 3 步的自查:过了写 `healthy`,不过写 `abnormal` 并退出。 - - 写 `healthy` 后 `SMJobRemove` 看护任务,比较 `permissionsBefore`,少了就走 G1 第 5 步。 -- **我是 `from` 那一版**: - - 读到 `restored` 或 `installFailed`:说一次对应的话,然后清掉。 - - 读到 `restoring`:换回做到一半,由这一版用自带的 `UpdateRestore` 补完(它本来就是旧版),再说一次。 - - 读到 `started`、`gating`、`approved`、`cancelled`,而我还在、看护也不在:这次没装上,安静地清掉。 -- `healthy` 只看 App 是否正常启动、稳定运行,不看授权:没授权的人也能写 `healthy`。授权另走 G1 第 5 步。 - -“交给旧版的看护换回”,指用 `Update/` 里那份从旧版拷出来的看护,带 `--restore` 提交。发起回退的代码来自已知能跑的那一版;那份不在时才用新版自带的 `UpdateRestore`。 - -### 写了 `healthy` 以后又崩 - -`healthy` 只要求空闲 10 秒稳定,而 WindowShade 的高风险路径(收起窗口、看一眼、事件监听)都要他动手才触发,多数坏包能过这 10 秒。 -第二次启动(比如登录时)必崩的包,他连设置里的“回到 1.0.16”都够不着。所以更新后 7 天内: - -- `main` 里、`NSApplication` 之前,在 `launches` 记下这次启动;`applicationWillTerminate` 写 `cleanExit`,运行满 30 分钟也记为正常。 -- `to` 这一版**连续两次**既没 `cleanExit` 也没跑满 30 分钟,第三次启动时就在 `main` 里交给旧版的看护换回,不经过界面。旧版启动后说一次“已经换回”。 - -### 回到上一版 - -更新成功后 7 天内,设置里有“回到 1.0.16”(版本号读 `backup.json`)。点了以后:写 `rollbackRequested`,提交旧版的看护,App 正常退出; -看护按上面第 5 步换回,把 1.0.17 记进 `refused.json`,打开 1.0.16。以后出了更大版本号的修复版,照常提醒。 -他自己要的换回不再弹话。7 天后,或者下一次更新成功时,删掉旧备份。 - -### 换回以后旧版要读得懂 - -停车日志在 `prototype/Recovery/Journal.swift`,带 `schemaVersion: 3`,UserDefaults 也新旧共用。新版改了格式,换回后的旧版可能救不回收起的窗口, -那也是“没了能用的 App”。所以定为硬约束: - -- 新版不得以上一版读不懂的方式改写停车日志和偏好。要改格式就双写,旧格式至少保留到再下一版。 -- 发布关加一项:上一版读得懂这一版写下的状态(见“发布流程”第 4.9 步)。 - -## G3 引导 - -### 官网:点“下载 Mac 版”后在原地展开三步 - -> 2026-10-17 注:下面是**未公证版本**(1.0.16 及以前)的稿子。1.0.17 起 App 已公证,第 3 步“仍要打开”与尾句“还没公证”都不再适用,README 与官网已去掉;1.0.17 发布后这一节的表按“拖进应用程序 → 双击打开”两步改写。 - -- 现在按钮链到 GitHub Releases 页(`site/scripts/chrome.mjs:6`),那一页还列着“Source code (zip)”,新人容易点错。 - 改成直接下载 App 的 zip:官网构建时按 `Info.plist` 的版本号拼出直链。 -- 页面不跳走,在按钮下方展开下面的内容;“怎么装?”那条问答改成指向这里(`site/scripts/content.mjs` 223、437 行)。 -- 每一步配一张实拍的裁切截图,圈出按钮。截图在干净的测试账户上拍,系统取 14、15、26、27,中英文、浅色深色各一套。 -- 版本、大小、系统要求、SHA-256、源代码链接放在按钮旁边。 -- README 和 README_CN 的“下载”一节换成同样的三步。 - -| | 中文 | English | -| --- | --- | --- | -| 标题 | 三步装好 | Install in three steps | -| 1 | 把 WindowShade 拖进“应用程序”文件夹。 | Drag WindowShade into your Applications folder. | -| 2 | 双击打开它。系统说没能打开时,先关掉这个提示。 | Open it. When macOS says it can’t open it, close that message. | -| 3 | 打开“系统设置”→“隐私与安全”,往下翻,点“仍要打开”,再按提示输入密码。 | Open System Settings → Privacy & Security, scroll down, click Open Anyway, then enter your password when asked. | -| 尾句 | WindowShade 还没交给 Apple 检查(这一步叫公证),所以第一次打开时系统会拦一下。以后在菜单里就能更新。 | WindowShade isn’t notarized by Apple yet, so macOS stops it the first time. After that, you update it from the menu. | -| 已有旧版 | 已经装了旧版:把新版拖进“应用程序”,选“替换”。辅助功能和屏幕录制不用重新打开。 | Already have an older version? Drag the new one into Applications and choose Replace. Accessibility and Screen Recording stay on. | -| 装不上(折叠) | 没看到“仍要打开”:先双击 WindowShade,再回来找。系统说“已损坏”:用 Safari 重新下载,双击解开压缩包。用的是标准账户:“仍要打开”和授权都要管理员输入名字和密码。 | No Open Anyway button? Open WindowShade once, then look again. “Damaged”? Download again in Safari and double-click the ZIP. On a standard account, an administrator needs to enter their name and password. | - -- 第 2 步不点名按钮:14 上的对话框和 15 以后不一样。14 上按住 Control 点“打开”也行,但不写进三步,免得分叉。 -- “已有旧版”那句只对发布关放行的版本成立(DR 与上一版逐字相同),第一个带更新器的版本一定满足。1.0.15、1.0.16 不联网,只能靠这句接住。 -- 不写终端命令、`xattr`,也不教人关掉安全检查。 -- 不提供 Homebrew:官方 cask 从 2026 年 9 月起不收过不了 Gatekeeper 的包([Homebrew 5.0.0](https://brew.sh/2025/11/12/homebrew-5.0.0/)、 - [Acceptable Casks](https://docs.brew.sh/Acceptable-Casks)),自建 tap 要删隔离标记,正是 Homebrew 在收紧的做法。 -- 更新只用 zip(Sparkle 照旧)。首次下载另给一个 DMG(`scripts/make-dmg.sh`:已签名、公证、钉票据,里面是已钉票据的 App +「应用程序」快捷方式),两者是同一份 build;DMG 不进 appcast。DMG 拖进「应用程序」的做法比 zip 少一步“解压”,zip 仍留在 Release 页给不想用 DMG 的人。 -- 接入 Sparkle 后包里有了符号链接,用不保留符号链接的第三方工具解压,会得到“已损坏”。所以写“双击解开”,并列为实测项。 - -### App 第一次打开:需要时多一步“移到‘应用程序’” - -**什么时候出现**:不满足“能不能一键更新”表里前两行,即路径含 `/AppTranslocation/`、卷只读、不在 `/Applications` 或 `~/Applications`、或不在系统卷上。 -这一步排在欢迎窗口三步前面,用同一个舞台,动画是图标落进“应用程序”文件夹;欢迎窗口本身还是三步。 -授权和“登录时打开”都放在移好之后:否则登录项会指向“下载”。 - -| 元素 | 文案 | -| --- | --- | -| 标题 | 放进“应用程序”文件夹 | -| 导语 | Mac 上的 App 都放在这里。放进去以后,才能在菜单里更新 WindowShade。 | -| 按钮 | **移到“应用程序”**(默认)/ 跳过 | -| 那里已有旧版 | 副句:“应用程序”里的 WindowShade 1.0.14 会换成这一版。 | -| 那里已有同版或更新的版本 | “应用程序”里已经有 WindowShade 1.0.17。按钮:**打开它** | -| 没能移过去 | 没能移过去。把 WindowShade 拖进“应用程序”文件夹,再从那里打开它。按钮:**在访达中显示** | - -点“移到‘应用程序’”后做四件事: - -1. **复制**:复制正在运行的这份(`Bundle.main.bundleURL`,被系统挪走时也读得到)。先复制到目标卷的临时目录,清掉 `com.apple.quarantine`, - 验签名和 DR 与自己相同,再改名放进去。目标是 `/Applications`,写不进去(标准账户)就放 `~/Applications`,没有就建一个。两处都能一键更新。 -2. **替换旧版**:目标处有旧版且正在运行时,先请它退出;用 `renamex_np` 换掉,换下来的旧版移到废纸篓。 -3. **重新打开**:从新位置打开,参数 `--after-move`,当前进程退出;新进程的欢迎窗口从第 1 步接着走。 -4. **原件不动**:“下载”里的那份原件先不动。 - - 被系统挪走时,拿不到原路径(DTS 说没有受支持的办法); - - 碰“下载”文件夹可能触发系统的“访问‘下载’文件夹”询问,那比留一份原件更糟。 - - 列为实测项:挪原件不会触发询问的话,再改成把原件移到废纸篓。 - - 他以后误开原件时,这一步会说“‘应用程序’里已经有 WindowShade 1.0.17”,并替他打开那一份。 - -点“跳过”后不再追问。定时检查照常,有新版本时菜单那一项照样变成“更新到 1.0.17…”,点开后落到“先把 WindowShade 移到‘应用程序’文件夹……”, -按钮同样是“移到‘应用程序’”。不在“应用程序”里不会变成永远不出声。 -这合 lost-notes.md(原 direction.md) 的“点提示就替他做成那一下”。不接 LetsMove 库,只借它的流程([PFMoveApplication.m](https://github.com/potionfactory/LetsMove/blob/master/PFMoveApplication.m))。 - -### 授权那一步和更新怎么接 - -- 欢迎窗口不问更新的事。 -- Info.plist 显式写 `SUEnableAutomaticChecks`,delegate 的 `updaterShouldPromptForPermissionToCheckForUpdates:` 返回 NO:Sparkle 不会在第二次启动时弹窗问。 -- 当前用户是标准账户时,授权页导语下多一句:“打开这两项时,要输入管理员的名字和密码。” -- 授权页(第 3 步)同时是“更新后授权不在了”时的落点: - -| 情况 | 标题 | 导语 | -| --- | --- | --- | -| 更新或手动装了新版后缺授权 | 再打开一次这两项 | 装好新版本后,系统要你重新打开辅助功能和屏幕录制。 | -| 从系统设置回来 10 秒还是没授权(常驻小字) | — | 开关开着却没用?在列表里选中 WindowShade,点“−”删掉,再回来点“去授权”。 | - -- 更新后第一次启动不重放欢迎窗口:“看过引导”存在 UserDefaults 里,跟着 bundle ID 走,替换 App 不影响它。 - -### 更新前后他看到什么 - -有新版本不算“卡住”:刘海不开口,不弹窗,不加红点,只是菜单里那一项换个说法。 - -1. 菜单栏菜单和应用菜单里“检查更新…”变成“更新到 1.0.17…”。 -2. 点它,打开更新小窗:版本、改动最多三条、“更新前,窗口会先恢复原样。”,按钮“更新并重新打开 / 稍后再说 / 跳过这一版”。 - 不能一键更新时,按钮换成对应的那一个。 -3. 点“更新并重新打开”后,小窗里依次显示: - - 正在下载…(4 MB 级别,几秒); - - 正在准备…(解压、Sparkle 第 1 阶段、我们的关,几秒); - - 正在重新打开… -4. 收起、收进刘海的窗口恢复原样。菜单栏图标由看护接着显示,新版起来后交回,不会空出来。系统可能显示一次自己的“正在验证”。 -5. 之后什么都不弹。设置里“当前版本 1.0.17”那一行,7 天内多出“看更新记录”和“回到 1.0.16”。 - -只有下面几种情况会开口,而且都在更新小窗或授权页里:没装上、换回了、这一版要手动装、缺授权、要他先做一步(移位置、找管理员、腾空间)。 - -## Sparkle 的接法 - -### Info.plist - -| 键 | 值 | 为什么 | -| --- | --- | --- | -| `SUFeedURL` | `https://windowshade.aaronlau.me/appcast.xml`(Intel 版 `…/appcast-intel.xml`,`build.sh` 按 `$ARCH` 写) | 官网是 Cloudflare Pages 静态站;开发版不写,更新器就不启动 | -| `SUPublicEDKey` | `generate_keys` 生成的公钥 | EdDSA 必填 | -| `SUVerifyUpdateBeforeExtraction` | YES | EdDSA 不过就不解开;DR 由我们的关来比 | -| `SURequireSignedFeed` | YES | 清单被改也不认(2.9 起);签法接入时照文档核对 | -| `SUEnableAutomaticChecks` | 按“要 Aaron 定的”第 1 条 | 显式写上,Sparkle 就不会自己弹窗问 | -| `SUScheduledCheckInterval` | 86400 | 设置里可改为每周 | -| `SUAllowsAutomaticUpdates`、`SUAutomaticallyUpdate` | NO | 没有“退出时静默装”这条绕过关的路;静默安装可能发生在注销时,那时没人看着 | -| `SUEnableSystemProfiling` | NO | 不发系统信息 | - -不需要 `SUEnableInstallerLauncherService` 等 XPC 键:App 没开沙盒,默认都是 NO([Sandboxing](https://sparkle-project.org/documentation/sandboxing/))。 - -### 自己的 `SPUUserDriver`(`prototype/Update/SparkleBridge.swift`) - -16 个必选方法,全部列出([SPUUserDriver.h](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/SPUUserDriver.h))。带 acknowledgement 的必须调用,否则 Sparkle 的会话不会结束: - -| 方法 | 我们做什么 | -| --- | --- | -| `showUpdatePermissionRequest:reply:` | 不出界面,按设置应答(理论上不会被调用) | -| `showUserInitiatedUpdateCheckWithCancellation:` | 小窗显示“正在检查…” | -| `showUpdateFoundWithAppcastItem:state:reply:` | 定时检查:只改菜单那一项,`reply` 留到他打开小窗时再给;手动检查:直接打开小窗。`.installing` 时先过关。`informationOnlyUpdate` 的条目显示“这一版要手动安装……” | -| `showUpdateReleaseNotesWithDownloadData:` | 不用(改动说明写在清单的 `` 里),不出界面 | -| `showUpdateReleaseNotesFailedToDownloadWithError:` | 不出界面 | -| `showUpdateNotFoundWithError:acknowledgement:` | 手动检查时显示“已经是最新版本。”;立即应答 | -| `showUpdaterError:acknowledgement:` | 手动检查时按错误码映射到我们的句子;定时检查只写日志;立即应答 | -| `showDownloadInitiatedWithCancellation:` | “正在下载…”;取消 block 留给退出请求用 | -| `showDownloadDidReceiveExpectedContentLength:`、`showDownloadDidReceiveDataOfLength:` | 进度 | -| `showDownloadDidStartExtractingUpdate`、`showExtractionReceivedProgress:` | “正在准备…”;从这里起退出请求先挂起 | -| `showReadyToInstallAndRelaunch:` | **安装前的关**,只回 `.install` 或 `.skip` | -| `showInstallingUpdateWithApplicationTerminated:retryTerminatingApplication:` | “正在重新打开…”;App 没退出时调用重试 | -| `showUpdateInstalledAndRelaunched:acknowledgement:` | 不出界面,立即应答 | -| `showUpdateInFocus` | 把小窗提到前面 | -| `dismissUpdateInstallation` | 关小窗;否决时接着确认安装任务没了 | - -### `SPUUpdaterDelegate` - -| 方法 | 用法 | -| --- | --- | -| `feedURLStringForUpdater:` | 平时用官网;上次因网络出错失败时,换成 GitHub Release 附件里的同一份 `appcast.xml`(清单签了名,放哪里都一样) | -| `updaterShouldPromptForPermissionToCheckForUpdates:` | NO | -| `bestValidUpdateInAppcast:forUpdater:` | 定时检查时,最好的那一版在 `refused.json` 里就返回 `SUAppcastItem.emptyAppcastItem`;手动检查(我们发起前记一个标记)不过滤 | -| `updater:shouldProceedWithUpdate:updateCheck:error:` | 返回 YES,只写日志。它在“有新版本”之前调用、续装时不调用,不能当关 | -| `updater:willInstallUpdate:` | 写日志 | -| `updater:didAbortWithError:`、`updater:didFinishUpdateCycleForUpdateCheck:error:` | 复原菜单那一项,写日志 | -| `allowedChannelsForUpdater:` | 设置里没有入口;Aaron 自己用 `defaults write` 打开 `beta` 频道,先用一版再推给所有人 | - -**有意不用的钩子**: -- `updaterShouldRelaunchApplication:` 和 `updater:shouldPostponeRelaunchForUpdate:untilInvokingBlock:`:拦不住,退出时照样装。 -- `updater:willInstallUpdateOnQuit:immediateInstallationBlock:`:只用于静默自动更新,我们关掉了。 - -`SPUUpdater` 上设 `userAgentString = "WindowShade/1.0.17"`,`sendsSystemProfile = false`。 - -## 会改的文件 - -| 文件 | 改什么 | -| --- | --- | -| `prototype/Update/UpdateController.swift`(新) | 状态、设置读写、菜单文字、“能不能一键更新”;不依赖 Sparkle | -| `prototype/Update/SparkleBridge.swift`(新) | 整个文件包在 `#if canImport(Sparkle)` 里:`SPUUpdater`、delegate、`SPUUserDriver`,只转发给别的文件 | -| `prototype/Update/UpdateGate.swift`(新) | 找解开的 App、比 DR、试跑、备份、交出看护、否决后确认安装任务没了 | -| `prototype/Update/UpdateJournal.swift`(新) | 更新日志、`refused.json`、`backup.json`、启动时的恢复规则、连续崩溃计数;看护也编译它 | -| `prototype/Update/UpdateRestore.swift`(新) | 解备份、验 DR、交换、打开;看护也编译它 | -| `prototype/Update/InstallLocation.swift`(新) | 判断位置和卷,移到“应用程序” | -| `prototype/Update/UpdateWindow.swift`(新) | 更新小窗 | -| `prototype/UpdateGuard/main.swift`(新) | 看护小 App,单独编译,不进主程序 | -| `prototype/main.swift` | 最前面处理 `--self-check`;接着读更新日志、记启动 | -| `prototype/WindowShade.swift` | 加 `applicationShouldTerminate`(按上面三段);`applicationWillTerminate` 写 `cleanExit`;稳定 10 秒后写 `healthy` | -| `prototype/Recovery/Journal.swift` | 不改格式;加注释写明双写约束 | -| `prototype/App/MenuBarController.swift`、`prototype/App/StandardMenu.swift` | “关于 WindowShade”下面加“检查更新…” | -| `prototype/App/Preferences.swift` | “权限与启动”页“启动”下面加“更新”一组 | -| `prototype/App/Welcome.swift`、`docs/welcome.md` | 需要时的“放进‘应用程序’文件夹”一步;标准账户那一句;授权页的更新后文案 | -| `prototype/Info.plist` | 上表的 `SU*` 键(`SUFeedURL` 由 `build.sh --stage` 写入) | -| `prototype/build.sh` | 见下一节 | -| `scripts/fetch-sparkle.sh`(新) | 下载固定版本 2.10.0 的 `Sparkle-2.10.0.tar.xz`,核对写死的 SHA-256(接入时填),解到 `.build/sparkle/2.10.0/`,包括框架和 `generate_keys`、`sign_update` | -| `scripts/release-gate.sh`(新) | 发布关,见“发布流程” | -| `scripts/make-appcast.sh`(新) | `sign_update` 签 zip,写 `site/public/appcast.xml` 的新条目,再给清单签名 | -| `site/public/appcast.xml`(新)、`site/scripts/build.mjs`、`site/scripts/check.mjs` | 发布清单;`_headers` 给 `/appcast.xml` 加 `Cache-Control: public, max-age=300`;检查版本、系统要求、芯片和 Info.plist 一致 | -| `site/scripts/chrome.mjs`、`site/scripts/content.mjs` | 直链下载、三步安装、“已有旧版”那句、问答“会联网吗?” | -| `README.md`、`README_CN.md` | 三步安装和“已有旧版”那句;“隐私与安全性”改成“隐私与安全” | -| `docs/copy-guide.md` | 固定词汇,见“文案” | -| `docs/DEVELOPMENT.md` | 发布流程、密钥、续期、升级 Sparkle;模块结构里加 `Update/`、`UpdateGuard/` | -| `tests/UpdateTests.swift`、`tests/run-update-tests.sh`、`tests/run-update-integration.sh`(新) | 见“验收” | - -Sparkle 框架不放进仓库:每次升级都会让 git 历史多出几 MB 二进制;靠固定版本和 SHA-256 保证每次拿到同一份。 -接入 Sparkle 的只有 `SparkleBridge.swift`,其余逻辑都不依赖它,现有编整套生产源码的测试脚本不用加框架路径。这一点要实测。 -日常 `./build.sh` 出来的开发版不写 `SUFeedURL`,更新器不启动,不会被线上版本换掉。 - -## build.sh 怎么改 - -1. **拿框架**:`--check` 以外的模式都先跑 `scripts/fetch-sparkle.sh`(已有就跳过)。`--check` 找得到框架就带 `-F`,找不到就靠 `canImport` 跳过。 -2. **收集源文件**:`collect_sources` 加 `-path ./UpdateGuard -prune`。 -3. **编译主程序**:加 `-F "$SPARKLE_DIR" -framework Sparkle -Xlinker -rpath -Xlinker @executable_path/../Frameworks`,另加 `-framework Security`。 -4. **编译看护**: - ```sh - swiftc -target "$ARCH-apple-macosx14.0" -O -o "$WORK/WindowShadeUpdateGuard" \ - "$WORK/UpdateGuard/main.swift" "$WORK/Update/UpdateJournal.swift" "$WORK/Update/UpdateRestore.swift" \ - -framework Foundation -framework AppKit -framework Security -framework ServiceManagement - ``` - 包成 `WindowShadeUpdateGuard.app`(`LSUIElement=YES`,带菜单栏图标资源),放进 `Contents/Helpers/`,这是 Apple 给辅助程序定的位置 - ([Placing content in a bundle](https://developer.apple.com/documentation/bundleresources/placing-content-in-a-bundle))。 -5. **放框架**:`ditto` 放进 `Contents/Frameworks/Sparkle.framework`(`ditto` 保留符号链接),然后: - - 删掉 `Versions/B/XPCServices`; - - 只留发布架构(`lipo -thin`)和 `en`、`zh_CN` 两个 lproj; - - 记下前后大小,写进发布说明的草稿。 -6. **签名**:从里往外逐个签,全部用同一个身份,不用 `--deep`([Sandboxing](https://sparkle-project.org/documentation/sandboxing/)、 - [Creating distribution-signed code for macOS](https://developer.apple.com/documentation/xcode/creating-distribution-signed-code-for-the-mac)): - ```sh - FW="$APP/Contents/Frameworks/Sparkle.framework" - codesign -f -s "$IDENTITY" -o runtime "$FW/Versions/B/Autoupdate" - codesign -f -s "$IDENTITY" -o runtime "$FW/Versions/B/Updater.app" - codesign -f -s "$IDENTITY" -o runtime "$FW" - codesign -f -s "$IDENTITY" -o runtime -i com.windowshade.prototype.update-guard \ - "$APP/Contents/Helpers/WindowShadeUpdateGuard.app" - codesign -f -s "$IDENTITY" "$APP" # 主程序照旧:不加新标志,标识符不变 - codesign --verify --deep --strict "$APP" - ``` - 现在只签最外层(第 166 行),要改成上面这样。主程序不加 hardened runtime:DR 不受影响,但这次不改已经发出去的行为。 -7. **`--stage` 额外检查**:写入 `SUFeedURL`;`otool -L` 确认链接了 Sparkle;`codesign -dv` 确认几处嵌套代码的 TeamIdentifier 相同; - `Info.plist` 里的 `SUPublicEDKey` 要等于仓库里记下的那个。 - -## 发布流程(写进 docs/DEVELOPMENT.md) - -1. **每个公开的包都升 `CFBundleVersion`。** 不再移动已发布的 tag,不再 `--clobber`。 - `CFBundleVersion` 用日期制 `YYYYMMDD.NN`(`NN` 是当天的第几个包,从 `01` 数);对外版本号 `CFBundleShortVersionString` 只在小版本有功能变化时动。 - 只能用「数字与点」:连字号会让 Sparkle 把同一天的包判成同一个版本(证据见 `tests/run-build-version-tests.sh`)。 - 同一个对外版本重发包,只动日期 build,tag 用 `v<对外版本>.<当天第几个>`(例如 `v1.0.21.2`)。 -2. `./build.sh --stage`,跑回归检查。 -3. 打包:仍用 `ditto -c -k --sequesterRsrc --keepParent`,它保留框架里的符号链接。 -4. **发布关** `scripts/release-gate.sh dist/WindowShade-v<版本>.zip`。检查的是要发出去的这个 zip,不是构建目录;有一项不过就停下: - 1. 用 `gh release download` 取上一版发布包,读出它的 DR。 - 2. 把新 zip 解到临时目录,里面只有一个 `WindowShade.app`,`codesign --verify --deep --strict` 通过。 - 3. 新版的 DR 和上一版逐字相同,`codesign --verify -R="<上一版 DR>"` 通过。只有加了 `--cert-change` 才允许不同,这时这一版必须走“换证书的一版”。 - 4. `--self-check` 返回 0,输出里有这次的 build 号。 - 5. `CFBundleVersion` 大于上一版。 - 6. `LSMinimumSystemVersion` 和清单的 `minimumSystemVersion` 按版本号比相等(先补齐成三段再比:`14.0` 和 `14.0.0` 相等)。系统版本不够的话 App 根本打不开,我们的代码一行都跑不到。 - 7. `lipo -archs` 和清单里的 `hardwareRequirements` 一致:arm64 清单必须写 `arm64`,否则 Intel Mac 会收到一个打不开的版本。 - 1.0.21 起 Intel 实验版另有 `appcast-intel.xml`:包是 `x86_64`、条目不写 `hardwareRequirements`(Sparkle 只认 `arm64`),两份清单互不指向对方的 zip。 - 8. 链接了 Sparkle,`SUPublicEDKey`、`SUFeedURL` 没变,`Contents/Helpers/WindowShadeUpdateGuard.app` 在且签名同 Team。 - 9. **上一版读得懂这一版的状态**:新版 `--self-check --write-sample-state <目录>` 写一份停车日志和偏好,上一版 `--self-check --read-state <目录>` 返回 0。 - 第一个带更新器的版本起支持这两个参数。 -5. `gh release create` 上传 zip 和 `.sha256`,再 `curl -L` 下载回来,核对 SHA-256。 -6. `scripts/make-appcast.sh <版本>`:`sign_update` 签 zip,把新条目写进 `site/public/appcast.xml`(保留最近三条),再给整个清单签名。 - 改动说明取自 `docs/releases/v<版本>.md` 开头最多三行,直接写进 ``。然后 `npm run deploy`(它会先 build 和 check), - 最后 `curl` 一次线上的清单。顺序是先上传包、后发清单;反过来的话,他会先看到新版本却下载不到。 -7. **先走测试频道**:条目先带 `beta` 发一次,Aaron 自己装上用一天,再去掉频道标记重发清单。 -8. **分批推送**:条目带 `sparkle:phasedRolloutInterval` 86400,定时检查分 7 天推完,手动检查不受限 - ([Publishing](https://sparkle-project.org/documentation/publishing/))。有坏包时,第一天只会碰到约七分之一的人。 -9. **撤回一版**:从清单删掉那一条再部署。已经装上的人用“回到 1.0.16”,或者等更大版本号的修复版。 - -条目的样子(写法接入时照 Publishing 文档核对): - -```xml - - 1.0.17 - Tue, 06 Oct 2026 10:00:00 +0800 - 17 - 1.0.17 - 14.0.0 - arm64 - 86400 - - - -``` - -**EdDSA 密钥**:`generate_keys` 只跑一次,私钥存登录钥匙串,另导出一份加密的离线备份,永不进仓库。私钥丢了,Sparkle 在 Apple Development 签名下没有兜底, -所有人要手动装一次带新公钥的版本。换密钥要单独发一版,这一版证书不能同时换。 - -**证书续期**(2027 年 5 月前做): -1. 在同一个账号下申请新的 Apple Development 证书。钥匙串里两张同名证书会让 `codesign` 报身份不唯一, - `WINDOWSHADE_CODESIGN_IDENTITY` 改用新证书的 SHA-1。 -2. `--stage` 后跑发布关。DR 逐字相同,就照常发;不同,就按“换证书的一版”发: - - 清单里的 `informationalUpdate` 配 `belowVersion`; - - 发布说明写明要手动安装、重新授权; - - README 的三步不变,“已有旧版”那句这一版要改成“要重新打开辅助功能和屏幕录制”。 -3. 确认新证书发的第一版在测试账户上授权还在,再删旧证书。 - -**升级 Sparkle**: -1. 改 `fetch-sparkle.sh` 里的版本号和 SHA-256。 -2. 读发布说明,留意安装器、缓存目录、续装和取消流程的改动。 -3. 跑 `tests/run-update-integration.sh`。关找不到解开的 App 时,结果是“不装”,但这样发出去就等于没法更新,所以不过不发。 - -## 设置 - -“权限与启动”页,“启动”下面加一组“更新”: - -- **自动检查更新**:开关。说明:“有新版本时在菜单里告诉你,不会自己装。” -- **检查频率**:每天 / 每周,默认每天。自动检查关着时不可选。 -- **当前版本 1.0.17**,旁边一个按钮 **检查更新**;结果就写在这一行。 -- 更新后 7 天内,这一行下面多两项: - - 链接 **看更新记录**; - - **回到 1.0.16**,说明“新版本用着不对,可以换回刚才那一版。” - -## 隐私:检查时发出什么 - -现在的 WindowShade 不联网,更新检查会是它第一个网络请求: - -- **检查**:一次 HTTPS GET,发往 windowshade.aaronlau.me。网络出错时,下次改发 github.com。 - - User-Agent 只写 `WindowShade/1.0.17`,去掉 Sparkle 默认附带的 Sparkle 版本; - - 不发系统信息,没有查询参数,没有安装编号; - - 分批推送的分组号在本机随机生成,不发出去。 - - 服务器能看到的只有网络地址和版本号。 -- **下载**:发往 GitHub 和它跳转到的下载服务器,同样不带我们的标识。Sparkle 下载用系统默认的网络会话, - 系统可能在本机缓存里留下这些请求的记录,这一点改不了。 -- **不发的**:窗口画面、窗口标题、使用记录、崩溃计数。没有安装编号,也就数不出有多少人在用;这是有意的。 -- **关掉自动检查**:关掉“自动检查更新”后,只在他点“检查更新…”时联网。 -- **官网**:官网“你的窗口,只留在你的 Mac 上”仍然成立,问答里加一条“会联网吗?”。 - -## 文案 - -| 场景 | 文案 | -| --- | --- | -| 菜单,平时 | 检查更新… | -| 菜单,有新版本 | 更新到 1.0.17… | -| 更新小窗 | 标题“WindowShade 1.0.17”;“你现在用的是 1.0.16。”;改动最多三条;链接“看完整更新记录” | -| 小窗里的提醒 | 更新前,窗口会先恢复原样。 | -| 小窗按钮 | **更新并重新打开** / 稍后再说 / 跳过这一版 | -| 进行中 | 正在检查… / 正在下载… / 正在准备… / 正在重新打开… | -| 手动检查,没有新版本 | 已经是最新版本。 | -| 手动检查失败 | 没能检查更新,稍后再试。 | -| 下载、验签失败,或关找不到解开的 App | 没能更新到 1.0.17,稍后再试。 | -| 空间不够 | Mac 上的空间不够,没能更新。 | -| 试跑没过 | 1.0.17 在这台 Mac 上没能正常打开,所以没有更新。 | -| 手动检查到上次没过的版本 | 1.0.17 上次在这台 Mac 上没能正常打开。按钮:**再试一次** / 稍后再说 | -| DR 变了或 `informationalUpdate` | 这一版要手动安装。装好后,要重新打开辅助功能和屏幕录制。按钮:**打开下载页** | -| 不在“应用程序”里(含被系统挪走、只读卷、外接磁盘) | 先把 WindowShade 移到“应用程序”文件夹,才能更新。按钮:**移到“应用程序”** | -| 当前账户写不进去 | 要这台 Mac 的管理员来更新。按钮:**好** | -| 别的用户开着 | 这台 Mac 上还有别人开着 WindowShade,等他退出后再更新。按钮:**好** | -| 退出后没装上 | 没能更新到 1.0.17,还在用 1.0.16。 | -| 新版没起来或连续崩溃,已换回 | 1.0.17 没能正常打开,已经换回 1.0.16。按钮:**好** / 反馈问题 | -| 标准账户,授权页 | 打开这两项时,要输入管理员的名字和密码。 | - -- “打开下载页”固定打开官网下载处,不用清单里的地址。 -- “反馈问题”打开 GitHub Issues 的新建页,不附带任何数据。 -- “好”只用在纯告知的话上。 -- 不写“这一版不会再提醒你”:手动检查仍会列出它。界面上也不写“保证不丢授权”(copy-guide 第 6 条)。 - -`docs/copy-guide.md` 固定词汇加: - -| 概念 | 用词 | 不要用 | -| --- | --- | --- | -| 找新版本 | **检查更新…**(菜单)/ **检查更新**(设置里的按钮) | 检查升级、Check for Updates | -| 有新版本时菜单那一项 | **更新到 1.0.17…** | 新版本可用!、立即升级 | -| 装新版本 | **更新并重新打开**;暂时不装 **稍后再说**;不要这一版 **跳过这一版**;上次没过的再装 **再试一次** | 安装并重启、以后提醒我、强制更新 | -| 换回上一版 | **回到 1.0.16** | 回滚、降级、rollback | -| 设置 | **自动检查更新**;**检查频率:每天 / 每周** | 自动升级、更新通道 | -| 把 App 放进“应用程序”文件夹 | 标题 **放进“应用程序”文件夹**;按钮 **移到“应用程序”** | 安装到应用程序目录、迁移、Move to Applications | -| 系统第一次拦下时的面板和按钮 | 照抄系统:**隐私与安全**、**仍要打开** | 绕过、关闭 Gatekeeper、信任开发者、隐私与安全性 | -| 公证 | 第一次出现时写 **交给 Apple 检查(这一步叫公证)** | notarize、Apple 认证 | -| 每一版改了什么 | **更新记录** | 发行说明、changelog、新功能介绍 | -| 需要管理员 | **这台 Mac 的管理员**;**管理员的名字和密码** | 管理员权限、提权、sudo | - -## 出错时谁来接 - -| 情况 | 谁接 | 结果 | -| --- | --- | --- | -| 定时检查连不上 | Sparkle | 不出声,下次再查;下次改查 GitHub 上的同一份清单 | -| 手动检查连不上 | Sparkle → 我们的界面 | “没能检查更新,稍后再试。” | -| 清单被篡改 | Sparkle(签名清单) | 不认;手动检查时同上 | -| 下载中断、包被改、EdDSA 不对 | Sparkle | 不解开;“没能更新到 1.0.17,稍后再试。” | -| 发版时误用了别的证书 | 发布关 | 发不出去 | -| 误用别的证书的包漏发了 | 安装前的关(DR) | 不装,说“这一版要手动安装……”,授权不动 | -| 有意换证书 | 清单 `informationalUpdate` | 只给下载页,说清要重新授权 | -| 只有 EdDSA 私钥泄露 | 安装前的关 | 对方没有证书私钥,DR 过不了,不装 | -| 包里缺框架、系统版本不够、一启动就崩 | 发布关试跑;漏发了由安装前的试跑拦下 | 不装,记为坏版本 | -| 试跑偶发超时 | 关 | 重试一次;仍超时只是这次不装,不记坏版本 | -| 续装已准备好的安装 | `showUpdateFound`(`.installing`)里的同一道关 | 过了才装,不过回 `.skip` | -| 回了 `.skip` 但取消消息没送到 | 否决到底 | 确认安装任务没了,超时 `SMJobRemove`,再放行退出 | -| 关跑到一半时他点退出、注销 | `applicationShouldTerminate` | 下载中:取消并立即退出;解包到结论:挂起,否决后再放行 | -| 关跑完前旧版崩了(含我们的代码崩、试跑时内存吃紧) | 已交出的看护 | 没装上就开旧版;装上了就补 DR 和试跑,不过就换回 | -| 试跑能过、正常启动后才崩 | 看护 | 换回,旧版说一次,记为坏版本 | -| 新版卡住不动 | 看护(60 秒) | 结束新版,换回;它收起的窗口由旧版启动时救回 | -| 新版自己干净退出(他按了退出、授权后重开、移位置后重开) | 看护看 `cleanExit` | 不算失败,接着盯或交给新版下次启动 | -| 写了 `healthy` 后第二次启动才崩 | 新版 `main` 里的连续崩溃计数 | 7 天内连续两次没正常结束,交给旧版的看护换回 | -| 新版能用但有毛病 | 他自己 | 设置里“回到 1.0.16”;我们撤回清单、发修复版 | -| Sparkle 退出后交换失败 | Sparkle 保住旧版;看护开旧版 | “没能更新到 1.0.17,还在用 1.0.16。” | -| Sparkle 没重开新版 | 看护(20 秒) | 按路径打开 | -| 看护换回到一半掉电 | 日志先写 `restoring` 和 `refused.json` 再交换 | 旧版启动时补完;坏版本不再被定时提醒 | -| 看护被杀(注销、关机、后台活动被关) | 下一次启动的那一版 | 按日志补完或换回;新版第二次没走到 `healthy` 就交给旧版的看护换回 | -| 看护和 Sparkle 安装器一起被杀 | 他再打开 WindowShade | 交换是原子的,`/Applications` 里总有一版;打开的那一版按日志收尾 | -| 看护被杀,同时新版连 `main` 都进不去 | 没有自动兜底 | 只能重新下载;官网始终留着上一版。靠发布关、安装前试跑、测试频道和分批推送把概率压低 | -| 新旧两版 Team 不同时新版要换回自己 | 不会发生 | 换 Team 必然 DR 变,发布关和安装前的关都会拦;换证书的一版只给下载页 | -| 被系统挪走、只读卷、外接磁盘、不在“应用程序”里 | 小窗 | 不更新,引导“移到‘应用程序’” | -| 标准账户,App 在 `/Applications` | 小窗 | 不走管理员授权,“要这台 Mac 的管理员来更新。” | -| 别的用户开着 WindowShade | 小窗 | 等他退出后再更新 | -| 空间不够 | 小窗 | 不更新 | -| Sparkle 拒绝降级 | 我们的换回 | 换回不经过 Sparkle | -| 换回过的版本又出现在清单里 | `bestValidUpdateInAppcast` | 定时检查不提醒;手动检查说明原因、可以再试;更大版本号的照常提醒 | -| Sparkle 升级后改了缓存目录 | 关找不到解开的 App | 不装;升级时的集成测试先拦住 | -| 换回后旧版读不懂新版写的状态 | 发布关 4.9 和双写约束 | 发不出去 | -| 更新后授权少了 | 新版启动时比较 | 不换回;打开授权页,用“再打开一次这两项” | -| 更新前收起、收进刘海的窗口 | `applicationWillTerminate` 的 `restoreAll()`;崩溃时由停车日志兜底 | 恢复原样 | -| 开发证书过期 | 我们 | 2027 年 5 月前续期;过期后的行为未知 | - -## 验收 - -**本地隔离验证**(`tests/run-update-integration.sh`,要签名身份,先 `./build.sh --stage`;不联网、不链接 Sparkle、不动已装的 App): -在临时目录里用看护自己的 `--store` 跑一遍真东西—— - -- **自检**:`WindowShade --self-check` 返回 `build= ok`。 -- **状态迁移**:`--self-check --write-sample-state DIR` 写出一份样例状态(恢复日志 + 偏好 + 更新日志), - 再用 `--read-state DIR` 读回来;读得懂就说明「换回后的旧版还认这些文件」。 -- **换回(回退)**:造一个「已经装上来的坏版」(build +1、带一个记号文件)和一份真备份 zip, - 让看护 `--restore` 真换回来:装着的包要变回备份那一版、记号文件消失、store 记 `restored`、 - `refused.json` 记下坏版、`guard.log` 有 `restored`。 -- **坏包**:把备份的 SHA-256 改坏再换一次:要记 `restoreFailed`、装着的包一动不动、 - `refused.json` 撤掉那一条(没换回就不算拒绝过)。 - -2026-09-30 在 1.0.16 / build 16 的签名构建上跑过:13 通过 / 0 失败。 - -**纯逻辑测试**(`tests/run-update-tests.sh`,不联网、不链接 Sparkle、不动已装的 App): -- 日志每个 `phase` 下“我是新版 / 我是旧版 / 看护在不在”的恢复决定;看护的决策表(输入:旧 pid 退出时的 phase、版本、pid、`cleanExit`、`healthy`、超时 → 动作)。 -- 连续崩溃计数:两次不干净结束才换回;一次干净退出或跑满 30 分钟就清零;7 天后不再计。 -- 位置和卷判断:路径含 `/AppTranslocation/`、只读卷、不在“应用程序”里、不可写、不支持 RENAME_SWAP、和缓存不在同一卷。 -- 在假的缓存目录树里找解开的 App:零个、一个、两个、版本不对、第一层目录创建时间太早。**`.app` 的修改时间一律设成比 `startedAt` 早**,照实际解包的样子。 -- 用临时签名的假 App 测 DR:相同通过,不同拒绝,只“满足”但字符串不同也拒绝。 -- 在临时目录里测备份(`.partial` 到 `approved` 才替换、校验不过就不更新)、交换、换回(先写 `restoring` 再交换)、SHA-256 不对时拒绝换回。 -- `refused.json` 的过滤:定时检查过滤,手动检查不过滤。 -- 版本号规范化比较:`14.0` 等于 `14.0.0`。 - -**集成测试**(`tests/run-update-integration.sh`,发布机上跑,要签名身份和 Sparkle 工具;升级 Sparkle 时必跑): -- 用测试 bundle ID 和测试密钥构建 N、N+1 两版,本机提供清单。本机测试清单要满足 Sparkle 的哪些要求,接入时核对。 -- 逐项确认: - - `showReadyToInstallAndRelaunch:` 一定被调用,关能找到解开的 App; - - 回 `.skip` 后安装任务消失,App 退出,已装的包没变; - - 让 `.skip` 的取消不生效(测试版里跳过 `cancelUpdate`),否决到底会 `SMJobRemove` 掉安装任务,已装的包没变; - - 回 `.install` 后装上,看护拿到 `healthy` 就退出; - - 在关里 `kill -9` 旧版:两种结局(装了 / 没装)都能被看护接住,最后开着的是过关的那一版; - - 第 1 阶段做完后不回复、重开 App 再检查,走续装路径,关照样跑; - - 装一个启动 3 秒后崩的测试版,会被换回; - - 装一个卡住的测试版,60 秒后被换回; - - 装一个第二次启动才崩的测试版,第三次启动时被换回; - - 新版起来后自己退出(写 `cleanExit`),不被换回; - - 在 `.install` 后给 App 包加 `uchg`,让交换失败,看护会打开旧版。 - -**另一个用户账户上的真机测试**(第一次应用内更新之前做;系统取 14、15、26、27): - -1. 用 Safari 和 Chrome 各下载一次、打开,截下实际出现的对话框。27 上重点看会不会出现“供……用于个人测试目的”,显示的是谁的名字。 -2. 从“下载”打开时出现“放进‘应用程序’文件夹”;移过去后: - - 从“应用程序”重新打开,系统不再拦; - - 授权和登录项都指向 `/Applications`; - - 看系统会不会询问访问“下载”文件夹,决定能不能把原件移到废纸篓。 -3. 标准账户:点“仍要打开”和打开授权时要管理员的名字和密码;移到 `~/Applications` 后能一键更新;`/Applications` 里的 App 显示“要这台 Mac 的管理员来更新。”。 -4. 从 1.0.16 拖入替换成第一个带更新器的版本,授权还在。 -5. 从 N 更新到 N+1,确认以下几点: - - 辅助功能和屏幕录制仍然有效,没有出现“仍要打开”; - - 系统的“正在验证”最多出现一次; - - 登录项仍有效,菜单栏只有一个图标且没有空出来,收起的窗口都恢复了; - - 看 Sparkle 的进度窗出不出现; - - 看会不会冒出“已添加后台项目”或“已添加登录项”的通知; - - 看屏幕录制的定期询问会不会出现。 -6. 看护换回时,“App 管理”会不会拦(它和 App 同一个 Team,按文档应该不拦)。 -7. 在 27 上关掉 WindowShade 的后台活动:Sparkle 能不能装完;看护显示菜单栏图标后能不能活到新版记 `healthy`;在 26 上看会不会弹后台任务窗。 -8. 中断:强退旧版(下载中、关跑到一半、交换前);强退看护;更新中途注销;换回中途强退看护。下次打开都能收尾。 -9. 快速切换用户:另一个账户开着 WindowShade 时,这个账户不更新。 -10. 用另一张证书签一个包,模拟换证书:关拦下并提示手动安装;手动装上后,授权页的“再打开一次这两项”和“−”那句能带他把授权找回来。 -11. 用“归档实用工具”和一个第三方解压工具分别解开 zip,看签名是否完整。 -12. 实测装进 Sparkle 后安装包的大小。 - -## 剩下的风险 - -- **看护被杀,同时新版连 `main` 都进不去**:没有自动兜底,只能重新下载。 - 靠这几样压低概率:发布关试跑发出去的 zip、安装前在他的 Mac 上再试跑一次、编译目标 14.0 由编译器查 API 版本、测试频道、分批推送。 -- **看护和 Sparkle 安装器一起被杀**:两者都是 `SMJobSubmit` 提交的,macOS 27 关掉后台活动时可能一起被杀。交换是原子的,`/Applications` 里总有一版, - 但没人重开,他会看到 App 消失,要自己再打开。看护显示菜单栏图标是为了算“看得见”,能不能躲过要实测。 - 没选 `SMAppService.agent`:它能活过注销和掉电,但会出“已添加后台项目”通知,和 lost-notes.md(原 direction.md) 的“只在卡住时开口”冲突。 -- **依赖 Sparkle 的内部缓存目录和续装、取消流程**:锁定版本,升级跑集成测试,找不到就不装。 -- **`SMJobSubmit` 已被 Apple 标为弃用**([文档](https://developer.apple.com/documentation/servicemanagement/smjobsubmit(_:_:_:_:))):Sparkle 至今靠它,我们和它同进退。 -- **DR 只能间接证明授权不丢**:授权数据库里存的要求读不到,见“核实过的事实”。 -- **Sparkle 自己的进度窗**文字是英文或它的翻译,不合文案规则;只在交换超过 0.7 秒时出现。 -- **开发证书**:可能被吊销,过期后的行为未知,macOS 27 可能对它显示“个人测试”。长期解法是 Developer ID 加公证, - 到时用 `informationalUpdate` 引导所有人手动装一次、重新授权一次。 -- **EdDSA 私钥和证书私钥同时泄露**:不在这次范围内。 - -## 实现和上文不一样的地方(2026-09-29) - -上文是设计;落地时下面几处改了,以这里为准。 - -- **文件位置**:没有 `prototype/Update/` 和 `prototype/UpdateGuard/`。App 一侧是 `prototype/App/Updater*.swift` - (`UpdaterSparkle.swift` 是唯一接 Sparkle 的一层,`UpdaterSystem.swift` 放 DR、备份、换回、launchd),纯逻辑是 `prototype/Core/Update*.swift`, - 看护是 `prototype/Watchdog/`(`main.swift` 和它自己的一份菜单栏图标 `GuardIcon.swift`)。看护编 `Watchdog/*.swift` 加 - `Core/Update*.swift`、`App/UpdaterSystem.swift`、`App/UpdaterCopy.swift`,不编 App 里别的文件。测试是 `tests/UpdateTests.swift`。 -- **Sparkle 放进了仓库**:`prototype/Vendor/Sparkle.framework`(2.10.0,核对过 SHA-256,已删 XPCServices,约 2.6 MB),没有 `scripts/fetch-sparkle.sh`。 - 嵌入时除了 XPCServices,还删 `Headers`、`PrivateHeaders`、`Modules`;本地化留 `Base`、`en`、`zh_CN` 三份。升级流程写在 docs/DEVELOPMENT.md。 -- **看护等旧版**:第一段(旧版还开着)用 DispatchSource 的进程源(即 kqueue `NOTE_EXIT`)等旧 pid,用 `Update/` 目录的文件源等日志变化, - 不轮询;后面几段各有上限(最多约三分钟),仍每 0.5 秒看一次安装任务和日志。 -- **否决后看护不自己走**:旧版还开着时,日志变成 `cancelled` 或 `refused`,看护不退出;App 确认 Sparkle 的安装任务没了才 `SMJobRemove` 它, - 删不掉就一直留着。旧版在 `cancelled` / `refused` 时退出,看护照样等安装任务结束:没装上就安静退出(他自己退的,不重开旧版), - 顺手丢掉 `.partial`、放回另存的日志;装上了,`refused` 直接换回,`cancelled` 补做 DR 比对和试跑,不过就换回。 -- **补关不盖新版的状态**:看护补完关只把 `started`、`gating`、`cancelled` 改成 `approved`;新版同时写下的 `launched`、`healthy` 不动。 - 新版在 `launched` 或 `approved` 时都会做 10 秒后的自查、写 `healthy`。补关里只有“通过”和“试跑偶发超时”放行,其余结论都换回。 -- **换回没做成**:加了终态 `restoreFailed`(备份缺失、SHA-256 或 DR 不对、交换失败)。撤掉 `refused.json` 里这一条,打开装着的那一版; - 它读到 `restoreFailed` 就照常运行,说一次“没能换回 1.0.16,还在用 1.0.17。”(按钮 **好** / 反馈问题),然后清掉日志和备份。 - 新版在 `main` 里要交出去换回之前,先看备份文件在、名字对得上 from 那一版;不对就直接走这条,不交出去,免得“启动→退出”循环。 -- **位置判断拆成两行**:“不在‘应用程序’里(含被系统挪走、只读卷)”给 **移到“应用程序”**;在“应用程序”里但卷不支持交换、或和缓存不在同一个卷 - (home 在外接磁盘上),移过去也没用,所以不进欢迎窗口,更新小窗说“这台 Mac 上没法在菜单里更新 WindowShade。到下载页下载新版, - 拖进“应用程序”文件夹替换原来那一份。”,按钮 **打开下载页** / 稍后再说。 -- **移到“应用程序”的两条保护**:那里已有的一份不比自己旧,就打开它,不移(欢迎窗口和更新小窗都这样);那里已有的包签名要求和自己不同,不替换, - 按“没能移过去”处理。标准账户放进 `~/Applications` 时,`/Applications` 里的旧版不动,副句也不说“会换成这一版”。 -- **签名变了而换回**:旧版说的是“这一版要手动安装。装好后,要重新打开辅助功能和屏幕录制。”(按钮 **打开下载页** / 稍后再说), - 不说“没能正常打开”。 -- **下载中退出**:Sparkle 的安装任务已经提交(解包已开始、消息还没到)时,按“解包到结论”那一段处理:挂起退出、否决、确认任务没了再放行。 -- **Sparkle 在关里或过关后报错、收掉会话**:不再停在 gating / approved。关里的直接按否决收尾;过关后的每 3 秒看一次安装任务,没了、 - 或 30 秒还没让 App 退出,就删掉任务、按否决收尾,说“没能更新到 1.0.17,稍后再试。”。 -- **落盘**:更新日志、`refused.json`、`backup.json` 每次写都 `F_FULLFSYNC` 后再改名、再同步目录,“先写 restoring 再交换”在掉电后也成立。 -- **`--write-sample-state` / `--read-state` 已实现**(`App/UpdaterLaunch.swift`):样例是停车日志(照 `Recovery/Journal.swift` 的字段)、 - 这一版偏好的快照、一份更新日志;读的一方检查救回窗口要用的字段、`schemaVersion` 不超过自己认得的、偏好同名键的类型没变。 - 只碰给定目录,偏好只读。改停车日志字段时要同步那里的样例。 -- **`--stage`**:多了两项。`main.swift`、`WindowShade.swift` 里没接齐更新器入口时打警告(不停下,别的验证也用 `--stage`),这样的包不能发布; - 接齐了就试跑 `--self-check`,5 秒内返回 0 且输出 `build=N`,否则停下。 -- **(2026-11-04 更新)当初“还没写的”四样都已存在**:`scripts/release-gate.sh`(发布关已脚本化)、 - `tests/run-update-integration.sh`、`site/public/appcast.xml`;`scripts/make-appcast.sh` 仍未写(清单条目照 - docs/DEVELOPMENT.md 手工维护)。 -- **接线由协调者做**(这些文件不归更新器这一批改):`main.swift` 的 `UpdateLaunch.handleEarlyArguments()` 和 `UpdateLaunch.recordLaunch()`, - `WindowShade.swift` 的 `start()`、`applicationShouldTerminate()`、`applicationWillTerminate()`,菜单、设置、欢迎窗口。 - 前两处是发布阻断项。 - -## 已定(Aaron,2026-09-29) - -1. “自动检查更新”默认开,设置里能关。 -2. 第一次打开时不在“应用程序”里:替他移过去(问一句“移到‘应用程序’”,点了就移并重新打开)。 -3. 不做 Developer ID 和公证,实测出问题也不做;遇到“个人测试”一类提示或看护、安装器被系统杀掉时,退回“手动下载安装”的路径并在官网写清楚。 -4. 我先定的两件(Aaron 可改):测试频道只给 Aaron 自己用(`defaults write` 打开);看护在旧版退出后显示菜单栏图标,不走 `SMAppService.agent`。 - -## 出处 - -- **Sparkle 源码**(2.x 分支): - - 认包:[SUUpdateValidator.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/SUUpdateValidator.m)、 - [SUCodeSigningVerifier.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Autoupdate/SUCodeSigningVerifier.m) - - 安装器:[AppInstaller.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Autoupdate/AppInstaller.m)、 - [SUPlainInstaller.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Autoupdate/SUPlainInstaller.m)、 - [SUFileManager.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/SUFileManager.m)、 - [SUInstallerLauncher.m](https://github.com/sparkle-project/Sparkle/blob/2.x/InstallerLauncher/SUInstallerLauncher.m)、 - [InstallerProgressAppController.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/InstallerProgress/InstallerProgressAppController.m)、 - [ShowInstallerProgress.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/InstallerProgress/ShowInstallerProgress.m) - - 更新流程:[SPUInstallerDriver.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/SPUInstallerDriver.m)、 - [SPUCoreBasedUpdateDriver.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/SPUCoreBasedUpdateDriver.m)、 - [SPUUIBasedUpdateDriver.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/SPUUIBasedUpdateDriver.m)、 - [SPUBasicUpdateDriver.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/SPUBasicUpdateDriver.m) - - 接口:[SPUUserDriver.h](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/SPUUserDriver.h)、 - [SPUUpdaterDelegate.h](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/SPUUpdaterDelegate.h) - - 其它:[SUHost.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/SUHost.m)、 - [SPULocalCacheDirectory.m](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/SPULocalCacheDirectory.m)、 - [zh_CN Sparkle.strings](https://github.com/sparkle-project/Sparkle/blob/2.x/Sparkle/zh_CN.lproj/Sparkle.strings) -- **Sparkle 文档与发布**:[Documentation](https://sparkle-project.org/documentation/)、[Customization](https://sparkle-project.org/documentation/customization/)、 - [Publishing](https://sparkle-project.org/documentation/publishing/)、[Sandboxing](https://sparkle-project.org/documentation/sandboxing/)、 - [Custom UIs](https://sparkle-project.org/documentation/custom-user-interfaces/)、[2.10.0 发布说明](https://github.com/sparkle-project/Sparkle/releases/tag/2.10.0) -- **Apple**: - - 签名与授权:[TN3127](https://developer.apple.com/documentation/technotes/tn3127-inside-code-signing-requirements)、 - [Certificates](https://developer.apple.com/support/certificates/)、 - [NSUpdateSecurityPolicy](https://developer.apple.com/documentation/bundleresources/information-property-list/nsupdatesecuritypolicy)、 - [considerExpiration](https://developer.apple.com/documentation/security/seccsflags/considerexpiration)、 - [Creating distribution-signed code for macOS](https://developer.apple.com/documentation/xcode/creating-distribution-signed-code-for-the-mac) - - Gatekeeper 与首次打开:[Launch Services Keys](https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html)、 - [Gatekeeper and runtime protection](https://support.apple.com/guide/security/gatekeeper-and-runtime-protection-sec5599b66df/web)、 - [Updates to runtime protection in macOS Sequoia](https://developer.apple.com/news/?id=saqachfa)、 - [mh40616](https://support.apple.com/guide/mac-help/open-a-mac-app-from-an-unknown-developer-mh40616/mac)、 - [102445](https://support.apple.com/en-us/102445)、 - [App Translocation Notes](https://developer.apple.com/forums/thread/724969) - - 后台活动:[Managing ongoing background processes](https://developer.apple.com/documentation/appkit/managing-ongoing-background-processes-in-your-mac)、 - [登录项与后台任务(部署指南)](https://support.apple.com/guide/deployment/manage-login-items-background-tasks-mac-depdca572563/web)、 - [SMJobSubmit](https://developer.apple.com/documentation/servicemanagement/smjobsubmit(_:_:_:_:)) - - 包结构:[Placing content in a bundle](https://developer.apple.com/documentation/bundleresources/placing-content-in-a-bundle) -- **其它**:[Squirrel.Mac #336](https://github.com/Squirrel/Squirrel.Mac/issues/336)、[LetsMove](https://github.com/potionfactory/LetsMove)、 - [Homebrew 5.0.0](https://brew.sh/2025/11/12/homebrew-5.0.0/)、[Acceptable Casks](https://docs.brew.sh/Acceptable-Casks) -- **本机只读检查**(2026-09-29): - - `codesign -dvvv --requirements -` 读 v1.0.15 发布包; - - `openssl x509 -dates` 读证书有效期; - - `spctl -a -vv` 的结果是 rejected; - - 读了 `CoreServicesUIAgent`、`SecurityPrivacyExtension.appex` 的本地化表; - - 读了 `man gktool`,以及 `prototype/build.sh`、`prototype/Info.plist`、`prototype/Recovery/Journal.swift` 的格式版本。 -- **这次复核**(2026-09-29,WebFetch 读 2.x 原文):续装走 `showUpdateFound` 的 `.installing` 分支、三种回复都进 `finishInstallationWithResponse`、`.skip` 写跳过记录; - 安装器在 App 退出后按第 1 阶段是否完成决定装,`_shouldRelaunch` 只由 `SPUResumeInstallationToStage2` 设置,取消消息触发清理退出。 diff --git a/docs/archive/README.md b/docs/archive/README.md deleted file mode 100644 index bd19db92..00000000 --- a/docs/archive/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# docs/archive - -一次性调查、旧版验收记录与已完成的进度日志放这里。 - -- 路径:`docs/archive/<归档日期>/<文件名>`。 -- 每个文件开头写归档日期、原版本、是否仍有效;不再维护的内容明确写“仅作历史记录”。 -- 现行规则不放这里:测试见 [../testing.md](../testing.md),修缺陷流程见 [../fix-process.md](../fix-process.md),已知失败见 [../known-failures.md](../known-failures.md)。 - -## 目录 - -- `2026-11-11/update-design-2026-09-29.md`:应用内更新的设计稿,被 [../update.md](../update.md) 取代。 -- `2026-11-11/releases/`:1.0.16–1.0.21 已发布版本的发布关 runbook、验收清单、计划和 appcast 草稿。`tests/vm/run-updater-phase3-1018.sh` 读其中的 `appcast-item-1.0.18.xml`,移动它时要同步改脚本。 diff --git a/docs/code-map.md b/docs/code-map.md index f195433c..58e69bba 100644 --- a/docs/code-map.md +++ b/docs/code-map.md @@ -39,7 +39,7 @@ ## 不在 prototype/ 里但常要动的 -- `tests/` — 在**仓库根**:`*.swift` 测试档加 `run-*.sh` runner(共 283 个),自制 `@main + expect` 模式;`build.sh` 门禁会跑其中几支。已完结轮次的证据快照归档在 `tests/archive/`(part7–10、h4-vision-eval),不参与自动发现。 -- `tools/` — 探针、隐私登记表(`tools/privacy/registry.json`)、编程会话 hook(`tools/ws2-hook`);已完结的一次性研究探针归档在 `tools/archive/`。 +- `tests/` — 在**仓库根**:`*.swift` 测试档加 `run-*.sh` runner(共 283 个),自制 `@main + expect` 模式;`build.sh` 门禁会跑其中几支。已完结轮次的证据快照(part7–10、h4-vision-eval)已从仓库删除,要看就查 git 历史 `026091e9` 的 `tests/archive/`。 +- `tools/` — 探针、隐私登记表(`tools/privacy/registry.json`)、编程会话 hook(`tools/ws2-hook`);已完结的一次性研究探针已删除,留在 git 历史 `026091e9` 的 `tools/archive/`。 - `site/` — 官网;隐私页由登记表生成并与 App 逐字对照。 - `scripts/` — 发布前检查(如 `check-release-version.sh`)。 diff --git a/docs/known-failures.md b/docs/known-failures.md index 082dad0e..a5fb88ee 100644 --- a/docs/known-failures.md +++ b/docs/known-failures.md @@ -33,4 +33,4 @@ - 一次性的性能热点调查 → `docs/perf-ledger.md`。 - 还没复现的猜测 → 先写进 issue 或当次修复记录,不占台账。 -- 已被后续版本修掉的问题 → 删掉,或移进 `docs/archive/` 并在归档头写清版本。 +- 已被后续版本修掉的问题 → 删掉;要回看就查 git 历史(旧的 `docs/archive/` 在 `026091e9`)。 diff --git a/docs/releases/README.md b/docs/releases/README.md index 9af6a63f..cd61eaea 100644 --- a/docs/releases/README.md +++ b/docs/releases/README.md @@ -18,8 +18,8 @@ | v1.0.21 | 首个 Intel 实验版,刘海动画对齐 macOS 27.3;自动更新先走测试频道。见 [v1.0.21.md](v1.0.21.md) | | v1.0.20 | 功能页与 8 个真开关;窗口修复(macOS 26 双击缩放、收起闪屏、刘海尺寸、角落停车);见 [v1.0.20.md](v1.0.20.md) | | v1.0.19 | 手感与稳定:刘海照系统灵动岛重做、上推全收与整批撤销、代理跟手、整理撤销、收起动画默认开;见 [v1.0.19.md](v1.0.19.md) | -| v1.0.18 | 默认值翻开+OOBE 三页+八页讲解带+设置搜索+DMG 首次安装;见 [v1.0.18.md](v1.0.18.md)、[发布关](../archive/2026-11-11/releases/v1.0.18-release-gate.md)、[默认值总账](v1.0.18-defaults.md) | -| v1.0.17 | 第一个 Developer ID 公证版(macOS 15 起):换证书要手动下载一次;高级 → 关于、7 个捷径动作;见 [v1.0.17.md](v1.0.17.md)、[发布关](../archive/2026-11-11/releases/v1.0.17-release-gate.md) | +| v1.0.18 | 默认值翻开+OOBE 三页+八页讲解带+设置搜索+DMG 首次安装;见 [v1.0.18.md](v1.0.18.md)、[发布关](https://github.com/surfine/WindowShade/blob/026091e9/docs/archive/2026-11-11/releases/v1.0.18-release-gate.md)、[默认值总账](v1.0.18-defaults.md) | +| v1.0.17 | 第一个 Developer ID 公证版(macOS 15 起):换证书要手动下载一次;高级 → 关于、7 个捷径动作;见 [v1.0.17.md](v1.0.17.md)、[发布关](https://github.com/surfine/WindowShade/blob/026091e9/docs/archive/2026-11-11/releases/v1.0.17-release-gate.md) | | v1.0.16 | 看不见的窗口,都在刘海里;见 [v1.0.16.md](v1.0.16.md) | | v1.0.15 | 看一眼、标题栏手势与排布;见 [v1.0.15.md](v1.0.15.md) | | v1.0.14 | 与系统浑然一体:统一外观、可访问性;见 [v1.0.14.md](v1.0.14.md) | @@ -30,6 +30,6 @@ | v1.0.9 | 崩溃后能找回窗口,预览更省电、缓存更省内存;见 [v1.0.9.md](v1.0.9.md) | | v1.0 | 首次发布;见 [v1.0.md](v1.0.md) | -已发布版本的一次性发布关文档、清单草稿和验收清单(v1.0.16–v1.0.21)归档在 [../archive/2026-11-11/releases/](../archive/2026-11-11/releases/);这里只留发布说明和仍作参考的 [v1.0.18-defaults.md](v1.0.18-defaults.md)。 +已发布版本的一次性发布关文档、清单草稿和验收清单(v1.0.16–v1.0.21)归档在 [../archive/2026-11-11/releases/](https://github.com/surfine/WindowShade/tree/026091e9/docs/archive/2026-11-11/releases);这里只留发布说明和仍作参考的 [v1.0.18-defaults.md](v1.0.18-defaults.md)。 更早的补丁版本(v1.0.1–v1.0.9)只在 tag 中保留,没有单独的 release 页面。 diff --git a/docs/releases/v1.0.18-defaults.md b/docs/releases/v1.0.18-defaults.md index 6a458762..1f3ac50e 100644 --- a/docs/releases/v1.0.18-defaults.md +++ b/docs/releases/v1.0.18-defaults.md @@ -1,6 +1,6 @@ # 1.0.18 默认值总账 -> 2026-10-17。依据 Aaron 拍板(见 [1.0.18 计划](../archive/2026-11-11/releases/v1.0.18-plan.md) 第 1 条、设计稿“首次打开 1.0.17 小样”的决定记录):**刘海主功能、刘海实时活动、Dock 悬停查看窗口、文件架和再点 Dock 让开,1.0.18 起默认开;新装和没动过这些开关的老用户都开。** +> 2026-10-17。依据 Aaron 拍板(见 [1.0.18 计划](https://github.com/surfine/WindowShade/blob/026091e9/docs/archive/2026-11-11/releases/v1.0.18-plan.md) 第 1 条、设计稿“首次打开 1.0.17 小样”的决定记录):**刘海主功能、刘海实时活动、Dock 悬停查看窗口、文件架和再点 Dock 让开,1.0.18 起默认开;新装和没动过这些开关的老用户都开。** > 这一页接 1.0.16 默认值总账(私有库);1.0.16 那页的 B、C 两节在 1.0.18 不变。 ## 纪律改了一句 diff --git a/docs/system-integration-polish.md b/docs/system-integration-polish.md index fd8618fc..daf7b987 100644 --- a/docs/system-integration-polish.md +++ b/docs/system-integration-polish.md @@ -118,4 +118,4 @@ cd prototype && WINDOWSHADE_CODESIGN_IDENTITY="Apple Development: Your Name (` | +| L1 单元 | 状态机、几何、解析、策略;286 个脚本(排除表 25 条后 261 个进门禁) | `scripts/local-gate.sh unit --jobs 6` | 安静时 363–450 秒(约 6–8 分钟)| 每次推送前;改动集中时用 `--only <关键字>` | | L2 AppKit 离屏 | 设置、经典卷帘条、收起动画、看一眼生命周期、菜单栏遮挡、文件架卡画面等 14 个套件 | `scripts/local-gate.sh appkit` | 安静时 98–125 秒(约 2 分钟)| 改窗口、覆盖层、设置界面时 | | L3 签名探针 | 真机上的收起计时、恢复守卫、标题栏手势、原生标签页、窗口外框 | `cd prototype && ./build.sh --stage`,再 `bash tests/run-glance-probe.sh …` 等 | 5–15 分钟 | 改窗口行为、手势、恢复逻辑时 | | L4 虚拟机 | 另外两个支持版本上的核心探针:收起计时、恢复守卫、不可最小化、孤儿条、窗口列表 | `tests/vm/run-core-probes.sh lume@<地址>` | 10–90 分钟 | 每周一次、发版前 | diff --git a/docs/update.md b/docs/update.md index 01ffffa4..132ae0b9 100644 --- a/docs/update.md +++ b/docs/update.md @@ -1,7 +1,7 @@ # 应用内更新 应用内更新由 Sparkle 2 负责查新版、验签、下载和交换,WindowShade 在前后加了三道自己的关:授权不丢、坏包不会让人没了 App、第一次打开时引导移进“应用程序”。 -2026-09-29 的设计稿(含当时的推理和出处)归档在 [archive/2026-11-11/update-design-2026-09-29.md](archive/2026-11-11/update-design-2026-09-29.md), +2026-09-29 的设计稿(含当时的推理和出处)归档在 [archive/2026-11-11/update-design-2026-09-29.md](https://github.com/surfine/WindowShade/blob/026091e9/docs/archive/2026-11-11/update-design-2026-09-29.md), 那份稿子里的文件名和若干决定已被实现取代,以本页和代码为准。 ## 现状 diff --git a/tests/archive/h4-vision-eval/HeuristicCopy.swift b/tests/archive/h4-vision-eval/HeuristicCopy.swift deleted file mode 100644 index 5ec205e1..00000000 --- a/tests/archive/h4-vision-eval/HeuristicCopy.swift +++ /dev/null @@ -1,87 +0,0 @@ -// 忠实拷贝:prototype/Capture/PreviewRenderer.swift:98-181(preciseVisualChromeHeight),逐字,由 sed -n 98,181p 生成。 -import CoreGraphics -import Foundation -func preciseVisualChromeHeight(of image: CGImage, scale: CGFloat, minimum: CGFloat) -> CGFloat? { - let w = image.width, h = image.height - guard w > 20, h > 20, scale > 0 else { return nil } - let maxScan = min(h, Int(ceil(130 * scale))) - guard let top = image.cropping(to: CGRect(x: 0, y: 0, width: w, height: maxScan)) else { return nil } - - let bpr = w * 4 - var buf = [UInt8](repeating: 0, count: bpr * maxScan) - guard let ctx = CGContext(data: &buf, width: w, height: maxScan, bitsPerComponent: 8, - bytesPerRow: bpr, space: CGColorSpaceCreateDeviceRGB(), - bitmapInfo: CGImageAlphaInfo.premultipliedLast.rawValue) else { return nil } - ctx.draw(top, in: CGRect(x: 0, y: 0, width: w, height: maxScan)) - - let step = max(1, w / 1200) - let edgeInset = max(Int(18 * scale), min(w / 18, 96)) - let minRunWidth = max(Int(52 * scale), min(w / 14, 160)) - let maxRunWidth = Int(CGFloat(w) * 0.72) - var controlRows: [(Int, Int)] = [] - - for y in 0.. 170 && lum > 232 && saturation < 26 - let isFocusRing = a > 150 && blueBias > 26 && b > 150 && r < 190 - let isControlPixel = isLightControl || isFocusRing - - if isControlPixel { - if currentRunStart == nil { currentRunStart = x } - } else if let start = currentRunStart { - let width = x - start - if start > edgeInset && x < w - edgeInset && - width >= minRunWidth && width <= maxRunWidth { - bestRun = max(bestRun, width) - } - currentRunStart = nil - } - - if x + step >= w, let start = currentRunStart { - let end = min(w, x + step) - let width = end - start - if start > edgeInset && end < w - edgeInset && - width >= minRunWidth && width <= maxRunWidth { - bestRun = max(bestRun, width) - } - currentRunStart = nil - } - x += step - } - if bestRun > 0 { controlRows.append((y, bestRun)) } - } - - let maxGap = max(2, Int(ceil(2 * scale))) - let minRows = max(12, Int(ceil(12 * scale))) - var clusters: [[(Int, Int)]] = [] - for row in controlRows { - if clusters.isEmpty || row.0 - (clusters[clusters.count - 1].last?.0 ?? row.0) > maxGap { - clusters.append([]) - } - clusters[clusters.count - 1].append(row) - } - - let maxControlTop = Int(ceil(70 * scale)) - guard let cluster = clusters.first(where: { - guard $0.count >= minRows, let first = $0.first, let last = $0.last else { return false } - let height = last.0 - first.0 - return first.0 <= maxControlTop && height >= Int(12 * scale) && height <= Int(58 * scale) - }), let first = cluster.first, let last = cluster.last else { return nil } - - let controlTop = CGFloat(first.0) - let controlBottom = CGFloat(last.0) - let topPadding = max(6 * scale, min(controlTop, 26 * scale)) - let candidate = (controlBottom + topPadding) / scale - let minH = max(minimum, 32) - guard candidate >= minH, candidate <= 96 else { return nil } - return candidate -} - diff --git a/tests/archive/h4-vision-eval/main.swift b/tests/archive/h4-vision-eval/main.swift deleted file mode 100644 index 3dcf17d0..00000000 --- a/tests/archive/h4-vision-eval/main.swift +++ /dev/null @@ -1,100 +0,0 @@ -// H4 评估:标题栏定位「像素启发式 vs Vision」、缩略图裁剪「Vision 注意力显著性」。 -// 用法:h4-vision-eval <截图文件夹> (PNG,默认按 2x 视网膜截图,1 逻辑点 = 2 像素) -// 只测量,不改产品行为。启发式来源:HeuristicCopy.swift(= PreviewRenderer.swift:98)。 -import Foundation -import CoreGraphics -import ImageIO -import Vision - -let scale: CGFloat = 2 -let dir = URL(fileURLWithPath: CommandLine.arguments.count > 1 ? CommandLine.arguments[1] : ".") -let files = ((try? FileManager.default.contentsOfDirectory(atPath: dir.path)) ?? []) - .filter { $0.hasSuffix(".png") }.sorted() - -// 机器负载很高时墙钟时间不可信,所以同时记进程 CPU 时间;每个方法跑 reps 次,取墙钟最小的那次(连同它的 CPU)。 -// 返回 "墙钟/CPU"(毫秒)。 -let reps = Int(ProcessInfo.processInfo.environment["REPS"] ?? "3") ?? 3 -var wallSum = [Double](repeating: 0, count: 4), cpuSum = [Double](repeating: 0, count: 4) -func ms(_ slot: Int, _ body: () -> Void) -> String { - var best = Double.infinity, bestCPU = 0.0 - for _ in 0.. String { v.map { String(format: "%.1f", $0) } ?? "-" } - -print("image\tsize_pt\theur_pt\theur_ms(wall/cpu)\ttext_band_pt\ttext_ms\trect_band_pt\trect_ms\tsal_bbox(x,y,w,h in %)\tsal_ms") -var n = 0 -for name in files { - guard let src = CGImageSourceCreateWithURL(dir.appendingPathComponent(name) as CFURL, nil), - let img = CGImageSourceCreateImageAtIndex(src, 0, nil) else { continue } - let wPt = CGFloat(img.width) / scale, hPt = CGFloat(img.height) / scale - - // 1) 启发式(逐字拷贝)。minimum 取 standardCropHeight 的下限量级 28。 - var heur: CGFloat? - let tH = ms(0) { heur = preciseVisualChromeHeight(of: img, scale: scale, minimum: 28) } - - // 2) Vision 文本:只看顶部 110pt;带高 = 最低一条文字底边 + 与顶边对称的留白(文字上缘距顶)。 - let topPx = min(img.height, Int(110 * scale)) - let topImg = img.cropping(to: CGRect(x: 0, y: 0, width: img.width, height: topPx))! - var textBand: CGFloat? - let tT = ms(1) { - let req = VNRecognizeTextRequest() - req.recognitionLevel = .fast - req.usesLanguageCorrection = false - try? VNImageRequestHandler(cgImage: topImg).perform([req]) - let boxes = (req.results ?? []).map { $0.boundingBox } - // 归一化坐标原点在左下;转成距顶部的像素 - let tops = boxes.map { (1 - $0.maxY) * CGFloat(topPx) / scale } - let bottoms = boxes.map { (1 - $0.minY) * CGFloat(topPx) / scale } - // 只取第一行文字所在的带(顶部 70pt 内),避免把内容区文字当成标题栏。 - let inBand = zip(tops, bottoms).filter { $0.0 < 70 } - if let b = inBand.map({ $0.1 }).max(), let t = inBand.map({ $0.0 }).min() { - textBand = b + max(6, t) - } - } - - // 3) Vision 矩形:顶部 110pt 里找控件/搜索框类矩形,带高 = 最低矩形底边 + 对称留白。 - var rectBand: CGFloat? - let tR = ms(2) { - let req = VNDetectRectanglesRequest() - req.minimumAspectRatio = 0.05 - req.maximumObservations = 12 - req.minimumSize = 0.02 - req.minimumConfidence = 0.5 - req.quadratureTolerance = 15 - try? VNImageRequestHandler(cgImage: topImg).perform([req]) - let rs = (req.results ?? []).filter { r in - let t = (1 - r.boundingBox.maxY) * CGFloat(topPx) / scale - return t < 70 && r.boundingBox.width < 0.9 - } - if let b = rs.map({ (1 - $0.boundingBox.minY) * CGFloat(topPx) / scale }).max(), - let t = rs.map({ (1 - $0.boundingBox.maxY) * CGFloat(topPx) / scale }).min() { - rectBand = b + max(6, t) - } - } - - // 4) 注意力显著性:整图一次,取最大显著区域的外框(占整图百分比,原点左上)。 - var sal = "-" - let tS = ms(3) { - let req = VNGenerateAttentionBasedSaliencyImageRequest() - try? VNImageRequestHandler(cgImage: img).perform([req]) - if let o = req.results?.first?.salientObjects?.max(by: { $0.boundingBox.width * $0.boundingBox.height < $1.boundingBox.width * $1.boundingBox.height }) { - let b = o.boundingBox - sal = String(format: "%.0f,%.0f,%.0f,%.0f", b.minX * 100, (1 - b.maxY) * 100, b.width * 100, b.height * 100) - } else { sal = "none" } - } - n += 1 - print("\(name)\t\(Int(wPt))x\(Int(hPt))\t\(f1(heur))\t\(tH)\t\(f1(textBand))\t\(tT)\t\(f1(rectBand))\t\(tR)\t\(sal)\t\(tS)") -} -if n > 0 { - let d = Double(n) - print(String(format: "MEAN_wall/cpu_ms\theur=%.1f/%.1f\ttext=%.1f/%.1f\trect=%.1f/%.1f\tsaliency=%.1f/%.1f\t(n=%d, reps=%d)", - wallSum[0]/d, cpuSum[0]/d, wallSum[1]/d, cpuSum[1]/d, wallSum[2]/d, cpuSum[2]/d, wallSum[3]/d, cpuSum[3]/d, n, reps)) -} diff --git a/tests/archive/h4-vision-eval/results-2026-10-16.tsv b/tests/archive/h4-vision-eval/results-2026-10-16.tsv deleted file mode 100644 index f5027096..00000000 --- a/tests/archive/h4-vision-eval/results-2026-10-16.tsv +++ /dev/null @@ -1,22 +0,0 @@ -image size_pt heur_pt heur_ms(wall/cpu) text_band_pt text_ms rect_band_pt rect_ms sal_bbox(x,y,w,h in %) sal_ms -activitymon.png 1350x724 51.5 73.7/21.2 92.0 29.7/16.1 77.9 41.2/27.9 0,0,92,100 58.2/10.1 -calculator.png 230x408 - 2.2/1.3 - 27.5/12.0 51.6 11.0/6.6 4,0,96,88 8.6/4.6 -capture-indicator-before-stream@2x.png 480x330 - 2.8/2.7 33.0 19.0/13.0 31.7 16.6/9.7 1,0,74,66 21.0/6.2 -capture-indicator-stream-frame@2x.png 477x330 - 1.7/1.7 34.0 22.9/12.9 31.7 8.3/10.5 1,0,77,70 11.0/5.8 -clock.png 690x640 - 3.8/3.5 - 21.4/13.8 51.8 25.3/14.0 21,0,59,93 36.7/7.3 -dictionary.png 690x628 51.5 4.3/4.1 140.0 15.5/13.6 86.1 23.1/17.2 0,0,95,71 12.0/6.4 -diskutil.png 1205x485 51.5 5.9/5.4 108.0 17.2/16.0 87.6 237.8/43.3 0,0,98,87 19.5/8.5 -finder.png 776x557 51.5 4.7/4.5 90.0 63.4/15.5 87.4 407.6/36.5 0,0,91,97 59.6/9.2 -fontbook.png 1000x650 51.5 59.4/18.4 89.0 97.1/18.6 74.1 87.9/33.5 0,0,96,92 24.8/11.0 -freeform.png 1024x800 - 10.3/5.7 - 111.4/18.7 - 63.0/28.8 10,0,72,88 28.3/9.5 -maps.png 1024x768 50.0 6.0/5.9 113.0 39.1/15.7 104.2 312.4/48.6 0,0,100,91 21.4/8.7 -safari-start.png 1710x997 51.5 8.3/7.7 - 22.4/15.3 52.0 120.5/35.4 8,8,73,80 48.2/15.2 -settings.png 740x539 51.5 6.0/4.5 - 38.4/13.2 88.0 33.2/23.0 0,2,96,87 11.7/6.7 -stickies1.png 352x260 - 1.8/1.8 101.5 17.0/16.1 87.3 17.3/10.6 0,0,95,75 13.3/6.1 -stickies2.png 355x268 - 1.9/1.9 - 30.8/15.5 70.8 22.1/9.8 0,0,88,83 15.2/5.2 -sysmonitor.png 1710x995 52.0 9.1/7.8 - 17.0/15.4 86.1 32.2/36.0 0,0,74,70 43.0/13.2 -terminal.png 860x499 - 4.6/4.5 108.0 17.4/14.7 - 56.8/22.0 0,0,75,70 12.7/7.3 -textedit.png 880x448 63.5 5.1/5.0 65.0 18.0/13.7 88.2 59.1/23.2 0,0,92,94 20.3/7.5 -weather.png 1048x640 - 6.0/5.3 - 42.5/15.2 - 33.9/23.3 0,6,93,89 23.6/9.8 -ws-settings-asset.png 900x680 51.5 5.0/4.8 38.5 20.0/16.8 94.4 23.4/22.8 0,0,98,93 15.1/8.7 -MEAN_wall/cpu_ms heur=11.1/5.9 text=34.4/15.1 rect=81.6/24.1 saliency=25.2/8.3 (n=20, reps=5) diff --git a/tests/archive/part10/DRIFT.md b/tests/archive/part10/DRIFT.md deleted file mode 100644 index 560ac7b0..00000000 --- a/tests/archive/part10/DRIFT.md +++ /dev/null @@ -1,77 +0,0 @@ -# 本仓库相对第十份基线的漂移(逐条原因) - -第十份的 `sources/code-map.json` 钉的是统一 v9 候选(1168 个文件)。本仓库是那条线继续往前走的 -工作区:先并入第九份,再并入第十份,并在两轮里都按「只有 Mac 才会暴露」的事实改过源码。 -所以 `drift.json` 的 `code_map_drift` 共 33 条(复核时补登了 `AGENTS.md`,W00 又带进四条,其中一条是「应当不存在」,G2–G7 陆续补了文案、指挥页、电量来源与 `FocusSession.swift`);另有一条只是路径搬迁。下表是路径或存在性不同的两条。 -`tests/part10/drift.json` 把这份清单机器可读化;`test-handoff-tools.py` 的 12/14 项按它判定: -清单外的任何新漂移都会让检查失败,清单本身也必须与实际情况一字不差(多一条少一条都算失败)。 - -## 路径/存在性不同的两条 - -| code-map 记录的路径 | 本仓库实际 | 原因 | -| --- | --- | --- | -| `prototype/App/InteractionCoordinator.swift` | `prototype/Core/InteractionCoordinator.swift` | 本仓库把共享仲裁放在 `Core/`(第七、八、九份的 runner 都已按这个事实处理)。两边**内容逐字节相同**,所以只改路径映射,不计入哈希漂移。 | -| `prototype/App/WS2IslandCoordinator.swift` | 不存在 | 本仓库从未有过这个文件。第十份候选里有它,W08 也列它为来源;但本仓库并入第九份时决定沿用现有的单一刘海仲裁器 `NotchLeaseHub`(`prototype/App/NotchLeases.swift`,见 `part9/MAC-EVIDENCE.md`)。这是**本仓库的决定**,不是第十份的要求——第十份只说「不额外建立第二套全局活动仲裁」,而在本仓库再加它就会成为第二套。检查项把它当「必须缺席」来断言;做 W08 时以 `NotchLeaseHub` 为准。 | - -## 第九份带进来的改动 - -`prototype/App/FoldCompletion.swift`、`FoldTransaction.swift`、`Reconcile.swift`、`ShadeController.swift`、 -`prototype/App/WS2FoldCallbackGuard.swift`(新增)——收起三态、事务绑定完成通知、巡检不可变快照、 -AX routeID、首帧隔离、去嵌套 RunLoop;另有主模型按 Mac 实测修掉的 23 处 Swift 6 隔离错误。 -证据在 `docs/handoff/chatgpt-review-2/part9/MAC-EVIDENCE.md`。 - -## 第十份自己的改动 + 主模型补的一处 - -`prototype/build.sh`、`prototype/Recovery/Journal.swift`(后者与 code-map 一致,未列入漂移)是第十份的实际修复 -(四处 swiftc 显式 Swift 6/完整并发检查/警告视为错误、`--check` 不读本机签名配置;`journalID` 精确转换)。 -主模型另在 `build.sh` 上补了一处**只有 macOS 才会暴露**的修复:macOS 自带 bash 3.2 在 `set -u` 下展开空数组 -会致命,而且有 EXIT trap 时以 0 退出——缺 `Vendor/Sparkle.framework` 时 `--check` 会「什么都不编也返回成功」。 -改成 `${arr[@]+"${arr[@]}"}` 形式。这正是第十份 `test-build-entry.py` 在本机暴露出来的。 - -## W00(Swift 6 严格并发)带进来的改动 - -`prototype/App/FaceObservationSource.swift`(去掉对不再抛错的 `setComputeDevice` 多余的 `try?`)、 -`prototype/Window/AXHelpers.swift`(删掉诊断函数里没用到的 `size`)。都是警告视为错误后必须清的既有警告, -不改行为。`prototype/App/NotchFaceObservations.swift`(观察者句柄标 `nonisolated(unsafe)`,好在 deinit 里移除)、 -`prototype/Recovery/Rescue.swift`(扫描结束的回调标 `@Sendable`,它本来就只是转回主线程)是严格并发的隔离标注,也不改行为。W00 也改了已在清单里的 `ShadeController.swift`、`FoldTransaction.swift`、`WS2FoldCallbackGuard.swift` -与 `Native/WS2Child.c`(EPERM 判定,见分支提交说明)。 - -## 更早几份在这条线上的继续演进 - -第十份钉的是 v9 候选的快照,本仓库在它之后还保留了第八份及更早的实际接线与修复,所以下面这些文件 -哈希不同,内容都属于**已并入并验证过**的工作,不是未审改动: -`WS2AppRuntime.swift`、`WS2CodexApprovalHost.swift`、`WS2GameControllerBridge.swift`、 -`WS2OwnedCodexSession+Authorization.swift`、`Core/CodexWire.swift`、`Core/PairingTLV.swift`、 -`Native/WS2Child.c`、`Support/WS2DuplexProcess.swift`、`Support/WS2KeychainPeerStorage.swift`、 -`Support/WS2LocalLaunchProfile.swift`。 - -## 文档更长 - -`AGENTS.md` 顶部在复核交接时多了一行指向 `docs/handoff/round2-part10/REVIEW-HANDOFF.md`(第一次提交时漏登, -门禁因此失败过一次,复核时补上)。`docs/blueprint.md`、`docs/handoff/START-HERE-deepseek.md`、`docs/releases/v1.0.16-ledger.md`、 -`docs/privacy-page.md` 都随每份接入追加了台账段落,行数比 v9 基线多。G6 又改了 P4:planned 行进隐私页并标「还没读」。 - -## G2 补了输入用词 - -`docs/copy-guide.md` 的固定词汇表补了平滑滚动、滚动方向、中键、遥控模式、Siri 遥控器、iPhone 上的遥控器,给这一包的设置文案用。 - -## G3 补了指挥页用词 - -`docs/copy-guide.md` 的固定词汇表补了指挥模式。`prototype/App/WS2ConductorView.swift` 的会话列表不再用数组下标当动作,选择改到带稳定会话身份的指挥页。 - -## G5 补了电量来源 - -`docs/device-battery.md`、`docs/copy-guide.md`、`prototype/Core/DeviceBattery.swift`、 -`prototype/App/DeviceBatteryController.swift`、`prototype/App/PeripheralBatterySource.swift` -记下四态、这台 Mac 的内部电池,以及还没证实的耳机和手机电量。`Notch.swift` 和新建的 -`MacBatterySource.swift` 不在 code-map 里。 - -## 复核者要做的判断 - -这份漂移清单只解释「为什么和 v9 不一样」,**不证明**这些差异都是对的。请逐条按实际 diff 核对: -第九份的三态/事务语义是否真的落地、第十份两处修复是否只是收紧、主模型补的 bash 修复是否不改变 -正常构建的参数与签名策略。清单外若出现新的漂移,说明有人绕过了这两条门禁。 - -## G7 - -`prototype/App/FocusSession.swift`:专注会话拉出动画的结束回调改在主线程隔离域里清标记,行为不变。 diff --git "a/tests/archive/part10/docs/01-\346\234\200\347\273\210\345\210\244\346\226\255\344\270\216\345\216\237\347\233\256\346\240\207.md" "b/tests/archive/part10/docs/01-\346\234\200\347\273\210\345\210\244\346\226\255\344\270\216\345\216\237\347\233\256\346\240\207.md" deleted file mode 100644 index 10f0c111..00000000 --- "a/tests/archive/part10/docs/01-\346\234\200\347\273\210\345\210\244\346\226\255\344\270\216\345\216\237\347\233\256\346\240\207.md" +++ /dev/null @@ -1,33 +0,0 @@ -# 01 最终判断与原目标 - -九份工作已形成候选实现与大量边界测试,但整个项目尚未完成。最先要做的是把这个确定版本编译到 Mac,再把已有入口走通。现在继续增加通用 reducer 或控制器,会增加待验证代码,却不会消除平台与系统行为的不确定性。[C01][C02] - -第十份结束的是这一轮远程规划与补丁交接,不是宣布 WindowShade 2 已完成。任务的结束状态按用户操作与真实证据判断,不按交付序号、类数量、篇数、断言总数计算。 - -## 七条线原样保留 - -|原目标|当前可复用的实现|真正还要交什么| -|---|---|---| -|窗口|原 Fold/Restore/Journal、v8/v9 三态观察和精确回调;Focus 计划与执行合同|原窗口 Mac 回归;T3 实际身份、效果端口、恢复归属与持久化;unknown 后人工可恢复| -|实时活动|原活动存储、刘海宿主、计时和本地会话入口|原全部来源及 A3/D3 实际状态/意图接入;抢占/关闭/恢复/多屏和全入口验收| -|电量|DeviceBattery、DeviceBatteryController、PeripheralBatterySource 等实际源码|各设备及组件的来源事实、时效、可读能力;AirPods 三组件与其他设备的真机记录| -|CarPlay|已有设计和遥控配对候选是部分基础|真正的全屏接收、音视频和会话生命周期;长按进入、Esc/长按退出与桌面原样保留| -|指挥模式|Conductor 核心、只读助手、手柄选模型、输入合同|实际指挥页面和动作分派;其余输入桥、语音草稿;有授权的助手操作与失败恢复| -|刷脸解锁|原锁态门槛、观察与实验基础|自有模型、活体、误识与故障评估;系统支持的锁/解锁后端与明确的权限链| -|隐私|信号登记、部分安全日志、逐轮数据增量|核对所有真实读写与持久存储、关闭清理、错误泄漏、本人可读与授权说明| - -这些名字来自上传的 `docs/blueprint.md`,不是本轮重新定义。尤其不能把“电量”换成“能耗”,两者分别是功能与运行成本;不能把 Companion Remote 的按键接收写成完整 CarPlay;不能把账号登录写成系统解锁。[C01] - -## 三种不同的交付范围 - -本地可试用范围:已存在的只读会话、计时、模型选择与原窗口能力,必须各自完成整应用构建、原生界面和真实系统验收后才准入。单项达标可以交给用户试用,不等待没有依赖关系的私有协议研究。 - -允许执行范围:普通命令一次批准还需主模型审定精确目标和真实授权链;文件、网络、长期规则各自独立。不在只读入口偷偷更换工厂默认值,升级整个会话权限。 - -完整项目范围:原七条线、能耗稳定性、菜单设置、真实影片及发行要求逐项满足。实验能力无法确认时写清证据空缺,并继续其他工作;不能不经用户同意删除原目标,也不能给未验证能力打勾。 - -## 不再使用的工作方式 - -不要再把已实现的 `WS2OwnedLaunchController`、`WS2VisibleListInput`、`FoldCompletion` 重新写成待实现说明。不要以新建 UUID、增加一个 Boolean 或空 closure 代替真实系统事实。不要用“默认关闭”证明整个应用能够编译,也不要把源码问题全部归为硬件未测。 - -保留原工单里的包名,但使用第十份的当前状态。影片 F1–F5 与人脸 F1–F7 在文档和日志中分别写为 FILM-F* 和 FACE-F*,防止同名包被错误标为已完成。 diff --git "a/tests/archive/part10/docs/02-\346\234\254\346\254\241\344\277\256\345\244\215\344\270\216\344\272\213\345\256\236\347\272\240\346\255\243.md" "b/tests/archive/part10/docs/02-\346\234\254\346\254\241\344\277\256\345\244\215\344\270\216\344\272\213\345\256\236\347\272\240\346\255\243.md" deleted file mode 100644 index 30ecabbc..00000000 --- "a/tests/archive/part10/docs/02-\346\234\254\346\254\241\344\277\256\345\244\215\344\270\216\344\272\213\345\256\236\347\272\240\346\255\243.md" +++ /dev/null @@ -1,29 +0,0 @@ -# 02 本次修复与事实纠正 - -## 构建命令必须和交接承诺一致 - -v9 `prototype/build.sh` 的四处 swiftc 调用没有显式 `-swift-version 6`。使用 Swift 6 工具链不等于自动选择 Swift 6 语言模式。Swift 官方迁移指南明确给出命令行的语言模式开关,并区分 Swift 5 模式下的并发警告与 Swift 6 模式的检查。[S01] - -本份增加统一 `SWIFT_LANGUAGE_FLAGS`,同时用于主程序和看护程序的 check/normal 四条编译命令,保留优化、部署版本、C 监督模块、Metal、Sparkle 和原有链接条件。新错误可能因此暴露;它们应按真实 SDK 修复,不能为得到绿色输出撤销这些参数。 - -v9 在进入 `--check` 分支之前仍会 source `local-codesign.env`。source 会执行脚本文本,不能仅因为文件通常只有一个环境变量就称它无副作用。本份仅让 `--check` 跳过这一读取;普通构建仍保留原优先次序和签名策略。新增替身测试实际运行原 shell 脚本,在假的工具链下观察参数和分支,不声称完成 Mac 编译。 - -## 恢复日志的编号不是可信程序常量 - -旧 `journalID` 先把任意 Double 转 Int,再转 CGWindowID。精确提取的原函数在本机测试宿主里,遇到 NaN 和 2^32 均发生运行时陷阱;true 和 1.5 被接受为窗口编号 1。复现对象是原函数与合成输入,不是声称真实用户日志已经损坏。 - -本份只收紧 `journalID`:拒绝 CFBoolean,采用 `CGWindowID(exactly:)`,要求非零;合法 1…UInt32.max 的整数保持原义,损坏编号返回 nil。不改写隐藏/恢复策略,不把 nil 变成某个默认窗口,不在测试里读真实恢复文件。 - -旧 `pruneShadeJournal` 仍会过滤没有合法编号的条目。这个补丁不提供损坏条目的隔离仓库,也不是完整恢复文件校验器。实际迁移前备份原文件和偏好副本;不能因为编号解析更安全,就认为 pid、尺寸、时间、alpha、spaceID 的解析也已一并安全。W10 必须继续核对所有数值入口。 - -## 标题确实会落盘 - -原 `recordShadeJournal` 和 `recordShadeRecoveryIntent` 保存 `title`、`appName` 等字段;`saveShadeJournalEntries` 除写 durable journal,还写 UserDefaults 副本。[C03][C04] - -因此“普通日志不写标题”不能推导“整个应用不保存标题”。恢复数据与诊断日志用途不同,但都必须出现在隐私说明里。此次没有突然删除标题或偏好副本,因为匹配与恢复路径仍可能依赖它们。W10 要先列用途、读取者、保存期限和迁移策略,保全未解决的恢复记录,再逐项减少不必要的字段。 - -## 其他需要纠正的口径 - -`--check` 仍产生临时构建文件和缓存;本包新 runner 把它们放到一次性副本,不能把它写成绝对无文件写入。编译第三方框架不等于运行它的界面;实际程序/账号与设备验证必须另外申请并记录。 - -测试产生 stdout、stderr 和本机路径,报告目录只给当前用户创建,提交或转发前须检查。报告包含哈希不等于内容已脱敏;本包没有自动上传或外发诊断。 diff --git "a/tests/archive/part10/docs/03-\345\256\236\347\216\260\350\276\271\347\225\214\347\232\204\346\234\200\347\273\210\350\243\201\345\206\263.md" "b/tests/archive/part10/docs/03-\345\256\236\347\216\260\350\276\271\347\225\214\347\232\204\346\234\200\347\273\210\350\243\201\345\206\263.md" deleted file mode 100644 index 0020071e..00000000 --- "a/tests/archive/part10/docs/03-\345\256\236\347\216\260\350\276\271\347\225\214\347\232\204\346\234\200\347\273\210\350\243\201\345\206\263.md" +++ /dev/null @@ -1,51 +0,0 @@ -# 03 实现边界的最终裁决 - -## 1. 别要求一个不存在的“用户操作总版本号” - -前几份把 userRevision 作为恢复门槛;实际实现不能把这个名字当作系统已提供的全知计数器。本地为每次观察、己方操作、已确认外部变化建立 generation/revision,是防止采用已知陈旧信息的方法,不是知道用户所有行为的证明。 - -T3 第一条可验收实现限定同次启动、同一明确选择范围、能重新识别且能读回的窗口。用进程启动身份、当前 AX 对象与可核对窗口号、当前原恢复事务构成证据集合。启动身份不可得、窗口重建、观察缺失、几何或隐藏策略不符时放弃自动恢复权,保留人工核对。不要在进程号外包 UUID 后宣称获得强身份。 - -它不取消跨重启目标。跨重启恢复需要原 journal 的版本化记录及当前对象重认,单独验收;无法重认的旧记录不可盲目重放坐标。成功的同次运行不能当作跨重启通过。 - -## 2. 外部窗口动作无法靠本地事务变成原子操作 - -顺序固定为:重认对象 → 原 journal 持久 prepare 成功 → 最终上下文检查 → 一次物理动作 → 重新观察 → 标记 confirmed 或 unknown。不得在 await 后重用原先许可,不得在 timeout 后自动再收一次。 - -取消发生在物理写入前,可以拒绝写;写入后只能说明不再继续,并进入核对/补偿。未知不是未发生副作用。确认隐藏也只是该时刻观察,不是未来无条件恢复权。恢复前检查身份、归属、当前状态,用户后来更改优先。 - -## 3. 慢 AX:限制并发,先别增殖任务 - -v9 拒绝陈旧结果,却仍可能等待一整个巡检批次。本轮不声称解决了同步 IPC 强制取消。W03 首先采每个应用的延迟、积压、丢弃原因,再改为按应用 single-flight,禁止旧读取未回又为同一应用启动新读取。 - -总在途任务建议上限 4;忙的应用跳过本轮,其他应用轮转推进;返回时仍验证原 stamp。数值是本份工程默认,不是测量值。超时策略必须按当前 SDK 的实际 AX 调用契约核对,不能把 Task.cancel 说成已终止 IPC。若同步读取永久占满槽位,降级为暂停相关自动功能并保留人工入口;需要隔离进程时由主模型另审 IPC/权限/退出,不在主线程无限重试。 - -## 4. 完成的四种含义不能合并 - -进入本地队列、字节写入、RPC 收到响应、匹配的最终工作事件,是不同状态。CLI 在控制器创建后才开始;关闭界面不停止任务。停止时先撤销 scope/输入/审批,再清管道和自有子进程。原 C 监督的同组清理不覆盖主动脱离组的后代或宿主崩溃,不能以进程名批量杀工具。 - -当前官方 App Server 文档允许由具体版本生成 schema;本项目仍以随包 0.153.0 快照为基准。实际 CLI 的字段有差异时,记录版本和结构,单列适配;不把网页的新字段塞进旧协议。[S02] - -## 5. 协议身份、操作范围、人的批准分开 - -正确验签只说明密钥关系,不能直接允许输入或命令。已配对设备仍需当前本地启用、当前租约和新的操作;键盘/手柄确认只能走对应 typed intent。主模型独占批准链,普通执行模型不接触私钥、授权账策略或系统密码。 - -Bonjour 仅作为发现来源;mDNS 的安全讨论不提供应用层身份背书。[S03] PIN/SRP、Pair-Verify、消息序号、Keychain 持久身份、配额与 UI 同意分别验证。PAKE 未准入时不得用 SHA(PIN)、固定密钥或恒 true 继续往下接。 - -## 6. CarPlay 不是一组遥控按键 - -Remote/Companion 的控制会话与原蓝图的全屏 CarPlay 音视频接收分别记账。要证明完整 CarPlay,必须取得实际接收链、画面/声音/输入回传/断线恢复的证据,并保持原刘海短按启动台和长按切换规则。客户端库可以控制 Apple TV,不能证明 Mac 能作为相反方向接收器。协议事实未知时只做隔离探针,不猜 TXT 或认证标志。 - -## 7. 身份信号不能拿来补授权漏洞 - -项目原目标保留刷脸解锁,但“检测到脸”“模型相似度高”“有手机在附近”“心率变化”不能直接连到系统解锁成功。NIST 的数字身份指南对生物特征有明确适用边界,包括其体系内不使用声纹比较,以及人脸需要呈现攻击检测。它是设计参考,不是本产品已经得到认证,也不应被曲解成声纹可以自行增加一个可靠认证因素。[S04] - -本份裁决:声纹至多作为明确同意的研究或额外交互信号,不减少系统认证/授权账要求;健康数据不参与放行。真实锁/解锁必须由系统后端报告或可核对的会话状态确认,动画结束不能作证。不保存或自动输入系统密码来绕过尚未完成的后端。 - -## 8. 不把“失败时继续”统一成全局 fail-open - -外部 Claude/Codex hook 在 WindowShade 未运行时是否返回原工具的默认处理,必须按固定 provider/hook 阶段适配。此前 `{}` 是特定观察或保留原工具处理的响应,不能推广为 owned app-server 审批自动接受。owned 会话没有可信审批通道时显式拒绝/取消;不要假设别处必有原生弹窗接棒。 - -## 9. 背景许可不是性能许可 - -输入功能默认关闭,关闭后不安装持续回调;计时离屏停止绘制但不停止计时。源事件分开:设备看见了、连着、读到电量、有当前可信样本,是四件事。无读数显示未知,陈旧样本不得继续当实时值。隐私与能耗预算按真实读取点登记,不能只记录显示页面。 diff --git "a/tests/archive/part10/docs/04-\346\211\247\350\241\214\351\241\272\345\272\217\344\270\216\345\244\215\346\240\270.md" "b/tests/archive/part10/docs/04-\346\211\247\350\241\214\351\241\272\345\272\217\344\270\216\345\244\215\346\240\270.md" deleted file mode 100644 index 13cbc8e2..00000000 --- "a/tests/archive/part10/docs/04-\346\211\247\350\241\214\351\241\272\345\272\217\344\270\216\345\244\215\346\240\270.md" +++ /dev/null @@ -1,33 +0,0 @@ -# 04 执行顺序与复核 - -## 一个主线,有限的并行 - -W00 建立精确候选、落实第十份小补丁、完成真实 Mac 编译。W01 在这个构建上验收原窗口、本地只读助手和手柄模型页,失败以最小文件组修复。没有真实编译结果时,不再新增 Runtime 功能来制造更多未编译代码。 - -W02、W03、W04、W05 分别接 T3、慢 AX、审批和输入,其源码研究可提前做,进入实际主程序前依赖 W01。W06 电量与活动、W07 配对、W09 身份、W10 隐私可以在独立分支推进,不由遥控器是否在手决定本地功能是否可用。W08 全屏接收单独记账。W11 最后整体验收;任何实验支线未完成,都不能被其他通过数抵消。 - -`execution-plan.json` 的 dependencies 表示合入/准入次序,不表示必须等上游结束才能读资料。旧规格“第一波全部完成才第二波”不再机械执行:许多旧部件已有候选;只补真实缺口。 - -## 文件所有者先分清 - -`WS2AppRuntime.swift`、`WindowShade.swift`、原 Journal 与授权入口是共享热区。一个提交周期只指定一个集成人改这些文件;其他分支先提供独立端口改动及准确的调用点,再由集成人合入。不得由三个代理分别复制整份 Runtime 覆盖彼此。 - -普通执行模型:限定文件和已定接口、纯逻辑与 UI 接线、替身测试、文案对照、原始证据整理。 - -主模型:安全关键决定,尤其 T3 恢复归属、A4 授权账和允许 writer、A5 状态合流、FACE-F2–F5、L3/L5、I4/I6、密钥和私有协议角色。主模型必须实际审查差异和复现;不能仅阅读执行模型的总结。 - -用户:真实账户、设备和窗口操作的明确许可,以及签名发布许可。无回复不等于同意;请求“写第十份”没有自动授权真实配对、账号消费或替换日用应用。 - -## 一个提交需要什么 - -提交单位是一个已接入路径的可核查改动,不是一个大主题标题。保留:基线哈希、改动路径、入口到最终状态的调用链、释放路径、运行命令、退出码、原始输出、真实/替身环境、新数据去向以及确实剩下的调用者。 - -发生失败,先归类:准备失败、编译失败、断言失败、超时、系统权限拒绝、未运行、结果未知。测试中预期拒绝是通过的一种;真实要求未满足不能改名为“成功验证会失败”。Mac runner 的 78 是未运行,不能计入通过。 - -## 停止规则 - -同一问题连续两次改动没有改变失败证据时,暂停扩改,只交最小复现和两个尝试的差异,让主模型决定下一种假设。这里的“两次”是节约返工的工程规则,不表示不能继续解决问题。 - -字段只能从实际 schema、SDK、设备消息或明确本地状态获得;查不到就填写证据缺口,不发明。不能为了保持界面好看而把 unknown 改成 false/0,不能为了过编译广泛添加 unchecked Sendable。 - -用户未授权发布时,最终可以交“候选完成验收与发行材料”,不执行发布。整个原目标确有无法确认项时应保留阻断,不写完成百分比或预计还需几份。 diff --git "a/tests/archive/part10/docs/05-\351\252\214\346\224\266\345\221\275\344\273\244\344\270\216\350\257\201\346\215\256.md" "b/tests/archive/part10/docs/05-\351\252\214\346\224\266\345\221\275\344\273\244\344\270\216\350\257\201\346\215\256.md" deleted file mode 100644 index be8000b1..00000000 --- "a/tests/archive/part10/docs/05-\351\252\214\346\224\266\345\221\275\344\273\244\344\270\216\350\257\201\346\215\256.md" +++ /dev/null @@ -1,38 +0,0 @@ -# 05 验收命令与证据 - -在统一 v10 根目录执行。先在外部创建一次性报告父目录;每套使用一个不存在的新子目录。runner 拒绝覆盖旧报告,旧套件会被复制到临时目录后运行。不要把 `--report` 指向 candidate-repo、part10 或整个历史包内部。 - -```sh -REPORT_ROOT="$(mktemp -d /tmp/ws2-final-evidence.XXXXXX)" -python3 -B part10/tools/run-final.py --candidate candidate-repo --handoff . --suite window-core --report "$REPORT_ROOT/window-core" -python3 -B part10/tools/run-final.py --candidate candidate-repo --handoff . --suite frame --report "$REPORT_ROOT/frame" -python3 -B part10/tools/run-final.py --candidate candidate-repo --handoff . --suite duo --report "$REPORT_ROOT/duo" -python3 -B part10/tools/run-final.py --candidate candidate-repo --handoff . --suite foundation --report "$REPORT_ROOT/foundation" -python3 -B part10/tools/run-final.py --candidate candidate-repo --handoff . --suite input --report "$REPORT_ROOT/input" -python3 -B part10/tools/run-final.py --candidate candidate-repo --handoff . --suite flow --report "$REPORT_ROOT/flow" -python3 -B part10/tools/run-final.py --candidate candidate-repo --handoff . --suite native --report "$REPORT_ROOT/native" -``` - -旧 Foundation 与进程回归另以 `--suite legacy-foundation` 和 `--suite legacy-process` 运行。不要把所有重复断言相加当新成果。root 下每个 result.json 记录命令、退出码、环境、candidate 摘要和运行前后哈希比较;raw-suite-evidence 保留原套件输出。 - -## Mac 整应用检查 - -已有匹配框架放在 candidate 的 `prototype/Vendor/Sparkle.framework` 时可以省略 `--sparkle`;缺少时显式给出本机真实 2.10.0 框架路径。此参数只复制到临时构建目录,不写回候选,也不自动下载依赖。 - -```sh -python3 -B part10/tools/run-final.py --candidate candidate-repo --handoff . --suite mac-build --sparkle /实际路径/Sparkle.framework --report "$REPORT_ROOT/mac-build" -``` - -这条命令在 Linux 返回 78。在 Mac 上记录真实 OS、Xcode、SDK、编译器和框架版本,再在临时副本执行原 `build.sh --check`。不得用占位框架、假的 xcrun 或本包构建入口替身测试来取得“Mac 通过”。候选原生 C、所有 Swift、Metal、主程序及看护链接均须经过,不删除实验文件绕过错误。 - -本包 runner 不运行不带 --check 的构建。它不是恶意仓库隔离沙盒,仍要求对候选构建脚本与第三方依赖进行信任审查。参数中的 timeout 是命令硬截止,不是预计完成时间;达到后记录超时,不能继续算成功。 - -## 真实使用另行验收 - -真实 CLI 不由以上自动回归启动。按 W01 选择空测试项目、可信且固定的程序和用户同意的账号。原生 Touch ID、锁屏、窗口修改、手柄接管、配对和人脸采集也不由 runner 自动发起。 - -记录中的路径、账号相关输出和窗口标题可能敏感。报告默认只在本机,不自动上传。分享前保留命令结构和错误类型、移除真实 token/个人内容;不得为了脱敏只留下“PASS”,要保留足以复现的合成替代样例。 - -## 本轮证据边界 - -具体已跑命令和结果见 VALIDATION.md。这些命令清单是可执行入口,列出不等于全部已经运行。本轮新编号解析测试只编译原实际函数与 Foundation 宿主,不加载整份 AppDelegate。构建入口测试只验证 shell 控制流与参数,不加载 SDK。最终完整验收仍依工单及原蓝图。 diff --git "a/tests/archive/part10/docs/06-\344\272\244\347\273\231\346\211\247\350\241\214\346\250\241\345\236\213\347\232\204\345\256\214\346\225\264\346\217\220\347\244\272.md" "b/tests/archive/part10/docs/06-\344\272\244\347\273\231\346\211\247\350\241\214\346\250\241\345\236\213\347\232\204\345\256\214\346\225\264\346\217\220\347\244\272.md" deleted file mode 100644 index 2b5edb32..00000000 --- "a/tests/archive/part10/docs/06-\344\272\244\347\273\231\346\211\247\350\241\214\346\250\241\345\236\213\347\232\204\345\256\214\346\225\264\346\217\220\347\244\272.md" +++ /dev/null @@ -1,29 +0,0 @@ -# 06 可以直接交给执行模型的提示 - -你接手 WindowShade 2 的第十份最终交接。先读 candidate-repo/AGENTS.md、docs/handoff/FINAL-HANDOFF.md、docs/blueprint.md、docs/copy-guide.md 和 design-system 中已有符号表,再读当前工单。统一候选已组合完,不重放旧补丁,不覆盖用户新改动,不直接在 main 上改。 - -先报告你接手的候选哈希、当前分支和用户未提交改动。存在冲突时保留双方正确改动,用 base-sources/overlay 做三方核对。读历史验证只为了解边界,不把旧日志称为本次通过。 - -本次首个工单是 W00。应用 build.sh 已显式使用 Swift 6、完整并发检查、警告视为错误;--check 不读取 local-codesign.env。运行第十份的独立报告 runner 完成真实 Mac 构建;没有 Mac 时只报告本地测试和明确环境缺口,仍可完成独立代码核查,不伪造 SDK 结果。 - -W00 通过后按 W01 验收现有原窗口、本地只读助手和手柄模型页。原生界面沿用唯一刘海宿主,CodexWire 管协议,AgentSessions 管已观察会话,AuthorizationService 管批准,原 Journal 管恢复。不要新增平行版本。 - -后续每次只接一个已批准的工单文件组。先明确入口、读到的真实状态、执行位置、实际完成证据和关闭路径,然后修改代码。按工单保留 unknown、过期、锁中撤销和不重试允许消息。不得用空 callback、恒 true、假设备或重复 UUID 填平源码缺口。 - -安全关键工作由主模型审定:T3 恢复身份和归属、原生允许审批、密钥、系统锁/解锁、生物识别、遥控麦克风。没有审定时保持对应能力不准入,但继续不依赖它的工作。不要将只读会话改成自动批准,不代填系统密码,不把已配对或手柄按键当成命令批准。 - -真实账户/设备/窗口测试与任何提交、推送、签名、发布、替换正在运行的应用必须符合用户明确授权。新读取写入同时登记隐私,包括恢复日志的标题和 UserDefaults 副本;不能只登记 UI 展示。 - -每次交回实际文件差异、原始命令及退出码、测试样本、合成/真实说明、回收结果、数据去向,以及尚缺的具体调用者。先保留失败输出再修复重跑。没有改变证据的第二次改动后暂停扩写,交最小复现给主模型,不用放宽断言解决失败。 - -不得再交一份同义规划冒充执行结果。完整项目是否完成按七条原目标和最终验收矩阵判断;局部试用可以先交付,但不删除未完成的原目标。 - ---- - -# 主模型的复核提示 - -不要先看执行模型的结论。先核对 diff 的实际入口与释放路径,再自己运行最小复现。检查以下错误:模拟身份变成 trusted;prepare 未落盘便操作窗口;超时后重复写;consume 之外存在 allow;同一模块有第二个所有者;配置字段缺失被默认当安全;旧回调复活;设备名/PID/windowID 被误称稳定身份;恢复标题/账号磁盘数据未登记;新增开关默认关闭却仍运行后台采样。 - -涉及真实设备的结论必须绑定设备型号、系统构建、权限、候选哈希和具体操作。工具日志只能证明其涵盖的层级。源码与替身通过但 SDK 未编译时,结论保持候选;SDK 通过但真实行为缺失时,结论保持未验收。 - -批准开放某能力前写明:它允许什么、不允许什么、失败时留下什么、用户如何退出或恢复、哪些权限/身份事实必须在最后一次物理写入前重查。安全关键决定只改变具体能力,不用一次批准给整应用背书。 diff --git a/tests/archive/part10/drift.json b/tests/archive/part10/drift.json deleted file mode 100644 index 0238b80d..00000000 --- a/tests/archive/part10/drift.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "kind": "repo_drift_vs_part10_baseline", - "baseline": "v9 candidate (part10 base-sources / sources/code-map.json)", - "code_map_remap": { - "prototype/App/InteractionCoordinator.swift": "prototype/Core/InteractionCoordinator.swift" - }, - "intentionally_absent": { - "prototype/App/WS2IslandCoordinator.swift": "本仓库从未有过这个文件。第十份候选里有它,W08 也把它列为来源;但本仓库并入第九份时决定沿用现有的单一刘海仲裁器 NotchLeaseHub(prototype/App/NotchLeases.swift,见 part9/MAC-EVIDENCE.md),WS2AppRuntime 与 WS2CodexApprovalHost 都已改接它。第十份只要求『不额外建立第二套全局活动仲裁』;在本仓库再加 WS2IslandCoordinator 就会成为第二套,所以这里断言它不存在。" - }, - "code_map_drift": [ - "prototype/App/WS2IslandCoordinator.swift", - "prototype/App/FoldCompletion.swift", - "prototype/App/FoldTransaction.swift", - "prototype/App/Reconcile.swift", - "prototype/App/ShadeController.swift", - "prototype/App/WS2AppRuntime.swift", - "prototype/App/WS2CodexApprovalHost.swift", - "prototype/App/WS2FoldCallbackGuard.swift", - "prototype/App/WS2GameControllerBridge.swift", - "prototype/App/WS2OwnedCodexSession+Authorization.swift", - "prototype/Core/CodexWire.swift", - "prototype/Core/PairingTLV.swift", - "prototype/Native/WS2Child.c", - "prototype/Support/WS2DuplexProcess.swift", - "prototype/Support/WS2KeychainPeerStorage.swift", - "prototype/Support/WS2LocalLaunchProfile.swift", - "prototype/build.sh", - "prototype/App/FaceObservationSource.swift", - "prototype/Window/AXHelpers.swift", - "prototype/App/NotchFaceObservations.swift", - "prototype/Recovery/Rescue.swift", - "prototype/App/FocusSession.swift", - "AGENTS.md", - "docs/blueprint.md", - "docs/handoff/START-HERE-deepseek.md", - "docs/privacy-page.md", - "docs/releases/v1.0.16-ledger.md", - "docs/copy-guide.md", - "prototype/App/WS2ConductorView.swift", - "docs/device-battery.md", - "prototype/App/DeviceBatteryController.swift", - "prototype/App/PeripheralBatterySource.swift", - "prototype/Core/DeviceBattery.swift" - ] -} diff --git a/tests/archive/part10/execution-plan.json b/tests/archive/part10/execution-plan.json deleted file mode 100644 index a87b68a4..00000000 --- a/tests/archive/part10/execution-plan.json +++ /dev/null @@ -1,441 +0,0 @@ -{ - "schema": 1, - "baseline": "v9-candidate", - "purpose": "handoff work assignment, not a product readiness engine", - "original_axes": [ - "窗口", - "实时活动", - "电量", - "CarPlay", - "指挥模式", - "刷脸解锁", - "隐私" - ], - "tasks": [ - { - "id": "W00", - "title": "冻结候选与真实构建", - "owner": "集成人;主模型复核", - "dependencies": [], - "workorder": "workorders/W00-冻结候选与真实构建.md", - "source_paths": [ - "AGENTS.md", - "docs/handoff/START-HERE-deepseek.md", - "prototype/build.sh", - "prototype/Native/WS2Child.c", - "prototype/Native/module.modulemap" - ], - "original_packages": [ - "M1", - "S1", - "共享合同" - ], - "axes": [ - "窗口", - "实时活动", - "电量", - "CarPlay", - "指挥模式", - "刷脸解锁", - "隐私" - ], - "status": "OPEN", - "status_meaning": "execution/acceptance remains; not a claim that all listed source is missing" - }, - { - "id": "W01", - "title": "已有功能的三条真实验收", - "owner": "主模型与获准的 Mac 执行者", - "dependencies": [ - "W00" - ], - "workorder": "workorders/W01-已有功能的三条真实验收.md", - "source_paths": [ - "prototype/App/WS2OwnedLaunchController.swift", - "prototype/App/WS2OwnedSessionView.swift", - "prototype/App/WS2AppRuntime.swift", - "prototype/App/WS2DeviceActionHost.swift", - "prototype/App/WS2ModelPickerView.swift", - "prototype/App/FoldCompletion.swift", - "prototype/App/FoldTransaction.swift", - "prototype/Recovery/Journal.swift" - ], - "original_packages": [ - "D6", - "T2", - "T4", - "I8", - "I9", - "M1" - ], - "axes": [ - "窗口", - "实时活动", - "指挥模式" - ], - "status": "OPEN", - "status_meaning": "execution/acceptance remains; not a claim that all listed source is missing" - }, - { - "id": "W02", - "title": "番茄钟实际窗口效果与恢复", - "owner": "主模型负责设计与复核;执行者按端口施工", - "dependencies": [ - "W01" - ], - "workorder": "workorders/W02-番茄钟实际窗口效果与恢复.md", - "source_paths": [ - "prototype/Core/WS2FocusEffectPlan.swift", - "prototype/Core/WS2FocusWindowOwnership.swift", - "prototype/Support/WS2FocusEffectExecutor.swift", - "prototype/App/WS2AppRuntime.swift", - "prototype/App/FocusTimerHost.swift", - "prototype/App/FocusSession.swift", - "prototype/App/ShadeController.swift", - "prototype/App/FoldCompletion.swift", - "prototype/Recovery/Journal.swift", - "prototype/Recovery/Rescue.swift" - ], - "original_packages": [ - "T3" - ], - "axes": [ - "窗口", - "实时活动", - "隐私" - ], - "status": "OPEN", - "status_meaning": "execution/acceptance remains; not a claim that all listed source is missing" - }, - { - "id": "W03", - "title": "慢AX与过期回调的最后治理", - "owner": "窗口执行者;主模型审查并发与私有接口", - "dependencies": [ - "W01" - ], - "workorder": "workorders/W03-慢AX与过期回调的最后治理.md", - "source_paths": [ - "prototype/App/Reconcile.swift", - "prototype/Window/AXHelpers.swift", - "prototype/App/WS2FoldCallbackGuard.swift", - "prototype/Core/WS2FoldCallbackStamp.swift", - "prototype/App/FoldTransaction.swift", - "prototype/Effects/EffectFrameAwaiter.swift", - "docs/performance.md" - ], - "original_packages": [ - "窗口巡检", - "性能" - ], - "axes": [ - "窗口", - "隐私" - ], - "status": "OPEN", - "status_meaning": "execution/acceptance remains; not a claim that all listed source is missing" - }, - { - "id": "W04", - "title": "原生批准与外部hook分别接通", - "owner": "主模型独占授权策略;执行者不改安全决定", - "dependencies": [ - "W01" - ], - "workorder": "workorders/W04-原生批准与外部hook分别接通.md", - "source_paths": [ - "prototype/App/AuthorizationService.swift", - "prototype/Core/AuthorizationLedger.swift", - "prototype/App/WS2CodexApprovalHost.swift", - "prototype/App/WS2OwnedCodexSession+Authorization.swift", - "prototype/App/WS2OwnedLaunchController.swift", - "prototype/Core/CodexWire.swift", - "prototype/Support/WS2DuplexProcess.swift", - "docs/agents-in-notch.md", - "docs/handoff/deepseek-menu-agents.md" - ], - "original_packages": [ - "A1", - "A2a", - "A2b", - "A4", - "A5", - "D6" - ], - "axes": [ - "指挥模式", - "隐私" - ], - "status": "OPEN", - "status_meaning": "execution/acceptance remains; not a claim that all listed source is missing" - }, - { - "id": "W05", - "title": "指挥页面和其余输入的实线接入", - "owner": "执行者;A5/I4/I6及敏感动作由主模型复核", - "dependencies": [ - "W01" - ], - "workorder": "workorders/W05-指挥页面和其余输入的实线接入.md", - "source_paths": [ - "prototype/App/WS2ConductorView.swift", - "prototype/App/WS2AgentSessionView.swift", - "prototype/App/WS2AppRuntime.swift", - "prototype/App/WS2DeviceActionHost.swift", - "prototype/App/WS2GameControllerBridge.swift", - "prototype/Core/WS2VisibleListInput.swift", - "prototype/Core/WS2SelectionModel.swift", - "prototype/Core/ConductorSession.swift", - "prototype/Core/ConductorCapabilities.swift", - "prototype/Core/HIDMappingTransaction.swift", - "docs/input-devices.md", - "docs/conductor-v2.md" - ], - "original_packages": [ - "A3", - "D1", - "D2", - "D3", - "D4", - "I1a", - "I1b", - "I1c", - "I1d", - "I1e", - "I1f", - "I2", - "I3", - "I4", - "I5a", - "I5b", - "I6", - "I7", - "I8", - "I9" - ], - "axes": [ - "指挥模式", - "实时活动", - "窗口" - ], - "status": "OPEN", - "status_meaning": "execution/acceptance remains; not a claim that all listed source is missing" - }, - { - "id": "W06", - "title": "电量实时活动和全部原入口", - "owner": "执行者;主模型审查来源与隐私", - "dependencies": [ - "W00" - ], - "workorder": "workorders/W06-电量实时活动和全部原入口.md", - "source_paths": [ - "prototype/Core/DeviceBattery.swift", - "prototype/App/DeviceBatteryController.swift", - "prototype/App/PeripheralBatterySource.swift", - "prototype/App/DeviceBatteryCopy.swift", - "prototype/Core/NotchActivities.swift", - "docs/device-battery.md", - "docs/menu-bar.md", - "docs/copy-guide.md", - "docs/design-system.md" - ], - "original_packages": [ - "M1", - "S1", - "T1", - "T2", - "T4", - "实时活动", - "电量" - ], - "axes": [ - "电量", - "实时活动", - "隐私" - ], - "status": "OPEN", - "status_meaning": "execution/acceptance remains; not a claim that all listed source is missing" - }, - { - "id": "W07", - "title": "配对密钥与接收协议装配", - "owner": "主模型主导密码学和身份;执行者按冻结接口接网络", - "dependencies": [ - "W00" - ], - "workorder": "workorders/W07-配对密钥与接收协议装配.md", - "source_paths": [ - "prototype/Support/WS2PairSetupServer.swift", - "prototype/Support/WS2PureSRP.swift", - "prototype/Support/WS2PairSetupCrypto.swift", - "prototype/Support/WS2CompanionCrypto.swift", - "prototype/Support/WS2KeychainPeerStorage.swift", - "prototype/Support/WS2PeerRepository.swift", - "prototype/Support/WS2CompanionTCPTransport.swift", - "prototype/Core/WS2ConnectionBudget.swift", - "prototype/Core/PairingAttemptWindow.swift", - "prototype/Core/PairingTLV.swift", - "prototype/Core/WS2CompanionFrame.swift", - "docs/conductor-v2.md" - ], - "original_packages": [ - "D5a", - "D5b", - "D5c" - ], - "axes": [ - "指挥模式", - "CarPlay", - "隐私" - ], - "status": "OPEN", - "status_meaning": "execution/acceptance remains; not a claim that all listed source is missing" - }, - { - "id": "W08", - "title": "完整CarPlay接收而非遥控替代", - "owner": "主模型先判协议与来源,执行者再接宿主", - "dependencies": [ - "W00" - ], - "workorder": "workorders/W08-完整CarPlay接收而非遥控替代.md", - "source_paths": [ - "docs/blueprint.md", - "docs/direction.md", - "docs/conductor-v2.md", - "prototype/App/WS2AppRuntime.swift", - "prototype/App/WS2IslandCoordinator.swift", - "prototype/Core/RemoteMode.swift" - ], - "original_packages": [ - "CarPlay接收本体" - ], - "axes": [ - "CarPlay", - "实时活动", - "隐私" - ], - "status": "OPEN", - "status_meaning": "execution/acceptance remains; not a claim that all listed source is missing" - }, - { - "id": "W09", - "title": "系统锁与身份实验的准确边界", - "owner": "主模型,不交普通执行模型自行裁决", - "dependencies": [ - "W00" - ], - "workorder": "workorders/W09-系统锁与身份实验的准确边界.md", - "source_paths": [ - "docs/face-unlock.md", - "docs/dynamic-lock.md", - "docs/lock-unlock-plan.md", - "prototype/Core/PresenceLock.swift", - "prototype/Core/SessionLockState.swift", - "prototype/App/AuthorizationService.swift", - "prototype/App/FaceObservationSource.swift", - "prototype/App/NotchFaceObservations.swift", - "prototype/Private/LockSpaceBridge.swift" - ], - "original_packages": [ - "FACE-F1", - "FACE-F2", - "FACE-F3", - "FACE-F4", - "FACE-F5", - "FACE-F6", - "FACE-F7", - "L1", - "L2", - "L3", - "L4", - "L5" - ], - "axes": [ - "刷脸解锁", - "隐私", - "窗口" - ], - "status": "OPEN", - "status_meaning": "execution/acceptance remains; not a claim that all listed source is missing" - }, - { - "id": "W10", - "title": "隐私恢复数据和安全迁移", - "owner": "主模型制定迁移;执行者按固定方案实现", - "dependencies": [ - "W00" - ], - "workorder": "workorders/W10-隐私恢复数据和安全迁移.md", - "source_paths": [ - "docs/privacy-page.md", - "prototype/Recovery/Journal.swift", - "prototype/Recovery/DurableShadeJournal.swift", - "prototype/Recovery/Rescue.swift", - "prototype/Support/WS2LocalLaunchProfile.swift", - "prototype/Support/WS2KeychainPeerStorage.swift", - "prototype/Support/WS2PeerRepository.swift" - ], - "original_packages": [ - "P1", - "P2", - "P3", - "P4", - "P5", - "P6" - ], - "axes": [ - "隐私", - "窗口", - "指挥模式" - ], - "status": "OPEN", - "status_meaning": "execution/acceptance remains; not a claim that all listed source is missing" - }, - { - "id": "W11", - "title": "全量验收影片和发行材料", - "owner": "主模型统筹;真实发布仅用户授权后", - "dependencies": [ - "W01", - "W02", - "W03", - "W04", - "W05", - "W06", - "W07", - "W08", - "W09", - "W10" - ], - "workorder": "workorders/W11-全量验收影片和发行材料.md", - "source_paths": [ - "docs/blueprint.md", - "docs/performance.md", - "docs/releases/v1.0.16-ledger.md", - "docs/handoff/deepseek-film.md", - "prototype/build.sh" - ], - "original_packages": [ - "FILM-F1", - "FILM-F2", - "FILM-F3", - "FILM-F4", - "FILM-F5", - "资格与发行" - ], - "axes": [ - "窗口", - "实时活动", - "电量", - "CarPlay", - "指挥模式", - "刷脸解锁", - "隐私" - ], - "status": "OPEN", - "status_meaning": "execution/acceptance remains; not a claim that all listed source is missing" - } - ] -} \ No newline at end of file diff --git a/tests/archive/part10/sources/SOURCES.md b/tests/archive/part10/sources/SOURCES.md deleted file mode 100644 index b36f4f44..00000000 --- a/tests/archive/part10/sources/SOURCES.md +++ /dev/null @@ -1,37 +0,0 @@ -# 来源与适用范围 - -核对日期:2026-10-03。项目事实仅来自上传的 v9 候选及原委托;不是公开仓库当前 HEAD。`code-map.json` 对所列实际源码记录路径、SHA256、行号与符号。外部资料用来解释语言/协议概念,不证明此应用编译或真实设备可用。 - -## C01 原蓝图 -`candidate-repo/docs/blueprint.md`,完整副本在 `original-briefs/blueprint.md`。原七条线、长按 CarPlay、电量全家、单宿主、授权账、能耗和发布边界依据此文件。历史中的时间与设备信息是上传记录,不是本轮运行环境。 - -## C02 前九份的事实 -统一包 `part9/REMAINING.md`、`VALIDATION.md`、`COMPLETION-CONTRACT.md`,以及原 `part7/part8` 已存在的调用链。旧测试数量只作历史,不能自动加成本轮数量。 - -## C03 实际恢复解析与存储 -`prototype/Recovery/Journal.swift` 的 `journalNumber`、`journalID`、`shadeJournalEntries`、`saveShadeJournalEntries`、`recordShadeJournal`、`recordShadeRecoveryIntent`、`journalMatches`。本轮直接检查源码;新的原函数提取测试仅验证编号解析,不证明所有 journal 字段和系统恢复。 - -## C04 实际 durable 层 -`prototype/Recovery/DurableShadeJournal.swift`。它与 UserDefaults 备份一起构成当前持久化路径。不能把文件的 atomic write 与权限设置推导为对同 UID 恶意代码、父目录竞争或任意掉电的完整保证。 - -## S01 Swift 官方迁移指南 -https://github.com/swiftlang/swift-migration-guide/blob/949b5e1be201af4346f60b243e7955bd5849f3f6/Guide.docc/EnableDataRaceSafety.md - -通过 GitHub 连接读到该固定版本完整正文。直接 swift/swiftc 的 Swift 6 语言模式由 `-swift-version 6` 指定;Swift 5 模式下的严格并发告警与语言模式须区分。本文只用这一事实解释构建补丁,不复制其完整指南或示例。 - -## S02 OpenAI 官方 App Server -https://developers.openai.com/codex/app-server/ -实际转向 https://learn.chatgpt.com/docs/app-server 。读取日期为核对日。文档给出由具体二进制生成 JSON schema 的方法;当前网页不是上传 0.153.0 的替代品。运行协议仍以随包实际 snapshot 及真实同版本 CLI 核对。 - -## S03 RFC 6762 §21 -https://www.rfc-editor.org/rfc/rfc6762.html - -已读 HTML 安全讨论。mDNS 的发现与命名机制不能替代应用层身份验证;不能据此宣布 Mac 原生 Remote/CarPlay 兼容。没有将其写成未经测量的 Bonjour profile。 - -## S04 NIST SP 800-63B-4 -https://pages.nist.gov/800-63-4/sp800-63b.html - -已读 HTML 生物认证相关段落。该数字身份体系对生物特征、面部呈现攻击检测和声纹比较有明确约束。引用用于收紧本项目的研究/授权边界,不声称本应用已认证,也不把它说成所有桌面软件的普遍法规。 - -## 仍未取得的资料或证据 -本轮 Mac 工作区连接失败,未取得真实 SDK 编译输出。不能因能访问 Apple 文档网页壳,就写成已读到 AX、GameController 或私有 ABI 的完整契约。相关头文件、系统版本、设备原始消息、许可与运行行为依各工单取得。未复制 SDK、字体、第三方商业媒体、真实密钥或连接凭据。 diff --git a/tests/archive/part10/sources/base-files.json b/tests/archive/part10/sources/base-files.json deleted file mode 100644 index 708d9b5e..00000000 --- a/tests/archive/part10/sources/base-files.json +++ /dev/null @@ -1,1171 +0,0 @@ -{ - ".gitignore": "979af68a27b2848e27b69bc2f4b2b45a1b7a27e0b19c2f20e0c1572ae779f9bf", - "AGENTS.md": "5ec0f273f4e4f46c7fc2281fd436c58b79aed02183c35e3105bd664f84854f26", - "DEVELOPMENT.md": "7900a744b56df4f4f91bf34e5bcc8ef2a9bda5dbb6a62cb7a0481f5865be9c41", - "LICENSE": "b1bd5e5e226fed0591e56f8a12c3e95163df2cdc5ea1a41df7bcdc23e52dd3d3", - "README.md": "71d62059ec243ecc89d3ee82d76f3dd217a94a1a66acfc314e092453726c3bbf", - "README_CN.md": "b5902a934d10180cec5e05a1f6b3c328d8a4ee41bcd45db811f98aa53ee2bb9a", - "WS2-STAGING.json": "81e1ce0044437dff2b349dd063fca4cb4e29de1a3b870a5189dc3c0b5fb05e4f", - "WindowShade.md": "3d4df4752cbd52234d255869f69366711e4bf3afb9020482a82a6613e6c5a266", - "assets/app-icon/WindowShade.icns": "c391bb38afb6d34d6ab250e67fb879f42c4d56af5919ab6b2b021947a904af78", - "assets/app-icon/windowshade-app-icon.png": "5f6fb9a4471230c9982865685ffadfb49608c4e0f026ff767e3407122804f5a1", - "assets/readme-desk-dark.png": "99c2459a44d3c6ce120c79abe2e1de3cfebfd942d23df9dfb422779f3787dc71", - "assets/readme-desk-en-dark.png": "6afa1709eda74780793286bad28553ae7ac604b12c4b9f15ec71f25da08533f6", - "assets/readme-desk-en.png": "9090f27082cb2ff24c07a07b82e2f408fc5012cd57e41e76140e0bc37003f80c", - "assets/readme-desk.png": "7d5b75a5f681bb721dca728a5b31b7f6b8f0842a38c8adaf2684a4b6196d6a34", - "assets/windowshade-demo.gif": "328f44f4da1265a7dfe0e5ca294047a4f9a25a4e2da1d9c631e449335262925d", - "assets/windowshade-hero.png": "577ec0e66653bb826cc638bf5a82b30afa82c196ed5985fc2e355165f4ce4f17", - "assets/windowshade-lid-en.gif": "7bb2a6219a9937b9f1d7ff31f6452c598816bd15eb88931c1cb4318a1ec67bc0", - "assets/windowshade-lid.gif": "2998c24b9e05852d3373810f20112a17c3ad7b72c074230901c92502fd07ccb0", - "assets/windowshade-menubar.svg": "154365b3f54725ec11e913a6bd772a468dd24d7c968f32a1007ab0bb2fd9f8d5", - "assets/windowshade-settings-dark.png": "ebc62f0aebe62073f3c130dfb546aa99df6be6664b4f7b470d0b015127dd98f8", - "assets/windowshade-settings.png": "d61516dc78124b9531b8febc2ba3c8b2faafe3b1a8f1f501a8a6ee6903855d28", - "docs/RELEASE-v1.0.10.md": "2ad3ba06630f9c018bbe28cf2170b256e81b456c78d25e50908a95759bf4e315", - "docs/agents-in-notch.md": "98664f72fa7279b8ecac4674574fa4063a4457f5a286b82cf4faf7ddf44b3b78", - "docs/apple-accessory-interoperability.md": "c800abbb2b4bb1888194d4bee5cc4a9ba88f9770b29819b255b25ea910db4840", - "docs/archive/2026-09-13/reviews/app-experience-priorities-2026-09-13.md": "f8c88707b398d0e2bb16816238fe546396218ceb7e57cbe6b05d38bf80709be8", - "docs/archive/2026-09-13/reviews/native-shade-review-2026-09-13.md": "1e2f4d5e92a7006040e49c92277b11dd5393d482c1c67fd860b7f0edf88a54db", - "docs/archive/2026-09-13/reviews/near-term-plan-after-history-2026-09-13.md": "8f0834faba6f78bf62417ccc04a39c47d7dc3f4ce3ad1dd271e6d5af33e1d843", - "docs/archive/2026-09-13/tasks/design-v1-progress.md": "54ab9724a8026c6645e56a8d096a84f2c94bf7d45ca3bf409dd0e7be72e256e9", - "docs/archive/2026-09-13/tasks/release-v1.0.11-progress.md": "9ec0dab218d521e0a65df205a6c3dc4dc6c660e96ba0b0ffe15d5c57fa42e5c5", - "docs/archive/2026-09-13/tasks/website-progress.md": "63c234095f4d237b04505eb70c76cc5d63086083422f33baf246becda1936262", - "docs/authentication-boundaries.md": "9ac894b177c752bbe1777cea1e399864690de1e9bc8f46e7e6b0926865e312ee", - "docs/behavior-risk-research.md": "3fd394ae3291701174f58745727e35e2b7395480b302f371538a1b412a034dd8", - "docs/blueprint.md": "c9f10268752be9c75d6d269de73e58309c94d409a9b7f64233f595a40ff11de9", - "docs/claude-lanes-2026-09-25.md": "9eee45a2e910478a0a13d411330dfb835f55043b4d35053957f45e52a33342b3", - "docs/competitive-analysis.md": "b4a109a4db795f5f8d07f158cd42cbb982b6a2272881d14cb3731a5253205008", - "docs/competitors.md": "fbf5b07f817834a951af1c95cd036d68e14f4d2be465b5160a5412335021aa55", - "docs/conductor-v2.md": "5c435d7e17bbdec2ba828718d5830721b77dd2e73d21e63c585f92d8a62d0494", - "docs/conductor.md": "ff7720f65b4f337f51c20e0e75ba726fbe0580ce600f48c962152462606875a5", - "docs/copy-guide.md": "029858deb8ef6823440e3df738c1e96c0b47b55a8dd5150313c82db1af1ff2b6", - "docs/design-proposal-claude.md": "a4a1d452d194efe13504d511ff868eeea2bee50d12ccfa62c662597270162033", - "docs/design-review-1.0.14.md": "63d59ef156dbf6aff25c88c34205779d172180dbd2a96db3ccb6248c5f48a33d", - "docs/design-system.md": "65b56799b1c169d2c1b6424ee00e22e5726acfa9253f353142e64bcbec491c62", - "docs/design-v1.md": "3b623a284c9951ddec2df0fa7711f9da1f774b5f37aad74f1b8cb0560b8ba7be", - "docs/device-battery.md": "655de0eacca269fdf91a946404ccafc493b2cc5fed5cffe925cd002491997358", - "docs/direction.md": "513e4f42d4d9ace6226f112144b6c4bddfa8af9eb32764111ed852bda48c8d60", - "docs/dynamic-lock.md": "1b355f08a3f3cb02b41f4667a64c259cd30e1ea33001a5dd1af6b24c3f70a85b", - "docs/face-unlock.md": "9c191b9a39e43932e0bf8c587a8e0f8d849752bb6f6ef52fe4078322e8c4f59f", - "docs/gestures.md": "285d619c2f6b4d8bb060aecf7eb8f2a09af65d56749ddc304e3ca85e9aabb62d", - "docs/glance-integration.md": "e43ca70196487a22fe82e931b579bb8ddcee08847018566c4f51c02fb9d0d66c", - "docs/glance-pro-prompt.md": "4338691621669764d139c5f8050d4617d4c9a059aa41120b4c5ac516abafc63d", - "docs/glance.md": "bdd5a636348bb5dfe11959853823af7106e3d0fae37a3e0f4a60454f8e8eb5be", - "docs/handoff/START-HERE-deepseek.md": "f312e6ff55ae910ad7d4c4127f1548ed0b711f709ca23196afa0449094010edd", - "docs/handoff/chatgpt-2026-10-01.md": "f678d00a318bc5410ae6860b33f81d3454256d853438779c0118deb4e786134a", - "docs/handoff/chatgpt-review-1/README.md": "0ca20d0db3d61bfd18a72354e9158ef4478688c0a4a46070b5e1a85c546a4fac", - "docs/handoff/chatgpt-review-1/SHA256SUMS.txt": "079c3957536797dfafbfae9f74fe48e19b918a95884fda8e8fcd89459f41501f", - "docs/handoff/chatgpt-review-1/cheatsheets/A1.md": "adc107b5763dfde8f2d669beeadc93f9bfd114d6d0aac2b9de25335794376eee", - "docs/handoff/chatgpt-review-1/cheatsheets/A2.md": "04ff8017adb9156c2c2496c164f3e352c3eade229b0d9ba4c69ae6c056b70624", - "docs/handoff/chatgpt-review-1/cheatsheets/A3.md": "379e1a39001a2fd502516d043af340eaf1257d5b0d2a3f16591cacd74a4c3ca9", - "docs/handoff/chatgpt-review-1/cheatsheets/D1.md": "e403d3183b448a1514b90e55e720d44adef17fc2d5fe25338565a62315bc1993", - "docs/handoff/chatgpt-review-1/cheatsheets/D2.md": "1983bda7e1e093584419712d07c1e94dd84b191acebc462e0130a10568e84be6", - "docs/handoff/chatgpt-review-1/cheatsheets/D3.md": "84b92e38cb08e6933e7395f2f64a56fac3b369d1e2fca4c42f8e6e40e53c63e5", - "docs/handoff/chatgpt-review-1/cheatsheets/D4.md": "755ca88033a8cb843fcf7f1ad999a1c70aeb9c9f888f07b0922718230d72b2bd", - "docs/handoff/chatgpt-review-1/cheatsheets/D5.md": "7f8724b9ca5a478bbcf056ae06f4492ba79e1d332a751734b86fc9211e7bebc9", - "docs/handoff/chatgpt-review-1/cheatsheets/D6.md": "a9e31d9e24a438a5c1e0a81d05701322db9f139ad8b9f396e1f65ae68ec28cea", - "docs/handoff/chatgpt-review-1/cheatsheets/I1.md": "a38018ce17c1b050c95143a0ec4f45a180416be31903644ed75f3b01501fc48b", - "docs/handoff/chatgpt-review-1/cheatsheets/I2.md": "bce16beca45b52c1ab57a2c030b3ee4532ed0cb0bc089d3751d68842a0c5cbf6", - "docs/handoff/chatgpt-review-1/cheatsheets/I3.md": "18a777ed326e8f7868ea342aaf0d1915fb6535634c3c7415e3a37df934f443a2", - "docs/handoff/chatgpt-review-1/cheatsheets/I5.md": "0dc7a74285b65a9d1dccc74c30d431c88a3d546c2054e017bb9e72e0e106ebdb", - "docs/handoff/chatgpt-review-1/cheatsheets/I7.md": "48e7bb066942c2eb78ef61eea181923f91c290d8a411d025c3f5d3d9217d72c9", - "docs/handoff/chatgpt-review-1/cheatsheets/I8.md": "3140b4c4966fb143a1adc80bb11c85610ff2486ff9fe1d4234cf4d44baec756d", - "docs/handoff/chatgpt-review-1/cheatsheets/I9.md": "df4bb906aeb11235b8d2950b4d0a7b1237175f875bb7e99768af250662caa453", - "docs/handoff/chatgpt-review-1/cheatsheets/L1.md": "a754c73f536ecc97bf67403f1240ec7f95dd55260c95643dd899193c1b7c17b0", - "docs/handoff/chatgpt-review-1/cheatsheets/L2.md": "0b5afb352ff702231f428a9489218f21191d3a89bd40520ab6a567e56f26c61d", - "docs/handoff/chatgpt-review-1/cheatsheets/L4.md": "f031742b14198a91ff2b55e4d5483337acbbb4ba39bbb7e88ac3ff33bb6b0c77", - "docs/handoff/chatgpt-review-1/cheatsheets/M1.md": "00957894b035ff5f330b33eb3a4d4a4fec24571893fd50e9377765420bcaf509", - "docs/handoff/chatgpt-review-1/cheatsheets/S1.md": "bd4b14058babac734ca2ffde9c8246d89570347c9a06716a67794c37330dc869", - "docs/handoff/chatgpt-review-1/cheatsheets/T1.md": "5f0f410b637169e03d712d75919b99dea806836646f3473d463e40f841aed278", - "docs/handoff/chatgpt-review-1/cheatsheets/T2.md": "3f6c09e6f33470d62fdc13d9780017e215ccc71711ed809a99bd75c143cf44a2", - "docs/handoff/chatgpt-review-1/cheatsheets/T4.md": "6af354f834a4a74d499c010e7df3336f94d10bdf5d7b982ee98a1ac3ff5b8954", - "docs/handoff/chatgpt-review-1/examples/A1.swift": "9dadfffb018324d792f394d392dacd5b4248b31952d08cee7c3db8b63fc84f99", - "docs/handoff/chatgpt-review-1/examples/A2.swift": "f4f9926222ce3ab43cfab99be4b14f68bc493c88a96fc43804a9497777204610", - "docs/handoff/chatgpt-review-1/examples/A3.swift": "5c7608e773d33f0a1b868377b07f621fcc7323d192a039f868003d9273be00cf", - "docs/handoff/chatgpt-review-1/examples/D1.swift": "d9c68e8dda1a02cd8443b325d9efaac4d613e3b10e5d8967b73094edfaa274ae", - "docs/handoff/chatgpt-review-1/examples/D2.swift": "782124401297858c1c1595060747b636c95695046b20b29aa0ede14858666944", - "docs/handoff/chatgpt-review-1/examples/D3.swift": "075a195bb9e32c84c019e1e09ac2d71ddb0c4d2a0cdc9160e3d783b9f2f1e9c8", - "docs/handoff/chatgpt-review-1/examples/D4.swift": "0ce653a07e56078ac82aa4385519ded4e0b5a5b1eb621624050aa0148247d274", - "docs/handoff/chatgpt-review-1/examples/D5.swift": "7af79bc13e94d075e7d363febf3781690fd52e3687ba4d450b420ddaf998d0ef", - "docs/handoff/chatgpt-review-1/examples/D6.swift": "8c551e61ac2ece44f84037e1c8d20260ff53c568441f17c8bfa9002ddcad1906", - "docs/handoff/chatgpt-review-1/examples/I1.swift": "e2ce0a23f28d5804068f49d94559faf7627af06acd55f94fcb7ed77761d00c2f", - "docs/handoff/chatgpt-review-1/examples/I2.swift": "924808e02e2ced9d2e61536f07ecb0c1233defed5227c89850830bcdc9ff1993", - "docs/handoff/chatgpt-review-1/examples/I3.swift": "cf57fb29f59a9e3d853393c278152276b323a8e6c45348afaf1dbca3d4678a00", - "docs/handoff/chatgpt-review-1/examples/I5.swift": "7bf1e8c69a00ad86b74dac41e154af3c47fe7bc27adb726d321a5bf87d54cbad", - "docs/handoff/chatgpt-review-1/examples/I7.swift": "9c569cc2fe4b5da9d35685bdd423d2d49d6c3a864d9eb0870e2c5a8d4a908952", - "docs/handoff/chatgpt-review-1/examples/I8.swift": "9035f9ef3ad52dc3eb1919631be54357ba79c7b8b325000be4dd4076b68e4ffa", - "docs/handoff/chatgpt-review-1/examples/I9.swift": "522bc168abe6bdde86eb42e4f661b8198a7251e11fe38eea51b66bb7c1cb48b5", - "docs/handoff/chatgpt-review-1/examples/L1.swift": "49cf160cd5e4f8b1da784a170a77acfcf183c71afd53cff4827c29ed6ddecac8", - "docs/handoff/chatgpt-review-1/examples/L2.swift": "ad579f43fbcf02db5fe2141098c00149f9324b052b5dd799873ba9e0199496c3", - "docs/handoff/chatgpt-review-1/examples/L4.swift": "096461756b2985fb3adf79cef73541c7a6429425745b1c76728e5719b85090bc", - "docs/handoff/chatgpt-review-1/examples/M1.swift": "4cba363b11a35c4f201441696829c66be059eff4cf10ba97400cfdbe0d6b9e13", - "docs/handoff/chatgpt-review-1/examples/S1.swift": "90046399a1e175342c280088e2f7fcc549796c88ef30e7dc615a9040894d9dd7", - "docs/handoff/chatgpt-review-1/examples/T1.swift": "a43aafbe1b3068fd62f2d7ed96cc656460f6c56842d5df4716463df6f2c0099f", - "docs/handoff/chatgpt-review-1/examples/T2.swift": "509363204ac8e73decd1e9323dfa73294e6b196736af09a06b02acf78f03a972", - "docs/handoff/chatgpt-review-1/examples/T4.swift": "e2d4bd8fc78c1b38ac0e9e733bae5ebc94d516a99cce3d6bd25d3213d72d6fb9", - "docs/handoff/chatgpt-review-1/fixtures/README.md": "640b3f3f163e1d90cfcea6e9f57e37f9e33e8b30726ea5b36280f123214e5f3b", - "docs/handoff/chatgpt-review-1/fixtures/app-server-client.jsonl": "bd674728d061d7e703f84305fc8b947ab33d54aa3930e202d08fb50350777ca0", - "docs/handoff/chatgpt-review-1/fixtures/claude-permission-config.json": "dea20a25e015b61ad56d0343a993fdbcd2dee789ba5df296f730738e82cd4611", - "docs/handoff/chatgpt-review-1/fixtures/codex-permission-config.json": "3a181b2bfdd8a29da003cf954fbe3aa6d9fdbd88487fdbc80b5207d61778706a", - "docs/handoff/chatgpt-review-1/fixtures/hook-allow.json": "600d7470494907251e4ea8186239c1451cd1784487cda22d6b54552114d7cc01", - "docs/handoff/chatgpt-review-1/fixtures/hook-deny.json": "2664ee0eff0c12b2f2df5399b55bab2f1561c3ba8e217f15c501227784af33d4", - "docs/handoff/chatgpt-review-1/fixtures/hook-none.json": "ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356", - "docs/handoff/chatgpt-review-1/prompt-patches.md": "3970e18ff040c8bc28d6b3b98245589b76bef970f04c26ec1ceef0b671bc17ab", - "docs/handoff/chatgpt-review-1/reference/contracts.md": "0729a25fa1594ef60cf37987555c8ab8dd2b7553a3e544e6b26130a101327cf0", - "docs/handoff/chatgpt-review-1/reference/hooks-and-app-server.md": "6a2e2835b21f556f1af444b345d76dab43da4251e628bd1422639c6a3f9ddccf", - "docs/handoff/chatgpt-review-1/reference/private-abi.md": "66e6571fc608d2576483ad2e116de25c3efe169402fb59ef0cf27d7f056fed0e", - "docs/handoff/chatgpt-review-1/review.md": "47703da5d5f1655ec0a5da707f068c57f1f260a8739168e26c478a1284f4e7df", - "docs/handoff/chatgpt-review-1/sources.md": "641bf7a197ae422cbe4d175bb45fb146a4adefc8f4cd8c8f3fb69f8bb298f48e", - "docs/handoff/chatgpt-review-1/tests/BoundaryTests.swift": "eaffe60df038bee7e39416f76dc8b7822c256eb2ab214fdc87cf0cc576f36666", - "docs/handoff/chatgpt-review-1/tests/run-boundary-tests.sh": "9a961256a37a69793d857f3220259d95c1720e703b1b8801b66c4e2e0818bd52", - "docs/handoff/chatgpt-review-1/tests/typecheck-examples.sh": "5e95d1bcda7c5f9a43a1b10b41b03af2c2954d2c805d3f5523089cd5a28501b1", - "docs/handoff/chatgpt-review-1/validation/boundary-compile-initial.log": "0a1a3b4d334ae6d48384689dc75a606014627c85d1495543121f36bc42aaa639", - "docs/handoff/chatgpt-review-1/validation/boundary-compile.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "docs/handoff/chatgpt-review-1/validation/boundary-tests.log": "b52b633d69e30d338d6c663efd9a5bab8b4f31382980eafd22156a8d449f7e73", - "docs/handoff/chatgpt-review-1/validation/conductor.log": "b1c223ab3be82a19bad2d7045fca062b892f9d208a5fe2327a750631d6e03fc9", - "docs/handoff/chatgpt-review-1/validation/example-platforms.json": "348e6fa8a64fd6b410deead88c6bd362a0e4b67c6b62935e4afe5e52b2aadd00", - "docs/handoff/chatgpt-review-1/validation/input-manifest.json": "425381da32fa4201535ac58c825692421f69f93ec15886b5a36ab068b085d6b8", - "docs/handoff/chatgpt-review-1/validation/notch.log": "3caae3d18fb3c30e5a3a00cb2bf426bb2e592e741d536b57fc5425ee28f89c1c", - "docs/handoff/chatgpt-review-1/validation/package-checks.json": "e95d0050afdc95a28bdb644d729d509920a2789e40fcc8b6a4c8a68c59fca3ba", - "docs/handoff/chatgpt-review-1/validation/review-findings.json": "c4c3358c8d09572b9d2b6612f8d86a6041d0b0d6daae140f9e2ec078adb693be", - "docs/handoff/chatgpt-review-1/validation/runner-boundary-tests.log": "b52b633d69e30d338d6c663efd9a5bab8b4f31382980eafd22156a8d449f7e73", - "docs/handoff/chatgpt-review-1/validation/toolchain.txt": "eb9fe405b65bcda75635327f6ca704543098f4e7d882bf5d2541a6fca34725d6", - "docs/handoff/chatgpt-review-1/validation/typecheck-A1.log": "1437a814bdebfb68c840f013a8349705a6a5ca70efd2d0d471f7db4a14660dc4", - "docs/handoff/chatgpt-review-1/validation/typecheck-A2.log": "b06947a044f7cbab3ae04ba9e4172d4dd2df23dd7b909993738e4cfdec96581c", - "docs/handoff/chatgpt-review-1/validation/typecheck-D1.log": "5bfced18ec7a04276205c9c83431adaa3fde3b430a980514f4b19b4c7550987d", - "docs/handoff/chatgpt-review-1/validation/typecheck-D2.log": "a2b9d07b9f09ba42353a540e7e4e3c9e8eadb0aabf5a6a6fc487496603fbccf7", - "docs/handoff/chatgpt-review-1/validation/typecheck-D4.log": "a1bf465ca3224f45a9b9c628c164b34624167d275d9874667b3b8ad0e7563f94", - "docs/handoff/chatgpt-review-1/validation/typecheck-D5.log": "4c5db623090d9647446293b944424bd8a1ca0a214a7ad646a810a8f786c5f833", - "docs/handoff/chatgpt-review-1/validation/typecheck-D6.log": "b5f48fa3c46e4a9ab4d4614343dc8120f818bcfeaea89d2dff91a0a31f442206", - "docs/handoff/chatgpt-review-1/validation/typecheck-I1.log": "b54a2662ac6a3d67d6cbb407b52784749949417ff91e85b89fa0ac9a052e69aa", - "docs/handoff/chatgpt-review-1/validation/typecheck-I7.log": "ae6b44eb541b2157885f461debde513e9a35b6c4f2f7368bccd08a4d9d9ee8b8", - "docs/handoff/chatgpt-review-1/validation/typecheck-I9.log": "9b227125fd98c7d67825784358e3aa833ba226d2d5d6186c5b6ef161b4a5f022", - "docs/handoff/chatgpt-review-1/validation/typecheck-L1.log": "06834f3abdc1f9f45bb7516cd7021e6b0f154c4b51a5a11f7df6e25f818ce2c3", - "docs/handoff/chatgpt-review-1/validation/typecheck-L4.log": "33ca1ccdfe388bb7167fe264b9f7ace299d961f62a281226701f5800cd8a09e2", - "docs/handoff/chatgpt-review-1/validation/typecheck-T1.log": "337c6e923041d64f295587ab0ac24bfe850cbeccdefe4ab3d6b985ae52d285c6", - "docs/handoff/chatgpt-review-1/validation/typecheck-T4.log": "75d2e7ec7e537f5e7efa83b40adb2807ec5a183d5638485eb095df20ed8cf3ab", - "docs/handoff/chatgpt-review-1/validation.md": "4e80eef0b2b25f940fa25cf67e5045f0cd5a8183115e0fa2df3ab603296b3db8", - "docs/handoff/chatgpt-review-1-verdict.md": "4caa17fea8390b7d92dbacae8c4d65918a1dca276b6ba25873a015867a38eb5d", - "docs/handoff/deepseek-conductor.md": "723a8eb65df8c26167947778ec316fdfe54d1213b68ed816f431c9bbb418cc2c", - "docs/handoff/deepseek-dynamic-lock.md": "d4f109f113ccffe680e716a74d34d67743b17b87904628974916d47496d724ce", - "docs/handoff/deepseek-film.md": "f935b56ffbb3986db04f9d4489e8dcabe5c3c164e4aa8779d535a95ca34df965", - "docs/handoff/deepseek-input.md": "3452f91df3b1c22b85e5afbdcd5574aa2d44c6e2f663be3df64189d1f30d06c3", - "docs/handoff/deepseek-menu-agents.md": "f1d69f88f3c1dc6204389ceba794df9a3f1295cc86a6b6043153e599860c34bf", - "docs/handoff/deepseek-pomodoro-symbols.md": "538c97c89de9fa2df681aa754a8c4b5410b3eb451dbcd8344517aba96e7bec52", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ApplyPatchApprovalParams.json": "179d91081c3c84d0f79fc544a3d6d423f280c0f9d93512cdd0344c80e09b99a3", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ApplyPatchApprovalResponse.json": "a5e145b4794ea91da6eb478626fac96bbbd4485c3399fabd1c9972d53d2d9010", - "docs/handoff/reference/codex-app-server-schema-0.153.0/AttestationGenerateParams.json": "b85df8f169cfbca98724df3a5f7550fc4649fa69b23f5160aafdb52e027133a8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/AttestationGenerateResponse.json": "2eb86b2a37bca01a8cb5d0822f28cf13d46dd106c8b1d38e7ba097e436b5ab30", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ChatgptAuthTokensRefreshParams.json": "03b7a734b8b3180d9cb477b33564385d29b22a2528165a614891f13849060503", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ChatgptAuthTokensRefreshResponse.json": "06d6b30436fc962d80b5d7920f8f323de12a052214d9148c5f0dfbaedd5eec6c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ClientNotification.json": "706cf248d75027c84a3c63348d0ed507182e8eba40069dd17541793de029145a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ClientRequest.json": "25bc001b5dfe3b35785597b8f9ad9e5aaf7e437331fa9921f041c9e0e03fc9f3", - "docs/handoff/reference/codex-app-server-schema-0.153.0/CommandExecutionRequestApprovalParams.json": "16a71816c2d66e319c2c4aa83dd636dfdc43c61e72b6d5475e421ce08d8e6558", - "docs/handoff/reference/codex-app-server-schema-0.153.0/CommandExecutionRequestApprovalResponse.json": "6d0767113e22f311381809b6b236b0dde2b99b01992879c26bf7b1ea0e003cb7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/DynamicToolCallParams.json": "401bba20cfbd95762bef0467d840430c46be53369093ad9f26425ba757e34efc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/DynamicToolCallResponse.json": "abb082cad67f11fcc98ba75f2eff75d7d1723af0c657655329b83ff160451a02", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ExecCommandApprovalParams.json": "653116614df1aa5011c3cc399cf79bae6b9eb28c1d527df27275abf61ceb1365", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ExecCommandApprovalResponse.json": "80dba6d9f28d19c57960db72340554c193624f014cd496714a0c7aabe1120046", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FileChangeRequestApprovalParams.json": "13848b26814c286ad6425a20d01c1691c86790e1f9e2529399677a8a22fe0d18", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FileChangeRequestApprovalResponse.json": "b95b03ee6be674e25cee2e863cc135a28620e1070addd2f34685aadee27cde08", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FuzzyFileSearchParams.json": "0291dbb87a7c3d8ef7f7cdf8d5d61f929deabab8c0ea79f064da95984d7d5f4f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FuzzyFileSearchResponse.json": "4984c3dba591e240407c39531d41c6b499c4816017de70a3371c7d6fa2d0951f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FuzzyFileSearchSessionCompletedNotification.json": "d3af2e301142ac0cb2462d95b052162ff4f25d83f9c1b21e319d5ce9c860d401", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FuzzyFileSearchSessionUpdatedNotification.json": "b8626521028e0c68611c57d458f27dbc9bf8be542e804865ae0d14acd78cf2e6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCError.json": "d7ea353d4875ae204625da5a00a1ecb5afc69101d5778b9acc253a49f8932992", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCErrorError.json": "12cc5cd5d9df9246defa609c472375020fe5250f3aeabd7d529076cecd9f541e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCMessage.json": "6da4cc373a7ccd01f5608ad4496eeb4d44b6a9b0d3158e85ed66b59f3c0b5114", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCNotification.json": "c2b43f26880db331393fe09f34bdd76dfeb4dc30d8418d1c26e18db166d6c8c8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCRequest.json": "31bd6f360b2dd8a7ceaf682708105d40d38cb0b9d0821357a04da67028438f73", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCResponse.json": "4796738c04c74288213a08fb8d820c7b4df19e0977cdcd35b65ffcb43cfc93ab", - "docs/handoff/reference/codex-app-server-schema-0.153.0/McpServerElicitationRequestParams.json": "5cbeb6bc702d2efa076da4c1dfb00672c970c1bad747031eb880b9ab907815c0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/McpServerElicitationRequestResponse.json": "792a012fdfe53ac211575a6c37ffbd492be848d15cb313d1bb4b534ade1f54ac", - "docs/handoff/reference/codex-app-server-schema-0.153.0/PermissionsRequestApprovalParams.json": "c6d165e1b0c65d5dcf1e099b4c226c7e4dad79fe2b88b03621a1fc6c1d3c86c2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/PermissionsRequestApprovalResponse.json": "23f3f24e9dbf35db3e0b85703f0d934da5a1cff3cbb611fba8bcd41f3b4a04b0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/RequestId.json": "9c72d59a306d827113020c6d31a14c326d55210d9bd6954f825196a52009f1c7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ServerNotification.json": "b3e76cf11842f3e8b3270c05e000212b56eabafb0152fc38e8f920e2ef902991", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ServerRequest.json": "31f580ad468fbd18766eb7adb12744be4e3790e3357b58bd4413c0108c4f65d0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ToolRequestUserInputParams.json": "fda15b62e7446105b59c8ed85c908abed2a47db70653e57c92c47a2f204fa77a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ToolRequestUserInputResponse.json": "5073b245f741fa8ce62ec52e4dd1809b7831f9c4284c279a78abc9b171f8e3f2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/codex_app_server_protocol.schemas.json": "e8284c5cb8157554a3dd1e035aadbd4325aea501af56887e9c2e12eb1b9b9448", - "docs/handoff/reference/codex-app-server-schema-0.153.0/codex_app_server_protocol.v2.schemas.json": "d3eace08be5dca386bfd1f1e8df650058b4113f1e10870a284d775d75517576a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v1/InitializeParams.json": "6f0094be9a65242ec779a40794cbd4fdfa32fca1e45084a16adfb50501d33ea2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v1/InitializeResponse.json": "62ad689c2cb6379913c1d72749cfd8de5089d35760214123518eb92eef11acc9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AccountLoginCompletedNotification.json": "d81e8821fd5a4a9ad118dfc3506ea156d32dcb18da388b336501bbc6a5ccb4a6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AccountRateLimitsUpdatedNotification.json": "c50daa6abb4723ca1edffdae9d0d6ca452770669ed045fae48d0fe9b20c6ea81", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AccountUpdatedNotification.json": "9bf450d9d9ea23a2bac9c9cb0a68c2de8f89a97bdeb4485c91762bb4d43295b8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AgentMessageDeltaNotification.json": "996e6c0ea65e57bed5a00f410b94381fe5ebf804333e5d00c2b6e6d47e5c55f6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppListUpdatedNotification.json": "2c67a3bc676309afdd0d6952ad454c2a040a3d4c09d38c8f63ca7fb632034cce", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsInstalledParams.json": "c2027510d5d041c2205349036f9c2bea10b20df309de5330beab9de8a9e50bdb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsInstalledResponse.json": "d8ef8dd14dcba8aaaaaf2b0b80db90d66edf8f4ff422589b844ae2b0edcb46d4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsListParams.json": "e880d0c24811118a2d3c2c7f0569a14aae5b12a31b0efe56809ccca8bbd85802", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsListResponse.json": "5811fda68d6274decfc11744ad72bbe93e601d8514549e94f361ba3131d1adeb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsReadParams.json": "61e6a9d35515f3164a7f7e7a5b0c5ac92817c5a3b5d7fb27e9a704fe2935ddf7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsReadResponse.json": "f3b73c2c31f16a2cff013c9682dfea48f26571f94002195c93ce10722a288791", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AuthRecoveryNotification.json": "c19238d43cf8bf610ea346afefc390b9ffa4f01e98ec6b42af0addf29d6cb7d5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CancelLoginAccountParams.json": "a4570a7542b82b918f69199f1e214ef747151c678473a5af58c58b088fdf58b6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CancelLoginAccountResponse.json": "06bc17624df01600fdc399d3c0f222f875c010d2d952c1d1191cb84de9b59014", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecOutputDeltaNotification.json": "28e74454b211ab677a256129e623fc5a2a29ce5394da1c69d3bc5136f7e37c57", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecParams.json": "e4f20080b92c6199cf132941840c4bd0fb9a90e3fec197ceb0e1ce9084346e18", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecResizeParams.json": "b748fee19979d2c32ac17a460ccfdc761e125cc2939bc551945e1e2c2af34197", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecResizeResponse.json": "01da20d70957fa5b43cf41365c5fee4fb3a69927947a45f92866f9bcf0895d0f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecResponse.json": "dec52d187121e8dd48124b47a4a8d8428ef3717b98b9200345bb404f73b62c9d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecTerminateParams.json": "979ece7059c6713d0909ab1690daec27149510f4ea2ec10014600bfb1d631c97", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecTerminateResponse.json": "d46aa76d952bb3ac95d0bd64de609fb8a82efd98d9ee38264fe3673fd184ce5d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecWriteParams.json": "3e8e849ce321c85987bbe96ce1f913df0047696a5207bc97dfa1409b0142eda8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecWriteResponse.json": "22887250f84443b2a6f5fc6f9c46cf9e2af072ff631574340018c48771411571", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecutionOutputDeltaNotification.json": "841fa94098ddb63a71acf1bf5f9e3fac1b0491f4ed3fa8ef86f9a6ca1260b539", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigBatchWriteParams.json": "d11e244258ffaf8a37a0ca4afdbe589d07cb7881b72f06b7f730fddbab9ad613", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigReadParams.json": "257c54a423b47c1d209ff1076765a1564d82322fd5161670fd489a2874de1bac", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigReadResponse.json": "bd72c94e2c7d49ead6a20bcf54afedc8db11044bf8cadb387e42135dd5d1e342", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigRequirementsReadResponse.json": "7f3cd9856eeb581985a4dcd1acd90be8efa30a7929a96e4e74b6b9a3d878118f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigValueWriteParams.json": "b9032e35bf64d4628bfc72e22b58b71bbcf754aeb720a86eacb091e0137547c9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigWarningNotification.json": "533e713405b582cce4d772d0b4ebbc75e840f0fe71cedbb17c2c83da285a21d4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigWriteResponse.json": "1d690287d9e8a0c552f664038d3810dfc3903ec8042eb2c0f772856414f59954", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConsumeAccountRateLimitResetCreditParams.json": "ce36a9f59ce3b8138fccdca042538f723e93d0e34d08441e6846d3153ee0b291", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConsumeAccountRateLimitResetCreditResponse.json": "6d4144c00dcb7f73be6ad24693ff7e539bad56064e4432f7f2bf8d20b3bab724", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ContextCompactedNotification.json": "c9f9a58ef680e09d568cff5f24b45895841e1cf138b650bae64dcf6c85f177af", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/DeprecationNoticeNotification.json": "29fdb44fc0a09bfdc5c4924ff34e33679acc9201730fa4fe9be7ed1978af0b72", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/EnvironmentConnectionNotification.json": "007e9a6ccae0003a56476bb7cdc9a097141e964c168e7ae43d213a763c93fb56", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ErrorNotification.json": "d77732536ef8864799e4fbb5bf6965a9f1970a6195e523f144252a82287c08e7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExperimentalFeatureEnablementSetParams.json": "00aaf2ef719cc336e4d20eb26dd6158be1eb26161fb7647372804b80a02e3131", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExperimentalFeatureEnablementSetResponse.json": "5ecd92ee95380d7cadc4c109091530aa71245e41b9f1b530a5e9d5c5c9eda95b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExperimentalFeatureListParams.json": "4db92977e59fea4125710babb4cd2128dc2cebef8292e3619d0844089e7fc1f5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExperimentalFeatureListResponse.json": "4084a25f32333b3f58eb5e9803a5983739b57f945c4e7e4002e85851622ce597", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigDetectParams.json": "db6c6ea654efb4095dc745a1e65bee76d0d063b03f2bc3202b9077a1569211f8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigDetectResponse.json": "36c4173d5f30ebd04be3d40389c904bc4ecadfbb8e5d1dd46b9b589254f7e1d9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportCompletedNotification.json": "c54702d40c3a40bcb3e3e835d99860473831725acbd3576fc26d2d4fa3a7617a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportHistoriesReadResponse.json": "1c09641e957333a2f602a350532acd99cf538a73ea45f39a2294289907a0bd96", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportHistoryRecordParams.json": "6a3e8071854771b0f34c6623fb7dcfbeaa7518a90779cc4a40c97fe92ac6f3ed", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportHistoryRecordResponse.json": "a252a2c2a03b4460bf3635d517c0735fa487a2f8a97de1aa0637f930419ae656", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportParams.json": "6b8d0a8fbd5a7ddd455ec0dea6d1b578f56841480c8a5fffbfcd045db79458ee", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportProgressNotification.json": "dae7bfc12026811ba24cc6f32dc01ae9ffaee7d9340d7768f9afce94575c23d2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportResponse.json": "0ad2fc7dff7b1bdc471cc365985f559490f253ea127263417f0a0a1edcb33cef", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FeedbackUploadParams.json": "aa958cd74b37fb28cc49ce22345a1efcda9d4cf5fa47e7cce6949e5366ff8b2e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FeedbackUploadResponse.json": "604390e864944eed2c4268675978dd8082f0884909d73cc79fda59dbe03a2d58", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FileChangeOutputDeltaNotification.json": "04c3df83d46725ffc048577e7a5aa25de9a6c8ea9eff713bbae2b408672481c5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FileChangePatchUpdatedNotification.json": "cfb69d18658610a0510f213e09c6847f70517410ed91cf99cc4713c15a795213", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsChangedNotification.json": "197693fcb852a85fedfbcf1cd00c9a3cc74dddfa09bdf6b11fdafebbcd12ea2d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsCopyParams.json": "bc1135070827681e4d9a14f79b5b06a4f5652e538ae6a89642d27dbc8b2a2af1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsCopyResponse.json": "c88392d6c3ff394441231cdf5614794ba0c2b4ba683811f6033a01fe65528a59", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsCreateDirectoryParams.json": "405fd718ebafe7f47ffd82c86540ab4af663659c737ea2b25acd3e04a1bc94ea", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsCreateDirectoryResponse.json": "a658fbd34d5e3d6300bcb7015f10fc1764aa8aca3088abc79af9caa2e848e527", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsGetMetadataParams.json": "382bbf3a8b5c7e8cb16a1a29f853ce49c2904e563325e33a9e41dcbf632dab5e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsGetMetadataResponse.json": "b8355f112eda37d7ff25ad0eda7dae912dba695961855c5cb8444a7f867d66c2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsReadDirectoryParams.json": "c4ca6cdc129d70375fe638c723c1b1bb07a9716101525970cf77bf7560fec657", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsReadDirectoryResponse.json": "2cfb28c3c1ab1487f6b778f4d76871e3a9f590597bdf0da502cc41b202269dbc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsReadFileParams.json": "74b325108195fe955e6ffcb6032e9380d3bfdee8aed7d115f5f1e4b127c5d706", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsReadFileResponse.json": "fd67dd725b5bf5c7f27e78cc3d66fe24314f08913fc00ace9dbb663bf2f487e1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsRemoveParams.json": "c453f8ae4b3311f5da88f67f743fdabbcdc323dc3d9eaa40d750ceae147bb630", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsRemoveResponse.json": "6371aba2cae2f92be487be05c1ce531ca4139da5004b740a0010ccfdba548100", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsUnwatchParams.json": "3134d42c231f40769a4d1ac4adcf051be5205e7a1b70bb32c4a8655fea730175", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsUnwatchResponse.json": "9c59c3473df1f1873ee0d87ed33cecec0766b24c8357ee7dc8b29a57ca21e104", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsWatchParams.json": "10bd9c01b3819db1ed8e2487a277f20b35e3a9f74ae77214654f1a529fc1444d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsWatchResponse.json": "d32e77e7d6f619c5f4183c335ecddd3c4ffb95a51761198985c47838ae891a6c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsWriteFileParams.json": "2167e05c7f3eb26d475f9c1ce71697ba3b635efd8761a00b22abfd6af175bd2f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsWriteFileResponse.json": "0e4153ee7baa5c1203c2c573504baaa40e1dd8738d78e4c1e3a179fb49df6b16", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetAccountParams.json": "30b545275f60975b55bd6fbaafd70f15505801d14168ee82d3931b6e93c78aab", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetAccountRateLimitsResponse.json": "a28d4d0e9181a498c58d4ae3b6b49aaa6ee7a33c0c9f81c1ad0bff223bfbbe3b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetAccountResponse.json": "08a7dd8c570c905b0bb6998d43ed133e72e2445f08125f86dfc96887e288701a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetAccountTokenUsageResponse.json": "a58e58c852c888e5de925d99a66688d55ebb2fff038e795aadf04f8a8426dff8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetWorkspaceMessagesResponse.json": "3ebd00f0acca088e5ee0309ec09b9a571e7f2eea5b63a32cda67be01c6886d67", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GuardianWarningNotification.json": "5325551d2efb47d578665e3deb846f6369e05f98fbc5bfbffc5d9fe0cb0bd167", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/HookCompletedNotification.json": "1f146d70303cea6e59752191179e36a273650d63a74d4f9338f9a399da6597d2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/HookStartedNotification.json": "913ca61da2ab299d5f3318f6ea4d842d22708fc9308a9b10cdfad5e757098f2f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/HooksListParams.json": "07638c3a8a3690cf368fa92c7ff697fdd0132865e8c59d53f6e5789e5a260053", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/HooksListResponse.json": "891dd10ef7f78e59631fce05fff2becddb8004b3c0338dbbbd6b4f17ef1fa64f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ItemCompletedNotification.json": "69aba3fe5f72f38bf5c541e7e2c09de40778abe65ff969d9fc73372037812091", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ItemGuardianApprovalReviewCompletedNotification.json": "bcf94662d3589c36ac3a13c0d919fa33c2b85f452d5098a8093360884d768a02", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ItemGuardianApprovalReviewStartedNotification.json": "baf4e17938f94e2cf4d86d31f02f66d69d394b00594e3e04ed03dfe901014543", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ItemStartedNotification.json": "c4c34f47db6326cd4841bae428f23d08eb285077ffad35be9772b928c65bb912", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ListMcpServerStatusParams.json": "33b1933595d844c61f76bdcfbc874c8456b65079877fed6e86e2710ea3d49f1b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ListMcpServerStatusResponse.json": "d581e9ba17f6da0d686d0e730cddd51fda091f361a8c119317b2138a3ecdb612", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/LoginAccountParams.json": "48fb9bea54d7e0890052653ac06737efb3200ba2261515b2c4014027f36bea3d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/LoginAccountResponse.json": "72e6d77f49bc5809c3af50f183e2a0862dd8f7836816d4796ff69bb13eae0e89", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/LogoutAccountResponse.json": "ac14ddfca2ec6092b0039be8720262d5a9930484d23e62544d2ef0b7e1db7926", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceAddParams.json": "e6c92ca2a3889641ca2281cca7684569b1187653b25b57f9beabf85519d638a2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceAddResponse.json": "a37633e9ecc2fdd87ea582861bcdcbf7963a8fab6db9fbc1bc8eac7d2f7f9a8b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceRemoveParams.json": "220c2475a96f32ca095f80f3ecbad427477b4ba37dfad7fb48a0acabdeb1f4eb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceRemoveResponse.json": "98deb2f721d57ed727f7cc7b4f478db5f604b6b6d40e6261928dfd5f586405e3", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceUpgradeParams.json": "93fc5d331d353b1b89262625c38eed54c6c16b2fb8aa0eac718245c7bdcbe4dc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceUpgradeResponse.json": "2402379cb0ed1168a7dc327c412fd61bafdea2ad13ea7a3b3ebaee3b43c45963", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpResourceReadParams.json": "a8241b056a65473b2b9bf0a14c1a49146de52dbc1cfc276549f52f4db13f3be6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpResourceReadResponse.json": "a48af749203ed3307414750d5070facb5ae6ef8b00253f1cfd9a8124bdfcfe41", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerEventStreamNotification.json": "44b04b6cc079ec0b99b4d29af1a69d99037505c19a2a07cff955aa298d7c181b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerOauthLoginCompletedNotification.json": "d3b7ca4f2626a623b4b5a97eeedc711cc27d41b3ee56fed8b0304857c5c9b13c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerOauthLoginParams.json": "83446fb61e04a361691f84fe236a51fff2ee4fb12a8f58e2e828a32cf6f6cc75", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerOauthLoginResponse.json": "95d7d00622866ac49dbe459164b8be665b2c9ad7b26772eadfc610a0537aa6d4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerRefreshResponse.json": "54a77812db02175dc69053870e582d3b314af6f161f0c76846f3563b0f9487c4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerStatusUpdatedNotification.json": "d6f4cb120b2363d321247592f03b9afbbf2762ad6d8af31b88c1b1bf39c4c7aa", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerToolCallParams.json": "7039a7583a1cbf38e9e0f5fe6398ff3711acd4d654b81b0be562514087fce6ba", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerToolCallResponse.json": "04a59b2064922c37b0c49bdb2470b8fff08d943e56dba4f7280a6b34bfa52c68", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpToolCallProgressNotification.json": "64a32b8282226876e749bc107a81db89d20d5ce5cb86ee6a043b960763214b1d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelListParams.json": "de29a536c00a5b8f46f34dba417dabd93365305571a8ed200e33bea85db68b5a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelListResponse.json": "c7b58b332f6cf18fd64235409a6daf27bb9e6c09d12dcd0daa2f3dc628b55f6f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelProviderCapabilitiesReadParams.json": "9db732188a15476cabb42cf05e495ae0803a1ada993fca7348c21c30a998388d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelProviderCapabilitiesReadResponse.json": "5c42590f728289daaa441b947617398a0ca3aa17479013b3c564a5d314a3c9cf", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelReroutedNotification.json": "37cd3c1b3a3560b85b01d4061a07d830fc9ed93b80e4663f975f9197cdb501ef", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelSafetyBufferingUpdatedNotification.json": "4cf853e3a2f968fdfde75206fd497d3d530b26769026bee343c3ef09ce438cfd", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelVerificationNotification.json": "4f27a99d0c8664c29abb4d65384ab16853bbc29b61de5e749111cefdc6994655", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/NullableGetAccountTokenUsageParams.json": "a992c6ea0fe02b0e9f46b18afb51b8ee2635e7f0c7d546f71e7f95e2a98bebba", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PermissionProfileListParams.json": "576d405f6c94cbde982a9f65c9301717043683b83ca35d564247907feb16b1b4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PermissionProfileListResponse.json": "4a290b5b9d47c2fc671033e22754671161bc563027ba387e861bd935398f0def", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PlanDeltaNotification.json": "a5cf42ccfc6cf905ede0fa9041e9c951ea7870aba4e3a7c7f68d85f01416d3af", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginInstallParams.json": "d6a8ff6356aed22c916cfd5a791ecce34ee2ac509750f690e7d0ef483fec7472", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginInstallResponse.json": "ae283e1ecb9f454f7614c6a4348fda5a7aba5af99e9ab9177b9a0cd3e1cd7db7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginInstalledParams.json": "0b56f55a817b6e82ea104496281cd43714ee96800f9b984412a3a858f444f68c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginInstalledResponse.json": "8afc8a16fa5c21d67f66d1855bf29890bad10a6229bafc960b3503281fc878e2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginListParams.json": "bc6b499161306df7082c5a8cc51fd793cd6d28dda93555b12ae299445132270a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginListResponse.json": "a405d2514d6236df75130c87c749e0e070b946a889f143a0448bbcd27d1d8501", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginReadParams.json": "f15952a2828c90501cc32f347c1e1691ea65cd2d97f503ab40e7be08757de74d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginReadResponse.json": "1651d8136fbbbb00878c4c1f8adbf279d050bf25b4454e6db4fa46f192f953d2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginReconcileParams.json": "91dfe0967326b876e50ddf8d896c6c516440c43a36b08efd4746c0bd770882dc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginReconcileResponse.json": "ba2a8e317c9098beed39d4decc433d9dc29ba0c8164e8d4c229481b9243c5ec8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareCheckoutParams.json": "25fd868fff9500ff244150a4ecd36322c0d31b339a4709649594b79aa1349185", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareCheckoutResponse.json": "d6271afa9bba5531574ba255d22b03f70fe10b8ef159185355625d92b6f9fac6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareDeleteParams.json": "d422a3fdecf91612bdf839d4fea6f1cddccb794869dc03ad3b8998bcb8e27fff", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareDeleteResponse.json": "ae881a7f898f5287354de5adf6f42094cef9029a9b9376bfd12aa1b0fe0b3106", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareListParams.json": "0d71280d2a655ffc26375044ec1693203848614f99fdb4563e0cb5a4ee40122b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareListResponse.json": "d349a496947956fd5f4d125b8348faa2ef0c91daf7f3cd74ae0616f55c8e328b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareSaveParams.json": "ec937521a40437506ceb2dcfe79cedd03812dd1b8233c651b89c2ddd76e148fe", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareSaveResponse.json": "3eb7c0ed6e6c72126c7bb3d845e73d5de98ad0d4ea8639d2f227fecd16c15411", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareUpdateTargetsParams.json": "0ecf16212022bca115211cbf13a1302f8995d7be5664ca268b926b7d00add7b0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareUpdateTargetsResponse.json": "caf42dec67940f9e686ac7b4e77484921d62fee400b3af73fc85e6f46eaa03f4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginSkillReadParams.json": "8850a9a45b9cf6e8b016f014c7c65f7062937be896d4fa0eafdaccc816909a56", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginSkillReadResponse.json": "dedaf95c4a8f70c022f5cac6fe3882603ed2b27d5efef710b52ae370869956cc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginUninstallParams.json": "4c9e1da7048fc99ef5269d4c3f4c6c3297dac01992c2756340fa210ae8f800cc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginUninstallResponse.json": "f6a0c9c8dfd9e3fc4a535ecfa606f12922c09e469a37d6b1c6e189f45cacb89e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ProcessExitedNotification.json": "06cb5f39c67f84c227063d7f40e5e78fb62afdb76778c3d603687181896e8440", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ProcessOutputDeltaNotification.json": "c31714aa83297b83fd69dee98db877be7d4a3f98551dbeb517750efba0ecd79d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ProjectChangedNotification.json": "b32151fcb7ef78fc5c969db44255756e5e6e1754398a5b6b09244dcff0c1eab9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/RawResponseCompletedNotification.json": "aba140e87952c900f96e0308a8849d3e313d985de1f1aa2b77f193884a76357c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/RawResponseItemCompletedNotification.json": "cbcffe7b3f2dffb607f7e20ac1f1196509ff42e7d0cd9e6961d7c19b25506899", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReasoningSummaryPartAddedNotification.json": "c8dfcb82d773d0f5d297ae1a47749e2b719013e82030a3af5d4550f9feb8eed6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReasoningSummaryTextDeltaNotification.json": "895bdca00b4674634c25a5c4d1f82e55e65767d81ddcac4bb7b00aa3d438e62f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReasoningTextDeltaNotification.json": "16cdc13080a7523b44f00fb6fdb660c56a7c4c8cda96b2f9b87b7e72264170fb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/RemoteControlStatusChangedNotification.json": "56aa1d58294238557cd8b16199909c2c157a7542b9259ef2deddf40fe4c02c91", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReviewStartParams.json": "c55c510988a34d2e95752aeb95e5d165f7083724a0945d7fccd1c568ad85dbb0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReviewStartResponse.json": "d6d5c99473b695fff0f58a896bee11ddcddca23304523fba878860324b7f07df", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SendAddCreditsNudgeEmailParams.json": "91b380293f5685573f8dcdf46c99eba6f8a2adb7a206df9ac987f7fe6cb282a1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SendAddCreditsNudgeEmailResponse.json": "389978f741476c7cbcaec716b11a5bfb7f17581a28013e18cbf7a73ec8a45ae6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ServerRequestResolvedNotification.json": "4f03d586a5af04edd912cad08cc97eceb658e7e06744565e6d41a93e04a55966", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsChangedNotification.json": "84f7f1d327c5c774899992f32c98e9e95ee3e010a410d233ec0c33221e4ccbfb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsConfigWriteParams.json": "6e7dea83b649bfd118828b60446eb2eab2f5ce3cafe287c933b830c9cae9b170", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsConfigWriteResponse.json": "628bc112ca64f5475eb02a0eda718e82d670c40299444494e02a8dc278a772c7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsExtraRootsSetParams.json": "bb60389a0c7d4b73f625b9a40965e5e67b56b6503989f2d732cae12e9ca9698a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsExtraRootsSetResponse.json": "b659ec17a196eaa3a23273a3e2d5596460ea329bc3ade249971576bc723d9e96", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsListParams.json": "1d245374e64c5acc9739dfc68a4fe5114c6c9147af04c480886f1846d2ca6239", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsListResponse.json": "230f125d6c36ec1b1514018a0bb6d0627f7308ea82f1ef04cad85490de482bae", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/StrictReviewRequiredNotification.json": "16b50621c0982d84bd83b6e85586c1038ff309337e4253219895be7c118df470", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TerminalInteractionNotification.json": "5383b3d9681d3c071c9845fd4f043afd60fbe1bcc3650939356cb03848a7d627", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadApproveGuardianDeniedActionParams.json": "082e5278ed4fb1fc23eafbe658e95ec21d81c446bb6daf2b57e25e8cd3aebd5e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadApproveGuardianDeniedActionResponse.json": "628336c7cdabd508d5202695502bb0f9ce42fdde380f5efdd4b033cf215d93e5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadArchiveParams.json": "dc2c0b133b814a5d9d543cc37afdb3f4f22feca35b7cea4272834b20a1e47705", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadArchiveResponse.json": "2e021dabd0930ae3e2beb68cd0ddbafc40fc20cfbf8dbcb5e2f9c0493d06a08c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadArchivedNotification.json": "54ca94956719ade8682c766f31419ee9953dee8f4587b5b30efd0927de6ca26e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadClosedNotification.json": "d504cceb70e3397ad684924b08d3bff328a927be02ef4e3d482a18e27bab73de", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadCompactStartParams.json": "684b20adf20213a9fcbca31b59108feadcd5a8b693c16431c20d701049df3737", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadCompactStartResponse.json": "74674e47f33e37d7d97d144eac1789ef0580a1fc12d45a5675bb97caa08d803a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadDeleteParams.json": "0d5425d94af95e3dd20971cee052b2cb8c7d0d23195db1d17fde4e59cfbdec4a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadDeleteResponse.json": "333c0c5df96d78d1bcbdb19b57ddfa941de9a02bdae1c29d13c5311c2cdf6527", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadDeletedNotification.json": "6f8d6fa96700ec6fff4b8c2bddf6768539b7ec7ba5dc05483aba53f5183386f9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadForkParams.json": "60540b97d453ddbc5e12bfaa007a3718f31847d18dec0da59a5e4b89be4717ad", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadForkResponse.json": "c15e43ec275b370df2d831cb5147f7ff399aab2e74d091c07cdb3de57db11f94", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalClearParams.json": "896c8b1997edf913382393f7d0f20ced4344714b9f0e8ce1f6564a11403e1675", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalClearResponse.json": "2652c2d0072be8ccb71c8dcaaa054aa74f974e68156a73451baf72c8597669c2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalClearedNotification.json": "ad6c2cf53970e45cae55d36dbddd84ecc7b34837846616493efa7b132a35a051", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalGetParams.json": "1a5de89b3c5c49528af404a65411a73ef05dc7c9c49c3f00c90d9926dfe34137", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalGetResponse.json": "f610000963194731c96ce2b45e46722ca700f1b6ccc1fc55a2fd95e526018fd9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalSetParams.json": "93162f095e9b3b5a051ceb24318b8922c663edefc1f8c67bd378085c0d6c01d2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalSetResponse.json": "b1c61b6068b3b73dd3d97b38f8a269593f8f7added4643bfdb2016315b71ad8e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalUpdatedNotification.json": "52010479c7efcc6dc749e2d9bf1e27c134453d92a1f0b367193d8125eec1fedc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadInjectItemsParams.json": "8d7e754402a2bb71bd817882076d2f8ac4cd75d4573306db082a83b841aa3532", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadInjectItemsResponse.json": "93d909e5b49b44da02072d340f8ad0ecd417d448ccf27fe50be7e369c7864159", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadItemsListParams.json": "ff56040c327ecdd30ef02affac9bc71fab64031e8980f2b4fea9fd8a888160b4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadItemsListResponse.json": "886369490fec07067597460301b3d5c1dc9aedc41ea42522cae397d8babe6156", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadListParams.json": "b227bb78acf9b91060d03c56d3f2072cdd9f1bd08290c11e8869f1a663b16da2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadListResponse.json": "351be50beed03976ddd63e8027e9ddeecb240d7611856b2dc19125c3f8eba400", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadLoadedListParams.json": "42c2d124ab2b2998d84f0126daae2d32b0bf9c5a7ea7266e3a0814e5e37cf00d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadLoadedListResponse.json": "1ea02c4710083e552b2a3a89b931b9049d5bf05b7db46278b8352cf9fd80cd52", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadMetadataUpdateParams.json": "190da07d8c7c89c44b1e44b4e57fb5d803f356953534498a7a7f39fe29a8a6a4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadMetadataUpdateResponse.json": "c1c1095f8ebb5a975c7cdd8b4fb36b81e3e2797e35209b2cf0a4597c6f418961", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadNameUpdatedNotification.json": "06d5e6b0e1eaf03eb88891af58eff14368a76e300a40a9bed71bacce2093b960", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadProjectUpdatedNotification.json": "ad31b029957a9259f26352ce879219cbe25f0314ae883d02ab811a0c6427a1e5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadQueueChangedNotification.json": "0a960da43fb14f69dae2550ac4f8517760464eedbf95a9977718548739fdcf21", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadReadParams.json": "dfe040c6ac71d30795b8be3f3ff232e66f362a37f883b491e5d1ea367f470db4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadReadResponse.json": "a76583d07f6096fee33045da2dc9caed84d858f8f2d39b37bb38528dbaf32511", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeClosedNotification.json": "5290a73f8d4652b59d2f82d89c7bd289003fe2981fb0c628a61e801fa2123364", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeErrorNotification.json": "aeba7e4b477b4825b41990a4da69b0f3cb3a00f44cf9e2e42e275b944b7cb040", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeItemAddedNotification.json": "48aabfcbfd2361b5830a93257bc9eb31a6933f6e390694e188bfb287acbad9b4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeItemCompletedNotification.json": "b2a5e38840b8afc2111620c332801603e832b91ad4c95dd1f13c926923b760ef", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeItemStartedNotification.json": "ef1a68a635ce680b321e276fd9144ef614b37bab16942368bdc16bb8ee217f46", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeItemTranscriptDeltaNotification.json": "42f2456726367b90a2626a32f3f88495de87032243beecd9bfbad28734f4b62d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeOutputAudioDeltaNotification.json": "4f73a5c606fda4984da4fc14e4cd98f62c8f9aa75b2db17cff76562c2d176ec0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeSdpNotification.json": "1e276f48d346e6cace65551f84ef9b0bc8daba2a3ce93499f3a902551de239fc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeStartedNotification.json": "483d324381a8ced04c8ab158c825bca2b64c06a4e85b350a086730050fe8f188", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeTranscriptDeltaNotification.json": "1a6add677534de891026eb56aac815b2585fbd4a6d6475f679a722c52b778703", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeTranscriptDoneNotification.json": "0000453425e300fd19ac2bc5fba4ebf3fbce48ac9a9b62ceb8bc5db8b6c77fff", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadResumeParams.json": "8ac68582a81d60940b10b330be8546123f56bfe246b56f8a4f121da00f347cf2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadResumeResponse.json": "a553d6b1eb66111ca556e22138017ec54fd07c3257dbd2d5ad97ad7660786345", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRevertParams.json": "3a5e85a67906c8ea3ad9f5065559d263d968a28a957739e7a1d9e4e1981e4eb8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRevertResponse.json": "de7206155e188cea30dfd81fb3295d6e2554a7cc7b58202c4b0a49e9623affe1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRevertedNotification.json": "570995a91a4436d403bafbf9a4c34ead666b137ecd5406803e14826a6d84cf22", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRollbackParams.json": "27002ceab514bcbab10ad2e0a7b9b842f9ae51bd5e8c084ed14960889b422ebd", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRollbackResponse.json": "c5e1d8f6845e0840068cc46422fcc986a7648487219a901f8a0f51ee9fbb6ca7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionCreateParams.json": "e3bf941ceab7a4dd39ce1b4063168621d60162aa97f7171cef59819c999c501e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionCreateResponse.json": "2b0b0e7a2651354aac35aa5d1a423b9f207ee8d46b2de077df747f4ed4f4c8de", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionDeleteParams.json": "93cc3d12bd5580966b59bbab8f2ccddd31b3b4bce56f76d49cfe41f1916b5deb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionDeleteResponse.json": "9bbee5cca1fca02e4a65c2481dc3b24f090bca7afb786923ee481017b133b091", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionListParams.json": "6aea71b3fba46351fcaf648eab0da564080ba424599a012648abd9fd44464cf8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionListResponse.json": "dc3b5e5501a56ea2a1a83cb97c5221b355629f8c9468793d94e22673424140bc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionMoveParams.json": "48bc921055838df25c5595c96be7bd25beef3accb8bd1d28026fcaa7d81487b1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionMoveResponse.json": "243299d7eebd4fb264d4e75efeb5058982681202371c2b83ff1a63b3369ddbb6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionUpdateParams.json": "6cc7b7e486026a59d6fcc0701407d9293c0fe8b96e41894630c3a39fee967980", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionUpdateResponse.json": "4588cbf0374204c17f02f15eecb5390cd5346bc551675e07e541bbfd28d020bf", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSetNameParams.json": "8e334c816bbaeb80f807aca61bf659246f3f60c245c21b5cb7e3ca4ee3ce4820", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSetNameResponse.json": "f8763716433feea94f7c1ebd59b6cea4c261432e83240c13a8d49ba8185aa567", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSettingsUpdatedNotification.json": "e601ede3c6947f6df0aea6b1c091c01e38ef7909df939f5ef11c8f836fc8a2ed", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadShellCommandParams.json": "dc646457ca36be601c8c3d15c44d14907d9a165ccf2b9635a8e9a878f0ca0727", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadShellCommandResponse.json": "fd4911613f6a6da2ca13b75342501d4d61f64e00a1083c6d60038369b8caeefe", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadStartParams.json": "792e2f32e37cece971bd616664ea2053741acbed4e9c92e9d1766427718f2ecd", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadStartResponse.json": "656f8fd0fe91f533126cbfdb9369cfab550927a229e48dd46460f6f015d2b186", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadStartedNotification.json": "d66a9b4563471c5fe99de18cb2bd3c83e7b6aac8deb0b0579406b3b7c74d7b35", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadStatusChangedNotification.json": "26f3c60c1b73f7fa2d31c74429cdc36f8746c76c33e3d314b3fb61d3661f05f6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadTokenUsageUpdatedNotification.json": "aba4f6c7e4a19b2b842c08ee793b57000c07dafd57b922ad0d8e7c76609108c2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadTurnsListParams.json": "2a8b93d7d4437cc25e16a1dde16d8db3c338d39e16c5eece2a56e943a21577d7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadTurnsListResponse.json": "45bffd91efc358859a1a54b8165c0a8b1c21ebc2a312da9f25d05ff27af798ee", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnarchiveParams.json": "a1d5d847b61ea16ab09d5b9d1c1461134a7829292aae02a7e11b0a69b00c76ca", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnarchiveResponse.json": "1df1bd13818b3c22a2fb4a64c55b393778e0eaa65547744333d8df9bb40a29cd", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnarchivedNotification.json": "fc00949cdc588b84800a26403647eda0e22d6f28663dc032a90db9c20dfa822d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnsubscribeParams.json": "77c67e0dc0a729af2d4612f30ed63f1297160232e96cd32b7cb9cc3e7fff0233", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnsubscribeResponse.json": "9cad5e71a589c3c20e0980ce34a894a29e2898a075b10b1493bc87f32500081a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnCompletedNotification.json": "78af2a37391e8e669a4020cb58593e4d3e378756ced79d5fec72374fa69fb94b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnDiffUpdatedNotification.json": "59a02535094b591b926cdc11a8e5f5babf73b442323a02cace1661c62f0c2918", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnInterruptParams.json": "6dff382dae73d1dbc58406ed045605f647e7a49660e2540fbd2c6c24d60c5f2b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnInterruptResponse.json": "531de6be06fe979b5963f249bab82498a175e614bf65ac12fb2e849dfe60bcf1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnModerationMetadataNotification.json": "90fe9ade83c46fd42af9d023737a9990595dac71e059158744950f538e802876", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnPlanUpdatedNotification.json": "2522f743be0a1e9666dec5ad4f18d8ecba3c4f16e66d510b1491d4117d1dd0ba", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnStartParams.json": "a3835e8c1e942e4b358e1a670939b89918b16c4d13105a579899892b7ade6dea", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnStartResponse.json": "6fc49c3e5d0ce11a3a109ae194619b04d6e3ff98fa29bac683fdb754608958be", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnStartedNotification.json": "d4b59fd396cadfc2377f60c9f9f4c9367dca95362baadf7817c74e1b9c910c4d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnSteerParams.json": "4a52eb76e7a717bb388484ccd7538737fca0df35481fc30a21e259f1bfe96e37", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnSteerResponse.json": "866ba9a77c12b5d570c837d58f73bf40b24e50fa93404bdf792dd984d313b1aa", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WarningNotification.json": "f83c400591b923400ca0beaaaab1341c712d5ac0dee4ce6868a8e590f46490f9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsSandboxReadinessResponse.json": "077f60a3d6d1fc226c45059472b29caf675fdc3fdebb29569eaab94bd05ceb00", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsSandboxSetupCompletedNotification.json": "dc5383ae8fc2a46badbc2dab3ccd0447fed97729c2d5a177e28c4a7e2a60c329", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsSandboxSetupStartParams.json": "8610d077fff4fc5811f2e33dea82617a15ffb82f08e55e1540aef877133f5b4f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsSandboxSetupStartResponse.json": "830bf89deac3e73e36b7d9799ceed32ee25e782c30b1d25266374aa020d3bc7e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsWorldWritableWarningNotification.json": "bfa34d4890c8121a04412b8d53314a13adf98289fdd948857fd97b808dcbe79e", - "docs/handoff/reference/mac-facts-2026-10-03.md": "18c728dee09ac63907f100c86525ce89e790185838154dbcdc0afbc5eef396bd", - "docs/handoff/round2-part7/privacy-signals.json": "511294f40bd1dd8231178d9906ac9748889a74c2001b3e02cc8a3c3987298499", - "docs/handoff/round2-part8/README.md": "17ce3a43ca16572a43ebf6dc3b6f1c28910751f35c720fde531d5221d274717e", - "docs/handoff/round2-part8/privacy-delta.json": "1dc41ccfe8411ae8433dd86ee317da55a0d114553dc74d4bc589f2a3f2c5befc", - "docs/handoff/round2-part9/INTEGRATION.md": "31097cbe2651ed47c377cf4d4918d61ca3d18b25b9da693da8e9710b37753f29", - "docs/handoff/round2-part9/privacy-signals.json": "fb4881b9604d88b04452a791eb3d780e5a34294125816678fc20df8022300b18", - "docs/hardware-fit.md": "d14f89076a7ab37a61a3360c4ae2149f59cd401e719461efcef20af2c5b5e275", - "docs/ideas-switchers.md": "cd24cc08ea91a9724d4dd5df6553ce1b5ee4d7ccc0151a5557f01daddddd59a1", - "docs/input-devices.md": "02bf83893ca3125232a8dcd80ebab1fd265ab6bfe1d96fa949174dee68fcd6ee", - "docs/integration-loupe-glance.md": "74111d9a7fd05f3882752a08ffe7b4cf7213acd5a8bb10a7a3a7a491d070cb9f", - "docs/launchpad-design.md": "03c47604122ec36bbbf1ee4546e2be570e59abf6794a55714e02cfb8c806bb36", - "docs/launchpad.md": "6955298463ca2aa406fdaf2d3c5e8193a6264cc0affc800c8d592684ed7c675a", - "docs/lid-effect.md": "cff5610ca05302afd52293633b36900e57d89abb26d611ada26faa7013b67e59", - "docs/live-activities.md": "4caab93fe0c0736d85520feb41d28e32a7bae94bcb8f3efa2ff0440fb9260c6d", - "docs/lock-unlock-plan.md": "59e782cecea525c98dda7033b07c4873bd9be678c244587059a7edcf9e82735d", - "docs/menu-bar.md": "6ba87eb72d428ad59b853cf3e029acde5f3edfa2c4f06cdc056f1b226d778158", - "docs/motion-direction.md": "8f6c801d7a189ebc57a0dbf3057b0c0c5786d89b35d80280cfc6df4147827898", - "docs/multidisplay-authentication.md": "6bd31097ab87f2f1e068cba583ca093e4ce381661ff72fc5cc0074964abebd67", - "docs/niri.md": "4c52682ba547845e1e336ad5ed368f2c4cbf21499dd0862bf6415a2222a07556", - "docs/notch.md": "71c0d9daf1cf118544aae131550adfbcae2c39007631541e7509c792a7dfe2d3", - "docs/performance.md": "03a3bd2918a1f58e3bc4ce3dc7d79d74e88ecbbbc620cc2e91576dc3bd5833db", - "docs/pip.md": "74c9b37f4473d7ef8c7bc54d0a3cb64f87bc02e5a853e5ac013adb08023bf8ff", - "docs/pomodoro.md": "b1295d44a0932d2742d207edda8c21294cdcc302c593eb3027eee3de793e76ea", - "docs/privacy-page.md": "f0d41966695d89e893ce3a315e177e1460f414548de16a1d2988a19b1ec78770", - "docs/releases/README.md": "79301ab70bbe3c5bf6d7c7095107353d92d1d63eb879bd0fe40d72a7f313bb26", - "docs/releases/v1.0.10.md": "2ad3ba06630f9c018bbe28cf2170b256e81b456c78d25e50908a95759bf4e315", - "docs/releases/v1.0.11.md": "9aa1150983710d8250fb56c91817eb1a25b23428cfc58c23d6f8abc648726198", - "docs/releases/v1.0.12.md": "23d4aae11e4085359c1519191cd6e6fabff2c7e11f201e312c0a08d07b9ce8e1", - "docs/releases/v1.0.13.md": "3e57abbf6c7cd8e21bf51dd5efd7a1f0a743c9db18de4f90c7212fd22bdbf6c3", - "docs/releases/v1.0.14.md": "9bf99e2532d4f6b01890e6ea2afa358e362024d365774350bf4c767fe90c23e7", - "docs/releases/v1.0.15.md": "79383e8838bbf160108a38fb70a272f26d4cb2180dc4d181a06fc94535cdaba2", - "docs/releases/v1.0.16-checklist.md": "cad6ca99d72feb5702d9ddb8459ea37bfa10246cd66434d71139000d3508eecb", - "docs/releases/v1.0.16-ledger.md": "5ef9ad81aedae8dfe2089eef058a022ffe22fd14d34c33b3af2d937ce8313170", - "docs/releases/v1.0.16.md": "d28ea7827b3c8c8d928e722edb1d7b7641306f6fcfe3134ff2a7015a6e08febd", - "docs/releases/v1.0.9.md": "da69d052a7612cb91c5c49b236824ec85cfb8c3d2ca5503621a386b129dd3368", - "docs/releases/v1.0.md": "3783367f227bc76b9e62c90d904e0f3ca0b0fa138bc6ea96542643dcd2a84f43", - "docs/review-2026-09-22.md": "5a8cf4a5f91c97787a44d3df90e075f64a7b6da3b1e0650b903df397fd521d05", - "docs/review-handoff.md": "88248a00dad8f753544b5b0f7761bf425f22ac9c129550628a7d17fb5bdf6da3", - "docs/scorecard.md": "82857ac3d1ff908d61b37d07e8be05210b61730e6de46e11a57b048f54e821ba", - "docs/slide-over-review.md": "1c0b2c7c4ebac9921566ac68e958e68930cff0fa140d1abfec210cf0c80eca1a", - "docs/slide-over.md": "9fcf23e41ebc04dbdd03532cb1740b368e707532dbde827fa1a6289e5c634a84", - "docs/ssc.md": "487a8f561f4d324f4db098edb82ef9f8d9db6caf86aa2ab990edbde9ffbd1baa", - "docs/stuck-habits.md": "c6b291d7a477e3ef5379957dace049db769b083982e7b14a6cfd4c214f01620a", - "docs/system-integration-polish.md": "ccec7301237a4118354791bb2cbb6df03ce5fa456d999b4721acd6c56872068f", - "docs/third-party-lock-overlay.txt": "1520c03fc15ec8c17bd56947eabf885c593730a36fb13498bffbc688ed4657fc", - "docs/touch-id-island.md": "71d3979b588171198c23110980b136ce5eab5cda56155e611e31a17b41c19a52", - "docs/update.md": "9cd132c1b37d598a19e341fd3009fcc52b3254456f76c77b35d4207fcf5ef1d3", - "docs/validation-2026-09-22.md": "62abd3ac822ea9dd8fadbe218d7266ec7d0a9237bad51bb7c4e972e92ba4425e", - "docs/vendor-biometric-research.md": "a01f2d2b7ccc767b47bffeadd97cff72fcf9d02341217a36d613422ba3a306b4", - "docs/welcome.md": "e6749f4bafdb588366b5e6b1b6b3cef2fad0b30081fc686745c9d8b2bae659ba", - "docs/window-browser-performance.md": "96a7db937e1bc15ed831508f20fbe2bb9fec038a78c15e52255873c9922ac980", - "docs/window-browser-polish.md": "e6c24261ca1007e214444d9e6ac14ee1d330aeb0f04720713a3cc3b633b85fa1", - "docs/window-browser-progress.md": "4b732c36182a6a3bf53e7274efddcf4e04c982ed20d86dc07e9c982a4b0a3b9b", - "docs/window-browser-test-coverage.md": "5b6de1a8159407b3875660621a421304cbff7bef50e4480359135bfa2aa056a3", - "docs/window-browser-visual-qa.md": "46c5f8e44074a816ee370fd8dfb2bea63de9d04bcf867549f579a20eed714b86", - "docs/window-browser.md": "b8015c096b7ad42d33a52ac65babf91aee7a13d3df9ac87f76f0a2d9a294b64f", - "docs/window-management-quality-progress.md": "3d51827a6c8f2a1603ba940b53ea1fb0545a119ea7c39e2df5af2bdbbc004b6e", - "docs/windowshade-requirements-status.md": "f25a63f84555d95a2e9697287d06fdaa5f7c89536f9911cd4c5711289a2c90b7", - "film/ws2-concept/.gitignore": "9ae8e02462ff393bb40e787f0a65e79d241ed4f74b32cc57c64acb4ac18fa3fc", - "film/ws2-concept/BRIEF.md": "05d4db19471905be1b8542253e00f621c6ffad9fbdf57ecdfd14b10df50b5dee", - "film/ws2-concept/DIGEST.md": "1b74350777e94f81fb7dda50a092c9036ff465abf79750b44604c432d3c3a5cf", - "film/ws2-concept/package-lock.json": "89819b15ca1e71e9af46b6dc766db1c181b5b4dc14d1f2ecd0630c164dad86c9", - "film/ws2-concept/package.json": "c50558ca59bf2afc844745f51ce7b1b9310372af4f3cc9c7f6ef9aeb51526e2d", - "film/ws2-concept/public/footage/SHOTLIST.md": "a10154e0ef8db5ff09ec6f35d1d2b182229a25e0dfd75b0028b908f6b937fac0", - "film/ws2-concept/public/footage/manifest.json": "48793c6bb3ed0dea0fcfe54eb2c936e3fa0d3bff5499ba6954b704b3325da9a2", - "film/ws2-concept/reference/LICENSE-video-shotcraft": "b2ce9877a55547ada9b870150664d1468ff777e67cc9888806a73927d31c5771", - "film/ws2-concept/reference/aesthetic-rules.md": "4b5f3efd84d10d3d0e1af742a2ee16cecbd1c9aee8e982ed5ac1b7c9f14de78a", - "film/ws2-concept/reference/cards/ai-stream-response.md": "a44dc2f57dcc3e367e21ecd71669f6550262e5746be0af87e95309ed40308e65", - "film/ws2-concept/reference/cards/circle-match-iris.md": "5c5e46f211f90fdb437865a863144abba7867eea34d7c19b34d5bc0e5e063f14", - "film/ws2-concept/reference/cards/crash-zoom-punch.md": "7ff7214d17dc305718683ae15b308ab6704a2cc82ee82a6afe9db5cbe7a417f4", - "film/ws2-concept/reference/cards/dataviz-landscape-open.md": "40318d4903ce1aecf1b39a0beb7738e7ec9b41f35ce49978eafe875efa402439", - "film/ws2-concept/reference/cards/deck-deal-flyin.md": "1341d0ae4728efa49ee47ee5715eb11c19155ba695d15b79ac5f986c180f71ad", - "film/ws2-concept/reference/cards/depth-layer-moves.md": "3caa8ebc9c5ae5af8dfe3932f43bc88c1f1bd5d4e6980a0c0461be121bcf1acc", - "film/ws2-concept/reference/cards/draw-svg-trace.md": "efafcc9abd8cd7dee3e22036b98dc7fcc1c5d122ba7630af622f0714675a335d", - "film/ws2-concept/reference/cards/fui-hud-moves.md": "480e920e376e8f18529142d06c4de84544406b0e5f2dd37062dfe274b3f51305", - "film/ws2-concept/reference/cards/glass-pill-dictation-typing.md": "fd41dce82df9de936d958fee0640d0b411f13a5e0f71711280076a848e639036", - "film/ws2-concept/reference/cards/icon-performance-moves.md": "e643217134fe454c5049a4bf02ece3a2c0d066a4bf7f2c92e3d2c17daed351fe", - "film/ws2-concept/reference/cards/input-trigger-moves.md": "4ad36f963da66a7b1c9315da7f80ff75fe3e44d687036c876aebdc1b7484a992", - "film/ws2-concept/reference/cards/letterspace-materialize.md": "f6632e8da2ab2bef13248514617e3e636c79d9140de4605997312b01060ddd4a", - "film/ws2-concept/reference/cards/light-play-moves.md": "e45f10c67bca8d9bf20af879f60328182ba71a67fa0f90c082f8c8feedb42328", - "film/ws2-concept/reference/cards/list-stack-press.md": "fcf031f506570e4838c9313e4957c8c290a048a35321156ed61874685e8110ba", - "film/ws2-concept/reference/cards/logo-shrink-wordmark-lockup.md": "1f76c5434a85bf2e5b8867142419577348adfe265fb215e460ec2b7e239b189b", - "film/ws2-concept/reference/cards/morph-from-primitive.md": "c338f6d3639b65bea1edff3c5749e530daa9a6ce70c8f44e6bbffbcfe86a6456", - "film/ws2-concept/reference/cards/odometer-digit-roll.md": "8f8b356fc57d914d4b324244fe437b232fe10030d212482a31b19a932c56513c", - "film/ws2-concept/reference/cards/outro-group-photo-launch.md": "6cb64b674b8bded5f08a39aceac73de2b957c7a6fdaf559921c4421b6c27d46f", - "film/ws2-concept/reference/cards/paper-title-card.md": "a474a2d6f5563239be6fabd33e0e6d9002f57623bc49ddf57ea0020cfeffc458", - "film/ws2-concept/reference/cards/pill-slot-cycle.md": "32cddebfe7bb0869057e0f81f66c6d6044ea152b381f402a26707e9d4274ff62", - "film/ws2-concept/reference/cards/quad-split-parallel-scenes.md": "22b9e42c9d136c29710ea9371728205198be2ec73a90322107ce92223ea18fcb", - "film/ws2-concept/reference/cards/scan-bracket-sweep.md": "e80d67b51792b6355baca5f0547d8b9255675ec3fc6b935b43b57f44917cc686", - "film/ws2-concept/reference/cards/shot-transitions.md": "2cdb68da4060b519d4b0545db17ebc5ca000f04c814f40b0de4d4082756bc216", - "film/ws2-concept/reference/cards/speed-ramp-freeze.md": "7d365e36082978b66ec5bca6623b9dbe57c7898b472f031a84d2bbbd09c3f56f", - "film/ws2-concept/reference/cards/spotlight-hero-card.md": "fbbd603a71ff0a472f37d4ea5647506da2c06dcef2f2d4687d3bc20c2484d989", - "film/ws2-concept/reference/cards/svg-shape-morph.md": "ddc54c05b5c397adfe9c9fe458cf1f9ec62232d8162eb82ca3dca00090250f71", - "film/ws2-concept/reference/cards/tension-camera-moves.md": "6612ba598559261d2bb556bd536eeb1659490102a48b57e034fe053e10774631", - "film/ws2-concept/reference/cards/terminal-3d.md": "956b483a20e9bf49c192b53ed060fa9690cc5eee771e0d3ca29758768836bb4c", - "film/ws2-concept/reference/cards/transition-hidden-cut.md": "3e6b872df779eef27a4ec0304d04a02d49ba5a3ad7bf6744020c1de94c64d22e", - "film/ws2-concept/reference/cards/transition-travel.md": "7e1d46357459532c97dde76cf2631770dd21580978f13437a0c4eefd647653eb", - "film/ws2-concept/reference/cards/type-and-filter.md": "05da1b7e16fe652d2f5868485e913d08caaf87febb5512bd27b71d6b6c964fef", - "film/ws2-concept/reference/cards/voice-waveform-live.md": "d5835944532b621f55fef1894bbf6e7ade6c453402a8a9a01133626b81708d98", - "film/ws2-concept/reference/cards/wall-reveal-moves.md": "e0783733037425ca97c48fce97fd10fbd1c104855d59faf8b50115f54f72d91d", - "film/ws2-concept/reference/demos/_fixtures/Fixtures.tsx": "e06a6edce67ba854c46b897c11575d487ab265a2b3edf2b480be85dbe29bb5a0", - "film/ws2-concept/reference/demos/_fixtures/Motion.tsx": "961a9ce2401e38b5fe22fce7f44d84fc656d76aad0b178082e447feb01494421", - "film/ws2-concept/reference/demos/_fixtures/PageCam2D.tsx": "36b3b90680df7e99f0ced02f135181d7037f74c33a4f425cc01f7a110d20f69a", - "film/ws2-concept/reference/demos/ai-stream-response/StreamResponse.tsx": "017726ea7fd92256de50a1c5018391b88efc9920abb7d0cf42dce0e2c0db3df5", - "film/ws2-concept/reference/demos/ai-stream-response/agent-stream.jpg": "8a6683ac0348347f941aaf5f396d48e70086e61ef0667626cb77e74b48d076f2", - "film/ws2-concept/reference/demos/circle-match-iris/CircleMatchIris.tsx": "0c2afbb49d65aa15241396fb2343ba3cb046d0958cd80a9eac1925e4f93efd20", - "film/ws2-concept/reference/demos/crash-zoom-punch/CrashImpactReal.tsx": "6150253befeb22cff49492dcf3a5b56c01d667e3df6136466e480d7b3b92789d", - "film/ws2-concept/reference/demos/crash-zoom-punch/CrashZoomReal.tsx": "495a5afc91a4c93424d15edf35c8767d1ff90f4d9515bb9194f68d7f355a181f", - "film/ws2-concept/reference/demos/dataviz-landscape-open/DatavizLandscapeOpen.tsx": "f575d1387ed5fe5bd1172ab50cdda20fe0562d44bfb469ec6d199b97bacd024a", - "film/ws2-concept/reference/demos/deck-deal-flyin/DeckDealFlyin.tsx": "4738e54d707a82847d1a5081af88876a872465eb3ead94f1c7682acf8e5a251a", - "film/ws2-concept/reference/demos/depth-layer-moves/DollyZoomReal.tsx": "47d44cad258e8a3c7b7bfd7c5e5b3535360b486f21621e6fb25d210c7e4797b0", - "film/ws2-concept/reference/demos/depth-layer-moves/MultiplaneReal.tsx": "b67c6ab37f02f1df6033b54fdb08d1fa0aa85300404578be50715285d16d2124", - "film/ws2-concept/reference/demos/draw-svg-trace/DrawSvgTrace.tsx": "654e26eef7357c64a828a6cbbd790331f9865e0e9c18768de15de46c281aacf5", - "film/ws2-concept/reference/demos/fui-hud-moves/LineUnfoldPanel.tsx": "87329b62b3dfe20b6c08c9f3a559b2f77ee4841b4860cc2be1a00ddf2d5d0122", - "film/ws2-concept/reference/demos/fui-hud-moves/ReticleLockOn.tsx": "46bf287a5de1fde17d34e3725ed6cf66d443a90cff63ebcc907293cf0c31fdf5", - "film/ws2-concept/reference/demos/glass-pill-dictation-typing/GlassPillDictationTyping.tsx": "b3d70491d046eb645ea594e5e2a5f9d24d40dd0cf3860d7e65496e528e47f688", - "film/ws2-concept/reference/demos/icon-performance-moves/AttentionBounce.tsx": "c467057383f91a4433be617db40d92d03f5f53f47e4cbcedb66091492f50cb87", - "film/ws2-concept/reference/demos/icon-performance-moves/PopBurstConfirm.tsx": "cca22774f4d75754795f96e0060f727a8b062c3005b7bab5cf45fce86f02b80f", - "film/ws2-concept/reference/demos/input-trigger-moves/CursorPerformancePunchIn.tsx": "a2970990b385856cd9e176757eebdcd778fca864f7bf979c976b8fd4cfab53d3", - "film/ws2-concept/reference/demos/input-trigger-moves/KeycapSmashCut.tsx": "cd995c264dd139a0e6c161d59bb9b5cff17d92fc2ac4efba2e7003e329d53904", - "film/ws2-concept/reference/demos/letterspace-materialize/LetterspaceMaterialize.tsx": "c66c6a726608e8de3584afd8ff25406eecd387edcf313c701a14d577cf7c9341", - "film/ws2-concept/reference/demos/light-play-moves/HalationBloom.tsx": "515567c881a3b18c8ae92d001b0b656b506f3bbadea32d75a82a476c6ea47096", - "film/ws2-concept/reference/demos/light-play-moves/SheenSweepRetry.tsx": "c411aedec951a84afcf1722c93e8d9bec2864752610c652cc8a7d9e862f5e799", - "film/ws2-concept/reference/demos/light-play-moves/SpotlightSweepReveal.tsx": "2abd85f00e8221f6a6b67c89d0be24fea3dc661a1f00d68e3dc954567cb4b438", - "film/ws2-concept/reference/demos/list-stack-press/ListStackPress.tsx": "6649fa6321663c6b54c9ca326147917d89a2dfd61d582954b996c7dd83c878db", - "film/ws2-concept/reference/demos/logo-shrink-wordmark-lockup/LogoShrinkWordmarkLockup.tsx": "d8581f081b037f36954214276aefed9039ebe8d76aadbe91ffdf7c6ff3d4a4df", - "film/ws2-concept/reference/demos/morph-from-primitive/MorphFromPrimitive.tsx": "f18d82ce6675be5c0b097969285a973c122633f2844fd1c4a81cc1c6a97a0d5e", - "film/ws2-concept/reference/demos/odometer-digit-roll/OdometerDigitRoll.tsx": "e91c46c1c80f68f83fbed2c1c39e5ad22d6be5799f3541978f56b9e61ee73af2", - "film/ws2-concept/reference/demos/outro-group-photo-launch/OutroGroupPhotoLaunch.tsx": "af4bbbf21570b65bc8e33b6ed679700089315bd17dffaf17864e4a8ac1e39830", - "film/ws2-concept/reference/demos/paper-title-card/PaperTitleCard.tsx": "5ab4b473e631c2863d6033be22231a07afce2b29d08322d5ba821607c2642a16", - "film/ws2-concept/reference/demos/pill-slot-cycle/PillSlotCycle.tsx": "a8db19162d267d107904fd8e46573e9b74854bcbf871dd604fac56ff58b87f2f", - "film/ws2-concept/reference/demos/quad-split-parallel-scenes/QuadSplitParallelScenes.tsx": "0ef89104610b5a00fc7bb89367957fa8b42df0b616a6c98ed535af6984f07c8e", - "film/ws2-concept/reference/demos/scan-bracket-sweep/ScanBracketSweep.tsx": "e96046d8b393545fc17a5b6c5d0158aae95d2f2285b6d2a997232a6595e6686e", - "film/ws2-concept/reference/demos/shot-transitions/BlackCardTransition.tsx": "4e4698247bb6bdd489ff34b46db292da07e616e575681eb13624b4f21d883561", - "film/ws2-concept/reference/demos/shot-transitions/DarkTunnelTransition.tsx": "526fd36c73b2aebbf01164900bc30e953bfa1361e76835d4efbfe47f7980ca67", - "film/ws2-concept/reference/demos/shot-transitions/FocusHandoffTransition.tsx": "00662137985de0d86b86cb882544189e6cf69276e8d849f45c7b2c23a84b679f", - "film/ws2-concept/reference/demos/shot-transitions/MaskWipeReal.tsx": "92eb6e2a34f4f075b286e03fa4ee000fda8369ff5f3b2bd3a02964e2efff3713", - "film/ws2-concept/reference/demos/shot-transitions/PortalWipeV2.tsx": "037b4f5bdd9b5c3d73a11d2932acddc471127e7051c122aee0f6423b77f511c1", - "film/ws2-concept/reference/demos/shot-transitions/WhipBrakeReal.tsx": "87c84d66f0675d921ca4cfd55a9fd9c5a5ba9a7717870d4b44c4c391c81ad063", - "film/ws2-concept/reference/demos/shot-transitions/WhipPanReal.tsx": "eda7132e8c2e142be87995b50a30e48c60c925872a9047c6bb8f54a8406be37f", - "film/ws2-concept/reference/demos/speed-ramp-freeze/FreezeAnnotateReal.tsx": "5ea9848eb760ed76123ab152d4e2b60bb3b1df9472c3b0ca12e6723fb64f35c7", - "film/ws2-concept/reference/demos/speed-ramp-freeze/SpeedRampReal.tsx": "f3f9e54385f0920aad4071d6f85bf9c878946ddb7908894d5802ab2ecd5f11b8", - "film/ws2-concept/reference/demos/spotlight-hero-card/SpotlightHeroCard.tsx": "9dcc839d8953ff930ade91c82a7da178a31afdaa1e81b1b7ff59820e4b6cb04c", - "film/ws2-concept/reference/demos/svg-shape-morph/SvgShapeMorph.tsx": "9e6bfaca697bd36837b3c31163d607863942570daaa0b5abda0c0c5f131172ed", - "film/ws2-concept/reference/demos/tension-camera-moves/BulletTimeFreezeOrbit.tsx": "975f02697f579905a6d83461727f7e258f285fa4738d783ac96b3e6f997413bb", - "film/ws2-concept/reference/demos/tension-camera-moves/DutchRollToLevel.tsx": "de3f0848a382c77d5f1d7824041fce6a371cef804be592845fba981dd83564d0", - "film/ws2-concept/reference/demos/tension-camera-moves/PullBackIsolation.tsx": "93e36a2f42e96497627fb6aac92854d914f70037239a772e5cb3830e7f1a9844", - "film/ws2-concept/reference/demos/tension-camera-moves/SlowPushIn.tsx": "db43d1d0d52b27cba3a97f17bf2999bcbb8750f5c4aee460889285d7c2647446", - "film/ws2-concept/reference/demos/terminal-3d/Terminal3D.tsx": "810807a14ff6a7f813fe2ef999a40364734043428d34d9e272b24e7df18280d4", - "film/ws2-concept/reference/demos/transition-hidden-cut/InvisibleCut.tsx": "41e68ca391f37c1ca10288407283c38f71844ab7f796b36a37056d7c56f43ad5", - "film/ws2-concept/reference/demos/transition-hidden-cut/LightLeakBurn.tsx": "31e4be432a84e13d6fa233ef3aff4a40646d67b949e16e9a5bea2a8f7b62b5fb", - "film/ws2-concept/reference/demos/transition-hidden-cut/VersusSlam.tsx": "ec0f28e508e4c3706a642798ed8516d90ef1b39c7350e1af15e0f5e9f4cb481a", - "film/ws2-concept/reference/demos/transition-travel/LetterformZoom.tsx": "272b01d64d73252aab1b70b8f6214656d046704266ca06e5306edb66fc75da13", - "film/ws2-concept/reference/demos/transition-travel/SharedElementMorph.tsx": "fe5d3a1071e71cce96470939bb6f4b4e7dc52e61058697ffa010c3e17e3521f3", - "film/ws2-concept/reference/demos/type-and-filter/TypeAndFilter.tsx": "95ab942c3e7f0416fbab7563ff326724123cc2a4ddc9fea478aebc8901cdf3b8", - "film/ws2-concept/reference/demos/voice-waveform-live/VoiceWaveformLive.tsx": "77ab5983344687d7d591e2101febe8f80bd72fcef2043b470fa24fb95ee9f833", - "film/ws2-concept/reference/demos/wall-reveal-moves/BentoLightUp.tsx": "eccb4c2211af30cb26b391ea734c326599958906411e9a3c019acfeceb87fd69", - "film/ws2-concept/reference/demos/wall-reveal-moves/GridWaveFlip.tsx": "c39a5cabdca00167d3354667442b4de477b76a36576815abc483609f1198f481", - "film/ws2-concept/reference/demos/wall-reveal-moves/WireframeDrawOn.tsx": "18d2fc4192a67dbfdcfca390d753eb52f6bcb50be316b71480e54ed32208558f", - "film/ws2-concept/reference/lib-tests/__tests__/helpers.test.ts": "65617872abe7a728cd19f12707fb456225d27ca0bab30863277d3b47e0a834ee", - "film/ws2-concept/reference/promo-energy-arc.md": "72f5be431d97c04395f3f02cbc5968922a906bcba808d511ddb5d9922b936190", - "film/ws2-concept/reference/sound-design.md": "cac6f23c0b360cef7c7d04655f3009cf5e45f79e5f775594a622e680b0301521", - "film/ws2-concept/remotion.config.ts": "dc2560488ec68013be8dfaf6995d8aa6ef12ee1e64253d7ed3ef2f9a28dd3eb8", - "film/ws2-concept/src/Film.tsx": "f9c41f018c382e43b074435f7f9383cba58337a1fd9306a6194c509c98f4ebb1", - "film/ws2-concept/src/Root.tsx": "4e1cf80dc01f8d3fbe56f9c21285b0d73e427b13284b34d218be45da30f77b7f", - "film/ws2-concept/src/index.ts": "98b03b1da7aa397e0fc89cb4600c418d3572b389cb1831b1e72e9b4400a5a34e", - "film/ws2-concept/src/lib/Caption.tsx": "e5be094d9c4321296da5078e51a83147aa39e4d95c95dccc2bf53b9f7d280d04", - "film/ws2-concept/src/lib/ClipCard.tsx": "3532788285cfe52fef4e836979832054c41885b238f4055fd84b40c8de44670b", - "film/ws2-concept/src/lib/DigitRoll.tsx": "aeb03c74d481a238dcd413af3054c264f9b4f91d5c745620e10a361fa4cbc20b", - "film/ws2-concept/src/lib/FlashCut.tsx": "2e8d9e6319f99970be839f05bc869467b3d580aaa40809efb04b5dc02dd84c7f", - "film/ws2-concept/src/lib/FlatPanel.tsx": "e5dff9388d24376db383873ce8ce32e3264ab5ef35c959733fbc568efef6acdd", - "film/ws2-concept/src/lib/PageCam.tsx": "1679bfc0c15973d5a51f6b600ae17d4d8c06c2fa3f8513e5110f9d0b9b3271de", - "film/ws2-concept/src/lib/VerticalTicker.tsx": "e4f90b838559beae465c6bb08736c00097bb0107d6dd4a378f64308e2acf1bae", - "film/ws2-concept/src/lib/helpers/camera.tsx": "8e5fc4e0ccfaa258fcbcc362761803d2c3e548cbf2e461d157cb42a134caf22d", - "film/ws2-concept/src/lib/helpers/motion.ts": "9123bacf8078982a903bb565923974902212f93ebe265e24d188e4362a8e251f", - "film/ws2-concept/src/lib/helpers/rand.ts": "0c64fcd062f1fcd7547e3da96cfa8430c2502eaf2e3f09fb2323392f8a5493ef", - "film/ws2-concept/src/lib/helpers/shake.ts": "bbee393468a944df5ae85261e9ffee3c78fd78de0087e057cf96ee36e569054e", - "film/ws2-concept/tsconfig.json": "4c1e3cf27dafa9dca603da9d50806a4cc91bd6c4a98de49cc7ccd2e171a39c87", - "promo/.gitignore": "5952c5b46c4c2fe0f695d512c95baa6bbe4bef5f3b985c8fe52da10177ceb281", - "promo/.prettierrc": "2a58e5602cb3d271fd359a75bbaf7b6e9faaf165c9178ff554ff8c48c80fcd8c", - "promo/README.md": "7b76bf357f34b9dd1e820078d85a8851eb864f4982a43401055c5924d486b5eb", - "promo/eslint.config.mjs": "7f2ca640409fd597965bedf929073b9a74f143643e1711150c4cac3b6ec5c80d", - "promo/package-lock.json": "ba8a6d7b2db0937609334aa8889a719b94b7406b21c0db37ac1b035640b04da6", - "promo/package.json": "2f57b31a94affd8480966acd14d258437fc6ae9b1b1051dc4b1951c17e029bf1", - "promo/public/icon.png": "8bddac882d6d9b4ae12178e69335e937d3391d07e3a56159d926d5b87c2cd8be", - "promo/public/system-css-LICENSE.txt": "0433a8c105e9d410ca3fb7f205aafe8f1be27e0438cf3bd1447907f738ebc6b0", - "promo/publish.md": "765fcb252a02fca61b243b432dcae6725605aa524034b1759716fa4fcd93cfd2", - "promo/remotion.config.ts": "38e9e6394e32f151e454efdeb84da8bcc616da7550bc8ef52e1721a001745394", - "promo/scripts/audio.ts": "55ff6da0a290c7644924f3ae564f8704a4786650d84fd873bdc8b977cecae37c", - "promo/scripts/covers.mjs": "738c2dfcda84fbb723fc78396c9270e0cbb19a628badf2b1433f12aa2e754948", - "promo/scripts/render.mjs": "2e27288a74ce4f26a807ff753d590b22c4b9b865bea8b4b282d017ace0a04282", - "promo/scripts/stills.mjs": "c287ccb068e3b1f252a0ef265e1dd02f5fbbe0b8ce9f7a39fc095e4680ce2330", - "promo/src/Covers.tsx": "5b5b94afc7ac33c7419bee91d55c63b1e95a9cb1b955e33b21ce507ebec9703d", - "promo/src/Root.tsx": "16d33ce51ae6063b7a1ad9fa43dbb0461b7010ad19deef854f5be796e24f8924", - "promo/src/index.ts": "957e481dd33a29b4a55ae0e95dbf763b7e48c37c427ca4bd1275faf34bc07a74", - "promo/src/scenes/DoubleClick.tsx": "ae808f2534b316928be302e4b6620dad99a26ae3bbefa87a1ad0112567ba79ad", - "promo/src/scenes/End.tsx": "4600329f05649b489319be4a4036eed59d07983e2931edca3675ae9b8d64b203", - "promo/src/scenes/Gestures.tsx": "dd3c709a7388c23fd69e49b06f18505101b459209238579f97cad737bcec1fbc", - "promo/src/scenes/Glance.tsx": "fb4877871d9c112d9793c815929371f41ac7b1429a531888d6015a33ae897c14", - "promo/src/scenes/History.tsx": "0f59f6417d9d73f5a2792cc001f6b4f101be3820374a8b9e786f81414aaafdde", - "promo/src/scenes/More.tsx": "69186d0d392cc9ace59d303a09b8615415251395a9c361e4031958ba294a3d60", - "promo/src/scenes/Multitask.tsx": "b51fbb866d46460dc118b1b5d473c0d62ac7414b740c448842b978cb0397db99", - "promo/src/scenes/Opener.tsx": "39dd35c5e72e8d98ecc713c5e2888f097fb1f4d2fb737c5469cae40fc013bb27", - "promo/src/scenes/Ways.tsx": "2f90fd0f0dbdd3ead3af08634b39817b50a2677693bf719f16cb0ca9953e9f67", - "promo/src/theme.ts": "3e42a36199d0014b42ec005ff62f621a9bf766ff12a39f8b61a718800b8865b8", - "promo/src/timeline.ts": "d373cf1d626a280b966105c09b9091fd085f4a35bb21abfc181b8ea2811d4d6d", - "promo/src/ui.tsx": "83ecb1ea03b0df230eb9aa86f7894d75189e54c1c2f1c8dc1e0f28e99269dadc", - "promo/tsconfig.json": "69d107d8754c0c175b1c1d5d29abc32ce157318b31ac90a3c7295c3550114cc8", - "prototype/App/AXLatencyBench.swift": "6e9319f45b6d679689d9357d23fd0c861eaaa9f78b5f76000e771ba738a390cb", - "prototype/App/ArrangeController.swift": "bb95dcbe618844541d577b9c15e5d11558819a5bba8879a85de4fbb79e1523e4", - "prototype/App/AuthorizationCopy.swift": "229705d3b2f3749a77b5593405316416b9a80251337e68fb3723947656c7e0e2", - "prototype/App/AuthorizationService.swift": "b2787dc3bb4369d687fbcde86e444cedc752f30d0629a2c5468ae646328a2ba8", - "prototype/App/Carry.swift": "915aab4bbfb6891ce535b0cf70b8c14118b90bc38c2f73a350ffc98c3b199840", - "prototype/App/CollapseAppearanceSettings.swift": "dcc47edc5d347bd2e247ef3a795ec5250a1a6c7b9f58309c2f4840d5f995b2b2", - "prototype/App/DeviceAuthorizationKey.swift": "6940303e09ec0a5e592ad431d4f071bad92ca1d5fa6e94c44bc76bc4733833be", - "prototype/App/DeviceBatteryController.swift": "f91d842f704003420bc783ec477158f66c722c5a09213bd5c6bf7469dff629a3", - "prototype/App/DeviceBatteryCopy.swift": "d8b91913cb5175d3730b1d4e2dd6673613330b68b44fcf9210feaccc78849f37", - "prototype/App/DirectionKeyPresets.swift": "c886eab76c3e433bf28040b055754f6fc6cbcc6e9394e3589ed7298009e42cdc", - "prototype/App/DockClickHide.swift": "122b5ff669d67ab7633ac3537a09e9246d7dd15fd818a5e6d98371859ec0e291", - "prototype/App/DockLock.swift": "aa87b167fe290bb002c1b195438e6104d8c22ee1eadface9c79b582d65830cb3", - "prototype/App/DockSwipe.swift": "7c3480e2051e7aca564a3743475adb3a391045f0973da44810267d4d3da06c44", - "prototype/App/DockSwipeProbe.swift": "2537fc6c26507d938278bda6cb5721a1285d55dafd084af380bc2487777f2f7d", - "prototype/App/ElsewhereProbe.swift": "1f1bf6576be570624eae2e27f26bd995d1e6bdc729997d015dfd997717404f41", - "prototype/App/EventTap.swift": "3c8cb6ff1897f0e5a4ade26240955a747462e65654e3567abe7c91dfa535fb8b", - "prototype/App/EventTapCallback.swift": "6f48ff09d3c591c589183f212d4e9f5c7cb24fa973fefe73b19af8ecbb8e4943", - "prototype/App/FaceObservationSource.swift": "fe1e1aa7bff0578030af1652c348b0396882037c2d267d439ae97172e9c24a2e", - "prototype/App/FocusSession.swift": "6a8feaa47356c9e6827eb41f3aa81cc972b0f884c518ef5c80716160f3cd8673", - "prototype/App/FocusTimerCard.swift": "f6dfab112513a28dd52b7d01990a9940c9ad9aaa64a37f54d77a85e0645fe996", - "prototype/App/FocusTimerHost.swift": "7aa01c91cb3abf4503ff8eb92a8060efcdfca907b295caa3ab0fde88d264b666", - "prototype/App/FoldCompletion.swift": "18559db591375242d83406a083b9a18e4bf5dc69de7b8c32c8f3494c31054982", - "prototype/App/FoldExit.swift": "e69cdab84f86400d15e9bbf85f3a1a2a5eb71c9586332576c13c301581d7af30", - "prototype/App/FoldTransaction.swift": "f353846ee708e80dc81e78636f24dd3976d5ec77f1c0f9db0e38f2f675519c3b", - "prototype/App/FullScreenProbe.swift": "98c31a6c3eddf12dde1a50011cfab68143bc38261c1c8e702d67ec7325e49826", - "prototype/App/GapProbesKeysPins.swift": "d457e8a45465555d827bf1928b8907ae1ca128089616705bf38a1d207f3193e6", - "prototype/App/GapProbesPlacement.swift": "3f91f6491b2b0a1580e5bba15c3a86e5199bf7c8e11f7562dd9d5598307a87a7", - "prototype/App/GapProbesRecovery.swift": "d45451bb35ab51dfd798ccf7939b41b4f6950bc03e5eccebd8e52c626d1faad0", - "prototype/App/GapProbesSlideOver.swift": "c307da706445ea559bafe5538b2bf64388e6604a77f9d84dc111e515a5412e81", - "prototype/App/GapProbesSupport.swift": "83fa9445f3d5814413759b3be2612e3bde6c903b5348ce5b5b224e713dc7949a", - "prototype/App/GestureProbe.swift": "5e5806791687b6391695a3b91a899703c2a3d256910f8e05dc61fdbda4cf99f0", - "prototype/App/Glance.swift": "07156696d4117a53c64575ead913c18d79772471609ef160af1798b31e6bdb5c", - "prototype/App/GlanceProbe.swift": "701a340d97b739e13e81c51408c06e6c95d4b631df81ce75455489c3ac82de78", - "prototype/App/GlobalShortcuts.swift": "f73921fa76cadded66d9986ec55a7d5a0b2edf2ae6935abc0860178ec09083b6", - "prototype/App/HabitContext.swift": "a5e7c5c01eaad8338e22baa6c3bb5caeda8d721f7ae3029396dbda004bd36242", - "prototype/App/HabitKeys.swift": "6ffba165b600f582c514d0dabf873f01f2e86890fa60cce68b83e7b83c649c32", - "prototype/App/HabitProbe.swift": "973d23c5f6bf8eec4e2fa41364fe98241b92c4108a79440ec42f383b5d8e005f", - "prototype/App/HoverPreview.swift": "849035faca83dfee588e7b88d0723ff53e99ceb891bd1b4ace1f3c2bf1ddf81c", - "prototype/App/InteractionCoordinator.swift": "5524bd61193c8e7ca5090b7c38c498f094bdc13a3e48971f3f084b2fb7a0c5b2", - "prototype/App/Launchpad.swift": "42098e0e45259a0f04b57713088b09ab57293997d70438a410fef38934619dfc", - "prototype/App/LaunchpadActivities.swift": "ddc8bc3153e658b8b2feed52ea5734b0bd515c722181129c88ae34750366ae75", - "prototype/App/LaunchpadArtwork.swift": "9565fa02024395fcf754acedf3c4caec9ae0a8dd9b618d23b6e17369e9017c42", - "prototype/App/LaunchpadBackdrop.swift": "54d1181b94a8c75d76aa7bb3d49737978ca3ad7984ff1ff107641e16618d14e4", - "prototype/App/LaunchpadController.swift": "64a0979768be281ccd2ae98b6f3e69298c66fbcdb5402b82dfc7f1e7051e0f08", - "prototype/App/LaunchpadFolders.swift": "99b845ca243f577c4b0e2ac8112e6a588b0e27a7d4796b155acc010f8041d9b9", - "prototype/App/LaunchpadKeysProbe.swift": "a57d2c09c520ef962916f8bd6cefd2b48725d298c70e3a1b2bda2f73fa668d64", - "prototype/App/LaunchpadLibrary.swift": "d4497f166351297ea0dc40d214391533641adf65a7301a9f9ad953356b5fb987", - "prototype/App/LaunchpadOpenWith.swift": "8555894605d53d805525ae120f915372cd8ea1050a4b130a063dd4847091ee04", - "prototype/App/LaunchpadToday.swift": "b049a50d0d3df00e200de75734178b35cd9abdaa7b676dcba4b45f8df854d8ec", - "prototype/App/LaunchpadView.swift": "4449e1a9463dd178a45ce565b4bbfef0371c79a6e6598db653ec6aca11f0f50c", - "prototype/App/MagicTilingRun.swift": "1de26ddd7d2df2f182ec578b878db2c67871ff1494f26ab1077bdd9414e6c4d5", - "prototype/App/MenuBarController.swift": "6c48edc1f260204ce5a5abd7d212b22c225bbf1219688573958ea3ed2c294e9d", - "prototype/App/MissionControlKeys.swift": "d90af0193955650f7deba18f5358cd155093313f398ce568c62415ffe064a762", - "prototype/App/Motion.swift": "f93263d9860f82363750593e3f65d4321d35c13ed31acaf268c56270c76138b0", - "prototype/App/Notch+Habit.swift": "fd362e41c78fcbe8ac467ef55a6028552520bb15464f2f4ad5b2151567678e33", - "prototype/App/Notch.swift": "f99ffc0698fa98d63b07a4d3c4ba196e6ddba38f1148df635295a47572c6a1c7", - "prototype/App/NotchActivityController.swift": "4ee8833f2e4d198fac9eef2c086c0e2bd53a1fce66927f9b42cfbcf42e37bc48", - "prototype/App/NotchActivitySources.swift": "326b6c21f7b02b8dc71ab0ba976cb59e219d0ad11dcf8aae35e3509c4b1810af", - "prototype/App/NotchActivitySymbol.swift": "edf383086a0feb48373ee8af374a37af7245591a146556938cdf9f09eb084cc6", - "prototype/App/NotchActivityView.swift": "2b622c8cfa4ccac64c4c0b2ea70f66263b8d71e545ec6330c22d9067206a08cf", - "prototype/App/NotchAuthentication.swift": "e2db024c1161ab3157018670c80aa14da701ac5473668a5defa246375797d627", - "prototype/App/NotchCoach.swift": "f76df98e2492e2d1070af5c2bf70653af529a8c3082d90c528564f6fca1e0e7e", - "prototype/App/NotchFaceObservations.swift": "f7f541e11cd13467409c555cae89714bd2017f14033100d9012f5982692aafd2", - "prototype/App/NotchShapeProbe.swift": "fe1e1188c4ac40518f18e50c2ccf1ee1cbc5cb65945bfcb7a78d359a52b19d2b", - "prototype/App/NotchShelf.swift": "0efd0bf6633695be3f2bdd2e542ecda53e8de26f2e78736426c87aa1b951e19c", - "prototype/App/NotchShelfProbe.swift": "db06842b77820fec3d30b66e9fdceda8cd0890d7f496d7c8d676d17d5a496760", - "prototype/App/NotchThumbnails.swift": "abdad6e9c2c85052c682c9e4d9fa34b190f631fb1de4fe9ef8c652f015dbf652", - "prototype/App/NotchWatch.swift": "8ba371f82c6bcf640464d58340bd3d63f503a6d0784e8c45fd84396b10921586", - "prototype/App/OverlayFactory.swift": "671c722677e213613459f159ecd685a750bd6e871e5eedaa492a0f35b3eb403f", - "prototype/App/OverlayPresentation.swift": "46726c5a24c76ab7bf3a2e6250966cbc1c0234444d2cd2fbd0a9d0c7c1718060", - "prototype/App/PeripheralBatterySource.swift": "149935ed50964a0c77b69551a56551aa2d26ee84e9194e098f3cf61f4ece8d36", - "prototype/App/Permissions.swift": "7f7ffa614871ca3fd6241e11b8835764f3815875e0526910145db5483861a9e5", - "prototype/App/PictureInPicture.swift": "afff2ec83f3aa33007437729784286ded251678701f912fe482bff3fb1c77b55", - "prototype/App/PictureInPictureViews.swift": "66190877175232fdb8be54486a0b28beea474a168b898dae9f33a30931c8f9ed", - "prototype/App/Preferences.swift": "7e7f3c3623de1e5a955c552fd8117bcfd2c9ee2ce8f8839f1950a241d78c72c4", - "prototype/App/ProbeEntries.swift": "f09f5e8607eed201845178c7e0dd2cd87340ed71fe0e6f6716241e9cb01057fa", - "prototype/App/QuietDefaultsProbe.swift": "cef48ea449ad9551e122bce3f47d495f1d3f691fdbe8c715cd7966a3421207b0", - "prototype/App/Reconcile.swift": "290d8fb4dcb1b14e79620279ff9e30b42e81fbaa86c68678808a5073bd333f04", - "prototype/App/RectangleImport.swift": "ea45acb976738d3cc1fd347c1042b121e55d7c809c2f9e116580d728cb596258", - "prototype/App/ScrollStripOverview.swift": "87840b8f1daa1ff7f93ea5b54cd79462c4c62dd46e315756620f8caa4bffdcd3", - "prototype/App/ScrollStripPeek.swift": "fbe850a728468b4be72c3cfa39becce428aa423a709afe870174d15d8c39f9d3", - "prototype/App/ScrollStripRun.swift": "e454ad1d46d9ff547c5fd4557722e3b450925e24c0fc6759eb00d9550ac790d0", - "prototype/App/ShadeController.swift": "ffe5d474a28aa43ac12baf5e4a85b1d795494be0df928980fe6b4e69d8bb813f", - "prototype/App/ShadeSoundPlayer.swift": "7971dc06925fa19e0f2052d51427d1ea43d2f800d6d07aa8cf427c796af364d1", - "prototype/App/SlideOver.swift": "ac7b2bb10125399b4afdc47902bdcbb9b1936d147347ed56336900d5685e1786", - "prototype/App/SlideOverChrome.swift": "d4c72f881c8106dd4b9c82d6f4ddd158acf65512380bbd8da6b0908ec804ab97", - "prototype/App/SlideOverDropHint.swift": "247bb74176f37f537ef5e781f4df02fef8f989b8dcc3476f5b038910869b879b", - "prototype/App/SlideOverRecovery.swift": "7f2347ef2fccb5f421027db4da4549dcb7130efc10139b36f542f4fd08a81254", - "prototype/App/SplitView.swift": "5c8694e329550a19a626d4ea9275e19af07a977e5f0a6a3e94f95f487716b87a", - "prototype/App/StandardMenu.swift": "65ae1974c0e53c606e009b716ef6c35e193ac3eff05b1ac2ce46aee829102ff4", - "prototype/App/StatusBarIcon.swift": "7c0d4368393f9d2b5f94844fd45c5a17025b828b44685b57d25c2b32b7ee6774", - "prototype/App/StripKeys.swift": "cd19aed70f476e05d16269ad8a686d71feca9592d46624ccedbc5444f09ca973", - "prototype/App/StripPeekProbe.swift": "35d07816e389419220eecee6383ddcc2afd21d540300f17d44655af190fe1d1c", - "prototype/App/Thumbnail.swift": "70793ef768cdbcfdd3ea38fa14e405de8a91bd5547dac7b84da1f333f9097cca", - "prototype/App/ThumbnailProbe.swift": "d67964e7c25ec612d7f2a8e162a2d530f2f3f64f67272aedcca96c72066cfa44", - "prototype/App/TrackpadGestures.swift": "9fb30b213a8c5076faa2fcf7de09ae21da700ead05b8f4322d0c00f8bc984db9", - "prototype/App/Updater.swift": "d2f0aa355acde29b729d0a05fdf41b33269599bf7d5405df64e8117a9c0f2c03", - "prototype/App/UpdaterCopy.swift": "699d4862525eafbe61e04cf5890da36acb899e21f962baa0596346d0c9fc8ef8", - "prototype/App/UpdaterLaunch.swift": "54b642694b112de3a295c1e924658275af545d41ddfed833965b19223d3ba150", - "prototype/App/UpdaterMove.swift": "b540ab91858ca9986e27e1a03de60741c4f2beeb76cc0367838918519c30a1ec", - "prototype/App/UpdaterSettings.swift": "b0a05613483abae16fd761c80ae5745e6c1e13eb76e2174bf87a22060160244b", - "prototype/App/UpdaterSparkle.swift": "463ec65cd63071614152273e29dcefffd826cc73c99d8bf30196f3f94d4800c5", - "prototype/App/UpdaterSystem.swift": "31ffae2972b4bd85964edb73daa74cf2b7f726b7be858a6e9d04d8a64f6adf37", - "prototype/App/UpdaterWindow.swift": "5d4843d963a4dd9e38daa0b61db916ee9c5cf33922b182071b42c9b1ab3f77b3", - "prototype/App/WS2AgentSessionView.swift": "2eb4cc0b0ffd80413aeb0375a2b4973039174218273be6988b5fc1a8f730e53d", - "prototype/App/WS2AppRuntime.swift": "99205e90fd9d99278da55fbfe88924e2100c4ada4223c6d35136da67cf5b6db2", - "prototype/App/WS2CodexApprovalHost.swift": "f400c3354906b3ddb97f7651388468520d91f5eb6796417d014d7753266bf03b", - "prototype/App/WS2ConductorView.swift": "35e1bb2d5b14f59c381aba5969009add1be93e97eb3eeb2005fd1d9607e6e225", - "prototype/App/WS2DeviceActionHost.swift": "e969db6f1d29d4dc2af25afb99a58e90281b395480a704193de53e3b5cf2e5a7", - "prototype/App/WS2FocusSettings.swift": "5c2dd1877beacb8a5e09b8ffc9ae687924068e791a0224484308a28e1aabff60", - "prototype/App/WS2FoldCallbackGuard.swift": "9f8d8cc688955c493ac17ebde396f59f70892e32c0b78250c78589c007fc63db", - "prototype/App/WS2FoldEvidenceAdapter.swift": "56606957ca290794e0450d6199aa4e3d85fc954e4c472a9e6158bb06cdb7013d", - "prototype/App/WS2GameControllerBridge.swift": "cf257e4e8233d7030b96e5b317d02043024d25f2d03dc27824dd9976394881ee", - "prototype/App/WS2IslandCoordinator.swift": "315bf8f9b76ead7600c8829b69c4609bf89d919f3421631b3154aedd13acd91f", - "prototype/App/WS2ModelPickerView.swift": "1da4c59ec557195a5b03760eb038b2d8fe1ecabb2f733f2c29ab554d8790f73c", - "prototype/App/WS2OwnedCodexSession+Authorization.swift": "cd619ed648b81d55565ecf519777681ab4419bd2374eecb1f793c7bf29538266", - "prototype/App/WS2OwnedCodexSession.swift": "b05f1a6d7aeafd72f5e8d5dea6cd8a460737d57cbf319b1c242b01a5f09d2ef8", - "prototype/App/WS2OwnedLaunchController.swift": "302f4b8ad841610a8a471caf79af657a5c8bc5d10e9c0e0a8d954363160a4ed2", - "prototype/App/WS2OwnedSessionView.swift": "d3360e975925f28b112b32d4c51b9a75d195a507629793e5e5b3d3eed006434f", - "prototype/App/WS2SettingsInfo.swift": "c73bb4d2152117572fbdfd332ae00bbebe784839868830aa2933821195b7fece", - "prototype/App/WS2SupplementPane.swift": "eb49bb23eda0c267d0c169dc4ef4040dd462ae3ed71f75aa341e2bfd96c39fcd", - "prototype/App/Welcome.swift": "9440f17488f309d103aa9eb75621f7e7dfdf4822a7ae07b7c80a4d5b99ea5bbe", - "prototype/App/WindowGlide.swift": "3f40e5ffb7f4d870e231977916f724a54b0e5ed5ab550f3ffdfe8b5b87d7b0e1", - "prototype/App/WindowProxy.swift": "0c852e43d3926075522d628800851fd625578201d875c669b5efbac119b1ffad", - "prototype/App/WindowSwitcher.swift": "21fa5041bcc27a6622e44836c3e167f6799c9a3857b927d4d7f52fd16ddda92f", - "prototype/App/WinsSwitcherProbe.swift": "05572d4bec475ae450e6b427cd1e2062935ee39c17ca898777a90711241fb217", - "prototype/Capture/CaptureIndicatorProbe.swift": "cb9f717530964a7d3fcd96e8c7438180b599be450273dc8f627e334fbb049be5", - "prototype/Capture/CaptureIndicatorRemoval.swift": "136aa4d41afb6a11c3214df1a3cf92c0fb110bd58d8f02059cdb73161becedf5", - "prototype/Capture/FastCapture.swift": "bbfe8e9b62fd5177d3260309bfcf4a3bb010cba7da6dab9839672ddad9306b3d", - "prototype/Capture/PreviewRenderer.swift": "a8bfbec04f4d8ba82da224832c19b0180a87d6f0e2f6e8c3788b18075e272ac5", - "prototype/Capture/ShareableContentCache.swift": "02d249d61bc8416a480578f4b8db1b0ad074733defac4e191adb5c6ea170086b", - "prototype/Capture/WindowSnapshot.swift": "66b7c0ff2b81b7cf8d4fc3ba0d6887703d50ac94b5207795ee2edef9f3d4210f", - "prototype/Capture/WindowSnapshotCache.swift": "4bdbcdc3270a49071d4feb0f10e80c08db2d8c6cb535d1d2b57d38a712fa27d0", - "prototype/Compatibility/AppPredicates.swift": "f7bed5be688177e482e64ef96066d7ef37967b962206d639b7fdd87430fd7d24", - "prototype/Compatibility/Policies.swift": "ca921cacaacf77751d48cccaaf5781412d8ac867135706eb737609cb6cca93f6", - "prototype/Compatibility/WindowPolicy.swift": "86c30970c8cfd6baad88188c99f4057c4b73311147b1031687bf2153a7d08a9c", - "prototype/Core/AgentSessions.swift": "218b3910959c810d5662d608b8ab9560d5232cf5e69930c330b400c940c65d7c", - "prototype/Core/ArrangeGap.swift": "93078fcf0f8c4693bb2e25dd05fcf78e21b7a76a13adbc0336754969229ca945", - "prototype/Core/AuthorizationLedger.swift": "495d1ce534fe560c8c0fe43ee6fd2bb5e9e24b7f82b172978ffdd62143985676", - "prototype/Core/AuthorizationModels.swift": "185ce60f64c618898aae3e27169843337efd3e8eae9bccd81f3c4151fced7719", - "prototype/Core/CarryShelfLayout.swift": "b12db5b98bd4e244b5ba4ddbaa909c897d74ea7b778c892ecbe1a6f98e0e0f84", - "prototype/Core/CodexWire.swift": "ed2e3e209bb3ff42c6ba8273b323f2b6f70bdf48daa4cc21f91060d9bfebecf3", - "prototype/Core/ConductorCapabilities.swift": "4494697451f96b08ea1c1bf92fbb83ec9539055ac06937edef392558c20c9af0", - "prototype/Core/ConductorGesture.swift": "98802f88fa95985e05a46e75582016e60692725c75c84af0e74cb2248b867393", - "prototype/Core/ConductorSession.swift": "e426c0b1a19fd8bea29528f707371decf0ac65459e3c85dbd6d6e2f94e7f2e7d", - "prototype/Core/Contracts.swift": "12fffc2e5cf207aa0ca6b4c371f28b9eec8c2b374b5e1a06d8943878891b2420", - "prototype/Core/DeviceBattery.swift": "7777539671486437ff4e26398663d7187b31401405d866362efde3caadc473e3", - "prototype/Core/DirectionKeys.swift": "0ef2f8b9997499338f8895bd010cd89007258d6cc221787cb229e942fcf8ec1d", - "prototype/Core/DisplayRefit.swift": "7751172780c0bc7a4410bb94c0343bbca3518b76549aeab18825afe04ca15cf9", - "prototype/Core/DisplayShape.swift": "64d7c414f0a6ccd227cc730547dbffb3cd7812d8dfb6ba858479873eddc8aa0b", - "prototype/Core/DockClickGuard.swift": "2290cbd5d3788825324f661490ababf487a86b77c1e1c6000af81b23afac3ec2", - "prototype/Core/DockLockRule.swift": "159299a99f0e91d3aa06f2eeb0697822100c28db87c8150ceaf19c21d8bcff03", - "prototype/Core/DockSwipeTrack.swift": "41dd4e6f3f1715eda10d3e187a80c4d79f92d4a86fd22b7e202955b171bb0494", - "prototype/Core/ElsewhereWindows.swift": "aabfd47c1f0580f98b68a1c18523dffabf6e2bae2ef1c271f1424f595346e5c6", - "prototype/Core/FaceGestureTracker.swift": "da07128afd663c1cd02d3fe83c93e5da3c2bbef0a97107dffffbd3af68e47028", - "prototype/Core/FlickMotion.swift": "46967abd13acba1380e700283a6dee547073a860520c7c11b86454db570a322a", - "prototype/Core/FocusNavigator.swift": "372caeb9b2b2318d8b15dc8e014a69ec6e2ddc305d5731754f2810edfc5578bc", - "prototype/Core/FocusTimer.swift": "f8d5760f92ad924c1727717938e84bc456f84967c931faec36d9554e243bf462", - "prototype/Core/FoldVerifier.swift": "8391bca46e6af68e0ae1942edd2e9bd106f5ea83e237ffa9ba0b58e5b878c597", - "prototype/Core/GamepadMapping.swift": "672cf04922a50acca6eecd2727b135f07a05acae74ab285e9fb92a23ea39a855", - "prototype/Core/GestureCoach.swift": "2490c0d99e5fd5cf72096106afbb82a07e1d47d15f0c750ed19316dc4481171f", - "prototype/Core/GlanceIntent.swift": "f024dcf706695b1b226f8ab38658f50252310c5035040ce685ce94f087d09ea7", - "prototype/Core/HIDMappingTransaction.swift": "48edb2bb043ddd6cf18285f422ae90e4f75b258ee75efd9c6976fd7ef973a3d6", - "prototype/Core/HabitRules.swift": "dc9c9465f28d295849a1ca032eab408f012feaa35008e0b42d2e7e26d884fa1f", - "prototype/Core/InputDeviceKind.swift": "bfee009b5bc3fb1031a4cebbfa871bd770145e424cc8d9343eae3787d5c88233", - "prototype/Core/LaunchpadModel.swift": "33e3563b11c5ad7c19ccfd332d51c9e4df1e236cf04bfb17d7f505818b8dddd3", - "prototype/Core/LidGesture.swift": "f9988eeff67ed98ef01c09ec1f77f955c049603a501d57e4ef03f2723df9e08c", - "prototype/Core/LockOverlayLifecycle.swift": "7aa73bab4bd6a8b6e3becd3c1c75314889f6997d1911817741e55cfbffe0462f", - "prototype/Core/MagicTiling.swift": "6aeeb96aac653d1eb587c2a12c3d31194fb55bffb196a6849257f593ffedd8b9", - "prototype/Core/MiddleDrag.swift": "c375a2e23e964890a9d5f691b44aaeecee889670e5aa1641eb6bdfa99a138e46", - "prototype/Core/MissionControlPick.swift": "47856dff5c85d98d7d2c9f6c5d741247f88416171f602cfb036865eda3c62dce", - "prototype/Core/MotionTilt.swift": "0561b7804905d071677d0a50de2fe115203b1c6bc2e010cf7695447e1157c3ee", - "prototype/Core/MultitouchQualification.swift": "dd4bf29aa1cef3fca706c8d9781a84da40f2174623ead5cbeb406132e967dd91", - "prototype/Core/NotchActivities.swift": "e5c6c6fc339b58175672abea1322b5aeaa0c526ab850a4a0b0d7c48280f5c10b", - "prototype/Core/NotchAlerts.swift": "2084a95a7dbf3c63d200c663b290ca744ac6494fa7aed52f69ac44c7d8567197", - "prototype/Core/NotchGlancePlan.swift": "249b49af6ba4c0ded8abb7d6087136e70b0bc8afe2c31dd417e50755560708d4", - "prototype/Core/NotchThumbnailPolicy.swift": "7f0c6b19a2c1a899cbff8fddaf8f8b65f2ec01bacf234d92b1c1ca82d60a3350", - "prototype/Core/PairingAttemptWindow.swift": "262dc840763d31105c16f5edda749a2e11ea15064158884c825109fbcd3450e3", - "prototype/Core/PairingTLV.swift": "32495002c85cc927a8c31cd5699ff517f070107120c111919e9b35c1df2f3845", - "prototype/Core/PiPLayout.swift": "176cd9e0b8644d08a50e7503707fed57e762ba95094d497b3e96f276f0a989fb", - "prototype/Core/PresenceLock.swift": "7099b9f42bc09683ac35dd345020a58429bd2e9e19db4823082df19ad7540188", - "prototype/Core/PresenceReadDeadline.swift": "1fbe0aecaaeb279525bc7a5b37de6ffc7b5b48107df0fe84e9524399a287086a", - "prototype/Core/RectangleKeymap.swift": "9b337f8acf4066f3b2bcf51db605f89b52f5727ccfb3bf456a0304fcbd84bba2", - "prototype/Core/RemoteEventRouter.swift": "7d025693b62af9d3a537e0f71fdbc5312f0773b53d6a51008f1f441dab4b3e19", - "prototype/Core/RemoteMode.swift": "559d83d94615574613c9ec13a92ddf9395a55157c21f3eaff0e60b61bb48b3d7", - "prototype/Core/RemoteSessionGate.swift": "a48f690ce3db11c93563402a6e27601ce33cf6293b20985efb4bbecc2e1d23f6", - "prototype/Core/ResizeStep.swift": "f9e26b08435ed3421c0ee7c374f9c2dcf11cb64dca32b01231a2939a2bdb4060", - "prototype/Core/ScrollStrip.swift": "8f035b93e7f890bb6b353722f58b6c637101edf217c486ad85c2173f04931db5", - "prototype/Core/SeamLayout.swift": "2e5fc44dab7a3449ce57e80e05ed3662096209677d4556d5869222555f29bad2", - "prototype/Core/SessionLockState.swift": "1f92f697f9a7c1b5add7c4842496b86d4e65b93f2985e10f08ba3662a82ebe75", - "prototype/Core/ShadeModels.swift": "49550836c173cdefb98bf1a2db924a9dc8c6ebf9b8f60428592a21c43eca1c22", - "prototype/Core/ShadeTranslucency.swift": "f8083113fc6864b3a775a0081af4c957eae6ca186ad3cbb3e1134c6dcf7a6487", - "prototype/Core/SiriRemoteButtons.swift": "be2b7b7d83b28f575eee5b086885b250d4da6b1fd93b4774e02ff6c11b26eef4", - "prototype/Core/SlideOverMotion.swift": "a87a21acec5f89283974f055b5da01928e35a968e14f0aa943176feba029db2c", - "prototype/Core/SmoothScroll.swift": "8bcd292317a0be05903e2c2fa68c7a3c5a6a7b5662179b438dc03c8fd1b633f6", - "prototype/Core/SplitPair.swift": "ded3e14e991ee1180b7ff89699a7d2cfbd42ca965497b2a9678523cbdb62e907", - "prototype/Core/SwitcherOrigin.swift": "be5cb2a70a4e3d9e7e47542205d6668ff4bda622d87e71ef8ae6286d5888e5bf", - "prototype/Core/ThumbnailLayout.swift": "4a7b82ebdd40e4fd6363d03712591296da51c8ef034d86408a9e579745a093c7", - "prototype/Core/TitlebarTripleClickIntent.swift": "1bdcf6d07d61492d16fd239b550194e5d78d250a7a5e446540a389f2aad4ea9d", - "prototype/Core/TouchTap.swift": "60e6818723846479f637e26a7236998f85003ac329709f01ea3ca6a7efc72c30", - "prototype/Core/TrackpadGesture.swift": "f4521524e1de21126f02dce390b1ced38a1e0ad7fd31e05b4da4d333b0fa3948", - "prototype/Core/UpdateDecisions.swift": "ed0cdc6362f49ecbced53742e26260060768db5d441c679b6aab4a39f6af11c8", - "prototype/Core/UpdateModels.swift": "4706a3fd6d8412f30b9962b99ea91d767b45b3e8d184e74c9424955db51f61d2", - "prototype/Core/UpdateVersion.swift": "539abc3c74b8573b255d8d95e0dfa7289e4c80347dd23804d47915cc19b1e793", - "prototype/Core/WS2ApprovalReview.swift": "382ba5ed147027f63d3707ca865e79c7a38183cfa7e7216979472f0a42e4a149", - "prototype/Core/WS2BoundedOutbox.swift": "80fb7f58123a2f9df5c0d7b94c206277427e269273be595ac25e4d554c68e326", - "prototype/Core/WS2CompanionFrame.swift": "2ecb698bdf16965242836f132a7bc801d0ac7db7b488abc0d5a1b878a4c0fabd", - "prototype/Core/WS2ConnectionBudget.swift": "f225317ecabd3143c7c40603ed7a1c2bb93f19f083c59722a6bddfc409be9cd2", - "prototype/Core/WS2DeviceActionContracts.swift": "bb69fd284e1fe4921c90e68f770915e724ce6198f12156662f81b04161a809a0", - "prototype/Core/WS2DeviceInputGate.swift": "60c5be94786910c4719bcc4b56ff7ff217708e3981591922f33bbe9b384ae662", - "prototype/Core/WS2DiagnosticTail.swift": "fef7ffb8b3191d594e2c9e5e8521fba1ff8271975ddd653c9ae2185281c12fc5", - "prototype/Core/WS2FocusEffectPlan.swift": "60ccb717e3641f20e1fc499dc1e432ba37493e3c4abe8e28c73b2ebc19419829", - "prototype/Core/WS2FocusWindowOwnership.swift": "69a0b9a82fd67c318d92b4bcedebd6f980b094f24b37197758fe1cf85f5ab3c7", - "prototype/Core/WS2FoldCallbackStamp.swift": "50e53418e04733bbe0421c49533bd7e87943f25707f7404bedf188a4ed4543de", - "prototype/Core/WS2FoldEvidence.swift": "3d1dd3583a1e6f93a4d721e6b4587a0cd700c993722fee2f7a03428919f420dd", - "prototype/Core/WS2InputEligibility.swift": "d88deec0bf2c6224710e90bf106e23a60cee3535cab06e3bf48c8bb027163597", - "prototype/Core/WS2LockRequestPolicy.swift": "900c77a7fda12d50eeaf345bac99e8ba57ae7eb044023f0beb45ab1aa0f616d5", - "prototype/Core/WS2OwnedProtocolHost.swift": "11defe55b4723986cdcd10cea154dfcc10f205dbb8d45eb1265c9dc84fe5b765", - "prototype/Core/WS2OwnedScope.swift": "20102a3fbab321958f7dde9a24d69453f3a7d45d2f537fd5957a9a4df4a9d6f2", - "prototype/Core/WS2QuitBarrier.swift": "2a80a0409cee77c4a117844ac1192084ab922a1073b405d26909a6fd8a39754e", - "prototype/Core/WS2SelectionModel.swift": "c8fb3c0ac6564970d2daedee4d4708799ef0014a94a7bb22b99f18a85d86cf4c", - "prototype/Core/WS2SemanticInputRouter.swift": "7055bb6994681ac67dd6b166374ab00923a8e1d76b9133021d922925ef2ac3c6", - "prototype/Core/WS2StrictJSON.swift": "3c1edb48065c85d7b0fbed12ac8299df4d1931abecfe53019f9ea9cabdc9bb0d", - "prototype/Core/WS2VisibleListInput.swift": "919b37b1add050fa65660fa70127a8dc131e659675ebedf791b86277d5acf425", - "prototype/Core/WindowShake.swift": "0e94c26c2a949a44c52531c0b5193c887901a36937c1d7ff04b0dc7377ad5d6d", - "prototype/Core/WindowState.swift": "92dccea12a8c772dd4678c4d14e43866c2a8f12b5e88f0573b34133483eec9c8", - "prototype/Effects/AppleSPUAccelerometer.swift": "d39fd145a3f3c46fa949fe9c543c26cbf92decda6794cef93d7440e42b13ec37", - "prototype/Effects/Duo.metal": "7ca2be657b1e50ead1577d23d1e5f65375931ac391d94eba9fd5e9c19649dbe6", - "prototype/Effects/DuoController.swift": "00c452749f6ed69481d92b386ca9a1c5a8e034f4fcce7bcfe8fc5321bd692612", - "prototype/Effects/DuoSettingsWindow.swift": "04a80b69bc44fe5185dd558de270842d74aae8a3f107be907a78483fdf4adbc1", - "prototype/Effects/EffectEnvironment.swift": "b96919951e9dcd50184cf0a49d1e4d4686f84fdda10e93ba775b76adf0b5c5ee", - "prototype/Effects/EffectFrameAwaiter.swift": "9c7a967621855e6add53c5ee4cd405249142d018eea497e5301ebae72e0e42c8", - "prototype/Effects/EffectFrameSource.swift": "c63cc6885d42278bf8ce30ae05cfc63e3f209d9490524fbd73ddbfb5087990ab", - "prototype/Effects/EffectInspector.swift": "db563c7b334ee2a23476ee4cf39ac87d3881aceeee49049a855ad4c71d2a22e3", - "prototype/Effects/EffectRenderProbe.swift": "f6e780ff32160d09918c5b38c05af6d954be91353d145d1f21e89a374f85d019", - "prototype/Effects/EffectSession.swift": "42f2c3f32cb94c62b56dbac2a3ff97139feeba19842efa38b33b21341cdac45e", - "prototype/Effects/EffectSoakProbe.swift": "257182b9374960b36a6d143fb650596237140aba6cb10ecc5430779d7c069610", - "prototype/Effects/EffectWindowProbe.swift": "9cbe19213f5f0f965c62e9ff0d523e131b3e3cc2732d2ce135aab2de6299b16d", - "prototype/Effects/FoldDriver.swift": "d710a5f9546321a2ca9fa29efea2e56edc1d80f738f0797614fcd7b876309852", - "prototype/Effects/FoldRenderer.swift": "e3408e15a67de03ba068d43cbcccbba8655f19abec36a7c0785f670d2bce189e", - "prototype/Effects/LatestEffectFrame.swift": "e9c57b3f2ab933d8de70257d29dc0e3840ae23280d186918bc08fa9d15c3aac4", - "prototype/Effects/LidAngleSource.swift": "bd17b11559c8e698d4d8e8ed57f78c0f8dfe6d28cdc29da858b94b5a0da3cd57", - "prototype/Effects/LockOverlayController.swift": "ffb6c861c80ab6096ee8627c22ba93dd8f6d7b6216b6ef7154e375631c8a58cb", - "prototype/Effects/LockOverlaySession.swift": "fd8da1d18ca18369f9f2df27178911c3762ce70028bbc6809e5c9492e92067e2", - "prototype/Effects/RestoreVerification.swift": "521564f365800522736a893ab0f5b594746e5a20b86e668ece2833d66282930c", - "prototype/Effects/RestoreVerifier.swift": "a0ed730ff532106fdde2eaa64fd8905d5aeddaf9a1ec1e28c293b26ff7dc7052", - "prototype/Effects/SettingsDesignPreview.swift": "2acf03fbf39f406b80f27b650641613230c0ba1b2e7bf07191ff5856d346a35f", - "prototype/Effects/SettingsShotProbe.swift": "5e8bc146379a032168146f54bd4d949b5ba4dc22e10ac6bf1f524151c057c5d6", - "prototype/Effects/WindowFoldEffects.swift": "eb892b8d6d4aebe9759080bb0cc80c690d1c0369c6a29fec609857db83658b8a", - "prototype/Info.plist": "8db707bd0bf02100da2517cd8d28e2379cf9077e858af299d088c6d264f91acb", - "prototype/Native/WS2Child.c": "134368aa12dfbbb9ec5a6f60a121c44b52b46bb303d55d73b18d78326d875f47", - "prototype/Native/WS2Child.h": "95380850f4cbd24d868fc785978cda939307f3962640b091200068a17ea1a9da", - "prototype/Native/module.modulemap": "9cac42ba9402e4324e393d07c155c9375e20846e3bca84117460fdd0e6a0db8e", - "prototype/Overlay/GestureHUD.swift": "e8bfe37a0b0c4c5da59ec8bea9f256dc19726e0634b80534ceddb2160f3108ef", - "prototype/Overlay/GlancePanel.swift": "07e9babcba683dae230b82acfe2c0b9985d2ffd8134c9c13ac308d3169c84a10", - "prototype/Overlay/PaperSurfaceStyle.swift": "1a8c1541503bcb1c0710be685a76aa0d2eab4b37c0a836b0f44efbfb44e99f2a", - "prototype/Overlay/PreviewSurfaces.swift": "8bdf6d62b84ce1f87355c8f8c809a5a062cc3a8005c1d5421390f7a7c6f33cdf", - "prototype/Overlay/ShadeStrip.swift": "ace80cecd6a084427c986c7788e3b12e34ec60a28a9b3422f3a2b8eb355d806a", - "prototype/Overlay/ShadeStripPool.swift": "3f602cd370d1f082a59e4d8bc598a07f4168b7e69c983e1ec3aebf6d22aca23e", - "prototype/Overlay/SystemAppearance.swift": "76ca3eccd79a32175412ae4665a0484ff9628a3ad372333868cb3ae1681ba345", - "prototype/PinnedPreview.swift": "661c5d272f81f0276e6f53ab2da11e3d575628086e03f8da3f04b1152593fba0", - "prototype/PinnedPreviewPanel.swift": "19ef12fbb7e587bb04604e5587c54270d89eff08342b5470565e61be7b9eca65", - "prototype/Private/DockBridge.swift": "235001c02b0e9edcedc3011356a531cc0e53e425490ecf7ce6f297c9ee11d058", - "prototype/Private/LockSpaceBridge.swift": "d16128cca2e5b893900e5d5165353724a780e76beddc5ffa79f4ac4a2bf8978f", - "prototype/Private/ScreenBezel.swift": "7673cbdf0373bceea50a156b4585e00bbedcb6acdf0a9faf5efb825617a8a602", - "prototype/Private/SkyLightBridge.swift": "26be2e78987f1dbf06cfb58ff0915c9e7a53d0c53a852c543171ff77a82e5fbe", - "prototype/Recovery/DurableShadeJournal.swift": "5dbcd013cc44573bfef4b028dae0ca44c75c963d7df131cf20b946a737c366c8", - "prototype/Recovery/Journal.swift": "0fa6eb0b1ef02048ffb0b26a1e8ff546c83d37dd96774da231d088e528c075c2", - "prototype/Recovery/Rescue.swift": "26cc2ce87db65aa2b49a134cbac248a1c69740bb0aadd042ad45631ff1ce2428", - "prototype/ScreenCaptureBridge.swift": "59c7d12dfc19266d46c87fc7692fc851293fe2b102926d06579c205cec7c78ed", - "prototype/Support/Diagnostics.swift": "a1430b16be3f87e7b8c066c5d68dfc033ab2aa2dab9cfdcea08d27868d2078ab", - "prototype/Support/SecureLogFile.swift": "ed1cfa426af7f9bd4d21a9376ed3da21338c11a1e2d9f79a3e99ee3ceadde4a0", - "prototype/Support/WS2AtomicConfiguration.swift": "49ca64b48ceb7d2717fcf2e56256c4fc3819bccd6b4cb67e1e369147fb3d0754", - "prototype/Support/WS2BoundedInput.swift": "57de90c5ff273ddfe189d3ffb03b501e6a90cdd837082971ca56924be380fa75", - "prototype/Support/WS2CompanionCrypto.swift": "d50a35fcb45ba1905fb26a6c3c4f14a7dd450bb8413b13bfcf8429b0a7eed8e8", - "prototype/Support/WS2CompanionTCPTransport.swift": "78bccef841039bf2d4fb5058ae21e01633da6f2e00435eb1a17b9ca2cd273266", - "prototype/Support/WS2DuplexProcess.swift": "1efe08a7d6987fdac80d87f345f1d2ce212e6a5dddac3a71e086e247d8ab579a", - "prototype/Support/WS2FocusEffectExecutor.swift": "674a8760579e1eccf401f6c949d6fcf69b74257943fe795b043f255b7c3887bf", - "prototype/Support/WS2HookConfiguration.swift": "a02f22b49a684d2c74aa385776c31d91b39cc5f6a4cec81eadbf457e8951ba54", - "prototype/Support/WS2KeychainPeerStorage.swift": "ffe7ecc5a1bbd58497156c645a074506371039f49ceb92bfc2d9b2c6f36a395f", - "prototype/Support/WS2LocalLaunchProfile.swift": "34a52b15e0a183c0e0f8d45d999ab15e0f8d1b1998b7fa467fe15a4b1c843a27", - "prototype/Support/WS2PairSetupCrypto.swift": "6345ec9ff7339c0845f4140beac96577ee1310968d71dab941a0266d315e6fda", - "prototype/Support/WS2PureSRP.swift": "309f90e249c72d9dce5ae4f1e4cf78c2a8b81a5c0517435cb2f7ca6f502fdf27", - "prototype/Support/WS2PairSetupServer.swift": "56ba109e6d1f63c8771cb0788c6c3af4796eed38cea5fe9880f744651c6516b1", - "prototype/Support/WS2PeerRepository.swift": "1ee4290d4151defac9a50b741c1128dbd8d6bcb7514cd4535ce39ac84f740b42", - "prototype/Support/WS2ProcessChannel.swift": "a87b82db462cd9fa4e0bd132153482a6c1c9d9859a4434048829443bf821cf6b", - "prototype/Support/WS2ProjectDirectory.swift": "7a9c30764d3199652eccc46265c4d7afae6c05cf65e1ee2a5be65c73bbd628a2", - "prototype/Support/WS2UnixSocket.swift": "686ea433270bef26a8a1ef5e8eea3b70fb399d9d5d3ce89d65b18da454f64129", - "prototype/Support/WS2VersionProbe.swift": "8b77c9a8ce4ec1d66f5106736783ad5581572e45d761ebb7ec92c68756d7bd8f", - "prototype/Vendor/Sparkle-LICENSE": "389a4e4e9a32f059775b13a06e25a591445ba229d2838d26dd3e7c0c45127cfe", - "prototype/Watchdog/GuardIcon.swift": "86a4da1ce16f774b882eaec4e7b9ba94c4cc981ae0488a910a6d07ac9d1f2523", - "prototype/Watchdog/main.swift": "dc5b952383cb3f6d250ea1bb06dda51bdd0fffc2861c84f2e17309215c0a4585", - "prototype/Window/AXHelpers.swift": "b679b85d9e4e31f1a2f4594a048fba885c89b46bd25395e3fab768c880ab71b6", - "prototype/Window/AXWindow.swift": "14c66d4832b32f5b55a92f896bdc0e0ffebce7588a5ac2c210b7c6c48782d3b7", - "prototype/Window/AppWindows.swift": "cf559d3698d8c20e1373f02205f5141583a3ed40aee89174eecf61f74e5dc0cf", - "prototype/Window/ChromeProfile.swift": "e5bf9411c34bf7300f7893ff4a088ef0b97f298eeac1e682b0fa0db1bba98d56", - "prototype/Window/Coordinates.swift": "8396b5874e5e219bbd635aabe149b2c22cf190ea0bbece57acedb62939dfe67b", - "prototype/Window/WindowListCache.swift": "eab77f6b1799267fd17995523aed369a6c3024ae74922dfc790ee9ec9bd13c6c", - "prototype/Window/WindowRegistry.swift": "88305979129b732efe6c49eadbe366c0c22f021ae70b19a1b38105f41e38e554", - "prototype/WindowBrowser/DockHoverObserver.swift": "e960e5af5199853e61b068f8bb170e28c536575b9c00b9f837c4d5c8f20e7ded", - "prototype/WindowBrowser/DockHoverProbe.swift": "5f246c4ad9adf0dffaf5dd533d5fbce9a71be59915441dea67da7803cfefd2d9", - "prototype/WindowBrowser/WindowBrowserActionBar.swift": "d64562ca98565f71f866a34657b65061c4fe5ee5ab01317f98d72c7ed9459fcf", - "prototype/WindowBrowser/WindowBrowserActionPresentation.swift": "6fe2f1b20eb0c5a5c70c2e0eb9ef13605a1a18c8aeabd796022cc90bb1828b00", - "prototype/WindowBrowser/WindowBrowserActions.swift": "9d3c4fbc9836384cde1904923b376307c8adca2b0b1f8e90dc69cacf9a0237bf", - "prototype/WindowBrowser/WindowBrowserAppDelegate.swift": "47a44ee7dd3717a71545ca192da753f650a75ca9a538a8ceeb0fd895583937c8", - "prototype/WindowBrowser/WindowBrowserCardView.swift": "45d49717fd01862f54f8e057539f34c53b72166d273dceb5e46bcd79de0ae0aa", - "prototype/WindowBrowser/WindowBrowserContentView.swift": "fc2f16c95332ed9ab6d38d51fd9057981339aae2b3475113fe11e4269a11e962", - "prototype/WindowBrowser/WindowBrowserController.swift": "64bd2b21134e068fdb2f56200817dc3f51a136d94f89937f61d6d9d277029c96", - "prototype/WindowBrowser/WindowBrowserDiscovery.swift": "310e952ed56a81ce6b6c0012f73c21180244491512a2eb2da28d2d6ffa8cd293", - "prototype/WindowBrowser/WindowBrowserDiscoveryFilter.swift": "52b1b0dc609f969048a124f8e432de16fea49ab1818256a6fc050045ab6e0eb5", - "prototype/WindowBrowser/WindowBrowserDockDetection.swift": "84d32da69e61439e8888470af49563ee1eb9000ec38fc0651392b25d9f152808", - "prototype/WindowBrowser/WindowBrowserFixture.swift": "87d41830e00e2bab94ad6dbda1411733b56ef6e514c93030b3ad74d2f098af49", - "prototype/WindowBrowser/WindowBrowserGeometry.swift": "8c99b9b866a21f9fa8a3367432b8f34bd22dd6dd67fdcabe63175133c81a08b1", - "prototype/WindowBrowser/WindowBrowserIdentityProbe.swift": "551299d755b98aaada4ad6e3067d0d610eed7f0726f36c8d327920eebd0a6463", - "prototype/WindowBrowser/WindowBrowserListRowView.swift": "c0b8db68c2a9f029075949ffa27fa7dc7a68fa26fa2112235430d2375c18bf99", - "prototype/WindowBrowser/WindowBrowserLiveAppProbe.swift": "7da491d0baed6b3c9e5015b41df0d563bcd73727c832a71e64a14c7f73885711", - "prototype/WindowBrowser/WindowBrowserMaterial.swift": "8c6c4fa0aa7b91393d7c36c04d5073f9d609e074489730c1a800e131a4de3f0c", - "prototype/WindowBrowser/WindowBrowserMetadataQueue.swift": "f84d13c4f228aa21bd5de5178ce2bafc419fb7c7f19ae954250057d3432139c5", - "prototype/WindowBrowser/WindowBrowserMetadataScheduler.swift": "0c77949b83a0cc53b5709903c7f9d295de93475e99e29659dfe38228aaf2dd0e", - "prototype/WindowBrowser/WindowBrowserModels.swift": "8d1ac3433b43938cebb8565f26472837419b06886c27600a34b37c6a73d135a1", - "prototype/WindowBrowser/WindowBrowserMorePolicy.swift": "0dd7330bbb8e954c9192b6a966fd5d404186f73f61ef6f0a10207684b25c017b", - "prototype/WindowBrowser/WindowBrowserMoreProbe.swift": "a89798b807b0379184465cd43d61a03bd37121d5faf9ece9732ea19a133af250", - "prototype/WindowBrowser/WindowBrowserNewWindow.swift": "67ad7792871dae78a36fb8d3d96f93100c3f7a5ae14fe33c1e3fc74760266904", - "prototype/WindowBrowser/WindowBrowserPanel.swift": "e51df9e16a69e98b51bde15147ea5712177ea2646b0d64c62b8cc5aca55829b3", - "prototype/WindowBrowser/WindowBrowserPreviewStartup.swift": "c85d8b98cdbf44cc2faa56dd20cb819c364394ae3a6344fd69eb657a531d5f14", - "prototype/WindowBrowser/WindowBrowserQuickLookView.swift": "fc14a2ccb192aa4f2d3dcf5aa0877737b890793c88096c643d6e5f0694bebce6", - "prototype/WindowBrowser/WindowBrowserSelectionDetailView.swift": "f8ae3713ba812b1d72c606baed65107fd30ccbbc2b77f142d743960659da77b1", - "prototype/WindowBrowser/WindowBrowserSettings.swift": "eaff6f4f80b76fc9e33ef926b80e6fb334c19dc4400288674c4e3bd9b2846194", - "prototype/WindowBrowser/WindowBrowserShotProbe.swift": "aee82f9d9b735feed796fb75a4dad86c99e71f6f7191ffcea61f9a298a8cc415", - "prototype/WindowBrowser/WindowBrowserTargetBatch.swift": "6e1d895e426120b795a1759c1443c75193649b2dfe2d9fd50665928df93c206f", - "prototype/WindowBrowser/WindowBrowserTargetResolver.swift": "2fc395871767c42537f7fe79a565c1837ef56c82654b5f08fab8c5b4f7b83ab8", - "prototype/WindowBrowser/WindowBrowserThumbnailPolicy.swift": "b986005482d3bda8c7a0eeefdbc2600b353b12780b23ea8cbefa8a01271b6c9f", - "prototype/WindowBrowser/WindowBrowserTypography.swift": "ce68992e81c1d9a9947c1258ccfac4f2b430be5eb715002d20e31de8ba9054cd", - "prototype/WindowBrowser/WindowBrowserViews.swift": "35b31dd17656b47ce7c4fdfd6d25771c8ed86f29cf73e8d34085976342331afa", - "prototype/WindowBrowser/WindowCatalog.swift": "b81bb8606aa8c93941246e9893ac81d509126845a46b43d3bacb623e7bf563bd", - "prototype/WindowBrowser/WindowMirrorSlot.swift": "3d3bb68eb6c59d18a0e8088f8b88dc464fddb785667b32e20b0346a4964cb3e3", - "prototype/WindowBrowser/WindowPlacement.swift": "0aa1edd22e88e621b77365532b8ae9f508045668322593277c24d23e48738561", - "prototype/WindowBrowser/WindowThumbnailService.swift": "e22d946a1ea9b79a74e1c9bfa83d807a924fbe0710f27ae4f0d8c57417c102cd", - "prototype/WindowShade.swift": "2c95d5d27a9f4649461e330e590da4bf0afdacee1fb0a2bfdb4897b32f570aed", - "prototype/build.sh": "e6db6c9f3499fcdcb4f28c065199f4f87aa64aeb0c5a46b098164dc761ad588c", - "prototype/main.swift": "a0583484440cb3d3d5214620076ae0786c1d2236ec81767cf3f31f6f8e792bf8", - "scripts/check-settings-appearance.sh": "ba4eea9d99f1dd57e48d38b4932fffb0f0a3790277e54362ce7b5cae9e43061d", - "scripts/check-standard-menu.sh": "1f186101ae461a577460a9d09e4921743e315a40c51b533f0664559519124044", - "scripts/sls-symbols.c": "de51dd06c9c10cbb592ba03e8e5fa7f473770a2182a9d7d6f01c43058dd4a173", - "scripts/try-duo.command": "7beeeccc2c79837276a165f4bde054271a5d1530c5716b49c312b58a14bf3624", - "tests/AudioDeviceCacheTests.swift": "6fd6a03c80db60e0eb5d79ec8b200da3dd0215a76a77b9a61476a4b761b18d26", - "tests/AuthorizationLedgerTests.swift": "c012e780965ee2c229851dd83fea4fd5e84d80da52a50395853dccf7daf177fb", - "tests/BehaviorRiskTests.swift": "6d6f7c617446c8c641badab45c1f4e950d5b0862150528462d6aa19eafe59d5d", - "tests/CaptureIndicatorTests.swift": "68aa7694ebfa6326ec4e30d9291c14187f088f441f71ffa7d9817523330e2b1d", - "tests/CarryControllerTests.swift": "e5e0942bc5842490cd348d4f929d36be83712f083952c8c9704f2e1156b6e5b1", - "tests/ClassicStripTests.swift": "44e61393b8576e971c24bd5ba36f3242fafbe74cb41a43571500ba916f679564", - "tests/ConductorGestureTests.swift": "14439c86a80b4fe153084eb21dd3f944e9ade0c6ec2a1a5f3dd59a8f75b1239d", - "tests/DeviceBatteryTests.swift": "09980d117215ae7b47979f56c1afe9f99a8091f06ad901d54fbfeccbf4b97501", - "tests/DisplayShapeTests.swift": "63675a2a344167dc856d230a16c9664c770758f479ebb204fd164a0f066aa5b4", - "tests/DockSwipeTests.swift": "d59577e0b45d78f85f03246cfeaf1740e6c24a04d6f164b9c0019c5b3915f839", - "tests/DuoCoreTests.swift": "580fbdfa753b6fba4941f67abc0ce7fe58d182d37cb3409880647a5ea6d748f5", - "tests/DuoFrameMetadataTests.swift": "f1850663a3ea9b6c90220044a1ceaee046b6cc58200e4aea1d8b30daa3b04cef", - "tests/DuoGPUBenchmark.swift": "5638f59b1de734ce94684339f6fdea28cb347769b46943fc4b501852896da6bd", - "tests/DuoOptimizationBenchmark.swift": "6414d5a1401ff857f521f09bedd0ce741e20a9ec2b6d6fb17fa861e434630ecf", - "tests/ElsewhereWindowsTests.swift": "a768bcf399abb35a1b82e21db77a777eb4a341ab7f138c5a231758dd72c6852c", - "tests/FaceGestureTrackerTests.swift": "98239a145c0b7f45c20455fadad10255334ffbad6da6cf226f0de25871900d02", - "tests/GlanceIntentTests.swift": "9151ea28b4a5208384581587f34273512b69faf4c680595b6f2c654f29c263f1", - "tests/GlanceLifecycleTests.swift": "36ff4b576f04cd482aa661a5b3e59609f5a97194652176f59e48bf0bd5875e02", - "tests/HabitRulesTests.swift": "c2ca1ad2424e89eabfda84fa57e8f2dbfb277e68b6453a6cbfe5106c624bb913", - "tests/LaunchpadBackdropTests.swift": "99fe0c5c298970453842a07a8a2a290ecbc24fe01f94c1eec076977f2aa38321", - "tests/LaunchpadModelTests.swift": "e0b350f6cc96e12fd4ac0ce3ce2663dc1ea29ea116b890c2328942fcd70a14ee", - "tests/LaunchpadViewTests.swift": "c4a9edaea813a157e900546f7b88123f083c1f20c8e0b8761ffd1210ecf80a4c", - "tests/LidGestureTests.swift": "37ad9d94eedec3c240e14cdbf1364abf9d9876a54b290a1968f4be3e643a752c", - "tests/LidSourceTests.swift": "c07ff687a2a34e1a94f541fe44e2064496849bdc246678fdcb9eb9398cd4cebb", - "tests/LivenessChallengeTests.swift": "be983797fa49a07346030c51ac0200c8bc7e6ed6fef77fa7302c4ed3783b4cc7", - "tests/LockOverlayLifecycleTests.swift": "3981318764b379d6e733a0acbd04bc0af613bca6148929c5a4e4d6e1d66ebf21", - "tests/MagicTilingTests.swift": "03977451a1b2fda9dee0daaf45acbf1fefabcfd16a162b685929938a9fb8d270", - "tests/MetadataQueueTests.swift": "8e942639ef13f95d9e0ce30a1a269ec9a2426f96ac48b2b772171d967d7c610a", - "tests/MotionTokensTests.swift": "06a3cf8102bd9e4f5a11ff648af8c08701c21acd615c9891a175b68e1cd02444", - "tests/NotchActivityTests.swift": "6f894ffa34175e557a8c6ae8cac03e866da49aa66ce16d7221a71ad331e85d13", - "tests/NotchActivityViewTests.swift": "4954e6b70c0d40d4576a4307c7ecb132000944c0ef4dfa8475d8e507c026bee6", - "tests/NotchAuthenticationTests.swift": "6b7e46e7607040e2c4abc6b809859c748635004cc752ff6d207ec957c1dcaac5", - "tests/NotchGlanceTests.swift": "0dcbae862ee7eca51c49bac7f2c1b16fcd95c60c1019096a53adeb4ed78e73f9", - "tests/NotchThumbnailsTests.swift": "3cfa03c5ad9d1671cd0a2b94b3f62364cb51ac5904f738a9e5f7658bf45b4d37", - "tests/PaperSurfaceTests.swift": "08434cb38b6e8dbee4bba57914d27a312cefbfc29abf059cbea96017b5309839", - "tests/PiPLayoutTests.swift": "7aa2aa88e9e7544c62eb17cd8e37b6f9eaccd0920f973dfa853d4e154b8a6653", - "tests/PresencePolicyTests.swift": "5a42acc39d1ae69c1909860f710af17653058286f82430763c10630b9af68b9a", - "tests/QuietDefaultsTests.swift": "20f383f9c6d71958244714e8d4e4d007c5f8108f439152159418b28785831eca", - "tests/RectangleKeymapTests.swift": "8c9e19f57a17e324c30f52e4e3536a1901dc86bfa8b8b9fe4fa4d036056815e3", - "tests/ScrollStripTests.swift": "584e0c4acd9533a0d48d3f7d2db5af433e37b204e6f89c1c3043dc5ef7b4d9a3", - "tests/SeamLayoutTests.swift": "eb730924e1795377f54ade03d7465771b55d7195a17aafc649de5522077f86bc", - "tests/SettingsNavigationTests.swift": "c51f97ab6bcadac91cb8c80dc703fd3e870d908c27b2f024738444ceea9c95c8", - "tests/ShadeSoundTests.swift": "62ed4c93372fb29f764f22dcf968184fb06b73f998e5c55e33648b01a0a5516a", - "tests/SlideOverMotionTests.swift": "557af4dd930a36ecaa394e23dfecb57c2ce927606df0cc2c56a4b053ac206872", - "tests/SplitPairTests.swift": "853ee7754c26bb20eae0610aac789dbcbbc1cf9c4b0ef28c911cff389ae36262", - "tests/StallSamplerTests.swift": "ccd7069deb5732a04f57982e24ea7fa3535613d125184c6e688fcbfb3dd47a40", - "tests/SwitcherOriginTests.swift": "c9b9e61901e25010f9b298f1ca336db108fbb25e6fef200e3df55f2aa107ecbb", - "tests/ThumbnailLayoutTests.swift": "de0edbb80b71a80e3cb069399d5d60c6fd60c4190486d554e30b92140b57bcf8", - "tests/TimingFeaturesTests.swift": "00992191897b1588b0fb10fd3f6352cb76f45b3755b8bba049169278c41964d6", - "tests/TrackpadGestureTests.swift": "32eb176b0ffc896dc94c1e4fd248a30e1bc08f9320afdee21624b74a00f9917a", - "tests/UpdateTests.swift": "f5c1a2bf55d90e69a1cfe0d82361ff50b496b218f1288be7cd4d5d807927b8b9", - "tests/WindowBrowserPreviewStartupTests.swift": "29674876ac8ac58168812ece4c0c60cacef9d35a2c73b2d234a18bce1022f5c8", - "tests/WindowBrowserTests.swift": "880ea1e13c0082f81c13ad977c982a3232d655bb2c3ee76033cbcdd5e64e3602", - "tests/WindowFoldEffectsTests.swift": "4ee4862cd7a29f4edb2fdb40576551c45cb837cdb8bc85ffeedad4da8750e544", - "tests/WindowListCacheTests.swift": "3fdcc5a24540d46735b371c4f83a3653864bc4ba06fce06fe536f109287ba54e", - "tests/duo-integration-check.py": "77baca7e632b420b099a9af21b6462d826b6f9f2eb97c9c5d90f5906e002bb6d", - "tests/fixtures/GlanceFixture.swift": "42a9b09d4d50e2dc1158946d111b43719de83216013ed47ff239fb385d778dad", - "tests/fixtures/LaunchpadPerfFixture.swift": "9c008df67cf10add6ec425b9dc7855ca007d379ab6365d1e114e0ba7dbacd20e", - "tests/fixtures/LaunchpadVisualFixture.swift": "e664bf9ebe168b5543a8a6868672d4c2a842cfcc4dc4cc1c271fb907e4d541eb", - "tests/fixtures/capture-indicator-active@2x.png": "e9dc2161d154c48a5cbca2e156691131dbc0942e5e31ad624f77ad6850d966e9", - "tests/fixtures/capture-indicator-before-stream@2x.png": "f98ceb3b31a89ea298229fcb9dff01d0c3b86e5e4bf2583fc24b3b5f908b0083", - "tests/fixtures/capture-indicator-inactive@2x.png": "f979f41f3cd3faf343f3870486dbed609c36c716c790e88f110858caa1624c69", - "tests/fixtures/capture-indicator-stream-frame@2x.png": "3e070f6196de997e6713bdd320175f5cd8fbbf94dc50413215cf4b5941d22434", - "tests/fixtures/lid-traces/adjust.csv": "364402af37f1d196bb69291bfa359f2743eba38bbac0f65c737a79df6c5fb72f", - "tests/fixtures/lid-traces/fast.csv": "674d70b7c4909699de5a8ef8d7d0d873ab0f8cebf167875bdb609e397057003c", - "tests/fixtures/lid-traces/partial-hold.csv": "7edecd690b14174651f775ebbc9a8a71d11dd4fe63ce531e9cbed4c7114f7d7c", - "tests/fixtures/lid-traces/rest.csv": "f3b43a73a2a78a3219075228fa2759aa74ba81ce2bc932f8cb65ff6af5e68648", - "tests/fixtures/lid-traces/slow-close.csv": "aecc4574bd843c2663432828ae87503d520c016092144611f7d9bf216bdfd31d", - "tests/run-appkit-tests.sh": "1f4adf5522dedfed94c7823038b1862e1e7d98e12f1402d727c84eecae29e0a2", - "tests/run-audio-cache-tests.sh": "8cfedadfc7796803c04316aa2f017ceb6064bc886d35f0d6429759df16a34236", - "tests/run-authorization-tests.sh": "df83f18a6857608321a5ced73f06e678e08d775846f93551f73d271e1d5a9158", - "tests/run-behavior-feature-tests.sh": "30f1b6f32a199748428a3ea58caa2502472ae633abf0257ac680b316ee82ec8d", - "tests/run-behavior-risk-tests.sh": "097a26043b9d2ce3caed924fd81921d79548f5da03b2a33d4b3176c41fcb3ae3", - "tests/run-capture-indicator-tests.sh": "29cb6a1301bccd1e7e78f328c4fb730dcb8071cdcd0d8bf82ab48e65aa0105a7", - "tests/run-conductor-gesture-tests.sh": "3c916a89a2431a405c20d30832d323df9e90da85952d53334bf7d41e299cdc49", - "tests/run-device-battery-tests.sh": "a05ab1776107781796cc5d4c41623935c171ac289441e9e5374e18f110fae05a", - "tests/run-display-shape-tests.sh": "0e98fd9d200c48e3bbbbecde18a7702664f85c2dea2bc975e38c1e41ce12d4d6", - "tests/run-dock-swipe-tests.sh": "f3940991392934f61cb0ad6a419e4e3a4352b8cec846070e3ea809d5fe39e07e", - "tests/run-duo-tests.sh": "fbdaedfc56e5ec5831cdb70c80474e80275f25cd7d167847ca075dc0359f27ce", - "tests/run-elsewhere-windows-tests.sh": "bbb5b677d1b5945922041bfde7a8668e69df0088f2bb6a2d1d7aebeca34114e9", - "tests/run-face-gesture-tracker-tests.sh": "012ed6d90ccbf6ab9b8d5c820dcf44d07114ccf53e1ae82cfb3f921bd974c821", - "tests/run-gesture-tests.sh": "c8b7d41ed2acbeb21d69565eaf7ec413824d402afb77acf5fc43a44dc8a1ab57", - "tests/run-glance-probe.sh": "9b1f8e937104f0d57348c3738ad3819777cbbd3f907026ace72c18e17401760f", - "tests/run-glance-tests.sh": "76b81023914f049fa2056f1e444ad5c72bb55422b0a708aff36c150a8a7a320d", - "tests/run-habit-rules-tests.sh": "80262b720b5cbc5c2e10bf83b4be8015033fba70da05145bba9d1f98d8636431", - "tests/run-launchpad-backdrop-tests.sh": "9a8629dafe57968017455af16ad8f326ad4ee4fe7b3506d94aa68f4489dc8db2", - "tests/run-launchpad-perf.sh": "736cbc2f64b15f3e728f79e1ae58c141edf3627fa70493b7612a26d4d3cd3d18", - "tests/run-launchpad-tests.sh": "b8693dc395676c7a60c8ecf62e32ac4e64a698a49177807fa16a916ebcddfb1a", - "tests/run-launchpad-view-tests.sh": "1d368439acb4436187e518545c4cc312272d870ee9d12a76737d3465825feee3", - "tests/run-launchpad-visual-fixture.sh": "b206a0d06f5b7b7798f3d09ab55c461e72f765bc9a6fb3efc220a08c749221c9", - "tests/run-lid-gesture-tests.sh": "c3a1b41012e74a2ab7fcd408649cddd088b3fc1458e7097085a516f6fff386a0", - "tests/run-lid-report-probe.sh": "2032aea177570acb6e80a3a6fe0f18a8d637f2715b1f5b67ee6ba6c03597ad49", - "tests/run-lid-source-tests.sh": "1fea0bef734db6b26d5287835eeb4409a108ffbffece7c5e81f00b3c2a8b77e7", - "tests/run-liveness-tests.sh": "326a5a828ccb2538980bd527ef403fbd0d0727548133fae5654e85c05ad99a8c", - "tests/run-lock-overlay-lifecycle-tests.sh": "424ab7dec4ddebc402574f614d116f2e72c02e8f2480c50ed6d523062cde5487", - "tests/run-lock-probe.sh": "84fa4a9bbfc498812aa3ec379d4431d137b3a58c328ae1feabf4ed193be52681", - "tests/run-magic-tiling-tests.sh": "736ad6ac12010c51c134f6b68689ba189bfc51dea20b845c835afdaf899802f5", - "tests/run-motion-tokens-tests.sh": "9990dc54d1dab6ec610183687617da9056ff296ee0ba0c3f7710ed92ffab2c4f", - "tests/run-notch-activity-tests.sh": "4fae5b0d1024959337536cf23e2f2da99be3d88a41101bdea1db5dde1d38b9eb", - "tests/run-notch-authentication-tests.sh": "6a4b7ee654ca912eb7d4798c3b4c1d0982853688a301d07eb449a8f792c2410f", - "tests/run-notch-glance-tests.sh": "0b7a9c5836808a4ec2bec907e2bee4eb544d00fef7b60c8f935788824796a32f", - "tests/run-notch-thumbnails-tests.sh": "54cf9b5defa374b7b84d27da6bc7590a56ac4cf1ac56125de0d0bd77d3151a30", - "tests/run-paper-tests.sh": "318db5bf20dad164d2aa506851b0408b0c2f381bf92251fa1eba0f764bea8ca4", - "tests/run-perf-check.sh": "c19afb6cee942b1e6897f1a0c06bef183d2054ff92802d5eedc670034efa4a4b", - "tests/run-pip-layout-tests.sh": "8f5de023f4cefaac9635bdda2cc90a63986ed5e33229fc0d996e07acab47031b", - "tests/run-presence-policy-tests.sh": "76d81e542e97c77c0effa407b5ef8abc596489cfa24b7958cc5ace1e1f2ab7ae", - "tests/run-quiet-defaults-tests.sh": "8ea6d71867011632d85017f718de596307a1d0fc937c68cb686da854e316c22e", - "tests/run-rectangle-keymap-tests.sh": "cca1bd690c1a235f7b96da9b3c16a073f7a591435ac804876d9e7ff4b77cb0ea", - "tests/run-scroll-strip-tests.sh": "736556ead95040acd1d30efc04ce834cb6e8eaed6caf807f5b9556e763bc3827", - "tests/run-seam-layout-tests.sh": "9172f47d9d5d52c1c84ec593d565c6a420e9d4e6a60e479a22102db4cc4071d5", - "tests/run-settings-tests.sh": "9a46795bd8d1dce76b074a6b717f563086a525dcd74a371dfe745899521edf85", - "tests/run-shade-sound-tests.sh": "1fd72b5b8cacac4f16bd49bbd88a6e8f9de8b13b59161a7dd5d5359a59934308", - "tests/run-slide-over-tests.sh": "2490f215c85b5a59be98866d7dd45f48f68844d1c07bd8f02b3ec9dc8e0dc142", - "tests/run-split-pair-tests.sh": "3d310426a8fd399e6d1f1abad0c7a9fa70ecc7d3d5ba89c5f0a98cb1926c6f11", - "tests/run-stall-sampler-tests.sh": "96583b77de69f17bfcacf9b60eb279908ffc775ca8159f4a0dee21182a862bbb", - "tests/run-switcher-origin-tests.sh": "bbaa861a26426bcb3ccbe4a00793e594e927012049758127ea6f25c35d0d0d7f", - "tests/run-thumbnail-tests.sh": "aa67fee130a1ba37a58b3d05af861c1dbe5bfad5ef43fa96be8199ed15798d30", - "tests/run-update-integration.sh": "ff52749b120b1e1ea61e9310eb7384f43cb05089b30f515ed3abafff9800e402", - "tests/run-update-tests.sh": "054fef60c81f32da4bb9f735268b93309d31b7b0a105a2726be91449a09193bb", - "tests/run-window-browser-tests.sh": "60800f4fd7fc05ef6b0e559a0c78f07fdf73bef2a5fda18102e90a686bfd534a", - "tests/run-window-list-cache-tests.sh": "41c6d3f372235233afe6d298c40fd8ec60be406a19554b12be5b0c5787669ee2", - "tests/support/NotchThumbnailsShim.swift": "d902c85adfb192b475ab833ca911eecf09f40cf1b480f0dabdac1887616cc7a9", - "tools/accessory-probe/README.md": "f11a75dab991ac2c0dd01466e2440a87770cbdf82586f4b1f736e99e0191a05e", - "tools/accessory-probe/main.swift": "25d5fe0763ca9533914b6340128371eca91b1e9b8921cc9a6f177230f81e9f83", - "tools/accessory-probe/run.sh": "9d1489fe51c569c0ef13bd020f961b18d6db391e71bee7e795345542a071e214", - "tools/activity-frame-probe/main.swift": "588c505696d631f9b7f96d09366e1e4c457171679ac54e55073b4ef1a82b3e5e", - "tools/activity-frame-probe/run.sh": "1d796225453350a28cf68c33bb9079439c1e2488e2ce76d3bddf06ae8f3ce571", - "tools/activity-source-probe/main.swift": "55ac6188889c4c9801c8ac61da19283acc3e9bac31afde4de0750abe46695ad6", - "tools/activity-source-probe/run.sh": "e428f5742e752776df5500c2801c31e0919fee6c8de3a3e83974ddf7920d3c54", - "tools/behavior-lab/BehaviorRisk.swift": "edbbe0f391ae397ef24a0899637ef3d2e0454cfadf43f5792c835b52f89bfc6a", - "tools/behavior-lab/README.md": "f65df09013b8cd908153c8ec5313700480eed56ca42a44758be818937a197f63", - "tools/behavior-lab/TimingFeatures.swift": "adb2b6edbccf580d99545948b187d3f2ea21ac72efdfe0c3b03a53cf1640e19e", - "tools/behavior-lab/main.swift": "8ec906c8d6e8f0ec189f6d7dcb4bab9e82779d9119adc29ae93f0dde7f513658", - "tools/behavior-lab/run.sh": "8023f1e9757ec37098432a250df286d0400e9889dff6542d2aa3c6c8abc2f45a", - "tools/companion-probe/README.md": "aa1b0c781723734879533196af750d53797e7071a170e3877e4f8bd4f1b38b51", - "tools/companion-probe/main.swift": "9831cb9aa5545998ef17954b5eaa70efd1d5e08875eb84b028d48b8f1e8be655", - "tools/companion-probe/run.sh": "a0ec7f5eb3dce6c6d8455aaf25e72d837b536eabd3da4e2c3d6c69464ee7d188", - "tools/lid-report-probe/LidReportProbe.swift": "5eccb09fe8aa99763f4ff07673d007946bd1331deccb7bdda7f27ffeedcfb5af", - "tools/lid-report-probe/README.md": "eafec4a2914d3cabcbce01360d869133c1497eafd0a515adff23939d2547670a", - "tools/lid-trace/LidTraceRecorder.swift": "3e2677b3105bf5e0b8c1e41d17e2c089abdf118adaa376fc28468073e8c410b6", - "tools/lid-trace/record.sh": "19e83f70ad081494dc7604b26a52ac42e289ac692f60266d93fa8d39d2105bf3", - "tools/liveness-lab/LivenessChallenge.swift": "ae641483f238576eb1ff723db5278a71ce2e246d4cc28a9df395d0e1eaa9b13b", - "tools/liveness-lab/README.md": "aca5d3ed0c4c71f7bd7815ee07e1ed81ac10e063fe21c1c0c5796ccc165d84fc", - "tools/lock-probe/README.md": "4e7b10c7da0f5bee4c924a1ddcd56dd0ea9eda7857df5184fbf59e4fc8a4f166", - "tools/lock-probe/main.swift": "c421a26fa618fef2908a3adbafc0a616e2b2509cc4e5538602c20fb305d90d22", - "tools/power-context-probe/README.md": "660ea4ba4791c9c3a3fa3a8ae77463a87e98889bc04cfa4925d2d3c348835833", - "tools/power-context-probe/main.swift": "6732248b368a8b705ddf42f5454a9f957d7d6ae6dc9ce574d7c1edaa76eeafc5", - "tools/power-context-probe/run.sh": "90f70f69cb2bdfcf4d30ae2afb478bb0a961cfd263ffa4807d3f6bc1303f0bb0", - "tools/presence-probe/PresencePolicy.swift": "bc87d4dd1d328edf5850875c569ab0f340ea530c5248270b324ca4a6993d9e7f", - "tools/presence-probe/README.md": "471adbbb78c127e571c8eccb819d3e52003371bc59c30ffe9525041e7574ee2b", - "tools/presence-probe/main.swift": "7b7d0c71e0ace75fab348cc7dd2fd2917b8f44219afcb4b19e216e82be6c66b7", - "tools/presence-probe/run.sh": "fda772e20b6c282f143067c974abe295f192909c73437868ec9dd76a33af5dc1", - "tools/secure-enclave-probe/main.swift": "e269fa4ba7b34843b727ef241c4e59ca97a6c418c9f7ffc4405c0958b72a48c4", - "tools/secure-enclave-probe/run.sh": "956e15ee147a5c999d18b9fd36dbda58b4af8a3829e00525aafa2bdad04a0352", - "tools/touch-id-island/main.swift": "412214a5d14a1e180b0a59b82da775fb052e33e15f51c4c78cb697fda33836fd", - "tools/touch-id-island/run.sh": "b5f477ed74ae343e73d58ada2f8b03150d98b4101b0129e6dfd4ba21460a9ae7", - "tools/window-snapshot-check/main.swift": "a271eb7faf0b1456982ff0dc38443413b778de5c53c60728b3fe6b1833ebed87", - "tools/window-snapshot-check/run.sh": "5b8d9f005ea18b0a499f60f7e2ea7fa18d984363d381725889d096768e970347", - "tools/ws2-hook/build.sh": "274e626a57de617debb2b16b6fa48787dea89409a0c77c2231c5fb8a2515da82", - "tools/ws2-hook/main.swift": "bb23445b862a087c1d2fdf105324426b4b21ac30e920744f89fe3e0b95b68c1c" -} \ No newline at end of file diff --git a/tests/archive/part10/sources/code-map.json b/tests/archive/part10/sources/code-map.json deleted file mode 100644 index 965832c7..00000000 --- a/tests/archive/part10/sources/code-map.json +++ /dev/null @@ -1,4055 +0,0 @@ -{ - "baseline": "v10 candidate", - "files": [ - { - "path": "AGENTS.md", - "sha256": "0793c499259866d9afac64dec032649fc4f8dad9341db0f4caec4477edc7ae70", - "line_count": 19, - "symbols": [] - }, - { - "path": "docs/agents-in-notch.md", - "sha256": "98664f72fa7279b8ecac4674574fa4063a4457f5a286b82cf4faf7ddf44b3b78", - "line_count": 95, - "symbols": [] - }, - { - "path": "docs/blueprint.md", - "sha256": "c9f10268752be9c75d6d269de73e58309c94d409a9b7f64233f595a40ff11de9", - "line_count": 88, - "symbols": [] - }, - { - "path": "docs/conductor-v2.md", - "sha256": "5c435d7e17bbdec2ba828718d5830721b77dd2e73d21e63c585f92d8a62d0494", - "line_count": 149, - "symbols": [] - }, - { - "path": "docs/copy-guide.md", - "sha256": "029858deb8ef6823440e3df738c1e96c0b47b55a8dd5150313c82db1af1ff2b6", - "line_count": 106, - "symbols": [] - }, - { - "path": "docs/design-system.md", - "sha256": "65b56799b1c169d2c1b6424ee00e22e5726acfa9253f353142e64bcbec491c62", - "line_count": 829, - "symbols": [] - }, - { - "path": "docs/device-battery.md", - "sha256": "655de0eacca269fdf91a946404ccafc493b2cc5fed5cffe925cd002491997358", - "line_count": 42, - "symbols": [] - }, - { - "path": "docs/direction.md", - "sha256": "513e4f42d4d9ace6226f112144b6c4bddfa8af9eb32764111ed852bda48c8d60", - "line_count": 200, - "symbols": [] - }, - { - "path": "docs/dynamic-lock.md", - "sha256": "1b355f08a3f3cb02b41f4667a64c259cd30e1ea33001a5dd1af6b24c3f70a85b", - "line_count": 117, - "symbols": [] - }, - { - "path": "docs/face-unlock.md", - "sha256": "9c191b9a39e43932e0bf8c587a8e0f8d849752bb6f6ef52fe4078322e8c4f59f", - "line_count": 64, - "symbols": [] - }, - { - "path": "docs/handoff/START-HERE-deepseek.md", - "sha256": "a0d8c8e82c23678451ad777b844816faaf2c43b5e4c9ebd6cd1d59de821ae5d7", - "line_count": 103, - "symbols": [] - }, - { - "path": "docs/handoff/deepseek-film.md", - "sha256": "f935b56ffbb3986db04f9d4489e8dcabe5c3c164e4aa8779d535a95ca34df965", - "line_count": 120, - "symbols": [] - }, - { - "path": "docs/handoff/deepseek-menu-agents.md", - "sha256": "f1d69f88f3c1dc6204389ceba794df9a3f1295cc86a6b6043153e599860c34bf", - "line_count": 56, - "symbols": [] - }, - { - "path": "docs/input-devices.md", - "sha256": "02bf83893ca3125232a8dcd80ebab1fd265ab6bfe1d96fa949174dee68fcd6ee", - "line_count": 217, - "symbols": [] - }, - { - "path": "docs/lock-unlock-plan.md", - "sha256": "59e782cecea525c98dda7033b07c4873bd9be678c244587059a7edcf9e82735d", - "line_count": 282, - "symbols": [] - }, - { - "path": "docs/menu-bar.md", - "sha256": "6ba87eb72d428ad59b853cf3e029acde5f3edfa2c4f06cdc056f1b226d778158", - "line_count": 72, - "symbols": [] - }, - { - "path": "docs/performance.md", - "sha256": "03a3bd2918a1f58e3bc4ce3dc7d79d74e88ecbbbc620cc2e91576dc3bd5833db", - "line_count": 461, - "symbols": [] - }, - { - "path": "docs/privacy-page.md", - "sha256": "f0d41966695d89e893ce3a315e177e1460f414548de16a1d2988a19b1ec78770", - "line_count": 66, - "symbols": [] - }, - { - "path": "docs/releases/v1.0.16-ledger.md", - "sha256": "c3b034007fd4b99da063998ee08ba15d1baab3c05e9a46109ef0c5cf9a879323", - "line_count": 70, - "symbols": [] - }, - { - "path": "prototype/App/AuthorizationService.swift", - "sha256": "b2787dc3bb4369d687fbcde86e444cedc752f30d0629a2c5468ae646328a2ba8", - "line_count": 37, - "symbols": [ - { - "line": 7, - "text": "@MainActor final class AuthorizationService {" - }, - { - "line": 28, - "text": "func consume(_ grant: AuthorizationGrant, purpose: AuthPurpose, currentTarget: AuthTarget) -> AuthFailure? {" - }, - { - "line": 32, - "text": "private func observe(_ center: NotificationCenter, _ name: Notification.Name) {" - } - ] - }, - { - "path": "prototype/App/DeviceBatteryController.swift", - "sha256": "f91d842f704003420bc783ec477158f66c722c5a09213bd5c6bf7469dff629a3", - "line_count": 119, - "symbols": [ - { - "line": 9, - "text": "@MainActor final class DeviceBatteryController {" - }, - { - "line": 42, - "text": "func start() {" - }, - { - "line": 48, - "text": "func stop() { source.stop() }" - }, - { - "line": 52, - "text": "private func connect(_ identity: DeviceIdentity, initial: Bool) {" - }, - { - "line": 57, - "text": "private func disconnect(_ id: String) {" - }, - { - "line": 62, - "text": "private func record(_ reading: BatteryReading) {" - }, - { - "line": 67, - "text": "private func handle(_ events: [DeviceBatteryEvent]) {" - }, - { - "line": 92, - "text": "private func scheduleFlush() {" - }, - { - "line": 100, - "text": "private func flushConnected() {" - }, - { - "line": 114, - "text": "private func persist() {" - } - ] - }, - { - "path": "prototype/App/DeviceBatteryCopy.swift", - "sha256": "d8b91913cb5175d3730b1d4e2dd6673613330b68b44fcf9210feaccc78849f37", - "line_count": 42, - "symbols": [ - { - "line": 6, - "text": "enum DeviceBatteryCopy {" - }, - { - "line": 7, - "text": "struct Model {" - }, - { - "line": 13, - "text": "static func model(productID: Int?) -> Model {" - }, - { - "line": 22, - "text": "static func connected(_ name: String) -> String { \"\\(name)已连接\" }" - }, - { - "line": 23, - "text": "static func connected(count: Int) -> String { \"\\(count) 个设备已连接\" }" - }, - { - "line": 24, - "text": "static func percent(_ value: Int) -> String { \"电量 \\(value)%\" }" - }, - { - "line": 26, - "text": "static func low(_ name: String) -> String { \"\\(name)电量低\" }" - }, - { - "line": 27, - "text": "static func lowDetail(_ percent: Int, battery: BatteryKind) -> String {" - }, - { - "line": 32, - "text": "static func symbol(percent: Int?) -> String {" - } - ] - }, - { - "path": "prototype/App/FaceObservationSource.swift", - "sha256": "fe1e1aa7bff0578030af1652c348b0396882037c2d267d439ae97172e9c24a2e", - "line_count": 259, - "symbols": [ - { - "line": 6, - "text": "struct FaceCameraDescriptor: Sendable, Hashable { let id: String; let name: String }" - }, - { - "line": 8, - "text": "struct FaceObservation: Sendable, Equatable {" - }, - { - "line": 22, - "text": "enum FaceObservationSourceError: Error {" - }, - { - "line": 28, - "text": "@MainActor final class FaceObservationSource {" - }, - { - "line": 36, - "text": "static func devices() -> [FaceCameraDescriptor] {" - }, - { - "line": 41, - "text": "static func startWatchingCameras() { CameraList.shared.start() }" - }, - { - "line": 42, - "text": "func requestAuthorization() async -> Bool {" - }, - { - "line": 45, - "text": "func start(deviceID: String, onObservation: @escaping @MainActor (FaceObservation) -> Void) async throws {" - }, - { - "line": 73, - "text": "private func stopCapture() {" - }, - { - "line": 78, - "text": "func stop() { stopCapture(); onFailure = nil }" - }, - { - "line": 83, - "text": "private final class FaceObservationWorker: NSObject, AVCaptureVideoDataOutputSampleBufferDelegate, @unchecked Sendable {" - }, - { - "line": 96, - "text": "static func devices() -> [AVCaptureDevice] {" - }, - { - "line": 100, - "text": "func start(deviceID: String, token: UInt64," - }, - { - "line": 155, - "text": "func stop() { queue.async { self.tearDown() } }" - }, - { - "line": 156, - "text": "private func tearDown() {" - }, - { - "line": 164, - "text": "func captureOutput(_ output: AVCaptureOutput, didOutput sample: CMSampleBuffer, from connection: AVCaptureConnection) {" - }, - { - "line": 182, - "text": "func eye(_ region: VNFaceLandmarkRegion2D?) -> Double? {" - }, - { - "line": 187, - "text": "func finite(_ number: NSNumber?) -> Double? {" - }, - { - "line": 198, - "text": "enum FaceEyeGeometry {" - }, - { - "line": 199, - "text": "static func openness(_ points: [CGPoint], scale: CGSize) -> Double? {" - }, - { - "line": 219, - "text": "private enum FaceLandmarkComputeDevice {" - }, - { - "line": 227, - "text": "private final class CameraList: @unchecked Sendable {" - }, - { - "line": 234, - "text": "func current() -> [FaceCameraDescriptor] {" - }, - { - "line": 240, - "text": "func start() {" - }, - { - "line": 252, - "text": "private func refresh() {" - } - ] - }, - { - "path": "prototype/App/FocusSession.swift", - "sha256": "6a8feaa47356c9e6827eb41f3aa81cc972b0f884c518ef5c80716160f3cd8673", - "line_count": 562, - "symbols": [ - { - "line": 7, - "text": "func focusSizedWorkSize(originalSize: CGSize, visible: NSRect," - }, - { - "line": 14, - "text": "func focusCenteredFrame(pos: CGPoint, size: CGSize," - }, - { - "line": 26, - "text": "func focusShelfReservedFrame(on screen: NSScreen) -> NSRect? {" - }, - { - "line": 34, - "text": "func centerFocusedWindowForFocusMode(_ win: AXUIElement, pid: pid_t) {" - }, - { - "line": 57, - "text": "func pulledOutFocusFrames(state: ShadeState, draggedFrame: NSRect) -> (overlay: NSRect, restore: NSRect) {" - }, - { - "line": 87, - "text": "func focusRestoreFrame(fromOverlayFrame frame: NSRect, restoredSize: CGSize) -> NSRect {" - }, - { - "line": 94, - "text": "func shouldReturnPulledOutOverlayToStack(id: CGWindowID, frame: NSRect) -> Bool {" - }, - { - "line": 100, - "text": "func restorePulledOutOverlayToStack(id: CGWindowID) -> Bool {" - }, - { - "line": 125, - "text": "func maybeStageFocusPullOut(id: CGWindowID, frame: NSRect) -> Bool {" - }, - { - "line": 173, - "text": "func rejoinFocusStackAfterShadeIfNeeded(id: CGWindowID, overlay: NSWindow) {" - }, - { - "line": 201, - "text": "func shouldAutoJoinFocusShelf(id: CGWindowID, pid: pid_t) -> Bool {" - }, - { - "line": 210, - "text": "func isFocusShelfMember(id: CGWindowID) -> Bool {" - }, - { - "line": 217, - "text": "func focusTemporaryRevealFrame(for state: ShadeState) -> NSRect {" - }, - { - "line": 235, - "text": "func revealFocusShelfMemberFromOutside(id: CGWindowID, state: ShadeState, reason: String) {" - }, - { - "line": 255, - "text": "func joinFocusShelfAfterShadeIfNeeded(id: CGWindowID, overlay: NSWindow) {" - }, - { - "line": 287, - "text": "func noteUserMovedOverlay(id: CGWindowID, frame: NSRect) {" - }, - { - "line": 312, - "text": "func removeFocusSessionEntry(_ id: CGWindowID) {" - }, - { - "line": 317, - "text": "func focusCurrentAppCycle() {" - }, - { - "line": 342, - "text": "func focusedApplicationForFocusSession() -> NSRunningApplication? {" - }, - { - "line": 357, - "text": "func startFocusCurrentAppSession() {" - }, - { - "line": 434, - "text": "func foldOne(_ item: (pid: pid_t, win: AXUIElement, id: CGWindowID)) {" - }, - { - "line": 461, - "text": "func foldFrom(_ start: Int) {" - }, - { - "line": 479, - "text": "func finishFocusCascade() {" - }, - { - "line": 517, - "text": "func bringFocusedAppToFront(_ app: NSRunningApplication) {" - }, - { - "line": 521, - "text": "func restoreFocusBarsHome(_ session: FocusSession) {" - }, - { - "line": 532, - "text": "func restoreFocusSession(_ session: FocusSession) {" - } - ] - }, - { - "path": "prototype/App/FocusTimerHost.swift", - "sha256": "7aa01c91cb3abf4503ff8eb92a8060efcdfca907b295caa3ab0fde88d264b666", - "line_count": 39, - "symbols": [ - { - "line": 2, - "text": "@MainActor final class FocusTimerHost {" - }, - { - "line": 16, - "text": "func handle(_ event: FocusTimer.Event) {" - }, - { - "line": 21, - "text": "func configure(preset: FocusTimer.Preset, tuckChatEnabled: Bool) {" - }, - { - "line": 26, - "text": "func stop() { wake?.cancel(); wake = nil; if revision < .max { revision += 1 } }" - }, - { - "line": 27, - "text": "private func schedule() {" - } - ] - }, - { - "path": "prototype/App/FoldCompletion.swift", - "sha256": "18559db591375242d83406a083b9a18e4bf5dc69de7b8c32c8f3494c31054982", - "line_count": 65, - "symbols": [ - { - "line": 11, - "text": "func registerFoldWaiter(id: CGWindowID, completion: @escaping (Bool) -> Void) -> UUID {" - }, - { - "line": 21, - "text": "func bindFoldWaiters(id: CGWindowID, tokens: [UUID], transaction: UUID) {" - }, - { - "line": 28, - "text": "func settleFoldWaiter(id: CGWindowID, token: UUID, success: Bool) {" - }, - { - "line": 33, - "text": "func settleFoldWaiters(id: CGWindowID, transaction: UUID, success: Bool) {" - }, - { - "line": 38, - "text": "func cancelFoldWaiters(id: CGWindowID, tokens: [UUID]) {" - }, - { - "line": 42, - "text": "func settleFoldWaiters(id: CGWindowID, tokens: [UUID], success: Bool) {" - } - ] - }, - { - "path": "prototype/App/FoldTransaction.swift", - "sha256": "f353846ee708e80dc81e78636f24dd3976d5ec77f1c0f9db0e38f2f675519c3b", - "line_count": 1059, - "symbols": [ - { - "line": 7, - "text": "func parkFocusForInactiveCapture() {" - }, - { - "line": 22, - "text": "func releaseFocusParking(reactivate pid: pid_t?) {" - }, - { - "line": 41, - "text": "func handOffFocusBeforeHiding(win: AXUIElement, pid: pid_t, id: CGWindowID) -> Bool {" - }, - { - "line": 103, - "text": "func hideTookEffect(_ hide: HideMethod, win: AXUIElement, pid: pid_t," - }, - { - "line": 108, - "text": "func scheduleFoldVerification(id: CGWindowID) {" - }, - { - "line": 147, - "text": "func revealOverlayAfterVerification(id: CGWindowID, state: ShadeState) {" - }, - { - "line": 165, - "text": "func rollbackFoldTransaction(id: CGWindowID, expectedTransaction: UUID? = nil) {" - }, - { - "line": 190, - "text": "func activateApp(pid: pid_t) {" - }, - { - "line": 196, - "text": "func bringRestoredWindowToFront(_ win: AXUIElement, pid: pid_t, reason: String) {" - }, - { - "line": 199, - "text": "func attempt(_ label: String) {" - }, - { - "line": 223, - "text": "func prepareForwardedTrafficAction(_ win: AXUIElement, pid: pid_t, reason: String) {" - }, - { - "line": 230, - "text": "func restoredWindowIsGeometryReady(_ win: AXUIElement) -> Bool {" - }, - { - "line": 235, - "text": "func buttonIsReady(_ win: AXUIElement, _ attr: String) -> Bool {" - }, - { - "line": 251, - "text": "func forwardedTrafficActionSucceeded(state: ShadeState, id: CGWindowID," - }, - { - "line": 274, - "text": "func performForwardedTrafficAction(state: ShadeState, pos: CGPoint," - }, - { - "line": 288, - "text": "func retryOrFallback(_ index: Int, note: String) {" - }, - { - "line": 312, - "text": "func verifyAfterAXPress(_ win: AXUIElement, index: Int, attr: String) {" - }, - { - "line": 324, - "text": "func verifyAfterPointerClick(_ win: AXUIElement, index: Int, attr: String) {" - }, - { - "line": 341, - "text": "func attempt(_ index: Int) {" - }, - { - "line": 372, - "text": "func schedule(_ index: Int, note: String) {" - }, - { - "line": 387, - "text": "func showRealWindowManagementPopover(_ id: CGWindowID) {" - }, - { - "line": 400, - "text": "func attempt(_ index: Int) {" - }, - { - "line": 430, - "text": "func windowIsParkedOffscreen(id: CGWindowID, win: AXUIElement, size: CGSize) -> Bool {" - }, - { - "line": 438, - "text": "func privateSLSOffscreenHide(_ win: AXUIElement, id: CGWindowID," - }, - { - "line": 474, - "text": "func privateSLSAlphaHide(id: CGWindowID, pid: pid_t, reason: String) -> HideMethod? {" - }, - { - "line": 506, - "text": "func axOffscreenHide(_ win: AXUIElement," - }, - { - "line": 530, - "text": "func ownWindow(id: CGWindowID?) -> NSWindow? {" - }, - { - "line": 537, - "text": "func orderOutOwnWindowIfNeeded(id: CGWindowID?, pid: pid_t, reason: String) -> HideMethod? {" - }, - { - "line": 548, - "text": "func hideWindow(_ win: AXUIElement, pid: pid_t, originalPosition pos: CGPoint," - }, - { - "line": 609, - "text": "func fallbackHide(_ win: AXUIElement, pid: pid_t, id: CGWindowID?," - }, - { - "line": 639, - "text": "func safeRestorePosition(for state: ShadeState, desired pos: CGPoint) -> CGPoint {" - }, - { - "line": 658, - "text": "func refreshedWindowElement(id: CGWindowID, fallback: AXUIElement," - }, - { - "line": 666, - "text": "func resolvedWindowElement(for state: ShadeState) -> AXUIElement {" - }, - { - "line": 694, - "text": "func applyRestoredGeometry(_ state: ShadeState, to pos: CGPoint," - }, - { - "line": 727, - "text": "func restoreWindow(_ state: ShadeState, to pos: CGPoint) -> AXUIElement {" - }, - { - "line": 767, - "text": "func cancelRestorePin(for id: CGWindowID) {" - }, - { - "line": 771, - "text": "func pinRestoredWindow(_ state: ShadeState, to pos: CGPoint, reason: String) {" - }, - { - "line": 779, - "text": "func attempt(_ label: String, focus: Bool, verify: Bool = true) {" - }, - { - "line": 822, - "text": "func resizeShadedWindowFromProxy(_ id: CGWindowID, proxyFrame: NSRect) {" - }, - { - "line": 861, - "text": "func makeRevealObserver(pid: pid_t, win: AXUIElement, id: CGWindowID, transaction: UUID) -> AXObserver? {" - }, - { - "line": 884, - "text": "func removeObserver(_ state: ShadeState) {" - }, - { - "line": 894, - "text": "func handleAXNotification(_ id: CGWindowID, _ notification: String, expected: WS2FoldCallbackStamp) {" - }, - { - "line": 942, - "text": "@objc func appTerminated(_ note: Notification) {" - }, - { - "line": 952, - "text": "@objc func frontmostApplicationChanged(_ note: Notification) {" - }, - { - "line": 982, - "text": "@objc func screenParametersChanged(_ note: Notification) {" - }, - { - "line": 1028, - "text": "@objc func activeSpaceChanged(_ note: Notification) {" - } - ] - }, - { - "path": "prototype/App/InteractionCoordinator.swift", - "sha256": "5524bd61193c8e7ca5090b7c38c498f094bdc13a3e48971f3f084b2fb7a0c5b2", - "line_count": 142, - "symbols": [ - { - "line": 5, - "text": "final class InteractionCoordinator {" - }, - { - "line": 6, - "text": "struct Environment { var unlocked: Bool; var displays: Set }" - }, - { - "line": 7, - "text": "private struct Active { let handle: WS2.LeaseHandle; let layer: WS2.Layer; let deadline: WS2.Instant }" - }, - { - "line": 8, - "text": "private struct Alert { let first: WS2.Instant; var last: WS2.Instant; let deadline: WS2.Instant }" - }, - { - "line": 27, - "text": "private func permits(_ r: WS2.LeaseRequest) -> Bool {" - }, - { - "line": 35, - "text": "private func withdraw(_ reason: WS2.LeaseRevocation) {" - }, - { - "line": 40, - "text": "private func expire(_ now: WS2.Instant) {" - }, - { - "line": 46, - "text": "func acquire(_ r: WS2.LeaseRequest, replacing expected: WS2.LeaseHandle? = nil) -> WS2.LeaseDecision {" - }, - { - "line": 75, - "text": "func isCurrent(_ lease: WS2.LeaseHandle) -> Bool {" - }, - { - "line": 81, - "text": "func release(_ lease: WS2.LeaseHandle, at now: WS2.Instant) {" - }, - { - "line": 86, - "text": "private func barrier(_ reason: WS2.LeaseRevocation) {" - }, - { - "line": 90, - "text": "func invalidate(_ reason: WS2.LeaseRevocation, at now: WS2.Instant) {" - }, - { - "line": 98, - "text": "func removeDisplay(_ id: WS2.DisplayID, at now: WS2.Instant) {" - }, - { - "line": 105, - "text": "func publishOngoing(_ ids: [String], on display: WS2.DisplayID) {" - }, - { - "line": 110, - "text": "func remind(on display: WS2.DisplayID, at now: WS2.Instant) {" - }, - { - "line": 119, - "text": "func snapshots(at now: WS2.Instant) -> [WS2.VisibilitySnapshot] {" - }, - { - "line": 137, - "text": "func confirmationIsFresh(lease: WS2.LeaseHandle, beganAt: WS2.Instant, sequence: UInt64," - } - ] - }, - { - "path": "prototype/App/NotchFaceObservations.swift", - "sha256": "f7f541e11cd13467409c555cae89714bd2017f14033100d9012f5982692aafd2", - "line_count": 133, - "symbols": [ - { - "line": 4, - "text": "@MainActor final class NotchFaceObservationController {" - }, - { - "line": 29, - "text": "func start(cameraID: String) {" - }, - { - "line": 71, - "text": "private func finish(title: String, detail: String = \"可稍后重试\", token: UInt64) {" - }, - { - "line": 82, - "text": "func cancel(restoreFocus: Bool = true) {" - }, - { - "line": 100, - "text": "@MainActor final class NotchFaceObservationView: NSView, NotchInteractiveContent {" - }, - { - "line": 123, - "text": "override func layout() {" - }, - { - "line": 130, - "text": "func update(title: String, detail: String) { self.title.stringValue = title; self.detail.stringValue = detail }" - }, - { - "line": 131, - "text": "@objc private func cancelRequest() { onCancel?() }" - }, - { - "line": 132, - "text": "override func cancelOperation(_ sender: Any?) { onCancel?() }" - } - ] - }, - { - "path": "prototype/App/PeripheralBatterySource.swift", - "sha256": "149935ed50964a0c77b69551a56551aa2d26ee84e9194e098f3cf61f4ece8d36", - "line_count": 159, - "symbols": [ - { - "line": 14, - "text": "final class PeripheralBatterySource: @unchecked Sendable {" - }, - { - "line": 15, - "text": "struct Peripheral: Sendable {" - }, - { - "line": 35, - "text": "func start() {" - }, - { - "line": 62, - "text": "func stop() {" - }, - { - "line": 87, - "text": "private func drainMatched(_ iterator: io_iterator_t, initialSnapshot: Bool) {" - }, - { - "line": 102, - "text": "private func drainTerminated(_ iterator: io_iterator_t) {" - }, - { - "line": 115, - "text": "private func refreshAll() {" - }, - { - "line": 119, - "text": "private func read(_ service: io_object_t, identity: DeviceIdentity) {" - }, - { - "line": 133, - "text": "static func identity(of service: io_object_t) -> DeviceIdentity? {" - }, - { - "line": 150, - "text": "static func intProperty(_ service: io_object_t, _ key: String) -> Int? {" - }, - { - "line": 156, - "text": "static func stringProperty(_ service: io_object_t, _ key: String) -> String? {" - } - ] - }, - { - "path": "prototype/App/Reconcile.swift", - "sha256": "290d8fb4dcb1b14e79620279ff9e30b42e81fbaa86c68678808a5073bd333f04", - "line_count": 209, - "symbols": [ - { - "line": 7, - "text": "func updateReconcileTimer() {" - }, - { - "line": 25, - "text": "func shouldRetryJournalRescue(now: Date) -> Bool {" - }, - { - "line": 30, - "text": "func sourceWindowLooksUserVisible(state: ShadeState, pos: CGPoint, size: CGSize," - }, - { - "line": 65, - "text": "func shouldLogReconcileInvalidCount(_ count: Int) -> Bool {" - }, - { - "line": 68, - "text": "func sourceWindowMissingShouldCleanup(id: CGWindowID, state: ShadeState) -> Bool {" - }, - { - "line": 91, - "text": "func reconcileShadedWindows(reason: String) {" - }, - { - "line": 153, - "text": "func applyReconcileAXSnapshots(_ snapshots: [ReconcileAXSnapshot]," - }, - { - "line": 203, - "text": "func finishReconcileShadedWindows() {" - } - ] - }, - { - "path": "prototype/App/ShadeController.swift", - "sha256": "ffe5d474a28aa43ac12baf5e4a85b1d795494be0df928980fe6b4e69d8bb813f", - "line_count": 891, - "symbols": [ - { - "line": 8, - "text": "func retargetToActiveSpaceWindow(pid: pid_t) -> (AXUIElement, CGWindowID)? {" - }, - { - "line": 35, - "text": "func toggle() {" - }, - { - "line": 87, - "text": "func performNativeStickiesShade(_ win: AXUIElement) {" - }, - { - "line": 104, - "text": "func makeShadePlan(win: AXUIElement, pos: CGPoint, size: CGSize," - }, - { - "line": 157, - "text": "func resolvedSourceSpaceID(windowID id: CGWindowID," - }, - { - "line": 169, - "text": "func shade(_ win: AXUIElement, _ id: CGWindowID," - }, - { - "line": 178, - "text": "func admissionCurrent() -> Bool {" - }, - { - "line": 184, - "text": "func completeFold(success: Bool, transaction: UUID? = nil) {" - }, - { - "line": 303, - "text": "func installOverlay(_ overlay: NSWindow, mode: ShadeAppearanceMode, previewImage: NSImage?) {" - }, - { - "line": 482, - "text": "func installInteractiveNativeCollapse(barH: CGFloat) -> Bool {" - }, - { - "line": 761, - "text": "func captureWindow(id: CGWindowID, axPos: CGPoint, size: CGSize," - }, - { - "line": 800, - "text": "func fastWindowCapture(_ id: CGWindowID) async -> CGImage? {" - }, - { - "line": 807, - "text": "func captureWindowWithTimeout(id: CGWindowID, axPos: CGPoint, size: CGSize," - }, - { - "line": 858, - "text": "private func raceCaptureWithTimeout(id: CGWindowID, axPos: CGPoint, size: CGSize," - } - ] - }, - { - "path": "prototype/App/WS2AgentSessionView.swift", - "sha256": "2eb4cc0b0ffd80413aeb0375a2b4973039174218273be6988b5fc1a8f730e53d", - "line_count": 47, - "symbols": [ - { - "line": 3, - "text": "@MainActor final class WS2AgentSessionView: NSView, WS2LeaseContent {" - }, - { - "line": 20, - "text": "func render(_ sessions:[AgentSessions.Session]) {" - }, - { - "line": 41, - "text": "@objc private func pressed(_ sender:NSButton) {" - }, - { - "line": 45, - "text": "override func cancelOperation(_ sender:Any?) { onCancel?() }" - }, - { - "line": 46, - "text": "func revoke() { inputIsCurrent = { false }; render([]); bindings.removeAll() }" - } - ] - }, - { - "path": "prototype/App/WS2AppRuntime.swift", - "sha256": "99205e90fd9d99278da55fbfe88924e2100c4ada4223c6d35136da67cf5b6db2", - "line_count": 251, - "symbols": [ - { - "line": 3, - "text": "@MainActor final class WS2AppRuntime {" - }, - { - "line": 31, - "text": "func day(_ date: Date) -> String {" - }, - { - "line": 108, - "text": "private func setLockReason(_ reason: String, locked: Bool) {" - }, - { - "line": 119, - "text": "func applicationShouldTerminate() -> NSApplication.TerminateReply {" - }, - { - "line": 138, - "text": "private func finishQuit(updaterReply:Bool?=nil,childrenReady:Bool=false,failed:Bool=false) {" - }, - { - "line": 144, - "text": "func openOwned() {" - }, - { - "line": 153, - "text": "private func openModelPicker() {" - }, - { - "line": 192, - "text": "func open() {" - }, - { - "line": 205, - "text": "func refreshFocusSettings() {" - }, - { - "line": 210, - "text": "func toggleFocus() {" - }, - { - "line": 217, - "text": "@discardableResult func showSessions(_ sessions:[AgentSessions.Session], open:@escaping(WS2.Context)->Void," - }, - { - "line": 222, - "text": "@discardableResult func showConductor(_ state:ConductorNotch, action:@escaping(WS2ConductorView.Action)->Void) -> Bool {" - }, - { - "line": 228, - "text": "private func publish() {" - }, - { - "line": 236, - "text": "func stop() {" - }, - { - "line": 249, - "text": "@objc func ws2OpenOwned() { MainActor.assumeIsolated { ws2Runtime.openOwned() } }" - }, - { - "line": 250, - "text": "@objc func ws2OpenFocus() { MainActor.assumeIsolated { ws2Runtime.open() } }" - } - ] - }, - { - "path": "prototype/App/WS2CodexApprovalHost.swift", - "sha256": "f400c3354906b3ddb97f7651388468520d91f5eb6796417d014d7753266bf03b", - "line_count": 250, - "symbols": [ - { - "line": 5, - "text": "@MainActor final class WS2CodexApprovalHost: WS2OwnedProtocolHost {" - }, - { - "line": 36, - "text": "func beginProtocol() throws {" - }, - { - "line": 40, - "text": "func startThread(cwd: String, model: String) throws {" - }, - { - "line": 45, - "text": "func resumeThread(_ id: String) throws {" - }, - { - "line": 49, - "text": "func startTurn(text: String, model: String, effort: String) throws {" - }, - { - "line": 54, - "text": "func steer(text: String, expectedTurn: String) throws {" - }, - { - "line": 59, - "text": "func interruptTurn() throws {" - }, - { - "line": 63, - "text": "func receive(_ bytes: Data) {" - }, - { - "line": 87, - "text": "@discardableResult func present(_ id: WS2.RequestID) -> Bool {" - }, - { - "line": 114, - "text": "private func confirm(beganAt: WS2.Instant, sequence: UInt64) {" - }, - { - "line": 142, - "text": "private func target(_ review: WS2ApprovalReview) throws -> AuthTarget {" - }, - { - "line": 145, - "text": "private func isCurrent(_ review: WS2ApprovalReview) -> Bool {" - }, - { - "line": 150, - "text": "func tick() {" - }, - { - "line": 160, - "text": "private func flush(deadline: WS2.Instant) {" - }, - { - "line": 164, - "text": "private func abandonCurrent(decline: Bool) {" - }, - { - "line": 173, - "text": "func invalidate() {" - }, - { - "line": 179, - "text": "@MainActor private final class WS2ReviewButton: NSButton {" - }, - { - "line": 189, - "text": "private func begin() -> Bool {" - }, - { - "line": 192, - "text": "override func mouseDown(with event:NSEvent) { guard begin() else { return }; defer { press = nil }; super.mouseDown(with:event) }" - }, - { - "line": 193, - "text": "override func keyDown(with event:NSEvent) {" - }, - { - "line": 197, - "text": "override func accessibilityPerformPress() -> Bool {" - }, - { - "line": 200, - "text": "@objc private func fire() { guard let press else { return }; freshAction?(press.0,press.1) }" - }, - { - "line": 202, - "text": "@MainActor final class WS2CommandReviewView: NSView, WS2LeaseContent {" - }, - { - "line": 231, - "text": "func enableConfirmation(){approval.isEnabled=inputIsCurrent()}" - }, - { - "line": 232, - "text": "func revoke(){inputIsCurrent = { false };approval.isEnabled=false;text.string=\"\";confirm=nil;decline=nil}" - }, - { - "line": 233, - "text": "@objc private func refuse(){guard inputIsCurrent() else{return};decline?()}" - }, - { - "line": 234, - "text": "override func cancelOperation(_ sender:Any?){onCancel?()}" - }, - { - "line": 239, - "text": "func account(_ action:WS2AccountAction) throws -> WS2.RequestID {" - } - ] - }, - { - "path": "prototype/App/WS2ConductorView.swift", - "sha256": "35e1bb2d5b14f59c381aba5969009add1be93e97eb3eeb2005fd1d9607e6e225", - "line_count": 78, - "symbols": [ - { - "line": 3, - "text": "@MainActor final class WS2ConductorView: NSView, WS2LeaseContent {" - }, - { - "line": 5, - "text": "enum Action { case sendDraft(String), discardDraft, confirmCost, stopTurn, leave, session(Int) }" - }, - { - "line": 32, - "text": "@discardableResult func render(_ state: ConductorNotch) -> Bool {" - }, - { - "line": 63, - "text": "private func button(_ label:String,_ action:Action) {" - }, - { - "line": 67, - "text": "@objc private func pressed(_ sender:NSButton) {" - }, - { - "line": 76, - "text": "override func cancelOperation(_ sender:Any?) { onCancel?() }" - }, - { - "line": 77, - "text": "func revoke() { buttons.removeAll(); inputIsCurrent = { false }; editor.stringValue = \"\"; title.stringValue = \"\"; detail.stringValue = \"\"; path.path=nil }" - } - ] - }, - { - "path": "prototype/App/WS2DeviceActionHost.swift", - "sha256": "e969db6f1d29d4dc2af25afb99a58e90281b395480a704193de53e3b5cf2e5a7", - "line_count": 106, - "symbols": [ - { - "line": 4, - "text": "@MainActor final class WS2DeviceActionHost {" - }, - { - "line": 35, - "text": "func start() { bridge.start() }" - }, - { - "line": 37, - "text": "private func clear(_ id: UUID) {" - }, - { - "line": 41, - "text": "@discardableResult func enable(_ id: UUID) -> Bool {" - }, - { - "line": 51, - "text": "func disable(_ id: UUID) { clear(id); _ = bridge.setEnabled(false, attachment: id) }" - }, - { - "line": 52, - "text": "func environmentChanged() {" - }, - { - "line": 56, - "text": "private func receive(_ input: WS2ControllerInput) {" - }, - { - "line": 96, - "text": "private static func intent(_ name: String) -> WS2SemanticInputRouter.Intent? {" - }, - { - "line": 105, - "text": "func stop() { for id in Array(contexts.keys) { clear(id) }; bridge.stop() }" - } - ] - }, - { - "path": "prototype/App/WS2FoldCallbackGuard.swift", - "sha256": "9f8d8cc688955c493ac17ebde396f59f70892e32c0b78250c78589c007fc63db", - "line_count": 100, - "symbols": [ - { - "line": 5, - "text": "func foldCallbackStamp(id: CGWindowID, state: ShadeState) -> WS2FoldCallbackStamp {" - }, - { - "line": 13, - "text": "func foldWaiterDeliveryStamp(id: CGWindowID, transaction: UUID) -> WS2FoldCallbackStamp? {" - }, - { - "line": 21, - "text": "func foldCallbackIsCurrent(_ expected: WS2FoldCallbackStamp," - }, - { - "line": 30, - "text": "func observeFoldHide(_ hide: HideMethod, win: AXUIElement, pid: pid_t," - }, - { - "line": 68, - "text": "func retainUnconfirmedFold(id: CGWindowID, state: ShadeState) {" - }, - { - "line": 84, - "text": "func receiveFoldAXNotification(routeID: UInt, notification: String) {" - }, - { - "line": 96, - "text": "func axObservedBoolAttribute(_ win: AXUIElement, _ attribute: String) -> Bool? {" - } - ] - }, - { - "path": "prototype/App/WS2GameControllerBridge.swift", - "sha256": "cf257e4e8233d7030b96e5b317d02043024d25f2d03dc27824dd9976394881ee", - "line_count": 186, - "symbols": [ - { - "line": 5, - "text": "@MainActor final class WS2GameControllerBridge: WS2ControllerBridge {" - }, - { - "line": 9, - "text": "@MainActor private final class Entry {" - }, - { - "line": 32, - "text": "func start() {" - }, - { - "line": 52, - "text": "@discardableResult func setEnabled(_ enabled: Bool, attachment: UUID) -> Bool {" - }, - { - "line": 67, - "text": "func environmentChanged() {" - }, - { - "line": 80, - "text": "func suspendAll() { for e in entries.values { suspend(e) }; publish() }" - }, - { - "line": 81, - "text": "private func reconcile() {" - }, - { - "line": 97, - "text": "private func installHandler(_ e: Entry) -> Bool {" - }, - { - "line": 108, - "text": "private func releaseHandler(_ e: Entry) {" - }, - { - "line": 117, - "text": "private func sample(_ e: Entry) {" - }, - { - "line": 157, - "text": "@discardableResult func feedback(attachment:UUID,start:Float,strength:Float) -> Bool {" - }, - { - "line": 167, - "text": "private func clearFeedback(_ e:Entry) {" - }, - { - "line": 171, - "text": "private func suspend(_ e:Entry) {" - }, - { - "line": 177, - "text": "private func publish() {" - }, - { - "line": 180, - "text": "func stop() {" - } - ] - }, - { - "path": "prototype/App/WS2IslandCoordinator.swift", - "sha256": "315bf8f9b76ead7600c8829b69c4609bf89d919f3421631b3154aedd13acd91f", - "line_count": 101, - "symbols": [ - { - "line": 3, - "text": "@MainActor protocol WS2LeaseContent: NotchInteractiveContent {" - }, - { - "line": 6, - "text": "func revoke()" - }, - { - "line": 8, - "text": "@MainActor final class WS2IslandCoordinator {" - }, - { - "line": 32, - "text": "private static func displayID(_ screen: NSScreen) -> WS2.DisplayID? {" - }, - { - "line": 35, - "text": "@discardableResult func show(_ content: NSView & WS2LeaseContent, ownerID: String, layer: WS2.Layer = .opened," - }, - { - "line": 60, - "text": "func inputHandle(for content: NSView) -> WS2.LeaseHandle? {" - }, - { - "line": 65, - "text": "func handOffToAuthorization() { dismissed = nil; dismiss() }" - }, - { - "line": 66, - "text": "func dismiss() { if let handle { leases.release(handle, at: clock.now()) } }" - }, - { - "line": 67, - "text": "func dismiss(ifShowing content: NSView) { if view === content { dismiss() } }" - }, - { - "line": 68, - "text": "func handOffToAuthorization(ifShowing content: NSView) -> Bool {" - }, - { - "line": 71, - "text": "private func revoked(_ lease: WS2.LeaseHandle, reason: WS2.LeaseRevocation) {" - }, - { - "line": 84, - "text": "private func beginAuthorization(on panel: NotchPanel) -> Bool {" - }, - { - "line": 92, - "text": "private func endAuthorization() { if let authHandle { leases.release(authHandle,at:clock.now()) }; authHandle = nil }" - }, - { - "line": 93, - "text": "func invalidate(_ reason: WS2.LeaseRevocation) { leases.invalidate(reason,at:clock.now()) }" - }, - { - "line": 94, - "text": "private func reconcileDisplays() { _ = leases.snapshots(at:clock.now()) }" - }, - { - "line": 95, - "text": "func stop() {" - } - ] - }, - { - "path": "prototype/App/WS2ModelPickerView.swift", - "sha256": "1da4c59ec557195a5b03760eb038b2d8fe1ecabb2f733f2c29ab554d8790f73c", - "line_count": 179, - "symbols": [ - { - "line": 4, - "text": "@MainActor final class WS2ModelPickerView: NSView, WS2LeaseContent, NSTableViewDataSource, NSTableViewDelegate {" - }, - { - "line": 79, - "text": "override func viewDidMoveToWindow() {" - }, - { - "line": 96, - "text": "func sync() {" - }, - { - "line": 112, - "text": "func renderDevices(_ devices: [WS2ControllerDevice]) {" - }, - { - "line": 128, - "text": "private func renderHint() {" - }, - { - "line": 132, - "text": "private func showSelection() {" - }, - { - "line": 137, - "text": "func numberOfRows(in tableView: NSTableView) -> Int { rows.count }" - }, - { - "line": 138, - "text": "func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView? {" - }, - { - "line": 145, - "text": "func tableViewSelectionDidChange(_ notification: Notification) {" - }, - { - "line": 149, - "text": "@objc private func toggleDevice() {" - }, - { - "line": 159, - "text": "@objc private func useSelection() {" - }, - { - "line": 164, - "text": "@objc private func goBack() { if inputIsCurrent() { navigateBack?() } }" - }, - { - "line": 165, - "text": "func revoke() {" - }, - { - "line": 175, - "text": "func prepare(_ ticket: WS2SemanticInputRouter.Ticket) -> Bool { input.ready = isInputReady; return input.prepare(ticket) }" - }, - { - "line": 176, - "text": "func cancelPrepared(context: WS2SemanticInputRouter.Context, presses: [UInt64]) { input.cancel(context: context, presses: presses) }" - }, - { - "line": 177, - "text": "func execute(_ ticket: WS2SemanticInputRouter.Ticket) -> Bool { input.ready = isInputReady; return input.execute(ticket) }" - }, - { - "line": 178, - "text": "func move(_ effect: GamepadMapping.Effect, context: WS2SemanticInputRouter.Context) -> Bool { false }" - } - ] - }, - { - "path": "prototype/App/WS2OwnedCodexSession+Authorization.swift", - "sha256": "cd619ed648b81d55565ecf519777681ab4419bd2374eecb1f793c7bf29538266", - "line_count": 18, - "symbols": [] - }, - { - "path": "prototype/App/WS2OwnedLaunchController.swift", - "sha256": "302f4b8ad841610a8a471caf79af657a5c8bc5d10e9c0e0a8d954363160a4ed2", - "line_count": 311, - "symbols": [ - { - "line": 4, - "text": "/// AgentSessions remain the authorities for protocol state and backend sessions respectively." - }, - { - "line": 5, - "text": "@MainActor final class WS2OwnedLaunchController {" - }, - { - "line": 6, - "text": "enum Phase: Equatable { case idle, checkingVersion, connecting, checkingConfig, signedOut, ready, creatingThread, sending, running, interrupting, completed, failed, stopping, stopped }" - }, - { - "line": 7, - "text": "private enum Query { case config, account, login, cancelLogin, logout }" - }, - { - "line": 8, - "text": "private struct Submission { let text:String;let model:String;let effort:String }" - }, - { - "line": 9, - "text": "private struct Association { let project:WS2OwnedScope.Project;let thread:String }" - }, - { - "line": 60, - "text": "@discardableResult func editDraft(_ value:String) -> Bool {" - }, - { - "line": 63, - "text": "@discardableResult func selectProject(_ url:URL) -> Bool {" - }, - { - "line": 74, - "text": "@discardableResult func selectExecutable(_ url:URL) -> Bool {" - }, - { - "line": 78, - "text": "@discardableResult func launch(consent:Bool,diagnostics:Bool=false) -> Bool {" - }, - { - "line": 94, - "text": "private func begin(_ prepared:WS2LocalLaunchProfile,diagnostics:Bool) {" - }, - { - "line": 120, - "text": "private func currentIsValid() -> Bool {" - }, - { - "line": 125, - "text": "private func revalidate() -> Bool {" - }, - { - "line": 129, - "text": "@discardableResult func chooseModel(_ value:String) -> Bool {" - }, - { - "line": 133, - "text": "@discardableResult func chooseEffort(_ value:String) -> Bool {" - }, - { - "line": 137, - "text": "@discardableResult func send(_ draft:String,hasMarkedText:Bool) -> Bool {" - }, - { - "line": 149, - "text": "private func deliverSubmission() throws {" - }, - { - "line": 155, - "text": "@discardableResult func resumeLast() -> Bool {" - }, - { - "line": 161, - "text": "@discardableResult func interrupt() -> Bool {" - }, - { - "line": 166, - "text": "@discardableResult func login() -> Bool {" - }, - { - "line": 171, - "text": "@discardableResult func logout() -> Bool {" - }, - { - "line": 176, - "text": "func cancelLogin() {" - }, - { - "line": 183, - "text": "static func browserLoginURL(_ text:String) -> URL? {" - }, - { - "line": 189, - "text": "private func receive(_ event:CodexWire.Event,connection:UUID) {" - }, - { - "line": 256, - "text": "private func readAccount() throws {" - }, - { - "line": 260, - "text": "private func synchronizeThreadAndTurn() throws {" - }, - { - "line": 275, - "text": "private func emit(_ event:AgentSessions.Event,turn:String?=nil) {" - }, - { - "line": 279, - "text": "private func ended(connection:UUID) {" - }, - { - "line": 285, - "text": "func stop(reason:String=\"已断开连接\",clearPrivate:Bool=false) {" - }, - { - "line": 303, - "text": "func environmentChanged() {" - }, - { - "line": 307, - "text": "private func fail(_ message:String) {" - }, - { - "line": 310, - "text": "private func changed() { onChange?();if !isBusy { onQuiescent?() } }" - } - ] - }, - { - "path": "prototype/App/WS2OwnedSessionView.swift", - "sha256": "d3360e975925f28b112b32d4c51b9a75d195a507629793e5e5b3d3eed006434f", - "line_count": 154, - "symbols": [ - { - "line": 4, - "text": "@MainActor final class WS2OwnedSessionView: NSView, WS2LeaseContent, NSTextViewDelegate {" - }, - { - "line": 45, - "text": "func row(_ views:[NSView]) -> NSStackView { let r=NSStackView(views:views);r.orientation = .horizontal;r.spacing=8;return r }" - }, - { - "line": 75, - "text": "private func configure(_ text:NSTextView,editable:Bool) {" - }, - { - "line": 82, - "text": "func scheduleRender() {" - }, - { - "line": 89, - "text": "func render() {" - }, - { - "line": 117, - "text": "func textDidChange(_ notification:Notification) {" - }, - { - "line": 121, - "text": "private func choose(directory:Bool) {" - }, - { - "line": 132, - "text": "@objc private func pickProject() { choose(directory:true) }" - }, - { - "line": 133, - "text": "@objc private func pickExecutable() { choose(directory:false) }" - }, - { - "line": 134, - "text": "@objc private func consentChanged() { render() }" - }, - { - "line": 135, - "text": "@objc private func start() { guard inputIsCurrent() else { return };_=controller.launch(consent:consent.state == .on,diagnostics:diagnostic.state == .on);render() }" - }, - { - "line": 136, - "text": "@objc private func logIn() { guard inputIsCurrent() else { return };_=controller.login() }" - }, - { - "line": 137, - "text": "@objc private func cancelLogIn() { guard inputIsCurrent() else { return };controller.cancelLogin() }" - }, - { - "line": 138, - "text": "@objc private func logOut() { guard inputIsCurrent() else { return };_=controller.logout() }" - }, - { - "line": 139, - "text": "@objc private func resumeSession() { guard inputIsCurrent() else { return };_=controller.resumeLast() }" - }, - { - "line": 140, - "text": "@objc private func showModelPicker() {" - }, - { - "line": 145, - "text": "@objc private func selectModel() { guard inputIsCurrent(),model.indexOfSelectedItem>0 else { return };_=controller.chooseModel(modelIDs[model.indexOfSelectedItem-1]) }" - }, - { - "line": 146, - "text": "@objc private func selectEffort() { guard inputIsCurrent(),effort.indexOfSelectedItem>0 else { return };_=controller.chooseEffort(effortIDs[effort.indexOfSelectedItem-1]) }" - }, - { - "line": 147, - "text": "@objc private func sendDraft() { guard inputIsCurrent() else { return };_=controller.send(draft.string,hasMarkedText:draft.hasMarkedText()) }" - }, - { - "line": 148, - "text": "@objc private func interruptTurn() { guard inputIsCurrent() else { return };_=controller.interrupt() }" - }, - { - "line": 149, - "text": "@objc private func stopSession() { guard inputIsCurrent() else { return };controller.stop() }" - }, - { - "line": 150, - "text": "@objc private func toggleDiagnostics() { guard inputIsCurrent() else { return };displayingDiagnostics.toggle();diagnostics.title=displayingDiagnostics ? \"返回回复\":\"查看诊断\";render() }" - }, - { - "line": 151, - "text": "func revoke() { renderTask?.cancel();renderTask=nil;inputIsCurrent={false};draft.inputContext?.discardMarkedText();draft.string=\"\";output.string=\"\";onCancel?() }" - }, - { - "line": 154, - "text": "@MainActor private final class WS2OwnedDocumentView:NSView { override var isFlipped:Bool { true } }" - } - ] - }, - { - "path": "prototype/Core/AgentSessions.swift", - "sha256": "218b3910959c810d5662d608b8ab9560d5232cf5e69930c330b400c940c65d7c", - "line_count": 260, - "symbols": [ - { - "line": 4, - "text": "struct AgentSessions: Sendable {" - }, - { - "line": 5, - "text": "enum Control: Sendable { case observed, owned }" - }, - { - "line": 6, - "text": "enum Status: Equatable, Sendable { case idle, running, waiting, completed, failed, stale, disconnected }" - }, - { - "line": 7, - "text": "struct Session: Sendable {" - }, - { - "line": 17, - "text": "enum Event: Sendable {" - }, - { - "line": 23, - "text": "enum Effect: Equatable, Sendable {" - }, - { - "line": 28, - "text": "private struct Pending: Sendable {" - }, - { - "line": 33, - "text": "enum TypedAction: Sendable {" - }, - { - "line": 37, - "text": "static func risk(of action: TypedAction) -> WS2.Risk {" - }, - { - "line": 64, - "text": "func request(for key: WS2.ApprovalKey) -> WS2.ApprovalRequest? { suspended ? nil : pending[key]?.request }" - }, - { - "line": 65, - "text": "mutating func receive(_ envelope: WS2.Envelope) -> [Effect] {" - }, - { - "line": 151, - "text": "mutating func choose(_ key: WS2.ApprovalKey, choice: WS2.ApprovalChoice," - }, - { - "line": 173, - "text": "mutating func authorizationFinished(_ outcome: WS2.AuthorizationOutcome, now: WS2.Instant) -> [Effect] {" - }, - { - "line": 189, - "text": "mutating func tick(at now: WS2.Instant) -> [Effect] {" - }, - { - "line": 200, - "text": "mutating func suspend(at now: WS2.Instant) -> [Effect] {" - }, - { - "line": 210, - "text": "mutating func resume(at now: WS2.Instant) -> [Effect] {" - }, - { - "line": 223, - "text": "private mutating func expire(at now: WS2.Instant) -> [Effect] {" - }, - { - "line": 233, - "text": "private mutating func clearApprovals(for session: WS2.SessionKey) -> [Effect] {" - }, - { - "line": 240, - "text": "private mutating func restoreStatus(for key: WS2.SessionKey, fallback: Status) {" - }, - { - "line": 244, - "text": "private func orderedKeys() -> [WS2.SessionKey] {" - }, - { - "line": 247, - "text": "private func approvalOrder(_ a: WS2.ApprovalKey, _ b: WS2.ApprovalKey) -> Bool {" - }, - { - "line": 258, - "text": "private func valid(_ summary: String) -> Bool { !summary.isEmpty && summary.utf8.count <= 16_384 }" - }, - { - "line": 259, - "text": "private func validID(_ id: String) -> Bool { !id.isEmpty && id.utf8.count <= 512 }" - } - ] - }, - { - "path": "prototype/Core/AuthorizationLedger.swift", - "sha256": "495d1ce534fe560c8c0fe43ee6fd2bb5e9e24b7f82b172978ffdd62143985676", - "line_count": 157, - "symbols": [ - { - "line": 16, - "text": "enum AuthFailure: Error, Equatable, Sendable {" - }, - { - "line": 21, - "text": "protocol AuthRandomSource {" - }, - { - "line": 22, - "text": "func bytes(_ count: Int) -> [UInt8]?" - }, - { - "line": 25, - "text": "struct SystemAuthRandom: AuthRandomSource {" - }, - { - "line": 26, - "text": "func bytes(_ count: Int) -> [UInt8]? {" - }, - { - "line": 33, - "text": "@MainActor final class AuthorizationGrant {" - }, - { - "line": 34, - "text": "enum State: Equatable { case live, consumed, revoked(AuthFailure) }" - }, - { - "line": 53, - "text": "@MainActor final class AuthorizationLedger {" - }, - { - "line": 55, - "text": "nonisolated static func monotonicNow() -> UInt64 { clock_gettime_nsec_np(CLOCK_MONOTONIC_RAW) }" - }, - { - "line": 83, - "text": "func begin(target: AuthTarget, ttl: UInt64) -> Result {" - }, - { - "line": 99, - "text": "func complete(_ request: AuthRequest, signature: Data, publicKey: P256.Signing.PublicKey," - }, - { - "line": 119, - "text": "func cancel(requestID: UUID) {" - }, - { - "line": 124, - "text": "func consume(_ grant: AuthorizationGrant, expectedPurpose: AuthPurpose, currentTarget: AuthTarget," - }, - { - "line": 151, - "text": "func advanceSessionEpoch() {" - } - ] - }, - { - "path": "prototype/Core/CodexWire.swift", - "sha256": "ed2e3e209bb3ff42c6ba8273b323f2b6f70bdf48daa4cc21f91060d9bfebecf3", - "line_count": 271, - "symbols": [ - { - "line": 3, - "text": "indirect enum WireJSON: Codable, Equatable, Sendable {" - }, - { - "line": 15, - "text": "func encode(to encoder: any Encoder) throws {" - }, - { - "line": 33, - "text": "struct CodexWire: Sendable {" - }, - { - "line": 34, - "text": "enum Failure: Error { case oversized, closed, malformed, notReady, unsupported, stale, capacity }" - }, - { - "line": 35, - "text": "enum State: Equatable, Sendable { case fresh, initializing, listingModels, ready, closed }" - }, - { - "line": 36, - "text": "struct Pending: Sendable { let method: String; let deadline: WS2.Instant }" - }, - { - "line": 37, - "text": "enum Event: Equatable, Sendable {" - }, - { - "line": 42, - "text": "static let maximumFrame = 1_048_576 // Recommendation: bounded metadata stream; not a measured protocol maximum." - }, - { - "line": 59, - "text": "mutating func drain() -> [Data] { defer { outbound.removeAll(keepingCapacity:true) }; return outbound }" - }, - { - "line": 60, - "text": "private mutating func send(_ value: WireJSON) throws {" - }, - { - "line": 66, - "text": "private mutating func request(_ method: String, _ params: [String:WireJSON]?, now: WS2.Instant) throws -> WS2.RequestID {" - }, - { - "line": 74, - "text": "mutating func initialize(now: WS2.Instant) throws {" - }, - { - "line": 79, - "text": "mutating func startThread(cwd: String, model: String, now: WS2.Instant) throws {" - }, - { - "line": 87, - "text": "mutating func resumeThread(id: String, now: WS2.Instant) throws {" - }, - { - "line": 95, - "text": "mutating func startTurn(text: String, model: String, effort: String, now: WS2.Instant) throws {" - }, - { - "line": 104, - "text": "mutating func steer(text: String, expectedTurnID: String, now: WS2.Instant) throws {" - }, - { - "line": 110, - "text": "mutating func interrupt(now: WS2.Instant) throws {" - }, - { - "line": 115, - "text": "mutating func readConfig(cwd:String,now:WS2.Instant) throws -> WS2.RequestID {" - }, - { - "line": 119, - "text": "mutating func readAccount(now: WS2.Instant) throws -> WS2.RequestID {" - }, - { - "line": 123, - "text": "mutating func beginBrowserLogin(now: WS2.Instant) throws -> WS2.RequestID {" - }, - { - "line": 127, - "text": "mutating func cancelLogin(id: String, now: WS2.Instant) throws -> WS2.RequestID {" - }, - { - "line": 131, - "text": "mutating func logout(now: WS2.Instant) throws -> WS2.RequestID {" - }, - { - "line": 135, - "text": "mutating func ingest(_ chunk: Data, now: WS2.Instant) throws -> [Event] {" - }, - { - "line": 156, - "text": "private mutating func receive(_ v: WireJSON, now: WS2.Instant) throws -> [Event] {" - }, - { - "line": 237, - "text": "mutating func denyApproval(_ id: WS2.RequestID) throws {" - }, - { - "line": 246, - "text": "enum ApprovalWireDecision { case acceptOnce, decline }" - }, - { - "line": 247, - "text": "mutating func enqueueApprovalResponse(_ id: WS2.RequestID, expectedMethod: String," - }, - { - "line": 260, - "text": "mutating func tick(now: WS2.Instant) -> [Event] {" - }, - { - "line": 266, - "text": "mutating func close() {" - } - ] - }, - { - "path": "prototype/Core/ConductorCapabilities.swift", - "sha256": "4494697451f96b08ea1c1bf92fbb83ec9539055ac06937edef392558c20c9af0", - "line_count": 101, - "symbols": [ - { - "line": 5, - "text": "struct ConductorCapabilities: Equatable, Sendable {" - }, - { - "line": 17, - "text": "enum Resolution: Equatable, Sendable {" - }, - { - "line": 21, - "text": "func resolve(_ requested: ConductorEffort, keeping current: String) -> Resolution {" - }, - { - "line": 37, - "text": "func accepts(_ config: WS2.ExecutionConfig) -> Bool {" - }, - { - "line": 49, - "text": "struct ConductorModelSlots: Sendable {" - }, - { - "line": 55, - "text": "enum Selection: Equatable, Sendable {" - }, - { - "line": 59, - "text": "func select(_ number: Int, in completeSnapshot: [ConductorCapabilities]) -> Selection {" - }, - { - "line": 69, - "text": "struct ConductorCostCandidate: Equatable, Sendable {" - }, - { - "line": 76, - "text": "struct ConductorCostVault: Sendable {" - }, - { - "line": 77, - "text": "struct Ticket: Equatable, Sendable {" - }, - { - "line": 84, - "text": "mutating func confirm(_ candidate: ConductorCostCandidate, beganAt: WS2.Instant," - }, - { - "line": 94, - "text": "mutating func consume(for current: WS2.CostBinding, now: WS2.Instant) -> Bool {" - }, - { - "line": 100, - "text": "mutating func invalidate() { ticket = nil }" - } - ] - }, - { - "path": "prototype/Core/ConductorSession.swift", - "sha256": "e426c0b1a19fd8bea29528f707371decf0ac65459e3c85dbd6d6e2f94e7f2e7d", - "line_count": 646, - "symbols": [ - { - "line": 5, - "text": "enum ConductorNotch: Equatable, Sendable {" - }, - { - "line": 50, - "text": "struct ConductorSession: Sendable {" - }, - { - "line": 51, - "text": "struct SessionChoice: Equatable, Sendable { let context: WS2.Context; let label: String; let running: Bool }" - }, - { - "line": 52, - "text": "enum TouchPhase: Sendable { case begin, move, end, cancel }" - }, - { - "line": 53, - "text": "enum Reconciliation: Sendable {" - }, - { - "line": 56, - "text": "enum Event: Sendable {" - }, - { - "line": 80, - "text": "enum Effect: Equatable, Sendable {" - }, - { - "line": 93, - "text": "struct Draft: Equatable, Sendable { let text: String; let digest: WS2.Digest; let revision: UInt64; let owner: WS2.Context }" - }, - { - "line": 94, - "text": "private struct Press: Sendable { let id: UInt64; let beganAt: WS2.Instant; let sequence: UInt64; var consumed = false }" - }, - { - "line": 95, - "text": "private struct Stroke: Sendable { let beganAt: WS2.Instant; let sequence: UInt64; var points: [ConductorPoint] }" - }, - { - "line": 96, - "text": "private struct Capture: Sendable {" - }, - { - "line": 101, - "text": "private enum CommandKind: Sendable { case submit, steer, interrupt }" - }, - { - "line": 102, - "text": "private struct Command: Sendable {" - }, - { - "line": 107, - "text": "private struct Confirmation: Sendable { let beganAt: WS2.Instant; let sequence: UInt64 }" - }, - { - "line": 108, - "text": "private struct Challenge: Sendable { let id: WS2.Token; let confirmation: Confirmation; let deadline: WS2.Instant }" - }, - { - "line": 165, - "text": "mutating func setEnabled(_ value: Bool, at now: WS2.Instant) -> [Effect] {" - }, - { - "line": 171, - "text": "mutating func setLocked(_ value: Bool, at now: WS2.Instant) -> [Effect] {" - }, - { - "line": 182, - "text": "mutating func cancelInput(at now: WS2.Instant) -> [Effect] {" - }, - { - "line": 186, - "text": "mutating func receive(_ envelope: WS2.Envelope) -> [Effect] {" - }, - { - "line": 330, - "text": "private mutating func handleButton(_ b: WS2.ButtonEvent, sequence: UInt64, now: WS2.Instant) -> [Effect] {" - }, - { - "line": 369, - "text": "private mutating func short(_ button: WS2.Button, confirmation: Confirmation, now: WS2.Instant) -> [Effect] {" - }, - { - "line": 385, - "text": "private mutating func touch(_ phase: TouchPhase, point: WS2.Point, sequence: UInt64, now: WS2.Instant) -> [Effect] {" - }, - { - "line": 455, - "text": "private mutating func tap(_ confirmation: Confirmation, now: WS2.Instant) -> [Effect] {" - }, - { - "line": 481, - "text": "private mutating func play(now: WS2.Instant) -> [Effect] {" - }, - { - "line": 518, - "text": "private mutating func startCapture(at now: WS2.Instant) -> [Effect] {" - }, - { - "line": 525, - "text": "private mutating func stopCapture(now: WS2.Instant, discard: Bool = false) -> [Effect] {" - }, - { - "line": 534, - "text": "private mutating func replaceDraft(_ text: String, digest: WS2.Digest, sequence: UInt64, now: WS2.Instant) -> [Effect] {" - }, - { - "line": 542, - "text": "private mutating func proposeCost(_ config: WS2.ExecutionConfig, label: String, sequence: UInt64, now: WS2.Instant) -> [Effect] {" - }, - { - "line": 550, - "text": "private mutating func back(now: WS2.Instant) -> [Effect] {" - }, - { - "line": 566, - "text": "private mutating func toggleDomain() -> [Effect] {" - }, - { - "line": 571, - "text": "private mutating func openSessions() -> [Effect] {" - }, - { - "line": 578, - "text": "private mutating func showSessionList() -> [Effect] {" - }, - { - "line": 582, - "text": "private mutating func expire(sequence: UInt64, at now: WS2.Instant) -> [Effect] {" - }, - { - "line": 614, - "text": "private mutating func clearTransient(at now: WS2.Instant) -> [Effect] {" - }, - { - "line": 622, - "text": "private func approvalEffect(_ request: WS2.ApprovalRequest, confirmation: Confirmation, confirm: Bool, deny: Bool, voice: Bool) -> Effect {" - }, - { - "line": 626, - "text": "private mutating func clearSubmittedDraft(_ item: Command) {" - }, - { - "line": 629, - "text": "private mutating func recoverDraft(_ item: Command) {" - }, - { - "line": 632, - "text": "private mutating func show(_ value: ConductorNotch) -> [Effect] {" - }, - { - "line": 641, - "text": "private func sound(_ name: String) -> [Effect] { muted ? [] : [.sound(name)] }" - }, - { - "line": 642, - "text": "private func validID(_ text: String) -> Bool { !text.isEmpty && text.utf8.count <= 512 }" - }, - { - "line": 643, - "text": "private func validCapabilities(_ caps: [ConductorCapabilities]) -> Bool {" - } - ] - }, - { - "path": "prototype/Core/Contracts.swift", - "sha256": "12fffc2e5cf207aa0ca6b4c371f28b9eec8c2b374b5e1a06d8943878891b2420", - "line_count": 327, - "symbols": [ - { - "line": 6, - "text": "enum WS2 {" - }, - { - "line": 8, - "text": "struct Instant: Hashable, Comparable, Sendable, Codable {" - }, - { - "line": 20, - "text": "func adding(_ duration: UInt64) -> Self {" - }, - { - "line": 25, - "text": "func elapsed(since earlier: Self) -> UInt64 {" - }, - { - "line": 32, - "text": "enum Duration {" - }, - { - "line": 39, - "text": "struct TimeGate: Sendable {" - }, - { - "line": 41, - "text": "mutating func accept(_ now: Instant) -> Bool {" - }, - { - "line": 50, - "text": "struct EventGate: Sendable {" - }, - { - "line": 53, - "text": "mutating func accept(sequence: UInt64, at now: Instant) -> Bool {" - }, - { - "line": 62, - "text": "enum TokenDomain: String, Hashable, Sendable, Codable { case unspecified, focusTimer, presenceLock, conductor, interaction }" - }, - { - "line": 66, - "text": "struct Token: Hashable, Sendable, Codable {" - }, - { - "line": 76, - "text": "struct TokenSource: Sendable {" - }, - { - "line": 80, - "text": "mutating func next() -> Token? {" - }, - { - "line": 88, - "text": "enum Provider: String, Hashable, Sendable, Codable, CaseIterable {" - }, - { - "line": 94, - "text": "struct SessionKey: Hashable, Sendable, Codable {" - }, - { - "line": 101, - "text": "struct Context: Hashable, Sendable, Codable {" - }, - { - "line": 114, - "text": "struct Envelope: Sendable {" - }, - { - "line": 124, - "text": "struct Digest: Hashable, Sendable, Codable {" - }, - { - "line": 138, - "text": "func encode(to encoder: Encoder) throws {" - }, - { - "line": 145, - "text": "struct ModelID: Hashable, Sendable, Codable {" - }, - { - "line": 151, - "text": "struct ExecutionConfig: Hashable, Sendable, Codable {" - }, - { - "line": 159, - "text": "struct CostBinding: Hashable, Sendable, Codable {" - }, - { - "line": 167, - "text": "enum Risk: String, Sendable, Codable { case normal, high, unknown }" - }, - { - "line": 170, - "text": "enum RequestID: Hashable, Sendable, Codable {" - }, - { - "line": 176, - "text": "struct ApprovalKey: Hashable, Sendable, Codable {" - }, - { - "line": 183, - "text": "struct ApprovalRequest: Equatable, Sendable {" - }, - { - "line": 200, - "text": "enum ApprovalChoice: Sendable { case confirm, deny, returnToHost }" - }, - { - "line": 203, - "text": "struct AuthorizationIntent: Equatable, Sendable {" - }, - { - "line": 211, - "text": "enum AuthorizationOutcome: Sendable {" - }, - { - "line": 218, - "text": "enum ApprovalDisposition: String, Equatable, Sendable { case deny, deferToHost }" - }, - { - "line": 221, - "text": "enum Button: String, Hashable, Sendable, CaseIterable {" - }, - { - "line": 226, - "text": "enum ButtonPhase: String, Sendable { case down, up, cancel, heldHalfSecond, heldOneSecond, clickOnly }" - }, - { - "line": 229, - "text": "struct ButtonEvent: Equatable, Sendable {" - }, - { - "line": 238, - "text": "struct Point: Equatable, Sendable {" - }, - { - "line": 245, - "text": "enum Action: String, Equatable, Sendable {" - }, - { - "line": 254, - "text": "enum Layer: Int, Comparable, Sendable, CaseIterable {" - }, - { - "line": 260, - "text": "struct DisplayID: Hashable, Comparable, Sendable, Codable {" - }, - { - "line": 266, - "text": "enum Fault: String, Equatable, Sendable {" - }, - { - "line": 273, - "text": "protocol WS2Clock: Sendable {" - }, - { - "line": 274, - "text": "func now() -> WS2.Instant" - }, - { - "line": 278, - "text": "struct WS2ContinuousClock: WS2Clock, Sendable {" - }, - { - "line": 281, - "text": "func now() -> WS2.Instant {" - }, - { - "line": 296, - "text": "struct LeaseRequest: Sendable {" - }, - { - "line": 304, - "text": "struct LeaseHandle: Hashable, Sendable {" - }, - { - "line": 310, - "text": "enum LeaseRevocation: Sendable {" - }, - { - "line": 313, - "text": "enum LeaseDecision: Sendable {" - }, - { - "line": 319, - "text": "struct VisibilitySnapshot: Sendable {" - } - ] - }, - { - "path": "prototype/Core/DeviceBattery.swift", - "sha256": "7777539671486437ff4e26398663d7187b31401405d866362efde3caadc473e3", - "line_count": 177, - "symbols": [ - { - "line": 16, - "text": "enum DeviceKind: String, Codable, Sendable {" - }, - { - "line": 20, - "text": "enum BatteryComponent: String, Codable, Sendable {" - }, - { - "line": 25, - "text": "enum ChargingState: String, Codable, Sendable {" - }, - { - "line": 29, - "text": "enum BatteryKind: String, Codable, Sendable {" - }, - { - "line": 33, - "text": "struct DeviceIdentity: Equatable, Sendable {" - }, - { - "line": 41, - "text": "struct BatteryReading: Equatable, Sendable {" - }, - { - "line": 56, - "text": "static func validPercent(_ raw: Int?) -> Int? {" - }, - { - "line": 62, - "text": "enum BatteryFreshness: Equatable, Sendable { case currentEnough, aged, unknown }" - }, - { - "line": 64, - "text": "enum DeviceBatteryEvent: Equatable, Sendable {" - }, - { - "line": 74, - "text": "struct DeviceBatteryBook: Sendable {" - }, - { - "line": 80, - "text": "struct Key: Hashable, Codable, Sendable {" - }, - { - "line": 99, - "text": "mutating func connect(_ identity: DeviceIdentity, at now: Double, initialSnapshot: Bool) -> [DeviceBatteryEvent] {" - }, - { - "line": 109, - "text": "mutating func disconnect(_ deviceID: String) -> [DeviceBatteryEvent] {" - }, - { - "line": 116, - "text": "mutating func seen(_ deviceID: String, at now: Double) {" - }, - { - "line": 123, - "text": "mutating func record(_ reading: BatteryReading, now: Double) -> [DeviceBatteryEvent] {" - }, - { - "line": 148, - "text": "func freshness(_ key: Key, now: Double) -> BatteryFreshness {" - }, - { - "line": 158, - "text": "static func level(for percent: Int) -> Int? {" - }, - { - "line": 162, - "text": "private mutating func lowAlert(key: Key, reading: BatteryReading, now: Double) -> Int? {" - } - ] - }, - { - "path": "prototype/Core/HIDMappingTransaction.swift", - "sha256": "48edb2bb043ddd6cf18285f422ae90e4f75b258ee75efd9c6976fd7ef973a3d6", - "line_count": 30, - "symbols": [ - { - "line": 3, - "text": "struct HIDMappingTransaction: Sendable {" - }, - { - "line": 4, - "text": "enum Failure: Error { case nonUniqueDevice, stale, notOwned, malformed }" - }, - { - "line": 5, - "text": "struct Device: Equatable, Sendable { let registryID: UInt64; let vendor: Int; let product: Int }" - }, - { - "line": 6, - "text": "struct Write: Equatable, Sendable { let device: Device; let expected: Data; let replacement: Data }" - }, - { - "line": 8, - "text": "mutating func prepare(device: Device, matches: [Device], current: Data, replacement: Data) throws -> Write {" - }, - { - "line": 16, - "text": "mutating func commit(_ write: Write, readback: Data) throws {" - }, - { - "line": 20, - "text": "func restore(device: Device, current: Data) throws -> Write {" - }, - { - "line": 25, - "text": "mutating func restored(_ write: Write, readback: Data) throws {" - } - ] - }, - { - "path": "prototype/Core/NotchActivities.swift", - "sha256": "e5c6c6fc339b58175672abea1322b5aeaa0c526ab850a4a0b0d7c48280f5c10b", - "line_count": 266, - "symbols": [ - { - "line": 13, - "text": "enum NotchActivityAction: String {" - }, - { - "line": 18, - "text": "enum NotchActivityKind: String, Codable, Sendable, CaseIterable {" - }, - { - "line": 40, - "text": "struct NotchActivity: Equatable, Sendable {" - }, - { - "line": 88, - "text": "struct NotchActivityStore {" - }, - { - "line": 137, - "text": "mutating func upsert(_ activity: NotchActivity, now: Double) -> Bool {" - }, - { - "line": 170, - "text": "mutating func end(id: String, generation: UInt64, now: Double) -> Bool {" - }, - { - "line": 182, - "text": "mutating func prune(now: Double) {" - }, - { - "line": 196, - "text": "mutating func select(id: String) -> Bool {" - }, - { - "line": 203, - "text": "mutating func moveSelection(by delta: Int) {" - }, - { - "line": 218, - "text": "private static func validNow(_ now: Double) -> Bool {" - }, - { - "line": 223, - "text": "private static func isValid(_ activity: NotchActivity) -> Bool {" - }, - { - "line": 238, - "text": "private static func order(_ a: NotchActivity, _ b: NotchActivity) -> Bool {" - }, - { - "line": 245, - "text": "private static func reconcileSelection(_ selection: inout String?, storage: [String: NotchActivity]) {" - }, - { - "line": 254, - "text": "private mutating func registerTombstone(id: String, generation: UInt64) {" - } - ] - }, - { - "path": "prototype/Core/PairingAttemptWindow.swift", - "sha256": "262dc840763d31105c16f5edda749a2e11ea15064158884c825109fbcd3450e3", - "line_count": 39, - "symbols": [ - { - "line": 3, - "text": "struct PairingAttemptWindow: Sendable {" - }, - { - "line": 4, - "text": "enum Failure: Error { case badTime, coolingDown, alreadyOpen, invalidPIN, unavailable }" - }, - { - "line": 17, - "text": "mutating func open(at now: Double, makePIN: () -> String) throws -> String {" - }, - { - "line": 26, - "text": "func mayAttempt(at now: Double) -> Bool {" - }, - { - "line": 29, - "text": "mutating func failed(at now: Double) throws {" - }, - { - "line": 34, - "text": "mutating func finish(at now: Double) throws {" - }, - { - "line": 37, - "text": "mutating func cancel() { deadline = nil; pin = nil } // 取消不能抹去冷却。" - }, - { - "line": 38, - "text": "static func randomPIN() -> String { String(format:\"%04d\",Int.random(in:0...9999)) }" - } - ] - }, - { - "path": "prototype/Core/PairingTLV.swift", - "sha256": "32495002c85cc927a8c31cd5699ff517f070107120c111919e9b35c1df2f3845", - "line_count": 39, - "symbols": [ - { - "line": 3, - "text": "enum PairingTLV {" - }, - { - "line": 4, - "text": "enum Failure: Error { case oversized, truncated, duplicate, invalidFragment, invalidType }" - }, - { - "line": 6, - "text": "static func decode(_ data: Data, allowed: Set) throws -> [UInt8:Data] {" - }, - { - "line": 24, - "text": "static func encode(_ entries: [(UInt8,Data)]) throws -> Data {" - } - ] - }, - { - "path": "prototype/Core/PresenceLock.swift", - "sha256": "7099b9f42bc09683ac35dd345020a58429bd2e9e19db4823082df19ad7540188", - "line_count": 295, - "symbols": [ - { - "line": 4, - "text": "struct PresenceLock: Sendable {" - }, - { - "line": 5, - "text": "enum Device: String, Hashable, Sendable { case phone, watch }" - }, - { - "line": 6, - "text": "enum Status: Equatable, Sendable { case unknown, connecting, present, away }" - }, - { - "line": 7, - "text": "enum LockState: Sendable { case unknown, unlocked, locked }" - }, - { - "line": 8, - "text": "enum Reason: Equatable, Sendable { case devices, camera }" - }, - { - "line": 9, - "text": "enum Phase: Equatable, Sendable {" - }, - { - "line": 13, - "text": "struct Configuration: Sendable {" - }, - { - "line": 20, - "text": "enum Event: Sendable {" - }, - { - "line": 36, - "text": "enum Effect: Equatable, Sendable {" - }, - { - "line": 43, - "text": "private struct Probe: Sendable { let id: UInt64; let deadline: WS2.Instant }" - }, - { - "line": 44, - "text": "private struct Link: Sendable {" - }, - { - "line": 84, - "text": "func status(of device: Device) -> Status { links[device]?.status ?? .unknown }" - }, - { - "line": 86, - "text": "mutating func handleBatch(_ events: [Event], at now: WS2.Instant) -> [Effect] {" - }, - { - "line": 93, - "text": "mutating func handle(_ event: Event, at now: WS2.Instant) -> [Effect] {" - }, - { - "line": 219, - "text": "private mutating func reconcile(at now: WS2.Instant, allowReturn: Bool) -> [Effect] {" - }, - { - "line": 258, - "text": "private func absence(at now: WS2.Instant) -> Reason? {" - }, - { - "line": 267, - "text": "private mutating func prepare() -> [Effect] {" - }, - { - "line": 272, - "text": "private mutating func cancelCountdown() -> [Effect] {" - }, - { - "line": 278, - "text": "private mutating func forgetSignals() {" - }, - { - "line": 285, - "text": "private func seconds(to deadline: WS2.Instant, from now: WS2.Instant) -> Int {" - }, - { - "line": 288, - "text": "private func priority(_ event: Event) -> Int {" - } - ] - }, - { - "path": "prototype/Core/RemoteMode.swift", - "sha256": "559d83d94615574613c9ec13a92ddf9395a55157c21f3eaff0e60b61bb48b3d7", - "line_count": 89, - "symbols": [ - { - "line": 4, - "text": "struct RemoteMode: Sendable {" - }, - { - "line": 5, - "text": "enum Mode: String, Equatable, Sendable { case remote, conductor }" - }, - { - "line": 6, - "text": "enum Effect: Equatable, Sendable {" - }, - { - "line": 13, - "text": "private struct Press: Sendable { let id: UInt64; var consumed = false }" - }, - { - "line": 20, - "text": "mutating func setEnabled(_ value: Bool) -> [Effect] {" - }, - { - "line": 26, - "text": "mutating func handle(_ event: WS2.ButtonEvent) -> [Effect] {" - }, - { - "line": 72, - "text": "private func short(_ button: WS2.Button) -> [Effect] {" - } - ] - }, - { - "path": "prototype/Core/SessionLockState.swift", - "sha256": "1f92f697f9a7c1b5add7c4842496b86d4e65b93f2985e10f08ba3662a82ebe75", - "line_count": 16, - "symbols": [ - { - "line": 5, - "text": "enum SessionLockState: Equatable {" - }, - { - "line": 8, - "text": "static func resolve(locked: Bool?, onConsole: Bool?, loginDone: Bool?, dictionaryPresent: Bool) -> Self {" - } - ] - }, - { - "path": "prototype/Core/WS2CompanionFrame.swift", - "sha256": "2ecb698bdf16965242836f132a7bc801d0ac7db7b488abc0d5a1b878a4c0fabd", - "line_count": 59, - "symbols": [ - { - "line": 3, - "text": "struct WS2CompanionFrame: Equatable, Sendable {" - }, - { - "line": 4, - "text": "enum Failure: Error { case closed, oversized, unsupportedType, invalidLength, exhausted }" - }, - { - "line": 5, - "text": "static let maximumPayload = 65_536 // local cap, NOT the 24-bit protocol maximum" - }, - { - "line": 9, - "text": "static func header(type: UInt8, count: Int) throws -> Data {" - }, - { - "line": 14, - "text": "func encoded() throws -> Data { try Self.header(type: type, count: payload.count) + payload }" - }, - { - "line": 15, - "text": "struct Decoder: Sendable {" - }, - { - "line": 18, - "text": "mutating func close() { closed = true; bytes.removeAll(keepingCapacity: false) }" - }, - { - "line": 20, - "text": "mutating func feed(_ input: Data) throws -> [WS2CompanionFrame] {" - }, - { - "line": 48, - "text": "struct WS2CompanionCounter: Sendable {" - }, - { - "line": 52, - "text": "mutating func take() throws -> Data {" - }, - { - "line": 58, - "text": "mutating func close() { closed = true }" - } - ] - }, - { - "path": "prototype/Core/WS2ConnectionBudget.swift", - "sha256": "f225317ecabd3143c7c40603ed7a1c2bb93f19f083c59722a6bddfc409be9cd2", - "line_count": 74, - "symbols": [ - { - "line": 4, - "text": "struct WS2ConnectionBudget: Sendable {" - }, - { - "line": 5, - "text": "struct Handle: Hashable, Sendable { let generation: UUID; let serial: UInt64 }" - }, - { - "line": 6, - "text": "enum Handshake: Sendable { case pairSetup, pairVerify }" - }, - { - "line": 7, - "text": "struct Peer: Hashable, Sendable { let id: String; let revision: UInt64 }" - }, - { - "line": 8, - "text": "private struct Entry: Sendable { let deadline: WS2.Instant; var peer: Peer?; var queued: Int = 0 }" - }, - { - "line": 23, - "text": "mutating func expire(at now: WS2.Instant) -> [Handle] {" - }, - { - "line": 31, - "text": "mutating func admit(_ mode: Handshake, at now: WS2.Instant, locallyOpenedPairing: Bool) -> Handle? {" - }, - { - "line": 43, - "text": "@discardableResult mutating func promote(_ handle: Handle, peer: Peer, at now: WS2.Instant) -> Bool {" - }, - { - "line": 49, - "text": "func isCurrent(_ handle: Handle, peer: Peer?, at now: WS2.Instant) -> Bool {" - }, - { - "line": 53, - "text": "@discardableResult mutating func reserve(_ bytes: Int, for handle: Handle, at now: WS2.Instant) -> Bool {" - }, - { - "line": 61, - "text": "@discardableResult mutating func release(_ bytes: Int, for handle: Handle) -> Bool {" - }, - { - "line": 65, - "text": "mutating func close(_ handle: Handle) { entries[handle] = nil }" - }, - { - "line": 66, - "text": "mutating func revoke(peerID: String) -> [Handle] {" - }, - { - "line": 71, - "text": "@discardableResult mutating func halt() -> [Handle] {" - } - ] - }, - { - "path": "prototype/Core/WS2FocusEffectPlan.swift", - "sha256": "60ccb717e3641f20e1fc499dc1e432ba37493e3c4abe8e28c73b2ebc19419829", - "line_count": 85, - "symbols": [ - { - "line": 4, - "text": "struct WS2FocusEffectPlan: Sendable {" - }, - { - "line": 7, - "text": "struct Window: Equatable, Sendable { let identity: Identity; let revision: UInt64 }" - }, - { - "line": 8, - "text": "enum Kind: Equatable, Sendable { case tuck(Window, WS2.Token, UInt64), restore(Receipt) }" - }, - { - "line": 9, - "text": "struct Operation: Equatable, Sendable { let id: UUID; let kind: Kind }" - }, - { - "line": 10, - "text": "enum Outcome: Sendable { case completed(revision: UInt64), unchanged, userChanged, unknown }" - }, - { - "line": 11, - "text": "enum Failure: Error { case invalid, capacity, overflow, unexpectedCompletion }" - }, - { - "line": 24, - "text": "mutating func transition(run: WS2.Token?, windows: [Window]) throws {" - }, - { - "line": 31, - "text": "mutating func setSuspended(_ value: Bool) { suspended = value }" - }, - { - "line": 32, - "text": "mutating func manualChange(_ identity: Identity) {" - }, - { - "line": 38, - "text": "private static func identity(_ kind: Kind) -> Identity {" - }, - { - "line": 41, - "text": "mutating func next() -> Operation? {" - }, - { - "line": 51, - "text": "func mayCommit(_ operation: Operation) -> Bool {" - }, - { - "line": 60, - "text": "mutating func complete(_ operation: Operation, _ outcome: Outcome) throws {" - } - ] - }, - { - "path": "prototype/Core/WS2FocusWindowOwnership.swift", - "sha256": "69a0b9a82fd67c318d92b4bcedebd6f980b094f24b37197758fe1cf85f5ab3c7", - "line_count": 27, - "symbols": [ - { - "line": 3, - "text": "struct WS2FocusWindowOwnership: Sendable {" - }, - { - "line": 4, - "text": "struct Identity: Hashable, Sendable { let pid: Int32; let processStart: UInt64; let windowID: UInt32; let windowGeneration: UInt64 }" - }, - { - "line": 5, - "text": "struct Receipt: Equatable, Sendable {" - }, - { - "line": 13, - "text": "mutating func record(_ receipt: Receipt, didComplete: Bool) -> Bool {" - }, - { - "line": 18, - "text": "mutating func takeForRestore(_ id: Identity, run: WS2.Token, effectGeneration: UInt64, liveRevision: UInt64) -> Receipt? {" - }, - { - "line": 24, - "text": "mutating func manualChange(_ id: Identity) { owned[id] = nil }" - }, - { - "line": 25, - "text": "mutating func clear() { owned.removeAll() }" - } - ] - }, - { - "path": "prototype/Core/WS2FoldCallbackStamp.swift", - "sha256": "50e53418e04733bbe0421c49533bd7e87943f25707f7404bedf188a4ed4543de", - "line_count": 39, - "symbols": [ - { - "line": 5, - "text": "struct WS2FoldCallbackStamp: Equatable, Sendable {" - }, - { - "line": 15, - "text": "func accepts(current: Self, now: TimeInterval, unlocked: Bool," - }, - { - "line": 29, - "text": "struct WS2FoldObserverRoute: Equatable, Sendable {" - }, - { - "line": 36, - "text": "func ws2ObservedBoolean(_ raw: CFTypeRef?) -> Bool? {" - } - ] - }, - { - "path": "prototype/Core/WS2SelectionModel.swift", - "sha256": "c8fb3c0ac6564970d2daedee4d4708799ef0014a94a7bb22b99f18a85d86cf4c", - "line_count": 50, - "symbols": [ - { - "line": 4, - "text": "struct WS2SelectionModel: Sendable {" - }, - { - "line": 5, - "text": "struct Item: Equatable, Sendable { let id: String; let enabled: Bool }" - }, - { - "line": 6, - "text": "struct Activation: Equatable, Sendable { let revision: UInt64; let serial: UInt64; let itemID: String }" - }, - { - "line": 7, - "text": "enum Failure: Error { case invalidSnapshot, exhausted }" - }, - { - "line": 14, - "text": "mutating func replace(_ next: [Item]) throws {" - }, - { - "line": 25, - "text": "@discardableResult mutating func move(_ direction: Int, expectedRevision: UInt64) -> Bool {" - }, - { - "line": 34, - "text": "@discardableResult mutating func select(id: String, expectedRevision: UInt64) -> Bool {" - }, - { - "line": 38, - "text": "mutating func reserveActivation(expectedRevision: UInt64) -> Activation? {" - }, - { - "line": 44, - "text": "mutating func consume(_ value: Activation) -> String? {" - }, - { - "line": 49, - "text": "mutating func revoke() { pending = nil; items = []; selectedID = nil; if revision < .max { revision += 1 } else { exhausted = true } }" - } - ] - }, - { - "path": "prototype/Core/WS2StrictJSON.swift", - "sha256": "3c1edb48065c85d7b0fbed12ac8299df4d1931abecfe53019f9ea9cabdc9bb0d", - "line_count": 99, - "symbols": [ - { - "line": 5, - "text": "struct WS2StrictJSON {" - }, - { - "line": 6, - "text": "enum Failure: Error, Equatable { case syntax, duplicateKey, depth, nodes, size }" - }, - { - "line": 7, - "text": "static func validate(_ data: Data, maximumBytes: Int = 1_048_576," - }, - { - "line": 15, - "text": "private struct Parser {" - }, - { - "line": 19, - "text": "mutating func whitespace() { while let c=current, [9,10,13,32].contains(c) { index += 1 } }" - }, - { - "line": 20, - "text": "mutating func expect(_ c:UInt8) throws { guard current == c else { throw Failure.syntax }; index += 1 }" - }, - { - "line": 21, - "text": "mutating func node() throws { guard remaining > 0 else { throw Failure.nodes }; remaining -= 1 }" - }, - { - "line": 22, - "text": "mutating func value(_ depth:Int) throws {" - }, - { - "line": 53, - "text": "mutating func literal(_ text:[UInt8]) throws { for byte in text { try expect(byte) } }" - }, - { - "line": 54, - "text": "func digit(_ c:UInt8?) -> Bool { c.map { (48...57).contains($0) } ?? false }" - }, - { - "line": 55, - "text": "mutating func number() throws {" - }, - { - "line": 65, - "text": "mutating func hex() throws -> UInt16 {" - }, - { - "line": 74, - "text": "mutating func string() throws -> String {" - } - ] - }, - { - "path": "prototype/Core/WS2VisibleListInput.swift", - "sha256": "919b37b1add050fa65660fa70127a8dc131e659675ebedf791b86277d5acf425", - "line_count": 70, - "symbols": [ - { - "line": 4, - "text": "@MainActor final class WS2VisibleListInput {" - }, - { - "line": 14, - "text": "func replace(_ items: [WS2SelectionModel.Item], selectedID: String?) throws {" - }, - { - "line": 20, - "text": "func bind(_ context: WS2SemanticInputRouter.Context?) {" - }, - { - "line": 24, - "text": "@discardableResult func select(_ id: String) -> Bool {" - }, - { - "line": 30, - "text": "@discardableResult func prepare(_ ticket: WS2SemanticInputRouter.Ticket) -> Bool {" - }, - { - "line": 39, - "text": "func cancel(context: WS2SemanticInputRouter.Context, presses: [UInt64]) {" - }, - { - "line": 43, - "text": "func cancelAll() {" - }, - { - "line": 48, - "text": "@discardableResult func execute(_ ticket: WS2SemanticInputRouter.Ticket) -> Bool {" - }, - { - "line": 69, - "text": "func revoke() { ready = false; context = nil; prepared = nil; selection.revoke(); onArmed?(nil) }" - } - ] - }, - { - "path": "prototype/Effects/EffectFrameAwaiter.swift", - "sha256": "9c7a967621855e6add53c5ee4cd405249142d018eea497e5301ebae72e0e42c8", - "line_count": 32, - "symbols": [ - { - "line": 3, - "text": "enum EffectFrameAwaiter {" - }, - { - "line": 6, - "text": "static func first(" - } - ] - }, - { - "path": "prototype/Native/WS2Child.c", - "sha256": "134368aa12dfbbb9ec5a6f60a121c44b52b46bb303d55d73b18d78326d875f47", - "line_count": 167, - "symbols": [ - { - "line": 16, - "text": "struct WS2Child {" - }, - { - "line": 23, - "text": "struct timespec value;" - } - ] - }, - { - "path": "prototype/Native/module.modulemap", - "sha256": "9cac42ba9402e4324e393d07c155c9375e20846e3bca84117460fdd0e6a0db8e", - "line_count": 4, - "symbols": [] - }, - { - "path": "prototype/Private/LockSpaceBridge.swift", - "sha256": "d16128cca2e5b893900e5d5165353724a780e76beddc5ffa79f4ac4a2bf8978f", - "line_count": 75, - "symbols": [ - { - "line": 6, - "text": "final class LockSpaceBridge {" - }, - { - "line": 41, - "text": "func attach(_ panel: NSWindow) -> Bool {" - }, - { - "line": 67, - "text": "func detach(_ panel: NSWindow) {" - } - ] - }, - { - "path": "prototype/Recovery/DurableShadeJournal.swift", - "sha256": "5dbcd013cc44573bfef4b028dae0ca44c75c963d7df131cf20b946a737c366c8", - "line_count": 34, - "symbols": [ - { - "line": 4, - "text": "struct DurableShadeJournal {" - }, - { - "line": 11, - "text": "func load() throws -> [[String: Any]]? {" - }, - { - "line": 22, - "text": "func save(_ entries: [[String: Any]]) throws {" - } - ] - }, - { - "path": "prototype/Recovery/Journal.swift", - "sha256": "5ffdb659b88cba3b72a346192fef9ba0c6a0eb22fad68aebd0681c09eb5b85aa", - "line_count": 235, - "symbols": [ - { - "line": 12, - "text": "func shadeJournalEntries() -> [[String: Any]] {" - }, - { - "line": 20, - "text": "func saveShadeJournalEntries(_ entries: [[String: Any]]) -> Bool {" - }, - { - "line": 32, - "text": "func journalNumber(_ entry: [String: Any], _ key: String) -> Double? {" - }, - { - "line": 39, - "text": "func journalString(_ entry: [String: Any], _ key: String) -> String {" - }, - { - "line": 43, - "text": "func journalID(_ entry: [String: Any]) -> CGWindowID? {" - }, - { - "line": 52, - "text": "func pruneShadeJournal(reason: String) {" - }, - { - "line": 66, - "text": "func recordShadeJournal(id: CGWindowID, win: AXUIElement, hide: HideMethod," - }, - { - "line": 124, - "text": "func recordShadeRecoveryIntent(id: CGWindowID, pid: pid_t, bundleID: String," - }, - { - "line": 157, - "text": "func updateShadeJournal(id: CGWindowID, reason: String," - }, - { - "line": 169, - "text": "func markShadeJournalStage(id: CGWindowID, _ stage: ShadeLifecycleStage," - }, - { - "line": 177, - "text": "func markShadeLifecycle(id: CGWindowID, _ stage: ShadeLifecycleStage," - }, - { - "line": 193, - "text": "func clearShadeJournal(id: CGWindowID) {" - }, - { - "line": 202, - "text": "func syncRestoreJournal(id: CGWindowID, fromOverlayFrame frame: NSRect," - }, - { - "line": 221, - "text": "func journalMatches(_ entry: [String: Any], app: NSRunningApplication," - } - ] - }, - { - "path": "prototype/Recovery/Rescue.swift", - "sha256": "26cc2ce87db65aa2b49a134cbac248a1c69740bb0aadd042ad45631ff1ce2428", - "line_count": 277, - "symbols": [ - { - "line": 10, - "text": "struct OffscreenRescueAction {" - }, - { - "line": 20, - "text": "struct JournalAlphaRestore {" - }, - { - "line": 25, - "text": "struct JournalRescueResult {" - }, - { - "line": 39, - "text": "func isAtWindowShadeParkingSpot(_ pos: CGPoint) -> Bool {" - }, - { - "line": 40, - "text": "func onParkingBand(_ v: CGFloat) -> Bool {" - }, - { - "line": 43, - "text": "func looksLikeWindowAxis(_ v: CGFloat) -> Bool {" - }, - { - "line": 53, - "text": "func collectJournalRescueActions(targetTopLeft: CGPoint," - }, - { - "line": 124, - "text": "func rescueActionVerified(_ action: OffscreenRescueAction) -> Bool {" - }, - { - "line": 137, - "text": "func alphaRestoreVerified(_ restore: JournalAlphaRestore) -> Bool {" - }, - { - "line": 142, - "text": "func pruneRescuedJournalEntries(rescuedIDs: Set) {" - }, - { - "line": 154, - "text": "func collectParkedWindowRescueActions(targetTopLeft: CGPoint," - }, - { - "line": 188, - "text": "func rescueOffscreenWindows(silent: Bool) {" - } - ] - }, - { - "path": "prototype/Support/WS2CompanionCrypto.swift", - "sha256": "d50a35fcb45ba1905fb26a6c3c4f14a7dd450bb8413b13bfcf8429b0a7eed8e8", - "line_count": 120, - "symbols": [ - { - "line": 2, - "text": "// See decisions/01-配对与加密.md for the observed protocol and the missing enrollment gate." - }, - { - "line": 6, - "text": "@MainActor final class WS2CompanionCrypto {" - }, - { - "line": 7, - "text": "enum Failure: Error { case state, expired, malformed, unknownPeer, signature, revoked, closed }" - }, - { - "line": 8, - "text": "struct Peer: Equatable {" - }, - { - "line": 14, - "text": "struct Identity {" - }, - { - "line": 19, - "text": "@MainActor final class VerifiedSession {" - }, - { - "line": 31, - "text": "func close() { transmit = nil; receive = nil; tx.close(); rx.close() }" - }, - { - "line": 32, - "text": "func seal(_ plaintext: Data) throws -> Data {" - }, - { - "line": 42, - "text": "func open(_ frame: WS2CompanionFrame) throws -> Data {" - }, - { - "line": 52, - "text": "private enum State { case fresh, proving, finished, closed }" - }, - { - "line": 68, - "text": "func close() { state = .closed; ephemeral = nil; shared = nil; proofKey = nil; clientEphemeral = nil }" - }, - { - "line": 69, - "text": "private func checkTime() throws { guard clock.now() < deadline else { close(); throw Failure.expired } }" - }, - { - "line": 70, - "text": "private static func derive(_ shared: SharedSecret, salt: String, info: String) -> SymmetricKey {" - }, - { - "line": 73, - "text": "private static func proofNonce(_ value: String) throws -> ChaChaPoly.Nonce {" - }, - { - "line": 78, - "text": "func answerM1(_ tlv: Data) throws -> Data {" - }, - { - "line": 97, - "text": "func answerM3(_ tlv: Data) throws -> (m4: Data, session: VerifiedSession) {" - } - ] - }, - { - "path": "prototype/Support/WS2CompanionTCPTransport.swift", - "sha256": "78bccef841039bf2d4fb5058ae21e01633da6f2e00435eb1a17b9ca2cd273266", - "line_count": 109, - "symbols": [ - { - "line": 7, - "text": "@MainActor final class WS2CompanionTCPTransport {" - }, - { - "line": 24, - "text": "func start() {" - }, - { - "line": 41, - "text": "@discardableResult func enqueue(_ bytes: Data, deadline: Double) -> Bool {" - }, - { - "line": 47, - "text": "private func receive() {" - }, - { - "line": 65, - "text": "private func sendNext() {" - }, - { - "line": 85, - "text": "func setProtocolDeadline(_ deadline: Double) {" - }, - { - "line": 90, - "text": "private func scheduleTimeout() {" - }, - { - "line": 102, - "text": "func close() {" - } - ] - }, - { - "path": "prototype/Support/WS2DuplexProcess.swift", - "sha256": "1efe08a7d6987fdac80d87f345f1d2ce212e6a5dddac3a71e086e247d8ab579a", - "line_count": 248, - "symbols": [ - { - "line": 11, - "text": "@MainActor final class WS2DuplexProcess {" - }, - { - "line": 12, - "text": "enum Failure: Error { case invalid, io(Int32), notRunning }" - }, - { - "line": 13, - "text": "enum End: Equatable { case localStop, eof, processExit, io(Int32), framing, timeout, revoked }" - }, - { - "line": 14, - "text": "struct Termination: Equatable, Sendable { let status: Int32; let wasSignalled: Bool }" - }, - { - "line": 57, - "text": "func start() throws {" - }, - { - "line": 96, - "text": "private func pollChild() {" - }, - { - "line": 120, - "text": "@discardableResult func admit(_ lines: [Data], connection: UUID, deadline: Double," - }, - { - "line": 131, - "text": "@discardableResult func admitWireFrames(_ frames: [Data], connection: UUID, deadline: Double," - }, - { - "line": 143, - "text": "private func armWrite() { if !writeArmed, !stopped { writeArmed = true; writer?.resume() } }" - }, - { - "line": 144, - "text": "private func disarmWrite() { if writeArmed { writeArmed = false; writer?.suspend() } }" - }, - { - "line": 145, - "text": "private func scheduleDeadline() {" - }, - { - "line": 157, - "text": "private func writeReady() {" - }, - { - "line": 183, - "text": "private func readReady(checkChild: Bool = true) {" - }, - { - "line": 205, - "text": "private func readDiagnosticReady() {" - }, - { - "line": 220, - "text": "func clearDiagnostics() { diagnostics?.clear() }" - }, - { - "line": 221, - "text": "private static func writeWithoutSIGPIPE(_ fd: Int32, _ bytes: Data) -> Int {" - }, - { - "line": 236, - "text": "func stop(_ reason: End = .localStop) {" - }, - { - "line": 246, - "text": "// The reaper timer survives protocol closure. A stopped pipe is not reaping evidence." - } - ] - }, - { - "path": "prototype/Support/WS2FocusEffectExecutor.swift", - "sha256": "674a8760579e1eccf401f6c949d6fcf69b74257943fe795b043f255b7c3887bf", - "line_count": 35, - "symbols": [ - { - "line": 3, - "text": "@MainActor protocol WS2FocusMutationPort: AnyObject {" - }, - { - "line": 6, - "text": "func perform(_ operation: WS2FocusEffectPlan.Operation," - }, - { - "line": 10, - "text": "@MainActor final class WS2FocusEffectExecutor {" - }, - { - "line": 16, - "text": "func transition(run: WS2.Token?, windows: [WS2FocusEffectPlan.Window]) throws {" - }, - { - "line": 19, - "text": "func suspend() { plan.setSuspended(true) }" - }, - { - "line": 20, - "text": "func resumeAfterVerifiedUnlock() { plan.setSuspended(false); pump() }" - }, - { - "line": 21, - "text": "func manualChange(_ identity: WS2FocusEffectPlan.Identity) { plan.manualChange(identity); pump() }" - }, - { - "line": 23, - "text": "func end() throws { try transition(run: nil, windows: []) }" - }, - { - "line": 24, - "text": "private func pump() {" - } - ] - }, - { - "path": "prototype/Support/WS2KeychainPeerStorage.swift", - "sha256": "ffe7ecc5a1bbd58497156c645a074506371039f49ceb92bfc2d9b2c6f36a395f", - "line_count": 46, - "symbols": [ - { - "line": 7, - "text": "@MainActor final class WS2KeychainPeerStorage: WS2PeerStorage {" - }, - { - "line": 8, - "text": "struct Failure: Error { let status: OSStatus }" - }, - { - "line": 20, - "text": "func read() throws -> Data? {" - }, - { - "line": 31, - "text": "func replace(_ bytes: Data, creating: Bool) throws {" - } - ] - }, - { - "path": "prototype/Support/WS2LocalLaunchProfile.swift", - "sha256": "34a52b15e0a183c0e0f8d45d999ab15e0f8d1b1998b7fa467fe15a4b1c843a27", - "line_count": 131, - "symbols": [ - { - "line": 10, - "text": "struct WS2LocalLaunchProfile: Sendable {" - }, - { - "line": 11, - "text": "enum Failure: Error { case unsafePath, configurationChanged, externalConfiguration, executableChanged }" - }, - { - "line": 12, - "text": "struct FileIdentity: Equatable, Sendable {" - }, - { - "line": 38, - "text": "static func prepare(projectURL:URL,projectID:UUID,executableURL:URL,root:URL) throws -> Self {" - }, - { - "line": 73, - "text": "func revalidate() throws {" - }, - { - "line": 84, - "text": "private static func identify(_ url:URL) throws -> FileIdentity {" - }, - { - "line": 91, - "text": "private static func privateDirectory(_ url:URL) throws {" - }, - { - "line": 102, - "text": "private static func rejectExternalConfiguration(_ project:WS2OwnedScope.Directory) throws {" - }, - { - "line": 118, - "text": "static func admitsEffectiveConfig(_ response:WireJSON) -> Bool {" - } - ] - }, - { - "path": "prototype/Support/WS2PairSetupCrypto.swift", - "sha256": "6345ec9ff7339c0845f4140beac96577ee1310968d71dab941a0266d315e6fda", - "line_count": 71, - "symbols": [ - { - "line": 3, - "text": "@MainActor protocol WS2SRPPrimitive: AnyObject {" - }, - { - "line": 4, - "text": "func begin(pin: String) throws -> (salt: Data, publicKey: Data)" - }, - { - "line": 6, - "text": "func verify(publicKey: Data, proof: Data) throws -> (serverProof: Data, key: Data)" - }, - { - "line": 7, - "text": "func clear()" - }, - { - "line": 14, - "text": "@MainActor final class WS2PairSetupCrypto: WS2PairSetupEngine {" - }, - { - "line": 15, - "text": "enum Failure: Error { case state, malformed, signature }" - }, - { - "line": 16, - "text": "private enum Phase { case fresh, started, proven, finished }" - }, - { - "line": 27, - "text": "func begin(pin: String) throws -> (salt: Data, publicKey: Data) {" - }, - { - "line": 31, - "text": "func verify(clientPublicKey: Data, proof: Data) throws -> Data {" - }, - { - "line": 38, - "text": "private func derive(_ suffix: String) throws -> SymmetricKey {" - }, - { - "line": 43, - "text": "private func nonce(_ name: String) throws -> ChaChaPoly.Nonce {" - }, - { - "line": 47, - "text": "func finish(encryptedM5: Data) throws -> (identifier: Data, publicKey: Data, encryptedM6: Data) {" - }, - { - "line": 69, - "text": "func clear() { srp.clear(); sessionKey = nil; phase = .finished }" - } - ] - }, - { - "path": "prototype/Support/WS2PairSetupServer.swift", - "sha256": "56ba109e6d1f63c8771cb0788c6c3af4796eed38cea5fe9880f744651c6516b1", - "line_count": 117, - "symbols": [ - { - "line": 5, - "text": "@MainActor protocol WS2PairSetupEngine: AnyObject {" - }, - { - "line": 6, - "text": "func begin(pin: String) throws -> (salt: Data, publicKey: Data)" - }, - { - "line": 7, - "text": "func verify(clientPublicKey: Data, proof: Data) throws -> Data" - }, - { - "line": 10, - "text": "func finish(encryptedM5: Data) throws -> (identifier: Data, publicKey: Data, encryptedM6: Data)" - }, - { - "line": 11, - "text": "func clear()" - }, - { - "line": 14, - "text": "@MainActor final class WS2PairingAdmission {" - }, - { - "line": 15, - "text": "enum Failure: Error { case unavailable, busy, expired }" - }, - { - "line": 27, - "text": "func openByLocalUser(makePIN: () -> String = PairingAttemptWindow.randomPIN) throws -> String {" - }, - { - "line": 38, - "text": "func claim(_ connection: UUID) throws -> String {" - }, - { - "line": 43, - "text": "func isCurrent(_ connection: UUID) -> Bool {" - }, - { - "line": 46, - "text": "func failed(_ connection: UUID) {" - }, - { - "line": 53, - "text": "func succeeded(_ connection: UUID) throws {" - }, - { - "line": 56, - "text": "func cancel() { window.cancel(); displayedPIN = nil; owner = nil /* persistent incomplete marker intentionally survives */ }" - }, - { - "line": 59, - "text": "@MainActor final class WS2PairSetupServer {" - }, - { - "line": 60, - "text": "enum Failure: Error { case sequence, malformed, expired, closed }" - }, - { - "line": 61, - "text": "enum State { case fresh, awaitingM3, awaitingM5, finished, closed }" - }, - { - "line": 72, - "text": "func receive(_ tlv: Data) throws -> Data {" - }, - { - "line": 113, - "text": "func cancel() {" - } - ] - }, - { - "path": "prototype/Support/WS2PeerRepository.swift", - "sha256": "1ee4290d4151defac9a50b741c1128dbd8d6bcb7514cd4535ce39ac84f740b42", - "line_count": 127, - "symbols": [ - { - "line": 4, - "text": "@MainActor protocol WS2PeerStorage: AnyObject {" - }, - { - "line": 5, - "text": "func read() throws -> Data?" - }, - { - "line": 6, - "text": "func replace(_ bytes: Data, creating: Bool) throws" - }, - { - "line": 9, - "text": "@MainActor final class WS2PeerRepository {" - }, - { - "line": 10, - "text": "enum Failure: Error { case unavailable, malformed, conflict, capacity, overflow, denied }" - }, - { - "line": 11, - "text": "struct Peer: Codable, Equatable, Sendable {" - }, - { - "line": 18, - "text": "struct Snapshot: Codable, Equatable, Sendable {" - }, - { - "line": 34, - "text": "func load() throws {" - }, - { - "line": 44, - "text": "func provision(identifier: Data, signingSeed: Data) throws {" - }, - { - "line": 55, - "text": "private static func validate(_ value: Snapshot) throws {" - }, - { - "line": 65, - "text": "private func encode(_ value: Snapshot) throws -> Data {" - }, - { - "line": 70, - "text": "private func mutate(_ body: (inout Snapshot, UInt64) throws -> Void) throws {" - }, - { - "line": 83, - "text": "func beginPairing() throws {" - }, - { - "line": 86, - "text": "func recordFailedAttempt() throws {" - }, - { - "line": 90, - "text": "func clearAttemptsAfterCooldown() throws {" - }, - { - "line": 93, - "text": "func enroll(identifier: Data, publicKey: Data) throws -> Peer {" - }, - { - "line": 106, - "text": "func markVerified(identifier: Data, revision: UInt64) throws {" - }, - { - "line": 113, - "text": "func revoke(identifier: Data) throws {" - }, - { - "line": 122, - "text": "func current(identifier: Data, publicKey: Data, revision: UInt64) -> Bool {" - }, - { - "line": 126, - "text": "func suspend() { blocked = true; onInvalidateAll?() }" - } - ] - }, - { - "path": "prototype/Support/WS2ProjectDirectory.swift", - "sha256": "7a9c30764d3199652eccc46265c4d7afae6c05cf65e1ee2a5be65c73bbd628a2", - "line_count": 26, - "symbols": [ - { - "line": 4, - "text": "enum WS2ProjectDirectory {" - }, - { - "line": 5, - "text": "enum Failure: Error { case notAbsoluteFileURL, notDirectory, missingIdentity }" - }, - { - "line": 6, - "text": "static func read(_ url: URL) throws -> WS2OwnedScope.Directory {" - }, - { - "line": 18, - "text": "static func contains(canonicalRoot root: String, canonicalCandidate candidate: String) -> Bool {" - } - ] - }, - { - "path": "prototype/Window/AXHelpers.swift", - "sha256": "b679b85d9e4e31f1a2f4594a048fba885c89b46bd25395e3fab768c880ab71b6", - "line_count": 255, - "symbols": [ - { - "line": 9, - "text": "enum TrafficAction { case close, minimize, zoom, fullScreen }" - }, - { - "line": 11, - "text": "enum ProxyTrafficLightStyle {" - }, - { - "line": 16, - "text": "struct ProxyTrafficLightConfiguration {" - }, - { - "line": 40, - "text": "func proxyTrafficLightConfiguration(of win: AXUIElement, pid: pid_t) -> ProxyTrafficLightConfiguration {" - }, - { - "line": 73, - "text": "func urlFromAXAttribute(_ win: AXUIElement, _ attr: String) -> URL? {" - }, - { - "line": 90, - "text": "func quickLookReopenURL(for win: AXUIElement) -> URL? {" - }, - { - "line": 102, - "text": "func reopenQuickLookPreview(url: URL) -> Bool {" - }, - { - "line": 116, - "text": "func postSpacebarKey() {" - }, - { - "line": 125, - "text": "func reopenQuickLookFromFinderSelection(pid: pid_t) -> Bool {" - }, - { - "line": 149, - "text": "enum SystemTitlebarDoubleClickAction: Equatable {" - }, - { - "line": 155, - "text": "func systemTitlebarDoubleClickAction() -> SystemTitlebarDoubleClickAction {" - }, - { - "line": 163, - "text": "func systemTitlebarTripleClickDescription() -> String? {" - }, - { - "line": 174, - "text": "enum WindowManagementCapability {" - }, - { - "line": 182, - "text": "func realWindowManagementCapability(_ win: AXUIElement) -> WindowManagementCapability {" - }, - { - "line": 203, - "text": "func trafficLightRects(_ win: AXUIElement, winTopLeft pos: CGPoint, barH: CGFloat) -> [(CGRect, TrafficAction)] {" - }, - { - "line": 216, - "text": "func trafficLightRects(_ rects: [(CGRect, TrafficAction)]," - }, - { - "line": 238, - "text": "func axTitle(_ e: AXUIElement) -> String {" - }, - { - "line": 245, - "text": "func dumpWindow(_ win: AXUIElement) {" - } - ] - }, - { - "path": "prototype/build.sh", - "sha256": "7059bc9f7cf023359899cb35bcb92b3fa934e06f30bfb2f2737bed28a55c493d", - "line_count": 360, - "symbols": [ - { - "line": 73, - "text": "collect_sources() {" - } - ] - } - ] -} diff --git a/tests/archive/part10/sources/code-map.md b/tests/archive/part10/sources/code-map.md deleted file mode 100644 index 9975c546..00000000 --- a/tests/archive/part10/sources/code-map.md +++ /dev/null @@ -1,951 +0,0 @@ -# 实际路径与源码索引 - -仅定位,不证明平台编译或设备行为。SHA属于当前候选;更晚工作区先比较内容。完整符号在code-map.json。 - -## `AGENTS.md` - -SHA256: `0793c499259866d9afac64dec032649fc4f8dad9341db0f4caec4477edc7ae70`,19行。 - - -## `docs/agents-in-notch.md` - -SHA256: `98664f72fa7279b8ecac4674574fa4063a4457f5a286b82cf4faf7ddf44b3b78`,95行。 - - -## `docs/blueprint.md` - -SHA256: `c9f10268752be9c75d6d269de73e58309c94d409a9b7f64233f595a40ff11de9`,88行。 - - -## `docs/conductor-v2.md` - -SHA256: `5c435d7e17bbdec2ba828718d5830721b77dd2e73d21e63c585f92d8a62d0494`,149行。 - - -## `docs/copy-guide.md` - -SHA256: `029858deb8ef6823440e3df738c1e96c0b47b55a8dd5150313c82db1af1ff2b6`,106行。 - - -## `docs/design-system.md` - -SHA256: `65b56799b1c169d2c1b6424ee00e22e5726acfa9253f353142e64bcbec491c62`,829行。 - - -## `docs/device-battery.md` - -SHA256: `655de0eacca269fdf91a946404ccafc493b2cc5fed5cffe925cd002491997358`,42行。 - - -## `docs/direction.md` - -SHA256: `513e4f42d4d9ace6226f112144b6c4bddfa8af9eb32764111ed852bda48c8d60`,200行。 - - -## `docs/dynamic-lock.md` - -SHA256: `1b355f08a3f3cb02b41f4667a64c259cd30e1ea33001a5dd1af6b24c3f70a85b`,117行。 - - -## `docs/face-unlock.md` - -SHA256: `9c191b9a39e43932e0bf8c587a8e0f8d849752bb6f6ef52fe4078322e8c4f59f`,64行。 - - -## `docs/handoff/START-HERE-deepseek.md` - -SHA256: `a0d8c8e82c23678451ad777b844816faaf2c43b5e4c9ebd6cd1d59de821ae5d7`,103行。 - - -## `docs/handoff/deepseek-film.md` - -SHA256: `f935b56ffbb3986db04f9d4489e8dcabe5c3c164e4aa8779d535a95ca34df965`,120行。 - - -## `docs/handoff/deepseek-menu-agents.md` - -SHA256: `f1d69f88f3c1dc6204389ceba794df9a3f1295cc86a6b6043153e599860c34bf`,56行。 - - -## `docs/input-devices.md` - -SHA256: `02bf83893ca3125232a8dcd80ebab1fd265ab6bfe1d96fa949174dee68fcd6ee`,217行。 - - -## `docs/lock-unlock-plan.md` - -SHA256: `59e782cecea525c98dda7033b07c4873bd9be678c244587059a7edcf9e82735d`,282行。 - - -## `docs/menu-bar.md` - -SHA256: `6ba87eb72d428ad59b853cf3e029acde5f3edfa2c4f06cdc056f1b226d778158`,72行。 - - -## `docs/performance.md` - -SHA256: `03a3bd2918a1f58e3bc4ce3dc7d79d74e88ecbbbc620cc2e91576dc3bd5833db`,461行。 - - -## `docs/privacy-page.md` - -SHA256: `f0d41966695d89e893ce3a315e177e1460f414548de16a1d2988a19b1ec78770`,66行。 - - -## `docs/releases/v1.0.16-ledger.md` - -SHA256: `c3b034007fd4b99da063998ee08ba15d1baab3c05e9a46109ef0c5cf9a879323`,70行。 - - -## `prototype/App/AuthorizationService.swift` - -SHA256: `b2787dc3bb4369d687fbcde86e444cedc752f30d0629a2c5468ae646328a2ba8`,37行。 - -- L7: `@MainActor final class AuthorizationService {` -- L28: `func consume(_ grant: AuthorizationGrant, purpose: AuthPurpose, currentTarget: AuthTarget) -> AuthFailure? {` -- L32: `private func observe(_ center: NotificationCenter, _ name: Notification.Name) {` - -## `prototype/App/DeviceBatteryController.swift` - -SHA256: `f91d842f704003420bc783ec477158f66c722c5a09213bd5c6bf7469dff629a3`,119行。 - -- L9: `@MainActor final class DeviceBatteryController {` -- L42: `func start() {` -- L48: `func stop() { source.stop() }` -- L52: `private func connect(_ identity: DeviceIdentity, initial: Bool) {` -- L57: `private func disconnect(_ id: String) {` -- L62: `private func record(_ reading: BatteryReading) {` -- L67: `private func handle(_ events: [DeviceBatteryEvent]) {` -- L92: `private func scheduleFlush() {` -- L100: `private func flushConnected() {` -- L114: `private func persist() {` - -## `prototype/App/DeviceBatteryCopy.swift` - -SHA256: `d8b91913cb5175d3730b1d4e2dd6673613330b68b44fcf9210feaccc78849f37`,42行。 - -- L6: `enum DeviceBatteryCopy {` -- L7: `struct Model {` -- L13: `static func model(productID: Int?) -> Model {` -- L22: `static func connected(_ name: String) -> String { "\(name)已连接" }` -- L23: `static func connected(count: Int) -> String { "\(count) 个设备已连接" }` -- L24: `static func percent(_ value: Int) -> String { "电量 \(value)%" }` -- L26: `static func low(_ name: String) -> String { "\(name)电量低" }` -- L27: `static func lowDetail(_ percent: Int, battery: BatteryKind) -> String {` -- L32: `static func symbol(percent: Int?) -> String {` - -## `prototype/App/FaceObservationSource.swift` - -SHA256: `fe1e1aa7bff0578030af1652c348b0396882037c2d267d439ae97172e9c24a2e`,259行。 - -- L6: `struct FaceCameraDescriptor: Sendable, Hashable { let id: String; let name: String }` -- L8: `struct FaceObservation: Sendable, Equatable {` -- L22: `enum FaceObservationSourceError: Error {` -- L28: `@MainActor final class FaceObservationSource {` -- L36: `static func devices() -> [FaceCameraDescriptor] {` -- L41: `static func startWatchingCameras() { CameraList.shared.start() }` -- L42: `func requestAuthorization() async -> Bool {` -- L45: `func start(deviceID: String, onObservation: @escaping @MainActor (FaceObservation) -> Void) async throws {` -- L73: `private func stopCapture() {` -- L78: `func stop() { stopCapture(); onFailure = nil }` - -## `prototype/App/FocusSession.swift` - -SHA256: `6a8feaa47356c9e6827eb41f3aa81cc972b0f884c518ef5c80716160f3cd8673`,562行。 - -- L7: `func focusSizedWorkSize(originalSize: CGSize, visible: NSRect,` -- L14: `func focusCenteredFrame(pos: CGPoint, size: CGSize,` -- L26: `func focusShelfReservedFrame(on screen: NSScreen) -> NSRect? {` -- L34: `func centerFocusedWindowForFocusMode(_ win: AXUIElement, pid: pid_t) {` -- L57: `func pulledOutFocusFrames(state: ShadeState, draggedFrame: NSRect) -> (overlay: NSRect, restore: NSRect) {` -- L87: `func focusRestoreFrame(fromOverlayFrame frame: NSRect, restoredSize: CGSize) -> NSRect {` -- L94: `func shouldReturnPulledOutOverlayToStack(id: CGWindowID, frame: NSRect) -> Bool {` -- L100: `func restorePulledOutOverlayToStack(id: CGWindowID) -> Bool {` -- L125: `func maybeStageFocusPullOut(id: CGWindowID, frame: NSRect) -> Bool {` -- L173: `func rejoinFocusStackAfterShadeIfNeeded(id: CGWindowID, overlay: NSWindow) {` - -## `prototype/App/FocusTimerHost.swift` - -SHA256: `7aa01c91cb3abf4503ff8eb92a8060efcdfca907b295caa3ab0fde88d264b666`,39行。 - -- L2: `@MainActor final class FocusTimerHost {` -- L16: `func handle(_ event: FocusTimer.Event) {` -- L21: `func configure(preset: FocusTimer.Preset, tuckChatEnabled: Bool) {` -- L26: `func stop() { wake?.cancel(); wake = nil; if revision < .max { revision += 1 } }` -- L27: `private func schedule() {` - -## `prototype/App/FoldCompletion.swift` - -SHA256: `18559db591375242d83406a083b9a18e4bf5dc69de7b8c32c8f3494c31054982`,65行。 - -- L11: `func registerFoldWaiter(id: CGWindowID, completion: @escaping (Bool) -> Void) -> UUID {` -- L21: `func bindFoldWaiters(id: CGWindowID, tokens: [UUID], transaction: UUID) {` -- L28: `func settleFoldWaiter(id: CGWindowID, token: UUID, success: Bool) {` -- L33: `func settleFoldWaiters(id: CGWindowID, transaction: UUID, success: Bool) {` -- L38: `func cancelFoldWaiters(id: CGWindowID, tokens: [UUID]) {` -- L42: `func settleFoldWaiters(id: CGWindowID, tokens: [UUID], success: Bool) {` - -## `prototype/App/FoldTransaction.swift` - -SHA256: `f353846ee708e80dc81e78636f24dd3976d5ec77f1c0f9db0e38f2f675519c3b`,1059行。 - -- L7: `func parkFocusForInactiveCapture() {` -- L22: `func releaseFocusParking(reactivate pid: pid_t?) {` -- L41: `func handOffFocusBeforeHiding(win: AXUIElement, pid: pid_t, id: CGWindowID) -> Bool {` -- L103: `func hideTookEffect(_ hide: HideMethod, win: AXUIElement, pid: pid_t,` -- L108: `func scheduleFoldVerification(id: CGWindowID) {` -- L147: `func revealOverlayAfterVerification(id: CGWindowID, state: ShadeState) {` -- L165: `func rollbackFoldTransaction(id: CGWindowID, expectedTransaction: UUID? = nil) {` -- L190: `func activateApp(pid: pid_t) {` -- L196: `func bringRestoredWindowToFront(_ win: AXUIElement, pid: pid_t, reason: String) {` -- L199: `func attempt(_ label: String) {` - -## `prototype/App/InteractionCoordinator.swift` - -SHA256: `5524bd61193c8e7ca5090b7c38c498f094bdc13a3e48971f3f084b2fb7a0c5b2`,142行。 - -- L5: `final class InteractionCoordinator {` -- L6: `struct Environment { var unlocked: Bool; var displays: Set }` -- L7: `private struct Active { let handle: WS2.LeaseHandle; let layer: WS2.Layer; let deadline: WS2.Instant }` -- L8: `private struct Alert { let first: WS2.Instant; var last: WS2.Instant; let deadline: WS2.Instant }` -- L27: `private func permits(_ r: WS2.LeaseRequest) -> Bool {` -- L35: `private func withdraw(_ reason: WS2.LeaseRevocation) {` -- L40: `private func expire(_ now: WS2.Instant) {` -- L46: `func acquire(_ r: WS2.LeaseRequest, replacing expected: WS2.LeaseHandle? = nil) -> WS2.LeaseDecision {` -- L75: `func isCurrent(_ lease: WS2.LeaseHandle) -> Bool {` -- L81: `func release(_ lease: WS2.LeaseHandle, at now: WS2.Instant) {` - -## `prototype/App/NotchFaceObservations.swift` - -SHA256: `f7f541e11cd13467409c555cae89714bd2017f14033100d9012f5982692aafd2`,133行。 - -- L4: `@MainActor final class NotchFaceObservationController {` -- L29: `func start(cameraID: String) {` -- L71: `private func finish(title: String, detail: String = "可稍后重试", token: UInt64) {` -- L82: `func cancel(restoreFocus: Bool = true) {` -- L100: `@MainActor final class NotchFaceObservationView: NSView, NotchInteractiveContent {` -- L123: `override func layout() {` -- L130: `func update(title: String, detail: String) { self.title.stringValue = title; self.detail.stringValue = detail }` -- L131: `@objc private func cancelRequest() { onCancel?() }` -- L132: `override func cancelOperation(_ sender: Any?) { onCancel?() }` - -## `prototype/App/PeripheralBatterySource.swift` - -SHA256: `149935ed50964a0c77b69551a56551aa2d26ee84e9194e098f3cf61f4ece8d36`,159行。 - -- L14: `final class PeripheralBatterySource: @unchecked Sendable {` -- L15: `struct Peripheral: Sendable {` -- L35: `func start() {` -- L62: `func stop() {` -- L87: `private func drainMatched(_ iterator: io_iterator_t, initialSnapshot: Bool) {` -- L102: `private func drainTerminated(_ iterator: io_iterator_t) {` -- L115: `private func refreshAll() {` -- L119: `private func read(_ service: io_object_t, identity: DeviceIdentity) {` -- L133: `static func identity(of service: io_object_t) -> DeviceIdentity? {` -- L150: `static func intProperty(_ service: io_object_t, _ key: String) -> Int? {` - -## `prototype/App/Reconcile.swift` - -SHA256: `290d8fb4dcb1b14e79620279ff9e30b42e81fbaa86c68678808a5073bd333f04`,209行。 - -- L7: `func updateReconcileTimer() {` -- L25: `func shouldRetryJournalRescue(now: Date) -> Bool {` -- L30: `func sourceWindowLooksUserVisible(state: ShadeState, pos: CGPoint, size: CGSize,` -- L65: `func shouldLogReconcileInvalidCount(_ count: Int) -> Bool {` -- L68: `func sourceWindowMissingShouldCleanup(id: CGWindowID, state: ShadeState) -> Bool {` -- L91: `func reconcileShadedWindows(reason: String) {` -- L153: `func applyReconcileAXSnapshots(_ snapshots: [ReconcileAXSnapshot],` -- L203: `func finishReconcileShadedWindows() {` - -## `prototype/App/ShadeController.swift` - -SHA256: `ffe5d474a28aa43ac12baf5e4a85b1d795494be0df928980fe6b4e69d8bb813f`,891行。 - -- L8: `func retargetToActiveSpaceWindow(pid: pid_t) -> (AXUIElement, CGWindowID)? {` -- L35: `func toggle() {` -- L87: `func performNativeStickiesShade(_ win: AXUIElement) {` -- L104: `func makeShadePlan(win: AXUIElement, pos: CGPoint, size: CGSize,` -- L157: `func resolvedSourceSpaceID(windowID id: CGWindowID,` -- L169: `func shade(_ win: AXUIElement, _ id: CGWindowID,` -- L178: `func admissionCurrent() -> Bool {` -- L184: `func completeFold(success: Bool, transaction: UUID? = nil) {` -- L303: `func installOverlay(_ overlay: NSWindow, mode: ShadeAppearanceMode, previewImage: NSImage?) {` -- L482: `func installInteractiveNativeCollapse(barH: CGFloat) -> Bool {` - -## `prototype/App/WS2AgentSessionView.swift` - -SHA256: `2eb4cc0b0ffd80413aeb0375a2b4973039174218273be6988b5fc1a8f730e53d`,47行。 - -- L3: `@MainActor final class WS2AgentSessionView: NSView, WS2LeaseContent {` -- L20: `func render(_ sessions:[AgentSessions.Session]) {` -- L41: `@objc private func pressed(_ sender:NSButton) {` -- L45: `override func cancelOperation(_ sender:Any?) { onCancel?() }` -- L46: `func revoke() { inputIsCurrent = { false }; render([]); bindings.removeAll() }` - -## `prototype/App/WS2AppRuntime.swift` - -SHA256: `99205e90fd9d99278da55fbfe88924e2100c4ada4223c6d35136da67cf5b6db2`,251行。 - -- L3: `@MainActor final class WS2AppRuntime {` -- L31: `func day(_ date: Date) -> String {` -- L108: `private func setLockReason(_ reason: String, locked: Bool) {` -- L119: `func applicationShouldTerminate() -> NSApplication.TerminateReply {` -- L138: `private func finishQuit(updaterReply:Bool?=nil,childrenReady:Bool=false,failed:Bool=false) {` -- L144: `func openOwned() {` -- L153: `private func openModelPicker() {` -- L192: `func open() {` -- L205: `func refreshFocusSettings() {` -- L210: `func toggleFocus() {` - -## `prototype/App/WS2CodexApprovalHost.swift` - -SHA256: `f400c3354906b3ddb97f7651388468520d91f5eb6796417d014d7753266bf03b`,250行。 - -- L5: `@MainActor final class WS2CodexApprovalHost: WS2OwnedProtocolHost {` -- L36: `func beginProtocol() throws {` -- L40: `func startThread(cwd: String, model: String) throws {` -- L45: `func resumeThread(_ id: String) throws {` -- L49: `func startTurn(text: String, model: String, effort: String) throws {` -- L54: `func steer(text: String, expectedTurn: String) throws {` -- L59: `func interruptTurn() throws {` -- L63: `func receive(_ bytes: Data) {` -- L87: `@discardableResult func present(_ id: WS2.RequestID) -> Bool {` -- L114: `private func confirm(beganAt: WS2.Instant, sequence: UInt64) {` - -## `prototype/App/WS2ConductorView.swift` - -SHA256: `35e1bb2d5b14f59c381aba5969009add1be93e97eb3eeb2005fd1d9607e6e225`,78行。 - -- L3: `@MainActor final class WS2ConductorView: NSView, WS2LeaseContent {` -- L5: `enum Action { case sendDraft(String), discardDraft, confirmCost, stopTurn, leave, session(Int) }` -- L32: `@discardableResult func render(_ state: ConductorNotch) -> Bool {` -- L63: `private func button(_ label:String,_ action:Action) {` -- L67: `@objc private func pressed(_ sender:NSButton) {` -- L76: `override func cancelOperation(_ sender:Any?) { onCancel?() }` -- L77: `func revoke() { buttons.removeAll(); inputIsCurrent = { false }; editor.stringValue = ""; title.stringValue = ""; detail.stringValue = ""; path.path=nil }` - -## `prototype/App/WS2DeviceActionHost.swift` - -SHA256: `e969db6f1d29d4dc2af25afb99a58e90281b395480a704193de53e3b5cf2e5a7`,106行。 - -- L4: `@MainActor final class WS2DeviceActionHost {` -- L35: `func start() { bridge.start() }` -- L37: `private func clear(_ id: UUID) {` -- L41: `@discardableResult func enable(_ id: UUID) -> Bool {` -- L51: `func disable(_ id: UUID) { clear(id); _ = bridge.setEnabled(false, attachment: id) }` -- L52: `func environmentChanged() {` -- L56: `private func receive(_ input: WS2ControllerInput) {` -- L96: `private static func intent(_ name: String) -> WS2SemanticInputRouter.Intent? {` -- L105: `func stop() { for id in Array(contexts.keys) { clear(id) }; bridge.stop() }` - -## `prototype/App/WS2FoldCallbackGuard.swift` - -SHA256: `9f8d8cc688955c493ac17ebde396f59f70892e32c0b78250c78589c007fc63db`,100行。 - -- L5: `func foldCallbackStamp(id: CGWindowID, state: ShadeState) -> WS2FoldCallbackStamp {` -- L13: `func foldWaiterDeliveryStamp(id: CGWindowID, transaction: UUID) -> WS2FoldCallbackStamp? {` -- L21: `func foldCallbackIsCurrent(_ expected: WS2FoldCallbackStamp,` -- L30: `func observeFoldHide(_ hide: HideMethod, win: AXUIElement, pid: pid_t,` -- L68: `func retainUnconfirmedFold(id: CGWindowID, state: ShadeState) {` -- L84: `func receiveFoldAXNotification(routeID: UInt, notification: String) {` -- L96: `func axObservedBoolAttribute(_ win: AXUIElement, _ attribute: String) -> Bool? {` - -## `prototype/App/WS2GameControllerBridge.swift` - -SHA256: `cf257e4e8233d7030b96e5b317d02043024d25f2d03dc27824dd9976394881ee`,186行。 - -- L5: `@MainActor final class WS2GameControllerBridge: WS2ControllerBridge {` -- L9: `@MainActor private final class Entry {` -- L32: `func start() {` -- L52: `@discardableResult func setEnabled(_ enabled: Bool, attachment: UUID) -> Bool {` -- L67: `func environmentChanged() {` -- L80: `func suspendAll() { for e in entries.values { suspend(e) }; publish() }` -- L81: `private func reconcile() {` -- L97: `private func installHandler(_ e: Entry) -> Bool {` -- L108: `private func releaseHandler(_ e: Entry) {` -- L117: `private func sample(_ e: Entry) {` - -## `prototype/App/WS2IslandCoordinator.swift` - -SHA256: `315bf8f9b76ead7600c8829b69c4609bf89d919f3421631b3154aedd13acd91f`,101行。 - -- L3: `@MainActor protocol WS2LeaseContent: NotchInteractiveContent {` -- L6: `func revoke()` -- L8: `@MainActor final class WS2IslandCoordinator {` -- L32: `private static func displayID(_ screen: NSScreen) -> WS2.DisplayID? {` -- L35: `@discardableResult func show(_ content: NSView & WS2LeaseContent, ownerID: String, layer: WS2.Layer = .opened,` -- L60: `func inputHandle(for content: NSView) -> WS2.LeaseHandle? {` -- L65: `func handOffToAuthorization() { dismissed = nil; dismiss() }` -- L66: `func dismiss() { if let handle { leases.release(handle, at: clock.now()) } }` -- L67: `func dismiss(ifShowing content: NSView) { if view === content { dismiss() } }` -- L68: `func handOffToAuthorization(ifShowing content: NSView) -> Bool {` - -## `prototype/App/WS2ModelPickerView.swift` - -SHA256: `1da4c59ec557195a5b03760eb038b2d8fe1ecabb2f733f2c29ab554d8790f73c`,179行。 - -- L4: `@MainActor final class WS2ModelPickerView: NSView, WS2LeaseContent, NSTableViewDataSource, NSTableViewDelegate {` -- L79: `override func viewDidMoveToWindow() {` -- L96: `func sync() {` -- L112: `func renderDevices(_ devices: [WS2ControllerDevice]) {` -- L128: `private func renderHint() {` -- L132: `private func showSelection() {` -- L137: `func numberOfRows(in tableView: NSTableView) -> Int { rows.count }` -- L138: `func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView? {` -- L145: `func tableViewSelectionDidChange(_ notification: Notification) {` -- L149: `@objc private func toggleDevice() {` - -## `prototype/App/WS2OwnedCodexSession+Authorization.swift` - -SHA256: `cd619ed648b81d55565ecf519777681ab4419bd2374eecb1f793c7bf29538266`,18行。 - - -## `prototype/App/WS2OwnedLaunchController.swift` - -SHA256: `302f4b8ad841610a8a471caf79af657a5c8bc5d10e9c0e0a8d954363160a4ed2`,311行。 - -- L4: `/// AgentSessions remain the authorities for protocol state and backend sessions respectively.` -- L5: `@MainActor final class WS2OwnedLaunchController {` -- L6: `enum Phase: Equatable { case idle, checkingVersion, connecting, checkingConfig, signedOut, ready, creatingThread, sending, running, interrupting, completed, failed, stopping, stopped }` -- L7: `private enum Query { case config, account, login, cancelLogin, logout }` -- L8: `private struct Submission { let text:String;let model:String;let effort:String }` -- L9: `private struct Association { let project:WS2OwnedScope.Project;let thread:String }` -- L60: `@discardableResult func editDraft(_ value:String) -> Bool {` -- L63: `@discardableResult func selectProject(_ url:URL) -> Bool {` -- L74: `@discardableResult func selectExecutable(_ url:URL) -> Bool {` -- L78: `@discardableResult func launch(consent:Bool,diagnostics:Bool=false) -> Bool {` - -## `prototype/App/WS2OwnedSessionView.swift` - -SHA256: `d3360e975925f28b112b32d4c51b9a75d195a507629793e5e5b3d3eed006434f`,154行。 - -- L4: `@MainActor final class WS2OwnedSessionView: NSView, WS2LeaseContent, NSTextViewDelegate {` -- L45: `func row(_ views:[NSView]) -> NSStackView { let r=NSStackView(views:views);r.orientation = .horizontal;r.spacing=8;return r }` -- L75: `private func configure(_ text:NSTextView,editable:Bool) {` -- L82: `func scheduleRender() {` -- L89: `func render() {` -- L117: `func textDidChange(_ notification:Notification) {` -- L121: `private func choose(directory:Bool) {` -- L132: `@objc private func pickProject() { choose(directory:true) }` -- L133: `@objc private func pickExecutable() { choose(directory:false) }` -- L134: `@objc private func consentChanged() { render() }` - -## `prototype/Core/AgentSessions.swift` - -SHA256: `218b3910959c810d5662d608b8ab9560d5232cf5e69930c330b400c940c65d7c`,260行。 - -- L4: `struct AgentSessions: Sendable {` -- L5: `enum Control: Sendable { case observed, owned }` -- L6: `enum Status: Equatable, Sendable { case idle, running, waiting, completed, failed, stale, disconnected }` -- L7: `struct Session: Sendable {` -- L17: `enum Event: Sendable {` -- L23: `enum Effect: Equatable, Sendable {` -- L28: `private struct Pending: Sendable {` -- L33: `enum TypedAction: Sendable {` -- L37: `static func risk(of action: TypedAction) -> WS2.Risk {` -- L64: `func request(for key: WS2.ApprovalKey) -> WS2.ApprovalRequest? { suspended ? nil : pending[key]?.request }` - -## `prototype/Core/AuthorizationLedger.swift` - -SHA256: `495d1ce534fe560c8c0fe43ee6fd2bb5e9e24b7f82b172978ffdd62143985676`,157行。 - -- L16: `enum AuthFailure: Error, Equatable, Sendable {` -- L21: `protocol AuthRandomSource {` -- L22: `func bytes(_ count: Int) -> [UInt8]?` -- L25: `struct SystemAuthRandom: AuthRandomSource {` -- L26: `func bytes(_ count: Int) -> [UInt8]? {` -- L33: `@MainActor final class AuthorizationGrant {` -- L34: `enum State: Equatable { case live, consumed, revoked(AuthFailure) }` -- L53: `@MainActor final class AuthorizationLedger {` -- L55: `nonisolated static func monotonicNow() -> UInt64 { clock_gettime_nsec_np(CLOCK_MONOTONIC_RAW) }` -- L83: `func begin(target: AuthTarget, ttl: UInt64) -> Result {` - -## `prototype/Core/CodexWire.swift` - -SHA256: `ed2e3e209bb3ff42c6ba8273b323f2b6f70bdf48daa4cc21f91060d9bfebecf3`,271行。 - -- L3: `indirect enum WireJSON: Codable, Equatable, Sendable {` -- L15: `func encode(to encoder: any Encoder) throws {` -- L33: `struct CodexWire: Sendable {` -- L34: `enum Failure: Error { case oversized, closed, malformed, notReady, unsupported, stale, capacity }` -- L35: `enum State: Equatable, Sendable { case fresh, initializing, listingModels, ready, closed }` -- L36: `struct Pending: Sendable { let method: String; let deadline: WS2.Instant }` -- L37: `enum Event: Equatable, Sendable {` -- L42: `static let maximumFrame = 1_048_576 // Recommendation: bounded metadata stream; not a measured protocol maximum.` -- L59: `mutating func drain() -> [Data] { defer { outbound.removeAll(keepingCapacity:true) }; return outbound }` -- L60: `private mutating func send(_ value: WireJSON) throws {` - -## `prototype/Core/ConductorCapabilities.swift` - -SHA256: `4494697451f96b08ea1c1bf92fbb83ec9539055ac06937edef392558c20c9af0`,101行。 - -- L5: `struct ConductorCapabilities: Equatable, Sendable {` -- L17: `enum Resolution: Equatable, Sendable {` -- L21: `func resolve(_ requested: ConductorEffort, keeping current: String) -> Resolution {` -- L37: `func accepts(_ config: WS2.ExecutionConfig) -> Bool {` -- L49: `struct ConductorModelSlots: Sendable {` -- L55: `enum Selection: Equatable, Sendable {` -- L59: `func select(_ number: Int, in completeSnapshot: [ConductorCapabilities]) -> Selection {` -- L69: `struct ConductorCostCandidate: Equatable, Sendable {` -- L76: `struct ConductorCostVault: Sendable {` -- L77: `struct Ticket: Equatable, Sendable {` - -## `prototype/Core/ConductorSession.swift` - -SHA256: `e426c0b1a19fd8bea29528f707371decf0ac65459e3c85dbd6d6e2f94e7f2e7d`,646行。 - -- L5: `enum ConductorNotch: Equatable, Sendable {` -- L50: `struct ConductorSession: Sendable {` -- L51: `struct SessionChoice: Equatable, Sendable { let context: WS2.Context; let label: String; let running: Bool }` -- L52: `enum TouchPhase: Sendable { case begin, move, end, cancel }` -- L53: `enum Reconciliation: Sendable {` -- L56: `enum Event: Sendable {` -- L80: `enum Effect: Equatable, Sendable {` -- L93: `struct Draft: Equatable, Sendable { let text: String; let digest: WS2.Digest; let revision: UInt64; let owner: WS2.Context }` -- L94: `private struct Press: Sendable { let id: UInt64; let beganAt: WS2.Instant; let sequence: UInt64; var consumed = false }` -- L95: `private struct Stroke: Sendable { let beganAt: WS2.Instant; let sequence: UInt64; var points: [ConductorPoint] }` - -## `prototype/Core/Contracts.swift` - -SHA256: `12fffc2e5cf207aa0ca6b4c371f28b9eec8c2b374b5e1a06d8943878891b2420`,327行。 - -- L6: `enum WS2 {` -- L8: `struct Instant: Hashable, Comparable, Sendable, Codable {` -- L20: `func adding(_ duration: UInt64) -> Self {` -- L25: `func elapsed(since earlier: Self) -> UInt64 {` -- L32: `enum Duration {` -- L39: `struct TimeGate: Sendable {` -- L41: `mutating func accept(_ now: Instant) -> Bool {` -- L50: `struct EventGate: Sendable {` -- L53: `mutating func accept(sequence: UInt64, at now: Instant) -> Bool {` -- L62: `enum TokenDomain: String, Hashable, Sendable, Codable { case unspecified, focusTimer, presenceLock, conductor, interaction }` - -## `prototype/Core/DeviceBattery.swift` - -SHA256: `7777539671486437ff4e26398663d7187b31401405d866362efde3caadc473e3`,177行。 - -- L16: `enum DeviceKind: String, Codable, Sendable {` -- L20: `enum BatteryComponent: String, Codable, Sendable {` -- L25: `enum ChargingState: String, Codable, Sendable {` -- L29: `enum BatteryKind: String, Codable, Sendable {` -- L33: `struct DeviceIdentity: Equatable, Sendable {` -- L41: `struct BatteryReading: Equatable, Sendable {` -- L56: `static func validPercent(_ raw: Int?) -> Int? {` -- L62: `enum BatteryFreshness: Equatable, Sendable { case currentEnough, aged, unknown }` -- L64: `enum DeviceBatteryEvent: Equatable, Sendable {` -- L74: `struct DeviceBatteryBook: Sendable {` - -## `prototype/Core/HIDMappingTransaction.swift` - -SHA256: `48edb2bb043ddd6cf18285f422ae90e4f75b258ee75efd9c6976fd7ef973a3d6`,30行。 - -- L3: `struct HIDMappingTransaction: Sendable {` -- L4: `enum Failure: Error { case nonUniqueDevice, stale, notOwned, malformed }` -- L5: `struct Device: Equatable, Sendable { let registryID: UInt64; let vendor: Int; let product: Int }` -- L6: `struct Write: Equatable, Sendable { let device: Device; let expected: Data; let replacement: Data }` -- L8: `mutating func prepare(device: Device, matches: [Device], current: Data, replacement: Data) throws -> Write {` -- L16: `mutating func commit(_ write: Write, readback: Data) throws {` -- L20: `func restore(device: Device, current: Data) throws -> Write {` -- L25: `mutating func restored(_ write: Write, readback: Data) throws {` - -## `prototype/Core/NotchActivities.swift` - -SHA256: `e5c6c6fc339b58175672abea1322b5aeaa0c526ab850a4a0b0d7c48280f5c10b`,266行。 - -- L13: `enum NotchActivityAction: String {` -- L18: `enum NotchActivityKind: String, Codable, Sendable, CaseIterable {` -- L40: `struct NotchActivity: Equatable, Sendable {` -- L88: `struct NotchActivityStore {` -- L137: `mutating func upsert(_ activity: NotchActivity, now: Double) -> Bool {` -- L170: `mutating func end(id: String, generation: UInt64, now: Double) -> Bool {` -- L182: `mutating func prune(now: Double) {` -- L196: `mutating func select(id: String) -> Bool {` -- L203: `mutating func moveSelection(by delta: Int) {` -- L218: `private static func validNow(_ now: Double) -> Bool {` - -## `prototype/Core/PairingAttemptWindow.swift` - -SHA256: `262dc840763d31105c16f5edda749a2e11ea15064158884c825109fbcd3450e3`,39行。 - -- L3: `struct PairingAttemptWindow: Sendable {` -- L4: `enum Failure: Error { case badTime, coolingDown, alreadyOpen, invalidPIN, unavailable }` -- L17: `mutating func open(at now: Double, makePIN: () -> String) throws -> String {` -- L26: `func mayAttempt(at now: Double) -> Bool {` -- L29: `mutating func failed(at now: Double) throws {` -- L34: `mutating func finish(at now: Double) throws {` -- L37: `mutating func cancel() { deadline = nil; pin = nil } // 取消不能抹去冷却。` -- L38: `static func randomPIN() -> String { String(format:"%04d",Int.random(in:0...9999)) }` - -## `prototype/Core/PairingTLV.swift` - -SHA256: `32495002c85cc927a8c31cd5699ff517f070107120c111919e9b35c1df2f3845`,39行。 - -- L3: `enum PairingTLV {` -- L4: `enum Failure: Error { case oversized, truncated, duplicate, invalidFragment, invalidType }` -- L6: `static func decode(_ data: Data, allowed: Set) throws -> [UInt8:Data] {` -- L24: `static func encode(_ entries: [(UInt8,Data)]) throws -> Data {` - -## `prototype/Core/PresenceLock.swift` - -SHA256: `7099b9f42bc09683ac35dd345020a58429bd2e9e19db4823082df19ad7540188`,295行。 - -- L4: `struct PresenceLock: Sendable {` -- L5: `enum Device: String, Hashable, Sendable { case phone, watch }` -- L6: `enum Status: Equatable, Sendable { case unknown, connecting, present, away }` -- L7: `enum LockState: Sendable { case unknown, unlocked, locked }` -- L8: `enum Reason: Equatable, Sendable { case devices, camera }` -- L9: `enum Phase: Equatable, Sendable {` -- L13: `struct Configuration: Sendable {` -- L20: `enum Event: Sendable {` -- L36: `enum Effect: Equatable, Sendable {` -- L43: `private struct Probe: Sendable { let id: UInt64; let deadline: WS2.Instant }` - -## `prototype/Core/RemoteMode.swift` - -SHA256: `559d83d94615574613c9ec13a92ddf9395a55157c21f3eaff0e60b61bb48b3d7`,89行。 - -- L4: `struct RemoteMode: Sendable {` -- L5: `enum Mode: String, Equatable, Sendable { case remote, conductor }` -- L6: `enum Effect: Equatable, Sendable {` -- L13: `private struct Press: Sendable { let id: UInt64; var consumed = false }` -- L20: `mutating func setEnabled(_ value: Bool) -> [Effect] {` -- L26: `mutating func handle(_ event: WS2.ButtonEvent) -> [Effect] {` -- L72: `private func short(_ button: WS2.Button) -> [Effect] {` - -## `prototype/Core/SessionLockState.swift` - -SHA256: `1f92f697f9a7c1b5add7c4842496b86d4e65b93f2985e10f08ba3662a82ebe75`,16行。 - -- L5: `enum SessionLockState: Equatable {` -- L8: `static func resolve(locked: Bool?, onConsole: Bool?, loginDone: Bool?, dictionaryPresent: Bool) -> Self {` - -## `prototype/Core/WS2CompanionFrame.swift` - -SHA256: `2ecb698bdf16965242836f132a7bc801d0ac7db7b488abc0d5a1b878a4c0fabd`,59行。 - -- L3: `struct WS2CompanionFrame: Equatable, Sendable {` -- L4: `enum Failure: Error { case closed, oversized, unsupportedType, invalidLength, exhausted }` -- L5: `static let maximumPayload = 65_536 // local cap, NOT the 24-bit protocol maximum` -- L9: `static func header(type: UInt8, count: Int) throws -> Data {` -- L14: `func encoded() throws -> Data { try Self.header(type: type, count: payload.count) + payload }` -- L15: `struct Decoder: Sendable {` -- L18: `mutating func close() { closed = true; bytes.removeAll(keepingCapacity: false) }` -- L20: `mutating func feed(_ input: Data) throws -> [WS2CompanionFrame] {` -- L48: `struct WS2CompanionCounter: Sendable {` -- L52: `mutating func take() throws -> Data {` - -## `prototype/Core/WS2ConnectionBudget.swift` - -SHA256: `f225317ecabd3143c7c40603ed7a1c2bb93f19f083c59722a6bddfc409be9cd2`,74行。 - -- L4: `struct WS2ConnectionBudget: Sendable {` -- L5: `struct Handle: Hashable, Sendable { let generation: UUID; let serial: UInt64 }` -- L6: `enum Handshake: Sendable { case pairSetup, pairVerify }` -- L7: `struct Peer: Hashable, Sendable { let id: String; let revision: UInt64 }` -- L8: `private struct Entry: Sendable { let deadline: WS2.Instant; var peer: Peer?; var queued: Int = 0 }` -- L23: `mutating func expire(at now: WS2.Instant) -> [Handle] {` -- L31: `mutating func admit(_ mode: Handshake, at now: WS2.Instant, locallyOpenedPairing: Bool) -> Handle? {` -- L43: `@discardableResult mutating func promote(_ handle: Handle, peer: Peer, at now: WS2.Instant) -> Bool {` -- L49: `func isCurrent(_ handle: Handle, peer: Peer?, at now: WS2.Instant) -> Bool {` -- L53: `@discardableResult mutating func reserve(_ bytes: Int, for handle: Handle, at now: WS2.Instant) -> Bool {` - -## `prototype/Core/WS2FocusEffectPlan.swift` - -SHA256: `60ccb717e3641f20e1fc499dc1e432ba37493e3c4abe8e28c73b2ebc19419829`,85行。 - -- L4: `struct WS2FocusEffectPlan: Sendable {` -- L7: `struct Window: Equatable, Sendable { let identity: Identity; let revision: UInt64 }` -- L8: `enum Kind: Equatable, Sendable { case tuck(Window, WS2.Token, UInt64), restore(Receipt) }` -- L9: `struct Operation: Equatable, Sendable { let id: UUID; let kind: Kind }` -- L10: `enum Outcome: Sendable { case completed(revision: UInt64), unchanged, userChanged, unknown }` -- L11: `enum Failure: Error { case invalid, capacity, overflow, unexpectedCompletion }` -- L24: `mutating func transition(run: WS2.Token?, windows: [Window]) throws {` -- L31: `mutating func setSuspended(_ value: Bool) { suspended = value }` -- L32: `mutating func manualChange(_ identity: Identity) {` -- L38: `private static func identity(_ kind: Kind) -> Identity {` - -## `prototype/Core/WS2FocusWindowOwnership.swift` - -SHA256: `69a0b9a82fd67c318d92b4bcedebd6f980b094f24b37197758fe1cf85f5ab3c7`,27行。 - -- L3: `struct WS2FocusWindowOwnership: Sendable {` -- L4: `struct Identity: Hashable, Sendable { let pid: Int32; let processStart: UInt64; let windowID: UInt32; let windowGeneration: UInt64 }` -- L5: `struct Receipt: Equatable, Sendable {` -- L13: `mutating func record(_ receipt: Receipt, didComplete: Bool) -> Bool {` -- L18: `mutating func takeForRestore(_ id: Identity, run: WS2.Token, effectGeneration: UInt64, liveRevision: UInt64) -> Receipt? {` -- L24: `mutating func manualChange(_ id: Identity) { owned[id] = nil }` -- L25: `mutating func clear() { owned.removeAll() }` - -## `prototype/Core/WS2FoldCallbackStamp.swift` - -SHA256: `50e53418e04733bbe0421c49533bd7e87943f25707f7404bedf188a4ed4543de`,39行。 - -- L5: `struct WS2FoldCallbackStamp: Equatable, Sendable {` -- L15: `func accepts(current: Self, now: TimeInterval, unlocked: Bool,` -- L29: `struct WS2FoldObserverRoute: Equatable, Sendable {` -- L36: `func ws2ObservedBoolean(_ raw: CFTypeRef?) -> Bool? {` - -## `prototype/Core/WS2SelectionModel.swift` - -SHA256: `c8fb3c0ac6564970d2daedee4d4708799ef0014a94a7bb22b99f18a85d86cf4c`,50行。 - -- L4: `struct WS2SelectionModel: Sendable {` -- L5: `struct Item: Equatable, Sendable { let id: String; let enabled: Bool }` -- L6: `struct Activation: Equatable, Sendable { let revision: UInt64; let serial: UInt64; let itemID: String }` -- L7: `enum Failure: Error { case invalidSnapshot, exhausted }` -- L14: `mutating func replace(_ next: [Item]) throws {` -- L25: `@discardableResult mutating func move(_ direction: Int, expectedRevision: UInt64) -> Bool {` -- L34: `@discardableResult mutating func select(id: String, expectedRevision: UInt64) -> Bool {` -- L38: `mutating func reserveActivation(expectedRevision: UInt64) -> Activation? {` -- L44: `mutating func consume(_ value: Activation) -> String? {` -- L49: `mutating func revoke() { pending = nil; items = []; selectedID = nil; if revision < .max { revision += 1 } else { exhausted = true } }` - -## `prototype/Core/WS2StrictJSON.swift` - -SHA256: `3c1edb48065c85d7b0fbed12ac8299df4d1931abecfe53019f9ea9cabdc9bb0d`,99行。 - -- L5: `struct WS2StrictJSON {` -- L6: `enum Failure: Error, Equatable { case syntax, duplicateKey, depth, nodes, size }` -- L7: `static func validate(_ data: Data, maximumBytes: Int = 1_048_576,` -- L15: `private struct Parser {` -- L19: `mutating func whitespace() { while let c=current, [9,10,13,32].contains(c) { index += 1 } }` -- L20: `mutating func expect(_ c:UInt8) throws { guard current == c else { throw Failure.syntax }; index += 1 }` -- L21: `mutating func node() throws { guard remaining > 0 else { throw Failure.nodes }; remaining -= 1 }` -- L22: `mutating func value(_ depth:Int) throws {` -- L53: `mutating func literal(_ text:[UInt8]) throws { for byte in text { try expect(byte) } }` -- L54: `func digit(_ c:UInt8?) -> Bool { c.map { (48...57).contains($0) } ?? false }` - -## `prototype/Core/WS2VisibleListInput.swift` - -SHA256: `919b37b1add050fa65660fa70127a8dc131e659675ebedf791b86277d5acf425`,70行。 - -- L4: `@MainActor final class WS2VisibleListInput {` -- L14: `func replace(_ items: [WS2SelectionModel.Item], selectedID: String?) throws {` -- L20: `func bind(_ context: WS2SemanticInputRouter.Context?) {` -- L24: `@discardableResult func select(_ id: String) -> Bool {` -- L30: `@discardableResult func prepare(_ ticket: WS2SemanticInputRouter.Ticket) -> Bool {` -- L39: `func cancel(context: WS2SemanticInputRouter.Context, presses: [UInt64]) {` -- L43: `func cancelAll() {` -- L48: `@discardableResult func execute(_ ticket: WS2SemanticInputRouter.Ticket) -> Bool {` -- L69: `func revoke() { ready = false; context = nil; prepared = nil; selection.revoke(); onArmed?(nil) }` - -## `prototype/Effects/EffectFrameAwaiter.swift` - -SHA256: `9c7a967621855e6add53c5ee4cd405249142d018eea497e5301ebae72e0e42c8`,32行。 - -- L3: `enum EffectFrameAwaiter {` -- L6: `static func first(` - -## `prototype/Native/WS2Child.c` - -SHA256: `134368aa12dfbbb9ec5a6f60a121c44b52b46bb303d55d73b18d78326d875f47`,167行。 - -- L16: `struct WS2Child {` -- L23: `struct timespec value;` - -## `prototype/Native/module.modulemap` - -SHA256: `9cac42ba9402e4324e393d07c155c9375e20846e3bca84117460fdd0e6a0db8e`,4行。 - - -## `prototype/Private/LockSpaceBridge.swift` - -SHA256: `d16128cca2e5b893900e5d5165353724a780e76beddc5ffa79f4ac4a2bf8978f`,75行。 - -- L6: `final class LockSpaceBridge {` -- L41: `func attach(_ panel: NSWindow) -> Bool {` -- L67: `func detach(_ panel: NSWindow) {` - -## `prototype/Recovery/DurableShadeJournal.swift` - -SHA256: `5dbcd013cc44573bfef4b028dae0ca44c75c963d7df131cf20b946a737c366c8`,34行。 - -- L4: `struct DurableShadeJournal {` -- L11: `func load() throws -> [[String: Any]]? {` -- L22: `func save(_ entries: [[String: Any]]) throws {` - -## `prototype/Recovery/Journal.swift` - -SHA256: `5ffdb659b88cba3b72a346192fef9ba0c6a0eb22fad68aebd0681c09eb5b85aa`,235行。 - -- L12: `func shadeJournalEntries() -> [[String: Any]] {` -- L20: `func saveShadeJournalEntries(_ entries: [[String: Any]]) -> Bool {` -- L32: `func journalNumber(_ entry: [String: Any], _ key: String) -> Double? {` -- L39: `func journalString(_ entry: [String: Any], _ key: String) -> String {` -- L43: `func journalID(_ entry: [String: Any]) -> CGWindowID? {` -- L52: `func pruneShadeJournal(reason: String) {` -- L66: `func recordShadeJournal(id: CGWindowID, win: AXUIElement, hide: HideMethod,` -- L124: `func recordShadeRecoveryIntent(id: CGWindowID, pid: pid_t, bundleID: String,` -- L157: `func updateShadeJournal(id: CGWindowID, reason: String,` -- L169: `func markShadeJournalStage(id: CGWindowID, _ stage: ShadeLifecycleStage,` - -## `prototype/Recovery/Rescue.swift` - -SHA256: `26cc2ce87db65aa2b49a134cbac248a1c69740bb0aadd042ad45631ff1ce2428`,277行。 - -- L10: `struct OffscreenRescueAction {` -- L20: `struct JournalAlphaRestore {` -- L25: `struct JournalRescueResult {` -- L39: `func isAtWindowShadeParkingSpot(_ pos: CGPoint) -> Bool {` -- L40: `func onParkingBand(_ v: CGFloat) -> Bool {` -- L43: `func looksLikeWindowAxis(_ v: CGFloat) -> Bool {` -- L53: `func collectJournalRescueActions(targetTopLeft: CGPoint,` -- L124: `func rescueActionVerified(_ action: OffscreenRescueAction) -> Bool {` -- L137: `func alphaRestoreVerified(_ restore: JournalAlphaRestore) -> Bool {` -- L142: `func pruneRescuedJournalEntries(rescuedIDs: Set) {` - -## `prototype/Support/WS2CompanionCrypto.swift` - -SHA256: `d50a35fcb45ba1905fb26a6c3c4f14a7dd450bb8413b13bfcf8429b0a7eed8e8`,120行。 - -- L2: `// See decisions/01-配对与加密.md for the observed protocol and the missing enrollment gate.` -- L6: `@MainActor final class WS2CompanionCrypto {` -- L7: `enum Failure: Error { case state, expired, malformed, unknownPeer, signature, revoked, closed }` -- L8: `struct Peer: Equatable {` -- L14: `struct Identity {` -- L19: `@MainActor final class VerifiedSession {` -- L31: `func close() { transmit = nil; receive = nil; tx.close(); rx.close() }` -- L32: `func seal(_ plaintext: Data) throws -> Data {` -- L42: `func open(_ frame: WS2CompanionFrame) throws -> Data {` -- L52: `private enum State { case fresh, proving, finished, closed }` - -## `prototype/Support/WS2CompanionTCPTransport.swift` - -SHA256: `78bccef841039bf2d4fb5058ae21e01633da6f2e00435eb1a17b9ca2cd273266`,109行。 - -- L7: `@MainActor final class WS2CompanionTCPTransport {` -- L24: `func start() {` -- L41: `@discardableResult func enqueue(_ bytes: Data, deadline: Double) -> Bool {` -- L47: `private func receive() {` -- L65: `private func sendNext() {` -- L85: `func setProtocolDeadline(_ deadline: Double) {` -- L90: `private func scheduleTimeout() {` -- L102: `func close() {` - -## `prototype/Support/WS2DuplexProcess.swift` - -SHA256: `1efe08a7d6987fdac80d87f345f1d2ce212e6a5dddac3a71e086e247d8ab579a`,248行。 - -- L11: `@MainActor final class WS2DuplexProcess {` -- L12: `enum Failure: Error { case invalid, io(Int32), notRunning }` -- L13: `enum End: Equatable { case localStop, eof, processExit, io(Int32), framing, timeout, revoked }` -- L14: `struct Termination: Equatable, Sendable { let status: Int32; let wasSignalled: Bool }` -- L57: `func start() throws {` -- L96: `private func pollChild() {` -- L120: `@discardableResult func admit(_ lines: [Data], connection: UUID, deadline: Double,` -- L131: `@discardableResult func admitWireFrames(_ frames: [Data], connection: UUID, deadline: Double,` -- L143: `private func armWrite() { if !writeArmed, !stopped { writeArmed = true; writer?.resume() } }` -- L144: `private func disarmWrite() { if writeArmed { writeArmed = false; writer?.suspend() } }` - -## `prototype/Support/WS2FocusEffectExecutor.swift` - -SHA256: `674a8760579e1eccf401f6c949d6fcf69b74257943fe795b043f255b7c3887bf`,35行。 - -- L3: `@MainActor protocol WS2FocusMutationPort: AnyObject {` -- L6: `func perform(_ operation: WS2FocusEffectPlan.Operation,` -- L10: `@MainActor final class WS2FocusEffectExecutor {` -- L16: `func transition(run: WS2.Token?, windows: [WS2FocusEffectPlan.Window]) throws {` -- L19: `func suspend() { plan.setSuspended(true) }` -- L20: `func resumeAfterVerifiedUnlock() { plan.setSuspended(false); pump() }` -- L21: `func manualChange(_ identity: WS2FocusEffectPlan.Identity) { plan.manualChange(identity); pump() }` -- L23: `func end() throws { try transition(run: nil, windows: []) }` -- L24: `private func pump() {` - -## `prototype/Support/WS2KeychainPeerStorage.swift` - -SHA256: `ffe7ecc5a1bbd58497156c645a074506371039f49ceb92bfc2d9b2c6f36a395f`,46行。 - -- L7: `@MainActor final class WS2KeychainPeerStorage: WS2PeerStorage {` -- L8: `struct Failure: Error { let status: OSStatus }` -- L20: `func read() throws -> Data? {` -- L31: `func replace(_ bytes: Data, creating: Bool) throws {` - -## `prototype/Support/WS2LocalLaunchProfile.swift` - -SHA256: `34a52b15e0a183c0e0f8d45d999ab15e0f8d1b1998b7fa467fe15a4b1c843a27`,131行。 - -- L10: `struct WS2LocalLaunchProfile: Sendable {` -- L11: `enum Failure: Error { case unsafePath, configurationChanged, externalConfiguration, executableChanged }` -- L12: `struct FileIdentity: Equatable, Sendable {` -- L38: `static func prepare(projectURL:URL,projectID:UUID,executableURL:URL,root:URL) throws -> Self {` -- L73: `func revalidate() throws {` -- L84: `private static func identify(_ url:URL) throws -> FileIdentity {` -- L91: `private static func privateDirectory(_ url:URL) throws {` -- L102: `private static func rejectExternalConfiguration(_ project:WS2OwnedScope.Directory) throws {` -- L118: `static func admitsEffectiveConfig(_ response:WireJSON) -> Bool {` - -## `prototype/Support/WS2PairSetupCrypto.swift` - -SHA256: `6345ec9ff7339c0845f4140beac96577ee1310968d71dab941a0266d315e6fda`,71行。 - -- L3: `@MainActor protocol WS2SRPPrimitive: AnyObject {` -- L4: `func begin(pin: String) throws -> (salt: Data, publicKey: Data)` -- L6: `func verify(publicKey: Data, proof: Data) throws -> (serverProof: Data, key: Data)` -- L7: `func clear()` -- L14: `@MainActor final class WS2PairSetupCrypto: WS2PairSetupEngine {` -- L15: `enum Failure: Error { case state, malformed, signature }` -- L16: `private enum Phase { case fresh, started, proven, finished }` -- L27: `func begin(pin: String) throws -> (salt: Data, publicKey: Data) {` -- L31: `func verify(clientPublicKey: Data, proof: Data) throws -> Data {` -- L38: `private func derive(_ suffix: String) throws -> SymmetricKey {` - -## `prototype/Support/WS2PairSetupServer.swift` - -SHA256: `56ba109e6d1f63c8771cb0788c6c3af4796eed38cea5fe9880f744651c6516b1`,117行。 - -- L5: `@MainActor protocol WS2PairSetupEngine: AnyObject {` -- L6: `func begin(pin: String) throws -> (salt: Data, publicKey: Data)` -- L7: `func verify(clientPublicKey: Data, proof: Data) throws -> Data` -- L10: `func finish(encryptedM5: Data) throws -> (identifier: Data, publicKey: Data, encryptedM6: Data)` -- L11: `func clear()` -- L14: `@MainActor final class WS2PairingAdmission {` -- L15: `enum Failure: Error { case unavailable, busy, expired }` -- L27: `func openByLocalUser(makePIN: () -> String = PairingAttemptWindow.randomPIN) throws -> String {` -- L38: `func claim(_ connection: UUID) throws -> String {` -- L43: `func isCurrent(_ connection: UUID) -> Bool {` - -## `prototype/Support/WS2PeerRepository.swift` - -SHA256: `1ee4290d4151defac9a50b741c1128dbd8d6bcb7514cd4535ce39ac84f740b42`,127行。 - -- L4: `@MainActor protocol WS2PeerStorage: AnyObject {` -- L5: `func read() throws -> Data?` -- L6: `func replace(_ bytes: Data, creating: Bool) throws` -- L9: `@MainActor final class WS2PeerRepository {` -- L10: `enum Failure: Error { case unavailable, malformed, conflict, capacity, overflow, denied }` -- L11: `struct Peer: Codable, Equatable, Sendable {` -- L18: `struct Snapshot: Codable, Equatable, Sendable {` -- L34: `func load() throws {` -- L44: `func provision(identifier: Data, signingSeed: Data) throws {` -- L55: `private static func validate(_ value: Snapshot) throws {` - -## `prototype/Support/WS2ProjectDirectory.swift` - -SHA256: `7a9c30764d3199652eccc46265c4d7afae6c05cf65e1ee2a5be65c73bbd628a2`,26行。 - -- L4: `enum WS2ProjectDirectory {` -- L5: `enum Failure: Error { case notAbsoluteFileURL, notDirectory, missingIdentity }` -- L6: `static func read(_ url: URL) throws -> WS2OwnedScope.Directory {` -- L18: `static func contains(canonicalRoot root: String, canonicalCandidate candidate: String) -> Bool {` - -## `prototype/Window/AXHelpers.swift` - -SHA256: `b679b85d9e4e31f1a2f4594a048fba885c89b46bd25395e3fab768c880ab71b6`,255行。 - -- L9: `enum TrafficAction { case close, minimize, zoom, fullScreen }` -- L11: `enum ProxyTrafficLightStyle {` -- L16: `struct ProxyTrafficLightConfiguration {` -- L40: `func proxyTrafficLightConfiguration(of win: AXUIElement, pid: pid_t) -> ProxyTrafficLightConfiguration {` -- L73: `func urlFromAXAttribute(_ win: AXUIElement, _ attr: String) -> URL? {` -- L90: `func quickLookReopenURL(for win: AXUIElement) -> URL? {` -- L102: `func reopenQuickLookPreview(url: URL) -> Bool {` -- L116: `func postSpacebarKey() {` -- L125: `func reopenQuickLookFromFinderSelection(pid: pid_t) -> Bool {` -- L149: `enum SystemTitlebarDoubleClickAction: Equatable {` - -## `prototype/build.sh` - -SHA256: `7059bc9f7cf023359899cb35bcb92b3fa934e06f30bfb2f2737bed28a55c493d`,360行。 - -- L73: `collect_sources() {` - diff --git a/tests/archive/part10/sources/original-briefs/blueprint.md b/tests/archive/part10/sources/original-briefs/blueprint.md deleted file mode 100644 index bbd44c4e..00000000 --- a/tests/archive/part10/sources/original-briefs/blueprint.md +++ /dev/null @@ -1,88 +0,0 @@ -# WindowShade 全景:接手者必读 - -2026-10-03。把 Aaron 的 ChatGPT 会话(v2 电量与完整灵动岛、v3 遥控器与语音编程、v4 身份认证与 MFA)、与 Marvin 的讨论、 -刷脸解锁(吸收 Glance)、隐私一栏(照 Loupe)和窗口这条线合成一张总图。 - -- 设计稿(可交互,一天里的十三个时刻):[WindowShade 全景](https://claude.ai/artifact/2AQPp5eEoFPBrCobUBxKsp) -- 分线的设计稿:[从锁屏到窗口](https://claude.ai/artifact/UepNxvLrJY5WDRANnjubyH)、[WindowShade 读到的](https://claude.ai/artifact/3SXfR2wyxHBGiBBEHxvjRA) - -**一句话:看不见的东西都在刘海里,碰一下就回来;要你放行的事,只在刘海里问你一次。** - -## 先读这四份 - -| 文件 | 讲什么 | -| --- | --- | -| [direction.md](direction.md) | 愿景按线列;Aaron 的逐项决定 | -| [handoff/chatgpt-2026-10-01.md](handoff/chatgpt-2026-10-01.md) | v2–v4 规格要点 | -| [face-unlock.md](face-unlock.md) | 刷脸解锁:八条硬要求、F1–F7 | -| [privacy-page.md](privacy-page.md) | 隐私一栏:核对表、P1–P6 | - -## 一个结构 - -| 层 | 内容 | -| --- | --- | -| 来源(各线自己的) | 窗口;实时活动(播放、隔空投送、路线、录音);设备电量;CarPlay 接收;遥控器与语音;脸与身边的设备;agent 会话 | -| 真相层 | 稳定 ID 与组件 ID,名字只用来显示;最后看见、最后读到、采样时间分开;未知就是未知;去重与回滞 | -| 唯一的协调器 | 活动协调器,每块屏一个,按下面的仲裁顺序决定刘海此刻长什么样;状态来自数据,不来自动画回调 | -| 唯一的宿主 | 刘海面板(无刘海的屏用顶部胶囊);最小、紧凑、短暂提醒、展开、交互五种形状,同一套弹簧(设计规范 v2 的记号) | -| 输入 | 指针与触控板(点一下刘海是启动台,长按是 CarPlay)、键盘、遥控器(声调、拍子、按钮)、声音(出草稿;声纹只作辅助因素) | -| 横穿 | 授权账(一次性、绑定用途和目标);信号登记表(隐私一栏从它生成);能耗预算 | - -## 刘海此刻听谁的 - -从上往下,先到先占;上面的让出后,下面的原样回来,不补播。 - -1. **要你放行的事**:刷脸解锁、Touch ID 确认、agent 审批。独占,其它暂存;只认审批出现后的新动作。 -2. **你正在做的事**:指挥手势画到一半、按住说话、拖标题栏到落点小岛。手离开前什么提醒都不进来。 -3. **你主动打开的**:刘海那一排、看一眼、展开的详情。普通更新只在原处改数字,不顶掉它。 -4. **短暂提醒**:配件连上、电量低、有变化时提醒、卡住时提示。约 4 秒;0.6 秒内合成一句;遇到上面三层就进次区域留个小点。 -5. **持续活动**:音乐、CarPlay、录音、隔空投送、路线、agent 在跑。最多三个,两指横扫切换。 -6. **什么都没有**:和实体刘海重合,不画、不刷新。 - -锁屏、切换用户、关掉功能时清掉一切可见内容和输入;解锁后只显示当前状态,加一条“离开期间”摘要。 - -## 不做的 - -- 心率、脸红不当解锁依据;健康数据不进放行(Apple 协议限制 HealthKit 用途)。 -- 声纹只作辅助因素:脸的分数在门槛附近、或放行高风险的事时补一道随机短语;不单独放行,不顶替手机或手表(NIST SP 800-63B-4 不把它当认证因素)。 -- atv-core 的 Verified 不当授权(没验客户端签名),接 agent 前先补好。 -- 不往前台窗口盲发回车;不开空对话冒充接管原会话;后端不支持的档位明说,不默默降档。 -- AirBattery(AGPLv3)只读不拷;Loupe 的名字、图标、图片不用。 -- Aaron 定(2026-10-03):不走 App Store 分发,Face Data 用途限制不作门槛;**私有 API 能达成目的就大胆用**,用了就登记到隐私一栏第三层,系统更新后失效要有退路。 - -## 做的顺序 - -| 阶段 | 做什么 | 对应 | 算完成 | -| --- | --- | --- | --- | -| 0 收尾 | 换新构建复测能耗;空闲时重跑探针;修日志 | performance 七、checklist、P1 | 能耗不高于 1.0.15;探针全过;日志只有本人能读、不写标题 | -| 1 地基 | 活动协调器按仲裁顺序重写;信号登记表 + 构建检查 | v2 B3、P3 | v2 多活动 / 打断恢复 / 隐私抑制场景跑过;没登记的读取让检查失败 | -| 2 刷脸解锁 | F1–F7 | v4 A0–A5、face-unlock.md | 见 face-unlock.md | -| 3 隐私一栏 | P2、P4–P6 | privacy-page.md | 核对表全是“已核” | -| — | **1.0.16**:阶段 0–3 过了,Aaron 说发才发 | | | -| 4 电量全家 | AirPods 三组件、iPhone、iPad、手表经 iPhone、Vision Pro | v2 B4 | 每类设备有真机记录;未知不写 0% | -| 5 **WindowShade 2:指挥模式** | 交互定稿见 [conductor-v2.md](conductor-v2.md);E1–E5 真机实验 → DeepSeek D1–D6([提示词](handoff/deepseek-conductor.md))→ 语音与声纹放行 → Claude 适配器 | v3 C0–C6 | 64 个场景逐项有真实结果;作为 WindowShade 2 发布 | -| 5b 手边的每一样(WindowShade 2) | 一个入口、一套动作、任何输入:滚轮鼠标平滑滚动与方向分开、妙控鼠标和妙控板的中键与轻点、Siri 遥控器与 PS5 手柄操作 Mac、焦点导航;见 [input-devices.md](input-devices.md)、[提示词](handoff/deepseek-input.md) | 9/25 “给妙控鼠标和妙控板用户惊喜” | 默认关;回调耗时与能耗实测;真机试过 | -| 5c 番茄钟与符号优先 | 番茄钟做成刘海里的实时活动,专注时聊天收进刘海、休息时全部收进刘海;全 App 设置、刘海、菜单改成符号加短句;见 [pomodoro.md](pomodoro.md)、design-system §4.11、copy-guide 第 7 条 | Aaron 10-03 | 设置只有两项;副标题都在一行内 | -| 2b 离开就锁 | 学 Windows 动态锁、Near Lock、blue-lock-mac:手机断开 → 1.5 秒宽限 → 刘海倒数 10 秒 → 收起私人 App → 锁;回来四样都对才开;见 [dynamic-lock.md](dynamic-lock.md) | face-unlock F1、F6 | 真机:关掉手机蓝牙约 11.5 秒内锁;握着手机不误锁 | -| 5d 看与指挥、菜单收拢 | 从 Open Island 只取会话状态、刘海里批准、一点就过去,只接 Claude Code 和 Codex;菜单 24 项收到 9 项;见 [agents-in-notch.md](agents-in-notch.md)、[menu-bar.md](menu-bar.md) | Aaron 10-03 | 菜单一级 ≤ 12;hook 在 App 没开时照常放行 | -| 6 CarPlay | 接收器本体,**全屏体验**:长按刘海进入,再长按或 Esc 回桌面;短按刘海仍是启动台;会话事件交给协调器 | v1、v2 B5 | 进出跟手;回桌面窗口都在原处;停 CarPlay 不清电量;电量失败不断视频 | -| 6b 概念片 | 126 秒“一个入口”,Remotion + video-shotcraft 镜头卡;五处 wow:刷脸解锁、灵动岛、启动台、vibe coding 伴侣、CarPlay;已做的用真机画面,没做的用抽象图形;DeepSeek 照示例源码写,主模型录屏、渲染、验收;见 `film/ws2-concept/BRIEF.md`、[提示词](handoff/deepseek-film.md) | 被看见 | qc_gate、carry_flow、shotcraft 终检通过;Aaron 看过 | -| 7 资格 | 独立攻防、恢复、能耗、许可;官网、README、宣传片 | v4 A6、v2 B6 | Marvin、Newlearner 这样的人看得过去 | - -## 硬要求 - -做不到就停下来写明卡在哪,不要换一个更容易的东西交差。 - -1. **七条线都是目标,没有一条是偏航。**窗口、实时活动、电量、CarPlay、指挥模式、刷脸解锁、隐私,进度各记各的。 -2. **一个宿主,一个协调器。**所有东西长在已有刘海面板里,经协调器按仲裁顺序出场;不新建浮层、认证窗口、菜单栏小工具,不拿预览窗当成果。 -3. **状态来自数据,不来自动画。**结果出来前不打对勾。 -4. **未知就是未知。**没读到不写 0%,没跑的场景不写通过,没核的话不上界面和官网,模拟数据不冒充真机。 -5. **放行只走授权账。**一次性、绑定用途和目标、可撤销;心率、健康数据、atv-core 的 Verified 不放行,声纹只作辅助因素。 -6. **读什么都登记。**新读取点先登记到信号登记表。 -7. **能耗写进验收,只做纯赚的改动。**空闲 CPU 和唤醒不高于 1.0.15;已有行为不许变差。 -8. **文案照 [copy-guide.md](copy-guide.md)。**收起窗口、收进刘海、看一眼、实时活动、刷脸解锁、指挥模式,一个东西一个名字。 -9. **不碰 Aaron 的东西。**不动他的真实窗口;探针只用临时窗口、只在他离开或空闲时跑;不退出他日常用的 WindowShade; - 不提交、不推送、不发布,除非他说。 -10. **许可干净。**Glance、Loupe 代码 MIT 带版权声明;AirBattery 只读不拷;Apple 机身素材只用来量,不进仓库。 -11. **便宜模型交来的东西要复核。**主模型自己看差异、自己复现数字。 -12. **每一步留证据。**改完更新对应文档和 [1.0.16 对照表](releases/v1.0.16-ledger.md):做了什么、怎么测的、真实结果、还差什么。 diff --git "a/tests/archive/part10/sources/original-briefs/round1-\345\216\237\345\247\213\345\247\224\346\211\230.md" "b/tests/archive/part10/sources/original-briefs/round1-\345\216\237\345\247\213\345\247\224\346\211\230.md" deleted file mode 100644 index 0383fa5e..00000000 --- "a/tests/archive/part10/sources/original-briefs/round1-\345\216\237\345\247\213\345\247\224\346\211\230.md" +++ /dev/null @@ -1,86 +0,0 @@ -# 请审查 WindowShade 2 的施工提示词,并给执行模型写小抄 - -你好。这是 Aaron 的 macOS 工具 WindowShade 的一份审查包。我是这个项目的主模型(Claude),已经把 WindowShade 2 的设计、规格和交给执行模型(DeepSeek)的 -工作包都写好了。Aaron 想请你做两件事: - -1. **审查**:从你的世界知识出发,指出这些提示词和规格里会让执行模型做错、做不成、或者做出大杂烩的地方。 -2. **写小抄**:给每个工作包写一页“小抄”,让执行模型可以照着“闭眼施工”。小抄要写清楚确切的 API、最小代码骨架、已知的坑、怎么验证。 - -你在对话模式里,读不到仓库的 git 历史,也跑不了 Mac 上的任何东西。所以凡是要在真机上才能确认的事,请照实标出来。 - -## 环境(2026-10-03 实测) - -- Mac:Mac17,4,Apple M5;macOS 27.0(build 26A428) -- Swift 6.4(swiftlang-6.4.0.34.1);不用 Xcode 工程,`prototype/build.sh` 直接用 `swiftc` 编译;整模块类型检查是 `cd prototype && ./build.sh --check` -- 分发:Developer ID 签名、Sparkle 更新,**不上 App Store**。Aaron 定了:私有 API 能达成目的就大胆用,用了要登记、要有退路 -- 许可:WindowShade 是 MIT。GPL、CC BY-NC、PolyForm、MMF License、没有许可文件的项目,**只借思路,不拷代码** - -## 包里有什么 - -| 目录 | 内容 | 先看什么 | -| --- | --- | --- | -| `docs/handoff/START-HERE-deepseek.md` | **总开工提示词**:总则、绝对不做、三波开工顺序 | 第一个读 | -| `docs/handoff/deepseek-*.md` | 各工作包的提示词:conductor(指挥模式)、input(鼠标、触控板、遥控器、手柄)、pomodoro-symbols(番茄钟与符号优先)、dynamic-lock(离开就锁)、menu-agents(菜单收拢、刘海里的编程会话) | 逐个审查 | -| `docs/blueprint.md` | WindowShade 2 的总图、刘海仲裁顺序、十二条硬要求、做的顺序 | 第二个读 | -| `docs/*.md` | 各功能的规格:`conductor-v2`、`input-devices`、`pomodoro`、`dynamic-lock`、`agents-in-notch`、`menu-bar`、`face-unlock`、`privacy-page`、`direction`(Aaron 的逐项决定)、`copy-guide`(文案规则与词汇表)、`design-system`(设计令牌、§4.11 符号表)、`performance` 等 | 审查某个包时,对照它的规格 | -| `docs/handoff/chatgpt-2026-10-01.md` | 你(ChatGPT)之前写的 v2–v4 规格的要点,以及 Aaron 之后改了哪几条 | 先看“Aaron 之后的改动” | -| `upstream-specs/` | 你之前写的 v4 身份认证规格原文、v3 指挥模式规格原文和 64 个验收场景 | 对照用 | -| `code/` | 仓库里跟踪的源码(Swift)、测试、工具、`AGENTS.md`、`DEVELOPMENT.md`;去掉了 Sparkle 二进制框架和素材 | 核对 API 用法、已有入口 | -| `design-drafts/` | 九份可交互的设计稿 HTML(浏览器直接打开) | 想看交互细节时 | -| `skills/` | 我们设计时用的 Apple HIG、Apple 动效(Designing Fluid Interfaces)、Emil Kowalski 设计工程的 skill 原文;`deepseek-delegate` 是派活给 DeepSeek 的说明 | 了解设计口径 | - -## WindowShade 2 的约束(审查时请拿这些当标准) - -- **一个入口,一套动作,任何输入。**刘海是唯一入口;所有设备落到同一套动作;没有指针的设备用焦点导航。 -- **奥卡姆剃刀。**规格没写的不做;不做配置工具、宏、脚本、用量统计;菜单一级不超过 12 项;设置项越少越好。 -- **符号优先,字少。**每行一个 SF Symbol;副标题一行以内。 -- **默认不接管系统输入**;开了才装钩子,回调 O(1),被系统停掉时退回原样。 -- **未知就是未知**:没读到不写 0%,没跑的不写通过,没核过的话不上界面。 -- **不退步**:已有功能和能耗都不能变差。 -- 1.0.16 还没发布,Aaron 说发才发。 - -## 请你交回什么 - -把下面这些文件打成一个 zip 交回。中文写,句子短,先说结论。 - -### 1. `review.md`:总评 - -- 一段总体判断:这套提示词让执行模型“闭眼施工”,最可能在哪里翻车。 -- 一张问题表,每行一个问题:严重程度(阻断 / 高 / 中 / 低)、在哪个文件哪一节、问题是什么、建议怎么改。重点看: - - 规格之间互相矛盾(比如同一个键在两份文档里含义不同); - - 技术上做不到,或者 macOS 27 上的行为和规格的假设不同; - - 安全与隐私:授权、配对、hook 改用户配置、密码处理、日志; - - 违反奥卡姆剃刀、会长成大杂烩的地方; - - 执行模型最可能误解的措辞。 -- **哪些包的顺序或拆分应该改**,为什么。 - -### 2. `cheatsheets/<包名>.md`:每个包一页小抄 - -包名照 START-HERE 里的编号:T1、L1、A1、D1、D2、I1、I9、M1、S1、T2、T4、A3、D3、D4、A2、L2、L4、I2、I3、I5、I8、I7、D5、D6。每页包括: - -1. **一句话目标**和**完成的样子**(验收时看什么)。 -2. **要用的 API**:确切的框架、类型、方法名和签名,标出最低系统版本。私有 API 写清符号名、已知的参数和结构体布局、来源和可信度。 -3. **最小骨架**:自己写的 Swift 片段,能编译的程度;不要贴 GPL 或不兼容许可项目的代码。 -4. **坑**:macOS 和硬件上已知会出问题的地方,以及怎么绕。比如: - - `CGEventTap` 超时被停、安全输入; - - `MultitouchSupport` 回调线程与结构体布局; - - GameController 的后台事件与自适应扳机; - - CoreBluetooth 连接 iPhone 后的断连行为、状态恢复,`CBPeripheral.identifier` 的稳定性; - - `hidutil` 映射在重连后失效; - - Claude Code / Codex hook 的确切配置格式、事件名和返回约定; - - Codex App Server 的 JSON-RPC 方法; - - ScreenCaptureKit、TCC 授权在重签名后丢失; - - Swift 6 严格并发下 `@MainActor` 与回调线程。 -5. **测试点**:纯逻辑该测的边界;真机该怎么试;哪一步必须 Aaron 在场。 -6. **不要做**:这个包里最容易越界的地方。 -7. **不确定的**:你没把握的结论,写明“需要真机确认”或“需要查官方文档”,并给出去哪查。 - -### 3. `prompt-patches.md`:提示词补丁 - -对 `START-HERE-deepseek.md` 和各 `deepseek-*.md`,给出可以直接替换或追加的段落(写明替换哪一段)。目标是让执行模型少问、少猜、少越界。 - -## 写的时候请注意 - -- 引用外部事实时给出来源(官方文档、WWDC 讲座、开源项目的文件路径)。不确定就说不确定,不要编 API。 -- 不要建议拷贝 GPL、非商业许可或没有许可文件的项目的代码;可以描述它们的思路。 -- 篇幅以“执行模型照着就能做”为准,不要写教程式的长文。 diff --git "a/tests/archive/part10/sources/original-briefs/round2-\345\216\237\345\247\213\345\247\224\346\211\230.md" "b/tests/archive/part10/sources/original-briefs/round2-\345\216\237\345\247\213\345\247\224\346\211\230.md" deleted file mode 100644 index 5f52f078..00000000 --- "a/tests/archive/part10/sources/original-briefs/round2-\345\216\237\345\247\213\345\247\224\346\211\230.md" +++ /dev/null @@ -1,132 +0,0 @@ -# 第二轮:把每个工作包写成“照做就行”的施工单 - -你好。第一轮你交回的审查很扎实:53 条问题全部被采纳,我(主模型 Claude)的逐条结论在 `repo/docs/handoff/chatgpt-review-1-verdict.md`。 -Aaron 想请你再往下走一步。 - -> **目标:执行模型(DeepSeek)拿到施工单后,不需要做任何判断,照着写、照着测就能完成。** - -凡是需要判断的地方,你先替它判断好,写成规则、表格、常量、完整代码和测试用例。 -DeepSeek 擅长照规格写代码,不擅长在模糊处做取舍;它是纯文本模型,看不到图片。 - -这一轮还要加上**概念片(预告片)的工程**:第一轮的包里没有它。 - -## 这一轮的包里有什么 - -| 位置 | 内容 | -| --- | --- | -| `repo/` | 仓库当前 `main` 的快照:代码、全部文档、提示词、概念片工程(不含 `node_modules`) | -| `repo/docs/handoff/chatgpt-review-1/` | 你第一轮交回的全部内容(原样) | -| `repo/docs/handoff/chatgpt-review-1-verdict.md` | 我对 53 条的结论;只有 R42 保留 Aaron 的决定,其余都接受 | -| `repo/docs/handoff/reference/mac-facts-2026-10-03.md` | **第一轮你标“需要确认”的事实**,我在 Aaron 的 Mac 上实测采集。包括:
• macOS 27.0、Swift 6.4、SDK 版本;
• `build.sh` 的真实编译参数;
• GameController 头文件摘录(DualSense 扳机的方法签名与最低系统);
• 私有触控框架 14 个符号在本机 `dlsym` 全部存在;
• Codex CLI 0.153.0、Claude Code 2.1.283 的版本与 hook 相关帮助;
• 本机还没有任何 hook 配置 | -| `repo/docs/handoff/reference/codex-app-server-schema-0.153.0/` | 用本机 `codex app-server generate-json-schema` 导出的**完整协议 JSON Schema**(39 个文件)。D6、A2 请以它为准,不要再按网页猜字段 | -| `repo/film/ws2-concept/` | **概念片工程**:Remotion 4.0.484。
• `BRIEF.md`:126 秒,五处 wow,分镜;
• `DIGEST.md`:写法规则、弹簧、刘海尺寸;
• `reference/`:33 张 video-shotcraft 镜头卡、调好参数的示例源码、审美准则、声音设计,Apache 2.0;
• `src/lib/`:shotcraft 的 PageCam、ClipCard 等组件;
• `public/footage/`:真机镜头清单与登记表 | -| `repo/docs/handoff/deepseek-film.md` | 概念片的 DeepSeek 工作单(F1–F5) | -| `repo/promo/` | **前作**:1.0.x 的 Remotion 宣传片(56 秒,4K 横竖两版,120 bpm 卡拍,`src/timeline.ts` 一张提示表驱动画面和声音,音乐音效代码生成)。概念片要沿用它的提示表、卡拍、横竖两版和出片脚本;但前作的界面是画的,新片已做的功能必须用真机画面 | -| `skills/` | 设计时用的 skill 原文:Apple HIG、Apple 流体界面、Emil Kowalski、本机动效总纲(motion-doctrine)、video-shotcraft 的 SKILL 与流水线、Remotion 写法 | - -## 已经定了、不要再讨论的 - -- Aaron 的产品决定:一个刘海入口、一套动作、任何输入;不上 App Store,私有 API 可用(要登记、要有退路);不做手机或手表端 App;奥卡姆剃刀;符号优先、字少;1.0.16 不发布。 -- 你第一轮的 53 条结论(R42 除外)。 -- 第一轮你提出的四个主模型前置:冻结事件与审批合同、全局交互租约与每屏显示、隐私登记与日志修复、可复现构建基线。**这一轮请你起草它们**,我审定后冻结。 - -## 请你交回什么 - -照下面的结构打成 zip。东西多,可以分几次交(“第 1 份 / 第 2 份……”),**按优先级顺序交**: - -1. `contracts/` -2. 第一波纯逻辑的 `packages/` -3. `film/` 的 F1–F2 -4. 其余包 -5. `film/` 的 F3–F5 - -### 1. `contracts/`:四个前置,写成可以直接冻结的东西 - -- **`Contracts.swift`**:共享的事件、动作、身份、代次、审批请求和决定、能力票据、时钟注入。 - - 只依赖 Foundation,所有类型 `Sendable`,有完整文档注释; - - 要求能在 Linux Swift 6 下编译,你那边可以实测。 -- **`InteractionLease.md`**:全局交互租约与每屏显示协调。 - - 谁能占刘海、优先级(照 `docs/blueprint.md` 的六层仲裁)、抢占与恢复、锁屏/睡眠/换屏时撤销; - - 写成状态表加接口签名,并写清它接到现有 `NotchActivities.swift` / `Notch.swift` 的哪几个具体符号上(给文件和行号)。 -- **`PrivacyRegistry.md`**:登记表的数据结构和全部条目(照 `docs/privacy-page.md`,加上 A2、D5、D6、L2、I2、I5、I8 新增的读取与数据去向)。 - - 日志修复的精确改法:哪个文件、哪几行、改成什么; - - 12 处写窗口标题的日志逐条给出替换。 -- **`BuildBaseline.md`**:可复现构建与能耗测量的固定条件、命令、记录表格式。 - -### 2. `packages/<编号>/`:每个包一个文件夹 - -编号照第一轮:T1、L1、A1、D1、D2、I1a–I1f、I9、M1、S1、T2、T4、A3、D3、D4、A2a、A2b、L2、L4、I2、I3、I5a、I5b、I8、I7、D5a–D5c、D6。每个文件夹里放: - -- **`WORKORDER.md`**:可以原样贴给 DeepSeek 的施工单。必须包含: - - **可写文件清单**:精确路径; - - **可调用的既有符号**:文件加行号,给签名; - - **决定表**:把这个包里每个需要判断的地方都列出来,每行写“情况 → 怎么做 → 为什么”。例如: - - 两个事件同一时刻到达时的顺序; - - 判不准是点还是拖时怎么办; - - 设备身份未知时怎么办; - - 超时多久; - - 文案具体是哪几个字; - - 用哪个 SF Symbol; - - 弹簧用哪一档。 - - **DeepSeek 遇到表里没有的情况,就停下来报告,不自己发明。** - - 常量表:所有数值和出处(规格、实测或你的推荐)。 - - 验收命令:精确命令、预期的退出码、预期输出里必须出现的字样。 - - “不要做”清单。 -- **纯逻辑包**(T1、L1、A1、D1、D2、I1a–f、I9):交**完整实现**加**完整测试**,不是骨架。 - - 写法照仓库的 `tests/ConductorGestureTests.swift`:`@main`、`expect(条件, "说明")`、配 `tests/run-xxx-tests.sh`; - - 在你那边的 Linux Swift 6 实测通过,把输出放进 `VALIDATION.txt`; - - DeepSeek 的工作就变成:放进仓库、在 Mac 上跑同样的命令、贴出结果。 - - 每个测试用例写成表:输入序列 → 预期状态与效果,测试代码照表写。 -- **App 层包**:交到“填空”程度的代码。 - - 新文件写完整; - - 改既有文件的,给出精确的插入位置(文件、行号、前后两行原文)和插入内容; - - 用 AppKit 和私有 API 的地方,给出你确定的写法,并标“需要在 macOS SDK 上编译确认”; - - 写清 DeepSeek 跑 `./build.sh --check` 失败时,最可能是哪几类错误、各怎么改。 -- **真机探针**(L2、I2、I5a、F1/L3 身份、锁屏后端):给出探针程序的完整代码、Aaron 在场时的操作步骤、要记录的数据表格式,以及每种可能结果分别意味着什么、下一步怎么走(决策树)。 - -### 3. `film/`:概念片工程 - -先审 `film/ws2-concept/BRIEF.md`,再把它变成 DeepSeek 照做的施工单。 - -- **`REVIEW.md`**:先读前作 `repo/promo/`,说清哪些做法沿用、哪些要改;再照本机动效总纲(`skills/motion-doctrine/references/doctrine.md`)和 shotcraft 审美准则,审这份分镜: - - 哪里会像幻灯片; - - 五处 wow(刷脸解锁、灵动岛、启动台、vibe coding 伴侣、CarPlay)够不够 wow,怎样更 wow; - - 节奏、静止占比、衔接、光、文字有什么问题。 - - 在“真画面”规矩内给出更强的改法:已做的功能必须真机录屏,没做的只能抽象图形,不画假界面、不画 CarPlay 界面、不用 Face ID 图形。改动直接写成新版 `BRIEF.md`。 -- **`shots/chN.md`**(第 0–8 章,每章一份):逐帧施工单。必须包含: - - **帧表**:每个元素的起止帧、关键帧数值(位置、尺寸、透明度、缩放、颜色)、用哪一档弹簧; - - 照抄哪个示例文件(`reference/demos/<卡名>/<文件>.tsx`)、改哪些参数、改成多少;卡上“已知坑”的参数原值保留; - - 刘海在本章每个关键帧的形状和内容; - - 文案原字; - - 出口衔接:哪个元素活下来、在第几帧变成下一章的什么; - - 静止段的起止帧; - - 主模型抽帧检查的帧号,以及每一帧“应该看到什么”(DeepSeek 看不到图,由主模型对照)。 -- **`src/`**:共享组件的完整 TSX,基于 Remotion 4.0.484 API: - - `Film.tsx`(九章的 `Series`); - - `scenes/Stage.tsx`、`scenes/Notch.tsx`(四种形状 + 变形)、`scenes/Footage.tsx`(登记表与占位块); - - `scenes/wsSpring.ts`; - - 一个相机组件。 - - 你那边如果没法装 Remotion 编译,就标“未编译”。 -- **`AUDIO-CUES.md`**:声音提示表,每行写帧号、文件、音量、淡入淡出。 - - 文件从 shotcraft 的 `assets/audio/sfx/<类别>/` 里选,清单见 `film/ws2-concept/reference/sound-design.md`; - - 先给两首 BGM 候选和理由。 -- **`QA.md`**:出片前检查清单,对应本机的 `qc_gate.py`、`carry_flow.py` 和 shotcraft 的终检项,写成主模型能逐项打勾的形式。 - -### 4. `answers.md` - -第一轮你标“需要确认”的问题,哪些已被 `mac-facts` 和 Codex Schema 回答(附结论),哪些仍要真机(附探针编号)。 - -### 5. `CHANGELOG.md` - -与第一轮比改了什么,哪些第一轮的小抄作废,被哪个新文件取代。 - -## 写的时候 - -- **先判断,再交代码。**宁可多写一行决定,也不留“视情况而定”。真不知道的,写成探针和决策树,不要写“需要进一步研究”。 -- 代码必须是你原创的。不拷 GPL、非商业许可、没有许可文件的项目;可以照搬 video-shotcraft 的示例源码,它是 Apache 2.0,要保留出处注释。 -- 引用外部事实给来源;与 `mac-facts` 冲突时以 `mac-facts` 为准。 -- 文案照 `repo/docs/copy-guide.md`:一个东西一个名字,界面字少。 -- 中文写;句子短;先结论。 diff --git a/tests/archive/part10/tests/test-build-entry.py b/tests/archive/part10/tests/test-build-entry.py deleted file mode 100644 index 478c7650..00000000 --- a/tests/archive/part10/tests/test-build-entry.py +++ /dev/null @@ -1,73 +0,0 @@ -#!/usr/bin/env python3 -"""Exercise the actual shell script with MOCKED compiler/SDK commands. Not a Mac build.""" -import argparse, json, os, pathlib, shutil, subprocess, sys, tempfile, unittest -p=argparse.ArgumentParser();p.add_argument('--candidate',required=True,type=pathlib.Path);p.add_argument('--baseline',type=pathlib.Path);a=p.parse_args() -P=pathlib.Path(__file__).resolve().parent.parent -SCRIPT=(a.candidate/'prototype/build.sh').read_bytes() -MOCK='''#!PYTHON -import os,sys,pathlib,json -name=pathlib.Path(sys.argv[0]).name;args=sys.argv[1:] -with open(os.environ['MOCK_LOG'],'a') as f:f.write(json.dumps([name,args])+'\\n') -if name=='xcrun' and '--show-sdk-path' in args: print(os.environ['MOCK_SDK']);sys.exit(0) -kind=('swift-guard' if any('UpdateGuard-check' in x for x in args) else 'swift-main') if name=='swiftc' else next((x for x in ['clang','metal','metallib'] if x in args),name) -if kind==os.environ.get('MOCK_FAIL'):sys.exit(43) -if name not in ['swiftc','xcrun']:sys.exit(91) -if '-o' in args: - p=pathlib.Path(args[args.index('-o')+1]);p.parent.mkdir(parents=True,exist_ok=True);p.write_bytes(b'MOCK-NOT-A-BINARY') -'''.replace('PYTHON',sys.executable+' -S') -class Test(unittest.TestCase): - def setUp(self): - self.t=tempfile.TemporaryDirectory(prefix='ws2-mock-');self.root=pathlib.Path(self.t.name);self.r=self.root/'repo';self.d=self.r/'prototype';self.d.mkdir(parents=True);(self.d/'build.sh').write_bytes(SCRIPT) - for file in ['main.swift','Watchdog/main.swift','Watchdog/GuardIcon.swift','Core/UpdateVersion.swift','Core/UpdateModels.swift','Core/UpdateDecisions.swift','App/UpdaterSystem.swift','App/UpdaterCopy.swift','Effects/Duo.metal','Native/WS2Child.c','Native/WS2Child.h','Native/module.modulemap']: - f=self.d/file;f.parent.mkdir(parents=True,exist_ok=True);f.write_text('// MOCK source, not built\n') - self.bin=self.root/'bin';self.bin.mkdir();self.log=self.root/'calls.ndjson';self.sdk=self.root/'sdk';self.sdk.mkdir() - for name in ['swiftc','xcrun','codesign','security','pgrep','killall','open','ditto','lipo']: - f=self.bin/name;f.write_text(MOCK);f.chmod(0o700) - self.env={**os.environ,'PATH':str(self.bin)+os.pathsep+os.environ['PATH'],'MOCK_LOG':str(self.log),'MOCK_SDK':str(self.sdk),'WINDOWSHADE_ARCH':'arm64'} - self.env.pop('WINDOWSHADE_CODESIGN_IDENTITY',None);self.env.pop('MOCK_FAIL',None) - def tearDown(self):self.t.cleanup() - def run_check(self):return subprocess.run(['bash',str(self.d/'build.sh'),'--check'],env=self.env,capture_output=True,text=True,timeout=20) - def calls(self):return [json.loads(x) for x in self.log.read_text().splitlines()] if self.log.exists() else [] - def test_01_check_does_not_source_signing(self): - (self.d/'local-codesign.env').write_text('echo EXECUTED > "$PWD/forbidden"; exit 97\n');v=self.run_check();self.assertEqual(v.returncode,0,v.stderr);self.assertFalse((self.d/'forbidden').exists()) - def test_02_main_and_guard_strict(self): - v=self.run_check();self.assertEqual(v.returncode,0,v.stderr);calls=[args for cmd,args in self.calls() if cmd=='swiftc'];self.assertEqual(len(calls),2) - for args in calls:self.assertEqual(args[args.index('-swift-version')+1],'6');self.assertIn('-strict-concurrency=complete',args);self.assertIn('-warnings-as-errors',args) - def test_03_both_normal_invocations_use_same_flags(self): - text=SCRIPT.decode();self.assertEqual(text.count('swiftc "${SWIFT_LANGUAGE_FLAGS[@]}"'),4);self.assertNotIn('swiftc -module-cache-path',text) - def test_04_no_sign_or_launch_or_bundle(self): - self.assertEqual(self.run_check().returncode,0);self.assertFalse((self.d/'WindowShade.app').exists());self.assertTrue(all(cmd in ('xcrun','swiftc') for cmd,args in self.calls())) - def test_05_c_failure_propagates(self): - self.env['MOCK_FAIL']='clang';v=self.run_check();self.assertEqual(v.returncode,43);self.assertNotIn('编译验证通过',v.stdout);self.assertFalse(any(x[0]=='swiftc' for x in self.calls())) - def test_06_metal_failure_propagates(self): - self.env['MOCK_FAIL']='metal';self.assertEqual(self.run_check().returncode,43);self.assertFalse(any(x[0]=='swiftc' for x in self.calls())) - def test_07_metallib_failure_propagates(self): - self.env['MOCK_FAIL']='metallib';self.assertEqual(self.run_check().returncode,43) - def test_08_main_failure_skips_guard(self): - self.env['MOCK_FAIL']='swift-main';v=self.run_check();self.assertEqual(v.returncode,43);self.assertEqual(len([x for x in self.calls() if x[0]=='swiftc']),1) - def test_09_guard_failure_no_success_message(self): - self.env['MOCK_FAIL']='swift-guard';v=self.run_check();self.assertEqual(v.returncode,43);self.assertNotIn('编译验证通过',v.stdout) - def test_10_native_and_main_same_target(self): - self.assertEqual(self.run_check().returncode,0) - for cmd,args in self.calls(): - if cmd=='swiftc' or 'clang' in args:self.assertEqual(args[args.index('-target')+1],'arm64-apple-macosx14.0') - def test_11_temporary_sources_cleaned(self): - self.run_check();self.assertEqual(list((self.r/'.build').glob('duo-build.*')),[]) - def test_12_glass_checks_header_not_version(self): - f=self.sdk/'System/Library/Frameworks/AppKit.framework/Headers/NSGlassEffectView.h';f.parent.mkdir(parents=True);f.write_text('// test only');self.assertEqual(self.run_check().returncode,0) - main=next(args for cmd,args in self.calls() if cmd=='swiftc');self.assertIn('-DWINDOWSHADE_SDK_HAS_GLASS',main) -class Recorded(unittest.TextTestResult): - def __init__(self,*args,**kw):super().__init__(*args,**kw);self.rows=[] - def addSuccess(self,t):super().addSuccess(t);self.rows.append({'test':t.id(),'status':'PASSED'}) - def addFailure(self,t,e):super().addFailure(t,e);self.rows.append({'test':t.id(),'status':'FAILED'}) - def addError(self,t,e):super().addError(t,e);self.rows.append({'test':t.id(),'status':'ERROR'}) -result=unittest.TextTestRunner(verbosity=2,resultclass=Recorded).run(unittest.defaultTestLoader.loadTestsFromTestCase(Test)) -report={'tests':result.testsRun,'failures':len(result.failures),'errors':len(result.errors),'kind':'ACTUAL_SHELL_MOCKED_SDK_COMPILER','mac_build':'NOT_RUN','cases':result.rows} -if a.baseline: - t=Test();t.setUp() - try: - (t.d/'build.sh').write_bytes((a.baseline/'prototype/build.sh').read_bytes());(t.d/'local-codesign.env').write_text('echo EXECUTED > "$PWD/forbidden"; exit 97\n');q=t.run_check() - report['baseline']={'exit_code':q.returncode,'signing_config_executed':(t.d/'forbidden').exists(),'stdout':q.stdout,'stderr':q.stderr,'explicit_language_flag_count':(a.baseline/'prototype/build.sh').read_text().count('-swift-version')} - finally:t.tearDown() -(P/'validation/build-entry-tests.json').write_text(json.dumps(report,ensure_ascii=False,indent=2)+'\n') -raise SystemExit(0 if result.wasSuccessful() else 1) diff --git a/tests/archive/part10/tests/test-handoff-tools.py b/tests/archive/part10/tests/test-handoff-tools.py deleted file mode 100644 index 20971e14..00000000 --- a/tests/archive/part10/tests/test-handoff-tools.py +++ /dev/null @@ -1,81 +0,0 @@ -#!/usr/bin/env python3 -"""Handoff/reference and evidence-path tests. Not application feature certification.""" -import argparse,hashlib,importlib.util,json,os,pathlib,tempfile,unittest -p=argparse.ArgumentParser();p.add_argument('--candidate',type=pathlib.Path,required=True);a=p.parse_args();P=pathlib.Path(__file__).resolve().parent.parent -s=importlib.util.spec_from_file_location('runner',P/'tools/run-final.py');m=importlib.util.module_from_spec(s);s.loader.exec_module(m) -class Tests(unittest.TestCase): - def setUp(self): - self.t=tempfile.TemporaryDirectory(prefix='ws2-tool-');self.root=pathlib.Path(self.t.name);self.source=self.root/'source';self.source.mkdir() - def tearDown(self):self.t.cleanup() - def test_01_fresh_report_private(self): - out=m.external_report(self.root/'out',[self.source]);self.assertTrue(out.is_dir());self.assertEqual(out.stat().st_mode&0o777,0o700) - def test_02_existing_report_not_overwritten(self): - out=self.root/'out';out.mkdir();(out/'keep').write_text('old') - with self.assertRaises(ValueError):m.external_report(out,[self.source]) - self.assertEqual((out/'keep').read_text(),'old') - def test_03_nested_report_rejected(self): - with self.assertRaises(ValueError):m.external_report(self.source/'out',[self.source]) - def test_04_ancestor_report_rejected(self): - with self.assertRaises(ValueError):m.external_report(self.root,[self.source]) - def test_05_symlink_parent_rejected(self): - link=self.root/'link';link.symlink_to(self.root,target_is_directory=True) - with self.assertRaises(ValueError):m.external_report(link/'out',[self.source]) - def test_06_missing_parent_rejected(self): - with self.assertRaises(ValueError):m.external_report(self.root/'missing'/'out',[self.source]) - def test_07_file_output_rejected(self): - f=self.root/'out';f.write_text('keep') - with self.assertRaises(ValueError):m.external_report(f,[self.source]) - self.assertEqual(f.read_text(),'keep') - def test_08_inventory_sees_content_change(self): - f=self.source/'a';f.write_text('one');before=m.inventory(self.source);f.write_text('two');self.assertNotEqual(before,m.inventory(self.source)) - def test_09_inventory_does_not_dereference_link(self): - (self.source/'outside').symlink_to(self.root/'missing');self.assertTrue(m.inventory(self.source)['outside'].startswith('SYMLINK:')) - def test_10_all_original_axes_present(self): - plan=json.loads((P/'execution-plan.json').read_text());self.assertEqual(plan['original_axes'],['窗口','实时活动','电量','CarPlay','指挥模式','刷脸解锁','隐私']) - def test_11_dependencies_acyclic_and_valid(self): - tasks=json.loads((P/'execution-plan.json').read_text())['tasks'];by={t['id']:t for t in tasks};self.assertEqual(len(by),12);visited=set();active=set() - def walk(key): - self.assertIn(key,by);self.assertNotIn(key,active) - if key in visited:return - active.add(key) - for dep in by[key]['dependencies']:walk(dep) - active.remove(key);visited.add(key) - for key in by:walk(key) - self.assertEqual(len(visited),12) - def test_12_all_workorders_and_actual_paths_exist(self): - tasks=json.loads((P/'execution-plan.json').read_text())['tasks'] - drift=json.loads((P/'drift.json').read_text());absent=set(drift['intentionally_absent']);remap=drift['code_map_remap'] - for t in tasks: - self.assertTrue((P/t['workorder']).is_file()) - for path in t['source_paths']: - if path in absent: - # 本仓库明确不建第二套岛管理器:这个文件必须不存在,而不是「忘了建」。 - self.assertFalse((a.candidate/path).exists(),path);continue - self.assertTrue((a.candidate/remap.get(path,path)).is_file(),path) - def test_13_no_original_work_package_lost(self): - tasks=json.loads((P/'execution-plan.json').read_text())['tasks'];codes={v for t in tasks for v in t['original_packages']} - expected={'M1','S1','T1','T2','T3','T4','L1','L2','L3','L4','L5','A1','A2a','A2b','A3','A4','A5','D1','D2','D3','D4','D5a','D5b','D5c','D6','I1a','I1b','I1c','I1d','I1e','I1f','I2','I3','I4','I5a','I5b','I6','I7','I8','I9'} - self.assertTrue(expected.issubset(codes),str(expected-codes));self.assertIn('FACE-F1',codes);self.assertIn('FILM-F1',codes) - def test_14_code_map_hashes_and_lines(self): - rows=json.loads((P/'sources/code-map.json').read_text())['files'];self.assertEqual(len(rows),len({x['path'] for x in rows})) - # 本仓库比第十份钉的 v9 快照更新(第九份 + 第十份 + Mac 实测补丁)。允许清单见 drift.json / - # DRIFT.md;清单外的任何漂移仍然失败,而且清单必须与实际情况完全一致。 - drift=json.loads((P/'drift.json').read_text());allowed=set(drift['code_map_drift']);remap=drift['code_map_remap'];seen=set() - for x in rows: - f=a.candidate/remap.get(x['path'],x['path']) - if not f.is_file(): - self.assertIn(x['path'],allowed,'unlisted missing source: '+x['path']);seen.add(x['path']);continue - if hashlib.sha256(f.read_bytes()).hexdigest()!=x['sha256'] or len(f.read_text().splitlines())!=x['line_count']: - self.assertIn(x['path'],allowed,'unlisted drift: '+x['path']);seen.add(x['path']) - for symbol in x['symbols']:self.assertGreater(symbol['line'],0);self.assertLessEqual(symbol['line'],x['line_count']) - self.assertEqual(seen,allowed,'drift list must match the actual repository') - def test_15_candidate_final_entry_is_real(self): - self.assertIn('FINAL-HANDOFF.md',(a.candidate/'AGENTS.md').read_text());self.assertIn('W11',(a.candidate/'docs/handoff/FINAL-HANDOFF.md').read_text()) - def test_16_carplay_not_artificially_blocked_by_companion(self): - tasks=json.loads((P/'execution-plan.json').read_text())['tasks'];self.assertEqual(next(t for t in tasks if t['id']=='W08')['dependencies'],['W00']) -class Recorded(unittest.TextTestResult): - def __init__(self,*args,**kw):super().__init__(*args,**kw);self.rows=[] - def addSuccess(self,t):super().addSuccess(t);self.rows.append({'name':t.id(),'status':'PASSED'}) - def addFailure(self,t,e):super().addFailure(t,e);self.rows.append({'name':t.id(),'status':'FAILED'}) - def addError(self,t,e):super().addError(t,e);self.rows.append({'name':t.id(),'status':'ERROR'}) -r=unittest.TextTestRunner(verbosity=2,resultclass=Recorded).run(unittest.defaultTestLoader.loadTestsFromTestCase(Tests));(P/'validation/handoff-tool-tests.json').write_text(json.dumps({'kind':'DOCUMENT_AND_TOOL_TESTS','tests':r.testsRun,'failures':len(r.failures),'errors':len(r.errors),'cases':r.rows},indent=2)+'\n');raise SystemExit(0 if r.wasSuccessful() else 1) diff --git a/tests/archive/part10/tests/test-journal-id.py b/tests/archive/part10/tests/test-journal-id.py deleted file mode 100644 index 857d9456..00000000 --- a/tests/archive/part10/tests/test-journal-id.py +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env python3 -"""Compile the exact production numeric/ID functions in a Foundation host; no AX/AppKit.""" -from __future__ import annotations -import argparse,json,pathlib,subprocess,tempfile,sys,hashlib,resource,os -p=argparse.ArgumentParser();p.add_argument('--candidate',required=True,type=pathlib.Path);p.add_argument('--baseline',required=True,type=pathlib.Path);a=p.parse_args();P=pathlib.Path(__file__).resolve().parent.parent - -def extract(text,name): - start=text.index(' func '+name+'(');brace=text.index('{',start);depth=1;i=brace+1 - while depth: - if text[i]=='{':depth+=1 - elif text[i]=='}':depth-=1 - i+=1 - return text[start:i] - -def host(root): - text=(root/'prototype/Recovery/Journal.swift').read_text() - return 'import Foundation\nimport CoreFoundation\ntypealias CGWindowID = UInt32\nstruct Host {\n'+extract(text,'journalNumber')+'\n'+extract(text,'journalID')+'\n}\n' -cases=[('one','1','1'),('max','UInt64(UInt32.max)','UInt32.max'),('integer_double','42.0','42'),('NSNumber','NSNumber(value: 7)','7'),('missing','NSNull()','nil'),('zero','0','nil'),('negative','-1','nil'),('fractional','1.5','nil'),('nan','Double.nan','nil'),('positive_infinity','Double.infinity','nil'),('negative_infinity','-Double.infinity','nil'),('above_uint32','4294967296.0','nil'),('large_finite','Double.greatestFiniteMagnitude','nil'),('bool_true','true','nil'),('bool_false','false','nil'),('string','"12"','nil'),('array','[12]','nil'),('dictionary','["id":1]','nil'),('int64_max','Int64.max','nil'),('uint64_max','UInt64.max','nil'),('negative_fraction','-0.5','nil'),('leading_zero_string','"001"','nil'),('decimal_valid','NSNumber(value: UInt32.max)','UInt32.max'),('empty','""','nil')] -report={'kind':'EXACT_PRODUCTION_FUNCTIONS_FOUNDATION_HOST','appkit':'NOT_RUN','cases':[],'baseline':[],'commands':[]} -def command(argv,**kwargs): - q=subprocess.run(argv,capture_output=True,text=True,timeout=40,**kwargs);report['commands'].append({'argv':list(map(str,argv)),'exit_code':q.returncode,'stdout':q.stdout,'stderr':q.stderr[:16000]});return q -with tempfile.TemporaryDirectory(prefix='ws2-journal-id-') as temp: - t=pathlib.Path(temp);source=t/'test.swift';binary=t/'test' - body=host(a.candidate)+'\n@main struct Tests { static func main() { let h=Host(); var failures=0\n' - for name,value,expected in cases: - body+=f'if h.journalID(["id": {value}]) == ({expected} as UInt32?) {{ print("PASS {name}") }} else {{ print("FAIL {name}"); failures += 1 }}\n' - body+='if h.journalID([:]) == nil {print("PASS absent_key")} else {print("FAIL absent_key");failures += 1}\nexit(failures == 0 ? 0 : 1) } }\n' - source.write_text(body);q=command(['swiftc','-swift-version','6','-strict-concurrency=complete','-warnings-as-errors','-parse-as-library',str(source),'-o',str(binary)]) - if q.returncode==0: - q=command([str(binary)]) - report['cases']=[{'name':line.split(' ',1)[1],'status':'PASSED' if line.startswith('PASS ') else 'FAILED'} for line in q.stdout.splitlines()] - else:report['compile_failed']=True - # Old implementation is run only on synthetic data in a short-lived subprocess. - old=t/'old.swift';oldbin=t/'old';old.write_text(host(a.baseline)+'\nlet values:[String:Any] = ["nan":Double.nan,"over":4294967296.0,"bool":true,"fraction":1.5]\nprint(String(describing:Host().journalID(["id": values[CommandLine.arguments[1]]!])))\n') - compile_old=command(['swiftc','-swift-version','6','-strict-concurrency=complete','-warnings-as-errors',str(old),'-o',str(oldbin)]) - def no_core():resource.setrlimit(resource.RLIMIT_CORE,(0,0)) - if compile_old.returncode==0: - for name in ['nan','over','bool','fraction']: - v=command([str(oldbin),name],preexec_fn=no_core,env={**os.environ,'SWIFT_BACKTRACE':'enable=no'}) - report['baseline'].append({'input':name,'exit_code':v.returncode,'stdout':v.stdout,'trap_observed':v.returncode<0}) -report['test_count']=len(report['cases']);report['passed']=all(c['status']=='PASSED' for c in report['cases']) and len(report['cases'])==25 -report['source_sha256']=hashlib.sha256((a.candidate/'prototype/Recovery/Journal.swift').read_bytes()).hexdigest() -(P/'validation/journal-id-tests.json').write_text(json.dumps(report,ensure_ascii=False,indent=2)+'\n');print(json.dumps({k:report[k] for k in ['test_count','passed','baseline']},ensure_ascii=False,indent=2));raise SystemExit(0 if report['passed'] else 1) diff --git a/tests/archive/part10/tests/test-stage.py b/tests/archive/part10/tests/test-stage.py deleted file mode 100644 index eed00f93..00000000 --- a/tests/archive/part10/tests/test-stage.py +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/env python3 -"""Filesystem refusal tests on tiny fixtures; not product runtime tests.""" -import importlib.util,json,pathlib,tempfile,unittest,hashlib,os -P=pathlib.Path(__file__).resolve().parent.parent -s=importlib.util.spec_from_file_location('stage',P/'tools/stage.py');m=importlib.util.module_from_spec(s);s.loader.exec_module(m) -class Tests(unittest.TestCase): - def setUp(self): - self.t=tempfile.TemporaryDirectory();self.root=pathlib.Path(self.t.name);self.p=self.root/'pack';self.b=self.root/'base';self.o=self.root/'out' - (self.p/'sources').mkdir(parents=True);(self.p/'overlay').mkdir();self.b.mkdir();(self.b/'x').write_text('old');(self.p/'overlay/x').write_text('new');(self.p/'overlay/y').write_text('added') - self.base={'x':m.digest(self.b/'x')};self.man={'changes':[dict(path='x',operation='replace',base_sha256=self.base['x'],sha256=m.digest(self.p/'overlay/x')),dict(path='y',operation='add',base_sha256=None,sha256=m.digest(self.p/'overlay/y'))],'result_file_count':2} - (self.p/'sources/base-files.json').write_text(json.dumps(self.base));self.save() - def tearDown(self):self.t.cleanup() - def save(self):(self.p/'manifest.json').write_text(json.dumps(self.man)) - def apply(self):return m.apply(self.p,self.b,self.o) - def refuses(self): - with self.assertRaises((m.StageError,FileExistsError)):self.apply() - self.assertFalse(self.o.exists()) - def test_success_and_original(self): - r=self.apply();self.assertEqual(r['result_file_count'],2);self.assertEqual((self.o/'x').read_text(),'new');self.assertEqual((self.b/'x').read_text(),'old') - def test_existing_directory(self): - self.o.mkdir();(self.o/'keep').write_text('keep') - with self.assertRaises(m.StageError):self.apply() - self.assertEqual((self.o/'keep').read_text(),'keep') - def test_existing_file(self): - self.o.write_text('keep') - with self.assertRaises(m.StageError):self.apply() - self.assertEqual(self.o.read_text(),'keep') - def test_wrong_base(self):(self.b/'x').write_text('changed');self.refuses() - def test_missing_base(self):(self.b/'x').unlink();self.refuses() - def test_extra_base(self):(self.b/'extra').write_text('new');self.refuses() - def test_bad_overlay(self):(self.p/'overlay/y').write_text('corrupt');self.refuses() - def test_missing_overlay(self):(self.p/'overlay/y').unlink();self.refuses() - def test_extra_overlay(self):(self.p/'overlay/z').write_text('unlisted');self.refuses() - def test_base_symlink(self):(self.b/'link').symlink_to(self.b/'x');self.refuses() - def test_overlay_symlink(self):(self.p/'overlay/x').unlink();(self.p/'overlay/x').symlink_to(self.b/'x');self.refuses() - def test_nested_output(self): - self.o=self.b/'out';self.refuses() - def test_package_output(self): - self.o=self.p/'out';self.refuses() - def test_traversal(self):self.man['changes'][0]['path']='../escape';self.save();self.refuses() - def test_duplicate_manifest_path(self):self.man['changes'].append(self.man['changes'][0]);self.save();self.refuses() - def test_wrong_base_sha(self):self.man['changes'][0]['base_sha256']='0'*64;self.save();self.refuses() - def test_wrong_count(self):self.man['result_file_count']=999;self.save();self.refuses() - def test_symlink_parent(self): - link=self.root/'link';link.symlink_to(self.root,target_is_directory=True);self.o=link/'nested';self.refuses() -class Recorded(unittest.TextTestResult): - def __init__(self,*a,**kw):super().__init__(*a,**kw);self.records=[] - def addSuccess(self,test):super().addSuccess(test);self.records.append({'name':test.id(),'result':'PASS'}) - def addFailure(self,test,err):super().addFailure(test,err);self.records.append({'name':test.id(),'result':'FAIL'}) - def addError(self,test,err):super().addError(test,err);self.records.append({'name':test.id(),'result':'ERROR'}) -if __name__=='__main__': - result=unittest.TextTestRunner(verbosity=2,resultclass=Recorded).run(unittest.defaultTestLoader.loadTestsFromTestCase(Tests)) - (P/'validation/tools-tests.json').write_text(json.dumps(dict(tests_run=result.testsRun,failures=len(result.failures),errors=len(result.errors),cases=result.records),indent=2)+'\n') - raise SystemExit(0 if result.wasSuccessful() else 1) diff --git a/tests/archive/part10/tools/run-final.py b/tests/archive/part10/tools/run-final.py deleted file mode 100644 index 2030dcbe..00000000 --- a/tests/archive/part10/tools/run-final.py +++ /dev/null @@ -1,96 +0,0 @@ -#!/usr/bin/env python3 -"""Run an existing, selected suite in a disposable copy; never overwrite historical evidence.""" -from __future__ import annotations -import argparse, hashlib, json, os, pathlib, platform, shutil, subprocess, sys, tempfile, time -P = pathlib.Path(__file__).resolve().parent.parent -SUITES = {'window-core','frame','duo','input','flow','native','foundation','legacy-foundation','legacy-process','mac-build'} -def inventory(root: pathlib.Path) -> dict[str,str]: - result={} - for f in sorted(root.rglob('*')): - if f.is_symlink(): - result[f.relative_to(root).as_posix()]='SYMLINK:'+os.readlink(f) - elif f.is_file(): result[f.relative_to(root).as_posix()]=hashlib.sha256(f.read_bytes()).hexdigest() - return result - -def external_report(report: pathlib.Path, roots: list[pathlib.Path]) -> pathlib.Path: - report=report.absolute() - # macOS 的 /var、/tmp、/etc 是 Apple 自己的根级符号链接(Linux 上是真目录);先按系统事实 - # 规范化这三个前缀,否则文档推荐的 `mktemp -d /tmp/...` 报告目录会被自己拒掉。其余任何一段是 - # 符号链接仍然拒绝。 - folded=str(report) - for link,target in (('/var','/private/var'),('/tmp','/private/tmp'),('/etc','/private/etc')): - if folded==link or folded.startswith(link+'/'): - folded=target+folded[len(link):];break - report=pathlib.Path(folded) - for parent in [report,*report.parents]: - if parent.is_symlink(): raise ValueError('report path must not contain symlinks') - for root in roots: - root=root.resolve() - if report==root or root in report.parents or report in root.parents: - raise ValueError('report must not overlap inputs') - if report.exists(): raise ValueError('report already exists') - if not report.parent.is_dir(): raise ValueError('report parent must already exist') - report.mkdir(mode=0o700) - return report - -def main() -> int: - a=argparse.ArgumentParser(description=__doc__) - a.add_argument('--candidate',type=pathlib.Path,required=True) - a.add_argument('--handoff',type=pathlib.Path,required=True) - a.add_argument('--report',type=pathlib.Path,required=True) - a.add_argument('--suite',choices=sorted(SUITES),required=True) - a.add_argument('--sparkle',type=pathlib.Path) - a.add_argument('--timeout',type=int,default=1800,help='hard command timeout, not a completion-time estimate') - n=a.parse_args(); r=n.candidate.resolve(); h=n.handoff.resolve() - try: - if not (r/'prototype/build.sh').is_file() or not (h/'part9/tests/run.py').is_file(): raise ValueError('candidate or historical test entry missing') - if n.timeout<1 or n.timeout>14400: raise ValueError('invalid timeout') - out=external_report(n.report,[r,h,P]); before=inventory(r) - except (ValueError,OSError) as e: print('REFUSED:',e,file=sys.stderr); return 2 - meta={'suite':n.suite,'environment':platform.platform(),'candidate_sha256':hashlib.sha256(json.dumps(before,sort_keys=True).encode()).hexdigest(),'source_file_count':len(before),'real_cli':False,'real_devices':False,'raw_logs_may_contain_local_paths':True} - if n.suite=='mac-build': - cmd=[sys.executable,'-B',str(P/'tools/run-mac-check.py'),'--candidate',str(r),'--report',str(out/'mac'),'--timeout',str(n.timeout)] - if n.sparkle: cmd += ['--sparkle',str(n.sparkle)] - return execute(cmd,out,meta,r,before,n.timeout+60) - with tempfile.TemporaryDirectory(prefix='ws2-final-suite-') as temp: - work=pathlib.Path(temp)/'part9';shutil.copytree(h/'part9',work) - shutil.rmtree(work/'validation',ignore_errors=True);(work/'validation').mkdir() - # legacy 两批由 part9 的 run-previous 转发给「与本仓库适配过的」part7 回归脚本; - # 那个脚本按临时目录的兄弟路径找 part7,所以这里把它一并复制过去。 - if n.suite.startswith('legacy-') and (h/'part7').is_dir(): - shutil.copytree(h/'part7',pathlib.Path(temp)/'part7') - prefix=[sys.executable,'-B'] - if n.suite in ('window-core','frame'): - cmd=prefix+[str(work/'tests/run.py'),'--repo',str(r),'--suite','regression' if n.suite=='window-core' else 'frame'] - elif n.suite=='foundation':cmd=prefix+[str(work/'tests/check-build.py'),'--repo',str(r)] - else: - name={'duo':'duo','input':'part8-input','flow':'part7-flow','native':'part7-native','legacy-foundation':'legacy-foundation','legacy-process':'legacy-process'}[n.suite] - # 本仓库把 part1..part6 的原始测试留在归档 docs/handoff/chatgpt-review-2/ 里, - # part7/part8/part9 的 runner 在 tests/;legacy 两套要用归档当 history。 - history=h - if name.startswith('legacy-'): - archive=r/'docs/handoff/chatgpt-review-2' - if (archive/'part6/tests').is_dir():history=archive - cmd=prefix+[str(work/'tests/run-previous.py'),'--repo',str(r),'--history',str(history),'--suite',name] - code=execute(cmd,out,meta,r,before,n.timeout) - shutil.copytree(work/'validation',out/'raw-suite-evidence') - return code - -def execute(cmd,out,meta,root,before,timeout): - t=time.monotonic();meta['argv']=cmd - try: - v=subprocess.run(cmd,capture_output=True,timeout=timeout) - code=v.returncode;stdout=v.stdout;stderr=v.stderr - meta['status']='PASSED' if code==0 else ('NOT_RUN' if code==78 else 'FAILED') - except subprocess.TimeoutExpired as e: - code=124; stdout=e.stdout or b'';stderr=e.stderr or b'';meta['status']='TIMED_OUT' - except OSError as e: - code=127;stdout=b'';stderr=str(e).encode();meta['status']='FAILED' - meta.update(exit_code=code,elapsed_seconds=time.monotonic()-t,candidate_unchanged=inventory(root)==before) - if not meta['candidate_unchanged']:meta['status']='FAILED_INPUT_CHANGED';code=2;meta['exit_code']=code - (out/'stdout.txt').write_bytes(stdout);(out/'stderr.txt').write_bytes(stderr) - meta['logs_sha256']={p:hashlib.sha256((out/p).read_bytes()).hexdigest() for p in ('stdout.txt','stderr.txt')} - (out/'result.json').write_text(json.dumps(meta,ensure_ascii=False,indent=2)+'\n') - print(json.dumps({'suite':meta['suite'],'status':meta['status'],'exit_code':code,'report':str(out)},ensure_ascii=False)) - return code -if __name__=='__main__': raise SystemExit(main()) diff --git a/tests/archive/part10/tools/run-mac-check.py b/tests/archive/part10/tools/run-mac-check.py deleted file mode 100644 index 19c7e718..00000000 --- a/tests/archive/part10/tools/run-mac-check.py +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env python3 -"""Isolated full build --check only. Does not sign, launch, replace, or publish an app.""" -from __future__ import annotations -import argparse, hashlib, json, pathlib, platform, plistlib, shutil, subprocess, sys, tempfile, time -from importlib.util import spec_from_file_location,module_from_spec -s=spec_from_file_location('final_runner',pathlib.Path(__file__).with_name('run-final.py'));m=module_from_spec(s);s.loader.exec_module(m) -def main(): - p=argparse.ArgumentParser(description=__doc__);p.add_argument('--candidate',required=True,type=pathlib.Path);p.add_argument('--report',required=True,type=pathlib.Path);p.add_argument('--sparkle',type=pathlib.Path);p.add_argument('--timeout',type=int,default=1800);n=p.parse_args();r=n.candidate.resolve() - try: - if not (r/'prototype/build.sh').is_file():raise ValueError('missing build.sh') - if n.timeout<1 or n.timeout>14400:raise ValueError('invalid timeout') - out=m.external_report(n.report,[r,pathlib.Path(__file__).resolve().parent.parent]);before=m.inventory(r) - except (ValueError,OSError) as e:print('REFUSED:',e,file=sys.stderr);return 2 - state={'environment':platform.platform(),'sdk_build':'NOT_RUN','signing':'NOT_RUN','application_launch':'NOT_RUN','candidate_unchanged':True,'commands':[]} - def finish(code,reason): - state.update(exit_code=code,reason=reason,candidate_unchanged=m.inventory(r)==before) - if not state['candidate_unchanged']:state.update(exit_code=2,reason='input changed');code=2 - (out/'result.json').write_text(json.dumps(state,ensure_ascii=False,indent=2)+'\n');print(json.dumps(state,ensure_ascii=False));return code - if platform.system()!='Darwin':return finish(78,'NOT RUN: requires a real macOS SDK and host') - fw=(n.sparkle.resolve() if n.sparkle else r/'prototype/Vendor/Sparkle.framework') - info=fw/'Resources/Info.plist' - try: - if not info.is_file():info=fw/'Versions/B/Resources/Info.plist' - ver=plistlib.loads(info.read_bytes()).get('CFBundleShortVersionString') - if ver!='2.10.0':raise ValueError('Sparkle version must match pinned 2.10.0, not auto-upgraded') - if not (fw/'Versions/B/Sparkle').is_file():raise ValueError('missing pinned framework binary') - except (OSError,ValueError,plistlib.InvalidFileException) as e:return finish(2,'PREPARATION_FAILED: '+str(e)) - def command(argv,cwd=None): - start=time.monotonic() - try: - q=subprocess.run(argv,cwd=cwd,capture_output=True,timeout=n.timeout);code=q.returncode;stdout=q.stdout;stderr=q.stderr - except subprocess.TimeoutExpired as e:code=124;stdout=e.stdout or b'';stderr=e.stderr or b'' - except OSError as e:code=127;stdout=b'';stderr=str(e).encode() - number=len(state['commands']);(out/f'{number:02d}-stdout.txt').write_bytes(stdout);(out/f'{number:02d}-stderr.txt').write_bytes(stderr) - state['commands'].append({'argv':list(map(str,argv)),'cwd':str(cwd) if cwd else None,'exit_code':code,'elapsed_seconds':time.monotonic()-start,'stdout':f'{number:02d}-stdout.txt','stderr':f'{number:02d}-stderr.txt'}) - return code - for c in [['sw_vers'],['xcodebuild','-version'],['xcrun','--sdk','macosx','--show-sdk-version'],['xcrun','--find','swiftc'],['swiftc','--version']]: - ec=command(c) - if ec:return finish(ec,'PREPARATION_FAILED: toolchain probe') - # Whole trusted source snapshot; do not exclude *.app globally (Sparkle contains its own app). - with tempfile.TemporaryDirectory(prefix='ws2-final-mac-') as t: - copy=pathlib.Path(t)/'candidate' - def ignore(directory,names):return [x for x in names if x in {'.git','.build','local-codesign.env','WindowShade.app','dist','__pycache__'}] - shutil.copytree(r,copy,symlinks=True,ignore=ignore) - target=copy/'prototype/Vendor/Sparkle.framework';target.parent.mkdir(parents=True,exist_ok=True) - if target.exists():shutil.rmtree(target) - shutil.copytree(fw,target,symlinks=True) - state['framework_version']=ver;state['framework_binary_sha256']=hashlib.sha256((fw/'Versions/B/Sparkle').read_bytes()).hexdigest() - ec=command(['bash','build.sh','--check'],copy/'prototype') - state['sdk_build']='PASSED' if ec==0 else 'FAILED' - return finish(ec,'SDK build result only; no runtime or release certification') -if __name__=='__main__':raise SystemExit(main()) diff --git a/tests/archive/part10/tools/stage.py b/tests/archive/part10/tools/stage.py deleted file mode 100644 index f0a32566..00000000 --- a/tests/archive/part10/tools/stage.py +++ /dev/null @@ -1,120 +0,0 @@ -#!/usr/bin/env python3 -"""Apply the part10 overlay only to an exact clean v9 candidate. Never edits the input.""" -from __future__ import annotations -import argparse, hashlib, json, os, pathlib, shutil, sys - -class StageError(ValueError): - pass - -def digest(path: pathlib.Path) -> str: - return hashlib.sha256(path.read_bytes()).hexdigest() - -def relative(value: str) -> pathlib.PurePosixPath: - if not isinstance(value, str) or not value or '\\' in value or '\x00' in value: - raise StageError('invalid relative path') - p = pathlib.PurePosixPath(value) - if p.is_absolute() or '..' in p.parts or '.' in p.parts or str(p) != value: - raise StageError('non-canonical relative path: ' + value) - return p - -def reject_symlink_chain(path: pathlib.Path) -> None: - # macOS 的 /var、/tmp、/etc 是 Apple 自己的根级符号链接(Linux 上是真目录); - # 先按系统事实规范化这三个前缀,其余任何一段是符号链接仍然拒绝。 - resolved = str(path) - for link, target in (('/var', '/private/var'), ('/tmp', '/private/tmp'), ('/etc', '/private/etc')): - if resolved == link or resolved.startswith(link + '/'): - resolved = target + resolved[len(link):] - break - for item in [pathlib.Path(resolved), *pathlib.Path(resolved).parents]: - if item.is_symlink(): - raise StageError('symlink in input/output path: ' + str(item)) - -def inventory(root: pathlib.Path) -> dict[str, str]: - reject_symlink_chain(root) - if not root.is_dir(): - raise StageError('not a directory: ' + str(root)) - output = {} - for current, dirs, files in os.walk(root, followlinks=False): - for name in dirs + files: - p = pathlib.Path(current) / name - if p.is_symlink(): - raise StageError('symlink is not admitted: ' + str(p)) - for name in files: - p = pathlib.Path(current) / name - if not p.is_file(): - raise StageError('non-regular input: ' + str(p)) - output[p.relative_to(root).as_posix()] = digest(p) - return output - -def apply(package: pathlib.Path, base: pathlib.Path, out: pathlib.Path) -> dict: - for path in (package, base, out): - reject_symlink_chain(path.absolute()) - # 全用 resolve():macOS 上 /var 是符号链接,混用 absolute() 会让“输出在输入内”的比较失配。 - package, base, out = package.resolve(), base.resolve(), out.resolve() - if out.exists() or out.is_symlink(): - raise StageError('output already exists') - if not out.parent.is_dir(): - raise StageError('output parent must already exist') - for source in (base, package): - if out == source or source in out.parents or out in source.parents: - raise StageError('output overlaps input') - manifest = json.loads((package / 'manifest.json').read_text()) - expected = json.loads((package / 'sources/base-files.json').read_text()) - for key in expected: - relative(key) - if inventory(base) != expected: - raise StageError('base file set or SHA256 differs from v9') - changes = manifest['changes'] - keys = [entry['path'] for entry in changes] - if len(keys) != len(set(keys)): - raise StageError('duplicate change path') - final = dict(expected) - for entry in changes: - path = relative(entry['path']).as_posix() - if entry.get('base_sha256') != expected.get(path): - raise StageError('incorrect per-file base hash: ' + path) - if entry['operation'] not in ('add', 'replace') or (entry['operation'] == 'add') != (path not in expected): - raise StageError('incorrect change operation: ' + path) - source = package / 'overlay' / path - reject_symlink_chain(source) - if not source.is_file() or digest(source) != entry['sha256']: - raise StageError('overlay missing or hash differs: ' + path) - final[path] = entry['sha256'] - if inventory(package / 'overlay') != {x['path']: x['sha256'] for x in changes}: - raise StageError('overlay has unlisted or missing files') - if len(final) != manifest['result_file_count']: - raise StageError('incorrect result count') - # mkdir is an atomic refusal when another caller has already created this output. - # This is a local staging tool, not a sandbox against hostile same-UID file replacement. - out.mkdir(mode=0o700) - try: - shutil.copytree(base, out, dirs_exist_ok=True, copy_function=shutil.copy2) - for entry in changes: - destination = out / entry['path'] - destination.parent.mkdir(parents=True, exist_ok=True) - shutil.copy2(package / 'overlay' / entry['path'], destination) - if inventory(out) != final or inventory(base) != expected: - raise StageError('post-copy integrity check failed') - except Exception: - shutil.rmtree(out) - raise - return {'status': 'STAGED', 'base_file_count': len(expected), 'result_file_count': len(final), - 'replaced': sum(x['operation'] == 'replace' for x in changes), - 'added': sum(x['operation'] == 'add' for x in changes), 'out': str(out), - 'application_build': 'NOT RUN', 'runtime': 'NOT RUN'} - -def main() -> int: - p = argparse.ArgumentParser(description=__doc__) - p.add_argument('--base', required=True, type=pathlib.Path) - p.add_argument('--out', required=True, type=pathlib.Path) - p.add_argument('--package', type=pathlib.Path, default=pathlib.Path(__file__).resolve().parent.parent) - args = p.parse_args() - try: - result = apply(args.package, args.base, args.out) - except (StageError, OSError, ValueError, KeyError, TypeError) as e: - print('REFUSED: ' + str(e), file=sys.stderr) - return 2 - print(json.dumps(result, ensure_ascii=False, indent=2)) - return 0 -if __name__ == '__main__': - raise SystemExit(main()) diff --git a/tests/archive/part10/tools/verify-package.py b/tests/archive/part10/tools/verify-package.py deleted file mode 100644 index cc94d591..00000000 --- a/tests/archive/part10/tools/verify-package.py +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/env python3 -"""Verify the generated ZIP's paths, CRC and SHA256 tree without extracting it. - -This checks integrity against the enclosed manifest, not publisher authenticity. -""" -from __future__ import annotations -import argparse, hashlib, json, pathlib, stat, sys, zipfile - -def verify(path: pathlib.Path) -> dict: - with zipfile.ZipFile(path) as z: - infos=z.infolist() - if len(infos)>50000 or sum(i.file_size for i in infos)>512*1024*1024: - raise ValueError('archive exceeds verification budget') - names=set(); roots=set(); members={} - for i in infos: - p=pathlib.PurePosixPath(i.filename) - if '\\' in i.filename or '\x00' in i.filename or p.is_absolute() or '..' in p.parts: - raise ValueError('unsafe archive path') - if i.filename in names: raise ValueError('duplicate archive entry') - names.add(i.filename) - if stat.S_ISLNK(i.external_attr >> 16): raise ValueError('symlink entry') - if not p.parts or p.as_posix()!=i.filename.rstrip('/'): - raise ValueError('non-canonical archive path') - roots.add(p.parts[0]) - if not i.is_dir(): - if len(p.parts)<2 or i.file_size>128*1024*1024: raise ValueError('invalid member') - members[pathlib.PurePosixPath(*p.parts[1:]).as_posix()]=i - if len(roots)!=1: raise ValueError('expected one package root') - mi=members.get('MANIFEST.sha256.json') - if mi is None or mi.file_size>16*1024*1024: raise ValueError('manifest missing or oversized') - manifest=json.loads(z.read(mi)) - if manifest.get('format')!='sha256-tree-v1' or not isinstance(manifest.get('files'),dict): - raise ValueError('unsupported manifest') - expected=manifest['files'] - if set(expected)!=(set(members)-{'MANIFEST.sha256.json'}): - raise ValueError('manifest file set differs') - bad=z.testzip() - if bad: raise ValueError('CRC failure: '+bad) - for name,want in expected.items(): - digest=hashlib.sha256() - with z.open(members[name]) as f: - for chunk in iter(lambda:f.read(1024*1024),b''): digest.update(chunk) - if digest.hexdigest()!=want: raise ValueError('SHA256 differs: '+name) - return {'archive':path.name,'status':'VERIFIED','files_including_manifest':len(members), - 'manifest_members_verified':len(expected),'crc':'PASS', - 'archive_sha256':hashlib.sha256(path.read_bytes()).hexdigest(), - 'authenticity_or_application_test':False} - -def main()->int: - p=argparse.ArgumentParser(description=__doc__);p.add_argument('archive',type=pathlib.Path);a=p.parse_args() - try: result=verify(a.archive) - except (OSError,ValueError,KeyError,TypeError,zipfile.BadZipFile) as e: - print('REFUSED: '+str(e),file=sys.stderr);return 2 - print(json.dumps(result,ensure_ascii=False,indent=2));return 0 -if __name__=='__main__':raise SystemExit(main()) diff --git a/tests/archive/part10/validation/build-entry-tests.json b/tests/archive/part10/validation/build-entry-tests.json deleted file mode 100644 index ebed78be..00000000 --- a/tests/archive/part10/validation/build-entry-tests.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "tests": 12, - "failures": 0, - "errors": 0, - "kind": "ACTUAL_SHELL_MOCKED_SDK_COMPILER", - "mac_build": "NOT_RUN", - "cases": [ - { - "test": "__main__.Test.test_01_check_does_not_source_signing", - "status": "PASSED" - }, - { - "test": "__main__.Test.test_02_main_and_guard_strict", - "status": "PASSED" - }, - { - "test": "__main__.Test.test_03_both_normal_invocations_use_same_flags", - "status": "PASSED" - }, - { - "test": "__main__.Test.test_04_no_sign_or_launch_or_bundle", - "status": "PASSED" - }, - { - "test": "__main__.Test.test_05_c_failure_propagates", - "status": "PASSED" - }, - { - "test": "__main__.Test.test_06_metal_failure_propagates", - "status": "PASSED" - }, - { - "test": "__main__.Test.test_07_metallib_failure_propagates", - "status": "PASSED" - }, - { - "test": "__main__.Test.test_08_main_failure_skips_guard", - "status": "PASSED" - }, - { - "test": "__main__.Test.test_09_guard_failure_no_success_message", - "status": "PASSED" - }, - { - "test": "__main__.Test.test_10_native_and_main_same_target", - "status": "PASSED" - }, - { - "test": "__main__.Test.test_11_temporary_sources_cleaned", - "status": "PASSED" - }, - { - "test": "__main__.Test.test_12_glass_checks_header_not_version", - "status": "PASSED" - } - ], - "baseline": { - "exit_code": 97, - "signing_config_executed": true, - "stdout": "", - "stderr": "", - "explicit_language_flag_count": 0 - } -} diff --git a/tests/archive/part10/validation/handoff-tool-tests.json b/tests/archive/part10/validation/handoff-tool-tests.json deleted file mode 100644 index 93b74a9c..00000000 --- a/tests/archive/part10/validation/handoff-tool-tests.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "kind": "DOCUMENT_AND_TOOL_TESTS", - "tests": 16, - "failures": 0, - "errors": 0, - "cases": [ - { - "name": "__main__.Tests.test_01_fresh_report_private", - "status": "PASSED" - }, - { - "name": "__main__.Tests.test_02_existing_report_not_overwritten", - "status": "PASSED" - }, - { - "name": "__main__.Tests.test_03_nested_report_rejected", - "status": "PASSED" - }, - { - "name": "__main__.Tests.test_04_ancestor_report_rejected", - "status": "PASSED" - }, - { - "name": "__main__.Tests.test_05_symlink_parent_rejected", - "status": "PASSED" - }, - { - "name": "__main__.Tests.test_06_missing_parent_rejected", - "status": "PASSED" - }, - { - "name": "__main__.Tests.test_07_file_output_rejected", - "status": "PASSED" - }, - { - "name": "__main__.Tests.test_08_inventory_sees_content_change", - "status": "PASSED" - }, - { - "name": "__main__.Tests.test_09_inventory_does_not_dereference_link", - "status": "PASSED" - }, - { - "name": "__main__.Tests.test_10_all_original_axes_present", - "status": "PASSED" - }, - { - "name": "__main__.Tests.test_11_dependencies_acyclic_and_valid", - "status": "PASSED" - }, - { - "name": "__main__.Tests.test_12_all_workorders_and_actual_paths_exist", - "status": "PASSED" - }, - { - "name": "__main__.Tests.test_13_no_original_work_package_lost", - "status": "PASSED" - }, - { - "name": "__main__.Tests.test_14_code_map_hashes_and_lines", - "status": "PASSED" - }, - { - "name": "__main__.Tests.test_15_candidate_final_entry_is_real", - "status": "PASSED" - }, - { - "name": "__main__.Tests.test_16_carplay_not_artificially_blocked_by_companion", - "status": "PASSED" - } - ] -} diff --git a/tests/archive/part10/validation/journal-id-tests.json b/tests/archive/part10/validation/journal-id-tests.json deleted file mode 100644 index 6c327611..00000000 --- a/tests/archive/part10/validation/journal-id-tests.json +++ /dev/null @@ -1,212 +0,0 @@ -{ - "kind": "EXACT_PRODUCTION_FUNCTIONS_FOUNDATION_HOST", - "appkit": "NOT_RUN", - "cases": [ - { - "name": "one", - "status": "PASSED" - }, - { - "name": "max", - "status": "PASSED" - }, - { - "name": "integer_double", - "status": "PASSED" - }, - { - "name": "NSNumber", - "status": "PASSED" - }, - { - "name": "missing", - "status": "PASSED" - }, - { - "name": "zero", - "status": "PASSED" - }, - { - "name": "negative", - "status": "PASSED" - }, - { - "name": "fractional", - "status": "PASSED" - }, - { - "name": "nan", - "status": "PASSED" - }, - { - "name": "positive_infinity", - "status": "PASSED" - }, - { - "name": "negative_infinity", - "status": "PASSED" - }, - { - "name": "above_uint32", - "status": "PASSED" - }, - { - "name": "large_finite", - "status": "PASSED" - }, - { - "name": "bool_true", - "status": "PASSED" - }, - { - "name": "bool_false", - "status": "PASSED" - }, - { - "name": "string", - "status": "PASSED" - }, - { - "name": "array", - "status": "PASSED" - }, - { - "name": "dictionary", - "status": "PASSED" - }, - { - "name": "int64_max", - "status": "PASSED" - }, - { - "name": "uint64_max", - "status": "PASSED" - }, - { - "name": "negative_fraction", - "status": "PASSED" - }, - { - "name": "leading_zero_string", - "status": "PASSED" - }, - { - "name": "decimal_valid", - "status": "PASSED" - }, - { - "name": "empty", - "status": "PASSED" - }, - { - "name": "absent_key", - "status": "PASSED" - } - ], - "baseline": [ - { - "input": "nan", - "exit_code": -5, - "stdout": "", - "trap_observed": true - }, - { - "input": "over", - "exit_code": -5, - "stdout": "", - "trap_observed": true - }, - { - "input": "bool", - "exit_code": 0, - "stdout": "Optional(1)\n", - "trap_observed": false - }, - { - "input": "fraction", - "exit_code": 0, - "stdout": "Optional(1)\n", - "trap_observed": false - } - ], - "commands": [ - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-parse-as-library", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-journal-id-o9au6eq9/test.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-journal-id-o9au6eq9/test" - ], - "exit_code": 0, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-journal-id-o9au6eq9/test" - ], - "exit_code": 0, - "stdout": "PASS one\nPASS max\nPASS integer_double\nPASS NSNumber\nPASS missing\nPASS zero\nPASS negative\nPASS fractional\nPASS nan\nPASS positive_infinity\nPASS negative_infinity\nPASS above_uint32\nPASS large_finite\nPASS bool_true\nPASS bool_false\nPASS string\nPASS array\nPASS dictionary\nPASS int64_max\nPASS uint64_max\nPASS negative_fraction\nPASS leading_zero_string\nPASS decimal_valid\nPASS empty\nPASS absent_key\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-journal-id-o9au6eq9/old.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-journal-id-o9au6eq9/old" - ], - "exit_code": 0, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-journal-id-o9au6eq9/old", - "nan" - ], - "exit_code": -5, - "stdout": "", - "stderr": "Swift/arm64e-apple-macos.swiftinterface:45309: Fatal error: Double value cannot be converted to Int because it is either infinite or NaN\n" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-journal-id-o9au6eq9/old", - "over" - ], - "exit_code": -5, - "stdout": "", - "stderr": "Swift/arm64e-apple-macos.swiftinterface:13743: Fatal error: Not enough bits to represent the passed value\n" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-journal-id-o9au6eq9/old", - "bool" - ], - "exit_code": 0, - "stdout": "Optional(1)\n", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-journal-id-o9au6eq9/old", - "fraction" - ], - "exit_code": 0, - "stdout": "Optional(1)\n", - "stderr": "" - } - ], - "test_count": 25, - "passed": true, - "source_sha256": "5ffdb659b88cba3b72a346192fef9ba0c6a0eb22fad68aebd0681c09eb5b85aa" -} diff --git a/tests/archive/part10/validation/tools-tests.json b/tests/archive/part10/validation/tools-tests.json deleted file mode 100644 index e2dea158..00000000 --- a/tests/archive/part10/validation/tools-tests.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "tests_run": 18, - "failures": 0, - "errors": 0, - "cases": [ - { - "name": "__main__.Tests.test_bad_overlay", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_base_symlink", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_duplicate_manifest_path", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_existing_directory", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_existing_file", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_extra_base", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_extra_overlay", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_missing_base", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_missing_overlay", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_nested_output", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_overlay_symlink", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_package_output", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_success_and_original", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_symlink_parent", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_traversal", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_wrong_base", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_wrong_base_sha", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_wrong_count", - "result": "PASS" - } - ] -} diff --git "a/tests/archive/part10/workorders/W00-\345\206\273\347\273\223\345\200\231\351\200\211\344\270\216\347\234\237\345\256\236\346\236\204\345\273\272.md" "b/tests/archive/part10/workorders/W00-\345\206\273\347\273\223\345\200\231\351\200\211\344\270\216\347\234\237\345\256\236\346\236\204\345\273\272.md" deleted file mode 100644 index df29b1c2..00000000 --- "a/tests/archive/part10/workorders/W00-\345\206\273\347\273\223\345\200\231\351\200\211\344\270\216\347\234\237\345\256\236\346\236\204\345\273\272.md" +++ /dev/null @@ -1,42 +0,0 @@ -# W00 冻结候选与真实构建 - -负责人:集成人;主模型复核。合入依赖:无。 - -## 实际阅读与修改范围 - -`AGENTS.md` - -`docs/handoff/START-HERE-deepseek.md` - -`prototype/build.sh` - -`prototype/Native/WS2Child.c` - -`prototype/Native/module.modulemap` - - -## 已经交付,不要重写 - -第十份 build.sh 修正已经在候选中。四次 swiftc 共用同一语言检查参数,主程序仍保留整模块优化,看护仍按原 -O。--check 不执行 local-codesign.env;正常签名路径没有获准运行。原生 C、Metal、Swift 和 Sparkle 不得缺项。 - -## 执行顺序 - -先保存当前 HEAD、未提交改动与候选内容摘要;这是检查,不授权提交。干净 v9 可以用 part10/tools/stage.py 输出新目录;已有较新工作区按 base-sources/overlay 三方合并。三个入口文档的指向和 build.sh 一起接入,不能让旧 START-HERE 继续指示在 main 上盲改。 - -用外部新报告目录跑 window-core、frame、duo、foundation,再在真实 Mac 跑 mac-build。框架必须是既定 2.10.0 且包含真正编译需要的 Headers/Modules/二进制;不得从裁剪后的发布 app 提取不完整框架后通过删除 import 解决。runner 不自动安装/升级依赖。 - -编译错误按顺序解决:缺文件/模块 → 确切 SDK 符号与可用性 → actor/Sendable/回调归属 → C/部署架构 → Swift 优化/链接。先处理第一项产生的连锁报错,不一次改几十个无关文件。涉及回调,明确来源队列、跨域值和最终 ticket 检查;不要全局 unchecked Sendable 或把所有函数塞 MainActor。 - -## 验收 - -B00-1:check 主程序与看护都包含语言参数,实际 SDK 优化编译和链接退出0。 - -B00-2:含有可执行文本的 local-codesign.env 在 check 中未读取;App bundle、用户 home、签名/更新源未改变。替身测试覆盖 shell 路径,实际 Mac 核对文件变化范围。 - -B00-3:编译失败时保留真实退出码;不得只取管道最后一段的0。构建来源清单包括全部实际文件,不通过删实验源码取得通过。 - -B00-4:arm64 与项目实际支持的其他架构分别列结果。较新 SDK 能编译不证明 macOS14 能运行;14 的最低版本运行是额外证据。没有第二环境就明确未测。 - -## 交回 - -完整命令、版本、首个失败与修复、最终日志、候选前后摘要。不启动真实 CLI 或 App 来代替构建。此单失败时,后续仍可做独立研究,但不能扩大主程序接线后声称开始试用。 diff --git "a/tests/archive/part10/workorders/W01-\345\267\262\346\234\211\345\212\237\350\203\275\347\232\204\344\270\211\346\235\241\347\234\237\345\256\236\351\252\214\346\224\266.md" "b/tests/archive/part10/workorders/W01-\345\267\262\346\234\211\345\212\237\350\203\275\347\232\204\344\270\211\346\235\241\347\234\237\345\256\236\351\252\214\346\224\266.md" deleted file mode 100644 index 76372965..00000000 --- "a/tests/archive/part10/workorders/W01-\345\267\262\346\234\211\345\212\237\350\203\275\347\232\204\344\270\211\346\235\241\347\234\237\345\256\236\351\252\214\346\224\266.md" +++ /dev/null @@ -1,44 +0,0 @@ -# W01 已有功能的三条真实验收 - -负责人:主模型与获准的 Mac 执行者。合入依赖:W00。 - -## 实际阅读与修改范围 - -`prototype/App/WS2OwnedLaunchController.swift` - -`prototype/App/WS2OwnedSessionView.swift` - -`prototype/App/WS2AppRuntime.swift` - -`prototype/App/WS2DeviceActionHost.swift` - -`prototype/App/WS2ModelPickerView.swift` - -`prototype/App/FoldCompletion.swift` - -`prototype/App/FoldTransaction.swift` - -`prototype/Recovery/Journal.swift` - - -## 三条路径分开验证 - -第一条:本地选择目录/程序 → 同意运行 → 固定版本与独立配置核对 → 必要的用户登录 → 实际模型目录 → 一次只读请求 → 匹配最终事件 → 停止/断开/回收。沿用 part7 的 MAC01–15,不重建 LaunchController。不需工具的文本查询可用于最初测试,但不能用它证明文件读取沙盒。 - -第二条:进入当前模型页 → 本地启用一只真实手柄 → 等 neutral → 按下确认时固定稳定ID → 松开使用该模型 → 回到同一会话。沿用 part8 input 场景,确认按下后刷新、鼠标重选、失焦、断连都取消原动作。选模型不发送草稿;审批不接受手柄确认。 - -第三条:测试应用的原窗口收起 → 对应事务确认 → 人工展开 → 同窗立即重收 → 延迟/过期旧回调拒绝。沿用 part9 M01–M18,核对 unknown 时仍有原恢复入口和记录,不能用刘海卡片截图证明外部窗口真的恢复。 - -## 真实测试的许可与数据 - -使用空项目、临时可恢复窗口、明确允许的账号/设备;不退出日用 WindowShade、不操纵未保存窗口。程序来源由本地选择并审查,--version 也是执行本地代码;没有运行同意不做预检。只读入口继续拒绝额外权限。 - -独立 CODEX_HOME 内可能有真实凭据和 CLI 历史。只记录状态与结构,不提交 auth.json、登录URL里的凭据或完整回复私密内容。实际字段不同于固定 snapshot 时交最小去标识样本,由主模型修改兼容层,不自动升级CLI。 - -## 失败的处理 - -收到 config/read 缺字段:停止连接,记录缺哪个字段;不要默认 false。真实手柄没有所需按钮:显示不可用并保留本地操作,别硬映射系统按键。AX未知:保留待核对,别补另一种隐藏副作用。进程关闭无回收证据:显示结果未定,不能放行新启动或宣称全树清理。 - -## 此单结束的条件 - -三条各有独立真实报告;一条未测不阻止另一条证据交付,但整单保持未闭合。通过后才允许相应局部试用,不把它等同于全项目完成。真实原生审批不在此单开放,交 W04。 diff --git "a/tests/archive/part10/workorders/W02-\347\225\252\350\214\204\351\222\237\345\256\236\351\231\205\347\252\227\345\217\243\346\225\210\346\236\234\344\270\216\346\201\242\345\244\215.md" "b/tests/archive/part10/workorders/W02-\347\225\252\350\214\204\351\222\237\345\256\236\351\231\205\347\252\227\345\217\243\346\225\210\346\236\234\344\270\216\346\201\242\345\244\215.md" deleted file mode 100644 index 6f1593ba..00000000 --- "a/tests/archive/part10/workorders/W02-\347\225\252\350\214\204\351\222\237\345\256\236\351\231\205\347\252\227\345\217\243\346\225\210\346\236\234\344\270\216\346\201\242\345\244\215.md" +++ /dev/null @@ -1,56 +0,0 @@ -# W02 番茄钟实际窗口效果与恢复 - -负责人:主模型负责设计与复核;执行者按端口施工。合入依赖:W01。 - -## 实际阅读与修改范围 - -`prototype/Core/WS2FocusEffectPlan.swift` - -`prototype/Core/WS2FocusWindowOwnership.swift` - -`prototype/Support/WS2FocusEffectExecutor.swift` - -`prototype/App/WS2AppRuntime.swift` - -`prototype/App/FocusTimerHost.swift` - -`prototype/App/FocusSession.swift` - -`prototype/App/ShadeController.swift` - -`prototype/App/FoldCompletion.swift` - -`prototype/Recovery/Journal.swift` - -`prototype/Recovery/Rescue.swift` - - -## 已有接口与真正缺口 - -`WS2FocusMutationPort.perform(_:mayCommit:)`、FocusEffectExecutor、计划与回执均已有。缺的是调用真实窗口与原恢复系统的端口,不是另一个计时器。Runtime 的 focusWindowEffects 为可选接口,没有实际适配器时仍明确仅计时。 - -不要把 `App/FocusSession.swift` 中的旧“专注当前App”功能直接当作番茄钟。它已有自己的窗口组语义;核对可复用的方法,但不让两个状态机同时恢复同一窗口。 - -## 实际接法 - -在主模型审定的一个 App 适配文件中实现现有 mutation protocol;文件名在提交前登记,不建第二套 Journal。用户指定范围转成当前可核对的窗口快照;创建本次 run/effect 身份,记录进程启动身份、当前窗口与原 fold transaction。缺事实的目标跳过并显示部分未处理。 - -专注开始只处理用户范围内符合规格的聊天窗口;休息处理该次已确认范围,不枚举未知新应用直接全部隐藏。25/5、50/10 的既有计时规则与修改只影响下一轮不变。这是最先验收的受限子范围,不删除原规格的“休息时全部收起”终态目标;扩大准入范围需要对应实际验收与本地知情启用,不能通过后台刷新暗中扩展。 - -原 journal 写 prepare 成功后,绑定一次实际 fold transaction/token,再进入隐藏。沿 v9 typed observation 返回真实结果;不要调用具有 toggle 语义的 tuckAll,也不要把 `shaded` 字典出现条目当成功。 - -completed 只在该事务隐藏已确认时返回,并推进本地观察/操作版本;unchanged 表示确认无需改动;userChanged 放弃程序恢复权;unknown 保留待核对且不自动重写。外部操作无法完整观测时,不能伪造“未被用户动过”。 - -恢复前重新匹配 run/effect、进程、窗口对象、当前方法/几何及未被已知用户操作覆盖的归属。匹配不全就留人工恢复。物理动作失败时不要提前清恢复账;成功观察后才按当前事务清理,旧完成不能清理新记录。 - -## 持久化及取消 - -同次运行先验证,再扩展原 journal 的显式版本字段保存 run/effect/attempt。旧 v3 能读且保持手动恢复;新版本不认识时不猜字段。prepare 到 committed/unknown 的迁移保持原写前意图顺序。崩溃、锁屏、睡眠分别测试,锁屏不为了清理自动展示私人窗口。 - -计时结束时前一隐藏仍在途:不假取消副作用;晚到成功进入同一执行器的核对与恢复计划。已知用户改动始终优先。跨重启无法重新识别的记录保持待人工核对,不重放旧坐标。 - -## 必测反例 - -T3-1 写prepare失败,没有物理动作;T3-2 隐藏已经发生但确认超时,保留unknown;T3-3 结束后旧隐藏完成,不丢失补偿;T3-4 用户移动/展开后不强制恢复;T3-5 PID/窗口号重用拒绝;T3-6 锁后解锁不重放旧任务;T3-7 原journal与新版本互读/损坏隔离;T3-8 部分窗口失败计时继续且结果可见。 - -本份并未实现或运行这个真实端口。只有以上实际调用者与真机行为齐全,才能把 T3 控件从“仅计时”改成可用。 diff --git "a/tests/archive/part10/workorders/W03-\346\205\242AX\344\270\216\350\277\207\346\234\237\345\233\236\350\260\203\347\232\204\346\234\200\345\220\216\346\262\273\347\220\206.md" "b/tests/archive/part10/workorders/W03-\346\205\242AX\344\270\216\350\277\207\346\234\237\345\233\236\350\260\203\347\232\204\346\234\200\345\220\216\346\262\273\347\220\206.md" deleted file mode 100644 index 20e326fe..00000000 --- "a/tests/archive/part10/workorders/W03-\346\205\242AX\344\270\216\350\277\207\346\234\237\345\233\236\350\260\203\347\232\204\346\234\200\345\220\216\346\262\273\347\220\206.md" +++ /dev/null @@ -1,38 +0,0 @@ -# W03 慢AX与过期回调的最后治理 - -负责人:窗口执行者;主模型审查并发与私有接口。合入依赖:W01。 - -## 实际阅读与修改范围 - -`prototype/App/Reconcile.swift` - -`prototype/Window/AXHelpers.swift` - -`prototype/App/WS2FoldCallbackGuard.swift` - -`prototype/Core/WS2FoldCallbackStamp.swift` - -`prototype/App/FoldTransaction.swift` - -`prototype/Effects/EffectFrameAwaiter.swift` - -`docs/performance.md` - - -## 不退回旧行为 - -v9 的 stamp、route、三态和异步整批通知已经存在。保留这些语义;这单解决跨应用调度与慢 IPC,不恢复“读不到即成功”、windowID批量结算或嵌套RunLoop。 - -先记录每应用一次实际AX读取耗时、并发数、样本年龄和丢弃原因,不采窗口标题/内容。用原 App 上的快/慢测试窗口对照,确认是否确有整轮阻塞。没有证据不要先把所有读取搬到更多线程。 - -有阻塞证据时,原 Reconcile 里保留每应用一个在途状态与下一次最早准入时间。全局在途默认最多4,各应用轮转;同应用未回不重发。一次回调只更新其原不可变结果,不能等待其他应用才呈现已返回结果,也不能提前释放真正还在执行的槽位。 - -超时仅使其结果失效,不宣称调用被取消。明确永久阻塞时的可见降级:相关自动巡检停用、保留人工恢复,其他能独立处理的应用继续。若要进程隔离,主模型审查IPC和AX对象如何重新创建、权限持有、有限队列与退出;不得把跨进程不可用对象直接序列化。 - -## SDK与能耗 - -按实际 SDK 确认 AX 超时设置的签名、作用对象和错误码;文档页壳不算契约。更短超时可能增加unknown,不可为了减少耗时把它改成成功。记录主线程停顿及wakeups;原默认值都是工程参数,不是承诺。 - -## 验收 - -一个慢应用不堵住快应用的新一轮;旧读取返回不修改新事务;连续锁/解锁不积累读取;同一应用并发不超过1;总并发不超过预算;禁用后不启动新读取。实际IPC未返回时如实显示仍占用,不能计为已释放。 diff --git "a/tests/archive/part10/workorders/W04-\345\216\237\347\224\237\346\211\271\345\207\206\344\270\216\345\244\226\351\203\250hook\345\210\206\345\210\253\346\216\245\351\200\232.md" "b/tests/archive/part10/workorders/W04-\345\216\237\347\224\237\346\211\271\345\207\206\344\270\216\345\244\226\351\203\250hook\345\210\206\345\210\253\346\216\245\351\200\232.md" deleted file mode 100644 index 57038147..00000000 --- "a/tests/archive/part10/workorders/W04-\345\216\237\347\224\237\346\211\271\345\207\206\344\270\216\345\244\226\351\203\250hook\345\210\206\345\210\253\346\216\245\351\200\232.md" +++ /dev/null @@ -1,48 +0,0 @@ -# W04 原生批准与外部hook分别接通 - -负责人:主模型独占授权策略;执行者不改安全决定。合入依赖:W01。 - -## 实际阅读与修改范围 - -`prototype/App/AuthorizationService.swift` - -`prototype/Core/AuthorizationLedger.swift` - -`prototype/App/WS2CodexApprovalHost.swift` - -`prototype/App/WS2OwnedCodexSession+Authorization.swift` - -`prototype/App/WS2OwnedLaunchController.swift` - -`prototype/Core/CodexWire.swift` - -`prototype/Support/WS2DuplexProcess.swift` - -`docs/agents-in-notch.md` - -`docs/handoff/deepseek-menu-agents.md` - - -## 两种宿主不得混为一条 - -owned app-server 由应用创建并负责响应,无法处理的审批必须拒绝/取消,不假设另一个UI接棒。外部终端的 hook 则应遵守该provider固定版本和事件阶段的原工具默认处理。App没运行时返回什么要以实际hook协议逐项验证,不能把 `{}` 定成所有场合的自动允许。 - -保留当前只读入口及默认拒绝提升。额外普通命令的允许路径需要独立明确的本地能力准入,不改变旧入口的静默默认。新的profile由主模型依据实际CLI有效配置审定,不能仅在UI写“只读”却后台打开工具。 - -## 一次普通命令批准的实线路径 - -真实request → 精确requestID/连接代次/thread/turn/cwd/完整命令快照 → 原生完整审阅 → 当前授权对象 → 系统认证 → 再核对目标与期限 → `AuthorizationService.consume`成功 → 同一writer一次性发送。UI摘要、设备名称和工具自称低风险不参与是否允许的判定。 - -请求排队过期、项目换代、锁态未知或认证取消,全部撤销。consume成功后发生断管/部分写入,保留结果未知,不退款式重建grant,不换连接重发accept。writer前与每批写入的当前上下文检查都保留。 - -文件没有可信diff时拒绝;网络范围和持久规则没有独立可信展示与授权时拒绝。不能把普通命令同意升级为允许整项目写入或未来同名命令。 - -## hook生产接入 - -复用既有A1会话与A2配置事务、socket/helper;配置预览、精确旧值比较、原子替换和失败回滚只在用户明确同意后执行。测试用独立临时home。Unix peer UID、socket路径替换、原程序不在、超时与重复request都留样本。 - -Claude 与 Codex 各自冻结实际版本、hook名称、输入/输出形状。没有读到该版本文档或实测消息时保留旁路,不猜TOML/JSON字段,不全局写用户配置。 - -## 合格条件 - -同一请求只consume一次、只接受一次;拒绝/取消/锁中晚回调无allow;两同名命令不同cwd不得共用批准;旧连接回复不影响新会话;命令在终端实际结果与UI一致。所有这些需要真实系统认证与固定CLI,schema和假后端只能覆盖一部分。 diff --git "a/tests/archive/part10/workorders/W05-\346\214\207\346\214\245\351\241\265\351\235\242\345\222\214\345\205\266\344\275\231\350\276\223\345\205\245\347\232\204\345\256\236\347\272\277\346\216\245\345\205\245.md" "b/tests/archive/part10/workorders/W05-\346\214\207\346\214\245\351\241\265\351\235\242\345\222\214\345\205\266\344\275\231\350\276\223\345\205\245\347\232\204\345\256\236\347\272\277\346\216\245\345\205\245.md" deleted file mode 100644 index 599f16a7..00000000 --- "a/tests/archive/part10/workorders/W05-\346\214\207\346\214\245\351\241\265\351\235\242\345\222\214\345\205\266\344\275\231\350\276\223\345\205\245\347\232\204\345\256\236\347\272\277\346\216\245\345\205\245.md" +++ /dev/null @@ -1,52 +0,0 @@ -# W05 指挥页面和其余输入的实线接入 - -负责人:执行者;A5/I4/I6及敏感动作由主模型复核。合入依赖:W01。 - -## 实际阅读与修改范围 - -`prototype/App/WS2ConductorView.swift` - -`prototype/App/WS2AgentSessionView.swift` - -`prototype/App/WS2AppRuntime.swift` - -`prototype/App/WS2DeviceActionHost.swift` - -`prototype/App/WS2GameControllerBridge.swift` - -`prototype/Core/WS2VisibleListInput.swift` - -`prototype/Core/WS2SelectionModel.swift` - -`prototype/Core/ConductorSession.swift` - -`prototype/Core/ConductorCapabilities.swift` - -`prototype/Core/HIDMappingTransaction.swift` - -`docs/input-devices.md` - -`docs/conductor-v2.md` - - -## 接状态,不再做展示样板 - -Runtime已有showSessions/showConductor;缺口是实际store订阅和typed intent。AgentSessions仍是会话来源,ConductorSession仍是指挥过程来源,Wire仍是助手协议来源。订阅在宿主创建时建立,关闭/切上下文时撤销,不在每秒tick创建新view。 - -当前 ConductorView 的会话动作包含数组索引形态。接生产时,在显示快照里将索引立刻转成稳定会话ID与revision;消费前复核。列表更新不得让旧index落到新会话。发送草稿固定按下时文字、模型与effort,marked text未完成则拒绝并保留草稿。 - -手柄模型页已接完候选,不重写其bridge。扩到会话/指挥时复用同一host、当前lease、neutral与一次性activation。真实按钮提示按设备布局核对,不能对所有设备写死A/B。审批出现或焦点离开立即cancel;重新回来不自动续旧许可。 - -## 其余设备按独立能力验收 - -HID:先特定VID/PID和usage的真实探针,再接单设备IOHID回调;不得劫持系统键盘。hidutil写入先比较设备当前值,保存本次拥有的差异,撤销只回滚仍属于本次的值,外部编辑优先。 - -鼠标:主动CGEventTap默认关闭;真实来源分类不能只看continuous。合成事件有可验证标签与防环;系统禁用tap/权限被撤回时保留系统输入,不能持续重装。 - -多触点:确切struct/callback ABI由主模型核对构建与设备,未知不准入。遥控器麦克风与触点分别检验,不从有按键推导有音频。录音须本地明确按住、释放/撤销立即停止,不录不可见后台内容。 - -桌面运动:began时固定目标,changed只对它更新,ended/cancelled归零;目标消失、租约切换或断连都取消。没有真实窗口sink时motionReady保持false,不能空closure。 - -## 验收 - -用户能从真实会话进入指挥、改变受支持模型/effort、生成并审阅草稿;每次操作在当前可见目标发生。不同设备使用同一语义动作但各有来源证据。误触、断连、输入法、重映射、与其他窗口工具共存、低电量及未授权状态逐项有结果。 diff --git "a/tests/archive/part10/workorders/W06-\347\224\265\351\207\217\345\256\236\346\227\266\346\264\273\345\212\250\345\222\214\345\205\250\351\203\250\345\216\237\345\205\245\345\217\243.md" "b/tests/archive/part10/workorders/W06-\347\224\265\351\207\217\345\256\236\346\227\266\346\264\273\345\212\250\345\222\214\345\205\250\351\203\250\345\216\237\345\205\245\345\217\243.md" deleted file mode 100644 index 4cc0633e..00000000 --- "a/tests/archive/part10/workorders/W06-\347\224\265\351\207\217\345\256\236\346\227\266\346\264\273\345\212\250\345\222\214\345\205\250\351\203\250\345\216\237\345\205\245\345\217\243.md" +++ /dev/null @@ -1,42 +0,0 @@ -# W06 电量实时活动和全部原入口 - -负责人:执行者;主模型审查来源与隐私。合入依赖:W00。 - -## 实际阅读与修改范围 - -`prototype/Core/DeviceBattery.swift` - -`prototype/App/DeviceBatteryController.swift` - -`prototype/App/PeripheralBatterySource.swift` - -`prototype/App/DeviceBatteryCopy.swift` - -`prototype/Core/NotchActivities.swift` - -`docs/device-battery.md` - -`docs/menu-bar.md` - -`docs/copy-guide.md` - -`docs/design-system.md` - - -## 不漏掉原目标 - -电量不是性能报告。逐条保留AirPods左右耳/盒、iPhone、iPad、手表经iPhone、Vision Pro等原规格;某来源未证明可读就记未知或不支持,不能假装所有设备共享同一个百分数。[原 device-battery 与blueprint] - -先为每个来源记录稳定设备/组件ID、连接时刻、最后看见、采样时刻、采样方法、数值/未知原因。名字只显示,不参与认同一设备。重复连接不清空可靠历史,陈旧读数不标实时,数据缺失不写0%。AirPods盒未读到不取左右耳平均值代替。 - -复用DeviceBatteryController.start/stop和原source。核对source.stop是否真正撤销IOKit观察与刷新,不能只隐藏页面。源码中既有unchecked Sendable需以其队列/字段所有权核查,不因为已经存在就认定安全,也不全局添加更多同类标注。 - -## 活动与菜单 - -播放、隔空投送、路线、录音、agent持续状态分别核对真实来源。它们只更新同一活动协调器;审批与用户正在进行的交互优先,普通更新不能关闭高层页。锁屏清可见敏感内容,解锁重读当前事实,不补播过时提醒。 - -菜单逐项做“旧动作 → 新普通入口 → Option替代 → 快捷键”的对照;9项是原重排设计,原蓝图上限12,二者不是让执行者删唯一入口的理由。每一个既有动作仍能到达,禁用原因明确;设置少数档位与术语照原copy-guide,避免再添加面向用户的测试开关。 - -## 验收 - -设备/组件实测表、断连/重连/陈旧/无数据四态、多活动打断与恢复、普通/Option菜单全入口、仅在实际有来源时显示。不能只跑DeviceBattery纯核就宣称“电量全家完成”。没有设备时保持该行未知,但继续核对现有可测来源。 diff --git "a/tests/archive/part10/workorders/W07-\351\205\215\345\257\271\345\257\206\351\222\245\344\270\216\346\216\245\346\224\266\345\215\217\350\256\256\350\243\205\351\205\215.md" "b/tests/archive/part10/workorders/W07-\351\205\215\345\257\271\345\257\206\351\222\245\344\270\216\346\216\245\346\224\266\345\215\217\350\256\256\350\243\205\351\205\215.md" deleted file mode 100644 index 8d920a64..00000000 --- "a/tests/archive/part10/workorders/W07-\351\205\215\345\257\271\345\257\206\351\222\245\344\270\216\346\216\245\346\224\266\345\215\217\350\256\256\350\243\205\351\205\215.md" +++ /dev/null @@ -1,52 +0,0 @@ -# W07 配对密钥与接收协议装配 - -负责人:主模型主导密码学和身份;执行者按冻结接口接网络。合入依赖:W00。 - -## 实际阅读与修改范围 - -`prototype/Support/WS2PairSetupServer.swift` - -`prototype/Support/WS2PairSetupCrypto.swift` - -`prototype/Support/WS2CompanionCrypto.swift` - -`prototype/Support/WS2KeychainPeerStorage.swift` - -`prototype/Support/WS2PeerRepository.swift` - -`prototype/Support/WS2CompanionTCPTransport.swift` - -`prototype/Core/WS2ConnectionBudget.swift` - -`prototype/Core/PairingAttemptWindow.swift` - -`prototype/Core/PairingTLV.swift` - -`prototype/Core/WS2CompanionFrame.swift` - -`docs/conductor-v2.md` - - -## 先交可互测的内层,不先广播一个假服务 - -Mac在此协议设计中是服务端。part5 optional-srp保留固定依赖与隔离适配;先真实解析依赖、生成真实Package.resolved、Swift构建和运行,再与独立实现核对中间量、M1–M6、M5/M6签名和Pair-Verify。自我互测与Python参考不能替代Swift真实执行或原生Remote互操作。 - -PIN窗本地打开,60秒;全局3次失败、300秒冷却。关窗/换IP/重连不重置预算。验证期限10秒且为绝对期限。时间是工程默认,不是协议保证;不得为通过慢发测试自动延长。 - -## 持久身份 - -先读Keychain,成功才建立verifier/listener。缺项走明确首次配置;拒绝访问、损坏或其他OSStatus不得自动生成新身份。保存完成后才回答配对成功。同标识重配需要本地确认、一次性版本绑定和旧关系撤销;回滚/墓碑容量问题不能通过清空列表解决。 - -网络owner持有一个listener与全部accepted连接。ConnectionBudget只核算,总8/未认证2/同peer1,待发单连接256KiB/全局512KiB;真实close释放真实账,排队成功不是发完。写失败/撤销/过期只关闭本次连接,不误关闭新代次。 - -## 受限OPACK与session - -先冻结真实对端需要的类型与profile。解码深度16、节点4096、帧64KiB为工程上限;长度溢出、重复键、非法UTF-8、引用越界、未知标签、未完整消费都拒绝。对象引用表限定本条消息,不跨会话复用。现有JSON预检不能代替二进制解释器。 - -Bonjour TXT、session字段、消息类型取自真实同角色证据,不根据另一方向客户端库猜测。每条验证后的输入还查peer revision/撤销、连接、序号和当前本地许可;配对成功不自动取得指挥或批准权。 - -## 验收 - -首次配对、错误PIN、伪造签名、重放、重启、断线重连、撤销、同标识重配、Keychain失败、慢发、超配额、部分写入分别有实际结果。原生Remote拒绝Mac服务端时保留该兼容性阻断,不换成自制手机App后叫原生Remote完成。 - -这单只解决控制协议接收,完整CarPlay单列W08。 diff --git "a/tests/archive/part10/workorders/W08-\345\256\214\346\225\264CarPlay\346\216\245\346\224\266\350\200\214\351\235\236\351\201\245\346\216\247\346\233\277\344\273\243.md" "b/tests/archive/part10/workorders/W08-\345\256\214\346\225\264CarPlay\346\216\245\346\224\266\350\200\214\351\235\236\351\201\245\346\216\247\346\233\277\344\273\243.md" deleted file mode 100644 index 12ddf105..00000000 --- "a/tests/archive/part10/workorders/W08-\345\256\214\346\225\264CarPlay\346\216\245\346\224\266\350\200\214\351\235\236\351\201\245\346\216\247\346\233\277\344\273\243.md" +++ /dev/null @@ -1,41 +0,0 @@ -# W08 完整CarPlay接收而非遥控替代 - -负责人:主模型先判协议与来源,执行者再接宿主。合入依赖:W00。 - -## 实际阅读与修改范围 - -`docs/blueprint.md` - -`docs/direction.md` - -`docs/conductor-v2.md` - -`prototype/App/WS2AppRuntime.swift` - -`prototype/App/WS2IslandCoordinator.swift` - -> 本仓库没有这个文件:并入第九份时决定沿用现有的单一刘海仲裁器 `NotchLeaseHub`(`prototype/App/NotchLeases.swift`), -> 不要为本单新建它。媒体 surface 接进 `NotchLeaseHub`,见 `tests/part10/DRIFT.md`。 - -`prototype/Core/RemoteMode.swift` - - -Companion控制协议与CarPlay媒体接收的实际认证关系尚未证实。本单不强依赖W07;只在真实协议证据表明能共享某个端口时复用,不能默认两者是同一协议。 - -## 必须先交的可行性证据 - -明确真实发送端、接收端角色、发现/认证、媒体协商、音视频传输、输入回传的每一环,记录实际对端与系统构建。当前候选Remote部件不含这些环节的完整证明。本单新增媒体适配文件应由主模型列出清单,不能假写已有CarPlayReceiver类。 - -有受许可的接收实现可复用时先审许可证、依赖与安全;只有客户端控制库时不能反向假定接收成立。新协议值仅来自实际同角色观测或可靠实现证据,不填猜测常量。隔离探针通过前不接进生产,也不广告具备完整CarPlay能力。 - -## 原产品交互不变 - -长按刘海进入真实全屏接收,再长按或Esc回桌面;短按仍是启动台。保留原桌面窗口状态,不用收起所有窗口模拟全屏。媒体会话事件发布到唯一协调器,后台电量变化不重置视频,停止视频不清其他设备状态。 - -主模型须决定媒体surface如何由现有宿主体系管理、显示器切换及音频路由;不额外建立第二套全局活动仲裁。接收显示与控制消息分别有有界队列,断线清本会话资源但保留其他活动。恢复画面时重新验证会话,不能重放旧输入。 - -## 完成证据 - -实际原生发送端稳定出画与出声、交互和退出可见、断线/重连/锁屏/拔屏/音频设备变化可恢复;记录CPU/wakeups/内存、端到端观察及隐私数据路径。原生录屏与真实声音才进入影片。若只有Remote按键通过,状态仍是“控制通道验证完成;完整接收未完成”。 - -没有证据时交准确缺口和下一项隔离试验,不删除CarPlay目标,也不拿一段假网页或抽象动画代替。 diff --git "a/tests/archive/part10/workorders/W09-\347\263\273\347\273\237\351\224\201\344\270\216\350\272\253\344\273\275\345\256\236\351\252\214\347\232\204\345\207\206\347\241\256\350\276\271\347\225\214.md" "b/tests/archive/part10/workorders/W09-\347\263\273\347\273\237\351\224\201\344\270\216\350\272\253\344\273\275\345\256\236\351\252\214\347\232\204\345\207\206\347\241\256\350\276\271\347\225\214.md" deleted file mode 100644 index bc357327..00000000 --- "a/tests/archive/part10/workorders/W09-\347\263\273\347\273\237\351\224\201\344\270\216\350\272\253\344\273\275\345\256\236\351\252\214\347\232\204\345\207\206\347\241\256\350\276\271\347\225\214.md" +++ /dev/null @@ -1,42 +0,0 @@ -# W09 系统锁与身份实验的准确边界 - -负责人:主模型,不交普通执行模型自行裁决。合入依赖:W00。 - -## 实际阅读与修改范围 - -`docs/face-unlock.md` - -`docs/dynamic-lock.md` - -`docs/lock-unlock-plan.md` - -`prototype/Core/PresenceLock.swift` - -`prototype/Core/SessionLockState.swift` - -`prototype/App/AuthorizationService.swift` - -`prototype/App/FaceObservationSource.swift` - -`prototype/App/NotchFaceObservations.swift` - -`prototype/Private/LockSpaceBridge.swift` - - -## 三条证据分别取得 - -在场信号只回答可信设备或近期观察是否存在;人脸模型回答特定阈值下的匹配问题;系统后端回答当前会话是否真正锁/解锁。它们不能互相代替,UI动画不提供任何系统身份事实。 - -BLE名称/RSSI/地址和普通特征读回不证明身份。L2/L4先验证真实心跳或受认证设备关系、陈旧与断连原因,再按原宽限/倒数规格决定是否请求锁定。请求发出后读取真正系统锁态,不把调用成功写成已锁。没有可用信号时显示未知,保留系统原有手动锁定。 - -FACE-F2–F5模型、活体、阈值和数据由主模型审查。实验须有明确同意,训练/调参与评估样本分离,记录错误接受与拒绝以及光线、姿态、照片/视频/屏幕重放条件。未测条件保持未知;少量自测不能证明可替代系统认证。 - -## 不降低门槛 - -声纹研究不减少系统认证或授权账要求,不把它叫经过验证的独立因素。心率/健康数据不放行。系统密码不由本包采集或代填;L5原目标需要主模型找到并审定可允许的系统后端,不能通过自动输入密码填平缺口。 - -系统更新后私有接口不可用,停用对应能力并保留系统人工方式;不要连续尝试私有调用或隐藏错误。用户手动进入锁屏/切用户/睡眠时,清理相机/麦克风、草稿与临时输入,解锁不复活旧grant。 - -## 验收 - -有同意的真实样本与指标报告;拒绝传感器权限可正常使用不相关功能;真实锁态与请求、动画分开;失败可人工恢复;生物数据保存/删除/离机路径完整登记。没有这些,不得在官网或影片写“已实现可靠刷脸解锁”。原目标仍开放,不能改名为“看见脸即完成”。 diff --git "a/tests/archive/part10/workorders/W10-\351\232\220\347\247\201\346\201\242\345\244\215\346\225\260\346\215\256\345\222\214\345\256\211\345\205\250\350\277\201\347\247\273.md" "b/tests/archive/part10/workorders/W10-\351\232\220\347\247\201\346\201\242\345\244\215\346\225\260\346\215\256\345\222\214\345\256\211\345\205\250\350\277\201\347\247\273.md" deleted file mode 100644 index 4758cfdf..00000000 --- "a/tests/archive/part10/workorders/W10-\351\232\220\347\247\201\346\201\242\345\244\215\346\225\260\346\215\256\345\222\214\345\256\211\345\205\250\350\277\201\347\247\273.md" +++ /dev/null @@ -1,42 +0,0 @@ -# W10 隐私恢复数据和安全迁移 - -负责人:主模型制定迁移;执行者按固定方案实现。合入依赖:W00。 - -## 实际阅读与修改范围 - -`docs/privacy-page.md` - -`prototype/Recovery/Journal.swift` - -`prototype/Recovery/DurableShadeJournal.swift` - -`prototype/Recovery/Rescue.swift` - -`prototype/Support/WS2LocalLaunchProfile.swift` - -`prototype/Support/WS2KeychainPeerStorage.swift` - -`prototype/Support/WS2PeerRepository.swift` - - -## 本次已经纠正的事实 - -恢复文件会保存title/appName,UserDefaults还有副本。CLI独立目录会保存其凭据及历史。stderr可选尾部虽然有界仍可能包含敏感数据。信号登记不能只列新传感器而漏掉这些存储。 - -逐个填写来源、用途、读取者、权限、保存时机/期限、删除动作、是否离机、错误日志内容。不把“本机”写成“仅内存”,不把“600文件模式”写成所有同UID代码都读不到,不把字符串清空写成密码学擦除。 - -## 先保护恢复,再减少数据 - -对真实journal和偏好副本只读核对;任何迁移先备份,并在临时目录验证。标题是否用于旧匹配要查读取者,不直接删除。新schema能移除不必要标题时,同步修改两个存储与读取回退;未解决恢复项迁移失败时保留原字节和可见错误,不假装空列表。 - -第十份只修journalID。继续清查pid、createdAt、spaceID、坐标、尺寸、alpha等转换;数值须有限、合适范围和精确类型,布尔不当数字。损坏条目与不认识版本不得默认映射到窗口0或当前前台。增加隔离/人工核对路径前先确定不破坏救援的规则;不能因为了隐私而无声丢失尚在屏外的窗口记录。 - -durable写入失败,禁止新的自动隐藏;完整磁盘/权限拒绝/父目录异常/部分写入/旧备份覆盖都需测试。保存成功不自动证明掉电或恶意回滚安全,按实际平台语义记录。 - -## 密钥与账户 - -Keychain读失败不等同于首次使用。重新配对、撤销、注销与删除本地独立CLI数据是不同动作,分别确认和验证。不要清理用户原 ~/.codex 或系统认证数据。 - -## 验收 - -原隐私页核对表、全部前九份delta与本轮新增读取联审;两个恢复存储和账户磁盘目录都准确说明;关闭功能后没有继续采集;报告分享无真实密钥/生物原样数据。迁移前后,旧有效恢复项仍可核对,损坏值不会崩溃或操作错误窗口。 diff --git "a/tests/archive/part10/workorders/W11-\345\205\250\351\207\217\351\252\214\346\224\266\345\275\261\347\211\207\345\222\214\345\217\221\350\241\214\346\235\220\346\226\231.md" "b/tests/archive/part10/workorders/W11-\345\205\250\351\207\217\351\252\214\346\224\266\345\275\261\347\211\207\345\222\214\345\217\221\350\241\214\346\235\220\346\226\231.md" deleted file mode 100644 index 672d0f34..00000000 --- "a/tests/archive/part10/workorders/W11-\345\205\250\351\207\217\351\252\214\346\224\266\345\275\261\347\211\207\345\222\214\345\217\221\350\241\214\346\235\220\346\226\231.md" +++ /dev/null @@ -1,42 +0,0 @@ -# W11 全量验收影片和发行材料 - -负责人:主模型统筹;真实发布仅用户授权后。合入依赖:W01, W02, W03, W04, W05, W06, W07, W08, W09, W10。 - -## 实际阅读与修改范围 - -`docs/blueprint.md` - -`docs/performance.md` - -`docs/releases/v1.0.16-ledger.md` - -`docs/handoff/deepseek-film.md` - -`prototype/build.sh` - - -## 先分局部试用与完整项目 - -W01的某条实际路径可独立准入;整个WindowShade2仍须原七条线各自满足要求。实验支线失败不改变已验证功能事实,但不允许把它从总表删除。未实际运行的字段写NOT_RUN,源码缺口写MISSING/PARTIAL,已运行失败写FAILED;互相不能替代。 - -## 同机能耗与稳定性 - -沿原1.0.15基准,在同Mac/系统/电源/屏幕/设备/后台负载比较。空闲、已连接无输出、持续输出、收起恢复、拒绝权限、锁/唤醒、拔屏/断连分别记录CPU time、wakeups、内存、主线程延迟、残留资源。 - -建议每条件三次、预热后十分钟记录,作为工程采样起点而非统计充分性的保证。相邻交替运行基准与候选,记录异常负载;没有原始日志不填百分比。20ms进程监督轮询、目录身份读取、AX任务与设备采样分别定位,不能为了降低数字删除安全检查。 - -## 影片 - -历史part2/film仍是两条126秒无声动态分镜,不能换名计为新成果。原17项素材逐项关联到已经通过的真实能力;未完成能力继续抽象概念并标明,不做“配对成功”“已解锁”的假实录。 - -按原Remotion锁定工程准备实际依赖、正式编译、横竖布局与帧级检查、声音授权/混音/响度、真实观看验收。FILM-F*与FACE-F*分开报进度。代码测试或timeline检查不能代替音画效果。 - -## 发布准备与用户授权 - -回归全菜单/Option/快捷键、旧journal救援、更新器与正常退出、安装/卸载/回滚、权限与签名身份一致。签名发行材料只能写真实所用身份和流程,不能引用测试编译输出当发布二进制。 - -本次任务没有发布授权。不运行--stage、普通签名构建、更新源修改、推送Release或替换日用App。可以提交本地候选与验收材料给用户决定,不能默认1.0.16已经允许发布。 - -## 最终报告必须包含 - -七条原线的具体入口与验收记录;所有仍缺项及原因;候选哈希与来源;完整Mac构建;真实系统/设备/账号试验范围;数据去向与许可;局部准入与全量完成的区别。通过数量只出现在测试附件,不充当总体完成结论。 diff --git a/tests/archive/part7/fixtures/fake-codex.py b/tests/archive/part7/fixtures/fake-codex.py deleted file mode 100644 index 49717b03..00000000 --- a/tests/archive/part7/fixtures/fake-codex.py +++ /dev/null @@ -1,89 +0,0 @@ -#!/usr/bin/env python3 -"""Synthetic pinned-shape backend. No network, account access, or shell execution. -Tests copy this under an isolated name to select fault fixtures; never install as Codex. -""" -import json, os, pathlib, signal, sys, time -mode = pathlib.Path(__file__).stem.replace('fake-codex-', '') -if sys.argv[1:] == ['--version']: - if mode == 'version-hang': - signal.signal(signal.SIGTERM, signal.SIG_IGN) - while True: time.sleep(0.1) - print('codex-cli 9.9.9' if mode == 'version' else 'codex-cli 0.153.0', flush=True) - sys.exit(0) -if sys.argv[1:] != ['app-server']: - sys.exit(64) -log = pathlib.Path(__file__).with_suffix('.messages.ndjson') -logged = mode not in ['login', 'url', 'login-wrong-id', 'login-cancel'] -thread = 'thread-real-fixture' -turn = None -count = 0 -pending_approval = False - -def emit(value): - print(json.dumps(value, ensure_ascii=False, separators=(',', ':')), flush=True) - -def result(id, value): emit({'id': id, 'result': value}) -def notify(method, params): emit({'method': method, 'params': params}) -def complete(status='completed'): - notify('turn/completed', {'threadId': thread, 'turn': {'id': turn, 'status': status, 'items': [], 'error': None}}) - -for line in sys.stdin: - message = json.loads(line) - with log.open('a') as f: f.write(json.dumps(message) + '\n') - method, id, p = message.get('method'), message.get('id'), message.get('params', {}) - if method == 'initialize': - if mode == 'duplicate': - print('{"id":1,"\\u0069d":2,"result":{}}', flush=True) - else: - result(id, {'userAgent': 'FAKE / NO NETWORK'}) - elif method == 'initialized': pass - elif method == 'model/list': - rows = [{'id':'fixture-a','model':'fixture-a','displayName':'Fixture A', 'description':'Synthetic only', - 'hidden':False,'isDefault':True,'defaultReasoningEffort':'medium', - 'supportedReasoningEfforts':[{'reasoningEffort':'medium','description':'M'}, {'reasoningEffort':'high','description':'H'}]}] - result(id, {'data': rows, 'nextCursor': None}) - elif method == 'config/read': - config = {'sandbox_mode':'danger-full-access' if mode == 'config' else 'read-only', - 'approval_policy':'on-request','approvals_reviewer':'user','model_provider':'openai', - 'web_search':'disabled','features':{'shell_tool':False,'unified_exec':False,'shell_snapshot':False}, - 'mcp_servers':{},'plugins':{},'hooks':{}} - result(id, {'config':config, 'layers':[], 'origins':{}}) - elif method == 'account/read': - result(id, {'account':{'type':'chatgpt','email':None,'planType':'unknown'} if logged else None, - 'requiresOpenaiAuth':True}) - elif method == 'account/login/start': - result(id, {'type':'chatgpt','loginId':'login-fixture', - 'authUrl':'file:///tmp/not-a-browser-login' if mode == 'url' else 'https://auth.openai.com/authorize?state=fixture'}) - if mode not in ['url','login-cancel']: - logged = True - notify('account/login/completed',{'loginId':'WRONG' if mode == 'login-wrong-id' else 'login-fixture','success':True,'error':None}) - elif method == 'account/login/cancel': result(id, {'status':'canceled'}) - elif method == 'account/logout': - logged = False - result(id,{}) - notify('account/updated',{'authMode':None,'planType':None}) - elif method in ['thread/start','thread/resume']: - if method == 'thread/resume': thread = p['threadId'] - result(id,{'thread':{'id':thread}}) - elif method == 'turn/start': - count += 1 - turn = 'turn-' + str(count) - result(id,{'turn':{'id':turn, 'status':'inProgress'}}) - notify('turn/started',{'threadId':thread,'turn':{'id':turn,'status':'inProgress'}}) - notify('item/agentMessage/delta',{'threadId':'FOREIGN','turnId':turn,'itemId':'f','delta':'WRONG-TARGET'}) - notify('item/agentMessage/delta',{'threadId':thread,'turnId':turn,'itemId':'a','delta':'来自受控后端的真实管道回复。'}) - if mode == 'approval': - pending_approval = True - emit({'id':'approval-fixture','method':'item/commandExecution/requestApproval','params':{ - 'threadId':thread,'turnId':turn,'itemId':'command-1','command':'printf harmless', 'cwd':os.getcwd()}}) - elif mode not in ['hold','lock','directory','diagnostics']: - complete('failed' if mode == 'failed' else 'completed') - if mode == 'diagnostics': print('fixture stderr, NO USER SECRETS', file=sys.stderr, flush=True) - elif method == 'turn/interrupt': - result(id,{}) - time.sleep(0.15) - complete('interrupted') - elif pending_approval and id == 'approval-fixture': - assert message['result']['decision'] == 'decline', 'Unexpected allow!' - pending_approval = False - complete() diff --git a/tests/archive/part7/fixtures/native-child.py b/tests/archive/part7/fixtures/native-child.py deleted file mode 100644 index 4eb8aad4..00000000 --- a/tests/archive/part7/fixtures/native-child.py +++ /dev/null @@ -1,21 +0,0 @@ -import os, signal, sys, time -mode=sys.argv[1] -if mode=='stubborn': - signal.signal(signal.SIGTERM, signal.SIG_IGN) - print('{"ready":1}',flush=True) - while True: time.sleep(.05) -elif mode=='grandchild': - if os.fork()==0: - signal.signal(signal.SIGTERM, signal.SIG_IGN) - time.sleep(.9) - with open(sys.argv[2],'w') as f: f.write('late descendant survived') - os._exit(0) - time.sleep(.08) - print('{"parent":1}',flush=True) - os._exit(0) -elif mode=='fd': - try: os.fstat(int(sys.argv[2])); seen=True - except OSError: seen=False - print('{"inherited":'+('true' if seen else 'false')+'}',flush=True) -elif mode=='echo': - for line in sys.stdin: print(line.strip(),flush=True) diff --git a/tests/archive/part7/sources/SOURCES.md b/tests/archive/part7/sources/SOURCES.md deleted file mode 100644 index fbceea59..00000000 --- a/tests/archive/part7/sources/SOURCES.md +++ /dev/null @@ -1,42 +0,0 @@ -# 本轮核对的一手来源 - -核对日期:2026-10-03。下面资料用于解释系统概念和检查风险。项目实际协议输入仍是候选 `docs/handoff/reference/codex-app-server-schema-0.153.0/`。当前网站、固定 schema 和本机观察是不同来源;不能互相替代。本包不附整篇外部资料,不附未经授权的媒体。 - -## S1 -Linux man-pages,wait/waitid: -https://man7.org/linux/man-pages/man2/waitid.2.html -适用:WNOHANG、WNOWAIT、直属子进程等待及回收事实。不能证明 Mac 的运行行为或所有子孙清理。 - -## S2 -Apple 归档系统手册,posix_spawnattr_setpgroup: -https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/posix_spawnattr_setpgroup.3.html -POSIX 同主题: -https://pubs.opengroup.org/onlinepubs/009695199/functions/posix_spawnattr_getpgroup.html -适用:在创建时明确建立进程组。归档文档不是当前 SDK 编译证据。 - -## S3 -OpenAI 官方 App Server 文档: -https://developers.openai.com/codex/app-server/ -本次实际转至 https://learn.chatgpt.com/docs/app-server -适用:thread、turn、RPC/通知和账号生命周期概念。正文中的接口采用上传的 0.153.0 schema,实际账号和服务端均未运行。不要从网页较新示例偷换固定字段。 - -## S4 -OpenAI 官方配置参考: -https://developers.openai.com/codex/config-reference/ -本次实际转至 https://learn.chatgpt.com/docs/config-file/config-reference -适用:独立 CODEX_HOME、凭据存储选项、工具和配置字段解释。字段被程序写出不证明真实沙盒行为;版本支持必须实测。 - -## S5 -OpenAI 官方配置层级说明: -https://developers.openai.com/codex/config-basic/ -本次实际转至 https://learn.chatgpt.com/docs/config-file/config-basic -适用:项目、用户、系统等配置层级及覆盖风险。只做本地配置隔离不能宣传为系统级安全隔离。 - -## S6 -RFC 8259,JSON: -https://www.rfc-editor.org/rfc/rfc8259.html -适用:对象成员重复、编码和互操作问题。本项目主动采取更严格的重复键拒绝,不把自己的工程政策写成 RFC 的一律强制要求。 - -## 源码事实 - -本轮补丁由实际 v6 基线比较产生;完整旧哈希在 base-manifest.json,实际路径、符号与新哈希在 code-map.json。源文件定位是本轮快照,实际工作区更晚时必须先比 hash。所有性能、配置、权限和可用性结论都以 VALIDATION.md 的实测层级为准。 diff --git a/tests/archive/part7/sources/base-manifest.json b/tests/archive/part7/sources/base-manifest.json deleted file mode 100644 index 75cc9e15..00000000 --- a/tests/archive/part7/sources/base-manifest.json +++ /dev/null @@ -1,1147 +0,0 @@ -{ - ".gitignore": "979af68a27b2848e27b69bc2f4b2b45a1b7a27e0b19c2f20e0c1572ae779f9bf", - "AGENTS.md": "5ec0f273f4e4f46c7fc2281fd436c58b79aed02183c35e3105bd664f84854f26", - "DEVELOPMENT.md": "7900a744b56df4f4f91bf34e5bcc8ef2a9bda5dbb6a62cb7a0481f5865be9c41", - "LICENSE": "b1bd5e5e226fed0591e56f8a12c3e95163df2cdc5ea1a41df7bcdc23e52dd3d3", - "README.md": "71d62059ec243ecc89d3ee82d76f3dd217a94a1a66acfc314e092453726c3bbf", - "README_CN.md": "b5902a934d10180cec5e05a1f6b3c328d8a4ee41bcd45db811f98aa53ee2bb9a", - "WS2-STAGING.json": "81e1ce0044437dff2b349dd063fca4cb4e29de1a3b870a5189dc3c0b5fb05e4f", - "WindowShade.md": "3d4df4752cbd52234d255869f69366711e4bf3afb9020482a82a6613e6c5a266", - "assets/app-icon/WindowShade.icns": "c391bb38afb6d34d6ab250e67fb879f42c4d56af5919ab6b2b021947a904af78", - "assets/app-icon/windowshade-app-icon.png": "5f6fb9a4471230c9982865685ffadfb49608c4e0f026ff767e3407122804f5a1", - "assets/readme-desk-dark.png": "99c2459a44d3c6ce120c79abe2e1de3cfebfd942d23df9dfb422779f3787dc71", - "assets/readme-desk-en-dark.png": "6afa1709eda74780793286bad28553ae7ac604b12c4b9f15ec71f25da08533f6", - "assets/readme-desk-en.png": "9090f27082cb2ff24c07a07b82e2f408fc5012cd57e41e76140e0bc37003f80c", - "assets/readme-desk.png": "7d5b75a5f681bb721dca728a5b31b7f6b8f0842a38c8adaf2684a4b6196d6a34", - "assets/windowshade-demo.gif": "328f44f4da1265a7dfe0e5ca294047a4f9a25a4e2da1d9c631e449335262925d", - "assets/windowshade-hero.png": "577ec0e66653bb826cc638bf5a82b30afa82c196ed5985fc2e355165f4ce4f17", - "assets/windowshade-lid-en.gif": "7bb2a6219a9937b9f1d7ff31f6452c598816bd15eb88931c1cb4318a1ec67bc0", - "assets/windowshade-lid.gif": "2998c24b9e05852d3373810f20112a17c3ad7b72c074230901c92502fd07ccb0", - "assets/windowshade-menubar.svg": "154365b3f54725ec11e913a6bd772a468dd24d7c968f32a1007ab0bb2fd9f8d5", - "assets/windowshade-settings-dark.png": "ebc62f0aebe62073f3c130dfb546aa99df6be6664b4f7b470d0b015127dd98f8", - "assets/windowshade-settings.png": "d61516dc78124b9531b8febc2ba3c8b2faafe3b1a8f1f501a8a6ee6903855d28", - "docs/RELEASE-v1.0.10.md": "2ad3ba06630f9c018bbe28cf2170b256e81b456c78d25e50908a95759bf4e315", - "docs/agents-in-notch.md": "98664f72fa7279b8ecac4674574fa4063a4457f5a286b82cf4faf7ddf44b3b78", - "docs/apple-accessory-interoperability.md": "c800abbb2b4bb1888194d4bee5cc4a9ba88f9770b29819b255b25ea910db4840", - "docs/archive/2026-09-13/reviews/app-experience-priorities-2026-09-13.md": "f8c88707b398d0e2bb16816238fe546396218ceb7e57cbe6b05d38bf80709be8", - "docs/archive/2026-09-13/reviews/native-shade-review-2026-09-13.md": "1e2f4d5e92a7006040e49c92277b11dd5393d482c1c67fd860b7f0edf88a54db", - "docs/archive/2026-09-13/reviews/near-term-plan-after-history-2026-09-13.md": "8f0834faba6f78bf62417ccc04a39c47d7dc3f4ce3ad1dd271e6d5af33e1d843", - "docs/archive/2026-09-13/tasks/design-v1-progress.md": "54ab9724a8026c6645e56a8d096a84f2c94bf7d45ca3bf409dd0e7be72e256e9", - "docs/archive/2026-09-13/tasks/release-v1.0.11-progress.md": "9ec0dab218d521e0a65df205a6c3dc4dc6c660e96ba0b0ffe15d5c57fa42e5c5", - "docs/archive/2026-09-13/tasks/website-progress.md": "63c234095f4d237b04505eb70c76cc5d63086083422f33baf246becda1936262", - "docs/authentication-boundaries.md": "9ac894b177c752bbe1777cea1e399864690de1e9bc8f46e7e6b0926865e312ee", - "docs/behavior-risk-research.md": "3fd394ae3291701174f58745727e35e2b7395480b302f371538a1b412a034dd8", - "docs/blueprint.md": "c9f10268752be9c75d6d269de73e58309c94d409a9b7f64233f595a40ff11de9", - "docs/claude-lanes-2026-09-25.md": "9eee45a2e910478a0a13d411330dfb835f55043b4d35053957f45e52a33342b3", - "docs/competitive-analysis.md": "b4a109a4db795f5f8d07f158cd42cbb982b6a2272881d14cb3731a5253205008", - "docs/competitors.md": "fbf5b07f817834a951af1c95cd036d68e14f4d2be465b5160a5412335021aa55", - "docs/conductor-v2.md": "5c435d7e17bbdec2ba828718d5830721b77dd2e73d21e63c585f92d8a62d0494", - "docs/conductor.md": "ff7720f65b4f337f51c20e0e75ba726fbe0580ce600f48c962152462606875a5", - "docs/copy-guide.md": "029858deb8ef6823440e3df738c1e96c0b47b55a8dd5150313c82db1af1ff2b6", - "docs/design-proposal-claude.md": "a4a1d452d194efe13504d511ff868eeea2bee50d12ccfa62c662597270162033", - "docs/design-review-1.0.14.md": "63d59ef156dbf6aff25c88c34205779d172180dbd2a96db3ccb6248c5f48a33d", - "docs/design-system.md": "65b56799b1c169d2c1b6424ee00e22e5726acfa9253f353142e64bcbec491c62", - "docs/design-v1.md": "3b623a284c9951ddec2df0fa7711f9da1f774b5f37aad74f1b8cb0560b8ba7be", - "docs/device-battery.md": "655de0eacca269fdf91a946404ccafc493b2cc5fed5cffe925cd002491997358", - "docs/direction.md": "513e4f42d4d9ace6226f112144b6c4bddfa8af9eb32764111ed852bda48c8d60", - "docs/dynamic-lock.md": "1b355f08a3f3cb02b41f4667a64c259cd30e1ea33001a5dd1af6b24c3f70a85b", - "docs/face-unlock.md": "9c191b9a39e43932e0bf8c587a8e0f8d849752bb6f6ef52fe4078322e8c4f59f", - "docs/gestures.md": "285d619c2f6b4d8bb060aecf7eb8f2a09af65d56749ddc304e3ca85e9aabb62d", - "docs/glance-integration.md": "e43ca70196487a22fe82e931b579bb8ddcee08847018566c4f51c02fb9d0d66c", - "docs/glance-pro-prompt.md": "4338691621669764d139c5f8050d4617d4c9a059aa41120b4c5ac516abafc63d", - "docs/glance.md": "bdd5a636348bb5dfe11959853823af7106e3d0fae37a3e0f4a60454f8e8eb5be", - "docs/handoff/START-HERE-deepseek.md": "f312e6ff55ae910ad7d4c4127f1548ed0b711f709ca23196afa0449094010edd", - "docs/handoff/chatgpt-2026-10-01.md": "f678d00a318bc5410ae6860b33f81d3454256d853438779c0118deb4e786134a", - "docs/handoff/chatgpt-review-1/README.md": "0ca20d0db3d61bfd18a72354e9158ef4478688c0a4a46070b5e1a85c546a4fac", - "docs/handoff/chatgpt-review-1/SHA256SUMS.txt": "079c3957536797dfafbfae9f74fe48e19b918a95884fda8e8fcd89459f41501f", - "docs/handoff/chatgpt-review-1/cheatsheets/A1.md": "adc107b5763dfde8f2d669beeadc93f9bfd114d6d0aac2b9de25335794376eee", - "docs/handoff/chatgpt-review-1/cheatsheets/A2.md": "04ff8017adb9156c2c2496c164f3e352c3eade229b0d9ba4c69ae6c056b70624", - "docs/handoff/chatgpt-review-1/cheatsheets/A3.md": "379e1a39001a2fd502516d043af340eaf1257d5b0d2a3f16591cacd74a4c3ca9", - "docs/handoff/chatgpt-review-1/cheatsheets/D1.md": "e403d3183b448a1514b90e55e720d44adef17fc2d5fe25338565a62315bc1993", - "docs/handoff/chatgpt-review-1/cheatsheets/D2.md": "1983bda7e1e093584419712d07c1e94dd84b191acebc462e0130a10568e84be6", - "docs/handoff/chatgpt-review-1/cheatsheets/D3.md": "84b92e38cb08e6933e7395f2f64a56fac3b369d1e2fca4c42f8e6e40e53c63e5", - "docs/handoff/chatgpt-review-1/cheatsheets/D4.md": "755ca88033a8cb843fcf7f1ad999a1c70aeb9c9f888f07b0922718230d72b2bd", - "docs/handoff/chatgpt-review-1/cheatsheets/D5.md": "7f8724b9ca5a478bbcf056ae06f4492ba79e1d332a751734b86fc9211e7bebc9", - "docs/handoff/chatgpt-review-1/cheatsheets/D6.md": "a9e31d9e24a438a5c1e0a81d05701322db9f139ad8b9f396e1f65ae68ec28cea", - "docs/handoff/chatgpt-review-1/cheatsheets/I1.md": "a38018ce17c1b050c95143a0ec4f45a180416be31903644ed75f3b01501fc48b", - "docs/handoff/chatgpt-review-1/cheatsheets/I2.md": "bce16beca45b52c1ab57a2c030b3ee4532ed0cb0bc089d3751d68842a0c5cbf6", - "docs/handoff/chatgpt-review-1/cheatsheets/I3.md": "18a777ed326e8f7868ea342aaf0d1915fb6535634c3c7415e3a37df934f443a2", - "docs/handoff/chatgpt-review-1/cheatsheets/I5.md": "0dc7a74285b65a9d1dccc74c30d431c88a3d546c2054e017bb9e72e0e106ebdb", - "docs/handoff/chatgpt-review-1/cheatsheets/I7.md": "48e7bb066942c2eb78ef61eea181923f91c290d8a411d025c3f5d3d9217d72c9", - "docs/handoff/chatgpt-review-1/cheatsheets/I8.md": "3140b4c4966fb143a1adc80bb11c85610ff2486ff9fe1d4234cf4d44baec756d", - "docs/handoff/chatgpt-review-1/cheatsheets/I9.md": "df4bb906aeb11235b8d2950b4d0a7b1237175f875bb7e99768af250662caa453", - "docs/handoff/chatgpt-review-1/cheatsheets/L1.md": "a754c73f536ecc97bf67403f1240ec7f95dd55260c95643dd899193c1b7c17b0", - "docs/handoff/chatgpt-review-1/cheatsheets/L2.md": "0b5afb352ff702231f428a9489218f21191d3a89bd40520ab6a567e56f26c61d", - "docs/handoff/chatgpt-review-1/cheatsheets/L4.md": "f031742b14198a91ff2b55e4d5483337acbbb4ba39bbb7e88ac3ff33bb6b0c77", - "docs/handoff/chatgpt-review-1/cheatsheets/M1.md": "00957894b035ff5f330b33eb3a4d4a4fec24571893fd50e9377765420bcaf509", - "docs/handoff/chatgpt-review-1/cheatsheets/S1.md": "bd4b14058babac734ca2ffde9c8246d89570347c9a06716a67794c37330dc869", - "docs/handoff/chatgpt-review-1/cheatsheets/T1.md": "5f0f410b637169e03d712d75919b99dea806836646f3473d463e40f841aed278", - "docs/handoff/chatgpt-review-1/cheatsheets/T2.md": "3f6c09e6f33470d62fdc13d9780017e215ccc71711ed809a99bd75c143cf44a2", - "docs/handoff/chatgpt-review-1/cheatsheets/T4.md": "6af354f834a4a74d499c010e7df3336f94d10bdf5d7b982ee98a1ac3ff5b8954", - "docs/handoff/chatgpt-review-1/examples/A1.swift": "9dadfffb018324d792f394d392dacd5b4248b31952d08cee7c3db8b63fc84f99", - "docs/handoff/chatgpt-review-1/examples/A2.swift": "f4f9926222ce3ab43cfab99be4b14f68bc493c88a96fc43804a9497777204610", - "docs/handoff/chatgpt-review-1/examples/A3.swift": "5c7608e773d33f0a1b868377b07f621fcc7323d192a039f868003d9273be00cf", - "docs/handoff/chatgpt-review-1/examples/D1.swift": "d9c68e8dda1a02cd8443b325d9efaac4d613e3b10e5d8967b73094edfaa274ae", - "docs/handoff/chatgpt-review-1/examples/D2.swift": "782124401297858c1c1595060747b636c95695046b20b29aa0ede14858666944", - "docs/handoff/chatgpt-review-1/examples/D3.swift": "075a195bb9e32c84c019e1e09ac2d71ddb0c4d2a0cdc9160e3d783b9f2f1e9c8", - "docs/handoff/chatgpt-review-1/examples/D4.swift": "0ce653a07e56078ac82aa4385519ded4e0b5a5b1eb621624050aa0148247d274", - "docs/handoff/chatgpt-review-1/examples/D5.swift": "7af79bc13e94d075e7d363febf3781690fd52e3687ba4d450b420ddaf998d0ef", - "docs/handoff/chatgpt-review-1/examples/D6.swift": "8c551e61ac2ece44f84037e1c8d20260ff53c568441f17c8bfa9002ddcad1906", - "docs/handoff/chatgpt-review-1/examples/I1.swift": "e2ce0a23f28d5804068f49d94559faf7627af06acd55f94fcb7ed77761d00c2f", - "docs/handoff/chatgpt-review-1/examples/I2.swift": "924808e02e2ced9d2e61536f07ecb0c1233defed5227c89850830bcdc9ff1993", - "docs/handoff/chatgpt-review-1/examples/I3.swift": "cf57fb29f59a9e3d853393c278152276b323a8e6c45348afaf1dbca3d4678a00", - "docs/handoff/chatgpt-review-1/examples/I5.swift": "7bf1e8c69a00ad86b74dac41e154af3c47fe7bc27adb726d321a5bf87d54cbad", - "docs/handoff/chatgpt-review-1/examples/I7.swift": "9c569cc2fe4b5da9d35685bdd423d2d49d6c3a864d9eb0870e2c5a8d4a908952", - "docs/handoff/chatgpt-review-1/examples/I8.swift": "9035f9ef3ad52dc3eb1919631be54357ba79c7b8b325000be4dd4076b68e4ffa", - "docs/handoff/chatgpt-review-1/examples/I9.swift": "522bc168abe6bdde86eb42e4f661b8198a7251e11fe38eea51b66bb7c1cb48b5", - "docs/handoff/chatgpt-review-1/examples/L1.swift": "49cf160cd5e4f8b1da784a170a77acfcf183c71afd53cff4827c29ed6ddecac8", - "docs/handoff/chatgpt-review-1/examples/L2.swift": "ad579f43fbcf02db5fe2141098c00149f9324b052b5dd799873ba9e0199496c3", - "docs/handoff/chatgpt-review-1/examples/L4.swift": "096461756b2985fb3adf79cef73541c7a6429425745b1c76728e5719b85090bc", - "docs/handoff/chatgpt-review-1/examples/M1.swift": "4cba363b11a35c4f201441696829c66be059eff4cf10ba97400cfdbe0d6b9e13", - "docs/handoff/chatgpt-review-1/examples/S1.swift": "90046399a1e175342c280088e2f7fcc549796c88ef30e7dc615a9040894d9dd7", - "docs/handoff/chatgpt-review-1/examples/T1.swift": "a43aafbe1b3068fd62f2d7ed96cc656460f6c56842d5df4716463df6f2c0099f", - "docs/handoff/chatgpt-review-1/examples/T2.swift": "509363204ac8e73decd1e9323dfa73294e6b196736af09a06b02acf78f03a972", - "docs/handoff/chatgpt-review-1/examples/T4.swift": "e2d4bd8fc78c1b38ac0e9e733bae5ebc94d516a99cce3d6bd25d3213d72d6fb9", - "docs/handoff/chatgpt-review-1/fixtures/README.md": "640b3f3f163e1d90cfcea6e9f57e37f9e33e8b30726ea5b36280f123214e5f3b", - "docs/handoff/chatgpt-review-1/fixtures/app-server-client.jsonl": "bd674728d061d7e703f84305fc8b947ab33d54aa3930e202d08fb50350777ca0", - "docs/handoff/chatgpt-review-1/fixtures/claude-permission-config.json": "dea20a25e015b61ad56d0343a993fdbcd2dee789ba5df296f730738e82cd4611", - "docs/handoff/chatgpt-review-1/fixtures/codex-permission-config.json": "3a181b2bfdd8a29da003cf954fbe3aa6d9fdbd88487fdbc80b5207d61778706a", - "docs/handoff/chatgpt-review-1/fixtures/hook-allow.json": "600d7470494907251e4ea8186239c1451cd1784487cda22d6b54552114d7cc01", - "docs/handoff/chatgpt-review-1/fixtures/hook-deny.json": "2664ee0eff0c12b2f2df5399b55bab2f1561c3ba8e217f15c501227784af33d4", - "docs/handoff/chatgpt-review-1/fixtures/hook-none.json": "ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356", - "docs/handoff/chatgpt-review-1/prompt-patches.md": "3970e18ff040c8bc28d6b3b98245589b76bef970f04c26ec1ceef0b671bc17ab", - "docs/handoff/chatgpt-review-1/reference/contracts.md": "0729a25fa1594ef60cf37987555c8ab8dd2b7553a3e544e6b26130a101327cf0", - "docs/handoff/chatgpt-review-1/reference/hooks-and-app-server.md": "6a2e2835b21f556f1af444b345d76dab43da4251e628bd1422639c6a3f9ddccf", - "docs/handoff/chatgpt-review-1/reference/private-abi.md": "66e6571fc608d2576483ad2e116de25c3efe169402fb59ef0cf27d7f056fed0e", - "docs/handoff/chatgpt-review-1/review.md": "47703da5d5f1655ec0a5da707f068c57f1f260a8739168e26c478a1284f4e7df", - "docs/handoff/chatgpt-review-1/sources.md": "641bf7a197ae422cbe4d175bb45fb146a4adefc8f4cd8c8f3fb69f8bb298f48e", - "docs/handoff/chatgpt-review-1/tests/BoundaryTests.swift": "eaffe60df038bee7e39416f76dc8b7822c256eb2ab214fdc87cf0cc576f36666", - "docs/handoff/chatgpt-review-1/tests/run-boundary-tests.sh": "9a961256a37a69793d857f3220259d95c1720e703b1b8801b66c4e2e0818bd52", - "docs/handoff/chatgpt-review-1/tests/typecheck-examples.sh": "5e95d1bcda7c5f9a43a1b10b41b03af2c2954d2c805d3f5523089cd5a28501b1", - "docs/handoff/chatgpt-review-1/validation/boundary-compile-initial.log": "0a1a3b4d334ae6d48384689dc75a606014627c85d1495543121f36bc42aaa639", - "docs/handoff/chatgpt-review-1/validation/boundary-compile.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "docs/handoff/chatgpt-review-1/validation/boundary-tests.log": "b52b633d69e30d338d6c663efd9a5bab8b4f31382980eafd22156a8d449f7e73", - "docs/handoff/chatgpt-review-1/validation/conductor.log": "b1c223ab3be82a19bad2d7045fca062b892f9d208a5fe2327a750631d6e03fc9", - "docs/handoff/chatgpt-review-1/validation/example-platforms.json": "348e6fa8a64fd6b410deead88c6bd362a0e4b67c6b62935e4afe5e52b2aadd00", - "docs/handoff/chatgpt-review-1/validation/input-manifest.json": "425381da32fa4201535ac58c825692421f69f93ec15886b5a36ab068b085d6b8", - "docs/handoff/chatgpt-review-1/validation/notch.log": "3caae3d18fb3c30e5a3a00cb2bf426bb2e592e741d536b57fc5425ee28f89c1c", - "docs/handoff/chatgpt-review-1/validation/package-checks.json": "e95d0050afdc95a28bdb644d729d509920a2789e40fcc8b6a4c8a68c59fca3ba", - "docs/handoff/chatgpt-review-1/validation/review-findings.json": "c4c3358c8d09572b9d2b6612f8d86a6041d0b0d6daae140f9e2ec078adb693be", - "docs/handoff/chatgpt-review-1/validation/runner-boundary-tests.log": "b52b633d69e30d338d6c663efd9a5bab8b4f31382980eafd22156a8d449f7e73", - "docs/handoff/chatgpt-review-1/validation/toolchain.txt": "eb9fe405b65bcda75635327f6ca704543098f4e7d882bf5d2541a6fca34725d6", - "docs/handoff/chatgpt-review-1/validation/typecheck-A1.log": "1437a814bdebfb68c840f013a8349705a6a5ca70efd2d0d471f7db4a14660dc4", - "docs/handoff/chatgpt-review-1/validation/typecheck-A2.log": "b06947a044f7cbab3ae04ba9e4172d4dd2df23dd7b909993738e4cfdec96581c", - "docs/handoff/chatgpt-review-1/validation/typecheck-D1.log": "5bfced18ec7a04276205c9c83431adaa3fde3b430a980514f4b19b4c7550987d", - "docs/handoff/chatgpt-review-1/validation/typecheck-D2.log": "a2b9d07b9f09ba42353a540e7e4e3c9e8eadb0aabf5a6a6fc487496603fbccf7", - "docs/handoff/chatgpt-review-1/validation/typecheck-D4.log": "a1bf465ca3224f45a9b9c628c164b34624167d275d9874667b3b8ad0e7563f94", - "docs/handoff/chatgpt-review-1/validation/typecheck-D5.log": "4c5db623090d9647446293b944424bd8a1ca0a214a7ad646a810a8f786c5f833", - "docs/handoff/chatgpt-review-1/validation/typecheck-D6.log": "b5f48fa3c46e4a9ab4d4614343dc8120f818bcfeaea89d2dff91a0a31f442206", - "docs/handoff/chatgpt-review-1/validation/typecheck-I1.log": "b54a2662ac6a3d67d6cbb407b52784749949417ff91e85b89fa0ac9a052e69aa", - "docs/handoff/chatgpt-review-1/validation/typecheck-I7.log": "ae6b44eb541b2157885f461debde513e9a35b6c4f2f7368bccd08a4d9d9ee8b8", - "docs/handoff/chatgpt-review-1/validation/typecheck-I9.log": "9b227125fd98c7d67825784358e3aa833ba226d2d5d6186c5b6ef161b4a5f022", - "docs/handoff/chatgpt-review-1/validation/typecheck-L1.log": "06834f3abdc1f9f45bb7516cd7021e6b0f154c4b51a5a11f7df6e25f818ce2c3", - "docs/handoff/chatgpt-review-1/validation/typecheck-L4.log": "33ca1ccdfe388bb7167fe264b9f7ace299d961f62a281226701f5800cd8a09e2", - "docs/handoff/chatgpt-review-1/validation/typecheck-T1.log": "337c6e923041d64f295587ab0ac24bfe850cbeccdefe4ab3d6b985ae52d285c6", - "docs/handoff/chatgpt-review-1/validation/typecheck-T4.log": "75d2e7ec7e537f5e7efa83b40adb2807ec5a183d5638485eb095df20ed8cf3ab", - "docs/handoff/chatgpt-review-1/validation.md": "4e80eef0b2b25f940fa25cf67e5045f0cd5a8183115e0fa2df3ab603296b3db8", - "docs/handoff/chatgpt-review-1-verdict.md": "4caa17fea8390b7d92dbacae8c4d65918a1dca276b6ba25873a015867a38eb5d", - "docs/handoff/deepseek-conductor.md": "723a8eb65df8c26167947778ec316fdfe54d1213b68ed816f431c9bbb418cc2c", - "docs/handoff/deepseek-dynamic-lock.md": "d4f109f113ccffe680e716a74d34d67743b17b87904628974916d47496d724ce", - "docs/handoff/deepseek-film.md": "f935b56ffbb3986db04f9d4489e8dcabe5c3c164e4aa8779d535a95ca34df965", - "docs/handoff/deepseek-input.md": "3452f91df3b1c22b85e5afbdcd5574aa2d44c6e2f663be3df64189d1f30d06c3", - "docs/handoff/deepseek-menu-agents.md": "f1d69f88f3c1dc6204389ceba794df9a3f1295cc86a6b6043153e599860c34bf", - "docs/handoff/deepseek-pomodoro-symbols.md": "538c97c89de9fa2df681aa754a8c4b5410b3eb451dbcd8344517aba96e7bec52", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ApplyPatchApprovalParams.json": "179d91081c3c84d0f79fc544a3d6d423f280c0f9d93512cdd0344c80e09b99a3", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ApplyPatchApprovalResponse.json": "a5e145b4794ea91da6eb478626fac96bbbd4485c3399fabd1c9972d53d2d9010", - "docs/handoff/reference/codex-app-server-schema-0.153.0/AttestationGenerateParams.json": "b85df8f169cfbca98724df3a5f7550fc4649fa69b23f5160aafdb52e027133a8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/AttestationGenerateResponse.json": "2eb86b2a37bca01a8cb5d0822f28cf13d46dd106c8b1d38e7ba097e436b5ab30", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ChatgptAuthTokensRefreshParams.json": "03b7a734b8b3180d9cb477b33564385d29b22a2528165a614891f13849060503", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ChatgptAuthTokensRefreshResponse.json": "06d6b30436fc962d80b5d7920f8f323de12a052214d9148c5f0dfbaedd5eec6c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ClientNotification.json": "706cf248d75027c84a3c63348d0ed507182e8eba40069dd17541793de029145a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ClientRequest.json": "25bc001b5dfe3b35785597b8f9ad9e5aaf7e437331fa9921f041c9e0e03fc9f3", - "docs/handoff/reference/codex-app-server-schema-0.153.0/CommandExecutionRequestApprovalParams.json": "16a71816c2d66e319c2c4aa83dd636dfdc43c61e72b6d5475e421ce08d8e6558", - "docs/handoff/reference/codex-app-server-schema-0.153.0/CommandExecutionRequestApprovalResponse.json": "6d0767113e22f311381809b6b236b0dde2b99b01992879c26bf7b1ea0e003cb7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/DynamicToolCallParams.json": "401bba20cfbd95762bef0467d840430c46be53369093ad9f26425ba757e34efc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/DynamicToolCallResponse.json": "abb082cad67f11fcc98ba75f2eff75d7d1723af0c657655329b83ff160451a02", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ExecCommandApprovalParams.json": "653116614df1aa5011c3cc399cf79bae6b9eb28c1d527df27275abf61ceb1365", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ExecCommandApprovalResponse.json": "80dba6d9f28d19c57960db72340554c193624f014cd496714a0c7aabe1120046", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FileChangeRequestApprovalParams.json": "13848b26814c286ad6425a20d01c1691c86790e1f9e2529399677a8a22fe0d18", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FileChangeRequestApprovalResponse.json": "b95b03ee6be674e25cee2e863cc135a28620e1070addd2f34685aadee27cde08", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FuzzyFileSearchParams.json": "0291dbb87a7c3d8ef7f7cdf8d5d61f929deabab8c0ea79f064da95984d7d5f4f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FuzzyFileSearchResponse.json": "4984c3dba591e240407c39531d41c6b499c4816017de70a3371c7d6fa2d0951f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FuzzyFileSearchSessionCompletedNotification.json": "d3af2e301142ac0cb2462d95b052162ff4f25d83f9c1b21e319d5ce9c860d401", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FuzzyFileSearchSessionUpdatedNotification.json": "b8626521028e0c68611c57d458f27dbc9bf8be542e804865ae0d14acd78cf2e6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCError.json": "d7ea353d4875ae204625da5a00a1ecb5afc69101d5778b9acc253a49f8932992", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCErrorError.json": "12cc5cd5d9df9246defa609c472375020fe5250f3aeabd7d529076cecd9f541e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCMessage.json": "6da4cc373a7ccd01f5608ad4496eeb4d44b6a9b0d3158e85ed66b59f3c0b5114", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCNotification.json": "c2b43f26880db331393fe09f34bdd76dfeb4dc30d8418d1c26e18db166d6c8c8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCRequest.json": "31bd6f360b2dd8a7ceaf682708105d40d38cb0b9d0821357a04da67028438f73", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCResponse.json": "4796738c04c74288213a08fb8d820c7b4df19e0977cdcd35b65ffcb43cfc93ab", - "docs/handoff/reference/codex-app-server-schema-0.153.0/McpServerElicitationRequestParams.json": "5cbeb6bc702d2efa076da4c1dfb00672c970c1bad747031eb880b9ab907815c0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/McpServerElicitationRequestResponse.json": "792a012fdfe53ac211575a6c37ffbd492be848d15cb313d1bb4b534ade1f54ac", - "docs/handoff/reference/codex-app-server-schema-0.153.0/PermissionsRequestApprovalParams.json": "c6d165e1b0c65d5dcf1e099b4c226c7e4dad79fe2b88b03621a1fc6c1d3c86c2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/PermissionsRequestApprovalResponse.json": "23f3f24e9dbf35db3e0b85703f0d934da5a1cff3cbb611fba8bcd41f3b4a04b0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/RequestId.json": "9c72d59a306d827113020c6d31a14c326d55210d9bd6954f825196a52009f1c7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ServerNotification.json": "b3e76cf11842f3e8b3270c05e000212b56eabafb0152fc38e8f920e2ef902991", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ServerRequest.json": "31f580ad468fbd18766eb7adb12744be4e3790e3357b58bd4413c0108c4f65d0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ToolRequestUserInputParams.json": "fda15b62e7446105b59c8ed85c908abed2a47db70653e57c92c47a2f204fa77a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ToolRequestUserInputResponse.json": "5073b245f741fa8ce62ec52e4dd1809b7831f9c4284c279a78abc9b171f8e3f2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/codex_app_server_protocol.schemas.json": "e8284c5cb8157554a3dd1e035aadbd4325aea501af56887e9c2e12eb1b9b9448", - "docs/handoff/reference/codex-app-server-schema-0.153.0/codex_app_server_protocol.v2.schemas.json": "d3eace08be5dca386bfd1f1e8df650058b4113f1e10870a284d775d75517576a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v1/InitializeParams.json": "6f0094be9a65242ec779a40794cbd4fdfa32fca1e45084a16adfb50501d33ea2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v1/InitializeResponse.json": "62ad689c2cb6379913c1d72749cfd8de5089d35760214123518eb92eef11acc9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AccountLoginCompletedNotification.json": "d81e8821fd5a4a9ad118dfc3506ea156d32dcb18da388b336501bbc6a5ccb4a6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AccountRateLimitsUpdatedNotification.json": "c50daa6abb4723ca1edffdae9d0d6ca452770669ed045fae48d0fe9b20c6ea81", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AccountUpdatedNotification.json": "9bf450d9d9ea23a2bac9c9cb0a68c2de8f89a97bdeb4485c91762bb4d43295b8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AgentMessageDeltaNotification.json": "996e6c0ea65e57bed5a00f410b94381fe5ebf804333e5d00c2b6e6d47e5c55f6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppListUpdatedNotification.json": "2c67a3bc676309afdd0d6952ad454c2a040a3d4c09d38c8f63ca7fb632034cce", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsInstalledParams.json": "c2027510d5d041c2205349036f9c2bea10b20df309de5330beab9de8a9e50bdb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsInstalledResponse.json": "d8ef8dd14dcba8aaaaaf2b0b80db90d66edf8f4ff422589b844ae2b0edcb46d4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsListParams.json": "e880d0c24811118a2d3c2c7f0569a14aae5b12a31b0efe56809ccca8bbd85802", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsListResponse.json": "5811fda68d6274decfc11744ad72bbe93e601d8514549e94f361ba3131d1adeb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsReadParams.json": "61e6a9d35515f3164a7f7e7a5b0c5ac92817c5a3b5d7fb27e9a704fe2935ddf7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsReadResponse.json": "f3b73c2c31f16a2cff013c9682dfea48f26571f94002195c93ce10722a288791", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AuthRecoveryNotification.json": "c19238d43cf8bf610ea346afefc390b9ffa4f01e98ec6b42af0addf29d6cb7d5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CancelLoginAccountParams.json": "a4570a7542b82b918f69199f1e214ef747151c678473a5af58c58b088fdf58b6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CancelLoginAccountResponse.json": "06bc17624df01600fdc399d3c0f222f875c010d2d952c1d1191cb84de9b59014", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecOutputDeltaNotification.json": "28e74454b211ab677a256129e623fc5a2a29ce5394da1c69d3bc5136f7e37c57", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecParams.json": "e4f20080b92c6199cf132941840c4bd0fb9a90e3fec197ceb0e1ce9084346e18", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecResizeParams.json": "b748fee19979d2c32ac17a460ccfdc761e125cc2939bc551945e1e2c2af34197", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecResizeResponse.json": "01da20d70957fa5b43cf41365c5fee4fb3a69927947a45f92866f9bcf0895d0f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecResponse.json": "dec52d187121e8dd48124b47a4a8d8428ef3717b98b9200345bb404f73b62c9d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecTerminateParams.json": "979ece7059c6713d0909ab1690daec27149510f4ea2ec10014600bfb1d631c97", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecTerminateResponse.json": "d46aa76d952bb3ac95d0bd64de609fb8a82efd98d9ee38264fe3673fd184ce5d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecWriteParams.json": "3e8e849ce321c85987bbe96ce1f913df0047696a5207bc97dfa1409b0142eda8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecWriteResponse.json": "22887250f84443b2a6f5fc6f9c46cf9e2af072ff631574340018c48771411571", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecutionOutputDeltaNotification.json": "841fa94098ddb63a71acf1bf5f9e3fac1b0491f4ed3fa8ef86f9a6ca1260b539", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigBatchWriteParams.json": "d11e244258ffaf8a37a0ca4afdbe589d07cb7881b72f06b7f730fddbab9ad613", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigReadParams.json": "257c54a423b47c1d209ff1076765a1564d82322fd5161670fd489a2874de1bac", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigReadResponse.json": "bd72c94e2c7d49ead6a20bcf54afedc8db11044bf8cadb387e42135dd5d1e342", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigRequirementsReadResponse.json": "7f3cd9856eeb581985a4dcd1acd90be8efa30a7929a96e4e74b6b9a3d878118f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigValueWriteParams.json": "b9032e35bf64d4628bfc72e22b58b71bbcf754aeb720a86eacb091e0137547c9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigWarningNotification.json": "533e713405b582cce4d772d0b4ebbc75e840f0fe71cedbb17c2c83da285a21d4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigWriteResponse.json": "1d690287d9e8a0c552f664038d3810dfc3903ec8042eb2c0f772856414f59954", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConsumeAccountRateLimitResetCreditParams.json": "ce36a9f59ce3b8138fccdca042538f723e93d0e34d08441e6846d3153ee0b291", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConsumeAccountRateLimitResetCreditResponse.json": "6d4144c00dcb7f73be6ad24693ff7e539bad56064e4432f7f2bf8d20b3bab724", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ContextCompactedNotification.json": "c9f9a58ef680e09d568cff5f24b45895841e1cf138b650bae64dcf6c85f177af", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/DeprecationNoticeNotification.json": "29fdb44fc0a09bfdc5c4924ff34e33679acc9201730fa4fe9be7ed1978af0b72", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/EnvironmentConnectionNotification.json": "007e9a6ccae0003a56476bb7cdc9a097141e964c168e7ae43d213a763c93fb56", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ErrorNotification.json": "d77732536ef8864799e4fbb5bf6965a9f1970a6195e523f144252a82287c08e7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExperimentalFeatureEnablementSetParams.json": "00aaf2ef719cc336e4d20eb26dd6158be1eb26161fb7647372804b80a02e3131", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExperimentalFeatureEnablementSetResponse.json": "5ecd92ee95380d7cadc4c109091530aa71245e41b9f1b530a5e9d5c5c9eda95b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExperimentalFeatureListParams.json": "4db92977e59fea4125710babb4cd2128dc2cebef8292e3619d0844089e7fc1f5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExperimentalFeatureListResponse.json": "4084a25f32333b3f58eb5e9803a5983739b57f945c4e7e4002e85851622ce597", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigDetectParams.json": "db6c6ea654efb4095dc745a1e65bee76d0d063b03f2bc3202b9077a1569211f8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigDetectResponse.json": "36c4173d5f30ebd04be3d40389c904bc4ecadfbb8e5d1dd46b9b589254f7e1d9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportCompletedNotification.json": "c54702d40c3a40bcb3e3e835d99860473831725acbd3576fc26d2d4fa3a7617a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportHistoriesReadResponse.json": "1c09641e957333a2f602a350532acd99cf538a73ea45f39a2294289907a0bd96", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportHistoryRecordParams.json": "6a3e8071854771b0f34c6623fb7dcfbeaa7518a90779cc4a40c97fe92ac6f3ed", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportHistoryRecordResponse.json": "a252a2c2a03b4460bf3635d517c0735fa487a2f8a97de1aa0637f930419ae656", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportParams.json": "6b8d0a8fbd5a7ddd455ec0dea6d1b578f56841480c8a5fffbfcd045db79458ee", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportProgressNotification.json": "dae7bfc12026811ba24cc6f32dc01ae9ffaee7d9340d7768f9afce94575c23d2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportResponse.json": "0ad2fc7dff7b1bdc471cc365985f559490f253ea127263417f0a0a1edcb33cef", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FeedbackUploadParams.json": "aa958cd74b37fb28cc49ce22345a1efcda9d4cf5fa47e7cce6949e5366ff8b2e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FeedbackUploadResponse.json": "604390e864944eed2c4268675978dd8082f0884909d73cc79fda59dbe03a2d58", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FileChangeOutputDeltaNotification.json": "04c3df83d46725ffc048577e7a5aa25de9a6c8ea9eff713bbae2b408672481c5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FileChangePatchUpdatedNotification.json": "cfb69d18658610a0510f213e09c6847f70517410ed91cf99cc4713c15a795213", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsChangedNotification.json": "197693fcb852a85fedfbcf1cd00c9a3cc74dddfa09bdf6b11fdafebbcd12ea2d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsCopyParams.json": "bc1135070827681e4d9a14f79b5b06a4f5652e538ae6a89642d27dbc8b2a2af1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsCopyResponse.json": "c88392d6c3ff394441231cdf5614794ba0c2b4ba683811f6033a01fe65528a59", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsCreateDirectoryParams.json": "405fd718ebafe7f47ffd82c86540ab4af663659c737ea2b25acd3e04a1bc94ea", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsCreateDirectoryResponse.json": "a658fbd34d5e3d6300bcb7015f10fc1764aa8aca3088abc79af9caa2e848e527", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsGetMetadataParams.json": "382bbf3a8b5c7e8cb16a1a29f853ce49c2904e563325e33a9e41dcbf632dab5e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsGetMetadataResponse.json": "b8355f112eda37d7ff25ad0eda7dae912dba695961855c5cb8444a7f867d66c2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsReadDirectoryParams.json": "c4ca6cdc129d70375fe638c723c1b1bb07a9716101525970cf77bf7560fec657", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsReadDirectoryResponse.json": "2cfb28c3c1ab1487f6b778f4d76871e3a9f590597bdf0da502cc41b202269dbc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsReadFileParams.json": "74b325108195fe955e6ffcb6032e9380d3bfdee8aed7d115f5f1e4b127c5d706", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsReadFileResponse.json": "fd67dd725b5bf5c7f27e78cc3d66fe24314f08913fc00ace9dbb663bf2f487e1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsRemoveParams.json": "c453f8ae4b3311f5da88f67f743fdabbcdc323dc3d9eaa40d750ceae147bb630", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsRemoveResponse.json": "6371aba2cae2f92be487be05c1ce531ca4139da5004b740a0010ccfdba548100", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsUnwatchParams.json": "3134d42c231f40769a4d1ac4adcf051be5205e7a1b70bb32c4a8655fea730175", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsUnwatchResponse.json": "9c59c3473df1f1873ee0d87ed33cecec0766b24c8357ee7dc8b29a57ca21e104", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsWatchParams.json": "10bd9c01b3819db1ed8e2487a277f20b35e3a9f74ae77214654f1a529fc1444d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsWatchResponse.json": "d32e77e7d6f619c5f4183c335ecddd3c4ffb95a51761198985c47838ae891a6c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsWriteFileParams.json": "2167e05c7f3eb26d475f9c1ce71697ba3b635efd8761a00b22abfd6af175bd2f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsWriteFileResponse.json": "0e4153ee7baa5c1203c2c573504baaa40e1dd8738d78e4c1e3a179fb49df6b16", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetAccountParams.json": "30b545275f60975b55bd6fbaafd70f15505801d14168ee82d3931b6e93c78aab", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetAccountRateLimitsResponse.json": "a28d4d0e9181a498c58d4ae3b6b49aaa6ee7a33c0c9f81c1ad0bff223bfbbe3b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetAccountResponse.json": "08a7dd8c570c905b0bb6998d43ed133e72e2445f08125f86dfc96887e288701a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetAccountTokenUsageResponse.json": "a58e58c852c888e5de925d99a66688d55ebb2fff038e795aadf04f8a8426dff8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetWorkspaceMessagesResponse.json": "3ebd00f0acca088e5ee0309ec09b9a571e7f2eea5b63a32cda67be01c6886d67", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GuardianWarningNotification.json": "5325551d2efb47d578665e3deb846f6369e05f98fbc5bfbffc5d9fe0cb0bd167", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/HookCompletedNotification.json": "1f146d70303cea6e59752191179e36a273650d63a74d4f9338f9a399da6597d2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/HookStartedNotification.json": "913ca61da2ab299d5f3318f6ea4d842d22708fc9308a9b10cdfad5e757098f2f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/HooksListParams.json": "07638c3a8a3690cf368fa92c7ff697fdd0132865e8c59d53f6e5789e5a260053", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/HooksListResponse.json": "891dd10ef7f78e59631fce05fff2becddb8004b3c0338dbbbd6b4f17ef1fa64f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ItemCompletedNotification.json": "69aba3fe5f72f38bf5c541e7e2c09de40778abe65ff969d9fc73372037812091", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ItemGuardianApprovalReviewCompletedNotification.json": "bcf94662d3589c36ac3a13c0d919fa33c2b85f452d5098a8093360884d768a02", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ItemGuardianApprovalReviewStartedNotification.json": "baf4e17938f94e2cf4d86d31f02f66d69d394b00594e3e04ed03dfe901014543", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ItemStartedNotification.json": "c4c34f47db6326cd4841bae428f23d08eb285077ffad35be9772b928c65bb912", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ListMcpServerStatusParams.json": "33b1933595d844c61f76bdcfbc874c8456b65079877fed6e86e2710ea3d49f1b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ListMcpServerStatusResponse.json": "d581e9ba17f6da0d686d0e730cddd51fda091f361a8c119317b2138a3ecdb612", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/LoginAccountParams.json": "48fb9bea54d7e0890052653ac06737efb3200ba2261515b2c4014027f36bea3d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/LoginAccountResponse.json": "72e6d77f49bc5809c3af50f183e2a0862dd8f7836816d4796ff69bb13eae0e89", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/LogoutAccountResponse.json": "ac14ddfca2ec6092b0039be8720262d5a9930484d23e62544d2ef0b7e1db7926", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceAddParams.json": "e6c92ca2a3889641ca2281cca7684569b1187653b25b57f9beabf85519d638a2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceAddResponse.json": "a37633e9ecc2fdd87ea582861bcdcbf7963a8fab6db9fbc1bc8eac7d2f7f9a8b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceRemoveParams.json": "220c2475a96f32ca095f80f3ecbad427477b4ba37dfad7fb48a0acabdeb1f4eb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceRemoveResponse.json": "98deb2f721d57ed727f7cc7b4f478db5f604b6b6d40e6261928dfd5f586405e3", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceUpgradeParams.json": "93fc5d331d353b1b89262625c38eed54c6c16b2fb8aa0eac718245c7bdcbe4dc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceUpgradeResponse.json": "2402379cb0ed1168a7dc327c412fd61bafdea2ad13ea7a3b3ebaee3b43c45963", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpResourceReadParams.json": "a8241b056a65473b2b9bf0a14c1a49146de52dbc1cfc276549f52f4db13f3be6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpResourceReadResponse.json": "a48af749203ed3307414750d5070facb5ae6ef8b00253f1cfd9a8124bdfcfe41", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerEventStreamNotification.json": "44b04b6cc079ec0b99b4d29af1a69d99037505c19a2a07cff955aa298d7c181b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerOauthLoginCompletedNotification.json": "d3b7ca4f2626a623b4b5a97eeedc711cc27d41b3ee56fed8b0304857c5c9b13c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerOauthLoginParams.json": "83446fb61e04a361691f84fe236a51fff2ee4fb12a8f58e2e828a32cf6f6cc75", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerOauthLoginResponse.json": "95d7d00622866ac49dbe459164b8be665b2c9ad7b26772eadfc610a0537aa6d4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerRefreshResponse.json": "54a77812db02175dc69053870e582d3b314af6f161f0c76846f3563b0f9487c4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerStatusUpdatedNotification.json": "d6f4cb120b2363d321247592f03b9afbbf2762ad6d8af31b88c1b1bf39c4c7aa", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerToolCallParams.json": "7039a7583a1cbf38e9e0f5fe6398ff3711acd4d654b81b0be562514087fce6ba", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerToolCallResponse.json": "04a59b2064922c37b0c49bdb2470b8fff08d943e56dba4f7280a6b34bfa52c68", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpToolCallProgressNotification.json": "64a32b8282226876e749bc107a81db89d20d5ce5cb86ee6a043b960763214b1d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelListParams.json": "de29a536c00a5b8f46f34dba417dabd93365305571a8ed200e33bea85db68b5a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelListResponse.json": "c7b58b332f6cf18fd64235409a6daf27bb9e6c09d12dcd0daa2f3dc628b55f6f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelProviderCapabilitiesReadParams.json": "9db732188a15476cabb42cf05e495ae0803a1ada993fca7348c21c30a998388d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelProviderCapabilitiesReadResponse.json": "5c42590f728289daaa441b947617398a0ca3aa17479013b3c564a5d314a3c9cf", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelReroutedNotification.json": "37cd3c1b3a3560b85b01d4061a07d830fc9ed93b80e4663f975f9197cdb501ef", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelSafetyBufferingUpdatedNotification.json": "4cf853e3a2f968fdfde75206fd497d3d530b26769026bee343c3ef09ce438cfd", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelVerificationNotification.json": "4f27a99d0c8664c29abb4d65384ab16853bbc29b61de5e749111cefdc6994655", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/NullableGetAccountTokenUsageParams.json": "a992c6ea0fe02b0e9f46b18afb51b8ee2635e7f0c7d546f71e7f95e2a98bebba", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PermissionProfileListParams.json": "576d405f6c94cbde982a9f65c9301717043683b83ca35d564247907feb16b1b4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PermissionProfileListResponse.json": "4a290b5b9d47c2fc671033e22754671161bc563027ba387e861bd935398f0def", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PlanDeltaNotification.json": "a5cf42ccfc6cf905ede0fa9041e9c951ea7870aba4e3a7c7f68d85f01416d3af", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginInstallParams.json": "d6a8ff6356aed22c916cfd5a791ecce34ee2ac509750f690e7d0ef483fec7472", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginInstallResponse.json": "ae283e1ecb9f454f7614c6a4348fda5a7aba5af99e9ab9177b9a0cd3e1cd7db7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginInstalledParams.json": "0b56f55a817b6e82ea104496281cd43714ee96800f9b984412a3a858f444f68c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginInstalledResponse.json": "8afc8a16fa5c21d67f66d1855bf29890bad10a6229bafc960b3503281fc878e2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginListParams.json": "bc6b499161306df7082c5a8cc51fd793cd6d28dda93555b12ae299445132270a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginListResponse.json": "a405d2514d6236df75130c87c749e0e070b946a889f143a0448bbcd27d1d8501", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginReadParams.json": "f15952a2828c90501cc32f347c1e1691ea65cd2d97f503ab40e7be08757de74d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginReadResponse.json": "1651d8136fbbbb00878c4c1f8adbf279d050bf25b4454e6db4fa46f192f953d2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginReconcileParams.json": "91dfe0967326b876e50ddf8d896c6c516440c43a36b08efd4746c0bd770882dc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginReconcileResponse.json": "ba2a8e317c9098beed39d4decc433d9dc29ba0c8164e8d4c229481b9243c5ec8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareCheckoutParams.json": "25fd868fff9500ff244150a4ecd36322c0d31b339a4709649594b79aa1349185", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareCheckoutResponse.json": "d6271afa9bba5531574ba255d22b03f70fe10b8ef159185355625d92b6f9fac6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareDeleteParams.json": "d422a3fdecf91612bdf839d4fea6f1cddccb794869dc03ad3b8998bcb8e27fff", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareDeleteResponse.json": "ae881a7f898f5287354de5adf6f42094cef9029a9b9376bfd12aa1b0fe0b3106", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareListParams.json": "0d71280d2a655ffc26375044ec1693203848614f99fdb4563e0cb5a4ee40122b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareListResponse.json": "d349a496947956fd5f4d125b8348faa2ef0c91daf7f3cd74ae0616f55c8e328b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareSaveParams.json": "ec937521a40437506ceb2dcfe79cedd03812dd1b8233c651b89c2ddd76e148fe", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareSaveResponse.json": "3eb7c0ed6e6c72126c7bb3d845e73d5de98ad0d4ea8639d2f227fecd16c15411", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareUpdateTargetsParams.json": "0ecf16212022bca115211cbf13a1302f8995d7be5664ca268b926b7d00add7b0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareUpdateTargetsResponse.json": "caf42dec67940f9e686ac7b4e77484921d62fee400b3af73fc85e6f46eaa03f4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginSkillReadParams.json": "8850a9a45b9cf6e8b016f014c7c65f7062937be896d4fa0eafdaccc816909a56", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginSkillReadResponse.json": "dedaf95c4a8f70c022f5cac6fe3882603ed2b27d5efef710b52ae370869956cc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginUninstallParams.json": "4c9e1da7048fc99ef5269d4c3f4c6c3297dac01992c2756340fa210ae8f800cc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginUninstallResponse.json": "f6a0c9c8dfd9e3fc4a535ecfa606f12922c09e469a37d6b1c6e189f45cacb89e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ProcessExitedNotification.json": "06cb5f39c67f84c227063d7f40e5e78fb62afdb76778c3d603687181896e8440", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ProcessOutputDeltaNotification.json": "c31714aa83297b83fd69dee98db877be7d4a3f98551dbeb517750efba0ecd79d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ProjectChangedNotification.json": "b32151fcb7ef78fc5c969db44255756e5e6e1754398a5b6b09244dcff0c1eab9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/RawResponseCompletedNotification.json": "aba140e87952c900f96e0308a8849d3e313d985de1f1aa2b77f193884a76357c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/RawResponseItemCompletedNotification.json": "cbcffe7b3f2dffb607f7e20ac1f1196509ff42e7d0cd9e6961d7c19b25506899", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReasoningSummaryPartAddedNotification.json": "c8dfcb82d773d0f5d297ae1a47749e2b719013e82030a3af5d4550f9feb8eed6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReasoningSummaryTextDeltaNotification.json": "895bdca00b4674634c25a5c4d1f82e55e65767d81ddcac4bb7b00aa3d438e62f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReasoningTextDeltaNotification.json": "16cdc13080a7523b44f00fb6fdb660c56a7c4c8cda96b2f9b87b7e72264170fb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/RemoteControlStatusChangedNotification.json": "56aa1d58294238557cd8b16199909c2c157a7542b9259ef2deddf40fe4c02c91", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReviewStartParams.json": "c55c510988a34d2e95752aeb95e5d165f7083724a0945d7fccd1c568ad85dbb0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReviewStartResponse.json": "d6d5c99473b695fff0f58a896bee11ddcddca23304523fba878860324b7f07df", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SendAddCreditsNudgeEmailParams.json": "91b380293f5685573f8dcdf46c99eba6f8a2adb7a206df9ac987f7fe6cb282a1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SendAddCreditsNudgeEmailResponse.json": "389978f741476c7cbcaec716b11a5bfb7f17581a28013e18cbf7a73ec8a45ae6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ServerRequestResolvedNotification.json": "4f03d586a5af04edd912cad08cc97eceb658e7e06744565e6d41a93e04a55966", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsChangedNotification.json": "84f7f1d327c5c774899992f32c98e9e95ee3e010a410d233ec0c33221e4ccbfb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsConfigWriteParams.json": "6e7dea83b649bfd118828b60446eb2eab2f5ce3cafe287c933b830c9cae9b170", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsConfigWriteResponse.json": "628bc112ca64f5475eb02a0eda718e82d670c40299444494e02a8dc278a772c7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsExtraRootsSetParams.json": "bb60389a0c7d4b73f625b9a40965e5e67b56b6503989f2d732cae12e9ca9698a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsExtraRootsSetResponse.json": "b659ec17a196eaa3a23273a3e2d5596460ea329bc3ade249971576bc723d9e96", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsListParams.json": "1d245374e64c5acc9739dfc68a4fe5114c6c9147af04c480886f1846d2ca6239", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsListResponse.json": "230f125d6c36ec1b1514018a0bb6d0627f7308ea82f1ef04cad85490de482bae", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/StrictReviewRequiredNotification.json": "16b50621c0982d84bd83b6e85586c1038ff309337e4253219895be7c118df470", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TerminalInteractionNotification.json": "5383b3d9681d3c071c9845fd4f043afd60fbe1bcc3650939356cb03848a7d627", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadApproveGuardianDeniedActionParams.json": "082e5278ed4fb1fc23eafbe658e95ec21d81c446bb6daf2b57e25e8cd3aebd5e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadApproveGuardianDeniedActionResponse.json": "628336c7cdabd508d5202695502bb0f9ce42fdde380f5efdd4b033cf215d93e5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadArchiveParams.json": "dc2c0b133b814a5d9d543cc37afdb3f4f22feca35b7cea4272834b20a1e47705", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadArchiveResponse.json": "2e021dabd0930ae3e2beb68cd0ddbafc40fc20cfbf8dbcb5e2f9c0493d06a08c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadArchivedNotification.json": "54ca94956719ade8682c766f31419ee9953dee8f4587b5b30efd0927de6ca26e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadClosedNotification.json": "d504cceb70e3397ad684924b08d3bff328a927be02ef4e3d482a18e27bab73de", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadCompactStartParams.json": "684b20adf20213a9fcbca31b59108feadcd5a8b693c16431c20d701049df3737", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadCompactStartResponse.json": "74674e47f33e37d7d97d144eac1789ef0580a1fc12d45a5675bb97caa08d803a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadDeleteParams.json": "0d5425d94af95e3dd20971cee052b2cb8c7d0d23195db1d17fde4e59cfbdec4a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadDeleteResponse.json": "333c0c5df96d78d1bcbdb19b57ddfa941de9a02bdae1c29d13c5311c2cdf6527", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadDeletedNotification.json": "6f8d6fa96700ec6fff4b8c2bddf6768539b7ec7ba5dc05483aba53f5183386f9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadForkParams.json": "60540b97d453ddbc5e12bfaa007a3718f31847d18dec0da59a5e4b89be4717ad", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadForkResponse.json": "c15e43ec275b370df2d831cb5147f7ff399aab2e74d091c07cdb3de57db11f94", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalClearParams.json": "896c8b1997edf913382393f7d0f20ced4344714b9f0e8ce1f6564a11403e1675", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalClearResponse.json": "2652c2d0072be8ccb71c8dcaaa054aa74f974e68156a73451baf72c8597669c2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalClearedNotification.json": "ad6c2cf53970e45cae55d36dbddd84ecc7b34837846616493efa7b132a35a051", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalGetParams.json": "1a5de89b3c5c49528af404a65411a73ef05dc7c9c49c3f00c90d9926dfe34137", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalGetResponse.json": "f610000963194731c96ce2b45e46722ca700f1b6ccc1fc55a2fd95e526018fd9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalSetParams.json": "93162f095e9b3b5a051ceb24318b8922c663edefc1f8c67bd378085c0d6c01d2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalSetResponse.json": "b1c61b6068b3b73dd3d97b38f8a269593f8f7added4643bfdb2016315b71ad8e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalUpdatedNotification.json": "52010479c7efcc6dc749e2d9bf1e27c134453d92a1f0b367193d8125eec1fedc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadInjectItemsParams.json": "8d7e754402a2bb71bd817882076d2f8ac4cd75d4573306db082a83b841aa3532", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadInjectItemsResponse.json": "93d909e5b49b44da02072d340f8ad0ecd417d448ccf27fe50be7e369c7864159", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadItemsListParams.json": "ff56040c327ecdd30ef02affac9bc71fab64031e8980f2b4fea9fd8a888160b4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadItemsListResponse.json": "886369490fec07067597460301b3d5c1dc9aedc41ea42522cae397d8babe6156", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadListParams.json": "b227bb78acf9b91060d03c56d3f2072cdd9f1bd08290c11e8869f1a663b16da2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadListResponse.json": "351be50beed03976ddd63e8027e9ddeecb240d7611856b2dc19125c3f8eba400", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadLoadedListParams.json": "42c2d124ab2b2998d84f0126daae2d32b0bf9c5a7ea7266e3a0814e5e37cf00d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadLoadedListResponse.json": "1ea02c4710083e552b2a3a89b931b9049d5bf05b7db46278b8352cf9fd80cd52", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadMetadataUpdateParams.json": "190da07d8c7c89c44b1e44b4e57fb5d803f356953534498a7a7f39fe29a8a6a4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadMetadataUpdateResponse.json": "c1c1095f8ebb5a975c7cdd8b4fb36b81e3e2797e35209b2cf0a4597c6f418961", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadNameUpdatedNotification.json": "06d5e6b0e1eaf03eb88891af58eff14368a76e300a40a9bed71bacce2093b960", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadProjectUpdatedNotification.json": "ad31b029957a9259f26352ce879219cbe25f0314ae883d02ab811a0c6427a1e5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadQueueChangedNotification.json": "0a960da43fb14f69dae2550ac4f8517760464eedbf95a9977718548739fdcf21", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadReadParams.json": "dfe040c6ac71d30795b8be3f3ff232e66f362a37f883b491e5d1ea367f470db4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadReadResponse.json": "a76583d07f6096fee33045da2dc9caed84d858f8f2d39b37bb38528dbaf32511", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeClosedNotification.json": "5290a73f8d4652b59d2f82d89c7bd289003fe2981fb0c628a61e801fa2123364", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeErrorNotification.json": "aeba7e4b477b4825b41990a4da69b0f3cb3a00f44cf9e2e42e275b944b7cb040", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeItemAddedNotification.json": "48aabfcbfd2361b5830a93257bc9eb31a6933f6e390694e188bfb287acbad9b4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeItemCompletedNotification.json": "b2a5e38840b8afc2111620c332801603e832b91ad4c95dd1f13c926923b760ef", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeItemStartedNotification.json": "ef1a68a635ce680b321e276fd9144ef614b37bab16942368bdc16bb8ee217f46", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeItemTranscriptDeltaNotification.json": "42f2456726367b90a2626a32f3f88495de87032243beecd9bfbad28734f4b62d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeOutputAudioDeltaNotification.json": "4f73a5c606fda4984da4fc14e4cd98f62c8f9aa75b2db17cff76562c2d176ec0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeSdpNotification.json": "1e276f48d346e6cace65551f84ef9b0bc8daba2a3ce93499f3a902551de239fc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeStartedNotification.json": "483d324381a8ced04c8ab158c825bca2b64c06a4e85b350a086730050fe8f188", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeTranscriptDeltaNotification.json": "1a6add677534de891026eb56aac815b2585fbd4a6d6475f679a722c52b778703", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeTranscriptDoneNotification.json": "0000453425e300fd19ac2bc5fba4ebf3fbce48ac9a9b62ceb8bc5db8b6c77fff", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadResumeParams.json": "8ac68582a81d60940b10b330be8546123f56bfe246b56f8a4f121da00f347cf2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadResumeResponse.json": "a553d6b1eb66111ca556e22138017ec54fd07c3257dbd2d5ad97ad7660786345", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRevertParams.json": "3a5e85a67906c8ea3ad9f5065559d263d968a28a957739e7a1d9e4e1981e4eb8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRevertResponse.json": "de7206155e188cea30dfd81fb3295d6e2554a7cc7b58202c4b0a49e9623affe1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRevertedNotification.json": "570995a91a4436d403bafbf9a4c34ead666b137ecd5406803e14826a6d84cf22", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRollbackParams.json": "27002ceab514bcbab10ad2e0a7b9b842f9ae51bd5e8c084ed14960889b422ebd", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRollbackResponse.json": "c5e1d8f6845e0840068cc46422fcc986a7648487219a901f8a0f51ee9fbb6ca7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionCreateParams.json": "e3bf941ceab7a4dd39ce1b4063168621d60162aa97f7171cef59819c999c501e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionCreateResponse.json": "2b0b0e7a2651354aac35aa5d1a423b9f207ee8d46b2de077df747f4ed4f4c8de", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionDeleteParams.json": "93cc3d12bd5580966b59bbab8f2ccddd31b3b4bce56f76d49cfe41f1916b5deb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionDeleteResponse.json": "9bbee5cca1fca02e4a65c2481dc3b24f090bca7afb786923ee481017b133b091", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionListParams.json": "6aea71b3fba46351fcaf648eab0da564080ba424599a012648abd9fd44464cf8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionListResponse.json": "dc3b5e5501a56ea2a1a83cb97c5221b355629f8c9468793d94e22673424140bc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionMoveParams.json": "48bc921055838df25c5595c96be7bd25beef3accb8bd1d28026fcaa7d81487b1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionMoveResponse.json": "243299d7eebd4fb264d4e75efeb5058982681202371c2b83ff1a63b3369ddbb6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionUpdateParams.json": "6cc7b7e486026a59d6fcc0701407d9293c0fe8b96e41894630c3a39fee967980", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionUpdateResponse.json": "4588cbf0374204c17f02f15eecb5390cd5346bc551675e07e541bbfd28d020bf", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSetNameParams.json": "8e334c816bbaeb80f807aca61bf659246f3f60c245c21b5cb7e3ca4ee3ce4820", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSetNameResponse.json": "f8763716433feea94f7c1ebd59b6cea4c261432e83240c13a8d49ba8185aa567", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSettingsUpdatedNotification.json": "e601ede3c6947f6df0aea6b1c091c01e38ef7909df939f5ef11c8f836fc8a2ed", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadShellCommandParams.json": "dc646457ca36be601c8c3d15c44d14907d9a165ccf2b9635a8e9a878f0ca0727", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadShellCommandResponse.json": "fd4911613f6a6da2ca13b75342501d4d61f64e00a1083c6d60038369b8caeefe", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadStartParams.json": "792e2f32e37cece971bd616664ea2053741acbed4e9c92e9d1766427718f2ecd", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadStartResponse.json": "656f8fd0fe91f533126cbfdb9369cfab550927a229e48dd46460f6f015d2b186", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadStartedNotification.json": "d66a9b4563471c5fe99de18cb2bd3c83e7b6aac8deb0b0579406b3b7c74d7b35", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadStatusChangedNotification.json": "26f3c60c1b73f7fa2d31c74429cdc36f8746c76c33e3d314b3fb61d3661f05f6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadTokenUsageUpdatedNotification.json": "aba4f6c7e4a19b2b842c08ee793b57000c07dafd57b922ad0d8e7c76609108c2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadTurnsListParams.json": "2a8b93d7d4437cc25e16a1dde16d8db3c338d39e16c5eece2a56e943a21577d7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadTurnsListResponse.json": "45bffd91efc358859a1a54b8165c0a8b1c21ebc2a312da9f25d05ff27af798ee", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnarchiveParams.json": "a1d5d847b61ea16ab09d5b9d1c1461134a7829292aae02a7e11b0a69b00c76ca", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnarchiveResponse.json": "1df1bd13818b3c22a2fb4a64c55b393778e0eaa65547744333d8df9bb40a29cd", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnarchivedNotification.json": "fc00949cdc588b84800a26403647eda0e22d6f28663dc032a90db9c20dfa822d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnsubscribeParams.json": "77c67e0dc0a729af2d4612f30ed63f1297160232e96cd32b7cb9cc3e7fff0233", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnsubscribeResponse.json": "9cad5e71a589c3c20e0980ce34a894a29e2898a075b10b1493bc87f32500081a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnCompletedNotification.json": "78af2a37391e8e669a4020cb58593e4d3e378756ced79d5fec72374fa69fb94b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnDiffUpdatedNotification.json": "59a02535094b591b926cdc11a8e5f5babf73b442323a02cace1661c62f0c2918", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnInterruptParams.json": "6dff382dae73d1dbc58406ed045605f647e7a49660e2540fbd2c6c24d60c5f2b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnInterruptResponse.json": "531de6be06fe979b5963f249bab82498a175e614bf65ac12fb2e849dfe60bcf1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnModerationMetadataNotification.json": "90fe9ade83c46fd42af9d023737a9990595dac71e059158744950f538e802876", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnPlanUpdatedNotification.json": "2522f743be0a1e9666dec5ad4f18d8ecba3c4f16e66d510b1491d4117d1dd0ba", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnStartParams.json": "a3835e8c1e942e4b358e1a670939b89918b16c4d13105a579899892b7ade6dea", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnStartResponse.json": "6fc49c3e5d0ce11a3a109ae194619b04d6e3ff98fa29bac683fdb754608958be", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnStartedNotification.json": "d4b59fd396cadfc2377f60c9f9f4c9367dca95362baadf7817c74e1b9c910c4d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnSteerParams.json": "4a52eb76e7a717bb388484ccd7538737fca0df35481fc30a21e259f1bfe96e37", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnSteerResponse.json": "866ba9a77c12b5d570c837d58f73bf40b24e50fa93404bdf792dd984d313b1aa", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WarningNotification.json": "f83c400591b923400ca0beaaaab1341c712d5ac0dee4ce6868a8e590f46490f9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsSandboxReadinessResponse.json": "077f60a3d6d1fc226c45059472b29caf675fdc3fdebb29569eaab94bd05ceb00", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsSandboxSetupCompletedNotification.json": "dc5383ae8fc2a46badbc2dab3ccd0447fed97729c2d5a177e28c4a7e2a60c329", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsSandboxSetupStartParams.json": "8610d077fff4fc5811f2e33dea82617a15ffb82f08e55e1540aef877133f5b4f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsSandboxSetupStartResponse.json": "830bf89deac3e73e36b7d9799ceed32ee25e782c30b1d25266374aa020d3bc7e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsWorldWritableWarningNotification.json": "bfa34d4890c8121a04412b8d53314a13adf98289fdd948857fd97b808dcbe79e", - "docs/handoff/reference/mac-facts-2026-10-03.md": "18c728dee09ac63907f100c86525ce89e790185838154dbcdc0afbc5eef396bd", - "docs/hardware-fit.md": "d14f89076a7ab37a61a3360c4ae2149f59cd401e719461efcef20af2c5b5e275", - "docs/ideas-switchers.md": "cd24cc08ea91a9724d4dd5df6553ce1b5ee4d7ccc0151a5557f01daddddd59a1", - "docs/input-devices.md": "02bf83893ca3125232a8dcd80ebab1fd265ab6bfe1d96fa949174dee68fcd6ee", - "docs/integration-loupe-glance.md": "74111d9a7fd05f3882752a08ffe7b4cf7213acd5a8bb10a7a3a7a491d070cb9f", - "docs/launchpad-design.md": "03c47604122ec36bbbf1ee4546e2be570e59abf6794a55714e02cfb8c806bb36", - "docs/launchpad.md": "6955298463ca2aa406fdaf2d3c5e8193a6264cc0affc800c8d592684ed7c675a", - "docs/lid-effect.md": "cff5610ca05302afd52293633b36900e57d89abb26d611ada26faa7013b67e59", - "docs/live-activities.md": "4caab93fe0c0736d85520feb41d28e32a7bae94bcb8f3efa2ff0440fb9260c6d", - "docs/lock-unlock-plan.md": "59e782cecea525c98dda7033b07c4873bd9be678c244587059a7edcf9e82735d", - "docs/menu-bar.md": "6ba87eb72d428ad59b853cf3e029acde5f3edfa2c4f06cdc056f1b226d778158", - "docs/motion-direction.md": "8f6c801d7a189ebc57a0dbf3057b0c0c5786d89b35d80280cfc6df4147827898", - "docs/multidisplay-authentication.md": "6bd31097ab87f2f1e068cba583ca093e4ce381661ff72fc5cc0074964abebd67", - "docs/niri.md": "4c52682ba547845e1e336ad5ed368f2c4cbf21499dd0862bf6415a2222a07556", - "docs/notch.md": "71c0d9daf1cf118544aae131550adfbcae2c39007631541e7509c792a7dfe2d3", - "docs/performance.md": "03a3bd2918a1f58e3bc4ce3dc7d79d74e88ecbbbc620cc2e91576dc3bd5833db", - "docs/pip.md": "74c9b37f4473d7ef8c7bc54d0a3cb64f87bc02e5a853e5ac013adb08023bf8ff", - "docs/pomodoro.md": "b1295d44a0932d2742d207edda8c21294cdcc302c593eb3027eee3de793e76ea", - "docs/privacy-page.md": "f0d41966695d89e893ce3a315e177e1460f414548de16a1d2988a19b1ec78770", - "docs/releases/README.md": "79301ab70bbe3c5bf6d7c7095107353d92d1d63eb879bd0fe40d72a7f313bb26", - "docs/releases/v1.0.10.md": "2ad3ba06630f9c018bbe28cf2170b256e81b456c78d25e50908a95759bf4e315", - "docs/releases/v1.0.11.md": "9aa1150983710d8250fb56c91817eb1a25b23428cfc58c23d6f8abc648726198", - "docs/releases/v1.0.12.md": "23d4aae11e4085359c1519191cd6e6fabff2c7e11f201e312c0a08d07b9ce8e1", - "docs/releases/v1.0.13.md": "3e57abbf6c7cd8e21bf51dd5efd7a1f0a743c9db18de4f90c7212fd22bdbf6c3", - "docs/releases/v1.0.14.md": "9bf99e2532d4f6b01890e6ea2afa358e362024d365774350bf4c767fe90c23e7", - "docs/releases/v1.0.15.md": "79383e8838bbf160108a38fb70a272f26d4cb2180dc4d181a06fc94535cdaba2", - "docs/releases/v1.0.16-checklist.md": "cad6ca99d72feb5702d9ddb8459ea37bfa10246cd66434d71139000d3508eecb", - "docs/releases/v1.0.16-ledger.md": "5ef9ad81aedae8dfe2089eef058a022ffe22fd14d34c33b3af2d937ce8313170", - "docs/releases/v1.0.16.md": "d28ea7827b3c8c8d928e722edb1d7b7641306f6fcfe3134ff2a7015a6e08febd", - "docs/releases/v1.0.9.md": "da69d052a7612cb91c5c49b236824ec85cfb8c3d2ca5503621a386b129dd3368", - "docs/releases/v1.0.md": "3783367f227bc76b9e62c90d904e0f3ca0b0fa138bc6ea96542643dcd2a84f43", - "docs/review-2026-09-22.md": "5a8cf4a5f91c97787a44d3df90e075f64a7b6da3b1e0650b903df397fd521d05", - "docs/review-handoff.md": "88248a00dad8f753544b5b0f7761bf425f22ac9c129550628a7d17fb5bdf6da3", - "docs/scorecard.md": "82857ac3d1ff908d61b37d07e8be05210b61730e6de46e11a57b048f54e821ba", - "docs/slide-over-review.md": "1c0b2c7c4ebac9921566ac68e958e68930cff0fa140d1abfec210cf0c80eca1a", - "docs/slide-over.md": "9fcf23e41ebc04dbdd03532cb1740b368e707532dbde827fa1a6289e5c634a84", - "docs/ssc.md": "487a8f561f4d324f4db098edb82ef9f8d9db6caf86aa2ab990edbde9ffbd1baa", - "docs/stuck-habits.md": "c6b291d7a477e3ef5379957dace049db769b083982e7b14a6cfd4c214f01620a", - "docs/system-integration-polish.md": "ccec7301237a4118354791bb2cbb6df03ce5fa456d999b4721acd6c56872068f", - "docs/third-party-lock-overlay.txt": "1520c03fc15ec8c17bd56947eabf885c593730a36fb13498bffbc688ed4657fc", - "docs/touch-id-island.md": "71d3979b588171198c23110980b136ce5eab5cda56155e611e31a17b41c19a52", - "docs/update.md": "9cd132c1b37d598a19e341fd3009fcc52b3254456f76c77b35d4207fcf5ef1d3", - "docs/validation-2026-09-22.md": "62abd3ac822ea9dd8fadbe218d7266ec7d0a9237bad51bb7c4e972e92ba4425e", - "docs/vendor-biometric-research.md": "a01f2d2b7ccc767b47bffeadd97cff72fcf9d02341217a36d613422ba3a306b4", - "docs/welcome.md": "e6749f4bafdb588366b5e6b1b6b3cef2fad0b30081fc686745c9d8b2bae659ba", - "docs/window-browser-performance.md": "96a7db937e1bc15ed831508f20fbe2bb9fec038a78c15e52255873c9922ac980", - "docs/window-browser-polish.md": "e6c24261ca1007e214444d9e6ac14ee1d330aeb0f04720713a3cc3b633b85fa1", - "docs/window-browser-progress.md": "4b732c36182a6a3bf53e7274efddcf4e04c982ed20d86dc07e9c982a4b0a3b9b", - "docs/window-browser-test-coverage.md": "5b6de1a8159407b3875660621a421304cbff7bef50e4480359135bfa2aa056a3", - "docs/window-browser-visual-qa.md": "46c5f8e44074a816ee370fd8dfb2bea63de9d04bcf867549f579a20eed714b86", - "docs/window-browser.md": "b8015c096b7ad42d33a52ac65babf91aee7a13d3df9ac87f76f0a2d9a294b64f", - "docs/window-management-quality-progress.md": "3d51827a6c8f2a1603ba940b53ea1fb0545a119ea7c39e2df5af2bdbbc004b6e", - "docs/windowshade-requirements-status.md": "f25a63f84555d95a2e9697287d06fdaa5f7c89536f9911cd4c5711289a2c90b7", - "film/ws2-concept/.gitignore": "9ae8e02462ff393bb40e787f0a65e79d241ed4f74b32cc57c64acb4ac18fa3fc", - "film/ws2-concept/BRIEF.md": "05d4db19471905be1b8542253e00f621c6ffad9fbdf57ecdfd14b10df50b5dee", - "film/ws2-concept/DIGEST.md": "1b74350777e94f81fb7dda50a092c9036ff465abf79750b44604c432d3c3a5cf", - "film/ws2-concept/package-lock.json": "89819b15ca1e71e9af46b6dc766db1c181b5b4dc14d1f2ecd0630c164dad86c9", - "film/ws2-concept/package.json": "c50558ca59bf2afc844745f51ce7b1b9310372af4f3cc9c7f6ef9aeb51526e2d", - "film/ws2-concept/public/footage/SHOTLIST.md": "a10154e0ef8db5ff09ec6f35d1d2b182229a25e0dfd75b0028b908f6b937fac0", - "film/ws2-concept/public/footage/manifest.json": "48793c6bb3ed0dea0fcfe54eb2c936e3fa0d3bff5499ba6954b704b3325da9a2", - "film/ws2-concept/reference/LICENSE-video-shotcraft": "b2ce9877a55547ada9b870150664d1468ff777e67cc9888806a73927d31c5771", - "film/ws2-concept/reference/aesthetic-rules.md": "4b5f3efd84d10d3d0e1af742a2ee16cecbd1c9aee8e982ed5ac1b7c9f14de78a", - "film/ws2-concept/reference/cards/ai-stream-response.md": "a44dc2f57dcc3e367e21ecd71669f6550262e5746be0af87e95309ed40308e65", - "film/ws2-concept/reference/cards/circle-match-iris.md": "5c5e46f211f90fdb437865a863144abba7867eea34d7c19b34d5bc0e5e063f14", - "film/ws2-concept/reference/cards/crash-zoom-punch.md": "7ff7214d17dc305718683ae15b308ab6704a2cc82ee82a6afe9db5cbe7a417f4", - "film/ws2-concept/reference/cards/dataviz-landscape-open.md": "40318d4903ce1aecf1b39a0beb7738e7ec9b41f35ce49978eafe875efa402439", - "film/ws2-concept/reference/cards/deck-deal-flyin.md": "1341d0ae4728efa49ee47ee5715eb11c19155ba695d15b79ac5f986c180f71ad", - "film/ws2-concept/reference/cards/depth-layer-moves.md": "3caa8ebc9c5ae5af8dfe3932f43bc88c1f1bd5d4e6980a0c0461be121bcf1acc", - "film/ws2-concept/reference/cards/draw-svg-trace.md": "efafcc9abd8cd7dee3e22036b98dc7fcc1c5d122ba7630af622f0714675a335d", - "film/ws2-concept/reference/cards/fui-hud-moves.md": "480e920e376e8f18529142d06c4de84544406b0e5f2dd37062dfe274b3f51305", - "film/ws2-concept/reference/cards/glass-pill-dictation-typing.md": "fd41dce82df9de936d958fee0640d0b411f13a5e0f71711280076a848e639036", - "film/ws2-concept/reference/cards/icon-performance-moves.md": "e643217134fe454c5049a4bf02ece3a2c0d066a4bf7f2c92e3d2c17daed351fe", - "film/ws2-concept/reference/cards/input-trigger-moves.md": "4ad36f963da66a7b1c9315da7f80ff75fe3e44d687036c876aebdc1b7484a992", - "film/ws2-concept/reference/cards/letterspace-materialize.md": "f6632e8da2ab2bef13248514617e3e636c79d9140de4605997312b01060ddd4a", - "film/ws2-concept/reference/cards/light-play-moves.md": "e45f10c67bca8d9bf20af879f60328182ba71a67fa0f90c082f8c8feedb42328", - "film/ws2-concept/reference/cards/list-stack-press.md": "fcf031f506570e4838c9313e4957c8c290a048a35321156ed61874685e8110ba", - "film/ws2-concept/reference/cards/logo-shrink-wordmark-lockup.md": "1f76c5434a85bf2e5b8867142419577348adfe265fb215e460ec2b7e239b189b", - "film/ws2-concept/reference/cards/morph-from-primitive.md": "c338f6d3639b65bea1edff3c5749e530daa9a6ce70c8f44e6bbffbcfe86a6456", - "film/ws2-concept/reference/cards/odometer-digit-roll.md": "8f8b356fc57d914d4b324244fe437b232fe10030d212482a31b19a932c56513c", - "film/ws2-concept/reference/cards/outro-group-photo-launch.md": "6cb64b674b8bded5f08a39aceac73de2b957c7a6fdaf559921c4421b6c27d46f", - "film/ws2-concept/reference/cards/paper-title-card.md": "a474a2d6f5563239be6fabd33e0e6d9002f57623bc49ddf57ea0020cfeffc458", - "film/ws2-concept/reference/cards/pill-slot-cycle.md": "32cddebfe7bb0869057e0f81f66c6d6044ea152b381f402a26707e9d4274ff62", - "film/ws2-concept/reference/cards/quad-split-parallel-scenes.md": "22b9e42c9d136c29710ea9371728205198be2ec73a90322107ce92223ea18fcb", - "film/ws2-concept/reference/cards/scan-bracket-sweep.md": "e80d67b51792b6355baca5f0547d8b9255675ec3fc6b935b43b57f44917cc686", - "film/ws2-concept/reference/cards/shot-transitions.md": "2cdb68da4060b519d4b0545db17ebc5ca000f04c814f40b0de4d4082756bc216", - "film/ws2-concept/reference/cards/speed-ramp-freeze.md": "7d365e36082978b66ec5bca6623b9dbe57c7898b472f031a84d2bbbd09c3f56f", - "film/ws2-concept/reference/cards/spotlight-hero-card.md": "fbbd603a71ff0a472f37d4ea5647506da2c06dcef2f2d4687d3bc20c2484d989", - "film/ws2-concept/reference/cards/svg-shape-morph.md": "ddc54c05b5c397adfe9c9fe458cf1f9ec62232d8162eb82ca3dca00090250f71", - "film/ws2-concept/reference/cards/tension-camera-moves.md": "6612ba598559261d2bb556bd536eeb1659490102a48b57e034fe053e10774631", - "film/ws2-concept/reference/cards/terminal-3d.md": "956b483a20e9bf49c192b53ed060fa9690cc5eee771e0d3ca29758768836bb4c", - "film/ws2-concept/reference/cards/transition-hidden-cut.md": "3e6b872df779eef27a4ec0304d04a02d49ba5a3ad7bf6744020c1de94c64d22e", - "film/ws2-concept/reference/cards/transition-travel.md": "7e1d46357459532c97dde76cf2631770dd21580978f13437a0c4eefd647653eb", - "film/ws2-concept/reference/cards/type-and-filter.md": "05da1b7e16fe652d2f5868485e913d08caaf87febb5512bd27b71d6b6c964fef", - "film/ws2-concept/reference/cards/voice-waveform-live.md": "d5835944532b621f55fef1894bbf6e7ade6c453402a8a9a01133626b81708d98", - "film/ws2-concept/reference/cards/wall-reveal-moves.md": "e0783733037425ca97c48fce97fd10fbd1c104855d59faf8b50115f54f72d91d", - "film/ws2-concept/reference/demos/_fixtures/Fixtures.tsx": "e06a6edce67ba854c46b897c11575d487ab265a2b3edf2b480be85dbe29bb5a0", - "film/ws2-concept/reference/demos/_fixtures/Motion.tsx": "961a9ce2401e38b5fe22fce7f44d84fc656d76aad0b178082e447feb01494421", - "film/ws2-concept/reference/demos/_fixtures/PageCam2D.tsx": "36b3b90680df7e99f0ced02f135181d7037f74c33a4f425cc01f7a110d20f69a", - "film/ws2-concept/reference/demos/ai-stream-response/StreamResponse.tsx": "017726ea7fd92256de50a1c5018391b88efc9920abb7d0cf42dce0e2c0db3df5", - "film/ws2-concept/reference/demos/ai-stream-response/agent-stream.jpg": "8a6683ac0348347f941aaf5f396d48e70086e61ef0667626cb77e74b48d076f2", - "film/ws2-concept/reference/demos/circle-match-iris/CircleMatchIris.tsx": "0c2afbb49d65aa15241396fb2343ba3cb046d0958cd80a9eac1925e4f93efd20", - "film/ws2-concept/reference/demos/crash-zoom-punch/CrashImpactReal.tsx": "6150253befeb22cff49492dcf3a5b56c01d667e3df6136466e480d7b3b92789d", - "film/ws2-concept/reference/demos/crash-zoom-punch/CrashZoomReal.tsx": "495a5afc91a4c93424d15edf35c8767d1ff90f4d9515bb9194f68d7f355a181f", - "film/ws2-concept/reference/demos/dataviz-landscape-open/DatavizLandscapeOpen.tsx": "f575d1387ed5fe5bd1172ab50cdda20fe0562d44bfb469ec6d199b97bacd024a", - "film/ws2-concept/reference/demos/deck-deal-flyin/DeckDealFlyin.tsx": "4738e54d707a82847d1a5081af88876a872465eb3ead94f1c7682acf8e5a251a", - "film/ws2-concept/reference/demos/depth-layer-moves/DollyZoomReal.tsx": "47d44cad258e8a3c7b7bfd7c5e5b3535360b486f21621e6fb25d210c7e4797b0", - "film/ws2-concept/reference/demos/depth-layer-moves/MultiplaneReal.tsx": "b67c6ab37f02f1df6033b54fdb08d1fa0aa85300404578be50715285d16d2124", - "film/ws2-concept/reference/demos/draw-svg-trace/DrawSvgTrace.tsx": "654e26eef7357c64a828a6cbbd790331f9865e0e9c18768de15de46c281aacf5", - "film/ws2-concept/reference/demos/fui-hud-moves/LineUnfoldPanel.tsx": "87329b62b3dfe20b6c08c9f3a559b2f77ee4841b4860cc2be1a00ddf2d5d0122", - "film/ws2-concept/reference/demos/fui-hud-moves/ReticleLockOn.tsx": "46bf287a5de1fde17d34e3725ed6cf66d443a90cff63ebcc907293cf0c31fdf5", - "film/ws2-concept/reference/demos/glass-pill-dictation-typing/GlassPillDictationTyping.tsx": "b3d70491d046eb645ea594e5e2a5f9d24d40dd0cf3860d7e65496e528e47f688", - "film/ws2-concept/reference/demos/icon-performance-moves/AttentionBounce.tsx": "c467057383f91a4433be617db40d92d03f5f53f47e4cbcedb66091492f50cb87", - "film/ws2-concept/reference/demos/icon-performance-moves/PopBurstConfirm.tsx": "cca22774f4d75754795f96e0060f727a8b062c3005b7bab5cf45fce86f02b80f", - "film/ws2-concept/reference/demos/input-trigger-moves/CursorPerformancePunchIn.tsx": "a2970990b385856cd9e176757eebdcd778fca864f7bf979c976b8fd4cfab53d3", - "film/ws2-concept/reference/demos/input-trigger-moves/KeycapSmashCut.tsx": "cd995c264dd139a0e6c161d59bb9b5cff17d92fc2ac4efba2e7003e329d53904", - "film/ws2-concept/reference/demos/letterspace-materialize/LetterspaceMaterialize.tsx": "c66c6a726608e8de3584afd8ff25406eecd387edcf313c701a14d577cf7c9341", - "film/ws2-concept/reference/demos/light-play-moves/HalationBloom.tsx": "515567c881a3b18c8ae92d001b0b656b506f3bbadea32d75a82a476c6ea47096", - "film/ws2-concept/reference/demos/light-play-moves/SheenSweepRetry.tsx": "c411aedec951a84afcf1722c93e8d9bec2864752610c652cc8a7d9e862f5e799", - "film/ws2-concept/reference/demos/light-play-moves/SpotlightSweepReveal.tsx": "2abd85f00e8221f6a6b67c89d0be24fea3dc661a1f00d68e3dc954567cb4b438", - "film/ws2-concept/reference/demos/list-stack-press/ListStackPress.tsx": "6649fa6321663c6b54c9ca326147917d89a2dfd61d582954b996c7dd83c878db", - "film/ws2-concept/reference/demos/logo-shrink-wordmark-lockup/LogoShrinkWordmarkLockup.tsx": "d8581f081b037f36954214276aefed9039ebe8d76aadbe91ffdf7c6ff3d4a4df", - "film/ws2-concept/reference/demos/morph-from-primitive/MorphFromPrimitive.tsx": "f18d82ce6675be5c0b097969285a973c122633f2844fd1c4a81cc1c6a97a0d5e", - "film/ws2-concept/reference/demos/odometer-digit-roll/OdometerDigitRoll.tsx": "e91c46c1c80f68f83fbed2c1c39e5ad22d6be5799f3541978f56b9e61ee73af2", - "film/ws2-concept/reference/demos/outro-group-photo-launch/OutroGroupPhotoLaunch.tsx": "af4bbbf21570b65bc8e33b6ed679700089315bd17dffaf17864e4a8ac1e39830", - "film/ws2-concept/reference/demos/paper-title-card/PaperTitleCard.tsx": "5ab4b473e631c2863d6033be22231a07afce2b29d08322d5ba821607c2642a16", - "film/ws2-concept/reference/demos/pill-slot-cycle/PillSlotCycle.tsx": "a8db19162d267d107904fd8e46573e9b74854bcbf871dd604fac56ff58b87f2f", - "film/ws2-concept/reference/demos/quad-split-parallel-scenes/QuadSplitParallelScenes.tsx": "0ef89104610b5a00fc7bb89367957fa8b42df0b616a6c98ed535af6984f07c8e", - "film/ws2-concept/reference/demos/scan-bracket-sweep/ScanBracketSweep.tsx": "e96046d8b393545fc17a5b6c5d0158aae95d2f2285b6d2a997232a6595e6686e", - "film/ws2-concept/reference/demos/shot-transitions/BlackCardTransition.tsx": "4e4698247bb6bdd489ff34b46db292da07e616e575681eb13624b4f21d883561", - "film/ws2-concept/reference/demos/shot-transitions/DarkTunnelTransition.tsx": "526fd36c73b2aebbf01164900bc30e953bfa1361e76835d4efbfe47f7980ca67", - "film/ws2-concept/reference/demos/shot-transitions/FocusHandoffTransition.tsx": "00662137985de0d86b86cb882544189e6cf69276e8d849f45c7b2c23a84b679f", - "film/ws2-concept/reference/demos/shot-transitions/MaskWipeReal.tsx": "92eb6e2a34f4f075b286e03fa4ee000fda8369ff5f3b2bd3a02964e2efff3713", - "film/ws2-concept/reference/demos/shot-transitions/PortalWipeV2.tsx": "037b4f5bdd9b5c3d73a11d2932acddc471127e7051c122aee0f6423b77f511c1", - "film/ws2-concept/reference/demos/shot-transitions/WhipBrakeReal.tsx": "87c84d66f0675d921ca4cfd55a9fd9c5a5ba9a7717870d4b44c4c391c81ad063", - "film/ws2-concept/reference/demos/shot-transitions/WhipPanReal.tsx": "eda7132e8c2e142be87995b50a30e48c60c925872a9047c6bb8f54a8406be37f", - "film/ws2-concept/reference/demos/speed-ramp-freeze/FreezeAnnotateReal.tsx": "5ea9848eb760ed76123ab152d4e2b60bb3b1df9472c3b0ca12e6723fb64f35c7", - "film/ws2-concept/reference/demos/speed-ramp-freeze/SpeedRampReal.tsx": "f3f9e54385f0920aad4071d6f85bf9c878946ddb7908894d5802ab2ecd5f11b8", - "film/ws2-concept/reference/demos/spotlight-hero-card/SpotlightHeroCard.tsx": "9dcc839d8953ff930ade91c82a7da178a31afdaa1e81b1b7ff59820e4b6cb04c", - "film/ws2-concept/reference/demos/svg-shape-morph/SvgShapeMorph.tsx": "9e6bfaca697bd36837b3c31163d607863942570daaa0b5abda0c0c5f131172ed", - "film/ws2-concept/reference/demos/tension-camera-moves/BulletTimeFreezeOrbit.tsx": "975f02697f579905a6d83461727f7e258f285fa4738d783ac96b3e6f997413bb", - "film/ws2-concept/reference/demos/tension-camera-moves/DutchRollToLevel.tsx": "de3f0848a382c77d5f1d7824041fce6a371cef804be592845fba981dd83564d0", - "film/ws2-concept/reference/demos/tension-camera-moves/PullBackIsolation.tsx": "93e36a2f42e96497627fb6aac92854d914f70037239a772e5cb3830e7f1a9844", - "film/ws2-concept/reference/demos/tension-camera-moves/SlowPushIn.tsx": "db43d1d0d52b27cba3a97f17bf2999bcbb8750f5c4aee460889285d7c2647446", - "film/ws2-concept/reference/demos/terminal-3d/Terminal3D.tsx": "810807a14ff6a7f813fe2ef999a40364734043428d34d9e272b24e7df18280d4", - "film/ws2-concept/reference/demos/transition-hidden-cut/InvisibleCut.tsx": "41e68ca391f37c1ca10288407283c38f71844ab7f796b36a37056d7c56f43ad5", - "film/ws2-concept/reference/demos/transition-hidden-cut/LightLeakBurn.tsx": "31e4be432a84e13d6fa233ef3aff4a40646d67b949e16e9a5bea2a8f7b62b5fb", - "film/ws2-concept/reference/demos/transition-hidden-cut/VersusSlam.tsx": "ec0f28e508e4c3706a642798ed8516d90ef1b39c7350e1af15e0f5e9f4cb481a", - "film/ws2-concept/reference/demos/transition-travel/LetterformZoom.tsx": "272b01d64d73252aab1b70b8f6214656d046704266ca06e5306edb66fc75da13", - "film/ws2-concept/reference/demos/transition-travel/SharedElementMorph.tsx": "fe5d3a1071e71cce96470939bb6f4b4e7dc52e61058697ffa010c3e17e3521f3", - "film/ws2-concept/reference/demos/type-and-filter/TypeAndFilter.tsx": "95ab942c3e7f0416fbab7563ff326724123cc2a4ddc9fea478aebc8901cdf3b8", - "film/ws2-concept/reference/demos/voice-waveform-live/VoiceWaveformLive.tsx": "77ab5983344687d7d591e2101febe8f80bd72fcef2043b470fa24fb95ee9f833", - "film/ws2-concept/reference/demos/wall-reveal-moves/BentoLightUp.tsx": "eccb4c2211af30cb26b391ea734c326599958906411e9a3c019acfeceb87fd69", - "film/ws2-concept/reference/demos/wall-reveal-moves/GridWaveFlip.tsx": "c39a5cabdca00167d3354667442b4de477b76a36576815abc483609f1198f481", - "film/ws2-concept/reference/demos/wall-reveal-moves/WireframeDrawOn.tsx": "18d2fc4192a67dbfdcfca390d753eb52f6bcb50be316b71480e54ed32208558f", - "film/ws2-concept/reference/lib-tests/__tests__/helpers.test.ts": "65617872abe7a728cd19f12707fb456225d27ca0bab30863277d3b47e0a834ee", - "film/ws2-concept/reference/promo-energy-arc.md": "72f5be431d97c04395f3f02cbc5968922a906bcba808d511ddb5d9922b936190", - "film/ws2-concept/reference/sound-design.md": "cac6f23c0b360cef7c7d04655f3009cf5e45f79e5f775594a622e680b0301521", - "film/ws2-concept/remotion.config.ts": "dc2560488ec68013be8dfaf6995d8aa6ef12ee1e64253d7ed3ef2f9a28dd3eb8", - "film/ws2-concept/src/Film.tsx": "f9c41f018c382e43b074435f7f9383cba58337a1fd9306a6194c509c98f4ebb1", - "film/ws2-concept/src/Root.tsx": "4e1cf80dc01f8d3fbe56f9c21285b0d73e427b13284b34d218be45da30f77b7f", - "film/ws2-concept/src/index.ts": "98b03b1da7aa397e0fc89cb4600c418d3572b389cb1831b1e72e9b4400a5a34e", - "film/ws2-concept/src/lib/Caption.tsx": "e5be094d9c4321296da5078e51a83147aa39e4d95c95dccc2bf53b9f7d280d04", - "film/ws2-concept/src/lib/ClipCard.tsx": "3532788285cfe52fef4e836979832054c41885b238f4055fd84b40c8de44670b", - "film/ws2-concept/src/lib/DigitRoll.tsx": "aeb03c74d481a238dcd413af3054c264f9b4f91d5c745620e10a361fa4cbc20b", - "film/ws2-concept/src/lib/FlashCut.tsx": "2e8d9e6319f99970be839f05bc869467b3d580aaa40809efb04b5dc02dd84c7f", - "film/ws2-concept/src/lib/FlatPanel.tsx": "e5dff9388d24376db383873ce8ce32e3264ab5ef35c959733fbc568efef6acdd", - "film/ws2-concept/src/lib/PageCam.tsx": "1679bfc0c15973d5a51f6b600ae17d4d8c06c2fa3f8513e5110f9d0b9b3271de", - "film/ws2-concept/src/lib/VerticalTicker.tsx": "e4f90b838559beae465c6bb08736c00097bb0107d6dd4a378f64308e2acf1bae", - "film/ws2-concept/src/lib/helpers/camera.tsx": "8e5fc4e0ccfaa258fcbcc362761803d2c3e548cbf2e461d157cb42a134caf22d", - "film/ws2-concept/src/lib/helpers/motion.ts": "9123bacf8078982a903bb565923974902212f93ebe265e24d188e4362a8e251f", - "film/ws2-concept/src/lib/helpers/rand.ts": "0c64fcd062f1fcd7547e3da96cfa8430c2502eaf2e3f09fb2323392f8a5493ef", - "film/ws2-concept/src/lib/helpers/shake.ts": "bbee393468a944df5ae85261e9ffee3c78fd78de0087e057cf96ee36e569054e", - "film/ws2-concept/tsconfig.json": "4c1e3cf27dafa9dca603da9d50806a4cc91bd6c4a98de49cc7ccd2e171a39c87", - "promo/.gitignore": "5952c5b46c4c2fe0f695d512c95baa6bbe4bef5f3b985c8fe52da10177ceb281", - "promo/.prettierrc": "2a58e5602cb3d271fd359a75bbaf7b6e9faaf165c9178ff554ff8c48c80fcd8c", - "promo/README.md": "7b76bf357f34b9dd1e820078d85a8851eb864f4982a43401055c5924d486b5eb", - "promo/eslint.config.mjs": "7f2ca640409fd597965bedf929073b9a74f143643e1711150c4cac3b6ec5c80d", - "promo/package-lock.json": "ba8a6d7b2db0937609334aa8889a719b94b7406b21c0db37ac1b035640b04da6", - "promo/package.json": "2f57b31a94affd8480966acd14d258437fc6ae9b1b1051dc4b1951c17e029bf1", - "promo/public/icon.png": "8bddac882d6d9b4ae12178e69335e937d3391d07e3a56159d926d5b87c2cd8be", - "promo/public/system-css-LICENSE.txt": "0433a8c105e9d410ca3fb7f205aafe8f1be27e0438cf3bd1447907f738ebc6b0", - "promo/publish.md": "765fcb252a02fca61b243b432dcae6725605aa524034b1759716fa4fcd93cfd2", - "promo/remotion.config.ts": "38e9e6394e32f151e454efdeb84da8bcc616da7550bc8ef52e1721a001745394", - "promo/scripts/audio.ts": "55ff6da0a290c7644924f3ae564f8704a4786650d84fd873bdc8b977cecae37c", - "promo/scripts/covers.mjs": "738c2dfcda84fbb723fc78396c9270e0cbb19a628badf2b1433f12aa2e754948", - "promo/scripts/render.mjs": "2e27288a74ce4f26a807ff753d590b22c4b9b865bea8b4b282d017ace0a04282", - "promo/scripts/stills.mjs": "c287ccb068e3b1f252a0ef265e1dd02f5fbbe0b8ce9f7a39fc095e4680ce2330", - "promo/src/Covers.tsx": "5b5b94afc7ac33c7419bee91d55c63b1e95a9cb1b955e33b21ce507ebec9703d", - "promo/src/Root.tsx": "16d33ce51ae6063b7a1ad9fa43dbb0461b7010ad19deef854f5be796e24f8924", - "promo/src/index.ts": "957e481dd33a29b4a55ae0e95dbf763b7e48c37c427ca4bd1275faf34bc07a74", - "promo/src/scenes/DoubleClick.tsx": "ae808f2534b316928be302e4b6620dad99a26ae3bbefa87a1ad0112567ba79ad", - "promo/src/scenes/End.tsx": "4600329f05649b489319be4a4036eed59d07983e2931edca3675ae9b8d64b203", - "promo/src/scenes/Gestures.tsx": "dd3c709a7388c23fd69e49b06f18505101b459209238579f97cad737bcec1fbc", - "promo/src/scenes/Glance.tsx": "fb4877871d9c112d9793c815929371f41ac7b1429a531888d6015a33ae897c14", - "promo/src/scenes/History.tsx": "0f59f6417d9d73f5a2792cc001f6b4f101be3820374a8b9e786f81414aaafdde", - "promo/src/scenes/More.tsx": "69186d0d392cc9ace59d303a09b8615415251395a9c361e4031958ba294a3d60", - "promo/src/scenes/Multitask.tsx": "b51fbb866d46460dc118b1b5d473c0d62ac7414b740c448842b978cb0397db99", - "promo/src/scenes/Opener.tsx": "39dd35c5e72e8d98ecc713c5e2888f097fb1f4d2fb737c5469cae40fc013bb27", - "promo/src/scenes/Ways.tsx": "2f90fd0f0dbdd3ead3af08634b39817b50a2677693bf719f16cb0ca9953e9f67", - "promo/src/theme.ts": "3e42a36199d0014b42ec005ff62f621a9bf766ff12a39f8b61a718800b8865b8", - "promo/src/timeline.ts": "d373cf1d626a280b966105c09b9091fd085f4a35bb21abfc181b8ea2811d4d6d", - "promo/src/ui.tsx": "83ecb1ea03b0df230eb9aa86f7894d75189e54c1c2f1c8dc1e0f28e99269dadc", - "promo/tsconfig.json": "69d107d8754c0c175b1c1d5d29abc32ce157318b31ac90a3c7295c3550114cc8", - "prototype/App/AXLatencyBench.swift": "6e9319f45b6d679689d9357d23fd0c861eaaa9f78b5f76000e771ba738a390cb", - "prototype/App/ArrangeController.swift": "bb95dcbe618844541d577b9c15e5d11558819a5bba8879a85de4fbb79e1523e4", - "prototype/App/AuthorizationCopy.swift": "229705d3b2f3749a77b5593405316416b9a80251337e68fb3723947656c7e0e2", - "prototype/App/AuthorizationService.swift": "b2787dc3bb4369d687fbcde86e444cedc752f30d0629a2c5468ae646328a2ba8", - "prototype/App/Carry.swift": "915aab4bbfb6891ce535b0cf70b8c14118b90bc38c2f73a350ffc98c3b199840", - "prototype/App/CollapseAppearanceSettings.swift": "dcc47edc5d347bd2e247ef3a795ec5250a1a6c7b9f58309c2f4840d5f995b2b2", - "prototype/App/DeviceAuthorizationKey.swift": "6940303e09ec0a5e592ad431d4f071bad92ca1d5fa6e94c44bc76bc4733833be", - "prototype/App/DeviceBatteryController.swift": "f91d842f704003420bc783ec477158f66c722c5a09213bd5c6bf7469dff629a3", - "prototype/App/DeviceBatteryCopy.swift": "d8b91913cb5175d3730b1d4e2dd6673613330b68b44fcf9210feaccc78849f37", - "prototype/App/DirectionKeyPresets.swift": "c886eab76c3e433bf28040b055754f6fc6cbcc6e9394e3589ed7298009e42cdc", - "prototype/App/DockClickHide.swift": "122b5ff669d67ab7633ac3537a09e9246d7dd15fd818a5e6d98371859ec0e291", - "prototype/App/DockLock.swift": "aa87b167fe290bb002c1b195438e6104d8c22ee1eadface9c79b582d65830cb3", - "prototype/App/DockSwipe.swift": "7c3480e2051e7aca564a3743475adb3a391045f0973da44810267d4d3da06c44", - "prototype/App/DockSwipeProbe.swift": "2537fc6c26507d938278bda6cb5721a1285d55dafd084af380bc2487777f2f7d", - "prototype/App/ElsewhereProbe.swift": "1f1bf6576be570624eae2e27f26bd995d1e6bdc729997d015dfd997717404f41", - "prototype/App/EventTap.swift": "3c8cb6ff1897f0e5a4ade26240955a747462e65654e3567abe7c91dfa535fb8b", - "prototype/App/EventTapCallback.swift": "6f48ff09d3c591c589183f212d4e9f5c7cb24fa973fefe73b19af8ecbb8e4943", - "prototype/App/FaceObservationSource.swift": "fe1e1aa7bff0578030af1652c348b0396882037c2d267d439ae97172e9c24a2e", - "prototype/App/FocusSession.swift": "6a8feaa47356c9e6827eb41f3aa81cc972b0f884c518ef5c80716160f3cd8673", - "prototype/App/FocusTimerCard.swift": "f6dfab112513a28dd52b7d01990a9940c9ad9aaa64a37f54d77a85e0645fe996", - "prototype/App/FocusTimerHost.swift": "7aa01c91cb3abf4503ff8eb92a8060efcdfca907b295caa3ab0fde88d264b666", - "prototype/App/FoldCompletion.swift": "1147a93b8ab37828e0dd4be225e879ea3a4636283aaa5d7202369b926ec850f5", - "prototype/App/FoldExit.swift": "02318b36ed4b257e1709818527db5aaa25f18e4d74ed3f08dfcc5865953bbb6b", - "prototype/App/FoldTransaction.swift": "0cdb6083d236e72e193df9db07c672893c10f279be8f53b939be1a1f4cbd0733", - "prototype/App/FullScreenProbe.swift": "98c31a6c3eddf12dde1a50011cfab68143bc38261c1c8e702d67ec7325e49826", - "prototype/App/GapProbesKeysPins.swift": "d457e8a45465555d827bf1928b8907ae1ca128089616705bf38a1d207f3193e6", - "prototype/App/GapProbesPlacement.swift": "3f91f6491b2b0a1580e5bba15c3a86e5199bf7c8e11f7562dd9d5598307a87a7", - "prototype/App/GapProbesRecovery.swift": "d45451bb35ab51dfd798ccf7939b41b4f6950bc03e5eccebd8e52c626d1faad0", - "prototype/App/GapProbesSlideOver.swift": "c307da706445ea559bafe5538b2bf64388e6604a77f9d84dc111e515a5412e81", - "prototype/App/GapProbesSupport.swift": "83fa9445f3d5814413759b3be2612e3bde6c903b5348ce5b5b224e713dc7949a", - "prototype/App/GestureProbe.swift": "5e5806791687b6391695a3b91a899703c2a3d256910f8e05dc61fdbda4cf99f0", - "prototype/App/Glance.swift": "07156696d4117a53c64575ead913c18d79772471609ef160af1798b31e6bdb5c", - "prototype/App/GlanceProbe.swift": "701a340d97b739e13e81c51408c06e6c95d4b631df81ce75455489c3ac82de78", - "prototype/App/GlobalShortcuts.swift": "f73921fa76cadded66d9986ec55a7d5a0b2edf2ae6935abc0860178ec09083b6", - "prototype/App/HabitContext.swift": "a5e7c5c01eaad8338e22baa6c3bb5caeda8d721f7ae3029396dbda004bd36242", - "prototype/App/HabitKeys.swift": "6ffba165b600f582c514d0dabf873f01f2e86890fa60cce68b83e7b83c649c32", - "prototype/App/HabitProbe.swift": "973d23c5f6bf8eec4e2fa41364fe98241b92c4108a79440ec42f383b5d8e005f", - "prototype/App/HoverPreview.swift": "849035faca83dfee588e7b88d0723ff53e99ceb891bd1b4ace1f3c2bf1ddf81c", - "prototype/App/InteractionCoordinator.swift": "5524bd61193c8e7ca5090b7c38c498f094bdc13a3e48971f3f084b2fb7a0c5b2", - "prototype/App/Launchpad.swift": "42098e0e45259a0f04b57713088b09ab57293997d70438a410fef38934619dfc", - "prototype/App/LaunchpadActivities.swift": "ddc8bc3153e658b8b2feed52ea5734b0bd515c722181129c88ae34750366ae75", - "prototype/App/LaunchpadArtwork.swift": "9565fa02024395fcf754acedf3c4caec9ae0a8dd9b618d23b6e17369e9017c42", - "prototype/App/LaunchpadBackdrop.swift": "54d1181b94a8c75d76aa7bb3d49737978ca3ad7984ff1ff107641e16618d14e4", - "prototype/App/LaunchpadController.swift": "64a0979768be281ccd2ae98b6f3e69298c66fbcdb5402b82dfc7f1e7051e0f08", - "prototype/App/LaunchpadFolders.swift": "99b845ca243f577c4b0e2ac8112e6a588b0e27a7d4796b155acc010f8041d9b9", - "prototype/App/LaunchpadKeysProbe.swift": "a57d2c09c520ef962916f8bd6cefd2b48725d298c70e3a1b2bda2f73fa668d64", - "prototype/App/LaunchpadLibrary.swift": "d4497f166351297ea0dc40d214391533641adf65a7301a9f9ad953356b5fb987", - "prototype/App/LaunchpadOpenWith.swift": "8555894605d53d805525ae120f915372cd8ea1050a4b130a063dd4847091ee04", - "prototype/App/LaunchpadToday.swift": "b049a50d0d3df00e200de75734178b35cd9abdaa7b676dcba4b45f8df854d8ec", - "prototype/App/LaunchpadView.swift": "4449e1a9463dd178a45ce565b4bbfef0371c79a6e6598db653ec6aca11f0f50c", - "prototype/App/MagicTilingRun.swift": "1de26ddd7d2df2f182ec578b878db2c67871ff1494f26ab1077bdd9414e6c4d5", - "prototype/App/MenuBarController.swift": "6c48edc1f260204ce5a5abd7d212b22c225bbf1219688573958ea3ed2c294e9d", - "prototype/App/MissionControlKeys.swift": "d90af0193955650f7deba18f5358cd155093313f398ce568c62415ffe064a762", - "prototype/App/Motion.swift": "f93263d9860f82363750593e3f65d4321d35c13ed31acaf268c56270c76138b0", - "prototype/App/Notch+Habit.swift": "fd362e41c78fcbe8ac467ef55a6028552520bb15464f2f4ad5b2151567678e33", - "prototype/App/Notch.swift": "354a6045d7221d33a2c16f849a34a910c969fce7acc58fbf7e958be6fb6b5d43", - "prototype/App/NotchActivityController.swift": "4ee8833f2e4d198fac9eef2c086c0e2bd53a1fce66927f9b42cfbcf42e37bc48", - "prototype/App/NotchActivitySources.swift": "326b6c21f7b02b8dc71ab0ba976cb59e219d0ad11dcf8aae35e3509c4b1810af", - "prototype/App/NotchActivitySymbol.swift": "edf383086a0feb48373ee8af374a37af7245591a146556938cdf9f09eb084cc6", - "prototype/App/NotchActivityView.swift": "2b622c8cfa4ccac64c4c0b2ea70f66263b8d71e545ec6330c22d9067206a08cf", - "prototype/App/NotchAuthentication.swift": "e2db024c1161ab3157018670c80aa14da701ac5473668a5defa246375797d627", - "prototype/App/NotchCoach.swift": "f76df98e2492e2d1070af5c2bf70653af529a8c3082d90c528564f6fca1e0e7e", - "prototype/App/NotchFaceObservations.swift": "f7f541e11cd13467409c555cae89714bd2017f14033100d9012f5982692aafd2", - "prototype/App/NotchShapeProbe.swift": "fe1e1188c4ac40518f18e50c2ccf1ee1cbc5cb65945bfcb7a78d359a52b19d2b", - "prototype/App/NotchShelf.swift": "0efd0bf6633695be3f2bdd2e542ecda53e8de26f2e78736426c87aa1b951e19c", - "prototype/App/NotchShelfProbe.swift": "db06842b77820fec3d30b66e9fdceda8cd0890d7f496d7c8d676d17d5a496760", - "prototype/App/NotchThumbnails.swift": "abdad6e9c2c85052c682c9e4d9fa34b190f631fb1de4fe9ef8c652f015dbf652", - "prototype/App/NotchWatch.swift": "8ba371f82c6bcf640464d58340bd3d63f503a6d0784e8c45fd84396b10921586", - "prototype/App/OverlayFactory.swift": "671c722677e213613459f159ecd685a750bd6e871e5eedaa492a0f35b3eb403f", - "prototype/App/OverlayPresentation.swift": "46726c5a24c76ab7bf3a2e6250966cbc1c0234444d2cd2fbd0a9d0c7c1718060", - "prototype/App/PeripheralBatterySource.swift": "149935ed50964a0c77b69551a56551aa2d26ee84e9194e098f3cf61f4ece8d36", - "prototype/App/Permissions.swift": "7f7ffa614871ca3fd6241e11b8835764f3815875e0526910145db5483861a9e5", - "prototype/App/PictureInPicture.swift": "afff2ec83f3aa33007437729784286ded251678701f912fe482bff3fb1c77b55", - "prototype/App/PictureInPictureViews.swift": "66190877175232fdb8be54486a0b28beea474a168b898dae9f33a30931c8f9ed", - "prototype/App/Preferences.swift": "7e7f3c3623de1e5a955c552fd8117bcfd2c9ee2ce8f8839f1950a241d78c72c4", - "prototype/App/ProbeEntries.swift": "f09f5e8607eed201845178c7e0dd2cd87340ed71fe0e6f6716241e9cb01057fa", - "prototype/App/QuietDefaultsProbe.swift": "cef48ea449ad9551e122bce3f47d495f1d3f691fdbe8c715cd7966a3421207b0", - "prototype/App/Reconcile.swift": "a24b56d18ee50914538f3581f59fd0c496e29babe7a424ed6613657f785bb2b1", - "prototype/App/RectangleImport.swift": "ea45acb976738d3cc1fd347c1042b121e55d7c809c2f9e116580d728cb596258", - "prototype/App/ScrollStripOverview.swift": "87840b8f1daa1ff7f93ea5b54cd79462c4c62dd46e315756620f8caa4bffdcd3", - "prototype/App/ScrollStripPeek.swift": "fbe850a728468b4be72c3cfa39becce428aa423a709afe870174d15d8c39f9d3", - "prototype/App/ScrollStripRun.swift": "e454ad1d46d9ff547c5fd4557722e3b450925e24c0fc6759eb00d9550ac790d0", - "prototype/App/ShadeController.swift": "b33f4f48c3b13e0aba198daa0282719a03f7dc0843bccd1c77d1e4971318e663", - "prototype/App/ShadeSoundPlayer.swift": "7971dc06925fa19e0f2052d51427d1ea43d2f800d6d07aa8cf427c796af364d1", - "prototype/App/SlideOver.swift": "ac7b2bb10125399b4afdc47902bdcbb9b1936d147347ed56336900d5685e1786", - "prototype/App/SlideOverChrome.swift": "d4c72f881c8106dd4b9c82d6f4ddd158acf65512380bbd8da6b0908ec804ab97", - "prototype/App/SlideOverDropHint.swift": "247bb74176f37f537ef5e781f4df02fef8f989b8dcc3476f5b038910869b879b", - "prototype/App/SlideOverRecovery.swift": "7f2347ef2fccb5f421027db4da4549dcb7130efc10139b36f542f4fd08a81254", - "prototype/App/SplitView.swift": "5c8694e329550a19a626d4ea9275e19af07a977e5f0a6a3e94f95f487716b87a", - "prototype/App/StandardMenu.swift": "65ae1974c0e53c606e009b716ef6c35e193ac3eff05b1ac2ce46aee829102ff4", - "prototype/App/StatusBarIcon.swift": "7c0d4368393f9d2b5f94844fd45c5a17025b828b44685b57d25c2b32b7ee6774", - "prototype/App/StripKeys.swift": "cd19aed70f476e05d16269ad8a686d71feca9592d46624ccedbc5444f09ca973", - "prototype/App/StripPeekProbe.swift": "35d07816e389419220eecee6383ddcc2afd21d540300f17d44655af190fe1d1c", - "prototype/App/Thumbnail.swift": "70793ef768cdbcfdd3ea38fa14e405de8a91bd5547dac7b84da1f333f9097cca", - "prototype/App/ThumbnailProbe.swift": "d67964e7c25ec612d7f2a8e162a2d530f2f3f64f67272aedcca96c72066cfa44", - "prototype/App/TrackpadGestures.swift": "9fb30b213a8c5076faa2fcf7de09ae21da700ead05b8f4322d0c00f8bc984db9", - "prototype/App/Updater.swift": "54d1148098cff28aad517f49c79092bde185ae36cea3ef81932cb0c05b105253", - "prototype/App/UpdaterCopy.swift": "699d4862525eafbe61e04cf5890da36acb899e21f962baa0596346d0c9fc8ef8", - "prototype/App/UpdaterLaunch.swift": "54b642694b112de3a295c1e924658275af545d41ddfed833965b19223d3ba150", - "prototype/App/UpdaterMove.swift": "b540ab91858ca9986e27e1a03de60741c4f2beeb76cc0367838918519c30a1ec", - "prototype/App/UpdaterSettings.swift": "b0a05613483abae16fd761c80ae5745e6c1e13eb76e2174bf87a22060160244b", - "prototype/App/UpdaterSparkle.swift": "463ec65cd63071614152273e29dcefffd826cc73c99d8bf30196f3f94d4800c5", - "prototype/App/UpdaterSystem.swift": "31ffae2972b4bd85964edb73daa74cf2b7f726b7be858a6e9d04d8a64f6adf37", - "prototype/App/UpdaterWindow.swift": "5d4843d963a4dd9e38daa0b61db916ee9c5cf33922b182071b42c9b1ab3f77b3", - "prototype/App/WS2AgentSessionView.swift": "2eb4cc0b0ffd80413aeb0375a2b4973039174218273be6988b5fc1a8f730e53d", - "prototype/App/WS2AppRuntime.swift": "4860048055a951fd637dba2f5f5a2456ced84b234f5034273e8432e3abb3f820", - "prototype/App/WS2CodexApprovalHost.swift": "e08fbdcab085bfda8db45e5a01797b9ef173cc87c52f47ae040353af2863b3bf", - "prototype/App/WS2ConductorView.swift": "35e1bb2d5b14f59c381aba5969009add1be93e97eb3eeb2005fd1d9607e6e225", - "prototype/App/WS2DeviceActionHost.swift": "9bad067f8333d54084cb88f2bffa4dd50307d1bb3db4d34aef501b01daa50011", - "prototype/App/WS2FocusSettings.swift": "5c2dd1877beacb8a5e09b8ffc9ae687924068e791a0224484308a28e1aabff60", - "prototype/App/WS2GameControllerBridge.swift": "e8ff240ac2a42ae32eda28fa656c41ecd4ba3e88ad6f763f97af1e1815690a23", - "prototype/App/WS2IslandCoordinator.swift": "6499c0c6d5b798b909d6546e8ab5c8c081b234c61cff852a6670cc8ed216ba98", - "prototype/App/WS2OwnedCodexSession.swift": "211a2a4a5024547723634142eb60825b43eb6dfbea3a7710d4ab54bb37653572", - "prototype/App/WS2SettingsInfo.swift": "c73bb4d2152117572fbdfd332ae00bbebe784839868830aa2933821195b7fece", - "prototype/App/WS2SupplementPane.swift": "223df7148a746cb7e6a7664c012b269dc0c7d515ae5d1fe698962e75aa5e517c", - "prototype/App/Welcome.swift": "9440f17488f309d103aa9eb75621f7e7dfdf4822a7ae07b7c80a4d5b99ea5bbe", - "prototype/App/WindowGlide.swift": "3f40e5ffb7f4d870e231977916f724a54b0e5ed5ab550f3ffdfe8b5b87d7b0e1", - "prototype/App/WindowProxy.swift": "0c852e43d3926075522d628800851fd625578201d875c669b5efbac119b1ffad", - "prototype/App/WindowSwitcher.swift": "21fa5041bcc27a6622e44836c3e167f6799c9a3857b927d4d7f52fd16ddda92f", - "prototype/App/WinsSwitcherProbe.swift": "05572d4bec475ae450e6b427cd1e2062935ee39c17ca898777a90711241fb217", - "prototype/Capture/CaptureIndicatorProbe.swift": "cb9f717530964a7d3fcd96e8c7438180b599be450273dc8f627e334fbb049be5", - "prototype/Capture/CaptureIndicatorRemoval.swift": "136aa4d41afb6a11c3214df1a3cf92c0fb110bd58d8f02059cdb73161becedf5", - "prototype/Capture/FastCapture.swift": "bbfe8e9b62fd5177d3260309bfcf4a3bb010cba7da6dab9839672ddad9306b3d", - "prototype/Capture/PreviewRenderer.swift": "a8bfbec04f4d8ba82da224832c19b0180a87d6f0e2f6e8c3788b18075e272ac5", - "prototype/Capture/ShareableContentCache.swift": "02d249d61bc8416a480578f4b8db1b0ad074733defac4e191adb5c6ea170086b", - "prototype/Capture/WindowSnapshot.swift": "66b7c0ff2b81b7cf8d4fc3ba0d6887703d50ac94b5207795ee2edef9f3d4210f", - "prototype/Capture/WindowSnapshotCache.swift": "4bdbcdc3270a49071d4feb0f10e80c08db2d8c6cb535d1d2b57d38a712fa27d0", - "prototype/Compatibility/AppPredicates.swift": "f7bed5be688177e482e64ef96066d7ef37967b962206d639b7fdd87430fd7d24", - "prototype/Compatibility/Policies.swift": "ca921cacaacf77751d48cccaaf5781412d8ac867135706eb737609cb6cca93f6", - "prototype/Compatibility/WindowPolicy.swift": "86c30970c8cfd6baad88188c99f4057c4b73311147b1031687bf2153a7d08a9c", - "prototype/Core/AgentSessions.swift": "218b3910959c810d5662d608b8ab9560d5232cf5e69930c330b400c940c65d7c", - "prototype/Core/ArrangeGap.swift": "93078fcf0f8c4693bb2e25dd05fcf78e21b7a76a13adbc0336754969229ca945", - "prototype/Core/AuthorizationLedger.swift": "495d1ce534fe560c8c0fe43ee6fd2bb5e9e24b7f82b172978ffdd62143985676", - "prototype/Core/AuthorizationModels.swift": "185ce60f64c618898aae3e27169843337efd3e8eae9bccd81f3c4151fced7719", - "prototype/Core/CarryShelfLayout.swift": "b12db5b98bd4e244b5ba4ddbaa909c897d74ea7b778c892ecbe1a6f98e0e0f84", - "prototype/Core/CodexWire.swift": "71e73c2b2bb2c5bda0aec0d94ad0d4f7dd6d3c218373de510da8007edc64c497", - "prototype/Core/ConductorCapabilities.swift": "4494697451f96b08ea1c1bf92fbb83ec9539055ac06937edef392558c20c9af0", - "prototype/Core/ConductorGesture.swift": "98802f88fa95985e05a46e75582016e60692725c75c84af0e74cb2248b867393", - "prototype/Core/ConductorSession.swift": "e426c0b1a19fd8bea29528f707371decf0ac65459e3c85dbd6d6e2f94e7f2e7d", - "prototype/Core/Contracts.swift": "12fffc2e5cf207aa0ca6b4c371f28b9eec8c2b374b5e1a06d8943878891b2420", - "prototype/Core/DeviceBattery.swift": "7777539671486437ff4e26398663d7187b31401405d866362efde3caadc473e3", - "prototype/Core/DirectionKeys.swift": "0ef2f8b9997499338f8895bd010cd89007258d6cc221787cb229e942fcf8ec1d", - "prototype/Core/DisplayRefit.swift": "7751172780c0bc7a4410bb94c0343bbca3518b76549aeab18825afe04ca15cf9", - "prototype/Core/DisplayShape.swift": "64d7c414f0a6ccd227cc730547dbffb3cd7812d8dfb6ba858479873eddc8aa0b", - "prototype/Core/DockClickGuard.swift": "2290cbd5d3788825324f661490ababf487a86b77c1e1c6000af81b23afac3ec2", - "prototype/Core/DockLockRule.swift": "159299a99f0e91d3aa06f2eeb0697822100c28db87c8150ceaf19c21d8bcff03", - "prototype/Core/DockSwipeTrack.swift": "41dd4e6f3f1715eda10d3e187a80c4d79f92d4a86fd22b7e202955b171bb0494", - "prototype/Core/ElsewhereWindows.swift": "aabfd47c1f0580f98b68a1c18523dffabf6e2bae2ef1c271f1424f595346e5c6", - "prototype/Core/FaceGestureTracker.swift": "da07128afd663c1cd02d3fe83c93e5da3c2bbef0a97107dffffbd3af68e47028", - "prototype/Core/FlickMotion.swift": "46967abd13acba1380e700283a6dee547073a860520c7c11b86454db570a322a", - "prototype/Core/FocusNavigator.swift": "372caeb9b2b2318d8b15dc8e014a69ec6e2ddc305d5731754f2810edfc5578bc", - "prototype/Core/FocusTimer.swift": "f8d5760f92ad924c1727717938e84bc456f84967c931faec36d9554e243bf462", - "prototype/Core/FoldVerifier.swift": "90a4d023619d31706672da91a52ab721023662591b5ab3f72cda05e32fabc086", - "prototype/Core/GamepadMapping.swift": "672cf04922a50acca6eecd2727b135f07a05acae74ab285e9fb92a23ea39a855", - "prototype/Core/GestureCoach.swift": "2490c0d99e5fd5cf72096106afbb82a07e1d47d15f0c750ed19316dc4481171f", - "prototype/Core/GlanceIntent.swift": "f024dcf706695b1b226f8ab38658f50252310c5035040ce685ce94f087d09ea7", - "prototype/Core/HIDMappingTransaction.swift": "48edb2bb043ddd6cf18285f422ae90e4f75b258ee75efd9c6976fd7ef973a3d6", - "prototype/Core/HabitRules.swift": "dc9c9465f28d295849a1ca032eab408f012feaa35008e0b42d2e7e26d884fa1f", - "prototype/Core/InputDeviceKind.swift": "bfee009b5bc3fb1031a4cebbfa871bd770145e424cc8d9343eae3787d5c88233", - "prototype/Core/LaunchpadModel.swift": "33e3563b11c5ad7c19ccfd332d51c9e4df1e236cf04bfb17d7f505818b8dddd3", - "prototype/Core/LidGesture.swift": "f9988eeff67ed98ef01c09ec1f77f955c049603a501d57e4ef03f2723df9e08c", - "prototype/Core/LockOverlayLifecycle.swift": "7aa73bab4bd6a8b6e3becd3c1c75314889f6997d1911817741e55cfbffe0462f", - "prototype/Core/MagicTiling.swift": "6aeeb96aac653d1eb587c2a12c3d31194fb55bffb196a6849257f593ffedd8b9", - "prototype/Core/MiddleDrag.swift": "c375a2e23e964890a9d5f691b44aaeecee889670e5aa1641eb6bdfa99a138e46", - "prototype/Core/MissionControlPick.swift": "47856dff5c85d98d7d2c9f6c5d741247f88416171f602cfb036865eda3c62dce", - "prototype/Core/MotionTilt.swift": "0561b7804905d071677d0a50de2fe115203b1c6bc2e010cf7695447e1157c3ee", - "prototype/Core/MultitouchQualification.swift": "dd4bf29aa1cef3fca706c8d9781a84da40f2174623ead5cbeb406132e967dd91", - "prototype/Core/NotchActivities.swift": "e5c6c6fc339b58175672abea1322b5aeaa0c526ab850a4a0b0d7c48280f5c10b", - "prototype/Core/NotchAlerts.swift": "2084a95a7dbf3c63d200c663b290ca744ac6494fa7aed52f69ac44c7d8567197", - "prototype/Core/NotchGlancePlan.swift": "249b49af6ba4c0ded8abb7d6087136e70b0bc8afe2c31dd417e50755560708d4", - "prototype/Core/NotchThumbnailPolicy.swift": "7f0c6b19a2c1a899cbff8fddaf8f8b65f2ec01bacf234d92b1c1ca82d60a3350", - "prototype/Core/PairingAttemptWindow.swift": "262dc840763d31105c16f5edda749a2e11ea15064158884c825109fbcd3450e3", - "prototype/Core/PairingTLV.swift": "32495002c85cc927a8c31cd5699ff517f070107120c111919e9b35c1df2f3845", - "prototype/Core/PiPLayout.swift": "176cd9e0b8644d08a50e7503707fed57e762ba95094d497b3e96f276f0a989fb", - "prototype/Core/PresenceLock.swift": "7099b9f42bc09683ac35dd345020a58429bd2e9e19db4823082df19ad7540188", - "prototype/Core/PresenceReadDeadline.swift": "1fbe0aecaaeb279525bc7a5b37de6ffc7b5b48107df0fe84e9524399a287086a", - "prototype/Core/RectangleKeymap.swift": "9b337f8acf4066f3b2bcf51db605f89b52f5727ccfb3bf456a0304fcbd84bba2", - "prototype/Core/RemoteEventRouter.swift": "7d025693b62af9d3a537e0f71fdbc5312f0773b53d6a51008f1f441dab4b3e19", - "prototype/Core/RemoteMode.swift": "559d83d94615574613c9ec13a92ddf9395a55157c21f3eaff0e60b61bb48b3d7", - "prototype/Core/RemoteSessionGate.swift": "a48f690ce3db11c93563402a6e27601ce33cf6293b20985efb4bbecc2e1d23f6", - "prototype/Core/ResizeStep.swift": "f9e26b08435ed3421c0ee7c374f9c2dcf11cb64dca32b01231a2939a2bdb4060", - "prototype/Core/ScrollStrip.swift": "8f035b93e7f890bb6b353722f58b6c637101edf217c486ad85c2173f04931db5", - "prototype/Core/SeamLayout.swift": "2e5fc44dab7a3449ce57e80e05ed3662096209677d4556d5869222555f29bad2", - "prototype/Core/SessionLockState.swift": "1f92f697f9a7c1b5add7c4842496b86d4e65b93f2985e10f08ba3662a82ebe75", - "prototype/Core/ShadeModels.swift": "49550836c173cdefb98bf1a2db924a9dc8c6ebf9b8f60428592a21c43eca1c22", - "prototype/Core/ShadeTranslucency.swift": "f8083113fc6864b3a775a0081af4c957eae6ca186ad3cbb3e1134c6dcf7a6487", - "prototype/Core/SiriRemoteButtons.swift": "be2b7b7d83b28f575eee5b086885b250d4da6b1fd93b4774e02ff6c11b26eef4", - "prototype/Core/SlideOverMotion.swift": "a87a21acec5f89283974f055b5da01928e35a968e14f0aa943176feba029db2c", - "prototype/Core/SmoothScroll.swift": "8bcd292317a0be05903e2c2fa68c7a3c5a6a7b5662179b438dc03c8fd1b633f6", - "prototype/Core/SplitPair.swift": "ded3e14e991ee1180b7ff89699a7d2cfbd42ca965497b2a9678523cbdb62e907", - "prototype/Core/SwitcherOrigin.swift": "be5cb2a70a4e3d9e7e47542205d6668ff4bda622d87e71ef8ae6286d5888e5bf", - "prototype/Core/ThumbnailLayout.swift": "4a7b82ebdd40e4fd6363d03712591296da51c8ef034d86408a9e579745a093c7", - "prototype/Core/TitlebarTripleClickIntent.swift": "1bdcf6d07d61492d16fd239b550194e5d78d250a7a5e446540a389f2aad4ea9d", - "prototype/Core/TouchTap.swift": "60e6818723846479f637e26a7236998f85003ac329709f01ea3ca6a7efc72c30", - "prototype/Core/TrackpadGesture.swift": "f4521524e1de21126f02dce390b1ced38a1e0ad7fd31e05b4da4d333b0fa3948", - "prototype/Core/UpdateDecisions.swift": "ed0cdc6362f49ecbced53742e26260060768db5d441c679b6aab4a39f6af11c8", - "prototype/Core/UpdateModels.swift": "4706a3fd6d8412f30b9962b99ea91d767b45b3e8d184e74c9424955db51f61d2", - "prototype/Core/UpdateVersion.swift": "539abc3c74b8573b255d8d95e0dfa7289e4c80347dd23804d47915cc19b1e793", - "prototype/Core/WS2ApprovalReview.swift": "382ba5ed147027f63d3707ca865e79c7a38183cfa7e7216979472f0a42e4a149", - "prototype/Core/WS2BoundedOutbox.swift": "80fb7f58123a2f9df5c0d7b94c206277427e269273be595ac25e4d554c68e326", - "prototype/Core/WS2CompanionFrame.swift": "2ecb698bdf16965242836f132a7bc801d0ac7db7b488abc0d5a1b878a4c0fabd", - "prototype/Core/WS2ConnectionBudget.swift": "f225317ecabd3143c7c40603ed7a1c2bb93f19f083c59722a6bddfc409be9cd2", - "prototype/Core/WS2DeviceInputGate.swift": "60c5be94786910c4719bcc4b56ff7ff217708e3981591922f33bbe9b384ae662", - "prototype/Core/WS2DiagnosticTail.swift": "fef7ffb8b3191d594e2c9e5e8521fba1ff8271975ddd653c9ae2185281c12fc5", - "prototype/Core/WS2FocusEffectPlan.swift": "60ccb717e3641f20e1fc499dc1e432ba37493e3c4abe8e28c73b2ebc19419829", - "prototype/Core/WS2FocusWindowOwnership.swift": "69a0b9a82fd67c318d92b4bcedebd6f980b094f24b37197758fe1cf85f5ab3c7", - "prototype/Core/WS2InputEligibility.swift": "d88deec0bf2c6224710e90bf106e23a60cee3535cab06e3bf48c8bb027163597", - "prototype/Core/WS2LockRequestPolicy.swift": "900c77a7fda12d50eeaf345bac99e8ba57ae7eb044023f0beb45ab1aa0f616d5", - "prototype/Core/WS2OwnedScope.swift": "20102a3fbab321958f7dde9a24d69453f3a7d45d2f537fd5957a9a4df4a9d6f2", - "prototype/Core/WS2SelectionModel.swift": "c8fb3c0ac6564970d2daedee4d4708799ef0014a94a7bb22b99f18a85d86cf4c", - "prototype/Core/WS2SemanticInputRouter.swift": "7055bb6994681ac67dd6b166374ab00923a8e1d76b9133021d922925ef2ac3c6", - "prototype/Core/WindowShake.swift": "0e94c26c2a949a44c52531c0b5193c887901a36937c1d7ff04b0dc7377ad5d6d", - "prototype/Core/WindowState.swift": "92dccea12a8c772dd4678c4d14e43866c2a8f12b5e88f0573b34133483eec9c8", - "prototype/Effects/AppleSPUAccelerometer.swift": "d39fd145a3f3c46fa949fe9c543c26cbf92decda6794cef93d7440e42b13ec37", - "prototype/Effects/Duo.metal": "7ca2be657b1e50ead1577d23d1e5f65375931ac391d94eba9fd5e9c19649dbe6", - "prototype/Effects/DuoController.swift": "00c452749f6ed69481d92b386ca9a1c5a8e034f4fcce7bcfe8fc5321bd692612", - "prototype/Effects/DuoSettingsWindow.swift": "04a80b69bc44fe5185dd558de270842d74aae8a3f107be907a78483fdf4adbc1", - "prototype/Effects/EffectEnvironment.swift": "b96919951e9dcd50184cf0a49d1e4d4686f84fdda10e93ba775b76adf0b5c5ee", - "prototype/Effects/EffectFrameAwaiter.swift": "634182d48f845ebec9887544b2d1aea0fdeb53e614af3c66e1070b4907f1f68f", - "prototype/Effects/EffectFrameSource.swift": "c63cc6885d42278bf8ce30ae05cfc63e3f209d9490524fbd73ddbfb5087990ab", - "prototype/Effects/EffectInspector.swift": "db563c7b334ee2a23476ee4cf39ac87d3881aceeee49049a855ad4c71d2a22e3", - "prototype/Effects/EffectRenderProbe.swift": "f6e780ff32160d09918c5b38c05af6d954be91353d145d1f21e89a374f85d019", - "prototype/Effects/EffectSession.swift": "42f2c3f32cb94c62b56dbac2a3ff97139feeba19842efa38b33b21341cdac45e", - "prototype/Effects/EffectSoakProbe.swift": "257182b9374960b36a6d143fb650596237140aba6cb10ecc5430779d7c069610", - "prototype/Effects/EffectWindowProbe.swift": "9cbe19213f5f0f965c62e9ff0d523e131b3e3cc2732d2ce135aab2de6299b16d", - "prototype/Effects/FoldDriver.swift": "d710a5f9546321a2ca9fa29efea2e56edc1d80f738f0797614fcd7b876309852", - "prototype/Effects/FoldRenderer.swift": "e3408e15a67de03ba068d43cbcccbba8655f19abec36a7c0785f670d2bce189e", - "prototype/Effects/LatestEffectFrame.swift": "e9c57b3f2ab933d8de70257d29dc0e3840ae23280d186918bc08fa9d15c3aac4", - "prototype/Effects/LidAngleSource.swift": "bd17b11559c8e698d4d8e8ed57f78c0f8dfe6d28cdc29da858b94b5a0da3cd57", - "prototype/Effects/LockOverlayController.swift": "ffb6c861c80ab6096ee8627c22ba93dd8f6d7b6216b6ef7154e375631c8a58cb", - "prototype/Effects/LockOverlaySession.swift": "fd8da1d18ca18369f9f2df27178911c3762ce70028bbc6809e5c9492e92067e2", - "prototype/Effects/RestoreVerification.swift": "521564f365800522736a893ab0f5b594746e5a20b86e668ece2833d66282930c", - "prototype/Effects/RestoreVerifier.swift": "a0ed730ff532106fdde2eaa64fd8905d5aeddaf9a1ec1e28c293b26ff7dc7052", - "prototype/Effects/SettingsDesignPreview.swift": "2acf03fbf39f406b80f27b650641613230c0ba1b2e7bf07191ff5856d346a35f", - "prototype/Effects/SettingsShotProbe.swift": "5e8bc146379a032168146f54bd4d949b5ba4dc22e10ac6bf1f524151c057c5d6", - "prototype/Effects/WindowFoldEffects.swift": "eb892b8d6d4aebe9759080bb0cc80c690d1c0369c6a29fec609857db83658b8a", - "prototype/Info.plist": "8db707bd0bf02100da2517cd8d28e2379cf9077e858af299d088c6d264f91acb", - "prototype/Overlay/GestureHUD.swift": "e8bfe37a0b0c4c5da59ec8bea9f256dc19726e0634b80534ceddb2160f3108ef", - "prototype/Overlay/GlancePanel.swift": "07e9babcba683dae230b82acfe2c0b9985d2ffd8134c9c13ac308d3169c84a10", - "prototype/Overlay/PaperSurfaceStyle.swift": "1a8c1541503bcb1c0710be685a76aa0d2eab4b37c0a836b0f44efbfb44e99f2a", - "prototype/Overlay/PreviewSurfaces.swift": "8bdf6d62b84ce1f87355c8f8c809a5a062cc3a8005c1d5421390f7a7c6f33cdf", - "prototype/Overlay/ShadeStrip.swift": "ace80cecd6a084427c986c7788e3b12e34ec60a28a9b3422f3a2b8eb355d806a", - "prototype/Overlay/ShadeStripPool.swift": "3f602cd370d1f082a59e4d8bc598a07f4168b7e69c983e1ec3aebf6d22aca23e", - "prototype/Overlay/SystemAppearance.swift": "76ca3eccd79a32175412ae4665a0484ff9628a3ad372333868cb3ae1681ba345", - "prototype/PinnedPreview.swift": "661c5d272f81f0276e6f53ab2da11e3d575628086e03f8da3f04b1152593fba0", - "prototype/PinnedPreviewPanel.swift": "19ef12fbb7e587bb04604e5587c54270d89eff08342b5470565e61be7b9eca65", - "prototype/Private/DockBridge.swift": "235001c02b0e9edcedc3011356a531cc0e53e425490ecf7ce6f297c9ee11d058", - "prototype/Private/LockSpaceBridge.swift": "d16128cca2e5b893900e5d5165353724a780e76beddc5ffa79f4ac4a2bf8978f", - "prototype/Private/ScreenBezel.swift": "7673cbdf0373bceea50a156b4585e00bbedcb6acdf0a9faf5efb825617a8a602", - "prototype/Private/SkyLightBridge.swift": "26be2e78987f1dbf06cfb58ff0915c9e7a53d0c53a852c543171ff77a82e5fbe", - "prototype/Recovery/DurableShadeJournal.swift": "5dbcd013cc44573bfef4b028dae0ca44c75c963d7df131cf20b946a737c366c8", - "prototype/Recovery/Journal.swift": "0fa6eb0b1ef02048ffb0b26a1e8ff546c83d37dd96774da231d088e528c075c2", - "prototype/Recovery/Rescue.swift": "26cc2ce87db65aa2b49a134cbac248a1c69740bb0aadd042ad45631ff1ce2428", - "prototype/ScreenCaptureBridge.swift": "59c7d12dfc19266d46c87fc7692fc851293fe2b102926d06579c205cec7c78ed", - "prototype/Support/Diagnostics.swift": "a1430b16be3f87e7b8c066c5d68dfc033ab2aa2dab9cfdcea08d27868d2078ab", - "prototype/Support/SecureLogFile.swift": "ed1cfa426af7f9bd4d21a9376ed3da21338c11a1e2d9f79a3e99ee3ceadde4a0", - "prototype/Support/WS2AtomicConfiguration.swift": "49ca64b48ceb7d2717fcf2e56256c4fc3819bccd6b4cb67e1e369147fb3d0754", - "prototype/Support/WS2BoundedInput.swift": "57de90c5ff273ddfe189d3ffb03b501e6a90cdd837082971ca56924be380fa75", - "prototype/Support/WS2CompanionCrypto.swift": "d50a35fcb45ba1905fb26a6c3c4f14a7dd450bb8413b13bfcf8429b0a7eed8e8", - "prototype/Support/WS2CompanionTCPTransport.swift": "78bccef841039bf2d4fb5058ae21e01633da6f2e00435eb1a17b9ca2cd273266", - "prototype/Support/WS2DuplexProcess.swift": "e85ba57a74110f0f4163eac840c65eed8bc9bd6fa08ce4f802098e5a159deaff", - "prototype/Support/WS2FocusEffectExecutor.swift": "674a8760579e1eccf401f6c949d6fcf69b74257943fe795b043f255b7c3887bf", - "prototype/Support/WS2HookConfiguration.swift": "a02f22b49a684d2c74aa385776c31d91b39cc5f6a4cec81eadbf457e8951ba54", - "prototype/Support/WS2KeychainPeerStorage.swift": "ffe7ecc5a1bbd58497156c645a074506371039f49ceb92bfc2d9b2c6f36a395f", - "prototype/Support/WS2PairSetupCrypto.swift": "6345ec9ff7339c0845f4140beac96577ee1310968d71dab941a0266d315e6fda", - "prototype/Support/WS2PairSetupServer.swift": "56ba109e6d1f63c8771cb0788c6c3af4796eed38cea5fe9880f744651c6516b1", - "prototype/Support/WS2PeerRepository.swift": "1ee4290d4151defac9a50b741c1128dbd8d6bcb7514cd4535ce39ac84f740b42", - "prototype/Support/WS2ProcessChannel.swift": "a87b82db462cd9fa4e0bd132153482a6c1c9d9859a4434048829443bf821cf6b", - "prototype/Support/WS2ProjectDirectory.swift": "7a9c30764d3199652eccc46265c4d7afae6c05cf65e1ee2a5be65c73bbd628a2", - "prototype/Support/WS2UnixSocket.swift": "686ea433270bef26a8a1ef5e8eea3b70fb399d9d5d3ce89d65b18da454f64129", - "prototype/Vendor/Sparkle-LICENSE": "389a4e4e9a32f059775b13a06e25a591445ba229d2838d26dd3e7c0c45127cfe", - "prototype/Watchdog/GuardIcon.swift": "86a4da1ce16f774b882eaec4e7b9ba94c4cc981ae0488a910a6d07ac9d1f2523", - "prototype/Watchdog/main.swift": "dc5b952383cb3f6d250ea1bb06dda51bdd0fffc2861c84f2e17309215c0a4585", - "prototype/Window/AXHelpers.swift": "ccf1a2c35600cf6471db354ee1fbb3f417a60907be1446f6ee9e393a2b5b8ccf", - "prototype/Window/AXWindow.swift": "14c66d4832b32f5b55a92f896bdc0e0ffebce7588a5ac2c210b7c6c48782d3b7", - "prototype/Window/AppWindows.swift": "cf559d3698d8c20e1373f02205f5141583a3ed40aee89174eecf61f74e5dc0cf", - "prototype/Window/ChromeProfile.swift": "e5bf9411c34bf7300f7893ff4a088ef0b97f298eeac1e682b0fa0db1bba98d56", - "prototype/Window/Coordinates.swift": "8396b5874e5e219bbd635aabe149b2c22cf190ea0bbece57acedb62939dfe67b", - "prototype/Window/WindowListCache.swift": "eab77f6b1799267fd17995523aed369a6c3024ae74922dfc790ee9ec9bd13c6c", - "prototype/Window/WindowRegistry.swift": "88305979129b732efe6c49eadbe366c0c22f021ae70b19a1b38105f41e38e554", - "prototype/WindowBrowser/DockHoverObserver.swift": "e960e5af5199853e61b068f8bb170e28c536575b9c00b9f837c4d5c8f20e7ded", - "prototype/WindowBrowser/DockHoverProbe.swift": "5f246c4ad9adf0dffaf5dd533d5fbce9a71be59915441dea67da7803cfefd2d9", - "prototype/WindowBrowser/WindowBrowserActionBar.swift": "d64562ca98565f71f866a34657b65061c4fe5ee5ab01317f98d72c7ed9459fcf", - "prototype/WindowBrowser/WindowBrowserActionPresentation.swift": "6fe2f1b20eb0c5a5c70c2e0eb9ef13605a1a18c8aeabd796022cc90bb1828b00", - "prototype/WindowBrowser/WindowBrowserActions.swift": "9d3c4fbc9836384cde1904923b376307c8adca2b0b1f8e90dc69cacf9a0237bf", - "prototype/WindowBrowser/WindowBrowserAppDelegate.swift": "7578e4ad88f967a0c4fc6b18dabf97100fffd86d1bb7437c254131f55147bf8f", - "prototype/WindowBrowser/WindowBrowserCardView.swift": "45d49717fd01862f54f8e057539f34c53b72166d273dceb5e46bcd79de0ae0aa", - "prototype/WindowBrowser/WindowBrowserContentView.swift": "fc2f16c95332ed9ab6d38d51fd9057981339aae2b3475113fe11e4269a11e962", - "prototype/WindowBrowser/WindowBrowserController.swift": "64bd2b21134e068fdb2f56200817dc3f51a136d94f89937f61d6d9d277029c96", - "prototype/WindowBrowser/WindowBrowserDiscovery.swift": "310e952ed56a81ce6b6c0012f73c21180244491512a2eb2da28d2d6ffa8cd293", - "prototype/WindowBrowser/WindowBrowserDiscoveryFilter.swift": "52b1b0dc609f969048a124f8e432de16fea49ab1818256a6fc050045ab6e0eb5", - "prototype/WindowBrowser/WindowBrowserDockDetection.swift": "84d32da69e61439e8888470af49563ee1eb9000ec38fc0651392b25d9f152808", - "prototype/WindowBrowser/WindowBrowserFixture.swift": "87d41830e00e2bab94ad6dbda1411733b56ef6e514c93030b3ad74d2f098af49", - "prototype/WindowBrowser/WindowBrowserGeometry.swift": "8c99b9b866a21f9fa8a3367432b8f34bd22dd6dd67fdcabe63175133c81a08b1", - "prototype/WindowBrowser/WindowBrowserIdentityProbe.swift": "551299d755b98aaada4ad6e3067d0d610eed7f0726f36c8d327920eebd0a6463", - "prototype/WindowBrowser/WindowBrowserListRowView.swift": "c0b8db68c2a9f029075949ffa27fa7dc7a68fa26fa2112235430d2375c18bf99", - "prototype/WindowBrowser/WindowBrowserLiveAppProbe.swift": "7da491d0baed6b3c9e5015b41df0d563bcd73727c832a71e64a14c7f73885711", - "prototype/WindowBrowser/WindowBrowserMaterial.swift": "8c6c4fa0aa7b91393d7c36c04d5073f9d609e074489730c1a800e131a4de3f0c", - "prototype/WindowBrowser/WindowBrowserMetadataQueue.swift": "f84d13c4f228aa21bd5de5178ce2bafc419fb7c7f19ae954250057d3432139c5", - "prototype/WindowBrowser/WindowBrowserMetadataScheduler.swift": "0c77949b83a0cc53b5709903c7f9d295de93475e99e29659dfe38228aaf2dd0e", - "prototype/WindowBrowser/WindowBrowserModels.swift": "8d1ac3433b43938cebb8565f26472837419b06886c27600a34b37c6a73d135a1", - "prototype/WindowBrowser/WindowBrowserMorePolicy.swift": "0dd7330bbb8e954c9192b6a966fd5d404186f73f61ef6f0a10207684b25c017b", - "prototype/WindowBrowser/WindowBrowserMoreProbe.swift": "a89798b807b0379184465cd43d61a03bd37121d5faf9ece9732ea19a133af250", - "prototype/WindowBrowser/WindowBrowserNewWindow.swift": "67ad7792871dae78a36fb8d3d96f93100c3f7a5ae14fe33c1e3fc74760266904", - "prototype/WindowBrowser/WindowBrowserPanel.swift": "e51df9e16a69e98b51bde15147ea5712177ea2646b0d64c62b8cc5aca55829b3", - "prototype/WindowBrowser/WindowBrowserPreviewStartup.swift": "c85d8b98cdbf44cc2faa56dd20cb819c364394ae3a6344fd69eb657a531d5f14", - "prototype/WindowBrowser/WindowBrowserQuickLookView.swift": "fc14a2ccb192aa4f2d3dcf5aa0877737b890793c88096c643d6e5f0694bebce6", - "prototype/WindowBrowser/WindowBrowserSelectionDetailView.swift": "f8ae3713ba812b1d72c606baed65107fd30ccbbc2b77f142d743960659da77b1", - "prototype/WindowBrowser/WindowBrowserSettings.swift": "eaff6f4f80b76fc9e33ef926b80e6fb334c19dc4400288674c4e3bd9b2846194", - "prototype/WindowBrowser/WindowBrowserShotProbe.swift": "aee82f9d9b735feed796fb75a4dad86c99e71f6f7191ffcea61f9a298a8cc415", - "prototype/WindowBrowser/WindowBrowserTargetBatch.swift": "6e1d895e426120b795a1759c1443c75193649b2dfe2d9fd50665928df93c206f", - "prototype/WindowBrowser/WindowBrowserTargetResolver.swift": "2fc395871767c42537f7fe79a565c1837ef56c82654b5f08fab8c5b4f7b83ab8", - "prototype/WindowBrowser/WindowBrowserThumbnailPolicy.swift": "b986005482d3bda8c7a0eeefdbc2600b353b12780b23ea8cbefa8a01271b6c9f", - "prototype/WindowBrowser/WindowBrowserTypography.swift": "ce68992e81c1d9a9947c1258ccfac4f2b430be5eb715002d20e31de8ba9054cd", - "prototype/WindowBrowser/WindowBrowserViews.swift": "35b31dd17656b47ce7c4fdfd6d25771c8ed86f29cf73e8d34085976342331afa", - "prototype/WindowBrowser/WindowCatalog.swift": "b81bb8606aa8c93941246e9893ac81d509126845a46b43d3bacb623e7bf563bd", - "prototype/WindowBrowser/WindowMirrorSlot.swift": "3d3bb68eb6c59d18a0e8088f8b88dc464fddb785667b32e20b0346a4964cb3e3", - "prototype/WindowBrowser/WindowPlacement.swift": "0aa1edd22e88e621b77365532b8ae9f508045668322593277c24d23e48738561", - "prototype/WindowBrowser/WindowThumbnailService.swift": "e22d946a1ea9b79a74e1c9bfa83d807a924fbe0710f27ae4f0d8c57417c102cd", - "prototype/WindowShade.swift": "e5e60ad49adca1273a2a67e2c339ecd53200519d7c340116affaefe2e015e54f", - "prototype/build.sh": "e9f87cc96478257d129e8d16c85d0697e97f25ace0ffa8bbe08573cb4fc72f01", - "prototype/main.swift": "a0583484440cb3d3d5214620076ae0786c1d2236ec81767cf3f31f6f8e792bf8", - "scripts/check-settings-appearance.sh": "ba4eea9d99f1dd57e48d38b4932fffb0f0a3790277e54362ce7b5cae9e43061d", - "scripts/check-standard-menu.sh": "1f186101ae461a577460a9d09e4921743e315a40c51b533f0664559519124044", - "scripts/sls-symbols.c": "de51dd06c9c10cbb592ba03e8e5fa7f473770a2182a9d7d6f01c43058dd4a173", - "scripts/try-duo.command": "7beeeccc2c79837276a165f4bde054271a5d1530c5716b49c312b58a14bf3624", - "tests/AudioDeviceCacheTests.swift": "6fd6a03c80db60e0eb5d79ec8b200da3dd0215a76a77b9a61476a4b761b18d26", - "tests/AuthorizationLedgerTests.swift": "c012e780965ee2c229851dd83fea4fd5e84d80da52a50395853dccf7daf177fb", - "tests/BehaviorRiskTests.swift": "6d6f7c617446c8c641badab45c1f4e950d5b0862150528462d6aa19eafe59d5d", - "tests/CaptureIndicatorTests.swift": "68aa7694ebfa6326ec4e30d9291c14187f088f441f71ffa7d9817523330e2b1d", - "tests/CarryControllerTests.swift": "e5e0942bc5842490cd348d4f929d36be83712f083952c8c9704f2e1156b6e5b1", - "tests/ClassicStripTests.swift": "44e61393b8576e971c24bd5ba36f3242fafbe74cb41a43571500ba916f679564", - "tests/ConductorGestureTests.swift": "14439c86a80b4fe153084eb21dd3f944e9ade0c6ec2a1a5f3dd59a8f75b1239d", - "tests/DeviceBatteryTests.swift": "09980d117215ae7b47979f56c1afe9f99a8091f06ad901d54fbfeccbf4b97501", - "tests/DisplayShapeTests.swift": "63675a2a344167dc856d230a16c9664c770758f479ebb204fd164a0f066aa5b4", - "tests/DockSwipeTests.swift": "d59577e0b45d78f85f03246cfeaf1740e6c24a04d6f164b9c0019c5b3915f839", - "tests/DuoCoreTests.swift": "580fbdfa753b6fba4941f67abc0ce7fe58d182d37cb3409880647a5ea6d748f5", - "tests/DuoFrameMetadataTests.swift": "f1850663a3ea9b6c90220044a1ceaee046b6cc58200e4aea1d8b30daa3b04cef", - "tests/DuoGPUBenchmark.swift": "5638f59b1de734ce94684339f6fdea28cb347769b46943fc4b501852896da6bd", - "tests/DuoOptimizationBenchmark.swift": "6414d5a1401ff857f521f09bedd0ce741e20a9ec2b6d6fb17fa861e434630ecf", - "tests/ElsewhereWindowsTests.swift": "a768bcf399abb35a1b82e21db77a777eb4a341ab7f138c5a231758dd72c6852c", - "tests/FaceGestureTrackerTests.swift": "98239a145c0b7f45c20455fadad10255334ffbad6da6cf226f0de25871900d02", - "tests/GlanceIntentTests.swift": "9151ea28b4a5208384581587f34273512b69faf4c680595b6f2c654f29c263f1", - "tests/GlanceLifecycleTests.swift": "36ff4b576f04cd482aa661a5b3e59609f5a97194652176f59e48bf0bd5875e02", - "tests/HabitRulesTests.swift": "c2ca1ad2424e89eabfda84fa57e8f2dbfb277e68b6453a6cbfe5106c624bb913", - "tests/LaunchpadBackdropTests.swift": "99fe0c5c298970453842a07a8a2a290ecbc24fe01f94c1eec076977f2aa38321", - "tests/LaunchpadModelTests.swift": "e0b350f6cc96e12fd4ac0ce3ce2663dc1ea29ea116b890c2328942fcd70a14ee", - "tests/LaunchpadViewTests.swift": "c4a9edaea813a157e900546f7b88123f083c1f20c8e0b8761ffd1210ecf80a4c", - "tests/LidGestureTests.swift": "37ad9d94eedec3c240e14cdbf1364abf9d9876a54b290a1968f4be3e643a752c", - "tests/LidSourceTests.swift": "c07ff687a2a34e1a94f541fe44e2064496849bdc246678fdcb9eb9398cd4cebb", - "tests/LivenessChallengeTests.swift": "be983797fa49a07346030c51ac0200c8bc7e6ed6fef77fa7302c4ed3783b4cc7", - "tests/LockOverlayLifecycleTests.swift": "3981318764b379d6e733a0acbd04bc0af613bca6148929c5a4e4d6e1d66ebf21", - "tests/MagicTilingTests.swift": "03977451a1b2fda9dee0daaf45acbf1fefabcfd16a162b685929938a9fb8d270", - "tests/MetadataQueueTests.swift": "8e942639ef13f95d9e0ce30a1a269ec9a2426f96ac48b2b772171d967d7c610a", - "tests/MotionTokensTests.swift": "06a3cf8102bd9e4f5a11ff648af8c08701c21acd615c9891a175b68e1cd02444", - "tests/NotchActivityTests.swift": "6f894ffa34175e557a8c6ae8cac03e866da49aa66ce16d7221a71ad331e85d13", - "tests/NotchActivityViewTests.swift": "4954e6b70c0d40d4576a4307c7ecb132000944c0ef4dfa8475d8e507c026bee6", - "tests/NotchAuthenticationTests.swift": "6b7e46e7607040e2c4abc6b809859c748635004cc752ff6d207ec957c1dcaac5", - "tests/NotchGlanceTests.swift": "0dcbae862ee7eca51c49bac7f2c1b16fcd95c60c1019096a53adeb4ed78e73f9", - "tests/NotchThumbnailsTests.swift": "3cfa03c5ad9d1671cd0a2b94b3f62364cb51ac5904f738a9e5f7658bf45b4d37", - "tests/PaperSurfaceTests.swift": "08434cb38b6e8dbee4bba57914d27a312cefbfc29abf059cbea96017b5309839", - "tests/PiPLayoutTests.swift": "7aa2aa88e9e7544c62eb17cd8e37b6f9eaccd0920f973dfa853d4e154b8a6653", - "tests/PresencePolicyTests.swift": "5a42acc39d1ae69c1909860f710af17653058286f82430763c10630b9af68b9a", - "tests/QuietDefaultsTests.swift": "20f383f9c6d71958244714e8d4e4d007c5f8108f439152159418b28785831eca", - "tests/RectangleKeymapTests.swift": "8c9e19f57a17e324c30f52e4e3536a1901dc86bfa8b8b9fe4fa4d036056815e3", - "tests/ScrollStripTests.swift": "584e0c4acd9533a0d48d3f7d2db5af433e37b204e6f89c1c3043dc5ef7b4d9a3", - "tests/SeamLayoutTests.swift": "eb730924e1795377f54ade03d7465771b55d7195a17aafc649de5522077f86bc", - "tests/SettingsNavigationTests.swift": "c51f97ab6bcadac91cb8c80dc703fd3e870d908c27b2f024738444ceea9c95c8", - "tests/ShadeSoundTests.swift": "62ed4c93372fb29f764f22dcf968184fb06b73f998e5c55e33648b01a0a5516a", - "tests/SlideOverMotionTests.swift": "557af4dd930a36ecaa394e23dfecb57c2ce927606df0cc2c56a4b053ac206872", - "tests/SplitPairTests.swift": "853ee7754c26bb20eae0610aac789dbcbbc1cf9c4b0ef28c911cff389ae36262", - "tests/StallSamplerTests.swift": "ccd7069deb5732a04f57982e24ea7fa3535613d125184c6e688fcbfb3dd47a40", - "tests/SwitcherOriginTests.swift": "c9b9e61901e25010f9b298f1ca336db108fbb25e6fef200e3df55f2aa107ecbb", - "tests/ThumbnailLayoutTests.swift": "de0edbb80b71a80e3cb069399d5d60c6fd60c4190486d554e30b92140b57bcf8", - "tests/TimingFeaturesTests.swift": "00992191897b1588b0fb10fd3f6352cb76f45b3755b8bba049169278c41964d6", - "tests/TrackpadGestureTests.swift": "32eb176b0ffc896dc94c1e4fd248a30e1bc08f9320afdee21624b74a00f9917a", - "tests/UpdateTests.swift": "f5c1a2bf55d90e69a1cfe0d82361ff50b496b218f1288be7cd4d5d807927b8b9", - "tests/WindowBrowserPreviewStartupTests.swift": "29674876ac8ac58168812ece4c0c60cacef9d35a2c73b2d234a18bce1022f5c8", - "tests/WindowBrowserTests.swift": "880ea1e13c0082f81c13ad977c982a3232d655bb2c3ee76033cbcdd5e64e3602", - "tests/WindowFoldEffectsTests.swift": "4ee4862cd7a29f4edb2fdb40576551c45cb837cdb8bc85ffeedad4da8750e544", - "tests/WindowListCacheTests.swift": "3fdcc5a24540d46735b371c4f83a3653864bc4ba06fce06fe536f109287ba54e", - "tests/duo-integration-check.py": "1614f812d80321117c4ecb43c3e649c4f0033092653ffbbd8026c45a0b127916", - "tests/fixtures/GlanceFixture.swift": "42a9b09d4d50e2dc1158946d111b43719de83216013ed47ff239fb385d778dad", - "tests/fixtures/LaunchpadPerfFixture.swift": "9c008df67cf10add6ec425b9dc7855ca007d379ab6365d1e114e0ba7dbacd20e", - "tests/fixtures/LaunchpadVisualFixture.swift": "e664bf9ebe168b5543a8a6868672d4c2a842cfcc4dc4cc1c271fb907e4d541eb", - "tests/fixtures/capture-indicator-active@2x.png": "e9dc2161d154c48a5cbca2e156691131dbc0942e5e31ad624f77ad6850d966e9", - "tests/fixtures/capture-indicator-before-stream@2x.png": "f98ceb3b31a89ea298229fcb9dff01d0c3b86e5e4bf2583fc24b3b5f908b0083", - "tests/fixtures/capture-indicator-inactive@2x.png": "f979f41f3cd3faf343f3870486dbed609c36c716c790e88f110858caa1624c69", - "tests/fixtures/capture-indicator-stream-frame@2x.png": "3e070f6196de997e6713bdd320175f5cd8fbbf94dc50413215cf4b5941d22434", - "tests/fixtures/lid-traces/adjust.csv": "364402af37f1d196bb69291bfa359f2743eba38bbac0f65c737a79df6c5fb72f", - "tests/fixtures/lid-traces/fast.csv": "674d70b7c4909699de5a8ef8d7d0d873ab0f8cebf167875bdb609e397057003c", - "tests/fixtures/lid-traces/partial-hold.csv": "7edecd690b14174651f775ebbc9a8a71d11dd4fe63ce531e9cbed4c7114f7d7c", - "tests/fixtures/lid-traces/rest.csv": "f3b43a73a2a78a3219075228fa2759aa74ba81ce2bc932f8cb65ff6af5e68648", - "tests/fixtures/lid-traces/slow-close.csv": "aecc4574bd843c2663432828ae87503d520c016092144611f7d9bf216bdfd31d", - "tests/run-appkit-tests.sh": "1f4adf5522dedfed94c7823038b1862e1e7d98e12f1402d727c84eecae29e0a2", - "tests/run-audio-cache-tests.sh": "8cfedadfc7796803c04316aa2f017ceb6064bc886d35f0d6429759df16a34236", - "tests/run-authorization-tests.sh": "df83f18a6857608321a5ced73f06e678e08d775846f93551f73d271e1d5a9158", - "tests/run-behavior-feature-tests.sh": "30f1b6f32a199748428a3ea58caa2502472ae633abf0257ac680b316ee82ec8d", - "tests/run-behavior-risk-tests.sh": "097a26043b9d2ce3caed924fd81921d79548f5da03b2a33d4b3176c41fcb3ae3", - "tests/run-capture-indicator-tests.sh": "29cb6a1301bccd1e7e78f328c4fb730dcb8071cdcd0d8bf82ab48e65aa0105a7", - "tests/run-conductor-gesture-tests.sh": "3c916a89a2431a405c20d30832d323df9e90da85952d53334bf7d41e299cdc49", - "tests/run-device-battery-tests.sh": "a05ab1776107781796cc5d4c41623935c171ac289441e9e5374e18f110fae05a", - "tests/run-display-shape-tests.sh": "0e98fd9d200c48e3bbbbecde18a7702664f85c2dea2bc975e38c1e41ce12d4d6", - "tests/run-dock-swipe-tests.sh": "f3940991392934f61cb0ad6a419e4e3a4352b8cec846070e3ea809d5fe39e07e", - "tests/run-duo-tests.sh": "fbdaedfc56e5ec5831cdb70c80474e80275f25cd7d167847ca075dc0359f27ce", - "tests/run-elsewhere-windows-tests.sh": "bbb5b677d1b5945922041bfde7a8668e69df0088f2bb6a2d1d7aebeca34114e9", - "tests/run-face-gesture-tracker-tests.sh": "012ed6d90ccbf6ab9b8d5c820dcf44d07114ccf53e1ae82cfb3f921bd974c821", - "tests/run-gesture-tests.sh": "c8b7d41ed2acbeb21d69565eaf7ec413824d402afb77acf5fc43a44dc8a1ab57", - "tests/run-glance-probe.sh": "9b1f8e937104f0d57348c3738ad3819777cbbd3f907026ace72c18e17401760f", - "tests/run-glance-tests.sh": "76b81023914f049fa2056f1e444ad5c72bb55422b0a708aff36c150a8a7a320d", - "tests/run-habit-rules-tests.sh": "80262b720b5cbc5c2e10bf83b4be8015033fba70da05145bba9d1f98d8636431", - "tests/run-launchpad-backdrop-tests.sh": "9a8629dafe57968017455af16ad8f326ad4ee4fe7b3506d94aa68f4489dc8db2", - "tests/run-launchpad-perf.sh": "736cbc2f64b15f3e728f79e1ae58c141edf3627fa70493b7612a26d4d3cd3d18", - "tests/run-launchpad-tests.sh": "b8693dc395676c7a60c8ecf62e32ac4e64a698a49177807fa16a916ebcddfb1a", - "tests/run-launchpad-view-tests.sh": "1d368439acb4436187e518545c4cc312272d870ee9d12a76737d3465825feee3", - "tests/run-launchpad-visual-fixture.sh": "b206a0d06f5b7b7798f3d09ab55c461e72f765bc9a6fb3efc220a08c749221c9", - "tests/run-lid-gesture-tests.sh": "c3a1b41012e74a2ab7fcd408649cddd088b3fc1458e7097085a516f6fff386a0", - "tests/run-lid-report-probe.sh": "2032aea177570acb6e80a3a6fe0f18a8d637f2715b1f5b67ee6ba6c03597ad49", - "tests/run-lid-source-tests.sh": "1fea0bef734db6b26d5287835eeb4409a108ffbffece7c5e81f00b3c2a8b77e7", - "tests/run-liveness-tests.sh": "326a5a828ccb2538980bd527ef403fbd0d0727548133fae5654e85c05ad99a8c", - "tests/run-lock-overlay-lifecycle-tests.sh": "424ab7dec4ddebc402574f614d116f2e72c02e8f2480c50ed6d523062cde5487", - "tests/run-lock-probe.sh": "84fa4a9bbfc498812aa3ec379d4431d137b3a58c328ae1feabf4ed193be52681", - "tests/run-magic-tiling-tests.sh": "736ad6ac12010c51c134f6b68689ba189bfc51dea20b845c835afdaf899802f5", - "tests/run-motion-tokens-tests.sh": "9990dc54d1dab6ec610183687617da9056ff296ee0ba0c3f7710ed92ffab2c4f", - "tests/run-notch-activity-tests.sh": "4fae5b0d1024959337536cf23e2f2da99be3d88a41101bdea1db5dde1d38b9eb", - "tests/run-notch-authentication-tests.sh": "6a4b7ee654ca912eb7d4798c3b4c1d0982853688a301d07eb449a8f792c2410f", - "tests/run-notch-glance-tests.sh": "0b7a9c5836808a4ec2bec907e2bee4eb544d00fef7b60c8f935788824796a32f", - "tests/run-notch-thumbnails-tests.sh": "54cf9b5defa374b7b84d27da6bc7590a56ac4cf1ac56125de0d0bd77d3151a30", - "tests/run-paper-tests.sh": "318db5bf20dad164d2aa506851b0408b0c2f381bf92251fa1eba0f764bea8ca4", - "tests/run-perf-check.sh": "c19afb6cee942b1e6897f1a0c06bef183d2054ff92802d5eedc670034efa4a4b", - "tests/run-pip-layout-tests.sh": "8f5de023f4cefaac9635bdda2cc90a63986ed5e33229fc0d996e07acab47031b", - "tests/run-presence-policy-tests.sh": "76d81e542e97c77c0effa407b5ef8abc596489cfa24b7958cc5ace1e1f2ab7ae", - "tests/run-quiet-defaults-tests.sh": "8ea6d71867011632d85017f718de596307a1d0fc937c68cb686da854e316c22e", - "tests/run-rectangle-keymap-tests.sh": "cca1bd690c1a235f7b96da9b3c16a073f7a591435ac804876d9e7ff4b77cb0ea", - "tests/run-scroll-strip-tests.sh": "736556ead95040acd1d30efc04ce834cb6e8eaed6caf807f5b9556e763bc3827", - "tests/run-seam-layout-tests.sh": "9172f47d9d5d52c1c84ec593d565c6a420e9d4e6a60e479a22102db4cc4071d5", - "tests/run-settings-tests.sh": "9a46795bd8d1dce76b074a6b717f563086a525dcd74a371dfe745899521edf85", - "tests/run-shade-sound-tests.sh": "1fd72b5b8cacac4f16bd49bbd88a6e8f9de8b13b59161a7dd5d5359a59934308", - "tests/run-slide-over-tests.sh": "2490f215c85b5a59be98866d7dd45f48f68844d1c07bd8f02b3ec9dc8e0dc142", - "tests/run-split-pair-tests.sh": "3d310426a8fd399e6d1f1abad0c7a9fa70ecc7d3d5ba89c5f0a98cb1926c6f11", - "tests/run-stall-sampler-tests.sh": "96583b77de69f17bfcacf9b60eb279908ffc775ca8159f4a0dee21182a862bbb", - "tests/run-switcher-origin-tests.sh": "bbaa861a26426bcb3ccbe4a00793e594e927012049758127ea6f25c35d0d0d7f", - "tests/run-thumbnail-tests.sh": "aa67fee130a1ba37a58b3d05af861c1dbe5bfad5ef43fa96be8199ed15798d30", - "tests/run-update-integration.sh": "ff52749b120b1e1ea61e9310eb7384f43cb05089b30f515ed3abafff9800e402", - "tests/run-update-tests.sh": "054fef60c81f32da4bb9f735268b93309d31b7b0a105a2726be91449a09193bb", - "tests/run-window-browser-tests.sh": "60800f4fd7fc05ef6b0e559a0c78f07fdf73bef2a5fda18102e90a686bfd534a", - "tests/run-window-list-cache-tests.sh": "41c6d3f372235233afe6d298c40fd8ec60be406a19554b12be5b0c5787669ee2", - "tests/support/NotchThumbnailsShim.swift": "d902c85adfb192b475ab833ca911eecf09f40cf1b480f0dabdac1887616cc7a9", - "tools/accessory-probe/README.md": "f11a75dab991ac2c0dd01466e2440a87770cbdf82586f4b1f736e99e0191a05e", - "tools/accessory-probe/main.swift": "25d5fe0763ca9533914b6340128371eca91b1e9b8921cc9a6f177230f81e9f83", - "tools/accessory-probe/run.sh": "9d1489fe51c569c0ef13bd020f961b18d6db391e71bee7e795345542a071e214", - "tools/activity-frame-probe/main.swift": "588c505696d631f9b7f96d09366e1e4c457171679ac54e55073b4ef1a82b3e5e", - "tools/activity-frame-probe/run.sh": "1d796225453350a28cf68c33bb9079439c1e2488e2ce76d3bddf06ae8f3ce571", - "tools/activity-source-probe/main.swift": "55ac6188889c4c9801c8ac61da19283acc3e9bac31afde4de0750abe46695ad6", - "tools/activity-source-probe/run.sh": "e428f5742e752776df5500c2801c31e0919fee6c8de3a3e83974ddf7920d3c54", - "tools/behavior-lab/BehaviorRisk.swift": "edbbe0f391ae397ef24a0899637ef3d2e0454cfadf43f5792c835b52f89bfc6a", - "tools/behavior-lab/README.md": "f65df09013b8cd908153c8ec5313700480eed56ca42a44758be818937a197f63", - "tools/behavior-lab/TimingFeatures.swift": "adb2b6edbccf580d99545948b187d3f2ea21ac72efdfe0c3b03a53cf1640e19e", - "tools/behavior-lab/main.swift": "8ec906c8d6e8f0ec189f6d7dcb4bab9e82779d9119adc29ae93f0dde7f513658", - "tools/behavior-lab/run.sh": "8023f1e9757ec37098432a250df286d0400e9889dff6542d2aa3c6c8abc2f45a", - "tools/companion-probe/README.md": "aa1b0c781723734879533196af750d53797e7071a170e3877e4f8bd4f1b38b51", - "tools/companion-probe/main.swift": "9831cb9aa5545998ef17954b5eaa70efd1d5e08875eb84b028d48b8f1e8be655", - "tools/companion-probe/run.sh": "a0ec7f5eb3dce6c6d8455aaf25e72d837b536eabd3da4e2c3d6c69464ee7d188", - "tools/lid-report-probe/LidReportProbe.swift": "5eccb09fe8aa99763f4ff07673d007946bd1331deccb7bdda7f27ffeedcfb5af", - "tools/lid-report-probe/README.md": "eafec4a2914d3cabcbce01360d869133c1497eafd0a515adff23939d2547670a", - "tools/lid-trace/LidTraceRecorder.swift": "3e2677b3105bf5e0b8c1e41d17e2c089abdf118adaa376fc28468073e8c410b6", - "tools/lid-trace/record.sh": "19e83f70ad081494dc7604b26a52ac42e289ac692f60266d93fa8d39d2105bf3", - "tools/liveness-lab/LivenessChallenge.swift": "ae641483f238576eb1ff723db5278a71ce2e246d4cc28a9df395d0e1eaa9b13b", - "tools/liveness-lab/README.md": "aca5d3ed0c4c71f7bd7815ee07e1ed81ac10e063fe21c1c0c5796ccc165d84fc", - "tools/lock-probe/README.md": "4e7b10c7da0f5bee4c924a1ddcd56dd0ea9eda7857df5184fbf59e4fc8a4f166", - "tools/lock-probe/main.swift": "c421a26fa618fef2908a3adbafc0a616e2b2509cc4e5538602c20fb305d90d22", - "tools/power-context-probe/README.md": "660ea4ba4791c9c3a3fa3a8ae77463a87e98889bc04cfa4925d2d3c348835833", - "tools/power-context-probe/main.swift": "6732248b368a8b705ddf42f5454a9f957d7d6ae6dc9ce574d7c1edaa76eeafc5", - "tools/power-context-probe/run.sh": "90f70f69cb2bdfcf4d30ae2afb478bb0a961cfd263ffa4807d3f6bc1303f0bb0", - "tools/presence-probe/PresencePolicy.swift": "bc87d4dd1d328edf5850875c569ab0f340ea530c5248270b324ca4a6993d9e7f", - "tools/presence-probe/README.md": "471adbbb78c127e571c8eccb819d3e52003371bc59c30ffe9525041e7574ee2b", - "tools/presence-probe/main.swift": "7b7d0c71e0ace75fab348cc7dd2fd2917b8f44219afcb4b19e216e82be6c66b7", - "tools/presence-probe/run.sh": "fda772e20b6c282f143067c974abe295f192909c73437868ec9dd76a33af5dc1", - "tools/secure-enclave-probe/main.swift": "e269fa4ba7b34843b727ef241c4e59ca97a6c418c9f7ffc4405c0958b72a48c4", - "tools/secure-enclave-probe/run.sh": "956e15ee147a5c999d18b9fd36dbda58b4af8a3829e00525aafa2bdad04a0352", - "tools/touch-id-island/main.swift": "412214a5d14a1e180b0a59b82da775fb052e33e15f51c4c78cb697fda33836fd", - "tools/touch-id-island/run.sh": "b5f477ed74ae343e73d58ada2f8b03150d98b4101b0129e6dfd4ba21460a9ae7", - "tools/window-snapshot-check/main.swift": "a271eb7faf0b1456982ff0dc38443413b778de5c53c60728b3fe6b1833ebed87", - "tools/window-snapshot-check/run.sh": "5b8d9f005ea18b0a499f60f7e2ea7fa18d984363d381725889d096768e970347", - "tools/ws2-hook/build.sh": "274e626a57de617debb2b16b6fa48787dea89409a0c77c2231c5fb8a2515da82", - "tools/ws2-hook/main.swift": "bb23445b862a087c1d2fdf105324426b4b21ac30e920744f89fe3e0b95b68c1c" -} \ No newline at end of file diff --git a/tests/archive/part7/sources/code-map.json b/tests/archive/part7/sources/code-map.json deleted file mode 100644 index e84a9b9b..00000000 --- a/tests/archive/part7/sources/code-map.json +++ /dev/null @@ -1,1516 +0,0 @@ -[ - { - "path": "docs/handoff/round2-part7/privacy-signals.json", - "baseSHA256": null, - "sha256": "511294f40bd1dd8231178d9906ac9748889a74c2001b3e02cc8a3c3987298499", - "operation": "add", - "lines": 85, - "symbols": [ - { - "line": 49, - "declaration": "\"purpose\": \"Display actual current reply and protocol state\"," - } - ] - }, - { - "path": "prototype/App/Updater.swift", - "baseSHA256": "54d1148098cff28aad517f49c79092bde185ae36cea3ef81932cb0c05b105253", - "sha256": "d2f0aa355acde29b729d0a05fdf41b33269599bf7d5405df64e8117a9c0f2c03", - "operation": "modify", - "lines": 942, - "symbols": [ - { - "line": 16, - "declaration": "struct UpdateOffer: Equatable {" - }, - { - "line": 25, - "declaration": "enum UpdateOfferStage { case notDownloaded, downloaded, installing }" - }, - { - "line": 26, - "declaration": "enum UpdateReply { case install, skip, dismiss }" - }, - { - "line": 29, - "declaration": "@MainActor protocol UpdaterBackend: AnyObject {" - }, - { - "line": 30, - "declaration": "func start() throws" - }, - { - "line": 31, - "declaration": "func checkForUpdates()" - }, - { - "line": 37, - "declaration": "@MainActor func makeSparkleBackend(controller: UpdaterController) -> UpdaterBackend? { nil }" - }, - { - "line": 40, - "declaration": "enum UpdateSettingsKeys {" - }, - { - "line": 56, - "declaration": "final class UpdaterController: NSObject, NSMenuItemValidation {" - }, - { - "line": 68, - "declaration": "private enum Session {" - }, - { - "line": 102, - "declaration": "func start() {" - }, - { - "line": 118, - "declaration": "private func scheduleLaunchFollowUps() {" - }, - { - "line": 143, - "declaration": "private func markHealthyIfSelfCheckPasses() {" - }, - { - "line": 163, - "declaration": "private func showLaunchNotice(_ notice: UpdateLaunchNotice) {" - }, - { - "line": 199, - "declaration": "func makeMenuItem() -> NSMenuItem {" - }, - { - "line": 205, - "declaration": "func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {" - }, - { - "line": 213, - "declaration": "@objc func checkForUpdatesAction(_ sender: Any?) {" - }, - { - "line": 217, - "declaration": "func checkForUpdates() {" - }, - { - "line": 274, - "declaration": "func setSettingsStatus(_ text: String?) {" - }, - { - "line": 280, - "declaration": "func bindSettings(statusLabel: NSTextField, frequency: NSSegmentedControl) {" - }, - { - "line": 285, - "declaration": "private func refreshSettings() {" - }, - { - "line": 290, - "declaration": "func rollBackToPrevious() {" - }, - { - "line": 309, - "declaration": "private func blocker(for offer: UpdateOffer, ignoreRefused: Bool) -> UpdateBlocker? {" - }, - { - "line": 323, - "declaration": "func backendIsUserInitiatedCheck() -> Bool { manualCheckInFlight }" - }, - { - "line": 325, - "declaration": "func backendIsRefused(_ build: String) -> Bool { store.isRefused(build: build) }" - }, - { - "line": 327, - "declaration": "func backendShowChecking() {" - }, - { - "line": 332, - "declaration": "func backendFound(_ offer: UpdateOffer, stage: UpdateOfferStage, userInitiated: Bool," - }, - { - "line": 347, - "declaration": "func backendNotFound() {" - }, - { - "line": 358, - "declaration": "func backendError(_ description: String, isNetwork: Bool) {" - }, - { - "line": 387, - "declaration": "func backendFeedLoaded() {" - }, - { - "line": 391, - "declaration": "func backendDownloadStarted(cancel: @escaping () -> Void) {" - }, - { - "line": 400, - "declaration": "func backendDownloadExpected(_ length: UInt64) {" - }, - { - "line": 405, - "declaration": "func backendDownloadReceived(_ length: UInt64) {" - }, - { - "line": 411, - "declaration": "func backendExtracting() {" - }, - { - "line": 419, - "declaration": "func backendReadyToInstall(reply: @escaping (UpdateReply) -> Void) {" - }, - { - "line": 429, - "declaration": "func backendInstalling(applicationTerminated: Bool, retry: @escaping () -> Void) {" - }, - { - "line": 438, - "declaration": "func backendDismissed() {" - }, - { - "line": 461, - "declaration": "func backendFocus() {" - }, - { - "line": 468, - "declaration": "func backendCycleFinished() {" - }, - { - "line": 486, - "declaration": "private func presentOffer(_ offer: UpdateOffer, stage: UpdateOfferStage, reply: @escaping (UpdateReply) -> Void) {" - }, - { - "line": 514, - "declaration": "private func finishOffer(_ reply: (UpdateReply) -> Void, _ choice: UpdateReply) {" - }, - { - "line": 520, - "declaration": "private func showBlocker(_ blocker: UpdateBlocker, offer: UpdateOffer?," - }, - { - "line": 563, - "declaration": "private func showMoveFailed() {" - }, - { - "line": 575, - "declaration": "private func beginInstall(_ offer: UpdateOffer, stage: UpdateOfferStage, reply: @escaping (UpdateReply) -> Void," - }, - { - "line": 615, - "declaration": "private func didPrepare(_ offer: UpdateOffer, stage: UpdateOfferStage, result: Result," - }, - { - "line": 655, - "declaration": "private func resumeInstallation(_ offer: UpdateOffer, reply: @escaping (UpdateReply) -> Void) {" - }, - { - "line": 669, - "declaration": "private func runGate(_ offer: UpdateOffer, journal: UpdateJournal, reply: @escaping (UpdateReply) -> Void) {" - }, - { - "line": 690, - "declaration": "private func finishGate(_ offer: UpdateOffer, verdict: UpdateGate.Verdict, reply: @escaping (UpdateReply) -> Void) {" - }, - { - "line": 733, - "declaration": "private func veto(_ offer: UpdateOffer, phase: UpdatePhase, reason: UpdateRestoreReason?, message: String?," - }, - { - "line": 753, - "declaration": "private func windDown(_ offer: UpdateOffer, message: String?) {" - }, - { - "line": 766, - "declaration": "private func stopBeforeGate(_ offer: UpdateOffer, message: String?) {" - }, - { - "line": 777, - "declaration": "private func settleApproved(_ offer: UpdateOffer, waited: TimeInterval = 0) {" - }, - { - "line": 791, - "declaration": "private func proceedVeto() {" - }, - { - "line": 797, - "declaration": "private func confirmInstallerStopped(offer: UpdateOffer, message: String?, openDownloadPage: Bool) {" - }, - { - "line": 841, - "declaration": "private func abandon(_ offer: UpdateOffer, phase: UpdatePhase, message: String?) {" - }, - { - "line": 851, - "declaration": "private func cleanUpAfterStop(_ offer: UpdateOffer, phase: UpdatePhase?) {" - }, - { - "line": 860, - "declaration": "private func markThisUpdate(_ offer: UpdateOffer, phase: UpdatePhase, reason: UpdateRestoreReason?) {" - }, - { - "line": 876, - "declaration": "func applicationShouldTerminate() -> NSApplication.TerminateReply {" - }, - { - "line": 909, - "declaration": "private func startTerminateSafetyTimer() {" - }, - { - "line": 931, - "declaration": "private func releaseTerminateIfPending() {" - }, - { - "line": 939, - "declaration": "func applicationWillTerminate() {" - } - ] - }, - { - "path": "prototype/App/WS2AppRuntime.swift", - "baseSHA256": "4860048055a951fd637dba2f5f5a2456ced84b234f5034273e8432e3abb3f820", - "sha256": "ae496e5fafe758ced14f91fa8ca9d042699e0b8a68062b51fae88073d7b4fe83", - "operation": "modify", - "lines": 205, - "symbols": [ - { - "line": 3, - "declaration": "@MainActor final class WS2AppRuntime {" - }, - { - "line": 29, - "declaration": "func day(_ date: Date) -> String {" - }, - { - "line": 102, - "declaration": "private func setLockReason(_ reason: String, locked: Bool) {" - }, - { - "line": 113, - "declaration": "func applicationShouldTerminate() -> NSApplication.TerminateReply {" - }, - { - "line": 132, - "declaration": "private func finishQuit(updaterReply:Bool?=nil,childrenReady:Bool=false,failed:Bool=false) {" - }, - { - "line": 138, - "declaration": "func openOwned() {" - }, - { - "line": 147, - "declaration": "func open() {" - }, - { - "line": 160, - "declaration": "func refreshFocusSettings() {" - }, - { - "line": 165, - "declaration": "func toggleFocus() {" - }, - { - "line": 172, - "declaration": "@discardableResult func showSessions(_ sessions:[AgentSessions.Session], open:@escaping(WS2.Context)->Void," - }, - { - "line": 177, - "declaration": "@discardableResult func showConductor(_ state:ConductorNotch, action:@escaping(WS2ConductorView.Action)->Void) -> Bool {" - }, - { - "line": 183, - "declaration": "private func publish() {" - }, - { - "line": 191, - "declaration": "func stop() {" - }, - { - "line": 203, - "declaration": "@objc func ws2OpenOwned() { MainActor.assumeIsolated { ws2Runtime.openOwned() } }" - }, - { - "line": 204, - "declaration": "@objc func ws2OpenFocus() { MainActor.assumeIsolated { ws2Runtime.open() } }" - } - ] - }, - { - "path": "prototype/App/WS2CodexApprovalHost.swift", - "baseSHA256": "e08fbdcab085bfda8db45e5a01797b9ef173cc87c52f47ae040353af2863b3bf", - "sha256": "f400c3354906b3ddb97f7651388468520d91f5eb6796417d014d7753266bf03b", - "operation": "modify", - "lines": 250, - "symbols": [ - { - "line": 5, - "declaration": "@MainActor final class WS2CodexApprovalHost: WS2OwnedProtocolHost {" - }, - { - "line": 36, - "declaration": "func beginProtocol() throws {" - }, - { - "line": 40, - "declaration": "func startThread(cwd: String, model: String) throws {" - }, - { - "line": 45, - "declaration": "func resumeThread(_ id: String) throws {" - }, - { - "line": 49, - "declaration": "func startTurn(text: String, model: String, effort: String) throws {" - }, - { - "line": 54, - "declaration": "func steer(text: String, expectedTurn: String) throws {" - }, - { - "line": 59, - "declaration": "func interruptTurn() throws {" - }, - { - "line": 63, - "declaration": "func receive(_ bytes: Data) {" - }, - { - "line": 87, - "declaration": "@discardableResult func present(_ id: WS2.RequestID) -> Bool {" - }, - { - "line": 114, - "declaration": "private func confirm(beganAt: WS2.Instant, sequence: UInt64) {" - }, - { - "line": 142, - "declaration": "private func target(_ review: WS2ApprovalReview) throws -> AuthTarget {" - }, - { - "line": 145, - "declaration": "private func isCurrent(_ review: WS2ApprovalReview) -> Bool {" - }, - { - "line": 150, - "declaration": "func tick() {" - }, - { - "line": 160, - "declaration": "private func flush(deadline: WS2.Instant) {" - }, - { - "line": 164, - "declaration": "private func abandonCurrent(decline: Bool) {" - }, - { - "line": 173, - "declaration": "func invalidate() {" - }, - { - "line": 179, - "declaration": "@MainActor private final class WS2ReviewButton: NSButton {" - }, - { - "line": 189, - "declaration": "private func begin() -> Bool {" - }, - { - "line": 192, - "declaration": "override func mouseDown(with event:NSEvent) { guard begin() else { return }; defer { press = nil }; super.mouseDown(with:event) }" - }, - { - "line": 193, - "declaration": "override func keyDown(with event:NSEvent) {" - }, - { - "line": 197, - "declaration": "override func accessibilityPerformPress() -> Bool {" - }, - { - "line": 200, - "declaration": "@objc private func fire() { guard let press else { return }; freshAction?(press.0,press.1) }" - }, - { - "line": 202, - "declaration": "@MainActor final class WS2CommandReviewView: NSView, WS2LeaseContent {" - }, - { - "line": 231, - "declaration": "func enableConfirmation(){approval.isEnabled=inputIsCurrent()}" - }, - { - "line": 232, - "declaration": "func revoke(){inputIsCurrent = { false };approval.isEnabled=false;text.string=\"\";confirm=nil;decline=nil}" - }, - { - "line": 233, - "declaration": "@objc private func refuse(){guard inputIsCurrent() else{return};decline?()}" - }, - { - "line": 234, - "declaration": "override func cancelOperation(_ sender:Any?){onCancel?()}" - }, - { - "line": 239, - "declaration": "func account(_ action:WS2AccountAction) throws -> WS2.RequestID {" - } - ] - }, - { - "path": "prototype/App/WS2OwnedCodexSession+Authorization.swift", - "baseSHA256": null, - "sha256": "cd619ed648b81d55565ecf519777681ab4419bd2374eecb1f793c7bf29538266", - "operation": "add", - "lines": 18, - "symbols": [] - }, - { - "path": "prototype/App/WS2OwnedCodexSession.swift", - "baseSHA256": "211a2a4a5024547723634142eb60825b43eb6dfbea3a7710d4ab54bb37653572", - "sha256": "b05f1a6d7aeafd72f5e8d5dea6cd8a460737d57cbf319b1c242b01a5f09d2ef8", - "operation": "modify", - "lines": 86, - "symbols": [ - { - "line": 3, - "declaration": "/// One engine for the real App and the process-backed protocol tests. It owns exactly one" - }, - { - "line": 4, - "declaration": "/// child channel and one protocol host. The host factory cannot create a second transport." - }, - { - "line": 5, - "declaration": "@MainActor final class WS2OwnedCodexSession {" - }, - { - "line": 57, - "declaration": "func start() throws {" - }, - { - "line": 62, - "declaration": "func startThread(cwd:String,model:String) throws { try approval.startThread(cwd:cwd,model:model);scheduleExpiry() }" - }, - { - "line": 63, - "declaration": "func resumeThread(_ id:String) throws { try approval.resumeThread(id);scheduleExpiry() }" - }, - { - "line": 64, - "declaration": "func startTurn(text:String,model:String,effort:String) throws { try approval.startTurn(text:text,model:model,effort:effort);scheduleExpiry() }" - }, - { - "line": 65, - "declaration": "func steer(text:String,expectedTurn:String) throws { try approval.steer(text:text,expectedTurn:expectedTurn);scheduleExpiry() }" - }, - { - "line": 66, - "declaration": "func interrupt() throws { try approval.interruptTurn();scheduleExpiry() }" - }, - { - "line": 67, - "declaration": "func account(_ action:WS2AccountAction) throws -> WS2.RequestID {" - }, - { - "line": 70, - "declaration": "func clearDiagnostics() { channel.clearDiagnostics() }" - }, - { - "line": 71, - "declaration": "private func scheduleExpiry() {" - }, - { - "line": 80, - "declaration": "func stop() {" - } - ] - }, - { - "path": "prototype/App/WS2OwnedLaunchController.swift", - "baseSHA256": null, - "sha256": "631d6e462822fd75a3becc290c7b84492c7baacdc4b8adcbbd418dd125de3c07", - "operation": "add", - "lines": 309, - "symbols": [ - { - "line": 4, - "declaration": "/// AgentSessions remain the authorities for protocol state and backend sessions respectively." - }, - { - "line": 5, - "declaration": "@MainActor final class WS2OwnedLaunchController {" - }, - { - "line": 6, - "declaration": "enum Phase: Equatable { case idle, checkingVersion, connecting, checkingConfig, signedOut, ready, creatingThread, sending, running, interrupting, completed, failed, stopping, stopped }" - }, - { - "line": 7, - "declaration": "private enum Query { case config, account, login, cancelLogin, logout }" - }, - { - "line": 8, - "declaration": "private struct Submission { let text:String;let model:String;let effort:String }" - }, - { - "line": 9, - "declaration": "private struct Association { let project:WS2OwnedScope.Project;let thread:String }" - }, - { - "line": 58, - "declaration": "@discardableResult func editDraft(_ value:String) -> Bool {" - }, - { - "line": 61, - "declaration": "@discardableResult func selectProject(_ url:URL) -> Bool {" - }, - { - "line": 72, - "declaration": "@discardableResult func selectExecutable(_ url:URL) -> Bool {" - }, - { - "line": 76, - "declaration": "@discardableResult func launch(consent:Bool,diagnostics:Bool=false) -> Bool {" - }, - { - "line": 92, - "declaration": "private func begin(_ prepared:WS2LocalLaunchProfile,diagnostics:Bool) {" - }, - { - "line": 118, - "declaration": "private func currentIsValid() -> Bool {" - }, - { - "line": 123, - "declaration": "private func revalidate() -> Bool {" - }, - { - "line": 127, - "declaration": "@discardableResult func chooseModel(_ value:String) -> Bool {" - }, - { - "line": 131, - "declaration": "@discardableResult func chooseEffort(_ value:String) -> Bool {" - }, - { - "line": 135, - "declaration": "@discardableResult func send(_ draft:String,hasMarkedText:Bool) -> Bool {" - }, - { - "line": 147, - "declaration": "private func deliverSubmission() throws {" - }, - { - "line": 153, - "declaration": "@discardableResult func resumeLast() -> Bool {" - }, - { - "line": 159, - "declaration": "@discardableResult func interrupt() -> Bool {" - }, - { - "line": 164, - "declaration": "@discardableResult func login() -> Bool {" - }, - { - "line": 169, - "declaration": "@discardableResult func logout() -> Bool {" - }, - { - "line": 174, - "declaration": "func cancelLogin() {" - }, - { - "line": 181, - "declaration": "static func browserLoginURL(_ text:String) -> URL? {" - }, - { - "line": 187, - "declaration": "private func receive(_ event:CodexWire.Event,connection:UUID) {" - }, - { - "line": 254, - "declaration": "private func readAccount() throws {" - }, - { - "line": 258, - "declaration": "private func synchronizeThreadAndTurn() throws {" - }, - { - "line": 273, - "declaration": "private func emit(_ event:AgentSessions.Event,turn:String?=nil) {" - }, - { - "line": 277, - "declaration": "private func ended(connection:UUID) {" - }, - { - "line": 283, - "declaration": "func stop(reason:String=\"已断开连接\",clearPrivate:Bool=false) {" - }, - { - "line": 301, - "declaration": "func environmentChanged() {" - }, - { - "line": 305, - "declaration": "private func fail(_ message:String) {" - }, - { - "line": 308, - "declaration": "private func changed() { onChange?();if !isBusy { onQuiescent?() } }" - } - ] - }, - { - "path": "prototype/App/WS2OwnedSessionView.swift", - "baseSHA256": null, - "sha256": "ca1e124b84fd3f2138ee243eb2f3a0c175a03b9087f7eb1adc882fb727fe4ce8", - "operation": "add", - "lines": 143, - "symbols": [ - { - "line": 4, - "declaration": "@MainActor final class WS2OwnedSessionView: NSView, WS2LeaseContent, NSTextViewDelegate {" - }, - { - "line": 43, - "declaration": "func row(_ views:[NSView]) -> NSStackView { let r=NSStackView(views:views);r.orientation = .horizontal;r.spacing=8;return r }" - }, - { - "line": 70, - "declaration": "private func configure(_ text:NSTextView,editable:Bool) {" - }, - { - "line": 77, - "declaration": "func scheduleRender() {" - }, - { - "line": 84, - "declaration": "func render() {" - }, - { - "line": 111, - "declaration": "func textDidChange(_ notification:Notification) {" - }, - { - "line": 115, - "declaration": "private func choose(directory:Bool) {" - }, - { - "line": 126, - "declaration": "@objc private func pickProject() { choose(directory:true) }" - }, - { - "line": 127, - "declaration": "@objc private func pickExecutable() { choose(directory:false) }" - }, - { - "line": 128, - "declaration": "@objc private func consentChanged() { render() }" - }, - { - "line": 129, - "declaration": "@objc private func start() { guard inputIsCurrent() else { return };_=controller.launch(consent:consent.state == .on,diagnostics:diagnostic.state == .on);render() }" - }, - { - "line": 130, - "declaration": "@objc private func logIn() { guard inputIsCurrent() else { return };_=controller.login() }" - }, - { - "line": 131, - "declaration": "@objc private func cancelLogIn() { guard inputIsCurrent() else { return };controller.cancelLogin() }" - }, - { - "line": 132, - "declaration": "@objc private func logOut() { guard inputIsCurrent() else { return };_=controller.logout() }" - }, - { - "line": 133, - "declaration": "@objc private func resumeSession() { guard inputIsCurrent() else { return };_=controller.resumeLast() }" - }, - { - "line": 134, - "declaration": "@objc private func selectModel() { guard inputIsCurrent(),model.indexOfSelectedItem>0 else { return };_=controller.chooseModel(modelIDs[model.indexOfSelectedItem-1]) }" - }, - { - "line": 135, - "declaration": "@objc private func selectEffort() { guard inputIsCurrent(),effort.indexOfSelectedItem>0 else { return };_=controller.chooseEffort(effortIDs[effort.indexOfSelectedItem-1]) }" - }, - { - "line": 136, - "declaration": "@objc private func sendDraft() { guard inputIsCurrent() else { return };_=controller.send(draft.string,hasMarkedText:draft.hasMarkedText()) }" - }, - { - "line": 137, - "declaration": "@objc private func interruptTurn() { guard inputIsCurrent() else { return };_=controller.interrupt() }" - }, - { - "line": 138, - "declaration": "@objc private func stopSession() { guard inputIsCurrent() else { return };controller.stop() }" - }, - { - "line": 139, - "declaration": "@objc private func toggleDiagnostics() { guard inputIsCurrent() else { return };displayingDiagnostics.toggle();diagnostics.title=displayingDiagnostics ? \"返回回复\":\"查看诊断\";render() }" - }, - { - "line": 140, - "declaration": "func revoke() { renderTask?.cancel();renderTask=nil;inputIsCurrent={false};draft.inputContext?.discardMarkedText();draft.string=\"\";output.string=\"\";onCancel?() }" - }, - { - "line": 143, - "declaration": "@MainActor private final class WS2OwnedDocumentView:NSView { override var isFlipped:Bool { true } }" - } - ] - }, - { - "path": "prototype/App/WS2SupplementPane.swift", - "baseSHA256": "223df7148a746cb7e6a7664c012b269dc0c7d515ae5d1fe698962e75aa5e517c", - "sha256": "eb49bb23eda0c267d0c169dc4ef4040dd462ae3ed71f75aa341e2bfd96c39fcd", - "operation": "modify", - "lines": 36, - "symbols": [ - { - "line": 3, - "declaration": "@MainActor final class WS2SupplementPane: NSStackView {" - } - ] - }, - { - "path": "prototype/Core/CodexWire.swift", - "baseSHA256": "71e73c2b2bb2c5bda0aec0d94ad0d4f7dd6d3c218373de510da8007edc64c497", - "sha256": "ed2e3e209bb3ff42c6ba8273b323f2b6f70bdf48daa4cc21f91060d9bfebecf3", - "operation": "modify", - "lines": 271, - "symbols": [ - { - "line": 3, - "declaration": "indirect enum WireJSON: Codable, Equatable, Sendable {" - }, - { - "line": 15, - "declaration": "func encode(to encoder: any Encoder) throws {" - }, - { - "line": 33, - "declaration": "struct CodexWire: Sendable {" - }, - { - "line": 34, - "declaration": "enum Failure: Error { case oversized, closed, malformed, notReady, unsupported, stale, capacity }" - }, - { - "line": 35, - "declaration": "enum State: Equatable, Sendable { case fresh, initializing, listingModels, ready, closed }" - }, - { - "line": 36, - "declaration": "struct Pending: Sendable { let method: String; let deadline: WS2.Instant }" - }, - { - "line": 37, - "declaration": "enum Event: Equatable, Sendable {" - }, - { - "line": 42, - "declaration": "static let maximumFrame = 1_048_576 // Recommendation: bounded metadata stream; not a measured protocol maximum." - }, - { - "line": 59, - "declaration": "mutating func drain() -> [Data] { defer { outbound.removeAll(keepingCapacity:true) }; return outbound }" - }, - { - "line": 60, - "declaration": "private mutating func send(_ value: WireJSON) throws {" - }, - { - "line": 66, - "declaration": "private mutating func request(_ method: String, _ params: [String:WireJSON]?, now: WS2.Instant) throws -> WS2.RequestID {" - }, - { - "line": 74, - "declaration": "mutating func initialize(now: WS2.Instant) throws {" - }, - { - "line": 79, - "declaration": "mutating func startThread(cwd: String, model: String, now: WS2.Instant) throws {" - }, - { - "line": 87, - "declaration": "mutating func resumeThread(id: String, now: WS2.Instant) throws {" - }, - { - "line": 95, - "declaration": "mutating func startTurn(text: String, model: String, effort: String, now: WS2.Instant) throws {" - }, - { - "line": 104, - "declaration": "mutating func steer(text: String, expectedTurnID: String, now: WS2.Instant) throws {" - }, - { - "line": 110, - "declaration": "mutating func interrupt(now: WS2.Instant) throws {" - }, - { - "line": 115, - "declaration": "mutating func readConfig(cwd:String,now:WS2.Instant) throws -> WS2.RequestID {" - }, - { - "line": 119, - "declaration": "mutating func readAccount(now: WS2.Instant) throws -> WS2.RequestID {" - }, - { - "line": 123, - "declaration": "mutating func beginBrowserLogin(now: WS2.Instant) throws -> WS2.RequestID {" - }, - { - "line": 127, - "declaration": "mutating func cancelLogin(id: String, now: WS2.Instant) throws -> WS2.RequestID {" - }, - { - "line": 131, - "declaration": "mutating func logout(now: WS2.Instant) throws -> WS2.RequestID {" - }, - { - "line": 135, - "declaration": "mutating func ingest(_ chunk: Data, now: WS2.Instant) throws -> [Event] {" - }, - { - "line": 156, - "declaration": "private mutating func receive(_ v: WireJSON, now: WS2.Instant) throws -> [Event] {" - }, - { - "line": 237, - "declaration": "mutating func denyApproval(_ id: WS2.RequestID) throws {" - }, - { - "line": 246, - "declaration": "enum ApprovalWireDecision { case acceptOnce, decline }" - }, - { - "line": 247, - "declaration": "mutating func enqueueApprovalResponse(_ id: WS2.RequestID, expectedMethod: String," - }, - { - "line": 260, - "declaration": "mutating func tick(now: WS2.Instant) -> [Event] {" - }, - { - "line": 266, - "declaration": "mutating func close() {" - } - ] - }, - { - "path": "prototype/Core/WS2OwnedProtocolHost.swift", - "baseSHA256": null, - "sha256": "11defe55b4723986cdcd10cea154dfcc10f205dbb8d45eb1265c9dc84fe5b765", - "operation": "add", - "lines": 85, - "symbols": [ - { - "line": 3, - "declaration": "enum WS2AccountAction { case read, login, cancel(String), logout, config(String) }" - }, - { - "line": 6, - "declaration": "@MainActor protocol WS2OwnedProtocolHost: AnyObject {" - }, - { - "line": 11, - "declaration": "func beginProtocol() throws" - }, - { - "line": 12, - "declaration": "func startThread(cwd:String,model:String) throws" - }, - { - "line": 13, - "declaration": "func resumeThread(_ id:String) throws" - }, - { - "line": 14, - "declaration": "func startTurn(text:String,model:String,effort:String) throws" - }, - { - "line": 15, - "declaration": "func steer(text:String,expectedTurn:String) throws" - }, - { - "line": 16, - "declaration": "func interruptTurn() throws" - }, - { - "line": 17, - "declaration": "func account(_ action:WS2AccountAction) throws -> WS2.RequestID" - }, - { - "line": 18, - "declaration": "func receive(_ data:Data)" - }, - { - "line": 19, - "declaration": "func tick()" - }, - { - "line": 20, - "declaration": "func invalidate()" - }, - { - "line": 25, - "declaration": "@MainActor final class WS2ReadOnlyProtocolHost: WS2OwnedProtocolHost {" - }, - { - "line": 39, - "declaration": "private func check() throws { guard !closed else { throw CodexWire.Failure.closed } }" - }, - { - "line": 40, - "declaration": "private func flush() {" - }, - { - "line": 44, - "declaration": "func beginProtocol() throws { try check();try wire.initialize(now:clock.now());flush() }" - }, - { - "line": 45, - "declaration": "func startThread(cwd:String,model:String) throws { try check();try wire.startThread(cwd:cwd,model:model,now:clock.now());flush() }" - }, - { - "line": 46, - "declaration": "func resumeThread(_ id:String) throws { try check();try wire.resumeThread(id:id,now:clock.now());flush() }" - }, - { - "line": 47, - "declaration": "func startTurn(text:String,model:String,effort:String) throws { try check();try wire.startTurn(text:text,model:model,effort:effort,now:clock.now());flush() }" - }, - { - "line": 48, - "declaration": "func steer(text:String,expectedTurn:String) throws { try check();try wire.steer(text:text,expectedTurnID:expectedTurn,now:clock.now());flush() }" - }, - { - "line": 49, - "declaration": "func interruptTurn() throws { try check();try wire.interrupt(now:clock.now());flush() }" - }, - { - "line": 50, - "declaration": "func account(_ action:WS2AccountAction) throws -> WS2.RequestID {" - }, - { - "line": 61, - "declaration": "func receive(_ data:Data) {" - }, - { - "line": 79, - "declaration": "func tick() {" - }, - { - "line": 84, - "declaration": "func invalidate() { guard !closed else { return };closed=true;wire.close();closeTransport() }" - } - ] - }, - { - "path": "prototype/Core/WS2QuitBarrier.swift", - "baseSHA256": null, - "sha256": "2a80a0409cee77c4a117844ac1192084ab922a1073b405d26909a6fd8a39754e", - "operation": "add", - "lines": 20, - "symbols": [ - { - "line": 5, - "declaration": "struct WS2QuitBarrier: Sendable {" - }, - { - "line": 6, - "declaration": "struct Token:Hashable,Sendable { let value:UUID }" - }, - { - "line": 9, - "declaration": "mutating func begin(updaterReady:Bool,childrenReady:Bool) -> Token? {" - }, - { - "line": 13, - "declaration": "mutating func update(_ expected:Token,updaterReply:Bool?=nil,childrenReady:Bool=false,failed:Bool=false) -> Bool? {" - } - ] - }, - { - "path": "prototype/Core/WS2StrictJSON.swift", - "baseSHA256": null, - "sha256": "3c1edb48065c85d7b0fbed12ac8299df4d1931abecfe53019f9ea9cabdc9bb0d", - "operation": "add", - "lines": 99, - "symbols": [ - { - "line": 5, - "declaration": "struct WS2StrictJSON {" - }, - { - "line": 6, - "declaration": "enum Failure: Error, Equatable { case syntax, duplicateKey, depth, nodes, size }" - }, - { - "line": 7, - "declaration": "static func validate(_ data: Data, maximumBytes: Int = 1_048_576," - }, - { - "line": 15, - "declaration": "private struct Parser {" - }, - { - "line": 19, - "declaration": "mutating func whitespace() { while let c=current, [9,10,13,32].contains(c) { index += 1 } }" - }, - { - "line": 20, - "declaration": "mutating func expect(_ c:UInt8) throws { guard current == c else { throw Failure.syntax }; index += 1 }" - }, - { - "line": 21, - "declaration": "mutating func node() throws { guard remaining > 0 else { throw Failure.nodes }; remaining -= 1 }" - }, - { - "line": 22, - "declaration": "mutating func value(_ depth:Int) throws {" - }, - { - "line": 53, - "declaration": "mutating func literal(_ text:[UInt8]) throws { for byte in text { try expect(byte) } }" - }, - { - "line": 54, - "declaration": "func digit(_ c:UInt8?) -> Bool { c.map { (48...57).contains($0) } ?? false }" - }, - { - "line": 55, - "declaration": "mutating func number() throws {" - }, - { - "line": 65, - "declaration": "mutating func hex() throws -> UInt16 {" - }, - { - "line": 74, - "declaration": "mutating func string() throws -> String {" - } - ] - }, - { - "path": "prototype/Native/WS2Child.c", - "baseSHA256": null, - "sha256": "134368aa12dfbbb9ec5a6f60a121c44b52b46bb303d55d73b18d78326d875f47", - "operation": "add", - "lines": 167, - "symbols": [ - { - "line": 16, - "declaration": "struct WS2Child {" - }, - { - "line": 23, - "declaration": "struct timespec value;" - }, - { - "line": 46, - "declaration": "int ws2_child_spawn(const char *executable, char *const argv[], char *const envp[]," - }, - { - "line": 140, - "declaration": "int ws2_child_poll(WS2Child *c, WS2ChildState *state) {" - }, - { - "line": 156, - "declaration": "int ws2_child_stop(WS2Child *c) {" - }, - { - "line": 161, - "declaration": "int ws2_child_destroy(WS2Child *c) {" - }, - { - "line": 167, - "declaration": "pid_t ws2_child_pid(const WS2Child *c) { return c ? c->pid : -1; }" - } - ] - }, - { - "path": "prototype/Native/WS2Child.h", - "baseSHA256": null, - "sha256": "95380850f4cbd24d868fc785978cda939307f3962640b091200068a17ea1a9da", - "operation": "add", - "lines": 27, - "symbols": [ - { - "line": 7, - "declaration": "typedef struct WS2Child WS2Child;" - }, - { - "line": 17, - "declaration": "int ws2_child_spawn(const char *executable, char *const argv[], char *const envp[]," - }, - { - "line": 21, - "declaration": "int ws2_child_poll(WS2Child *child, WS2ChildState *state);" - }, - { - "line": 22, - "declaration": "int ws2_child_stop(WS2Child *child);" - }, - { - "line": 25, - "declaration": "int ws2_child_destroy(WS2Child *child);" - }, - { - "line": 26, - "declaration": "pid_t ws2_child_pid(const WS2Child *child);" - } - ] - }, - { - "path": "prototype/Native/module.modulemap", - "baseSHA256": null, - "sha256": "9cac42ba9402e4324e393d07c155c9375e20846e3bca84117460fdd0e6a0db8e", - "operation": "add", - "lines": 4, - "symbols": [] - }, - { - "path": "prototype/Support/WS2DuplexProcess.swift", - "baseSHA256": "e85ba57a74110f0f4163eac840c65eed8bc9bd6fa08ce4f802098e5a159deaff", - "sha256": "1efe08a7d6987fdac80d87f345f1d2ce212e6a5dddac3a71e086e247d8ab579a", - "operation": "modify", - "lines": 248, - "symbols": [ - { - "line": 11, - "declaration": "@MainActor final class WS2DuplexProcess {" - }, - { - "line": 12, - "declaration": "enum Failure: Error { case invalid, io(Int32), notRunning }" - }, - { - "line": 13, - "declaration": "enum End: Equatable { case localStop, eof, processExit, io(Int32), framing, timeout, revoked }" - }, - { - "line": 14, - "declaration": "struct Termination: Equatable, Sendable { let status: Int32; let wasSignalled: Bool }" - }, - { - "line": 57, - "declaration": "func start() throws {" - }, - { - "line": 96, - "declaration": "private func pollChild() {" - }, - { - "line": 120, - "declaration": "@discardableResult func admit(_ lines: [Data], connection: UUID, deadline: Double," - }, - { - "line": 131, - "declaration": "@discardableResult func admitWireFrames(_ frames: [Data], connection: UUID, deadline: Double," - }, - { - "line": 143, - "declaration": "private func armWrite() { if !writeArmed, !stopped { writeArmed = true; writer?.resume() } }" - }, - { - "line": 144, - "declaration": "private func disarmWrite() { if writeArmed { writeArmed = false; writer?.suspend() } }" - }, - { - "line": 145, - "declaration": "private func scheduleDeadline() {" - }, - { - "line": 157, - "declaration": "private func writeReady() {" - }, - { - "line": 183, - "declaration": "private func readReady(checkChild: Bool = true) {" - }, - { - "line": 205, - "declaration": "private func readDiagnosticReady() {" - }, - { - "line": 220, - "declaration": "func clearDiagnostics() { diagnostics?.clear() }" - }, - { - "line": 221, - "declaration": "private static func writeWithoutSIGPIPE(_ fd: Int32, _ bytes: Data) -> Int {" - }, - { - "line": 236, - "declaration": "func stop(_ reason: End = .localStop) {" - }, - { - "line": 246, - "declaration": "// The reaper timer survives protocol closure. A stopped pipe is not reaping evidence." - } - ] - }, - { - "path": "prototype/Support/WS2LocalLaunchProfile.swift", - "baseSHA256": null, - "sha256": "34a52b15e0a183c0e0f8d45d999ab15e0f8d1b1998b7fa467fe15a4b1c843a27", - "operation": "add", - "lines": 131, - "symbols": [ - { - "line": 10, - "declaration": "struct WS2LocalLaunchProfile: Sendable {" - }, - { - "line": 11, - "declaration": "enum Failure: Error { case unsafePath, configurationChanged, externalConfiguration, executableChanged }" - }, - { - "line": 12, - "declaration": "struct FileIdentity: Equatable, Sendable {" - }, - { - "line": 38, - "declaration": "static func prepare(projectURL:URL,projectID:UUID,executableURL:URL,root:URL) throws -> Self {" - }, - { - "line": 73, - "declaration": "func revalidate() throws {" - }, - { - "line": 84, - "declaration": "private static func identify(_ url:URL) throws -> FileIdentity {" - }, - { - "line": 91, - "declaration": "private static func privateDirectory(_ url:URL) throws {" - }, - { - "line": 102, - "declaration": "private static func rejectExternalConfiguration(_ project:WS2OwnedScope.Directory) throws {" - }, - { - "line": 118, - "declaration": "static func admitsEffectiveConfig(_ response:WireJSON) -> Bool {" - } - ] - }, - { - "path": "prototype/Support/WS2VersionProbe.swift", - "baseSHA256": null, - "sha256": "8b77c9a8ce4ec1d66f5106736783ad5581572e45d761ebb7ec92c68756d7bd8f", - "operation": "add", - "lines": 48, - "symbols": [ - { - "line": 4, - "declaration": "@MainActor final class WS2VersionProbe {" - }, - { - "line": 35, - "declaration": "func start() throws {" - }, - { - "line": 43, - "declaration": "func cancel() { invalid=true;channel.stop();finish(false) }" - }, - { - "line": 44, - "declaration": "private func finish(_ ok:Bool) {" - } - ] - }, - { - "path": "prototype/WindowShade.swift", - "baseSHA256": "e5e60ad49adca1273a2a67e2c339ecd53200519d7c340116affaefe2e015e54f", - "sha256": "4cbf3342bc01d1df701c23151617ad5df76bfe9a2b27c14f5149828c1242e228", - "operation": "modify", - "lines": 914, - "symbols": [ - { - "line": 79, - "declaration": "func framesAlmostEqual(_ a: NSRect, _ b: NSRect, tolerance: CGFloat = 0.5) -> Bool {" - }, - { - "line": 86, - "declaration": "func cgWindowID(for window: NSWindow) -> CGWindowID? {" - }, - { - "line": 94, - "declaration": "final class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {" - }, - { - "line": 96, - "declaration": "final class PendingTitlebarTripleClick {" - }, - { - "line": 110, - "declaration": "struct PendingSpaceReturn {" - }, - { - "line": 118, - "declaration": "struct ReconcileAXTarget {" - }, - { - "line": 125, - "declaration": "struct ReconcileAXSnapshot {" - }, - { - "line": 301, - "declaration": "func applicationDidFinishLaunching(_ note: Notification) {" - }, - { - "line": 415, - "declaration": "func applicationShouldTerminate(_ sender: NSApplication) -> NSApplication.TerminateReply {" - }, - { - "line": 420, - "declaration": "@objc func systemAppearanceOptionsChanged(_ note: Notification) {" - }, - { - "line": 451, - "declaration": "func installStandardMainMenu() {" - }, - { - "line": 461, - "declaration": "private func migrateDistractingDefaultSounds() {" - }, - { - "line": 490, - "declaration": "func refreshPinnedPreviewTarget(reason: String) {" - }, - { - "line": 497, - "declaration": "private func setupPinnedPreviewFocusTracking() {" - }, - { - "line": 510, - "declaration": "private func scheduleTitlebarPrefetch() {" - }, - { - "line": 531, - "declaration": "private func schedulePinnedPreviewTargetRefresh() {" - }, - { - "line": 551, - "declaration": "func focusSizedFrame(pos: CGPoint, size: CGSize," - }, - { - "line": 590, - "declaration": "func configureShadedAccessibility(for overlay: NSWindow, id: CGWindowID," - }, - { - "line": 616, - "declaration": "func currentShadedOverlayID() -> CGWindowID? {" - }, - { - "line": 634, - "declaration": "@objc func finishOnboarding() {" - }, - { - "line": 638, - "declaration": "@objc func dismissOnboarding() {" - }, - { - "line": 649, - "declaration": "private func runTool(_ path: String, _ args: [String]) -> Int32? {" - }, - { - "line": 666, - "declaration": "private func readTool(_ path: String, _ args: [String]) -> String? {" - }, - { - "line": 682, - "declaration": "private func runDefaults(_ args: [String]) { runTool(\"/usr/bin/defaults\", args) }" - }, - { - "line": 683, - "declaration": "private func readDefaults(_ args: [String]) -> String? { readTool(\"/usr/bin/defaults\", args) }" - }, - { - "line": 684, - "declaration": "private func killDock() { runTool(\"/usr/bin/killall\", [\"Dock\"]) } // 让 Dock 重读 mineffect" - }, - { - "line": 686, - "declaration": "private func writeDockMinimizeEffect(_ value: String, reason: String) -> Bool {" - }, - { - "line": 699, - "declaration": "private func persistDockMinimizeEffectSession(original: String?) {" - }, - { - "line": 710, - "declaration": "private func clearDockMinimizeEffectSession() {" - }, - { - "line": 717, - "declaration": "private func restoreDockMinimizeEffect(original: String?) {" - }, - { - "line": 725, - "declaration": "private func recoverStaleDockMinimizeEffectSessionIfNeeded() {" - }, - { - "line": 736, - "declaration": "private func enableScaleMinimizeEffectForSession() {" - }, - { - "line": 764, - "declaration": "private func restoreDockMinimizeEffect() {" - }, - { - "line": 781, - "declaration": "func currentOperationState(_ id: CGWindowID) -> WindowShadeState {" - }, - { - "line": 787, - "declaration": "func transitionOperationState(id: CGWindowID, to next: WindowShadeState," - }, - { - "line": 800, - "declaration": "func applicationWillTerminate(_ note: Notification) {" - }, - { - "line": 827, - "declaration": "func ensureAccessibility() -> Bool {" - }, - { - "line": 834, - "declaration": "@objc func toggleAction() { toggle() }" - }, - { - "line": 845, - "declaration": "@objc func focusCurrentAppAction() {" - }, - { - "line": 859, - "declaration": "@objc func unshadeFromMenu(_ sender: NSMenuItem) {" - }, - { - "line": 864, - "declaration": "@objc func quit() {" - }, - { - "line": 877, - "declaration": "func setupEventTapWhenTrusted() {" - }, - { - "line": 893, - "declaration": "func setupEventTap() -> Bool {" - } - ] - }, - { - "path": "prototype/build.sh", - "baseSHA256": "e9f87cc96478257d129e8d16c85d0697e97f25ace0ffa8bbe08573cb4fc72f01", - "sha256": "e6db6c9f3499fcdcb4f28c065199f4f87aa64aeb0c5a46b098164dc761ad588c", - "operation": "modify", - "lines": 358, - "symbols": [] - } -] diff --git a/tests/archive/part7/sources/code-map.md b/tests/archive/part7/sources/code-map.md deleted file mode 100644 index abd4c0a0..00000000 --- a/tests/archive/part7/sources/code-map.md +++ /dev/null @@ -1,441 +0,0 @@ -# 第七份源码地图 - -行号只适用于这里的 SHA256。编译状态按 VALIDATION 另行判断;下表不是 SDK 通过证明。 - -## docs/handoff/round2-part7/privacy-signals.json - -add · 85 行 · SHA256 `511294f40bd1dd8231178d9906ac9748889a74c2001b3e02cc8a3c3987298499` - -L49: `"purpose": "Display actual current reply and protocol state",` - -## prototype/App/Updater.swift - -modify · 942 行 · SHA256 `d2f0aa355acde29b729d0a05fdf41b33269599bf7d5405df64e8117a9c0f2c03` - -L16: `struct UpdateOffer: Equatable {` -L25: `enum UpdateOfferStage { case notDownloaded, downloaded, installing }` -L26: `enum UpdateReply { case install, skip, dismiss }` -L29: `@MainActor protocol UpdaterBackend: AnyObject {` -L30: `func start() throws` -L31: `func checkForUpdates()` -L37: `@MainActor func makeSparkleBackend(controller: UpdaterController) -> UpdaterBackend? { nil }` -L40: `enum UpdateSettingsKeys {` -L56: `final class UpdaterController: NSObject, NSMenuItemValidation {` -L68: `private enum Session {` -L102: `func start() {` -L118: `private func scheduleLaunchFollowUps() {` -L143: `private func markHealthyIfSelfCheckPasses() {` -L163: `private func showLaunchNotice(_ notice: UpdateLaunchNotice) {` -L199: `func makeMenuItem() -> NSMenuItem {` -L205: `func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {` -L213: `@objc func checkForUpdatesAction(_ sender: Any?) {` -L217: `func checkForUpdates() {` -L274: `func setSettingsStatus(_ text: String?) {` -L280: `func bindSettings(statusLabel: NSTextField, frequency: NSSegmentedControl) {` -L285: `private func refreshSettings() {` -L290: `func rollBackToPrevious() {` -L309: `private func blocker(for offer: UpdateOffer, ignoreRefused: Bool) -> UpdateBlocker? {` -L323: `func backendIsUserInitiatedCheck() -> Bool { manualCheckInFlight }` -L325: `func backendIsRefused(_ build: String) -> Bool { store.isRefused(build: build) }` -L327: `func backendShowChecking() {` -L332: `func backendFound(_ offer: UpdateOffer, stage: UpdateOfferStage, userInitiated: Bool,` -L347: `func backendNotFound() {` -L358: `func backendError(_ description: String, isNetwork: Bool) {` -L387: `func backendFeedLoaded() {` -L391: `func backendDownloadStarted(cancel: @escaping () -> Void) {` -L400: `func backendDownloadExpected(_ length: UInt64) {` -L405: `func backendDownloadReceived(_ length: UInt64) {` -L411: `func backendExtracting() {` -L419: `func backendReadyToInstall(reply: @escaping (UpdateReply) -> Void) {` -L429: `func backendInstalling(applicationTerminated: Bool, retry: @escaping () -> Void) {` -L438: `func backendDismissed() {` -L461: `func backendFocus() {` -L468: `func backendCycleFinished() {` -L486: `private func presentOffer(_ offer: UpdateOffer, stage: UpdateOfferStage, reply: @escaping (UpdateReply) -> Void) {` -L514: `private func finishOffer(_ reply: (UpdateReply) -> Void, _ choice: UpdateReply) {` -L520: `private func showBlocker(_ blocker: UpdateBlocker, offer: UpdateOffer?,` -L563: `private func showMoveFailed() {` -L575: `private func beginInstall(_ offer: UpdateOffer, stage: UpdateOfferStage, reply: @escaping (UpdateReply) -> Void,` -L615: `private func didPrepare(_ offer: UpdateOffer, stage: UpdateOfferStage, result: Result,` -L655: `private func resumeInstallation(_ offer: UpdateOffer, reply: @escaping (UpdateReply) -> Void) {` -L669: `private func runGate(_ offer: UpdateOffer, journal: UpdateJournal, reply: @escaping (UpdateReply) -> Void) {` -L690: `private func finishGate(_ offer: UpdateOffer, verdict: UpdateGate.Verdict, reply: @escaping (UpdateReply) -> Void) {` -L733: `private func veto(_ offer: UpdateOffer, phase: UpdatePhase, reason: UpdateRestoreReason?, message: String?,` -L753: `private func windDown(_ offer: UpdateOffer, message: String?) {` -L766: `private func stopBeforeGate(_ offer: UpdateOffer, message: String?) {` -L777: `private func settleApproved(_ offer: UpdateOffer, waited: TimeInterval = 0) {` -L791: `private func proceedVeto() {` -L797: `private func confirmInstallerStopped(offer: UpdateOffer, message: String?, openDownloadPage: Bool) {` -L841: `private func abandon(_ offer: UpdateOffer, phase: UpdatePhase, message: String?) {` -L851: `private func cleanUpAfterStop(_ offer: UpdateOffer, phase: UpdatePhase?) {` -L860: `private func markThisUpdate(_ offer: UpdateOffer, phase: UpdatePhase, reason: UpdateRestoreReason?) {` -L876: `func applicationShouldTerminate() -> NSApplication.TerminateReply {` -L909: `private func startTerminateSafetyTimer() {` -L931: `private func releaseTerminateIfPending() {` -L939: `func applicationWillTerminate() {` - -## prototype/App/WS2AppRuntime.swift - -modify · 205 行 · SHA256 `ae496e5fafe758ced14f91fa8ca9d042699e0b8a68062b51fae88073d7b4fe83` - -L3: `@MainActor final class WS2AppRuntime {` -L29: `func day(_ date: Date) -> String {` -L102: `private func setLockReason(_ reason: String, locked: Bool) {` -L113: `func applicationShouldTerminate() -> NSApplication.TerminateReply {` -L132: `private func finishQuit(updaterReply:Bool?=nil,childrenReady:Bool=false,failed:Bool=false) {` -L138: `func openOwned() {` -L147: `func open() {` -L160: `func refreshFocusSettings() {` -L165: `func toggleFocus() {` -L172: `@discardableResult func showSessions(_ sessions:[AgentSessions.Session], open:@escaping(WS2.Context)->Void,` -L177: `@discardableResult func showConductor(_ state:ConductorNotch, action:@escaping(WS2ConductorView.Action)->Void) -> Bool {` -L183: `private func publish() {` -L191: `func stop() {` -L203: `@objc func ws2OpenOwned() { MainActor.assumeIsolated { ws2Runtime.openOwned() } }` -L204: `@objc func ws2OpenFocus() { MainActor.assumeIsolated { ws2Runtime.open() } }` - -## prototype/App/WS2CodexApprovalHost.swift - -modify · 250 行 · SHA256 `f400c3354906b3ddb97f7651388468520d91f5eb6796417d014d7753266bf03b` - -L5: `@MainActor final class WS2CodexApprovalHost: WS2OwnedProtocolHost {` -L36: `func beginProtocol() throws {` -L40: `func startThread(cwd: String, model: String) throws {` -L45: `func resumeThread(_ id: String) throws {` -L49: `func startTurn(text: String, model: String, effort: String) throws {` -L54: `func steer(text: String, expectedTurn: String) throws {` -L59: `func interruptTurn() throws {` -L63: `func receive(_ bytes: Data) {` -L87: `@discardableResult func present(_ id: WS2.RequestID) -> Bool {` -L114: `private func confirm(beganAt: WS2.Instant, sequence: UInt64) {` -L142: `private func target(_ review: WS2ApprovalReview) throws -> AuthTarget {` -L145: `private func isCurrent(_ review: WS2ApprovalReview) -> Bool {` -L150: `func tick() {` -L160: `private func flush(deadline: WS2.Instant) {` -L164: `private func abandonCurrent(decline: Bool) {` -L173: `func invalidate() {` -L179: `@MainActor private final class WS2ReviewButton: NSButton {` -L189: `private func begin() -> Bool {` -L192: `override func mouseDown(with event:NSEvent) { guard begin() else { return }; defer { press = nil }; super.mouseDown(with:event) }` -L193: `override func keyDown(with event:NSEvent) {` -L197: `override func accessibilityPerformPress() -> Bool {` -L200: `@objc private func fire() { guard let press else { return }; freshAction?(press.0,press.1) }` -L202: `@MainActor final class WS2CommandReviewView: NSView, WS2LeaseContent {` -L231: `func enableConfirmation(){approval.isEnabled=inputIsCurrent()}` -L232: `func revoke(){inputIsCurrent = { false };approval.isEnabled=false;text.string="";confirm=nil;decline=nil}` -L233: `@objc private func refuse(){guard inputIsCurrent() else{return};decline?()}` -L234: `override func cancelOperation(_ sender:Any?){onCancel?()}` -L239: `func account(_ action:WS2AccountAction) throws -> WS2.RequestID {` - -## prototype/App/WS2OwnedCodexSession+Authorization.swift - -add · 18 行 · SHA256 `cd619ed648b81d55565ecf519777681ab4419bd2374eecb1f793c7bf29538266` - - - -## prototype/App/WS2OwnedCodexSession.swift - -modify · 86 行 · SHA256 `b05f1a6d7aeafd72f5e8d5dea6cd8a460737d57cbf319b1c242b01a5f09d2ef8` - -L3: `/// One engine for the real App and the process-backed protocol tests. It owns exactly one` -L4: `/// child channel and one protocol host. The host factory cannot create a second transport.` -L5: `@MainActor final class WS2OwnedCodexSession {` -L57: `func start() throws {` -L62: `func startThread(cwd:String,model:String) throws { try approval.startThread(cwd:cwd,model:model);scheduleExpiry() }` -L63: `func resumeThread(_ id:String) throws { try approval.resumeThread(id);scheduleExpiry() }` -L64: `func startTurn(text:String,model:String,effort:String) throws { try approval.startTurn(text:text,model:model,effort:effort);scheduleExpiry() }` -L65: `func steer(text:String,expectedTurn:String) throws { try approval.steer(text:text,expectedTurn:expectedTurn);scheduleExpiry() }` -L66: `func interrupt() throws { try approval.interruptTurn();scheduleExpiry() }` -L67: `func account(_ action:WS2AccountAction) throws -> WS2.RequestID {` -L70: `func clearDiagnostics() { channel.clearDiagnostics() }` -L71: `private func scheduleExpiry() {` -L80: `func stop() {` - -## prototype/App/WS2OwnedLaunchController.swift - -add · 309 行 · SHA256 `631d6e462822fd75a3becc290c7b84492c7baacdc4b8adcbbd418dd125de3c07` - -L4: `/// AgentSessions remain the authorities for protocol state and backend sessions respectively.` -L5: `@MainActor final class WS2OwnedLaunchController {` -L6: `enum Phase: Equatable { case idle, checkingVersion, connecting, checkingConfig, signedOut, ready, creatingThread, sending, running, interrupting, completed, failed, stopping, stopped }` -L7: `private enum Query { case config, account, login, cancelLogin, logout }` -L8: `private struct Submission { let text:String;let model:String;let effort:String }` -L9: `private struct Association { let project:WS2OwnedScope.Project;let thread:String }` -L58: `@discardableResult func editDraft(_ value:String) -> Bool {` -L61: `@discardableResult func selectProject(_ url:URL) -> Bool {` -L72: `@discardableResult func selectExecutable(_ url:URL) -> Bool {` -L76: `@discardableResult func launch(consent:Bool,diagnostics:Bool=false) -> Bool {` -L92: `private func begin(_ prepared:WS2LocalLaunchProfile,diagnostics:Bool) {` -L118: `private func currentIsValid() -> Bool {` -L123: `private func revalidate() -> Bool {` -L127: `@discardableResult func chooseModel(_ value:String) -> Bool {` -L131: `@discardableResult func chooseEffort(_ value:String) -> Bool {` -L135: `@discardableResult func send(_ draft:String,hasMarkedText:Bool) -> Bool {` -L147: `private func deliverSubmission() throws {` -L153: `@discardableResult func resumeLast() -> Bool {` -L159: `@discardableResult func interrupt() -> Bool {` -L164: `@discardableResult func login() -> Bool {` -L169: `@discardableResult func logout() -> Bool {` -L174: `func cancelLogin() {` -L181: `static func browserLoginURL(_ text:String) -> URL? {` -L187: `private func receive(_ event:CodexWire.Event,connection:UUID) {` -L254: `private func readAccount() throws {` -L258: `private func synchronizeThreadAndTurn() throws {` -L273: `private func emit(_ event:AgentSessions.Event,turn:String?=nil) {` -L277: `private func ended(connection:UUID) {` -L283: `func stop(reason:String="已断开连接",clearPrivate:Bool=false) {` -L301: `func environmentChanged() {` -L305: `private func fail(_ message:String) {` -L308: `private func changed() { onChange?();if !isBusy { onQuiescent?() } }` - -## prototype/App/WS2OwnedSessionView.swift - -add · 143 行 · SHA256 `ca1e124b84fd3f2138ee243eb2f3a0c175a03b9087f7eb1adc882fb727fe4ce8` - -L4: `@MainActor final class WS2OwnedSessionView: NSView, WS2LeaseContent, NSTextViewDelegate {` -L43: `func row(_ views:[NSView]) -> NSStackView { let r=NSStackView(views:views);r.orientation = .horizontal;r.spacing=8;return r }` -L70: `private func configure(_ text:NSTextView,editable:Bool) {` -L77: `func scheduleRender() {` -L84: `func render() {` -L111: `func textDidChange(_ notification:Notification) {` -L115: `private func choose(directory:Bool) {` -L126: `@objc private func pickProject() { choose(directory:true) }` -L127: `@objc private func pickExecutable() { choose(directory:false) }` -L128: `@objc private func consentChanged() { render() }` -L129: `@objc private func start() { guard inputIsCurrent() else { return };_=controller.launch(consent:consent.state == .on,diagnostics:diagnostic.state == .on);render() }` -L130: `@objc private func logIn() { guard inputIsCurrent() else { return };_=controller.login() }` -L131: `@objc private func cancelLogIn() { guard inputIsCurrent() else { return };controller.cancelLogin() }` -L132: `@objc private func logOut() { guard inputIsCurrent() else { return };_=controller.logout() }` -L133: `@objc private func resumeSession() { guard inputIsCurrent() else { return };_=controller.resumeLast() }` -L134: `@objc private func selectModel() { guard inputIsCurrent(),model.indexOfSelectedItem>0 else { return };_=controller.chooseModel(modelIDs[model.indexOfSelectedItem-1]) }` -L135: `@objc private func selectEffort() { guard inputIsCurrent(),effort.indexOfSelectedItem>0 else { return };_=controller.chooseEffort(effortIDs[effort.indexOfSelectedItem-1]) }` -L136: `@objc private func sendDraft() { guard inputIsCurrent() else { return };_=controller.send(draft.string,hasMarkedText:draft.hasMarkedText()) }` -L137: `@objc private func interruptTurn() { guard inputIsCurrent() else { return };_=controller.interrupt() }` -L138: `@objc private func stopSession() { guard inputIsCurrent() else { return };controller.stop() }` -L139: `@objc private func toggleDiagnostics() { guard inputIsCurrent() else { return };displayingDiagnostics.toggle();diagnostics.title=displayingDiagnostics ? "返回回复":"查看诊断";render() }` -L140: `func revoke() { renderTask?.cancel();renderTask=nil;inputIsCurrent={false};draft.inputContext?.discardMarkedText();draft.string="";output.string="";onCancel?() }` -L143: `@MainActor private final class WS2OwnedDocumentView:NSView { override var isFlipped:Bool { true } }` - -## prototype/App/WS2SupplementPane.swift - -modify · 36 行 · SHA256 `eb49bb23eda0c267d0c169dc4ef4040dd462ae3ed71f75aa341e2bfd96c39fcd` - -L3: `@MainActor final class WS2SupplementPane: NSStackView {` - -## prototype/Core/CodexWire.swift - -modify · 271 行 · SHA256 `ed2e3e209bb3ff42c6ba8273b323f2b6f70bdf48daa4cc21f91060d9bfebecf3` - -L3: `indirect enum WireJSON: Codable, Equatable, Sendable {` -L15: `func encode(to encoder: any Encoder) throws {` -L33: `struct CodexWire: Sendable {` -L34: `enum Failure: Error { case oversized, closed, malformed, notReady, unsupported, stale, capacity }` -L35: `enum State: Equatable, Sendable { case fresh, initializing, listingModels, ready, closed }` -L36: `struct Pending: Sendable { let method: String; let deadline: WS2.Instant }` -L37: `enum Event: Equatable, Sendable {` -L42: `static let maximumFrame = 1_048_576 // Recommendation: bounded metadata stream; not a measured protocol maximum.` -L59: `mutating func drain() -> [Data] { defer { outbound.removeAll(keepingCapacity:true) }; return outbound }` -L60: `private mutating func send(_ value: WireJSON) throws {` -L66: `private mutating func request(_ method: String, _ params: [String:WireJSON]?, now: WS2.Instant) throws -> WS2.RequestID {` -L74: `mutating func initialize(now: WS2.Instant) throws {` -L79: `mutating func startThread(cwd: String, model: String, now: WS2.Instant) throws {` -L87: `mutating func resumeThread(id: String, now: WS2.Instant) throws {` -L95: `mutating func startTurn(text: String, model: String, effort: String, now: WS2.Instant) throws {` -L104: `mutating func steer(text: String, expectedTurnID: String, now: WS2.Instant) throws {` -L110: `mutating func interrupt(now: WS2.Instant) throws {` -L115: `mutating func readConfig(cwd:String,now:WS2.Instant) throws -> WS2.RequestID {` -L119: `mutating func readAccount(now: WS2.Instant) throws -> WS2.RequestID {` -L123: `mutating func beginBrowserLogin(now: WS2.Instant) throws -> WS2.RequestID {` -L127: `mutating func cancelLogin(id: String, now: WS2.Instant) throws -> WS2.RequestID {` -L131: `mutating func logout(now: WS2.Instant) throws -> WS2.RequestID {` -L135: `mutating func ingest(_ chunk: Data, now: WS2.Instant) throws -> [Event] {` -L156: `private mutating func receive(_ v: WireJSON, now: WS2.Instant) throws -> [Event] {` -L237: `mutating func denyApproval(_ id: WS2.RequestID) throws {` -L246: `enum ApprovalWireDecision { case acceptOnce, decline }` -L247: `mutating func enqueueApprovalResponse(_ id: WS2.RequestID, expectedMethod: String,` -L260: `mutating func tick(now: WS2.Instant) -> [Event] {` -L266: `mutating func close() {` - -## prototype/Core/WS2OwnedProtocolHost.swift - -add · 85 行 · SHA256 `11defe55b4723986cdcd10cea154dfcc10f205dbb8d45eb1265c9dc84fe5b765` - -L3: `enum WS2AccountAction { case read, login, cancel(String), logout, config(String) }` -L6: `@MainActor protocol WS2OwnedProtocolHost: AnyObject {` -L11: `func beginProtocol() throws` -L12: `func startThread(cwd:String,model:String) throws` -L13: `func resumeThread(_ id:String) throws` -L14: `func startTurn(text:String,model:String,effort:String) throws` -L15: `func steer(text:String,expectedTurn:String) throws` -L16: `func interruptTurn() throws` -L17: `func account(_ action:WS2AccountAction) throws -> WS2.RequestID` -L18: `func receive(_ data:Data)` -L19: `func tick()` -L20: `func invalidate()` -L25: `@MainActor final class WS2ReadOnlyProtocolHost: WS2OwnedProtocolHost {` -L39: `private func check() throws { guard !closed else { throw CodexWire.Failure.closed } }` -L40: `private func flush() {` -L44: `func beginProtocol() throws { try check();try wire.initialize(now:clock.now());flush() }` -L45: `func startThread(cwd:String,model:String) throws { try check();try wire.startThread(cwd:cwd,model:model,now:clock.now());flush() }` -L46: `func resumeThread(_ id:String) throws { try check();try wire.resumeThread(id:id,now:clock.now());flush() }` -L47: `func startTurn(text:String,model:String,effort:String) throws { try check();try wire.startTurn(text:text,model:model,effort:effort,now:clock.now());flush() }` -L48: `func steer(text:String,expectedTurn:String) throws { try check();try wire.steer(text:text,expectedTurnID:expectedTurn,now:clock.now());flush() }` -L49: `func interruptTurn() throws { try check();try wire.interrupt(now:clock.now());flush() }` -L50: `func account(_ action:WS2AccountAction) throws -> WS2.RequestID {` -L61: `func receive(_ data:Data) {` -L79: `func tick() {` -L84: `func invalidate() { guard !closed else { return };closed=true;wire.close();closeTransport() }` - -## prototype/Core/WS2QuitBarrier.swift - -add · 20 行 · SHA256 `2a80a0409cee77c4a117844ac1192084ab922a1073b405d26909a6fd8a39754e` - -L5: `struct WS2QuitBarrier: Sendable {` -L6: `struct Token:Hashable,Sendable { let value:UUID }` -L9: `mutating func begin(updaterReady:Bool,childrenReady:Bool) -> Token? {` -L13: `mutating func update(_ expected:Token,updaterReply:Bool?=nil,childrenReady:Bool=false,failed:Bool=false) -> Bool? {` - -## prototype/Core/WS2StrictJSON.swift - -add · 99 行 · SHA256 `3c1edb48065c85d7b0fbed12ac8299df4d1931abecfe53019f9ea9cabdc9bb0d` - -L5: `struct WS2StrictJSON {` -L6: `enum Failure: Error, Equatable { case syntax, duplicateKey, depth, nodes, size }` -L7: `static func validate(_ data: Data, maximumBytes: Int = 1_048_576,` -L15: `private struct Parser {` -L19: `mutating func whitespace() { while let c=current, [9,10,13,32].contains(c) { index += 1 } }` -L20: `mutating func expect(_ c:UInt8) throws { guard current == c else { throw Failure.syntax }; index += 1 }` -L21: `mutating func node() throws { guard remaining > 0 else { throw Failure.nodes }; remaining -= 1 }` -L22: `mutating func value(_ depth:Int) throws {` -L53: `mutating func literal(_ text:[UInt8]) throws { for byte in text { try expect(byte) } }` -L54: `func digit(_ c:UInt8?) -> Bool { c.map { (48...57).contains($0) } ?? false }` -L55: `mutating func number() throws {` -L65: `mutating func hex() throws -> UInt16 {` -L74: `mutating func string() throws -> String {` - -## prototype/Native/WS2Child.c - -add · 167 行 · SHA256 `134368aa12dfbbb9ec5a6f60a121c44b52b46bb303d55d73b18d78326d875f47` - -L16: `struct WS2Child {` -L23: `struct timespec value;` -L46: `int ws2_child_spawn(const char *executable, char *const argv[], char *const envp[],` -L140: `int ws2_child_poll(WS2Child *c, WS2ChildState *state) {` -L156: `int ws2_child_stop(WS2Child *c) {` -L161: `int ws2_child_destroy(WS2Child *c) {` -L167: `pid_t ws2_child_pid(const WS2Child *c) { return c ? c->pid : -1; }` - -## prototype/Native/WS2Child.h - -add · 27 行 · SHA256 `95380850f4cbd24d868fc785978cda939307f3962640b091200068a17ea1a9da` - -L7: `typedef struct WS2Child WS2Child;` -L17: `int ws2_child_spawn(const char *executable, char *const argv[], char *const envp[],` -L21: `int ws2_child_poll(WS2Child *child, WS2ChildState *state);` -L22: `int ws2_child_stop(WS2Child *child);` -L25: `int ws2_child_destroy(WS2Child *child);` -L26: `pid_t ws2_child_pid(const WS2Child *child);` - -## prototype/Native/module.modulemap - -add · 4 行 · SHA256 `9cac42ba9402e4324e393d07c155c9375e20846e3bca84117460fdd0e6a0db8e` - - - -## prototype/Support/WS2DuplexProcess.swift - -modify · 248 行 · SHA256 `1efe08a7d6987fdac80d87f345f1d2ce212e6a5dddac3a71e086e247d8ab579a` - -L11: `@MainActor final class WS2DuplexProcess {` -L12: `enum Failure: Error { case invalid, io(Int32), notRunning }` -L13: `enum End: Equatable { case localStop, eof, processExit, io(Int32), framing, timeout, revoked }` -L14: `struct Termination: Equatable, Sendable { let status: Int32; let wasSignalled: Bool }` -L57: `func start() throws {` -L96: `private func pollChild() {` -L120: `@discardableResult func admit(_ lines: [Data], connection: UUID, deadline: Double,` -L131: `@discardableResult func admitWireFrames(_ frames: [Data], connection: UUID, deadline: Double,` -L143: `private func armWrite() { if !writeArmed, !stopped { writeArmed = true; writer?.resume() } }` -L144: `private func disarmWrite() { if writeArmed { writeArmed = false; writer?.suspend() } }` -L145: `private func scheduleDeadline() {` -L157: `private func writeReady() {` -L183: `private func readReady(checkChild: Bool = true) {` -L205: `private func readDiagnosticReady() {` -L220: `func clearDiagnostics() { diagnostics?.clear() }` -L221: `private static func writeWithoutSIGPIPE(_ fd: Int32, _ bytes: Data) -> Int {` -L236: `func stop(_ reason: End = .localStop) {` -L246: `// The reaper timer survives protocol closure. A stopped pipe is not reaping evidence.` - -## prototype/Support/WS2LocalLaunchProfile.swift - -add · 131 行 · SHA256 `34a52b15e0a183c0e0f8d45d999ab15e0f8d1b1998b7fa467fe15a4b1c843a27` - -L10: `struct WS2LocalLaunchProfile: Sendable {` -L11: `enum Failure: Error { case unsafePath, configurationChanged, externalConfiguration, executableChanged }` -L12: `struct FileIdentity: Equatable, Sendable {` -L38: `static func prepare(projectURL:URL,projectID:UUID,executableURL:URL,root:URL) throws -> Self {` -L73: `func revalidate() throws {` -L84: `private static func identify(_ url:URL) throws -> FileIdentity {` -L91: `private static func privateDirectory(_ url:URL) throws {` -L102: `private static func rejectExternalConfiguration(_ project:WS2OwnedScope.Directory) throws {` -L118: `static func admitsEffectiveConfig(_ response:WireJSON) -> Bool {` - -## prototype/Support/WS2VersionProbe.swift - -add · 48 行 · SHA256 `8b77c9a8ce4ec1d66f5106736783ad5581572e45d761ebb7ec92c68756d7bd8f` - -L4: `@MainActor final class WS2VersionProbe {` -L35: `func start() throws {` -L43: `func cancel() { invalid=true;channel.stop();finish(false) }` -L44: `private func finish(_ ok:Bool) {` - -## prototype/WindowShade.swift - -modify · 914 行 · SHA256 `4cbf3342bc01d1df701c23151617ad5df76bfe9a2b27c14f5149828c1242e228` - -L79: `func framesAlmostEqual(_ a: NSRect, _ b: NSRect, tolerance: CGFloat = 0.5) -> Bool {` -L86: `func cgWindowID(for window: NSWindow) -> CGWindowID? {` -L94: `final class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {` -L96: `final class PendingTitlebarTripleClick {` -L110: `struct PendingSpaceReturn {` -L118: `struct ReconcileAXTarget {` -L125: `struct ReconcileAXSnapshot {` -L301: `func applicationDidFinishLaunching(_ note: Notification) {` -L415: `func applicationShouldTerminate(_ sender: NSApplication) -> NSApplication.TerminateReply {` -L420: `@objc func systemAppearanceOptionsChanged(_ note: Notification) {` -L451: `func installStandardMainMenu() {` -L461: `private func migrateDistractingDefaultSounds() {` -L490: `func refreshPinnedPreviewTarget(reason: String) {` -L497: `private func setupPinnedPreviewFocusTracking() {` -L510: `private func scheduleTitlebarPrefetch() {` -L531: `private func schedulePinnedPreviewTargetRefresh() {` -L551: `func focusSizedFrame(pos: CGPoint, size: CGSize,` -L590: `func configureShadedAccessibility(for overlay: NSWindow, id: CGWindowID,` -L616: `func currentShadedOverlayID() -> CGWindowID? {` -L634: `@objc func finishOnboarding() {` -L638: `@objc func dismissOnboarding() {` -L649: `private func runTool(_ path: String, _ args: [String]) -> Int32? {` -L666: `private func readTool(_ path: String, _ args: [String]) -> String? {` -L682: `private func runDefaults(_ args: [String]) { runTool("/usr/bin/defaults", args) }` -L683: `private func readDefaults(_ args: [String]) -> String? { readTool("/usr/bin/defaults", args) }` -L684: `private func killDock() { runTool("/usr/bin/killall", ["Dock"]) } // 让 Dock 重读 mineffect` -L686: `private func writeDockMinimizeEffect(_ value: String, reason: String) -> Bool {` -L699: `private func persistDockMinimizeEffectSession(original: String?) {` -L710: `private func clearDockMinimizeEffectSession() {` -L717: `private func restoreDockMinimizeEffect(original: String?) {` -L725: `private func recoverStaleDockMinimizeEffectSessionIfNeeded() {` -L736: `private func enableScaleMinimizeEffectForSession() {` -L764: `private func restoreDockMinimizeEffect() {` -L781: `func currentOperationState(_ id: CGWindowID) -> WindowShadeState {` -L787: `func transitionOperationState(id: CGWindowID, to next: WindowShadeState,` -L800: `func applicationWillTerminate(_ note: Notification) {` -L827: `func ensureAccessibility() -> Bool {` -L834: `@objc func toggleAction() { toggle() }` -L845: `@objc func focusCurrentAppAction() {` -L859: `@objc func unshadeFromMenu(_ sender: NSMenuItem) {` -L864: `@objc func quit() {` -L877: `func setupEventTapWhenTrusted() {` -L893: `func setupEventTap() -> Bool {` - -## prototype/build.sh - -modify · 358 行 · SHA256 `e6db6c9f3499fcdcb4f28c065199f4f87aa64aeb0c5a46b098164dc761ad588c` diff --git a/tests/archive/part7/sources/completion.json b/tests/archive/part7/sources/completion.json deleted file mode 100644 index f7e5b4f5..00000000 --- a/tests/archive/part7/sources/completion.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "local_query": { - "source": "candidate-wired", - "linux_synthetic_flow": "pass", - "mac_sdk": "not-run", - "mac_ui": "not-run", - "real_cli": "not-run", - "privacy_energy": "unverified", - "release": "blocked" - }, - "elevated_approval": "not-enabled-by-new-entry", - "original_goals_retained": [ - "windows", - "live-activities", - "energy", - "remote-receiver", - "conductor-input", - "identity-lock", - "privacy-release" - ], - "film": "historical-animatic-only", - "time_estimate": null -} diff --git a/tests/archive/part7/sources/privacy-signals.json b/tests/archive/part7/sources/privacy-signals.json deleted file mode 100644 index e8eb383d..00000000 --- a/tests/archive/part7/sources/privacy-signals.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "version": 1, - "scope": "part7 delta, not a replacement for the previous registry", - "actual_session_data": "synthetic fixtures only", - "signals": [ - { - "id": "P7-project", - "source": "WS2ProjectDirectory / local chooser", - "purpose": "Bind local project identity and prevent stale context", - "trigger": "local selection/start/write checks", - "retention": "in-memory identifiers and path, up to 64 associations", - "destination": "local UI; selected cwd sent to owned CLI" - }, - { - "id": "P7-executable", - "source": "local executable metadata and --version stdout", - "purpose": "Version admission, not executable authenticity proof", - "trigger": "explicit local consent and launch", - "retention": "metadata in memory; version output <=8192 bytes then cleared", - "destination": "local only" - }, - { - "id": "P7-config", - "source": "own config.toml and effective config/read", - "purpose": "Conservative profile admission", - "trigger": "explicit launch and work revalidation", - "retention": "own disk config; effective projection in memory", - "destination": "own CLI and local controller" - }, - { - "id": "P7-account", - "source": "account/read and matching login notifications", - "purpose": "Know whether this connection may submit", - "trigger": "explicit launch/login/cancel/logout", - "retention": "current connection boolean and bounded login ID; no email display", - "destination": "browser only on explicit HTTPS-allowlisted login response" - }, - { - "id": "P7-draft", - "source": "local NSTextView text", - "purpose": "User-explicit model request", - "trigger": "editing; transmission only by send button", - "retention": "bounded memory 65536 bytes; clear on lock/disable; CLI may persist its own history", - "destination": "selected CLI; model-provider service during actual use" - }, - { - "id": "P7-output", - "source": "owned child stdout", - "purpose": "Display actual current reply and protocol state", - "trigger": "explicitly launched session", - "retention": "reply tail <=65536 bytes in memory; clear on lock/disable", - "destination": "local plain-text view; no automatic export" - }, - { - "id": "P7-stderr", - "source": "owned child stderr", - "purpose": "User-requested diagnosis", - "trigger": "per-launch opt-in only", - "retention": "<=65536-byte memory tail; no cryptographic erase promise", - "destination": "local display only, no automatic model submission" - }, - { - "id": "P7-credentials", - "source": "CLI file credential storage", - "purpose": "Independent login profile", - "trigger": "actual future user login, not this test run", - "retention": "own CODEX_HOME/auth.json and CLI-owned history, persists across view closure", - "destination": "managed by actual CLI; this package never reads token values" - }, - { - "id": "P7-process", - "source": "waitid/waitpid on own spawned child", - "purpose": "Close and reap own process lifecycle", - "trigger": "only while user-launched child exists", - "retention": "ephemeral native supervision state", - "destination": "local only" - } - ], - "not_proven": [ - "live CLI configuration enforcement", - "actual macOS permissions and ACL", - "actual account data lifecycle", - "energy comparison" - ] -} diff --git a/tests/archive/part7/tests/CoreTests.swift b/tests/archive/part7/tests/CoreTests.swift deleted file mode 100644 index 5f708fec..00000000 --- a/tests/archive/part7/tests/CoreTests.swift +++ /dev/null @@ -1,78 +0,0 @@ -import Foundation - -@main struct CoreTests { - @MainActor static func main() throws { - let t=TestLog() - func valid(_ text:String)->Bool { (try? WS2StrictJSON.validate(Data(text.utf8))) != nil } - let cases:[(String,String,Bool)]=[ - ("JSON01 empty object","{}",true),("JSON02 nested","{\"id\":1,\"a\":{\"id\":2}}",true), - ("JSON03 duplicate","{\"id\":1,\"id\":2}",false),("JSON04 escaped duplicate","{\"id\":1,\"\\u0069d\":2}",false), - ("JSON05 nested duplicate","{\"x\":{\"a\":1,\"a\":2}}",false),("JSON06 surrogate pair","{\"x\":\"\\ud83d\\ude00\"}",true), - ("JSON07 lone high surrogate","[\"\\ud800\"]",false),("JSON08 lone low surrogate","[\"\\udc00\"]",false), - ("JSON09 leading zero","[01]",false),("JSON10 fraction exponent","[-1.25e+2,0]",true), - ("JSON11 trailing data","{}{}",false),("JSON12 trailing comma","{\"a\":1,}",false), - ("JSON13 invalid escape","\"\\x41\"",false),("JSON14 raw control","\"a\nb\"",false), - ("JSON15 unicode","[\"中文\",true,false,null]",true),("JSON16 incomplete exponent","1e+",false), - ("JSON17 deep",""+String(repeating:"[",count:34)+"0"+String(repeating:"]",count:34),false), - ("JSON18 whitespace"," \t{\"a\":[]}\r\n",true)] - for (name,value,expected) in cases { t.begin(name);t.check(valid(value)==expected,"grammar result");t.end() } - t.begin("JSON19 size and node budgets") - t.check((try? WS2StrictJSON.validate(Data("[]".utf8),maximumBytes:1))==nil,"size") - t.check((try? WS2StrictJSON.validate(Data("[1,2]".utf8),maximumNodes:2))==nil,"nodes") - t.check((try? WS2StrictJSON.validate(Data([34,0xFF,34])))==nil,"UTF8");t.end() - t.begin("URL01 browser scheme and exact host") - for value in ["file:///tmp/a","https://auth.openai.com.evil/","https://evil@auth.openai.com/a","http://auth.openai.com/","https://chatgpt.com:444/a","https://chatgpt.com/a#fragment"] { - t.check(WS2OwnedLaunchController.browserLoginURL(value)==nil,"reject \(value)") - } - t.check(WS2OwnedLaunchController.browserLoginURL("https://auth.openai.com/authorize?state=x") != nil,"auth host") - t.check(WS2OwnedLaunchController.browserLoginURL("https://chatgpt.com/a") != nil,"chatgpt host");t.end() - t.begin("WIRE01 duplicate keys close before RPC interpretation") - var wire=CodexWire();try wire.initialize(now:.zero);_=wire.drain() - t.check((try? wire.ingest(Data("{\"id\":1,\"\\u0069d\":2,\"result\":{}}\n".utf8),now:.zero))==nil,"wire rejects duplicate") - t.check(wire.state == .closed,"closed");t.end() - t.begin("QUIT01 both owners must settle") - var quit=WS2QuitBarrier();let token=quit.begin(updaterReady:false,childrenReady:false)! - t.check(quit.update(token,childrenReady:true)==nil,"child alone cannot release updater") - t.check(quit.update(token,updaterReply:true)==true,"both ready") - t.check(quit.update(token,updaterReply:true)==nil,"one reply only");t.end() - t.begin("QUIT02 updater alone cannot release child") - let next=quit.begin(updaterReady:true,childrenReady:false)! - t.check(quit.update(token,childrenReady:true)==nil,"stale generation") - t.check(quit.update(next,failed:true)==false,"timeout cancels instead of false cleanup") - t.check(quit.update(next,childrenReady:true)==nil,"late cleanup after cancel ignored");t.end() - t.begin("WIRE02 ambiguous result/error envelope") - var ambiguous=CodexWire();try ambiguous.initialize(now:.zero);_=ambiguous.drain() - t.check((try? ambiguous.ingest(Data("{\"id\":1,\"result\":{},\"error\":{}}\n".utf8),now:.zero))==nil,"not two meanings") - t.check(ambiguous.state == .closed,"closed");t.end() - t.begin("QUIT03 veto and double begin") - let veto=quit.begin(updaterReady:false,childrenReady:true)! - t.check(quit.begin(updaterReady:true,childrenReady:true)==nil,"single owner") - t.check(quit.update(veto,updaterReply:false)==false,"updater veto retained") - t.check(quit.update(veto,updaterReply:true)==nil,"late reply cannot reverse veto");t.end() - t.begin("PROFILE01 creates private state without overwriting changes") - let fm=FileManager.default,root=fm.temporaryDirectory.resolvingSymlinksInPath().appendingPathComponent("ws2-profile-"+UUID().uuidString) - try fm.createDirectory(at:root,withIntermediateDirectories:true,attributes:[.posixPermissions:0o700]) - defer { try? fm.removeItem(at:root) } - let project=root.appendingPathComponent("project"),state=root.appendingPathComponent("state"),exe=root.appendingPathComponent("fixture") - try fm.createDirectory(at:project,withIntermediateDirectories:true,attributes:[.posixPermissions:0o700]) - try Data("test fixture only".utf8).write(to:exe);try fm.setAttributes([.posixPermissions:0o700],ofItemAtPath:exe.path) - let profile=try WS2LocalLaunchProfile.prepare(projectURL:project,projectID:UUID(),executableURL:exe,root:state) - t.check(profile.environment["HOME"]==state.appendingPathComponent("home").path,"separate home") - t.check(profile.environment["CODEX_HOME"]==state.appendingPathComponent("codex").path,"separate credentials root") - t.check(profile.environment["OPENAI_API_KEY"]==nil,"does not copy ambient keys") - let config=state.appendingPathComponent("codex/config.toml") - try Data("external edit".utf8).write(to:config) - t.check((try? profile.revalidate())==nil,"external change rejected") - t.check((try? WS2LocalLaunchProfile.prepare(projectURL:project,projectID:UUID(),executableURL:exe,root:state))==nil,"no overwrite on next launch") - let unchanged=try String(contentsOf:config,encoding:.utf8);t.check(unchanged=="external edit","original edit preserved");t.end() - t.begin("PROFILE02 project configuration and linked state reject") - let local=project.appendingPathComponent(".codex") - try fm.createSymbolicLink(at:local,withDestinationURL:root.appendingPathComponent("missing")) - t.check((try? WS2LocalLaunchProfile.prepare(projectURL:project,projectID:UUID(),executableURL:exe,root:root.appendingPathComponent("state2")))==nil,"dangling project config rejected") - try fm.removeItem(at:local) - let linked=root.appendingPathComponent("linked");try fm.createSymbolicLink(at:linked,withDestinationURL:state) - t.check((try? WS2LocalLaunchProfile.prepare(projectURL:project,projectID:UUID(),executableURL:exe,root:linked))==nil,"root symlink rejected") - t.check(!WS2LocalLaunchProfile.admitsEffectiveConfig(.object([:])),"missing projection not treated as defaults");t.end() - try t.save(URL(fileURLWithPath:CommandLine.arguments[1])) - } -} diff --git a/tests/archive/part7/tests/FlowTests.swift b/tests/archive/part7/tests/FlowTests.swift deleted file mode 100644 index 0d86c1c5..00000000 --- a/tests/archive/part7/tests/FlowTests.swift +++ /dev/null @@ -1,184 +0,0 @@ -import Foundation -#if canImport(Darwin) -import Darwin -#else -import Glibc -#endif - -@main struct FlowTests { - @MainActor static func main() async throws { - let t=TestLog(),fixture=URL(fileURLWithPath:CommandLine.arguments[1]) - let root=FileManager.default.temporaryDirectory.resolvingSymlinksInPath().appendingPathComponent("ws2-part7-flow-"+UUID().uuidString,isDirectory:true) - try FileManager.default.createDirectory(at:root,withIntermediateDirectories:true,attributes:[.posixPermissions:0o700]) - defer { try? FileManager.default.removeItem(at:root) } - var controllers:[WS2OwnedLaunchController]=[] - func make(_ mode:String) throws -> (WS2OwnedLaunchController,URL,URL) { - let base=root.appendingPathComponent(mode+"-"+UUID().uuidString,isDirectory:true) - let project=base.appendingPathComponent("project",isDirectory:true) - try FileManager.default.createDirectory(at:project,withIntermediateDirectories:true,attributes:[.posixPermissions:0o700]) - let exe=base.appendingPathComponent("fake-codex-"+mode+".py") - try Data(contentsOf:fixture).write(to:exe) - try FileManager.default.setAttributes([.posixPermissions:0o700],ofItemAtPath:exe.path) - let c=WS2OwnedLaunchController(profileRoot:base.appendingPathComponent("state",isDirectory:true),mayUse:{true}) - controllers.append(c) - t.check(c.selectProject(project),"select real temporary directory") - t.check(c.selectExecutable(exe),"select fixture executable") - return (c,project,exe) - } - func start(_ c:WS2OwnedLaunchController,diagnostics:Bool=false) async { - t.check(c.launch(consent:true,diagnostics:diagnostics),"launch accepted") - let ready=await until({c.phase == .ready || c.phase == .signedOut || c.phase == .failed || c.phase == .stopped}) - t.check(ready,"initial handshake terminates") - } - func shutdown(_ c:WS2OwnedLaunchController) async { - c.stop();let ended=await until({!c.isBusy});t.check(ended,"native reaping finished") - } - t.begin("FLOW01 local launch and actual stream completion") - let (c,_,exe)=try make("normal") - t.check(!c.launch(consent:false),"no consent no process") - t.check(c.store.visibleSessions.isEmpty,"no fake initial session") - await start(c) - t.check(c.phase == .ready,"config and account confirmed") - t.check(c.models.keys.sorted()==["fixture-a"],"actual catalogue") - t.check(c.store.visibleSessions.isEmpty,"still no backend thread") - t.check(!c.chooseModel("invented-model"),"no invented model") - t.check(c.chooseModel("fixture-a"),"select real model") - t.check(!c.send("你好",hasMarkedText:true),"IME composition never submits") - t.check(c.send("你好",hasMarkedText:false),"one explicit submission") - t.check(!c.send("重复",hasMarkedText:false),"cannot duplicate while pending") - let complete=await until({c.phase == .completed});t.check(complete,"matched final notification") - t.check(c.text.contains("真实管道回复"),"actual stdout connected to view projection") - t.check(!c.text.contains("WRONG-TARGET"),"foreign thread delta ignored") - t.check(c.store.visibleSessions.first?.status == .completed,"existing store updated") - let originalID=c.session!.connectionID - await shutdown(c) - t.check(c.observedReaps==1,"reap is separate fact") - let messages=try String(contentsOf:exe.deletingPathExtension().appendingPathExtension("messages.ndjson"),encoding:.utf8) - t.check(messages.contains("config/read") && messages.contains("account/read") && messages.contains("thread/start") && messages.contains("turn/start"),"all real pipe boundaries visited") - t.end() - t.begin("FLOW02 resume only the locally associated project") - await start(c);t.check(c.session?.connectionID != originalID,"fresh connection") - t.check(c.chooseModel("fixture-a"),"real model on new connection") - t.check(c.canResume,"matching local thread association") - t.check(c.resumeLast(),"explicit resume") - let resumed=await until({c.phase == .ready && c.store.visibleSessions.first?.status == .idle}) - t.check(resumed,"resume yields actual owned thread") - await shutdown(c);t.end() - t.begin("FLOW03 different project cannot reuse old thread") - let other=root.appendingPathComponent("other",isDirectory:true);try FileManager.default.createDirectory(at:other,withIntermediateDirectories:true) - t.check(c.selectProject(other),"select different real project");await start(c) - t.check(c.chooseModel("fixture-a"),"select model");t.check(!c.canResume,"cross-project resume denied") - await shutdown(c);t.end() - t.begin("FLOW04 actual login response and exact login ID") - let (login,_,_)=try make("login");var opened:[URL]=[];login.onBrowserURL={opened.append($0)} - await start(login);t.check(login.phase == .signedOut,"signed out fact") - t.check(login.login(),"explicit login action") - let authenticated=await until({login.phase == .ready});t.check(authenticated,"login completed then account/read") - t.check(opened.count==1 && opened[0].host=="auth.openai.com","one bounded browser handoff") - t.check(login.logout(),"logout request") - let loggedOut=await until({!login.isBusy});t.check(loggedOut,"logout closes and reaps");t.end() - t.begin("FLOW05 interrupt RPC is not final completion") - let (hold,_,_)=try make("hold");await start(hold);t.check(hold.chooseModel("fixture-a"),"model") - t.check(hold.send("停在这里",hasMarkedText:false),"send") - let running=await until({hold.phase == .running});t.check(running,"turn observed") - t.check(hold.interrupt(),"interrupt request") - try? await Task.sleep(nanoseconds:50_000_000) - t.check(hold.phase == .interrupting,"RPC response alone cannot complete") - let interrupted=await until({hold.status=="助手已停止"});t.check(interrupted,"matched interrupted final event") - t.check(hold.store.visibleSessions.first?.summary=="已停止","not false success") - await shutdown(hold);t.end() - t.begin("FLOW06 elevation always declined by local entry") - let (approval,_,approvalExe)=try make("approval");await start(approval);_=approval.chooseModel("fixture-a") - t.check(approval.send("查询",hasMarkedText:false),"send") - let done=await until({approval.phase == .completed});t.check(done,"backend received decline") - t.check(approval.notice.contains("已拒绝"),"visible decline") - await shutdown(approval) - let approvalLog=try String(contentsOf:approvalExe.deletingPathExtension().appendingPathExtension("messages.ndjson"),encoding:.utf8) - t.check(approvalLog.contains("decline") && !approvalLog.contains("\"accept\""),"no allow serialization in local profile") - t.end() - t.begin("FLOW07 failed turn is not successful completion") - let (failed,_,_)=try make("failed");await start(failed);_=failed.chooseModel("fixture-a");_=failed.send("失败测试",hasMarkedText:false) - let failure=await until({failed.phase == .failed});t.check(failure,"failed final event") - t.check(failed.store.visibleSessions.first?.status == .failed,"store failure") - await shutdown(failed);t.end() - for (name,mode) in [("FLOW08 mismatched version","version"),("FLOW09 effective config mismatch","config"),("FLOW10 duplicate raw JSON","duplicate")] { - t.begin(name);let (bad,_,badExe)=try make(mode);await start(bad) - t.check(bad.phase != .ready && bad.phase != .signedOut,"not admitted") - await shutdown(bad) - let path=badExe.deletingPathExtension().appendingPathExtension("messages.ndjson") - let log=(try? String(contentsOf:path,encoding:.utf8)) ?? "" - t.check(!log.contains("thread/start") && !log.contains("turn/start"),"no work request on failed admission");t.end() - } - t.begin("FLOW11 reject arbitrary auth URL") - let (url,_,_)=try make("url");var browserCount=0;url.onBrowserURL={_ in browserCount += 1} - await start(url);t.check(url.login(),"login attempt") - let endedURL=await until({!url.isBusy});t.check(endedURL,"bad auth response closes") - t.check(browserCount==0,"never opened file URL");t.end() - t.begin("FLOW12 unrelated login completion cannot authenticate") - let (wrong,_,_)=try make("login-wrong-id");await start(wrong);_=wrong.login() - try? await Task.sleep(nanoseconds:120_000_000) - t.check(wrong.phase == .signedOut,"wrong login ID ignored") - wrong.cancelLogin();await shutdown(wrong);t.end() - t.begin("FLOW13 project replacement invalidates submission") - let (directory,project,_)=try make("directory");await start(directory);_=directory.chooseModel("fixture-a") - let saved=project.deletingLastPathComponent().appendingPathComponent("old-project") - try FileManager.default.moveItem(at:project,to:saved) - try FileManager.default.createDirectory(at:project,withIntermediateDirectories:false) - t.check(!directory.send("不要写入新目录",hasMarkedText:false),"directory identity changed") - await shutdown(directory);t.end() - t.begin("FLOW14 actual lock invalidation and no automatic restart") - let base=root.appendingPathComponent("lock",isDirectory:true),projectLock=base.appendingPathComponent("project",isDirectory:true) - try FileManager.default.createDirectory(at:projectLock,withIntermediateDirectories:true) - let lockExe=base.appendingPathComponent("fake-codex-lock.py");try Data(contentsOf:fixture).write(to:lockExe) - try FileManager.default.setAttributes([.posixPermissions:0o700],ofItemAtPath:lockExe.path) - var unlocked=true - let lock=WS2OwnedLaunchController(profileRoot:base.appendingPathComponent("state"),mayUse:{unlocked});controllers.append(lock) - _=lock.selectProject(projectLock);_=lock.selectExecutable(lockExe);await start(lock);_=lock.chooseModel("fixture-a") - _=lock.editDraft("仅内存私密草稿");_=lock.send("锁定测试",hasMarkedText:false) - let lockRunning=await until({lock.phase == .running});t.check(lockRunning,"running before lock") - unlocked=false;lock.environmentChanged() - t.check(lock.text.isEmpty && lock.draft.isEmpty && lock.store.visibleSessions.isEmpty,"private views cleared") - let lockEnded=await until({!lock.isBusy});t.check(lockEnded,"reaped after revoke") - unlocked=true;lock.environmentChanged();t.check(lock.session==nil,"unlock does not resume") - t.end() - t.begin("FLOW15 diagnostics are opt-in and clearable") - let (diagnostics,_,_)=try make("diagnostics");await start(diagnostics,diagnostics:true);_=diagnostics.chooseModel("fixture-a") - _=diagnostics.send("诊断",hasMarkedText:false) - let sawDiagnostics=await until({diagnostics.diagnostics.contains("fixture stderr")});t.check(sawDiagnostics,"real stderr retained only when requested") - await shutdown(diagnostics);diagnostics.stop(clearPrivate:true) - t.check(diagnostics.diagnostics.isEmpty,"privacy clear after stop") - t.end() - t.begin("FLOW16 version-probe cancellation still awaits reaping") - let (cancelProbe,_,_)=try make("version-hang") - t.check(cancelProbe.launch(consent:true),"version probe starts") - try? await Task.sleep(nanoseconds:100_000_000) - cancelProbe.stop(clearPrivate:true) - t.check(cancelProbe.isBusy,"closing probe cannot be replaced before reap") - t.check(!cancelProbe.launch(consent:true),"second probe cannot overlap cleanup") - let probeClosed=await until({!cancelProbe.isBusy});t.check(probeClosed,"cancelled probe finally reaped") - t.end() - t.begin("FLOW17 version timeout does not invent a reap receipt") - let (timeoutProbe,_,_)=try make("version-hang") - t.check(timeoutProbe.launch(consent:true),"probe starts") - let probeFailed=await until({!timeoutProbe.isBusy}) - t.check(probeFailed && timeoutProbe.phase == .failed,"timeout and cleanup precede final failure") - t.check(timeoutProbe.session==nil,"never starts app server after bad version probe");t.end() - t.begin("FLOW18 login cancellation requires fresh account verification") - let (cancelLogin,_,_)=try make("login-cancel");await start(cancelLogin) - t.check(cancelLogin.login(),"explicit login") - try? await Task.sleep(nanoseconds:100_000_000) - cancelLogin.cancelLogin() - t.check(!cancelLogin.canLogin,"no overlapping replacement login") - let cancelled=await until({!cancelLogin.isBusy});t.check(cancelled,"cancel closes and reaps before reuse") - t.check(!cancelLogin.canSend,"cancel callback is not authentication");t.end() - var wire=Data() - if let items=FileManager.default.enumerator(at:root,includingPropertiesForKeys:nil) { - // Swift 6:异步上下文里不能直接迭代 NSEnumerator,先落成数组再筛。 - for url in items.compactMap({ $0 as? URL }) where url.lastPathComponent.hasSuffix(".messages.ndjson") { - wire.append(try Data(contentsOf:url)) - } - } - try wire.write(to:URL(fileURLWithPath:CommandLine.arguments[2]).deletingLastPathComponent().appendingPathComponent("flow-outbound.ndjson")) - try t.save(URL(fileURLWithPath:CommandLine.arguments[2])) - } -} diff --git a/tests/archive/part7/tests/NativeTests.swift b/tests/archive/part7/tests/NativeTests.swift deleted file mode 100644 index d114d191..00000000 --- a/tests/archive/part7/tests/NativeTests.swift +++ /dev/null @@ -1,46 +0,0 @@ -import Foundation -#if canImport(Darwin) -import Darwin -#else -import Glibc -#endif -@main struct NativeTests { - @MainActor static func main() async throws { - let t=TestLog(),child=CommandLine.arguments[1],python=URL(fileURLWithPath:CommandLine.arguments[2]) - let root=FileManager.default.temporaryDirectory.appendingPathComponent("ws2-native-"+UUID().uuidString,isDirectory:true) - try FileManager.default.createDirectory(at:root,withIntermediateDirectories:true);defer{try? FileManager.default.removeItem(at:root)} - t.begin("NATIVE01 direct child ignores TERM then owned group KILL") - var ready=false - let p=try WS2DuplexProcess(executable:python,arguments:["-S",child,"stubborn"],workingDirectory:root,environment:[:],mayWrite:{true}) - p.onLine={_ in ready=true};try p.start() - let childReady=await until({ready});t.check(childReady,"fixture ready") - p.stop();t.check(!p.leaderReaped,"transport close isn't wait/reap") - let reaped=await until({p.leaderReaped});t.check(reaped,"native reaper") - t.check(p.groupTerminationRequested && p.groupKillRequested,"both stop stages") - t.check(p.termination?.wasSignalled==true && p.termination?.status==SIGKILL,"KILL status") - p.stop();t.check(p.supervisionError==nil,"idempotent stop after reap");t.end() - t.begin("NATIVE02 inherited descriptor descendant cannot delay direct exit") - let marker=root.appendingPathComponent("late-marker");var lines:[String]=[] - let q=try WS2DuplexProcess(executable:python,arguments:["-S",child,"grandchild",marker.path],workingDirectory:root,environment:[:],mayWrite:{true}) - q.onLine={lines.append(String(decoding:$0,as:UTF8.self))} - let began=ProcessInfo.processInfo.systemUptime;try q.start() - let exited=await until({q.termination != nil},timeout:0.7) - FileHandle.standardError.write(Data("DIAG exited=\(exited) termination=\(String(describing:q.termination)) stopped=\(q.stopped) supervision=\(String(describing:q.supervisionError)) lines=\(lines) elapsed=\(ProcessInfo.processInfo.systemUptime-began)\n".utf8)) - t.check(exited,"direct exit before descendant's .9 second marker") - t.check(ProcessInfo.processInfo.systemUptime-began<0.7,"bounded observed probe, not universal latency guarantee") - let groupReaped=await until({q.leaderReaped});t.check(groupReaped,"anchor eventually reaped") - try? await Task.sleep(nanoseconds:500_000_000) - t.check(!FileManager.default.fileExists(atPath:marker.path),"stubborn same-group descendant did not reach late write") - t.check(lines.count<=1,"no unbounded late stdout");t.end() - t.begin("NATIVE03 unrelated descriptors do not reach child") - let descriptor=open("/dev/null",O_RDONLY) - t.check(descriptor>=3,"owned unrelated fd fixture") - _=fcntl(descriptor,F_SETFD,0) - var observed="" - let z=try WS2DuplexProcess(executable:python,arguments:["-S",child,"fd",String(descriptor)],workingDirectory:root,environment:[:],mayWrite:{true}) - z.onLine={observed=String(decoding:$0,as:UTF8.self)};try z.start() - let fdReaped=await until({z.leaderReaped});t.check(fdReaped,"reaped") - t.check(observed=="{\"inherited\":false}","close-on-exec boundary");_=close(descriptor);t.end() - try t.save(URL(fileURLWithPath:CommandLine.arguments[3])) - } -} diff --git a/tests/archive/part7/tests/TEST-CASES.md b/tests/archive/part7/tests/TEST-CASES.md deleted file mode 100644 index e9dffb6b..00000000 --- a/tests/archive/part7/tests/TEST-CASES.md +++ /dev/null @@ -1,54 +0,0 @@ -# 本轮实际新增测试 - -源代码与结果文件配套。多个断言属于同一个场景,不把循环次数冒充新增用例。 - -|套件|场景|断言|结果| -|---|---|---:|---| -|core|JSON01 empty object|1|PASS| -|core|JSON02 nested|1|PASS| -|core|JSON03 duplicate|1|PASS| -|core|JSON04 escaped duplicate|1|PASS| -|core|JSON05 nested duplicate|1|PASS| -|core|JSON06 surrogate pair|1|PASS| -|core|JSON07 lone high surrogate|1|PASS| -|core|JSON08 lone low surrogate|1|PASS| -|core|JSON09 leading zero|1|PASS| -|core|JSON10 fraction exponent|1|PASS| -|core|JSON11 trailing data|1|PASS| -|core|JSON12 trailing comma|1|PASS| -|core|JSON13 invalid escape|1|PASS| -|core|JSON14 raw control|1|PASS| -|core|JSON15 unicode|1|PASS| -|core|JSON16 incomplete exponent|1|PASS| -|core|JSON17 deep|1|PASS| -|core|JSON18 whitespace|1|PASS| -|core|JSON19 size and node budgets|3|PASS| -|core|URL01 browser scheme and exact host|8|PASS| -|core|WIRE01 duplicate keys close before RPC interpretation|2|PASS| -|core|QUIT01 both owners must settle|3|PASS| -|core|QUIT02 updater alone cannot release child|3|PASS| -|core|WIRE02 ambiguous result/error envelope|2|PASS| -|core|QUIT03 veto and double begin|3|PASS| -|core|PROFILE01 creates private state without overwriting changes|6|PASS| -|core|PROFILE02 project configuration and linked state reject|3|PASS| -|native|NATIVE01 direct child ignores TERM then owned group KILL|6|PASS| -|native|NATIVE02 inherited descriptor descendant cannot delay direct exit|5|PASS| -|native|NATIVE03 unrelated descriptors do not reach child|3|PASS| -|flow|FLOW01 local launch and actual stream completion|21|PASS| -|flow|FLOW02 resume only the locally associated project|8|PASS| -|flow|FLOW03 different project cannot reuse old thread|6|PASS| -|flow|FLOW04 actual login response and exact login ID|10|PASS| -|flow|FLOW05 interrupt RPC is not final completion|12|PASS| -|flow|FLOW06 elevation always declined by local entry|9|PASS| -|flow|FLOW07 failed turn is not successful completion|7|PASS| -|flow|FLOW08 mismatched version|7|PASS| -|flow|FLOW09 effective config mismatch|7|PASS| -|flow|FLOW10 duplicate raw JSON|7|PASS| -|flow|FLOW11 reject arbitrary auth URL|7|PASS| -|flow|FLOW12 unrelated login completion cannot authenticate|6|PASS| -|flow|FLOW13 project replacement invalidates submission|6|PASS| -|flow|FLOW14 actual lock invalidation and no automatic restart|6|PASS| -|flow|FLOW15 diagnostics are opt-in and clearable|7|PASS| -|flow|FLOW16 version-probe cancellation still awaits reaping|6|PASS| -|flow|FLOW17 version timeout does not invent a reap receipt|5|PASS| -|flow|FLOW18 login cancellation requires fresh account verification|8|PASS| diff --git a/tests/archive/part7/tests/TestSupport.swift b/tests/archive/part7/tests/TestSupport.swift deleted file mode 100644 index 2873e6e6..00000000 --- a/tests/archive/part7/tests/TestSupport.swift +++ /dev/null @@ -1,24 +0,0 @@ -import Foundation - -@MainActor final class TestLog { - struct Record:Codable { let name:String;let assertions:Int;let result:String } - private(set) var assertions=0 - private(set) var records:[Record]=[] - private var began=0, name="" - func begin(_ name:String) { self.name=name;began=assertions } - func check(_ value:@autoclosure()->Bool,_ reason:String) { - assertions += 1 - guard value() else { fatalError("FAIL \(name): \(reason)") } - } - func end() { records.append(.init(name:name,assertions:assertions-began,result:"PASS"));print("PASS \(name) [\(assertions-began)]") } - func save(_ url:URL) throws { - let encoder=JSONEncoder();encoder.outputFormatting=[.prettyPrinted,.sortedKeys] - try encoder.encode(records).write(to:url) - print("TOTAL \(records.count) scenarios, \(assertions) assertions") - } -} -@MainActor func until(_ predicate:()->Bool,timeout:Double=5) async -> Bool { - let start=ProcessInfo.processInfo.systemUptime - while !predicate(),ProcessInfo.processInfo.systemUptime-start/dev/null -xcrun --find swiftc >/dev/null -xcrun --find metal >/dev/null -BUILD="$(mktemp -d)"; trap 'rm -rf "$BUILD"' EXIT -mkdir "$BUILD/repo" -# Do not source the user's signing environment or copy build outputs into this check. -rsync -a --exclude=.git --exclude=.build --exclude='*.app' --exclude=local-codesign.env "$BASE/" "$BUILD/repo/" -cd "$BUILD/repo/prototype" -echo "Isolated SDK check of $BASE; local-codesign.env excluded" -bash ./build.sh --check diff --git a/tests/archive/part7/tests/run.py b/tests/archive/part7/tests/run.py deleted file mode 100644 index b8654eb7..00000000 --- a/tests/archive/part7/tests/run.py +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env python3 -"""Build and run the actual candidate files. Every invocation records argv, stdout and exit code.""" -import argparse, json, os, pathlib, platform, shutil, subprocess, tempfile, time -p=argparse.ArgumentParser();p.add_argument('--repo',required=True,type=pathlib.Path);p.add_argument('--suite',choices=['core','flow','native'],required=True);p.add_argument('--report-dir',type=pathlib.Path);a=p.parse_args() -here=pathlib.Path(__file__).resolve().parent.parent;out=a.report_dir or here/'validation';out.mkdir(parents=True,exist_ok=True) -source=a.repo.resolve()/'prototype';steps=[] -def run(args,timeout=40): - start=time.monotonic();result=subprocess.run([str(x) for x in args],capture_output=True,text=True,timeout=timeout) - steps.append(dict(argv=[str(x) for x in args],exit_code=result.returncode,elapsed_seconds=time.monotonic()-start,stdout=result.stdout,stderr=result.stderr)) - (out/(a.suite+'-commands.json')).write_text(json.dumps(steps,indent=2,ensure_ascii=False)) - print(result.stdout,end='');print(result.stderr,end='') - if result.returncode: raise SystemExit(result.returncode) -files=['Core/Contracts.swift','Core/WS2QuitBarrier.swift','Core/WS2StrictJSON.swift','Core/CodexWire.swift','Core/WS2OwnedProtocolHost.swift', - 'Core/WS2BoundedOutbox.swift','Core/WS2DiagnosticTail.swift','Core/WS2OwnedScope.swift','Core/AgentSessions.swift', - 'Support/WS2ProjectDirectory.swift','Support/WS2LocalLaunchProfile.swift','Support/WS2VersionProbe.swift', - 'Support/WS2DuplexProcess.swift','Core/WireJSON.swift','Core/UsageReading.swift','App/WS2OwnedCodexSession.swift','App/WS2OwnedLaunchController.swift'] -with tempfile.TemporaryDirectory(prefix='ws2-build-') as d: - build=pathlib.Path(d);obj=build/'child.o';binary=build/'suite' - run(['cc','-std=c11','-O2','-Wall','-Wextra','-Werror','-c',source/'Native/WS2Child.c','-o',obj]) - swift=['swiftc','-swift-version','6','-strict-concurrency=complete','-warnings-as-errors','-I',source/'Native',obj] - selected=[source/f for f in files] - test={'core':'CoreTests.swift','flow':'FlowTests.swift','native':'NativeTests.swift'}[a.suite] - run(swift+selected+[here/'tests/TestSupport.swift',here/'tests'/test,'-o',binary]) - report=out/(a.suite+'-results.json') - fixture=build/'fake-codex.py' - fixture.write_text('#!'+str(pathlib.Path(shutil.which('python3')).resolve())+' -S\n'+'\n'.join((here/'fixtures/fake-codex.py').read_text().splitlines()[1:])+'\n') - args={'core':[report],'flow':[fixture,report],'native':[here/'fixtures/native-child.py',shutil.which('python3'),report]}[a.suite] - run([binary]+args,timeout=65) diff --git a/tests/archive/part7/tests/test-tools.py b/tests/archive/part7/tests/test-tools.py deleted file mode 100644 index ea794b37..00000000 --- a/tests/archive/part7/tests/test-tools.py +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env python3 -"""File-tool tests use a tiny synthetic baseline, never the user's working tree.""" -import contextlib,hashlib,importlib.util,json,pathlib,subprocess,tempfile,unittest -root=pathlib.Path(__file__).resolve().parent.parent -spec=importlib.util.spec_from_file_location('stage',root/'tools/stage.py');stage=importlib.util.module_from_spec(spec);spec.loader.exec_module(stage) -class Tests(unittest.TestCase): - def setUp(self): - self.temp=tempfile.TemporaryDirectory(prefix='ws2-stage-test-');self.root=pathlib.Path(self.temp.name).resolve();self.base=self.root/'base';self.base.mkdir();(self.base/'old').write_text('old') - self.pkg=self.root/'package';(self.pkg/'overlay').mkdir(parents=True);(self.pkg/'sources').mkdir();(self.pkg/'overlay'/'old').write_text('new');(self.pkg/'overlay'/'addition').write_text('added') - self.expected=stage.snapshot(self.base);(self.pkg/'sources/base-manifest.json').write_text(json.dumps(self.expected));self.man={'changes':[dict(path=x,baseSHA256=self.expected.get(x),sha256=stage.digest(self.pkg/'overlay'/x)) for x in ['old','addition']]};self.save();self.out=self.root/'out' - def save(self):(self.pkg/'manifest.json').write_text(json.dumps(self.man)) - def tearDown(self):self.temp.cleanup() - def test_exact_output(self): - result=stage.stage(self.pkg,self.base,self.out);self.assertEqual(result['output_files'],2);self.assertTrue(result['original_preserved']);self.assertEqual((self.out/'old').read_text(),'new') - def test_existing_output(self): - self.out.mkdir();self.assertRaises(ValueError,stage.stage,self.pkg,self.base,self.out) - def test_drift(self): - (self.base/'old').write_text('user edit');self.assertRaises(ValueError,stage.stage,self.pkg,self.base,self.out);self.assertFalse(self.out.exists()) - def test_output_inside_base(self):self.assertRaises(ValueError,stage.stage,self.pkg,self.base,self.base/'out') - def test_overlay_drift(self): - (self.pkg/'overlay'/'old').write_text('wrong');self.assertRaises(ValueError,stage.stage,self.pkg,self.base,self.out) - def test_baseline_symlink(self): - (self.base/'linked').symlink_to(self.base/'old');self.assertRaises(ValueError,stage.stage,self.pkg,self.base,self.out) - def test_overlay_symlink(self): - (self.pkg/'overlay'/'linked').symlink_to(self.base/'old');self.assertRaises(ValueError,stage.stage,self.pkg,self.base,self.out) - def test_traversal(self): - self.man['changes'][0]['path']='../escape';self.save();self.assertRaises(ValueError,stage.stage,self.pkg,self.base,self.out) - def test_missing_overlay_entry(self): - self.man['changes'].pop();self.save();self.assertRaises(ValueError,stage.stage,self.pkg,self.base,self.out) - def test_duplicate_manifest_path(self): - self.man['changes'].append(self.man['changes'][0]);self.save();self.assertRaises(ValueError,stage.stage,self.pkg,self.base,self.out) -if __name__=='__main__': - with (root/'validation/tools-tests.txt').open('w') as log: - result=unittest.TextTestRunner(stream=log,verbosity=2).run(unittest.defaultTestLoader.loadTestsFromTestCase(Tests)) - report={'tests_run':result.testsRun,'failures':len(result.failures),'errors':len(result.errors),'scope':'synthetic file staging, not application runtime'} - (root/'validation/tools-tests.json').write_text(json.dumps(report,indent=2));print((root/'validation/tools-tests.txt').read_text());raise SystemExit(not result.wasSuccessful()) diff --git a/tests/archive/part7/tools/stage.py b/tests/archive/part7/tools/stage.py deleted file mode 100644 index 6684b83e..00000000 --- a/tests/archive/part7/tools/stage.py +++ /dev/null @@ -1,57 +0,0 @@ -#!/usr/bin/env python3 -"""Exact v6-to-v7 staging into a new directory. Never overwrites or mutates input.""" -import argparse,hashlib,json,os,pathlib,shutil,sys,tempfile - -def digest(path):return hashlib.sha256(path.read_bytes()).hexdigest() -def snapshot(root): - if root.is_symlink() or not root.is_dir():raise ValueError('unsafe or missing directory') - result={} - for p in root.rglob('*'): - if p.is_symlink():raise ValueError('symlink not permitted: '+str(p)) - if p.is_file():result[p.relative_to(root).as_posix()]=digest(p) - elif not p.is_dir():raise ValueError('special object not permitted') - return result - -def relative(value): - p=pathlib.PurePosixPath(value) - if p.is_absolute() or not p.parts or '..' in p.parts or str(p)!=value:raise ValueError('unsafe manifest path') - return p - -def stage(package,base,out): - package=pathlib.Path(package).resolve();raw_base=pathlib.Path(base).absolute();raw_out=pathlib.Path(out).absolute() - if raw_base.is_symlink() or raw_out.is_symlink():raise ValueError('symlink input/output') - base=raw_base.resolve();out=raw_out.resolve() - if out.exists():raise ValueError('output already exists') - if out==base or base in out.parents:raise ValueError('output must not be inside baseline') - # Do not follow a caller-supplied output ancestor symlink into another tree. - if raw_out!=out:raise ValueError('output ancestor must be canonical') - manifest=json.loads((package/'manifest.json').read_text());expected=json.loads((package/'sources/base-manifest.json').read_text()) - actual=snapshot(base) - if actual!=expected:raise ValueError('baseline mismatch; three-way merge required') - changes=manifest['changes'];overlay=snapshot(package/'overlay');paths=[] - for change in changes: - rel=str(relative(change['path']));paths.append(rel) - if actual.get(rel)!=change['baseSHA256']:raise ValueError('inconsistent base manifest') - if overlay.get(rel)!=change['sha256']:raise ValueError('overlay hash mismatch') - if len(paths)!=len(set(paths)) or set(paths)!=set(overlay):raise ValueError('overlay file set mismatch') - out.parent.mkdir(parents=True,exist_ok=True) - tmp=pathlib.Path(tempfile.mkdtemp(prefix='.ws2-stage-',dir=out.parent)) - try: - candidate=tmp/'candidate';shutil.copytree(base,candidate) - for change in changes: - rel=change['path'];target=candidate/rel;target.parent.mkdir(parents=True,exist_ok=True);shutil.copy2(package/'overlay'/rel,target) - final=snapshot(candidate);wanted=dict(actual) - for change in changes:wanted[change['path']]=change['sha256'] - if final!=wanted:raise ValueError('output integrity failure') - if out.exists():raise ValueError('output appeared during staging') - # Container/file-system staging is not a cross-process filesystem CAS guarantee. - candidate.rename(out) - return {'base_files':len(actual),'output_files':len(final),'changed_files':len(changes),'original_preserved':snapshot(base)==actual,'output':str(out)} - finally:shutil.rmtree(tmp,ignore_errors=True) - -def main(): - p=argparse.ArgumentParser();p.add_argument('--base',required=True);p.add_argument('--out',required=True);a=p.parse_args() - try:result=stage(pathlib.Path(__file__).resolve().parent.parent,a.base,a.out) - except (OSError,ValueError,KeyError,TypeError) as e:print('REFUSED: '+str(e),file=sys.stderr);return 2 - print(json.dumps(result,ensure_ascii=False,indent=2));return 0 -if __name__=='__main__':raise SystemExit(main()) diff --git a/tests/archive/part7/validation/approval-accept.ndjson b/tests/archive/part7/validation/approval-accept.ndjson deleted file mode 100644 index 98da1ca6..00000000 --- a/tests/archive/part7/validation/approval-accept.ndjson +++ /dev/null @@ -1 +0,0 @@ -{"id":7,"result":{"decision":"accept"}} diff --git a/tests/archive/part7/validation/build-boundary.json b/tests/archive/part7/validation/build-boundary.json deleted file mode 100644 index d65251c1..00000000 --- a/tests/archive/part7/validation/build-boundary.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "foundation_files": 33, - "foundation_inputs": [ - "prototype/Core/Contracts.swift", - "prototype/Core/WS2FocusWindowOwnership.swift", - "prototype/Core/WS2DeviceInputGate.swift", - "prototype/Core/PairingAttemptWindow.swift", - "prototype/Core/PairingTLV.swift", - "prototype/Core/CodexWire.swift", - "prototype/Core/WS2CompanionFrame.swift", - "prototype/Core/WS2ApprovalReview.swift", - "prototype/Core/FocusTimer.swift", - "prototype/Core/GamepadMapping.swift", - "prototype/Core/WS2BoundedOutbox.swift", - "prototype/Core/WS2FocusEffectPlan.swift", - "prototype/Core/WS2SemanticInputRouter.swift", - "prototype/Core/WS2DiagnosticTail.swift", - "prototype/Core/WS2OwnedScope.swift", - "prototype/Core/WS2SelectionModel.swift", - "prototype/Core/WS2ConnectionBudget.swift", - "prototype/Core/WS2StrictJSON.swift", - "prototype/Core/WS2OwnedProtocolHost.swift", - "prototype/Core/WS2QuitBarrier.swift", - "prototype/Core/AgentSessions.swift", - "prototype/Support/WS2PeerRepository.swift", - "prototype/Support/WS2PairSetupServer.swift", - "prototype/Support/WS2PairSetupCrypto.swift", - "prototype/Support/WS2FocusEffectExecutor.swift", - "prototype/Support/WS2DuplexProcess.swift", - "prototype/Support/WS2ProjectDirectory.swift", - "prototype/Support/WS2LocalLaunchProfile.swift", - "prototype/Support/WS2VersionProbe.swift", - "prototype/Core/InteractionCoordinator.swift", - "prototype/App/FocusTimerHost.swift", - "prototype/App/WS2OwnedCodexSession.swift", - "prototype/App/WS2OwnedLaunchController.swift" - ], - "syntax_only_files": 38, - "syntax_only_inputs": [ - "prototype/App/FoldCompletion.swift", - "prototype/App/LaunchpadActivities.swift", - "prototype/App/LaunchpadController.swift", - "prototype/App/Notch.swift", - "prototype/App/NotchActivityView.swift", - "prototype/App/NotchLeases.swift", - "prototype/App/Preferences.swift", - "prototype/App/Updater.swift", - "prototype/App/UpdaterSettings.swift", - "prototype/App/WS2AppRuntime.swift", - "prototype/App/WS2CodexApprovalHost.swift", - "prototype/App/WS2FocusSettings.swift", - "prototype/App/WS2FocusWindowPort.swift", - "prototype/App/WS2GameControllerBridge.swift", - "prototype/App/WS2OwnedCodexSession+Authorization.swift", - "prototype/App/WS2OwnedCodexSession.swift", - "prototype/App/WS2OwnedLaunchController.swift", - "prototype/App/WS2OwnedSessionView.swift", - "prototype/App/WS2PrivacyData.swift", - "prototype/App/WS2PrivacyPane.swift", - "prototype/App/WS2SettingsInfo.swift", - "prototype/App/WS2SupplementPane.swift", - "prototype/Core/CodexWire.swift", - "prototype/Core/InteractionCoordinator.swift", - "prototype/Core/PairingTLV.swift", - "prototype/Core/WS2OwnedProtocolHost.swift", - "prototype/Core/WS2QuitBarrier.swift", - "prototype/Core/WS2StrictJSON.swift", - "prototype/Effects/DuoSettingsWindow.swift", - "prototype/Support/WS2AtomicConfiguration.swift", - "prototype/Support/WS2DuplexProcess.swift", - "prototype/Support/WS2KeychainPeerStorage.swift", - "prototype/Support/WS2LocalLaunchProfile.swift", - "prototype/Support/WS2ProcessChannel.swift", - "prototype/Support/WS2UnixSocket.swift", - "prototype/Support/WS2VersionProbe.swift", - "prototype/Window/AXWindow.swift", - "prototype/WindowShade.swift" - ], - "mac_sdk": "NOT RUN", - "platform": "macOS-27.0-arm64-arm-64bit-Mach-O" -} \ No newline at end of file diff --git a/tests/archive/part7/validation/build-checks.json b/tests/archive/part7/validation/build-checks.json deleted file mode 100644 index c383e77d..00000000 --- a/tests/archive/part7/validation/build-checks.json +++ /dev/null @@ -1,548 +0,0 @@ -[ - { - "argv": [ - "swiftc", - "--version" - ], - "exit_code": 0, - "stdout": "Apple Swift version 6.4 (swiftlang-6.4.0.34.1 clang-2100.3.34.1)\nTarget: arm64-apple-macosx27.0.0\n", - "stderr": "swift-driver version: 1.168.6 ", - "elapsed_seconds": 0.4093858340056613 - }, - { - "argv": [ - "cc", - "--version" - ], - "exit_code": 0, - "stdout": "Apple clang version 21.0.0 (clang-2100.3.34.2)\nTarget: arm64-apple-darwin27.0.0\nThread model: posix\nInstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin\n", - "stderr": "", - "elapsed_seconds": 0.04598699999041855 - }, - { - "argv": [ - "uname", - "-a" - ], - "exit_code": 0, - "stdout": "Darwin Aarons-MacBook-Air.local 27.0.0 Darwin Kernel Version 27.0.0: Tue Aug 11 21:02:59 PDT 2026; root:xnu-13432.1.9~1/RELEASE_ARM64_T8142 arm64\n", - "stderr": "", - "elapsed_seconds": 0.0421293749823235 - }, - { - "argv": [ - "bash", - "-n", - "/Users/aaron/Documents/WindowShade/prototype/build.sh" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.01021612499607727 - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/Users/aaron/Documents/WindowShade/prototype/Native", - "-typecheck", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2FocusWindowOwnership.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DeviceInputGate.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/PairingAttemptWindow.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/PairingTLV.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2CompanionFrame.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2ApprovalReview.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/FocusTimer.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/GamepadMapping.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2FocusEffectPlan.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2SemanticInputRouter.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedScope.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2SelectionModel.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2ConnectionBudget.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedProtocolHost.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2QuitBarrier.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/AgentSessions.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2PeerRepository.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2PairSetupServer.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2PairSetupCrypto.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2FocusEffectExecutor.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2ProjectDirectory.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2LocalLaunchProfile.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2VersionProbe.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/InteractionCoordinator.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/FocusTimerHost.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedCodexSession.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedLaunchController.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 13.638216916995589 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/FoldCompletion.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.13585300001432188 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/LaunchpadActivities.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.1491785410034936 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/LaunchpadController.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.11947345899534412 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/Notch.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.10790462500881404 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/NotchActivityView.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.1123222500027623 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/NotchLeases.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.14236800000071526 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/Preferences.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.11611737500061281 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/Updater.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.12119891599286348 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/UpdaterSettings.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.12282512499950826 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2AppRuntime.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.12125249998643994 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2CodexApprovalHost.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.12805875000776723 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2FocusSettings.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.12059474998386577 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2FocusWindowPort.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.14615791698452085 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2GameControllerBridge.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.15690258401446044 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedCodexSession+Authorization.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.18546549999155104 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedCodexSession.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.13229020798462443 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedLaunchController.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.1525295829924289 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedSessionView.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.13080862499191426 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2PrivacyData.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.12959566598874517 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2PrivacyPane.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.1632715830055531 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2SettingsInfo.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.24843933299416676 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2SupplementPane.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.11995729201589711 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.15509350001229905 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Core/InteractionCoordinator.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.16553216701140627 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Core/PairingTLV.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.13972137501696125 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedProtocolHost.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.14189616599469446 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2QuitBarrier.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.14067300001624972 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.12115708299097605 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Effects/DuoSettingsWindow.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.12902795898844488 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2AtomicConfiguration.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.11146304200519808 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.1285280000010971 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2KeychainPeerStorage.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.14054225001018494 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2LocalLaunchProfile.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.16670491700642742 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2ProcessChannel.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.14982458399026655 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2UnixSocket.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.15993466699728742 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2VersionProbe.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.14860449999105185 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Window/AXWindow.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.156060792010976 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/WindowShade.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.13322908300324343 - } -] \ No newline at end of file diff --git a/tests/archive/part7/validation/core-commands.json b/tests/archive/part7/validation/core-commands.json deleted file mode 100644 index 0a59b262..00000000 --- a/tests/archive/part7/validation/core-commands.json +++ /dev/null @@ -1,65 +0,0 @@ -[ - { - "argv": [ - "cc", - "-std=c11", - "-O2", - "-Wall", - "-Wextra", - "-Werror", - "-c", - "/Users/aaron/Documents/WindowShade/prototype/Native/WS2Child.c", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-fba7p0yo/child.o" - ], - "exit_code": 0, - "elapsed_seconds": 0.24626341598923318, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/Users/aaron/Documents/WindowShade/prototype/Native", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-fba7p0yo/child.o", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2QuitBarrier.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedProtocolHost.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedScope.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/AgentSessions.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2ProjectDirectory.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2LocalLaunchProfile.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2VersionProbe.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedCodexSession.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedLaunchController.swift", - "/Users/aaron/Documents/WindowShade/tests/part7/tests/TestSupport.swift", - "/Users/aaron/Documents/WindowShade/tests/part7/tests/CoreTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-fba7p0yo/suite" - ], - "exit_code": 0, - "elapsed_seconds": 18.528913333982928, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-fba7p0yo/suite", - "/Users/aaron/Documents/WindowShade/tests/part7/validation/core-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 0.34178179199807346, - "stdout": "PASS JSON01 empty object [1]\nPASS JSON02 nested [1]\nPASS JSON03 duplicate [1]\nPASS JSON04 escaped duplicate [1]\nPASS JSON05 nested duplicate [1]\nPASS JSON06 surrogate pair [1]\nPASS JSON07 lone high surrogate [1]\nPASS JSON08 lone low surrogate [1]\nPASS JSON09 leading zero [1]\nPASS JSON10 fraction exponent [1]\nPASS JSON11 trailing data [1]\nPASS JSON12 trailing comma [1]\nPASS JSON13 invalid escape [1]\nPASS JSON14 raw control [1]\nPASS JSON15 unicode [1]\nPASS JSON16 incomplete exponent [1]\nPASS JSON17 deep [1]\nPASS JSON18 whitespace [1]\nPASS JSON19 size and node budgets [3]\nPASS URL01 browser scheme and exact host [8]\nPASS WIRE01 duplicate keys close before RPC interpretation [2]\nPASS QUIT01 both owners must settle [3]\nPASS QUIT02 updater alone cannot release child [3]\nPASS WIRE02 ambiguous result/error envelope [2]\nPASS QUIT03 veto and double begin [3]\nPASS PROFILE01 creates private state without overwriting changes [6]\nPASS PROFILE02 project configuration and linked state reject [3]\nTOTAL 27 scenarios, 51 assertions\n", - "stderr": "" - } -] \ No newline at end of file diff --git a/tests/archive/part7/validation/core-results.json b/tests/archive/part7/validation/core-results.json deleted file mode 100644 index 2f939333..00000000 --- a/tests/archive/part7/validation/core-results.json +++ /dev/null @@ -1,137 +0,0 @@ -[ - { - "assertions" : 1, - "name" : "JSON01 empty object", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON02 nested", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON03 duplicate", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON04 escaped duplicate", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON05 nested duplicate", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON06 surrogate pair", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON07 lone high surrogate", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON08 lone low surrogate", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON09 leading zero", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON10 fraction exponent", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON11 trailing data", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON12 trailing comma", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON13 invalid escape", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON14 raw control", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON15 unicode", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON16 incomplete exponent", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON17 deep", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON18 whitespace", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "JSON19 size and node budgets", - "result" : "PASS" - }, - { - "assertions" : 8, - "name" : "URL01 browser scheme and exact host", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "WIRE01 duplicate keys close before RPC interpretation", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "QUIT01 both owners must settle", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "QUIT02 updater alone cannot release child", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "WIRE02 ambiguous result\/error envelope", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "QUIT03 veto and double begin", - "result" : "PASS" - }, - { - "assertions" : 6, - "name" : "PROFILE01 creates private state without overwriting changes", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "PROFILE02 project configuration and linked state reject", - "result" : "PASS" - } -] \ No newline at end of file diff --git a/tests/archive/part7/validation/development/appkit-parse-spacing.txt b/tests/archive/part7/validation/development/appkit-parse-spacing.txt deleted file mode 100644 index f856ba8f..00000000 --- a/tests/archive/part7/validation/development/appkit-parse-spacing.txt +++ /dev/null @@ -1 +0,0 @@ -Initial syntax parse rejected text.minSize=.zero at WS2OwnedSessionView.swift:71 because Swift requires consistent operator spacing before dot syntax. Corrected to text.minSize = .zero. No Mac SDK was loaded during this operation. diff --git a/tests/archive/part7/validation/development/build-check-interrupted.json b/tests/archive/part7/validation/development/build-check-interrupted.json deleted file mode 100644 index f1d18ade..00000000 --- a/tests/archive/part7/validation/development/build-check-interrupted.json +++ /dev/null @@ -1,43 +0,0 @@ -[ - { - "argv": [ - "swiftc", - "--version" - ], - "exit_code": 0, - "stdout": "Swift version 6.2.1 (swift-6.2.1-RELEASE)\nTarget: x86_64-unknown-linux-gnu\n", - "stderr": "", - "elapsed_seconds": 0.07567712499985646 - }, - { - "argv": [ - "cc", - "--version" - ], - "exit_code": 0, - "stdout": "cc (Debian 14.2.0-19) 14.2.0\nCopyright (C) 2024 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n", - "stderr": "", - "elapsed_seconds": 0.00222361100031776 - }, - { - "argv": [ - "uname", - "-a" - ], - "exit_code": 0, - "stdout": "Linux 5544ed776db5 6.18.44 #1 SMP Sat Sep 26 20:02:31 UTC 2026 x86_64 GNU/Linux\n", - "stderr": "", - "elapsed_seconds": 0.0019448989996817545 - }, - { - "argv": [ - "bash", - "-n", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/build.sh" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.0029930590003459656 - } -] \ No newline at end of file diff --git a/tests/archive/part7/validation/development/flow-first.json b/tests/archive/part7/validation/development/flow-first.json deleted file mode 100644 index 5b17dd68..00000000 --- a/tests/archive/part7/validation/development/flow-first.json +++ /dev/null @@ -1,65 +0,0 @@ -[ - { - "argv": [ - "cc", - "-std=c11", - "-O2", - "-Wall", - "-Wextra", - "-Werror", - "-c", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Native/WS2Child.c", - "-o", - "/tmp/ws2-build-nbop6__v/child.o" - ], - "exit_code": 0, - "elapsed_seconds": 0.11701306400004796, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Native", - "/tmp/ws2-build-nbop6__v/child.o", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/Contracts.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/WS2StrictJSON.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/CodexWire.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/WS2OwnedProtocolHost.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/WS2BoundedOutbox.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/WS2DiagnosticTail.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/WS2OwnedScope.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/AgentSessions.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Support/WS2ProjectDirectory.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Support/WS2LocalLaunchProfile.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Support/WS2VersionProbe.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Support/WS2DuplexProcess.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/App/WS2OwnedCodexSession.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/App/WS2OwnedLaunchController.swift", - "/mnt/data/WindowShade2-round2-part7/tests/TestSupport.swift", - "/mnt/data/WindowShade2-round2-part7/tests/FlowTests.swift", - "-o", - "/tmp/ws2-build-nbop6__v/suite" - ], - "exit_code": 0, - "elapsed_seconds": 8.16644602600013, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/tmp/ws2-build-nbop6__v/suite", - "/mnt/data/WindowShade2-round2-part7/fixtures/fake-codex.py", - "/mnt/data/WindowShade2-round2-part7/validation/flow-results.json" - ], - "exit_code": -4, - "elapsed_seconds": 0.03925725800013424, - "stdout": "", - "stderr": "suite/TestSupport.swift:11: Fatal error: FAIL FLOW01 local launch and actual stream completion: launch accepted\n\n*** Signal 4: Backtracing from 0x7f10ef4d5788... done ***\n\n*** Program crashed: Illegal instruction at 0x00007f10ef4d5788 ***\n\nPlatform: x86_64 Linux (Debian GNU/Linux 13 (trixie))\n\nThread 0 \"suite\" crashed:\n\n 0 0x00007f10ef4d5788 _assertionFailure(_:_:file:line:flags:) + 264 in libswiftCore.so\n 1 [ra] 0x0000556ad1979850 TestLog.check(_:_:) + 799 in suite\n 2 [ra] 0x0000556ad198796d start #1 (_:diagnostics:) in static FlowTests.main() + 124 in suite\n 3 [async] 0x0000556ad197adf0 static FlowTests.main() in suite\n 4 [async] 0x0000556ad198bbb0 static FlowTests.$main() in suite\n 5 [async] [system] 0x0000556ad198bd70 async_MainTQ0_ in suite\n 6 [async] [thunk] 0x0000556ad198be30 thunk for @escaping @convention(thin) @async () -> () in suite\n 7 [async] [thunk] 0x0000556ad198bf30 partial apply for thunk for @escaping @convention(thin) @async () -> () in suite\n 8 [async] [system] 0x00007f10ef1c35e0 completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) in libswift_Concurrency.so\n...\n\n\nRegisters:\n\nrax 0x0000000200000003 8589934595\nrdx 0x0000000000000002 2\nrcx 0xfffffffe00000000 18446744065119617024\nrbx 0x0000000000000003 3\nrsi 0x0000556ae44ba2b8 03 00 00 00 00 00 00 00 90 00 00 00 00 00 00 80 ················\nrdi 0x0000000000000002 2\nrbp 0x00007ffd614a1f00 30 20 4a 61 fd 7f 00 00 50 98 97 d1 6a 55 00 00 0 Jaý···P··ÑjU··\nrsp 0x00007ffd614a1e90 30 3f 4b e4 6a 55 00 00 00 00 00 00 00 00 00 00 0?KäjU··········\n r8 0x0000000000000060 96\n r9 0x0000000000000046 70\nr10 0x0000000000000000 0\nr11 0x0000000000000000 0\nr12 0x00007f10eb6a8c88 7c 05 00 00 00 00 00 00 a0 2d 4b e4 6a 55 00 00 |······· -KäjU··\nr13 0x00007ffd614a1fd8 46 00 00 00 00 00 00 f0 b0 a2 4b e4 6a 55 00 00 F······ð°¢KäjU··\nr14 0x0000556ae44b7bc0 50 33 4b e4 6a 55 00 00 f0 ad 97 d1 6a 55 00 00 P3KäjU··ð­·ÑjU··\nr15 0x0000556ae44b2da0 20 69 1e ef 10 7f 00 00 03 00 00 00 00 00 00 00 i·ï············\nrip 0x00007f10ef4d5788 0f 0b 48 8d 35 7f 0c fb ff 48 8d 55 a0 45 31 e4 ··H·5··ûÿH·U E1ä\n\nrflags 0x0000000000010206 PF\n\ncs 0x0033 fs 0x0000 gs 0x0000\n\n\nImages (17 omitted):\n\n0x0000556ad18b1000–0x0000556ad198c761 1ecadb0b75f55c931a1c2b43feccddec96111e49 suite /tmp/ws2-build-nbop6__v/suite\n0x00007f10ef150000–0x00007f10ef1e0080 493a5257250e4963477b8a6d418481e8db54e2c4 libswift_Concurrency.so /usr/local/swift/usr/lib/swift/linux/libswift_Concurrency.so\n0x00007f10ef1f3000–0x00007f10ef7a41e8 fd1782c519b557fc55329e9a457a811e94945645 libswiftCore.so /usr/local/swift/usr/lib/swift/linux/libswiftCore.so\n\nBacktrace took 0.01s\n\n" - } -] \ No newline at end of file diff --git a/tests/archive/part7/validation/development/logout-params-schema.json b/tests/archive/part7/validation/development/logout-params-schema.json deleted file mode 100644 index a5dd3217..00000000 --- a/tests/archive/part7/validation/development/logout-params-schema.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "schema_version": "0.153.0", - "messages_sha256": "134600f8c998c93ce276a6732b8bfb0fcfe69b6539a9d39ffcd6ddfdcb1d20b3", - "counts": { - "ClientRequest": 71, - "ClientNotification": 13, - "CommandExecutionRequestApprovalResponse": 1 - }, - "schema_sha256": { - "ClientRequest": "25bc001b5dfe3b35785597b8f9ad9e5aaf7e437331fa9921f041c9e0e03fc9f3", - "ClientNotification": "706cf248d75027c84a3c63348d0ed507182e8eba40069dd17541793de029145a", - "CommandExecutionRequestApprovalResponse": "6d0767113e22f311381809b6b236b0dde2b99b01992879c26bf7b1ea0e003cb7" - }, - "failures": [ - { - "line": 70, - "kind": "ClientRequest", - "message": "{'id': 7, 'method': 'account/logout', 'params': {}} is not valid under any of the given schemas", - "path": [] - } - ], - "meaning": "synthetic backend, real candidate outbound bytes; not live CLI, sandbox or authentication proof" -} \ No newline at end of file diff --git a/tests/archive/part7/validation/development/native-first.json b/tests/archive/part7/validation/development/native-first.json deleted file mode 100644 index dd49f5f8..00000000 --- a/tests/archive/part7/validation/development/native-first.json +++ /dev/null @@ -1,66 +0,0 @@ -[ - { - "argv": [ - "cc", - "-std=c11", - "-O2", - "-Wall", - "-Wextra", - "-Werror", - "-c", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Native/WS2Child.c", - "-o", - "/tmp/ws2-build-_v4kl3ku/child.o" - ], - "exit_code": 0, - "elapsed_seconds": 0.11885544699998718, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Native", - "/tmp/ws2-build-_v4kl3ku/child.o", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/Contracts.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/WS2StrictJSON.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/CodexWire.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/WS2OwnedProtocolHost.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/WS2BoundedOutbox.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/WS2DiagnosticTail.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/WS2OwnedScope.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/AgentSessions.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Support/WS2ProjectDirectory.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Support/WS2LocalLaunchProfile.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Support/WS2VersionProbe.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Support/WS2DuplexProcess.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/App/WS2OwnedCodexSession.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/App/WS2OwnedLaunchController.swift", - "/mnt/data/WindowShade2-round2-part7/tests/TestSupport.swift", - "/mnt/data/WindowShade2-round2-part7/tests/NativeTests.swift", - "-o", - "/tmp/ws2-build-_v4kl3ku/suite" - ], - "exit_code": 0, - "elapsed_seconds": 7.228665826999986, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/tmp/ws2-build-_v4kl3ku/suite", - "/mnt/data/WindowShade2-round2-part7/fixtures/native-child.py", - "/opt/pyvenv/bin/python3", - "/mnt/data/WindowShade2-round2-part7/validation/native-results.json" - ], - "exit_code": -4, - "elapsed_seconds": 2.078086082000027, - "stdout": "", - "stderr": "suite/TestSupport.swift:11: Fatal error: FAIL NATIVE02 inherited descriptor descendant cannot delay direct exit: direct exit before descendant's .9 second marker\n\n*** Signal 4: Backtracing from 0x7fdaaf0b6788... done ***\n\n*** Program crashed: Illegal instruction at 0x00007fdaaf0b6788 ***\n\nPlatform: x86_64 Linux (Debian GNU/Linux 13 (trixie))\n\nThread 0 \"suite\":\n\n 0 0x00007fdaad9b9687 in libc.so.6\n 1 [ra] 0x00007fdaaeb1da39 _dispatch_sig_thread + 8 in libdispatch.so\n...\n\nThread 1:\n\n 0 0x00007fdaad9c49ee in libc.so.6\n 1 [ra] 0x00007fdaaeb1ce02 _dispatch_mgr_invoke + 129 in libdispatch.so\n 2 [ra] 0x00007fdaaeb1cd6d _dispatch_mgr_thread + 108 in libdispatch.so\n 3 [ra] 0x00007fdaaeb1fee5 _dispatch_worker_thread + 436 in libdispatch.so\n 4 [ra] 0x00007fdaad9bcb7b in libc.so.6\n...\n\nThread 2:\n\n 0 0x00007fdaad9c49ee in libc.so.6\n...\n\nThread 3:\n\n 0 0x00007fdaad9c49ee in libc.so.6\n...\n\nThread 4 crashed:\n\n 0 0x00007fdaaf0b6788 _assertionFailure(_:_:file:line:flags:) + 264 in libswiftCore.so\n 1 [ra] 0x0000558492bf8850 TestLog.check(_:_:) + 799 in suite\n 2 [ra] 0x0000558492bfb08f static NativeTests.main() + 206 in suite\n 3 [async] 0x0000558492bfe270 static NativeTests.$main() in suite\n 4 [async] [system] 0x0000558492bfe430 async_MainTQ0_ in suite\n 5 [async] [thunk] 0x0000558492bfe4f0 thunk for @escaping @convention(thin) @async () -> () in suite\n 6 [async] [thunk] 0x0000558492bfe5f0 partial apply for thunk for @escaping @convention(thin) @async () -> () in suite\n 7 [async] [system] 0x00007fdaaeda45e0 completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) in libswift_Concurrency.so\n...\n\nThread 5:\n\n 0 0x00007fdaad9c49ee in libc.so.6\n...\n\nThread 6:\n\n 0 0x00007fdaad9c49ee in libc.so.6\n...\n\n\nRegisters:\n\nrax 0x0000000200000003 8589934595\nrdx 0x0000000000000002 2\nrcx 0xfffffffe00000000 18446744065119617024\nrbx 0x0000000000000003 3\nrsi 0x00007fdaa0006d88 03 00 00 00 00 00 00 00 a0 00 00 00 00 00 00 80 ········ ·······\nrdi 0x0000000000000001 1\nrbp 0x00007fdaa9a828d0 00 2a a8 a9 da 7f 00 00 50 88 bf 92 84 55 00 00 ·*¨©Ú···P·¿··U··\nrsp 0x00007fdaa9a82860 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ················\n r8 0x0000000000000090 144\n r9 0x0000000000000078 120\nr10 0x0000000000000000 0\nr11 0x0000000000000000 0\nr12 0x00007fdaa9a83688 00 00 00 00 00 00 00 00 a0 7d 3e be 84 55 00 00 ········ }>¾·U··\nr13 0x00007fdaa9a829a8 78 00 00 00 00 00 00 f0 80 6d 00 a0 da 7f 00 00 x······ð·m· Ú···\nr14 0x00005584be3e8000 b0 7f 3e be 84 55 00 00 70 e2 bf 92 84 55 00 00 °·>¾·U··pâ¿··U··\nr15 0x00005584be3e7da0 20 79 dc ae da 7f 00 00 03 00 00 00 00 00 00 00 yܮڷ··········\nrip 0x00007fdaaf0b6788 0f 0b 48 8d 35 7f 0c fb ff 48 8d 55 a0 45 31 e4 ··H·5··ûÿH·U E1ä\n\nrflags 0x0000000000010206 PF\n\ncs 0x0033 fs 0x0000 gs 0x0000\n\n\nImages (15 omitted):\n\n0x0000558492b30000–0x0000558492bfe931 d9c89da0d92f199470ebff3d68562575b9ffaf26 suite /tmp/ws2-build-_v4kl3ku/suite\n0x00007fdaad92a000–0x00007fdaadab48fd c495b62edadd6c356265942ec1282d98058a7b41 libc.so.6 /usr/lib/x86_64-linux-gnu/libc.so.6\n0x00007fdaaeaeb000–0x00007fdaaeb33240 c6fa65ca766b6c0742ff462bbd97f5f9937651df libdispatch.so /usr/local/swift/usr/lib/swift/linux/libdispatch.so\n0x00007fdaaed31000–0x00007fdaaedc1080 493a5257250e4963477b8a6d418481e8db54e2c4 libswift_Concurrency.so /usr/local/swift/usr/lib/swift/linux/libswift_Concurrency.so\n0x00007fdaaedd4000–0x00007fdaaf3851e8 fd1782c519b557fc55329e9a457a811e94945645 libswiftCore.so /usr/local/swift/usr/lib/swift/linux/libswiftCore.so\n\nBacktrace took 0.03s\n\n" - } -] \ No newline at end of file diff --git a/tests/archive/part7/validation/development/native-startup-cost.json b/tests/archive/part7/validation/development/native-startup-cost.json deleted file mode 100644 index d4ab912f..00000000 --- a/tests/archive/part7/validation/development/native-startup-cost.json +++ /dev/null @@ -1,66 +0,0 @@ -[ - { - "argv": [ - "cc", - "-std=c11", - "-O2", - "-Wall", - "-Wextra", - "-Werror", - "-c", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Native/WS2Child.c", - "-o", - "/tmp/ws2-build-88v9rc1a/child.o" - ], - "exit_code": 0, - "elapsed_seconds": 0.11742164099996444, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Native", - "/tmp/ws2-build-88v9rc1a/child.o", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/Contracts.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/WS2StrictJSON.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/CodexWire.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/WS2OwnedProtocolHost.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/WS2BoundedOutbox.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/WS2DiagnosticTail.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/WS2OwnedScope.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Core/AgentSessions.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Support/WS2ProjectDirectory.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Support/WS2LocalLaunchProfile.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Support/WS2VersionProbe.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/Support/WS2DuplexProcess.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/App/WS2OwnedCodexSession.swift", - "/mnt/data/WindowShade2-round2-handoff-v7/candidate-repo/prototype/App/WS2OwnedLaunchController.swift", - "/mnt/data/WindowShade2-round2-part7/tests/TestSupport.swift", - "/mnt/data/WindowShade2-round2-part7/tests/NativeTests.swift", - "-o", - "/tmp/ws2-build-88v9rc1a/suite" - ], - "exit_code": 0, - "elapsed_seconds": 7.128568485999949, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/tmp/ws2-build-88v9rc1a/suite", - "/mnt/data/WindowShade2-round2-part7/fixtures/native-child.py", - "/opt/pyvenv/bin/python3", - "/mnt/data/WindowShade2-round2-part7/validation/native-results.json" - ], - "exit_code": -4, - "elapsed_seconds": 1.945104653000044, - "stdout": "", - "stderr": "DIAG exited=false termination=nil stopped=false supervision=nil lines=[] elapsed=0.7050373179999951\nsuite/TestSupport.swift:11: Fatal error: FAIL NATIVE02 inherited descriptor descendant cannot delay direct exit: direct exit before descendant's .9 second marker\n\n*** Signal 4: Backtracing from 0x7f944b99a788... done ***\n\n*** Program crashed: Illegal instruction at 0x00007f944b99a788 ***\n\nPlatform: x86_64 Linux (Debian GNU/Linux 13 (trixie))\n\nThread 0 \"suite\":\n\n 0 0x00007f944a29d687 in libc.so.6\n 1 [ra] 0x00007f944b401a39 _dispatch_sig_thread + 8 in libdispatch.so\n...\n\nThread 1:\n\n 0 0x00007f944a2a89ee in libc.so.6\n 1 [ra] 0x00007f944b400e02 _dispatch_mgr_invoke + 129 in libdispatch.so\n 2 [ra] 0x00007f944b400d6d _dispatch_mgr_thread + 108 in libdispatch.so\n 3 [ra] 0x00007f944b403ee5 _dispatch_worker_thread + 436 in libdispatch.so\n 4 [ra] 0x00007f944a2a0b7b in libc.so.6\n...\n\nThread 2:\n\n 0 0x00007f944a2a89ee in libc.so.6\n...\n\nThread 3 crashed:\n\n 0 0x00007f944b99a788 _assertionFailure(_:_:file:line:flags:) + 264 in libswiftCore.so\n 1 [ra] 0x0000560127d1c870 TestLog.check(_:_:) + 799 in suite\n 2 [ra] 0x0000560127d1f808 static NativeTests.main() + 2055 in suite\n 3 [async] 0x0000560127d22be0 static NativeTests.$main() in suite\n 4 [async] [system] 0x0000560127d22da0 async_MainTQ0_ in suite\n 5 [async] [thunk] 0x0000560127d22e60 thunk for @escaping @convention(thin) @async () -> () in suite\n 6 [async] [thunk] 0x0000560127d22f60 partial apply for thunk for @escaping @convention(thin) @async () -> () in suite\n 7 [async] [system] 0x00007f944b6885e0 completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) in libswift_Concurrency.so\n...\n\nThread 4:\n\n 0 0x00007f944a2a89ee in libc.so.6\n...\n\nThread 5:\n\n 0 0x00007f944a2a89ee in libc.so.6\n...\n\n\nRegisters:\n\nrax 0x0000000200000003 8589934595\nrdx 0x0000000000000002 2\nrcx 0xfffffffe00000000 18446744065119617024\nrbx 0x0000000000000003 3\nrsi 0x00007f943c006fd8 03 00 00 00 00 00 00 00 a0 00 00 00 00 00 00 80 ········ ·······\nrdi 0x0000000000000001 1\nrbp 0x00007f9446366750 80 68 36 46 94 7f 00 00 70 c8 d1 27 01 56 00 00 ·h6F····pÈÑ'·V··\nrsp 0x00007f94463666e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ················\n r8 0x0000000000000090 144\n r9 0x0000000000000078 120\nr10 0x0000000000000000 0\nr11 0x0000000000000000 0\nr12 0x00007f9446367688 00 00 00 00 00 00 00 00 a0 8d e9 3e 01 56 00 00 ········ ·é>·V··\nr13 0x00007f9446366828 78 00 00 00 00 00 00 f0 d0 6f 00 3c 94 7f 00 00 x······ðÐo·<····\nr14 0x000056013ee99000 b0 8f e9 3e 01 56 00 00 e0 2b d2 27 01 56 00 00 °·é>·V··à+Ò'·V··\nr15 0x000056013ee98da0 20 b9 6a 4b 94 7f 00 00 03 00 00 00 00 00 00 00 ¹jK············\nrip 0x00007f944b99a788 0f 0b 48 8d 35 7f 0c fb ff 48 8d 55 a0 45 31 e4 ··H·5··ûÿH·U E1ä\n\nrflags 0x0000000000010202 \n\ncs 0x0033 fs 0x0000 gs 0x0000\n\n\nImages (15 omitted):\n\n0x0000560127c53000–0x0000560127d232a1 b4c01e970b4ad5061eeaa325941b029fc2a731c0 suite /tmp/ws2-build-88v9rc1a/suite\n0x00007f944a20e000–0x00007f944a3988fd c495b62edadd6c356265942ec1282d98058a7b41 libc.so.6 /usr/lib/x86_64-linux-gnu/libc.so.6\n0x00007f944b3cf000–0x00007f944b417240 c6fa65ca766b6c0742ff462bbd97f5f9937651df libdispatch.so /usr/local/swift/usr/lib/swift/linux/libdispatch.so\n0x00007f944b615000–0x00007f944b6a5080 493a5257250e4963477b8a6d418481e8db54e2c4 libswift_Concurrency.so /usr/local/swift/usr/lib/swift/linux/libswift_Concurrency.so\n0x00007f944b6b8000–0x00007f944bc691e8 fd1782c519b557fc55329e9a457a811e94945645 libswiftCore.so /usr/local/swift/usr/lib/swift/linux/libswiftCore.so\n\nBacktrace took 0.01s\n\n" - } -] \ No newline at end of file diff --git a/tests/archive/part7/validation/development/strict-json-optional-pattern.txt b/tests/archive/part7/validation/development/strict-json-optional-pattern.txt deleted file mode 100644 index e5f041fe..00000000 --- a/tests/archive/part7/validation/development/strict-json-optional-pattern.txt +++ /dev/null @@ -1 +0,0 @@ -Initial typecheck failed: expression pattern ClosedRange cannot match UInt8? at WS2StrictJSON.swift:48. Corrected by unwrapping the byte before the grammar switch. This is a retained development failure, not a final result. diff --git a/tests/archive/part7/validation/exit-inheritance-probe.json b/tests/archive/part7/validation/exit-inheritance-probe.json deleted file mode 100644 index aa8b7d38..00000000 --- a/tests/archive/part7/validation/exit-inheritance-probe.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "criterion" : "close before the fixture descendant's 0.8s late write; test tolerance <0.7s", - "directChildExitObserved" : true, - "elapsedSeconds" : 0.02347430199995415, - "notProven" : "Mac behavior; tree cleanup; immediate direct-child exit notification", - "probe" : "PROC04", - "receivedLines" : [ - "{\"parent\":1}" - ], - "status" : "OBSERVED_PASS" -} \ No newline at end of file diff --git a/tests/archive/part7/validation/flow-commands.json b/tests/archive/part7/validation/flow-commands.json deleted file mode 100644 index e2f6e890..00000000 --- a/tests/archive/part7/validation/flow-commands.json +++ /dev/null @@ -1,66 +0,0 @@ -[ - { - "argv": [ - "cc", - "-std=c11", - "-O2", - "-Wall", - "-Wextra", - "-Werror", - "-c", - "/Users/aaron/Documents/WindowShade/prototype/Native/WS2Child.c", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-2s2fuwsw/child.o" - ], - "exit_code": 0, - "elapsed_seconds": 0.46751025001867674, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/Users/aaron/Documents/WindowShade/prototype/Native", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-2s2fuwsw/child.o", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2QuitBarrier.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedProtocolHost.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedScope.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/AgentSessions.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2ProjectDirectory.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2LocalLaunchProfile.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2VersionProbe.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedCodexSession.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedLaunchController.swift", - "/Users/aaron/Documents/WindowShade/tests/part7/tests/TestSupport.swift", - "/Users/aaron/Documents/WindowShade/tests/part7/tests/FlowTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-2s2fuwsw/suite" - ], - "exit_code": 0, - "elapsed_seconds": 16.558473708020756, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-2s2fuwsw/suite", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-2s2fuwsw/fake-codex.py", - "/Users/aaron/Documents/WindowShade/tests/part7/validation/flow-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 25.52074870900833, - "stdout": "PASS FLOW01 local launch and actual stream completion [21]\nPASS FLOW02 resume only the locally associated project [8]\nPASS FLOW03 different project cannot reuse old thread [6]\nPASS FLOW04 actual login response and exact login ID [10]\nPASS FLOW05 interrupt RPC is not final completion [12]\nPASS FLOW06 elevation always declined by local entry [9]\nPASS FLOW07 failed turn is not successful completion [7]\nPASS FLOW08 mismatched version [7]\nPASS FLOW09 effective config mismatch [7]\nPASS FLOW10 duplicate raw JSON [7]\nPASS FLOW11 reject arbitrary auth URL [7]\nPASS FLOW12 unrelated login completion cannot authenticate [6]\nPASS FLOW13 project replacement invalidates submission [6]\nPASS FLOW14 actual lock invalidation and no automatic restart [6]\nPASS FLOW15 diagnostics are opt-in and clearable [7]\nPASS FLOW16 version-probe cancellation still awaits reaping [6]\nPASS FLOW17 version timeout does not invent a reap receipt [5]\nPASS FLOW18 login cancellation requires fresh account verification [8]\nTOTAL 18 scenarios, 145 assertions\n", - "stderr": "" - } -] \ No newline at end of file diff --git a/tests/archive/part7/validation/flow-outbound.ndjson b/tests/archive/part7/validation/flow-outbound.ndjson deleted file mode 100644 index a9ee5c45..00000000 --- a/tests/archive/part7/validation/flow-outbound.ndjson +++ /dev/null @@ -1,92 +0,0 @@ -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-7D2FA03E-3A80-476A-B7F5-61200270B268/normal-BA1A4028-0265-494F-B6DC-3E0F879CD101/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "thread/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-7D2FA03E-3A80-476A-B7F5-61200270B268/normal-BA1A4028-0265-494F-B6DC-3E0F879CD101/project", "model": "fixture-a", "sandbox": "read-only"}} -{"id": 6, "method": "turn/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "effort": "medium", "input": [{"text": "\u4f60\u597d", "text_elements": [], "type": "text"}], "model": "fixture-a", "sandboxPolicy": {"networkAccess": false, "type": "readOnly"}, "threadId": "thread-real-fixture"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-7D2FA03E-3A80-476A-B7F5-61200270B268/normal-BA1A4028-0265-494F-B6DC-3E0F879CD101/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "thread/resume", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "sandbox": "read-only", "threadId": "thread-real-fixture"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-7D2FA03E-3A80-476A-B7F5-61200270B268/other", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-7D2FA03E-3A80-476A-B7F5-61200270B268/login-wrong-id-F3DB3EB7-F335-49B6-B356-6F69CAAE2D54/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "account/login/start", "params": {"type": "chatgpt"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-7D2FA03E-3A80-476A-B7F5-61200270B268/directory-C155547E-4314-4BAC-A3D9-D4AAD6320296/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-7D2FA03E-3A80-476A-B7F5-61200270B268/lock/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "thread/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-7D2FA03E-3A80-476A-B7F5-61200270B268/lock/project", "model": "fixture-a", "sandbox": "read-only"}} -{"id": 6, "method": "turn/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "effort": "medium", "input": [{"text": "\u9501\u5b9a\u6d4b\u8bd5", "text_elements": [], "type": "text"}], "model": "fixture-a", "sandboxPolicy": {"networkAccess": false, "type": "readOnly"}, "threadId": "thread-real-fixture"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-7D2FA03E-3A80-476A-B7F5-61200270B268/url-3F05BC9A-7DA1-4A52-9272-8D9E72F3DD39/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "account/login/start", "params": {"type": "chatgpt"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-7D2FA03E-3A80-476A-B7F5-61200270B268/login-2FC0B545-FDD4-4CCB-B652-ED6DC83253D6/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "account/login/start", "params": {"type": "chatgpt"}} -{"id": 6, "method": "account/read", "params": {"refreshToken": false}} -{"id": 7, "method": "account/logout"} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-7D2FA03E-3A80-476A-B7F5-61200270B268/failed-2ADED199-28FB-4282-AEBF-EF98B60A517C/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "thread/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-7D2FA03E-3A80-476A-B7F5-61200270B268/failed-2ADED199-28FB-4282-AEBF-EF98B60A517C/project", "model": "fixture-a", "sandbox": "read-only"}} -{"id": 6, "method": "turn/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "effort": "medium", "input": [{"text": "\u5931\u8d25\u6d4b\u8bd5", "text_elements": [], "type": "text"}], "model": "fixture-a", "sandboxPolicy": {"networkAccess": false, "type": "readOnly"}, "threadId": "thread-real-fixture"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-7D2FA03E-3A80-476A-B7F5-61200270B268/approval-479BC910-88AC-4F88-A264-CE1C91230E67/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "thread/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-7D2FA03E-3A80-476A-B7F5-61200270B268/approval-479BC910-88AC-4F88-A264-CE1C91230E67/project", "model": "fixture-a", "sandbox": "read-only"}} -{"id": 6, "method": "turn/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "effort": "medium", "input": [{"text": "\u67e5\u8be2", "text_elements": [], "type": "text"}], "model": "fixture-a", "sandboxPolicy": {"networkAccess": false, "type": "readOnly"}, "threadId": "thread-real-fixture"}} -{"id": "approval-fixture", "result": {"decision": "decline"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-7D2FA03E-3A80-476A-B7F5-61200270B268/config-14CC9CE7-8BA4-457C-AB68-7E63663B4B99/project", "includeLayers": true}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-7D2FA03E-3A80-476A-B7F5-61200270B268/diagnostics-9B022E7A-724F-463D-AD78-8E95120E9CB3/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "thread/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-7D2FA03E-3A80-476A-B7F5-61200270B268/diagnostics-9B022E7A-724F-463D-AD78-8E95120E9CB3/project", "model": "fixture-a", "sandbox": "read-only"}} -{"id": 6, "method": "turn/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "effort": "medium", "input": [{"text": "\u8bca\u65ad", "text_elements": [], "type": "text"}], "model": "fixture-a", "sandboxPolicy": {"networkAccess": false, "type": "readOnly"}, "threadId": "thread-real-fixture"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-7D2FA03E-3A80-476A-B7F5-61200270B268/login-cancel-07EDE838-6158-4082-ACA1-2AAAE6FDF6A2/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "account/login/start", "params": {"type": "chatgpt"}} -{"id": 6, "method": "account/login/cancel", "params": {"loginId": "login-fixture"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-7D2FA03E-3A80-476A-B7F5-61200270B268/hold-86C6319D-651F-4962-B639-DAA5F4635CAF/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "thread/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-7D2FA03E-3A80-476A-B7F5-61200270B268/hold-86C6319D-651F-4962-B639-DAA5F4635CAF/project", "model": "fixture-a", "sandbox": "read-only"}} -{"id": 6, "method": "turn/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "effort": "medium", "input": [{"text": "\u505c\u5728\u8fd9\u91cc", "text_elements": [], "type": "text"}], "model": "fixture-a", "sandboxPolicy": {"networkAccess": false, "type": "readOnly"}, "threadId": "thread-real-fixture"}} -{"id": 7, "method": "turn/interrupt", "params": {"threadId": "thread-real-fixture", "turnId": "turn-1"}} diff --git a/tests/archive/part7/validation/flow-results.json b/tests/archive/part7/validation/flow-results.json deleted file mode 100644 index 67078c03..00000000 --- a/tests/archive/part7/validation/flow-results.json +++ /dev/null @@ -1,92 +0,0 @@ -[ - { - "assertions" : 21, - "name" : "FLOW01 local launch and actual stream completion", - "result" : "PASS" - }, - { - "assertions" : 8, - "name" : "FLOW02 resume only the locally associated project", - "result" : "PASS" - }, - { - "assertions" : 6, - "name" : "FLOW03 different project cannot reuse old thread", - "result" : "PASS" - }, - { - "assertions" : 10, - "name" : "FLOW04 actual login response and exact login ID", - "result" : "PASS" - }, - { - "assertions" : 12, - "name" : "FLOW05 interrupt RPC is not final completion", - "result" : "PASS" - }, - { - "assertions" : 9, - "name" : "FLOW06 elevation always declined by local entry", - "result" : "PASS" - }, - { - "assertions" : 7, - "name" : "FLOW07 failed turn is not successful completion", - "result" : "PASS" - }, - { - "assertions" : 7, - "name" : "FLOW08 mismatched version", - "result" : "PASS" - }, - { - "assertions" : 7, - "name" : "FLOW09 effective config mismatch", - "result" : "PASS" - }, - { - "assertions" : 7, - "name" : "FLOW10 duplicate raw JSON", - "result" : "PASS" - }, - { - "assertions" : 7, - "name" : "FLOW11 reject arbitrary auth URL", - "result" : "PASS" - }, - { - "assertions" : 6, - "name" : "FLOW12 unrelated login completion cannot authenticate", - "result" : "PASS" - }, - { - "assertions" : 6, - "name" : "FLOW13 project replacement invalidates submission", - "result" : "PASS" - }, - { - "assertions" : 6, - "name" : "FLOW14 actual lock invalidation and no automatic restart", - "result" : "PASS" - }, - { - "assertions" : 7, - "name" : "FLOW15 diagnostics are opt-in and clearable", - "result" : "PASS" - }, - { - "assertions" : 6, - "name" : "FLOW16 version-probe cancellation still awaits reaping", - "result" : "PASS" - }, - { - "assertions" : 5, - "name" : "FLOW17 version timeout does not invent a reap receipt", - "result" : "PASS" - }, - { - "assertions" : 8, - "name" : "FLOW18 login cancellation requires fresh account verification", - "result" : "PASS" - } -] \ No newline at end of file diff --git a/tests/archive/part7/validation/input-integrity.json b/tests/archive/part7/validation/input-integrity.json deleted file mode 100644 index 7d3e4235..00000000 --- a/tests/archive/part7/validation/input-integrity.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "baseline_archive": "WindowShade2-round2-handoff-v6.zip", - "baseline_files": 1145, - "archive_matches_extracted_baseline": true, - "baseline_unchanged": true, - "candidate_files": 1157, - "staged_copy_matches_candidate": true, - "changes": 21, - "markdown_broken_local_links": [], - "meaning": "byte integrity, not functional verification" -} diff --git a/tests/archive/part7/validation/mac-check-exit-code.txt b/tests/archive/part7/validation/mac-check-exit-code.txt deleted file mode 100644 index 8e14edce..00000000 --- a/tests/archive/part7/validation/mac-check-exit-code.txt +++ /dev/null @@ -1 +0,0 @@ -78 diff --git a/tests/archive/part7/validation/mac-check-not-run.txt b/tests/archive/part7/validation/mac-check-not-run.txt deleted file mode 100644 index 3fbc864b..00000000 --- a/tests/archive/part7/validation/mac-check-not-run.txt +++ /dev/null @@ -1 +0,0 @@ -NOT RUN: requires macOS SDK and Metal tools diff --git a/tests/archive/part7/validation/main.autolink b/tests/archive/part7/validation/main.autolink deleted file mode 100644 index 2cf8b7cb..00000000 --- a/tests/archive/part7/validation/main.autolink +++ /dev/null @@ -1,16 +0,0 @@ --lswiftSwiftOnoneSupport --lswiftCore --lswift_Concurrency --lswift_StringProcessing --lswift_RegexParser --lswiftGlibc --lBlocksRuntime --ldispatch --lswiftDispatch --lFoundation --lFoundationEssentials --lFoundationInternationalization --lm --lpthread --lutil --ldl diff --git a/tests/archive/part7/validation/native-commands.json b/tests/archive/part7/validation/native-commands.json deleted file mode 100644 index db259bc8..00000000 --- a/tests/archive/part7/validation/native-commands.json +++ /dev/null @@ -1,67 +0,0 @@ -[ - { - "argv": [ - "cc", - "-std=c11", - "-O2", - "-Wall", - "-Wextra", - "-Werror", - "-c", - "/Users/aaron/Documents/WindowShade/prototype/Native/WS2Child.c", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-r0ib876m/child.o" - ], - "exit_code": 0, - "elapsed_seconds": 0.18583483301335946, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/Users/aaron/Documents/WindowShade/prototype/Native", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-r0ib876m/child.o", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2QuitBarrier.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedProtocolHost.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedScope.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/AgentSessions.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2ProjectDirectory.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2LocalLaunchProfile.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2VersionProbe.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedCodexSession.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedLaunchController.swift", - "/Users/aaron/Documents/WindowShade/tests/part7/tests/TestSupport.swift", - "/Users/aaron/Documents/WindowShade/tests/part7/tests/NativeTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-r0ib876m/suite" - ], - "exit_code": 0, - "elapsed_seconds": 14.977509832999203, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-r0ib876m/suite", - "/Users/aaron/Documents/WindowShade/tests/part7/fixtures/native-child.py", - "/opt/homebrew/bin/python3", - "/Users/aaron/Documents/WindowShade/tests/part7/validation/native-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 2.7173595830099657, - "stdout": "PASS NATIVE01 direct child ignores TERM then owned group KILL [6]\nPASS NATIVE02 inherited descriptor descendant cannot delay direct exit [5]\nPASS NATIVE03 unrelated descriptors do not reach child [3]\nTOTAL 3 scenarios, 14 assertions\n", - "stderr": "DIAG exited=true termination=Optional(suite.WS2DuplexProcess.Termination(status: 0, wasSignalled: false)) stopped=true supervision=nil lines=[\"{\\\"parent\\\":1}\"] elapsed=0.17588012502528727\n" - } -] \ No newline at end of file diff --git a/tests/archive/part7/validation/native-results.json b/tests/archive/part7/validation/native-results.json deleted file mode 100644 index e4afbc2b..00000000 --- a/tests/archive/part7/validation/native-results.json +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "assertions" : 6, - "name" : "NATIVE01 direct child ignores TERM then owned group KILL", - "result" : "PASS" - }, - { - "assertions" : 5, - "name" : "NATIVE02 inherited descriptor descendant cannot delay direct exit", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "NATIVE03 unrelated descriptors do not reach child", - "result" : "PASS" - } -] \ No newline at end of file diff --git a/tests/archive/part7/validation/regression-PROC04-results.json b/tests/archive/part7/validation/regression-PROC04-results.json deleted file mode 100644 index 65f17e3a..00000000 --- a/tests/archive/part7/validation/regression-PROC04-results.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "criterion" : "close before the fixture descendant's 0.8s late write; test tolerance <0.7s", - "directChildExitObserved" : true, - "elapsedSeconds" : 0.097053458332084119, - "notProven" : "Mac behavior; tree cleanup; immediate direct-child exit notification", - "probe" : "PROC04", - "receivedLines" : [ - "{\"parent\":1}" - ], - "status" : "OBSERVED_PASS" -} \ No newline at end of file diff --git a/tests/archive/part7/validation/regression-part2-outbound.ndjson b/tests/archive/part7/validation/regression-part2-outbound.ndjson deleted file mode 100644 index f750edd4..00000000 --- a/tests/archive/part7/validation/regression-part2-outbound.ndjson +++ /dev/null @@ -1,9 +0,0 @@ -{"id":1,"method":"initialize","params":{"clientInfo":{"name":"windowshade","version":"2-probe"}}} -{"method":"initialized"} -{"id":2,"method":"model/list","params":{"includeHidden":false,"limit":100}} -{"id":3,"method":"thread/start","params":{"approvalPolicy":"on-request","approvalsReviewer":"user","cwd":"/fixture","model":"test-model","sandbox":"read-only"}} -{"id":4,"method":"turn/start","params":{"approvalPolicy":"on-request","approvalsReviewer":"user","effort":"high","input":[{"text":"Hello","text_elements":[],"type":"text"}],"model":"test-model","sandboxPolicy":{"networkAccess":false,"type":"readOnly"},"threadId":"thread-one"}} -{"id":5,"method":"turn/steer","params":{"expectedTurnId":"turn-one","input":[{"text":"x","text_elements":[],"type":"text"}],"threadId":"thread-one"}} -{"id":6,"method":"turn/interrupt","params":{"threadId":"thread-one","turnId":"turn-one"}} -{"id":7,"result":{"decision":"decline"}} -{"id":"7","result":{"decision":"decline"}} diff --git a/tests/archive/part7/validation/regression-part5-core-results.json b/tests/archive/part7/validation/regression-part5-core-results.json deleted file mode 100644 index 241e0465..00000000 --- a/tests/archive/part7/validation/regression-part5-core-results.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "assertions" : 97, - "crypto" : "mock engine: sequencing only", - "failures" : [ - - ], - "scenarios" : 40 -} \ No newline at end of file diff --git a/tests/archive/part7/validation/regression-part5-process-results.json b/tests/archive/part7/validation/regression-part5-process-results.json deleted file mode 100644 index abd90701..00000000 --- a/tests/archive/part7/validation/regression-part5-process-results.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "assertions" : 26, - "backend" : "owned Python fixture; no real assistant or network", - "failures" : [ - - ], - "scenarios" : 8 -} \ No newline at end of file diff --git a/tests/archive/part7/validation/regression-part6-core-results.json b/tests/archive/part7/validation/regression-part6-core-results.json deleted file mode 100644 index 54d0fe16..00000000 --- a/tests/archive/part7/validation/regression-part6-core-results.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "assertions" : 95, - "boundary" : "Foundation reducers and temporary local filesystem; no Mac SDK, network, authorization or AX", - "cases" : [ - "ARB01 opened page cannot evict review", - "ARB02 exact opened lease replacement cancels once", - "ARB03 same priority without explicit navigation busy", - "ARB04 stale replacement cannot evict newer page", - "ARB05 authorization preempts opened page", - "ARB06 equal authorization never replaces review", - "ARB07 synchronous disable barrier aborts replacement", - "ARB08 reentrant acquire in cancellation refused", - "ARB09 invalid request does not remove existing page", - "ARB10 clock rollback safety invalidation still works", - "ARB11 display removal during callback aborts replacement", - "ARB12 expired expected handle is not resurrected", - "SCP01 cannot begin before local enable and unlock", - "SCP02 project switch invalidates queued work", - "SCP03 relock and unlock never restores old ticket", - "SCP04 path replacement and connection restart rejected", - "SCP05 backend session validation and epoch binding", - "SCP06 disabled state and explicit clear reject", - "DIR01 actual symlink and directory replacement observations", - "DIR02 containment uses path boundary not string prefix", - "DIR03 non-directory and missing path fail", - "SEL01 stable selection survives reorder", - "SEL02 disabled rows skipped and no wrap", - "SEL03 stale events rejected after snapshot", - "SEL04 activation consumed exactly once", - "SEL05 selection movement invalidates activation", - "SEL06 duplicate snapshot fails closed", - "SEL07 disabled selection chooses enabled row and empty is valid", - "SEL08 revoke invalidates queued activation", - "SEL09 snapshot size and identifier bounds", - "NET01 unauthenticated connections globally bounded", - "NET02 pair setup requires local window and cannot extend deadline", - "NET03 one connection per verified peer", - "NET04 deadline rejects promotion and stale generation", - "NET05 per-connection and aggregate queue bounds", - "NET06 total connection cap includes authenticated sessions", - "NET07 clock rollback halts and clears buffers", - "NET08 close releases allocation and stale handle fails", - "DIAG01 bounded suffix and observed versus retained bytes", - "DIAG02 control sequences cannot act as terminal escapes", - "DIAG03 invalid UTF8 and clear bounded memory", - "DIAG04 large append never retains more than capacity" - ], - "failures" : [ - - ], - "scenarios" : 42 -} \ No newline at end of file diff --git a/tests/archive/part7/validation/regression-part6-process-results.json b/tests/archive/part7/validation/regression-part6-process-results.json deleted file mode 100644 index b06b07df..00000000 --- a/tests/archive/part7/validation/regression-part6-process-results.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "assertions" : 27, - "boundary" : "Real Python child\/pipe\/one short-lived fork fixture, no CLI service, Mac SDK, network, or process-tree kill", - "cases" : [ - "PROC01 explicit bounded diagnostic tail does not block stdout", - "PROC02 default diagnostics stays disabled", - "PROC03 direct child exit status is separate from protocol outcome", - "PROC05 partial final frame rejected", - "PROC06 coalesced trailing frames retain ordering", - "PROC07 stop closes transport once and waits for independent exit evidence", - "PROC08 diagnostic buffer can be explicitly cleared", - "PROC09 invalid diagnostic limit rejected before spawning", - "PROC10 late scope change blocks an admitted frame" - ], - "failures" : [ - - ], - "scenarios" : 9 -} \ No newline at end of file diff --git a/tests/archive/part7/validation/regression-part6-wire-outbound.ndjson b/tests/archive/part7/validation/regression-part6-wire-outbound.ndjson deleted file mode 100644 index 73286cb3..00000000 --- a/tests/archive/part7/validation/regression-part6-wire-outbound.ndjson +++ /dev/null @@ -1,4 +0,0 @@ -{"id":3,"method":"thread/start","params":{"approvalPolicy":"on-request","approvalsReviewer":"user","cwd":"/tmp/fixture-project","model":"test-model","sandbox":"read-only"}} -{"id":4,"method":"turn/start","params":{"approvalPolicy":"on-request","approvalsReviewer":"user","effort":"medium","input":[{"text":"Synthetic request","text_elements":[],"type":"text"}],"model":"test-model","sandboxPolicy":{"networkAccess":false,"type":"readOnly"},"threadId":"t"}} -{"id":3,"method":"thread/resume","params":{"approvalPolicy":"on-request","approvalsReviewer":"user","sandbox":"read-only","threadId":"known-thread"}} -{"id":3,"method":"model/list","params":{"cursor":"next","includeHidden":false,"limit":100}} diff --git a/tests/archive/part7/validation/regression-part6-wire-results.json b/tests/archive/part7/validation/regression-part6-wire-results.json deleted file mode 100644 index 077b0dfd..00000000 --- a/tests/archive/part7/validation/regression-part6-wire-results.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "assertions" : 11, - "boundary" : "Synthetic CodexWire fixtures; no real CLI or sandbox enforcement", - "failures" : [ - - ], - "scenarios" : 5 -} \ No newline at end of file diff --git a/tests/archive/part7/validation/regressions-foundation.json b/tests/archive/part7/validation/regressions-foundation.json deleted file mode 100644 index 604ee72f..00000000 --- a/tests/archive/part7/validation/regressions-foundation.json +++ /dev/null @@ -1,241 +0,0 @@ -[ - { - "argv": [ - "cc", - "-std=c11", - "-O2", - "-Wall", - "-Wextra", - "-Werror", - "-c", - "/Users/aaron/Documents/WindowShade/prototype/Native/WS2Child.c", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-l78nmdmc/child.o" - ], - "exit_code": 0, - "elapsed_seconds": 0.1584802919824142, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedScope.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2SelectionModel.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2ConnectionBudget.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/InteractionCoordinator.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2ProjectDirectory.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part6/tests/CoreTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-l78nmdmc/part6-core" - ], - "exit_code": 0, - "elapsed_seconds": 5.059817041998031, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-l78nmdmc/part6-core", - "/Users/aaron/Documents/WindowShade/tests/part7/validation/regression-part6-core-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 0.3367501249886118, - "stdout": "SCENE ARB01 opened page cannot evict review\nSCENE ARB02 exact opened lease replacement cancels once\nSCENE ARB03 same priority without explicit navigation busy\nSCENE ARB04 stale replacement cannot evict newer page\nSCENE ARB05 authorization preempts opened page\nSCENE ARB06 equal authorization never replaces review\nSCENE ARB07 synchronous disable barrier aborts replacement\nSCENE ARB08 reentrant acquire in cancellation refused\nSCENE ARB09 invalid request does not remove existing page\nSCENE ARB10 clock rollback safety invalidation still works\nSCENE ARB11 display removal during callback aborts replacement\nSCENE ARB12 expired expected handle is not resurrected\nSCENE SCP01 cannot begin before local enable and unlock\nSCENE SCP02 project switch invalidates queued work\nSCENE SCP03 relock and unlock never restores old ticket\nSCENE SCP04 path replacement and connection restart rejected\nSCENE SCP05 backend session validation and epoch binding\nSCENE SCP06 disabled state and explicit clear reject\nSCENE DIR01 actual symlink and directory replacement observations\nSCENE DIR02 containment uses path boundary not string prefix\nSCENE DIR03 non-directory and missing path fail\nSCENE SEL01 stable selection survives reorder\nSCENE SEL02 disabled rows skipped and no wrap\nSCENE SEL03 stale events rejected after snapshot\nSCENE SEL04 activation consumed exactly once\nSCENE SEL05 selection movement invalidates activation\nSCENE SEL06 duplicate snapshot fails closed\nSCENE SEL07 disabled selection chooses enabled row and empty is valid\nSCENE SEL08 revoke invalidates queued activation\nSCENE SEL09 snapshot size and identifier bounds\nSCENE NET01 unauthenticated connections globally bounded\nSCENE NET02 pair setup requires local window and cannot extend deadline\nSCENE NET03 one connection per verified peer\nSCENE NET04 deadline rejects promotion and stale generation\nSCENE NET05 per-connection and aggregate queue bounds\nSCENE NET06 total connection cap includes authenticated sessions\nSCENE NET07 clock rollback halts and clears buffers\nSCENE NET08 close releases allocation and stale handle fails\nSCENE DIAG01 bounded suffix and observed versus retained bytes\nSCENE DIAG02 control sequences cannot act as terminal escapes\nSCENE DIAG03 invalid UTF8 and clear bounded memory\nSCENE DIAG04 large append never retains more than capacity\nRESULT scenarios=42 assertions=95 failures=0\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part6/tests/WireProfileTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-l78nmdmc/part6-wire" - ], - "exit_code": 0, - "elapsed_seconds": 3.326978875003988, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-l78nmdmc/part6-wire", - "/Users/aaron/Documents/WindowShade/tests/part7/validation/regression-part6-wire-results.json", - "/Users/aaron/Documents/WindowShade/tests/part7/validation/regression-part6-wire-outbound.ndjson" - ], - "exit_code": 0, - "elapsed_seconds": 0.2591869169846177, - "stdout": "RESULT scenarios=5 assertions=11 failures=0\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2FocusWindowOwnership.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DeviceInputGate.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/PairingAttemptWindow.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/PairingTLV.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2FocusEffectPlan.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2SemanticInputRouter.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2PeerRepository.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2PairSetupServer.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part5/tests/CoreTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-l78nmdmc/part5-core" - ], - "exit_code": 0, - "elapsed_seconds": 7.069126832997426, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-l78nmdmc/part5-core", - "/Users/aaron/Documents/WindowShade/tests/part7/validation/regression-part5-core-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 0.2700726249895524, - "stdout": "SCENE Q01 atomic batch and FIFO partial write\nSCENE Q02 rejected batch does not keep prefix\nSCENE Q03 expired partial write closes connection\nSCENE Q04 old generation denied\nSCENE Q05 clock and invalid completion checks\nSCENE Q06 zero record and record limit\nSCENE Q07 later earlier-deadline frame poisons whole stream\nSCENE K01 missing snapshot does not create identity\nSCENE K02 durable enroll and reload\nSCENE K03 revoke persists and invalidates old revision\nSCENE K04 write failure is not successful persistent revocation\nSCENE K05 malformed snapshot blocks instead of resetting\nSCENE K06 enrolled identifier never silently overwritten\nSCENE K07 peer cap and attempts marker survive reload\nSCENE K08 read failure does not look like no saved peers\nSCENE P01 M1 through M6 commits before return, no crypto claim\nSCENE P02 cannot pair without local PIN window\nSCENE P03 wrong sequence closes session\nSCENE P04 three failures enforce five minute cooldown across new connections\nSCENE P05 restart incomplete imposes fresh cooldown\nSCENE P06 persistence failure never releases M6\nSCENE P07 concurrent setup not admitted\nSCENE P08 expired M3 closes and clears\nSCENE P09 malformed TLV and invalid PIN\nSCENE P10 cancellation/reopening does not reset failure count\nSCENE F01 phase barrier restores before retucking same window\nSCENE F02 cancelled late tuck compensates before anything new\nSCENE F03 manual user change relinquishes ownership\nSCENE F04 unknown completion blocks future phases\nSCENE F05 locked completion waits for verified unlock\nSCENE F06 duplicate completion cannot mutate new transaction\nSCENE F07 restored revision must advance\nSCENE F08 duplicate window identity is rejected\nSCENE F09 failed restore blocks rest tucks\nSCENE I01 semantic ticket consumed once\nSCENE I02 stale lease cannot dispatch\nSCENE I03 approval domain has no remote confirm\nSCENE I04 final lock recheck\nSCENE I05 interrupt not accepted in desktop\nSCENE I06 forged intent does not reuse reserved press\nRESULT scenarios=40 assertions=97 failures=0\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/FocusTimer.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2CompanionFrame.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2ApprovalReview.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DeviceInputGate.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2FocusWindowOwnership.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part4/tests/CoreTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-l78nmdmc/part4-core" - ], - "exit_code": 0, - "elapsed_seconds": 7.188579209003365, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-l78nmdmc/part4-core", - "/Users/aaron/Documents/WindowShade/tests/part7/validation" - ], - "exit_code": 0, - "elapsed_seconds": 0.2902255420049187, - "stdout": "PASS FOC-01 pending-preset-keeps-current-deadline\nPASS FOC-02 next-start-uses-pending-values\nPASS FOC-03 changing-tuck-does-not-lose-restore\nPASS FOC-04 enabling-tuck-does-not-invent-ownership\nPASS FOC-05-pause-configuration-does-not-resume\nPASS FOC-06-locked-and-manual-pause-independent\nPASS FOC-07-rest-continues-through-lock\nPASS FOC-08-no-automatic-next-focus\nPASS FOC-09-visibility-wake-budget\nPASS FOC-10-progress-uses-active-duration\nPASS FOC-11-backwards-clock-refused\nPASS FOC-12-next-run-retains-daily-count-and-token-sequence\nPASS FRM-01-fragmented-at-every-boundary\nPASS FRM-02-multiple-frames-one-read\nPASS FRM-03-big-endian-length\nPASS FRM-04-oversized-header-terminates\nPASS FRM-05-unknown-type-terminates\nPASS FRM-06-truncated-tag-terminates\nPASS FRM-07-local-payload-limit\nPASS FRM-08-bounded-read-batch\nPASS FRM-09-bounded-frame-count\nPASS FRM-10-data-slice-safe\nPASS NON-01-little-endian-prefix\nPASS NON-02-no-repeat\nPASS NON-03-no-wrap\nPASS NON-04-terminal-close\nPASS APR-01-complete-command-review\nPASS APR-02-wrong-thread\nPASS APR-03-empty-command\nPASS APR-04-relative-cwd\nPASS APR-05-stdin-kind\nPASS APR-06-unknown-field\nPASS APR-07-network-request\nPASS APR-08-policy-upgrade\nPASS APR-09-remote-environment\nPASS APR-10-missing-time\nPASS APR-11-long-command\nPASS APR-12-file-without-diff-not-reviewable\nPASS APR-13-request-id-type-bound\nPASS APR-14-whitespace-in-command-bound\nPASS APR-15-bidi-is-visible-not-silently-dropped\nPASS APR-16-cannot-confirm-before-layout\nPASS APR-17-preheld-input-refused\nPASS APR-18-old-sequence-refused\nPASS APR-19-fresh-confirm-then-grant-still-required\nPASS APR-20-target-change-invalidates-confirmation\nPASS APR-21-duplicate-confirmation-refused\nPASS APR-22-clear-revokes-review\nPASS WIRE-01-accept-once-actual-encoded-response\nPASS WIRE-02-no-duplicate-accept\nPASS WIRE-03-wrong-payload-refused\nPASS WIRE-04-file-not-allowed-by-command-path\nPASS WIRE-05-turn-complete-clears-approval\nPASS WIRE-06-string-id-preserved\nPASS DEV-01-default-disabled\nPASS DEV-02-neutral-required-after-enable\nPASS DEV-03-fresh-press-release-pair\nPASS DEV-04-reconnect-requires-new-consent\nPASS DEV-05-lock-revokes\nPASS DEV-06-review-domain-cannot-begin-control\nPASS DEV-08-domain-change-cancels-and-requires-neutral\nPASS DEV-09-unannounced-domain-change-suspends\nPASS APR-23-visible-context-escapes-bidi\nPASS DEV-07-replay-suspends\nPASS HID-01-exact-device-and-known-usage\nPASS HID-02-unknown-and-nonbinary-pass-through\nPASS OWN-01-only-completed-effects-recorded\nPASS OWN-02-exact-owner-one-use\nPASS OWN-03-manual-change-excludes-window\nPASS OWN-04-live-revision-change-refuses-restore\nPASS OWN-05-pid-reuse-cannot-match\nPASS OWN-06-other-run-cannot-consume\nSCENARIOS=72 ASSERTIONS=188 FAILURES=0\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/RemoteSessionGate.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/PresenceReadDeadline.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/InteractionCoordinator.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part2/tests/Part2CoreTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-l78nmdmc/part2" - ], - "exit_code": 0, - "elapsed_seconds": 5.7063388749957085, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-l78nmdmc/part2", - "/Users/aaron/Documents/WindowShade/tests/part7/validation/regression-part2-outbound.ndjson" - ], - "exit_code": 0, - "elapsed_seconds": 0.35666787502123043, - "stdout": "PASS LEASE01 single global input owner\nPASS LEASE02 privileged owner table\nPASS LEASE03 authorization preempts synchronously\nPASS LEASE04 old key-down never confirms new approval\nPASS LEASE05 obscured reminder not replayed\nPASS LEASE06 lock barrier clears sensitive state\nPASS LEASE07 display removal cancels only owner\nPASS LEASE08 exact expiry and future request\nPASS LEASE09 reminder four seconds and no endless refresh\nPASS LEASE10 backward-time security invalidation\nPASS BLE01 five-second reads are not two-second age timeouts\nPASS BLE02 exact read deadline and stale callbacks\nPASS REMOTE01 discovery never means paired\nPASS REMOTE02 verified capability replay and revocation\nPASS CODEX01 initialize and two-phase handshake\nPASS CODEX02 thread then turn with actual field names\nPASS CODEX03 steer precondition and interrupt does not finish turn\nPASS CODEX04 approval IDs retain number versus string\nPASS CODEX05 unrelated completion and late reply ignored\nPASS CODEX06 every possible single split boundary\nPASS CODEX07 malformed, oversized and EOF safety\nPASS CODEX08 timeout makes outcome uncertain not retry\nPASS part2 core: 22 scenarios, 86 assertions\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-parse-as-library", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/FocusTimer.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part1/tests/support/WS2TestSupport.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part1/packages/T1/tests/FocusTimerTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-l78nmdmc/focus" - ], - "exit_code": 0, - "elapsed_seconds": 4.1781333750113845, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-l78nmdmc/focus" - ], - "exit_code": 0, - "elapsed_seconds": 0.270074250001926, - "stdout": "CASE T1-01 | 空闲开始 25+5 → 截止时刻 1500 秒,聊天收起一次\nok 空闲不排刷新\nok 开始不是累计 tick\nok 重复开始无重复窗口动作\nCASE T1-02 | 紧凑/展开/隐藏 → 分别排分钟、秒、截止唤醒\nok 紧凑整分钟\nok 展开一秒\nok 隐藏只有到点\nok 18 分原文\nok 最后一分钟秒数\nok 秒显示与截止对齐\nCASE T1-03 | 专注自然到点再休息到点 → 计数一次,不自动下一轮\nok 完整专注才计数\nok 真实到点提示音\nok 休息完空闲\nok 重复 tick 无补发\nCASE T1-04 | 手动暂停叠加锁屏 → 单独继续不解除锁屏暂停\nok 暂停原因独立\nok 暂停不醒来\nok 正确顺延剩余时间\nCASE T1-05 | 睡眠叠加锁屏,先唤醒后解锁 → 最后一个原因解除才计时\nok 唤醒不能解锁\nok 睡眠期间无扣秒\nCASE T1-06 | 休息睡两小时 → 已结束,不补播开始或结束音\nok 休息不因睡眠冻结\nCASE T1-07 | 专注到点同刻锁屏 → 结算次数,但不收全桌面、不响铃\nok 已完成专注仍计数\nok 锁屏先于可见效果\nCASE T1-08 | 专注跳过和主动结束 → 都不增加完成数\nok 跳过不算完成\nok 结束清理\nok 明确结束优先于同刻自然结束\nCASE T1-09 | 休息关掉收起的窗口 → 计时继续,恢复只发一次\nok 只撤销本轮窗口归属\nok 重复关闭无动作\nCASE T1-10 | 旧日期的 deadline 晚到新日期 → 不记到今天,不闪过已过去的休息\nok 晚到不补播\nCASE T1-11 | 50+10,关闭聊天收起 → 3000 秒专注、600 秒休息\nok 关闭选项不收聊天\nok 十分钟休息\nCASE T1-12 | 时间倒流/无效日期/锁屏开始 → 拒绝,不启动第二轮\nok 拒绝倒流\nok 锁着不开始\nok 日期不可伪空\nPASS T1: 12 cases, 32 assertions, 0 failures\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-parse-as-library", - "/Users/aaron/Documents/WindowShade/prototype/Core/ConductorGesture.swift", - "/Users/aaron/Documents/WindowShade/tests/ConductorGestureTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-l78nmdmc/gesture" - ], - "exit_code": 0, - "elapsed_seconds": 2.3610022500215564, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-l78nmdmc/gesture" - ], - "exit_code": 0, - "elapsed_seconds": 0.2606713330023922, - "stdout": "ok C-011 flat line with natural wobble is tone 1 → low\nok C-012 rising stroke is tone 2 → medium\nok C-012 raw y-down coordinates are flipped first, so tone 2 stays tone 2\nok C-012 (control) forgetting the flip would swap tones 2 and 4\nok C-013 one rounded valley is tone 3 → high\nok C-014 falling stroke is tone 4 → xhigh, never max\nok C-013 a broken zigzag with several valleys is rejected, not tone 3\nok C-013 a dip below the jitter band is still a flat tone 1, not tone 3\nok C-013 a valley without a real rise afterwards is rejected, not tone 3\nok between tone 1 and tone 2 slopes is rejected, not rounded to the nearest\nok C-015 a small tremor is rejected, not scaled up into a tone\nok contact shorter than the settle period counts as an accidental touch\nok C-016 vertical swipes select no effort\nok C-016 right-to-left strokes are not mirrored into tones\nok C-016 a stroke that doubles back is not a tone\nok C-017 a narrow V reads as both tone 3 and one beat, so it is rejected\nok C-017 three beats drifting right are rejected, not tone 3 and not 3 beats\nok C-018 a full five-beat phrase requests max\nok C-018 after the fourth beat the preview shows 4\nok C-019 a full six-beat phrase requests ultra\nok C-019 after the fifth beat the preview shows 5\nok C-019 lifting in the middle of the sixth beat is rejected, not taken as 5 beats (max)\nok 1 beats request the matching level\nok 2 beats request the matching level\nok 3 beats request the matching level\nok 4 beats request the matching level\nok seven beats are rejected, not clamped to six\nok C-020 a wobble at the bottom of a beat does not count as an extra beat\nok C-020 a drop without a real rebound is not a beat\nok C-021 fast and slow five-beat phrases both request max\nok C-021 beats faster than 150ms apart are rejected\nok C-021 a long pause inside a phrase breaks it instead of counting on\nok C-022 a phrase longer than 6 seconds is dropped\nok a NaN coordinate rejects the whole stroke\nok an out-of-range coordinate rejects the whole stroke\nok time going backwards rejects the whole stroke\nok an empty stroke is safe\nok out-of-range gestures map to no effort\nok no tone ever requests max or ultra\nall conductor gesture tests passed\n", - "stderr": "" - } -] \ No newline at end of file diff --git a/tests/archive/part7/validation/regressions-process.json b/tests/archive/part7/validation/regressions-process.json deleted file mode 100644 index d835bcdb..00000000 --- a/tests/archive/part7/validation/regressions-process.json +++ /dev/null @@ -1,119 +0,0 @@ -[ - { - "argv": [ - "cc", - "-std=c11", - "-O2", - "-Wall", - "-Wextra", - "-Werror", - "-c", - "/Users/aaron/Documents/WindowShade/prototype/Native/WS2Child.c", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-bn82_up9/child.o" - ], - "exit_code": 0, - "elapsed_seconds": 0.20836454202071764, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/Users/aaron/Documents/WindowShade/prototype/Native", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-bn82_up9/child.o", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part6/tests/ProcessTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-bn82_up9/part6-process" - ], - "exit_code": 0, - "elapsed_seconds": 2.9088410830008797, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-bn82_up9/part6-process", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part6/tests/child.py", - "/Users/aaron/Documents/WindowShade/tests/part7/validation/regression-part6-process-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 0.9893786669999827, - "stdout": "SCENE PROC01 explicit bounded diagnostic tail does not block stdout\nSCENE PROC02 default diagnostics stays disabled\nSCENE PROC03 direct child exit status is separate from protocol outcome\nSCENE PROC05 partial final frame rejected\nSCENE PROC06 coalesced trailing frames retain ordering\nSCENE PROC07 stop closes transport once and waits for independent exit evidence\nSCENE PROC08 diagnostic buffer can be explicitly cleared\nSCENE PROC09 invalid diagnostic limit rejected before spawning\nSCENE PROC10 late scope change blocks an admitted frame\nRESULT scenarios=9 assertions=27 failures=0\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/Users/aaron/Documents/WindowShade/prototype/Native", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-bn82_up9/child.o", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part5/tests/ProcessTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-bn82_up9/part5-process" - ], - "exit_code": 0, - "elapsed_seconds": 2.83312870800728, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-bn82_up9/part5-process", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part5/tests/fake-child.py", - "/Users/aaron/Documents/WindowShade/tests/part7/validation/regression-part5-process-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 2.794974499993259, - "stdout": "SCENE IO01 split response, simultaneous write, stderr burst\nSCENE IO02 pipe backpressure deadline closes without retry\nSCENE IO03 truncated EOF rejected\nSCENE IO04 EPIPE does not kill parent with SIGPIPE\nSCENE IO05 multiple coalesced lines delivered in order\nSCENE IO06 oversized incoming line rejected\nSCENE IO07 final write gate and stale epoch\nSCENE IO08 per-batch context gate checked after admission\nRESULT scenarios=8 assertions=26 failures=0\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/Users/aaron/Documents/WindowShade/prototype/Native", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-bn82_up9/child.o", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part6/tests/ExitInheritanceProbe.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-bn82_up9/PROC04" - ], - "exit_code": 0, - "elapsed_seconds": 2.8157710419909563, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-bn82_up9/PROC04", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part6/tests/child.py", - "/Users/aaron/Documents/WindowShade/tests/part7/validation/regression-PROC04-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 1.2223756250168663, - "stdout": "PROC04 OBSERVED_PASS elapsed=0.09705345833208412\n", - "stderr": "" - } -] \ No newline at end of file diff --git a/tests/archive/part7/validation/schema.json b/tests/archive/part7/validation/schema.json deleted file mode 100644 index bcc1f1e3..00000000 --- a/tests/archive/part7/validation/schema.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "schema_version": "0.153.0", - "messages_sha256": "afba11a22f457a8ad3a350df972ae0921b59494937dfcb10cf50134dc9100663", - "counts": { - "ClientRequest": 77, - "ClientNotification": 14, - "CommandExecutionRequestApprovalResponse": 1 - }, - "schema_sha256": { - "ClientRequest": "25bc001b5dfe3b35785597b8f9ad9e5aaf7e437331fa9921f041c9e0e03fc9f3", - "ClientNotification": "706cf248d75027c84a3c63348d0ed507182e8eba40069dd17541793de029145a", - "CommandExecutionRequestApprovalResponse": "6d0767113e22f311381809b6b236b0dde2b99b01992879c26bf7b1ea0e003cb7" - }, - "failures": [], - "meaning": "synthetic backend, real candidate outbound bytes; not live CLI, sandbox or authentication proof" -} \ No newline at end of file diff --git a/tests/archive/part7/validation/stage-final.json b/tests/archive/part7/validation/stage-final.json deleted file mode 100644 index bdef9fb3..00000000 --- a/tests/archive/part7/validation/stage-final.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "base_files": 1145, - "output_files": 1157, - "changed_files": 21, - "original_preserved": true, - "output": "/mnt/data/ws2-v7-stage-check" -} diff --git a/tests/archive/part7/validation/tools-tests.json b/tests/archive/part7/validation/tools-tests.json deleted file mode 100644 index 38593253..00000000 --- a/tests/archive/part7/validation/tools-tests.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "tests_run": 10, - "failures": 0, - "errors": 0, - "scope": "synthetic file staging, not application runtime" -} \ No newline at end of file diff --git a/tests/archive/part7/validation/tools-tests.txt b/tests/archive/part7/validation/tools-tests.txt deleted file mode 100644 index 28e615d3..00000000 --- a/tests/archive/part7/validation/tools-tests.txt +++ /dev/null @@ -1,15 +0,0 @@ -test_baseline_symlink (__main__.Tests.test_baseline_symlink) ... ok -test_drift (__main__.Tests.test_drift) ... ok -test_duplicate_manifest_path (__main__.Tests.test_duplicate_manifest_path) ... ok -test_exact_output (__main__.Tests.test_exact_output) ... ok -test_existing_output (__main__.Tests.test_existing_output) ... ok -test_missing_overlay_entry (__main__.Tests.test_missing_overlay_entry) ... ok -test_output_inside_base (__main__.Tests.test_output_inside_base) ... ok -test_overlay_drift (__main__.Tests.test_overlay_drift) ... ok -test_overlay_symlink (__main__.Tests.test_overlay_symlink) ... ok -test_traversal (__main__.Tests.test_traversal) ... ok - ----------------------------------------------------------------------- -Ran 10 tests in 0.093s - -OK diff --git a/tests/archive/part8/fixtures/fake-codex.py b/tests/archive/part8/fixtures/fake-codex.py deleted file mode 100644 index 482bfe7d..00000000 --- a/tests/archive/part8/fixtures/fake-codex.py +++ /dev/null @@ -1,91 +0,0 @@ -#!/usr/bin/env python3 -"""Synthetic pinned-shape backend. No network, account access, or shell execution. -Tests copy this under an isolated name to select fault fixtures; never install as Codex. -""" -import json, os, pathlib, signal, sys, time -mode = pathlib.Path(__file__).stem.replace('fake-codex-', '') -if sys.argv[1:] == ['--version']: - if mode == 'version-hang': - signal.signal(signal.SIGTERM, signal.SIG_IGN) - while True: time.sleep(0.1) - print('codex-cli 9.9.9' if mode == 'version' else 'codex-cli 0.153.0', flush=True) - sys.exit(0) -if sys.argv[1:] != ['app-server']: - sys.exit(64) -log = pathlib.Path(__file__).with_suffix('.messages.ndjson') -logged = mode not in ['login', 'url', 'login-wrong-id', 'login-cancel'] -thread = 'thread-real-fixture' -turn = None -count = 0 -pending_approval = False - -def emit(value): - print(json.dumps(value, ensure_ascii=False, separators=(',', ':')), flush=True) - -def result(id, value): emit({'id': id, 'result': value}) -def notify(method, params): emit({'method': method, 'params': params}) -def complete(status='completed'): - notify('turn/completed', {'threadId': thread, 'turn': {'id': turn, 'status': status, 'items': [], 'error': None}}) - -for line in sys.stdin: - message = json.loads(line) - with log.open('a') as f: f.write(json.dumps(message) + '\n') - method, id, p = message.get('method'), message.get('id'), message.get('params', {}) - if method == 'initialize': - if mode == 'duplicate': - print('{"id":1,"\\u0069d":2,"result":{}}', flush=True) - else: - result(id, {'userAgent': 'FAKE / NO NETWORK'}) - elif method == 'initialized': pass - elif method == 'model/list': - rows = [{'id':'fixture-a','model':'fixture-a','displayName':'Fixture A', 'description':'Synthetic only', - 'hidden':False,'isDefault':True,'defaultReasoningEffort':'medium', - 'supportedReasoningEfforts':[{'reasoningEffort':'medium','description':'M'}, {'reasoningEffort':'high','description':'H'}]}] - if mode == 'picker': - rows.append(dict(rows[0], id='fixture-b', model='fixture-b', displayName='Fixture B', isDefault=False)) - result(id, {'data': rows, 'nextCursor': None}) - elif method == 'config/read': - config = {'sandbox_mode':'danger-full-access' if mode == 'config' else 'read-only', - 'approval_policy':'on-request','approvals_reviewer':'user','model_provider':'openai', - 'web_search':'disabled','features':{'shell_tool':False,'unified_exec':False,'shell_snapshot':False}, - 'mcp_servers':{},'plugins':{},'hooks':{}} - result(id, {'config':config, 'layers':[], 'origins':{}}) - elif method == 'account/read': - result(id, {'account':{'type':'chatgpt','email':None,'planType':'unknown'} if logged else None, - 'requiresOpenaiAuth':True}) - elif method == 'account/login/start': - result(id, {'type':'chatgpt','loginId':'login-fixture', - 'authUrl':'file:///tmp/not-a-browser-login' if mode == 'url' else 'https://auth.openai.com/authorize?state=fixture'}) - if mode not in ['url','login-cancel']: - logged = True - notify('account/login/completed',{'loginId':'WRONG' if mode == 'login-wrong-id' else 'login-fixture','success':True,'error':None}) - elif method == 'account/login/cancel': result(id, {'status':'canceled'}) - elif method == 'account/logout': - logged = False - result(id,{}) - notify('account/updated',{'authMode':None,'planType':None}) - elif method in ['thread/start','thread/resume']: - if method == 'thread/resume': thread = p['threadId'] - result(id,{'thread':{'id':thread}}) - elif method == 'turn/start': - count += 1 - turn = 'turn-' + str(count) - result(id,{'turn':{'id':turn, 'status':'inProgress'}}) - notify('turn/started',{'threadId':thread,'turn':{'id':turn,'status':'inProgress'}}) - notify('item/agentMessage/delta',{'threadId':'FOREIGN','turnId':turn,'itemId':'f','delta':'WRONG-TARGET'}) - notify('item/agentMessage/delta',{'threadId':thread,'turnId':turn,'itemId':'a','delta':'来自受控后端的真实管道回复。'}) - if mode == 'approval': - pending_approval = True - emit({'id':'approval-fixture','method':'item/commandExecution/requestApproval','params':{ - 'threadId':thread,'turnId':turn,'itemId':'command-1','command':'printf harmless', 'cwd':os.getcwd()}}) - elif mode not in ['hold','lock','directory','diagnostics']: - complete('failed' if mode == 'failed' else 'completed') - if mode == 'diagnostics': print('fixture stderr, NO USER SECRETS', file=sys.stderr, flush=True) - elif method == 'turn/interrupt': - result(id,{}) - time.sleep(0.15) - complete('interrupted') - elif pending_approval and id == 'approval-fixture': - assert message['result']['decision'] == 'decline', 'Unexpected allow!' - pending_approval = False - complete() diff --git a/tests/archive/part8/sources/SOURCES.md b/tests/archive/part8/sources/SOURCES.md deleted file mode 100644 index 258ff2e0..00000000 --- a/tests/archive/part8/sources/SOURCES.md +++ /dev/null @@ -1,32 +0,0 @@ -# 来源与适用范围(核对日期 2026-10-03) - -本包的源码事实来自用户上传的 v7 ZIP 和本轮 candidate 差异;这不是公开 GitHub HEAD。实际文件 SHA256 与符号见 code-map。外部资料只支持明确列出的 API/设计背景,不保证本项目兼容、编译或安全。 - -## S01 · W3C Pointer Cancellation -https://www.w3.org/WAI/WCAG22/Understanding/pointer-cancellation.html -通过网页工具读到正文。可取消的释放阶段完成是参考原则;该说明面向网页指针内容,本包手柄规则属于类比设计,不能据此声称 WCAG 合规。没有复制全文。 - -## S02 · Apple WWDC20 Advancements in Game Controllers -https://developer.apple.com/videos/play/wwdc2020/10614/ -通过官方网页读到 transcript。使用统一框架及实际存在的 profile,额外按钮不能成为所有设备的必需条件。其年份为2020,不能拿其中当年的设备名单充当2026支持列表或本次实测。没有按视频复制代码。 - -## S03 · Apple WWDC19 Supporting New Game Controllers -https://developer.apple.com/videos/play/wwdc2019/616/ -读到官方 transcript。用于提醒语义按钮、物理符号及可选按键的区别,不把某一种设备的印字写成全平台事实。 - -## S04 · Apple GameController API 导航 -https://developer.apple.com/documentation/gamecontroller/gccontroller/shouldmonitorbackgroundevents -https://developer.apple.com/documentation/gamecontroller/gcdevice/handlerqueue -https://developer.apple.com/documentation/gamecontroller/gcextendedgamepad/valuechangedhandler -本轮后台事件属性有官方搜索摘要,handler 文档页主要返回 JavaScript 外壳;没有将它们记为完整 SDK 正文已读取。相关候选方法存在于既有源码,最终签名必须由目标 Mac SDK 编译核验。本次具体安装/释放顺序属于自身源码设计。 - -## S05 · Apple NSTableView.scrollRowToVisible -https://developer.apple.com/documentation/appkit/nstableview/scrollrowtovisible(_:) -官方搜索摘要用于确认该入口的用途;真实滚动/焦点效果没有运行,不作已验证的可访问性承诺。 - -## S06 · Apple AXUIElementCopyAttributeValue -https://developer.apple.com/documentation/applicationservices/1462085-axuielementcopyattributevalue -本轮网页为脚本外壳,附为执行者的官方 API 入口。未宣称读到当前 SDK 的完整返回契约。具体 CF/NSNumber/AX 类型与错误必须由 Mac 编译和实机验证;本包纯核测试不覆盖它们。 - -## 获取限制 -容器直接抓取部分官方页面出现 DNS 失败,原始结果在 primary-fetch.json。Web 已读正文与容器可下载是两种不同事实。Mac 工作区连接本轮实际失败,validation/access-boundary.json 只保存去除端点凭据后的说明。没有下载新 SDK,没有运行真实设备、CLI账号或模型请求。 diff --git a/tests/archive/part8/sources/base-files.json b/tests/archive/part8/sources/base-files.json deleted file mode 100644 index 59650c10..00000000 --- a/tests/archive/part8/sources/base-files.json +++ /dev/null @@ -1,1159 +0,0 @@ -{ - "DEVELOPMENT.md": "7900a744b56df4f4f91bf34e5bcc8ef2a9bda5dbb6a62cb7a0481f5865be9c41", - "README_CN.md": "b5902a934d10180cec5e05a1f6b3c328d8a4ee41bcd45db811f98aa53ee2bb9a", - "README.md": "71d62059ec243ecc89d3ee82d76f3dd217a94a1a66acfc314e092453726c3bbf", - "WindowShade.md": "3d4df4752cbd52234d255869f69366711e4bf3afb9020482a82a6613e6c5a266", - ".gitignore": "979af68a27b2848e27b69bc2f4b2b45a1b7a27e0b19c2f20e0c1572ae779f9bf", - "WS2-STAGING.json": "81e1ce0044437dff2b349dd063fca4cb4e29de1a3b870a5189dc3c0b5fb05e4f", - "LICENSE": "b1bd5e5e226fed0591e56f8a12c3e95163df2cdc5ea1a41df7bcdc23e52dd3d3", - "AGENTS.md": "5ec0f273f4e4f46c7fc2281fd436c58b79aed02183c35e3105bd664f84854f26", - "assets/readme-desk-dark.png": "99c2459a44d3c6ce120c79abe2e1de3cfebfd942d23df9dfb422779f3787dc71", - "assets/windowshade-menubar.svg": "154365b3f54725ec11e913a6bd772a468dd24d7c968f32a1007ab0bb2fd9f8d5", - "assets/readme-desk-en-dark.png": "6afa1709eda74780793286bad28553ae7ac604b12c4b9f15ec71f25da08533f6", - "assets/windowshade-hero.png": "577ec0e66653bb826cc638bf5a82b30afa82c196ed5985fc2e355165f4ce4f17", - "assets/windowshade-demo.gif": "328f44f4da1265a7dfe0e5ca294047a4f9a25a4e2da1d9c631e449335262925d", - "assets/windowshade-settings.png": "d61516dc78124b9531b8febc2ba3c8b2faafe3b1a8f1f501a8a6ee6903855d28", - "assets/windowshade-lid.gif": "2998c24b9e05852d3373810f20112a17c3ad7b72c074230901c92502fd07ccb0", - "assets/readme-desk.png": "7d5b75a5f681bb721dca728a5b31b7f6b8f0842a38c8adaf2684a4b6196d6a34", - "assets/windowshade-settings-dark.png": "ebc62f0aebe62073f3c130dfb546aa99df6be6664b4f7b470d0b015127dd98f8", - "assets/readme-desk-en.png": "9090f27082cb2ff24c07a07b82e2f408fc5012cd57e41e76140e0bc37003f80c", - "assets/windowshade-lid-en.gif": "7bb2a6219a9937b9f1d7ff31f6452c598816bd15eb88931c1cb4318a1ec67bc0", - "tests/PiPLayoutTests.swift": "7aa2aa88e9e7544c62eb17cd8e37b6f9eaccd0920f973dfa853d4e154b8a6653", - "tests/NotchActivityViewTests.swift": "4954e6b70c0d40d4576a4307c7ecb132000944c0ef4dfa8475d8e507c026bee6", - "tests/LidSourceTests.swift": "c07ff687a2a34e1a94f541fe44e2064496849bdc246678fdcb9eb9398cd4cebb", - "tests/MetadataQueueTests.swift": "8e942639ef13f95d9e0ce30a1a269ec9a2426f96ac48b2b772171d967d7c610a", - "tests/run-habit-rules-tests.sh": "80262b720b5cbc5c2e10bf83b4be8015033fba70da05145bba9d1f98d8636431", - "tests/run-update-integration.sh": "ff52749b120b1e1ea61e9310eb7384f43cb05089b30f515ed3abafff9800e402", - "tests/run-slide-over-tests.sh": "2490f215c85b5a59be98866d7dd45f48f68844d1c07bd8f02b3ec9dc8e0dc142", - "tests/run-stall-sampler-tests.sh": "96583b77de69f17bfcacf9b60eb279908ffc775ca8159f4a0dee21182a862bbb", - "tests/TimingFeaturesTests.swift": "00992191897b1588b0fb10fd3f6352cb76f45b3755b8bba049169278c41964d6", - "tests/LivenessChallengeTests.swift": "be983797fa49a07346030c51ac0200c8bc7e6ed6fef77fa7302c4ed3783b4cc7", - "tests/NotchGlanceTests.swift": "0dcbae862ee7eca51c49bac7f2c1b16fcd95c60c1019096a53adeb4ed78e73f9", - "tests/FaceGestureTrackerTests.swift": "98239a145c0b7f45c20455fadad10255334ffbad6da6cf226f0de25871900d02", - "tests/run-seam-layout-tests.sh": "9172f47d9d5d52c1c84ec593d565c6a420e9d4e6a60e479a22102db4cc4071d5", - "tests/run-behavior-risk-tests.sh": "097a26043b9d2ce3caed924fd81921d79548f5da03b2a33d4b3176c41fcb3ae3", - "tests/LaunchpadViewTests.swift": "c4a9edaea813a157e900546f7b88123f083c1f20c8e0b8761ffd1210ecf80a4c", - "tests/run-settings-tests.sh": "9a46795bd8d1dce76b074a6b717f563086a525dcd74a371dfe745899521edf85", - "tests/TrackpadGestureTests.swift": "32eb176b0ffc896dc94c1e4fd248a30e1bc08f9320afdee21624b74a00f9917a", - "tests/ClassicStripTests.swift": "44e61393b8576e971c24bd5ba36f3242fafbe74cb41a43571500ba916f679564", - "tests/run-glance-probe.sh": "9b1f8e937104f0d57348c3738ad3819777cbbd3f907026ace72c18e17401760f", - "tests/RectangleKeymapTests.swift": "8c9e19f57a17e324c30f52e4e3536a1901dc86bfa8b8b9fe4fa4d036056815e3", - "tests/CaptureIndicatorTests.swift": "68aa7694ebfa6326ec4e30d9291c14187f088f441f71ffa7d9817523330e2b1d", - "tests/SeamLayoutTests.swift": "eb730924e1795377f54ade03d7465771b55d7195a17aafc649de5522077f86bc", - "tests/NotchThumbnailsTests.swift": "3cfa03c5ad9d1671cd0a2b94b3f62364cb51ac5904f738a9e5f7658bf45b4d37", - "tests/MagicTilingTests.swift": "03977451a1b2fda9dee0daaf45acbf1fefabcfd16a162b685929938a9fb8d270", - "tests/run-scroll-strip-tests.sh": "736556ead95040acd1d30efc04ce834cb6e8eaed6caf807f5b9556e763bc3827", - "tests/run-window-browser-tests.sh": "60800f4fd7fc05ef6b0e559a0c78f07fdf73bef2a5fda18102e90a686bfd534a", - "tests/DeviceBatteryTests.swift": "09980d117215ae7b47979f56c1afe9f99a8091f06ad901d54fbfeccbf4b97501", - "tests/run-magic-tiling-tests.sh": "736ad6ac12010c51c134f6b68689ba189bfc51dea20b845c835afdaf899802f5", - "tests/duo-integration-check.py": "1614f812d80321117c4ecb43c3e649c4f0033092653ffbbd8026c45a0b127916", - "tests/LockOverlayLifecycleTests.swift": "3981318764b379d6e733a0acbd04bc0af613bca6148929c5a4e4d6e1d66ebf21", - "tests/UpdateTests.swift": "f5c1a2bf55d90e69a1cfe0d82361ff50b496b218f1288be7cd4d5d807927b8b9", - "tests/run-launchpad-tests.sh": "b8693dc395676c7a60c8ecf62e32ac4e64a698a49177807fa16a916ebcddfb1a", - "tests/run-notch-authentication-tests.sh": "6a4b7ee654ca912eb7d4798c3b4c1d0982853688a301d07eb449a8f792c2410f", - "tests/DuoGPUBenchmark.swift": "5638f59b1de734ce94684339f6fdea28cb347769b46943fc4b501852896da6bd", - "tests/run-lid-gesture-tests.sh": "c3a1b41012e74a2ab7fcd408649cddd088b3fc1458e7097085a516f6fff386a0", - "tests/SplitPairTests.swift": "853ee7754c26bb20eae0610aac789dbcbbc1cf9c4b0ef28c911cff389ae36262", - "tests/WindowFoldEffectsTests.swift": "4ee4862cd7a29f4edb2fdb40576551c45cb837cdb8bc85ffeedad4da8750e544", - "tests/run-authorization-tests.sh": "df83f18a6857608321a5ced73f06e678e08d775846f93551f73d271e1d5a9158", - "tests/ElsewhereWindowsTests.swift": "a768bcf399abb35a1b82e21db77a777eb4a341ab7f138c5a231758dd72c6852c", - "tests/run-launchpad-view-tests.sh": "1d368439acb4436187e518545c4cc312272d870ee9d12a76737d3465825feee3", - "tests/run-capture-indicator-tests.sh": "29cb6a1301bccd1e7e78f328c4fb730dcb8071cdcd0d8bf82ab48e65aa0105a7", - "tests/GlanceLifecycleTests.swift": "36ff4b576f04cd482aa661a5b3e59609f5a97194652176f59e48bf0bd5875e02", - "tests/ScrollStripTests.swift": "584e0c4acd9533a0d48d3f7d2db5af433e37b204e6f89c1c3043dc5ef7b4d9a3", - "tests/run-display-shape-tests.sh": "0e98fd9d200c48e3bbbbecde18a7702664f85c2dea2bc975e38c1e41ce12d4d6", - "tests/ShadeSoundTests.swift": "62ed4c93372fb29f764f22dcf968184fb06b73f998e5c55e33648b01a0a5516a", - "tests/WindowBrowserPreviewStartupTests.swift": "29674876ac8ac58168812ece4c0c60cacef9d35a2c73b2d234a18bce1022f5c8", - "tests/DisplayShapeTests.swift": "63675a2a344167dc856d230a16c9664c770758f479ebb204fd164a0f066aa5b4", - "tests/run-window-list-cache-tests.sh": "41c6d3f372235233afe6d298c40fd8ec60be406a19554b12be5b0c5787669ee2", - "tests/run-dock-swipe-tests.sh": "f3940991392934f61cb0ad6a419e4e3a4352b8cec846070e3ea809d5fe39e07e", - "tests/run-glance-tests.sh": "76b81023914f049fa2056f1e444ad5c72bb55422b0a708aff36c150a8a7a320d", - "tests/NotchAuthenticationTests.swift": "6b7e46e7607040e2c4abc6b809859c748635004cc752ff6d207ec957c1dcaac5", - "tests/LaunchpadModelTests.swift": "e0b350f6cc96e12fd4ac0ce3ce2663dc1ea29ea116b890c2328942fcd70a14ee", - "tests/run-appkit-tests.sh": "1f4adf5522dedfed94c7823038b1862e1e7d98e12f1402d727c84eecae29e0a2", - "tests/SlideOverMotionTests.swift": "557af4dd930a36ecaa394e23dfecb57c2ce927606df0cc2c56a4b053ac206872", - "tests/run-duo-tests.sh": "fbdaedfc56e5ec5831cdb70c80474e80275f25cd7d167847ca075dc0359f27ce", - "tests/ThumbnailLayoutTests.swift": "de0edbb80b71a80e3cb069399d5d60c6fd60c4190486d554e30b92140b57bcf8", - "tests/StallSamplerTests.swift": "ccd7069deb5732a04f57982e24ea7fa3535613d125184c6e688fcbfb3dd47a40", - "tests/run-audio-cache-tests.sh": "8cfedadfc7796803c04316aa2f017ceb6064bc886d35f0d6429759df16a34236", - "tests/WindowBrowserTests.swift": "880ea1e13c0082f81c13ad977c982a3232d655bb2c3ee76033cbcdd5e64e3602", - "tests/AudioDeviceCacheTests.swift": "6fd6a03c80db60e0eb5d79ec8b200da3dd0215a76a77b9a61476a4b761b18d26", - "tests/run-pip-layout-tests.sh": "8f5de023f4cefaac9635bdda2cc90a63986ed5e33229fc0d996e07acab47031b", - "tests/run-lock-probe.sh": "84fa4a9bbfc498812aa3ec379d4431d137b3a58c328ae1feabf4ed193be52681", - "tests/run-switcher-origin-tests.sh": "bbaa861a26426bcb3ccbe4a00793e594e927012049758127ea6f25c35d0d0d7f", - "tests/run-paper-tests.sh": "318db5bf20dad164d2aa506851b0408b0c2f381bf92251fa1eba0f764bea8ca4", - "tests/run-split-pair-tests.sh": "3d310426a8fd399e6d1f1abad0c7a9fa70ecc7d3d5ba89c5f0a98cb1926c6f11", - "tests/SwitcherOriginTests.swift": "c9b9e61901e25010f9b298f1ca336db108fbb25e6fef200e3df55f2aa107ecbb", - "tests/run-rectangle-keymap-tests.sh": "cca1bd690c1a235f7b96da9b3c16a073f7a591435ac804876d9e7ff4b77cb0ea", - "tests/PaperSurfaceTests.swift": "08434cb38b6e8dbee4bba57914d27a312cefbfc29abf059cbea96017b5309839", - "tests/QuietDefaultsTests.swift": "20f383f9c6d71958244714e8d4e4d007c5f8108f439152159418b28785831eca", - "tests/run-notch-glance-tests.sh": "0b7a9c5836808a4ec2bec907e2bee4eb544d00fef7b60c8f935788824796a32f", - "tests/run-lock-overlay-lifecycle-tests.sh": "424ab7dec4ddebc402574f614d116f2e72c02e8f2480c50ed6d523062cde5487", - "tests/LaunchpadBackdropTests.swift": "99fe0c5c298970453842a07a8a2a290ecbc24fe01f94c1eec076977f2aa38321", - "tests/run-lid-report-probe.sh": "2032aea177570acb6e80a3a6fe0f18a8d637f2715b1f5b67ee6ba6c03597ad49", - "tests/run-behavior-feature-tests.sh": "30f1b6f32a199748428a3ea58caa2502472ae633abf0257ac680b316ee82ec8d", - "tests/run-quiet-defaults-tests.sh": "8ea6d71867011632d85017f718de596307a1d0fc937c68cb686da854e316c22e", - "tests/run-liveness-tests.sh": "326a5a828ccb2538980bd527ef403fbd0d0727548133fae5654e85c05ad99a8c", - "tests/run-device-battery-tests.sh": "a05ab1776107781796cc5d4c41623935c171ac289441e9e5374e18f110fae05a", - "tests/DuoCoreTests.swift": "580fbdfa753b6fba4941f67abc0ce7fe58d182d37cb3409880647a5ea6d748f5", - "tests/run-lid-source-tests.sh": "1fea0bef734db6b26d5287835eeb4409a108ffbffece7c5e81f00b3c2a8b77e7", - "tests/DockSwipeTests.swift": "d59577e0b45d78f85f03246cfeaf1740e6c24a04d6f164b9c0019c5b3915f839", - "tests/run-face-gesture-tracker-tests.sh": "012ed6d90ccbf6ab9b8d5c820dcf44d07114ccf53e1ae82cfb3f921bd974c821", - "tests/ConductorGestureTests.swift": "14439c86a80b4fe153084eb21dd3f944e9ade0c6ec2a1a5f3dd59a8f75b1239d", - "tests/WindowListCacheTests.swift": "3fdcc5a24540d46735b371c4f83a3653864bc4ba06fce06fe536f109287ba54e", - "tests/run-conductor-gesture-tests.sh": "3c916a89a2431a405c20d30832d323df9e90da85952d53334bf7d41e299cdc49", - "tests/HabitRulesTests.swift": "c2ca1ad2424e89eabfda84fa57e8f2dbfb277e68b6453a6cbfe5106c624bb913", - "tests/PresencePolicyTests.swift": "5a42acc39d1ae69c1909860f710af17653058286f82430763c10630b9af68b9a", - "tests/run-gesture-tests.sh": "c8b7d41ed2acbeb21d69565eaf7ec413824d402afb77acf5fc43a44dc8a1ab57", - "tests/CarryControllerTests.swift": "e5e0942bc5842490cd348d4f929d36be83712f083952c8c9704f2e1156b6e5b1", - "tests/run-elsewhere-windows-tests.sh": "bbb5b677d1b5945922041bfde7a8668e69df0088f2bb6a2d1d7aebeca34114e9", - "tests/run-notch-activity-tests.sh": "4fae5b0d1024959337536cf23e2f2da99be3d88a41101bdea1db5dde1d38b9eb", - "tests/run-perf-check.sh": "c19afb6cee942b1e6897f1a0c06bef183d2054ff92802d5eedc670034efa4a4b", - "tests/DuoFrameMetadataTests.swift": "f1850663a3ea9b6c90220044a1ceaee046b6cc58200e4aea1d8b30daa3b04cef", - "tests/NotchActivityTests.swift": "6f894ffa34175e557a8c6ae8cac03e866da49aa66ce16d7221a71ad331e85d13", - "tests/run-thumbnail-tests.sh": "aa67fee130a1ba37a58b3d05af861c1dbe5bfad5ef43fa96be8199ed15798d30", - "tests/DuoOptimizationBenchmark.swift": "6414d5a1401ff857f521f09bedd0ce741e20a9ec2b6d6fb17fa861e434630ecf", - "tests/run-launchpad-visual-fixture.sh": "b206a0d06f5b7b7798f3d09ab55c461e72f765bc9a6fb3efc220a08c749221c9", - "tests/MotionTokensTests.swift": "06a3cf8102bd9e4f5a11ff648af8c08701c21acd615c9891a175b68e1cd02444", - "tests/run-presence-policy-tests.sh": "76d81e542e97c77c0effa407b5ef8abc596489cfa24b7958cc5ace1e1f2ab7ae", - "tests/LidGestureTests.swift": "37ad9d94eedec3c240e14cdbf1364abf9d9876a54b290a1968f4be3e643a752c", - "tests/run-update-tests.sh": "054fef60c81f32da4bb9f735268b93309d31b7b0a105a2726be91449a09193bb", - "tests/run-shade-sound-tests.sh": "1fd72b5b8cacac4f16bd49bbd88a6e8f9de8b13b59161a7dd5d5359a59934308", - "tests/SettingsNavigationTests.swift": "c51f97ab6bcadac91cb8c80dc703fd3e870d908c27b2f024738444ceea9c95c8", - "tests/GlanceIntentTests.swift": "9151ea28b4a5208384581587f34273512b69faf4c680595b6f2c654f29c263f1", - "tests/run-launchpad-backdrop-tests.sh": "9a8629dafe57968017455af16ad8f326ad4ee4fe7b3506d94aa68f4489dc8db2", - "tests/BehaviorRiskTests.swift": "6d6f7c617446c8c641badab45c1f4e950d5b0862150528462d6aa19eafe59d5d", - "tests/AuthorizationLedgerTests.swift": "c012e780965ee2c229851dd83fea4fd5e84d80da52a50395853dccf7daf177fb", - "tests/run-notch-thumbnails-tests.sh": "54cf9b5defa374b7b84d27da6bc7590a56ac4cf1ac56125de0d0bd77d3151a30", - "tests/run-launchpad-perf.sh": "736cbc2f64b15f3e728f79e1ae58c141edf3627fa70493b7612a26d4d3cd3d18", - "tests/run-motion-tokens-tests.sh": "9990dc54d1dab6ec610183687617da9056ff296ee0ba0c3f7710ed92ffab2c4f", - "prototype/PinnedPreviewPanel.swift": "19ef12fbb7e587bb04604e5587c54270d89eff08342b5470565e61be7b9eca65", - "prototype/PinnedPreview.swift": "661c5d272f81f0276e6f53ab2da11e3d575628086e03f8da3f04b1152593fba0", - "prototype/Info.plist": "8db707bd0bf02100da2517cd8d28e2379cf9077e858af299d088c6d264f91acb", - "prototype/ScreenCaptureBridge.swift": "59c7d12dfc19266d46c87fc7692fc851293fe2b102926d06579c205cec7c78ed", - "prototype/build.sh": "e6db6c9f3499fcdcb4f28c065199f4f87aa64aeb0c5a46b098164dc761ad588c", - "prototype/main.swift": "a0583484440cb3d3d5214620076ae0786c1d2236ec81767cf3f31f6f8e792bf8", - "prototype/WindowShade.swift": "4cbf3342bc01d1df701c23151617ad5df76bfe9a2b27c14f5149828c1242e228", - "promo/package-lock.json": "ba8a6d7b2db0937609334aa8889a719b94b7406b21c0db37ac1b035640b04da6", - "promo/package.json": "2f57b31a94affd8480966acd14d258437fc6ae9b1b1051dc4b1951c17e029bf1", - "promo/remotion.config.ts": "38e9e6394e32f151e454efdeb84da8bcc616da7550bc8ef52e1721a001745394", - "promo/publish.md": "765fcb252a02fca61b243b432dcae6725605aa524034b1759716fa4fcd93cfd2", - "promo/.prettierrc": "2a58e5602cb3d271fd359a75bbaf7b6e9faaf165c9178ff554ff8c48c80fcd8c", - "promo/eslint.config.mjs": "7f2ca640409fd597965bedf929073b9a74f143643e1711150c4cac3b6ec5c80d", - "promo/tsconfig.json": "69d107d8754c0c175b1c1d5d29abc32ce157318b31ac90a3c7295c3550114cc8", - "promo/README.md": "7b76bf357f34b9dd1e820078d85a8851eb864f4982a43401055c5924d486b5eb", - "promo/.gitignore": "5952c5b46c4c2fe0f695d512c95baa6bbe4bef5f3b985c8fe52da10177ceb281", - "docs/design-system.md": "65b56799b1c169d2c1b6424ee00e22e5726acfa9253f353142e64bcbec491c62", - "docs/glance.md": "bdd5a636348bb5dfe11959853823af7106e3d0fae37a3e0f4a60454f8e8eb5be", - "docs/niri.md": "4c52682ba547845e1e336ad5ed368f2c4cbf21499dd0862bf6415a2222a07556", - "docs/input-devices.md": "02bf83893ca3125232a8dcd80ebab1fd265ab6bfe1d96fa949174dee68fcd6ee", - "docs/pomodoro.md": "b1295d44a0932d2742d207edda8c21294cdcc302c593eb3027eee3de793e76ea", - "docs/window-management-quality-progress.md": "3d51827a6c8f2a1603ba940b53ea1fb0545a119ea7c39e2df5af2bdbbc004b6e", - "docs/lid-effect.md": "cff5610ca05302afd52293633b36900e57d89abb26d611ada26faa7013b67e59", - "docs/design-v1.md": "3b623a284c9951ddec2df0fa7711f9da1f774b5f37aad74f1b8cb0560b8ba7be", - "docs/window-browser-polish.md": "e6c24261ca1007e214444d9e6ac14ee1d330aeb0f04720713a3cc3b633b85fa1", - "docs/touch-id-island.md": "71d3979b588171198c23110980b136ce5eab5cda56155e611e31a17b41c19a52", - "docs/launchpad.md": "6955298463ca2aa406fdaf2d3c5e8193a6264cc0affc800c8d592684ed7c675a", - "docs/slide-over-review.md": "1c0b2c7c4ebac9921566ac68e958e68930cff0fa140d1abfec210cf0c80eca1a", - "docs/copy-guide.md": "029858deb8ef6823440e3df738c1e96c0b47b55a8dd5150313c82db1af1ff2b6", - "docs/multidisplay-authentication.md": "6bd31097ab87f2f1e068cba583ca093e4ce381661ff72fc5cc0074964abebd67", - "docs/windowshade-requirements-status.md": "f25a63f84555d95a2e9697287d06fdaa5f7c89536f9911cd4c5711289a2c90b7", - "docs/review-2026-09-22.md": "5a8cf4a5f91c97787a44d3df90e075f64a7b6da3b1e0650b903df397fd521d05", - "docs/conductor.md": "ff7720f65b4f337f51c20e0e75ba726fbe0580ce600f48c962152462606875a5", - "docs/launchpad-design.md": "03c47604122ec36bbbf1ee4546e2be570e59abf6794a55714e02cfb8c806bb36", - "docs/direction.md": "513e4f42d4d9ace6226f112144b6c4bddfa8af9eb32764111ed852bda48c8d60", - "docs/system-integration-polish.md": "ccec7301237a4118354791bb2cbb6df03ce5fa456d999b4721acd6c56872068f", - "docs/behavior-risk-research.md": "3fd394ae3291701174f58745727e35e2b7395480b302f371538a1b412a034dd8", - "docs/window-browser-progress.md": "4b732c36182a6a3bf53e7274efddcf4e04c982ed20d86dc07e9c982a4b0a3b9b", - "docs/performance.md": "03a3bd2918a1f58e3bc4ce3dc7d79d74e88ecbbbc620cc2e91576dc3bd5833db", - "docs/notch.md": "71c0d9daf1cf118544aae131550adfbcae2c39007631541e7509c792a7dfe2d3", - "docs/design-review-1.0.14.md": "63d59ef156dbf6aff25c88c34205779d172180dbd2a96db3ccb6248c5f48a33d", - "docs/vendor-biometric-research.md": "a01f2d2b7ccc767b47bffeadd97cff72fcf9d02341217a36d613422ba3a306b4", - "docs/ideas-switchers.md": "cd24cc08ea91a9724d4dd5df6553ce1b5ee4d7ccc0151a5557f01daddddd59a1", - "docs/RELEASE-v1.0.10.md": "2ad3ba06630f9c018bbe28cf2170b256e81b456c78d25e50908a95759bf4e315", - "docs/third-party-lock-overlay.txt": "1520c03fc15ec8c17bd56947eabf885c593730a36fb13498bffbc688ed4657fc", - "docs/slide-over.md": "9fcf23e41ebc04dbdd03532cb1740b368e707532dbde827fa1a6289e5c634a84", - "docs/agents-in-notch.md": "98664f72fa7279b8ecac4674574fa4063a4457f5a286b82cf4faf7ddf44b3b78", - "docs/apple-accessory-interoperability.md": "c800abbb2b4bb1888194d4bee5cc4a9ba88f9770b29819b255b25ea910db4840", - "docs/integration-loupe-glance.md": "74111d9a7fd05f3882752a08ffe7b4cf7213acd5a8bb10a7a3a7a491d070cb9f", - "docs/claude-lanes-2026-09-25.md": "9eee45a2e910478a0a13d411330dfb835f55043b4d35053957f45e52a33342b3", - "docs/dynamic-lock.md": "1b355f08a3f3cb02b41f4667a64c259cd30e1ea33001a5dd1af6b24c3f70a85b", - "docs/menu-bar.md": "6ba87eb72d428ad59b853cf3e029acde5f3edfa2c4f06cdc056f1b226d778158", - "docs/device-battery.md": "655de0eacca269fdf91a946404ccafc493b2cc5fed5cffe925cd002491997358", - "docs/window-browser-performance.md": "96a7db937e1bc15ed831508f20fbe2bb9fec038a78c15e52255873c9922ac980", - "docs/glance-pro-prompt.md": "4338691621669764d139c5f8050d4617d4c9a059aa41120b4c5ac516abafc63d", - "docs/competitive-analysis.md": "b4a109a4db795f5f8d07f158cd42cbb982b6a2272881d14cb3731a5253205008", - "docs/window-browser-test-coverage.md": "5b6de1a8159407b3875660621a421304cbff7bef50e4480359135bfa2aa056a3", - "docs/live-activities.md": "4caab93fe0c0736d85520feb41d28e32a7bae94bcb8f3efa2ff0440fb9260c6d", - "docs/ssc.md": "487a8f561f4d324f4db098edb82ef9f8d9db6caf86aa2ab990edbde9ffbd1baa", - "docs/welcome.md": "e6749f4bafdb588366b5e6b1b6b3cef2fad0b30081fc686745c9d8b2bae659ba", - "docs/privacy-page.md": "f0d41966695d89e893ce3a315e177e1460f414548de16a1d2988a19b1ec78770", - "docs/review-handoff.md": "88248a00dad8f753544b5b0f7761bf425f22ac9c129550628a7d17fb5bdf6da3", - "docs/face-unlock.md": "9c191b9a39e43932e0bf8c587a8e0f8d849752bb6f6ef52fe4078322e8c4f59f", - "docs/gestures.md": "285d619c2f6b4d8bb060aecf7eb8f2a09af65d56749ddc304e3ca85e9aabb62d", - "docs/stuck-habits.md": "c6b291d7a477e3ef5379957dace049db769b083982e7b14a6cfd4c214f01620a", - "docs/window-browser-visual-qa.md": "46c5f8e44074a816ee370fd8dfb2bea63de9d04bcf867549f579a20eed714b86", - "docs/authentication-boundaries.md": "9ac894b177c752bbe1777cea1e399864690de1e9bc8f46e7e6b0926865e312ee", - "docs/conductor-v2.md": "5c435d7e17bbdec2ba828718d5830721b77dd2e73d21e63c585f92d8a62d0494", - "docs/scorecard.md": "82857ac3d1ff908d61b37d07e8be05210b61730e6de46e11a57b048f54e821ba", - "docs/design-proposal-claude.md": "a4a1d452d194efe13504d511ff868eeea2bee50d12ccfa62c662597270162033", - "docs/glance-integration.md": "e43ca70196487a22fe82e931b579bb8ddcee08847018566c4f51c02fb9d0d66c", - "docs/validation-2026-09-22.md": "62abd3ac822ea9dd8fadbe218d7266ec7d0a9237bad51bb7c4e972e92ba4425e", - "docs/pip.md": "74c9b37f4473d7ef8c7bc54d0a3cb64f87bc02e5a853e5ac013adb08023bf8ff", - "docs/hardware-fit.md": "d14f89076a7ab37a61a3360c4ae2149f59cd401e719461efcef20af2c5b5e275", - "docs/blueprint.md": "c9f10268752be9c75d6d269de73e58309c94d409a9b7f64233f595a40ff11de9", - "docs/lock-unlock-plan.md": "59e782cecea525c98dda7033b07c4873bd9be678c244587059a7edcf9e82735d", - "docs/update.md": "9cd132c1b37d598a19e341fd3009fcc52b3254456f76c77b35d4207fcf5ef1d3", - "docs/motion-direction.md": "8f6c801d7a189ebc57a0dbf3057b0c0c5786d89b35d80280cfc6df4147827898", - "docs/window-browser.md": "b8015c096b7ad42d33a52ac65babf91aee7a13d3df9ac87f76f0a2d9a294b64f", - "docs/competitors.md": "fbf5b07f817834a951af1c95cd036d68e14f4d2be465b5160a5412335021aa55", - "scripts/try-duo.command": "7beeeccc2c79837276a165f4bde054271a5d1530c5716b49c312b58a14bf3624", - "scripts/sls-symbols.c": "de51dd06c9c10cbb592ba03e8e5fa7f473770a2182a9d7d6f01c43058dd4a173", - "scripts/check-standard-menu.sh": "1f186101ae461a577460a9d09e4921743e315a40c51b533f0664559519124044", - "scripts/check-settings-appearance.sh": "ba4eea9d99f1dd57e48d38b4932fffb0f0a3790277e54362ce7b5cae9e43061d", - "docs/releases/v1.0.md": "3783367f227bc76b9e62c90d904e0f3ca0b0fa138bc6ea96542643dcd2a84f43", - "docs/releases/v1.0.11.md": "9aa1150983710d8250fb56c91817eb1a25b23428cfc58c23d6f8abc648726198", - "docs/releases/v1.0.16-checklist.md": "cad6ca99d72feb5702d9ddb8459ea37bfa10246cd66434d71139000d3508eecb", - "docs/releases/v1.0.13.md": "3e57abbf6c7cd8e21bf51dd5efd7a1f0a743c9db18de4f90c7212fd22bdbf6c3", - "docs/releases/v1.0.14.md": "9bf99e2532d4f6b01890e6ea2afa358e362024d365774350bf4c767fe90c23e7", - "docs/releases/v1.0.16-ledger.md": "5ef9ad81aedae8dfe2089eef058a022ffe22fd14d34c33b3af2d937ce8313170", - "docs/releases/v1.0.15.md": "79383e8838bbf160108a38fb70a272f26d4cb2180dc4d181a06fc94535cdaba2", - "docs/releases/v1.0.12.md": "23d4aae11e4085359c1519191cd6e6fabff2c7e11f201e312c0a08d07b9ce8e1", - "docs/releases/README.md": "79301ab70bbe3c5bf6d7c7095107353d92d1d63eb879bd0fe40d72a7f313bb26", - "docs/releases/v1.0.10.md": "2ad3ba06630f9c018bbe28cf2170b256e81b456c78d25e50908a95759bf4e315", - "docs/releases/v1.0.9.md": "da69d052a7612cb91c5c49b236824ec85cfb8c3d2ca5503621a386b129dd3368", - "docs/releases/v1.0.16.md": "d28ea7827b3c8c8d928e722edb1d7b7641306f6fcfe3134ff2a7015a6e08febd", - "docs/handoff/START-HERE-deepseek.md": "f312e6ff55ae910ad7d4c4127f1548ed0b711f709ca23196afa0449094010edd", - "docs/handoff/deepseek-film.md": "f935b56ffbb3986db04f9d4489e8dcabe5c3c164e4aa8779d535a95ca34df965", - "docs/handoff/deepseek-menu-agents.md": "f1d69f88f3c1dc6204389ceba794df9a3f1295cc86a6b6043153e599860c34bf", - "docs/handoff/deepseek-dynamic-lock.md": "d4f109f113ccffe680e716a74d34d67743b17b87904628974916d47496d724ce", - "docs/handoff/chatgpt-2026-10-01.md": "f678d00a318bc5410ae6860b33f81d3454256d853438779c0118deb4e786134a", - "docs/handoff/deepseek-conductor.md": "723a8eb65df8c26167947778ec316fdfe54d1213b68ed816f431c9bbb418cc2c", - "docs/handoff/chatgpt-review-1-verdict.md": "4caa17fea8390b7d92dbacae8c4d65918a1dca276b6ba25873a015867a38eb5d", - "docs/handoff/deepseek-input.md": "3452f91df3b1c22b85e5afbdcd5574aa2d44c6e2f663be3df64189d1f30d06c3", - "docs/handoff/deepseek-pomodoro-symbols.md": "538c97c89de9fa2df681aa754a8c4b5410b3eb451dbcd8344517aba96e7bec52", - "docs/handoff/reference/mac-facts-2026-10-03.md": "18c728dee09ac63907f100c86525ce89e790185838154dbcdc0afbc5eef396bd", - "docs/handoff/round2-part7/privacy-signals.json": "511294f40bd1dd8231178d9906ac9748889a74c2001b3e02cc8a3c3987298499", - "docs/handoff/chatgpt-review-1/prompt-patches.md": "3970e18ff040c8bc28d6b3b98245589b76bef970f04c26ec1ceef0b671bc17ab", - "docs/handoff/chatgpt-review-1/sources.md": "641bf7a197ae422cbe4d175bb45fb146a4adefc8f4cd8c8f3fb69f8bb298f48e", - "docs/handoff/chatgpt-review-1/review.md": "47703da5d5f1655ec0a5da707f068c57f1f260a8739168e26c478a1284f4e7df", - "docs/handoff/chatgpt-review-1/README.md": "0ca20d0db3d61bfd18a72354e9158ef4478688c0a4a46070b5e1a85c546a4fac", - "docs/handoff/chatgpt-review-1/validation.md": "4e80eef0b2b25f940fa25cf67e5045f0cd5a8183115e0fa2df3ab603296b3db8", - "docs/handoff/chatgpt-review-1/SHA256SUMS.txt": "079c3957536797dfafbfae9f74fe48e19b918a95884fda8e8fcd89459f41501f", - "docs/handoff/chatgpt-review-1/examples/T4.swift": "e2d4bd8fc78c1b38ac0e9e733bae5ebc94d516a99cce3d6bd25d3213d72d6fb9", - "docs/handoff/chatgpt-review-1/examples/D2.swift": "782124401297858c1c1595060747b636c95695046b20b29aa0ede14858666944", - "docs/handoff/chatgpt-review-1/examples/D1.swift": "d9c68e8dda1a02cd8443b325d9efaac4d613e3b10e5d8967b73094edfaa274ae", - "docs/handoff/chatgpt-review-1/examples/I2.swift": "924808e02e2ced9d2e61536f07ecb0c1233defed5227c89850830bcdc9ff1993", - "docs/handoff/chatgpt-review-1/examples/D3.swift": "075a195bb9e32c84c019e1e09ac2d71ddb0c4d2a0cdc9160e3d783b9f2f1e9c8", - "docs/handoff/chatgpt-review-1/examples/D6.swift": "8c551e61ac2ece44f84037e1c8d20260ff53c568441f17c8bfa9002ddcad1906", - "docs/handoff/chatgpt-review-1/examples/S1.swift": "90046399a1e175342c280088e2f7fcc549796c88ef30e7dc615a9040894d9dd7", - "docs/handoff/chatgpt-review-1/examples/I5.swift": "7bf1e8c69a00ad86b74dac41e154af3c47fe7bc27adb726d321a5bf87d54cbad", - "docs/handoff/chatgpt-review-1/examples/L2.swift": "ad579f43fbcf02db5fe2141098c00149f9324b052b5dd799873ba9e0199496c3", - "docs/handoff/chatgpt-review-1/examples/A2.swift": "f4f9926222ce3ab43cfab99be4b14f68bc493c88a96fc43804a9497777204610", - "docs/handoff/chatgpt-review-1/examples/D5.swift": "7af79bc13e94d075e7d363febf3781690fd52e3687ba4d450b420ddaf998d0ef", - "docs/handoff/chatgpt-review-1/examples/D4.swift": "0ce653a07e56078ac82aa4385519ded4e0b5a5b1eb621624050aa0148247d274", - "docs/handoff/chatgpt-review-1/examples/M1.swift": "4cba363b11a35c4f201441696829c66be059eff4cf10ba97400cfdbe0d6b9e13", - "docs/handoff/chatgpt-review-1/examples/L1.swift": "49cf160cd5e4f8b1da784a170a77acfcf183c71afd53cff4827c29ed6ddecac8", - "docs/handoff/chatgpt-review-1/examples/A1.swift": "9dadfffb018324d792f394d392dacd5b4248b31952d08cee7c3db8b63fc84f99", - "docs/handoff/chatgpt-review-1/examples/I7.swift": "9c569cc2fe4b5da9d35685bdd423d2d49d6c3a864d9eb0870e2c5a8d4a908952", - "docs/handoff/chatgpt-review-1/examples/L4.swift": "096461756b2985fb3adf79cef73541c7a6429425745b1c76728e5719b85090bc", - "docs/handoff/chatgpt-review-1/examples/I3.swift": "cf57fb29f59a9e3d853393c278152276b323a8e6c45348afaf1dbca3d4678a00", - "docs/handoff/chatgpt-review-1/examples/I8.swift": "9035f9ef3ad52dc3eb1919631be54357ba79c7b8b325000be4dd4076b68e4ffa", - "docs/handoff/chatgpt-review-1/examples/T1.swift": "a43aafbe1b3068fd62f2d7ed96cc656460f6c56842d5df4716463df6f2c0099f", - "docs/handoff/chatgpt-review-1/examples/A3.swift": "5c7608e773d33f0a1b868377b07f621fcc7323d192a039f868003d9273be00cf", - "docs/handoff/chatgpt-review-1/examples/I1.swift": "e2ce0a23f28d5804068f49d94559faf7627af06acd55f94fcb7ed77761d00c2f", - "docs/handoff/chatgpt-review-1/examples/T2.swift": "509363204ac8e73decd1e9323dfa73294e6b196736af09a06b02acf78f03a972", - "docs/handoff/chatgpt-review-1/examples/I9.swift": "522bc168abe6bdde86eb42e4f661b8198a7251e11fe38eea51b66bb7c1cb48b5", - "docs/handoff/chatgpt-review-1/tests/BoundaryTests.swift": "eaffe60df038bee7e39416f76dc8b7822c256eb2ab214fdc87cf0cc576f36666", - "docs/handoff/chatgpt-review-1/tests/typecheck-examples.sh": "5e95d1bcda7c5f9a43a1b10b41b03af2c2954d2c805d3f5523089cd5a28501b1", - "docs/handoff/chatgpt-review-1/tests/run-boundary-tests.sh": "9a961256a37a69793d857f3220259d95c1720e703b1b8801b66c4e2e0818bd52", - "docs/handoff/chatgpt-review-1/reference/hooks-and-app-server.md": "6a2e2835b21f556f1af444b345d76dab43da4251e628bd1422639c6a3f9ddccf", - "docs/handoff/chatgpt-review-1/reference/private-abi.md": "66e6571fc608d2576483ad2e116de25c3efe169402fb59ef0cf27d7f056fed0e", - "docs/handoff/chatgpt-review-1/reference/contracts.md": "0729a25fa1594ef60cf37987555c8ab8dd2b7553a3e544e6b26130a101327cf0", - "docs/handoff/chatgpt-review-1/cheatsheets/D4.md": "755ca88033a8cb843fcf7f1ad999a1c70aeb9c9f888f07b0922718230d72b2bd", - "docs/handoff/chatgpt-review-1/cheatsheets/I8.md": "3140b4c4966fb143a1adc80bb11c85610ff2486ff9fe1d4234cf4d44baec756d", - "docs/handoff/chatgpt-review-1/cheatsheets/M1.md": "00957894b035ff5f330b33eb3a4d4a4fec24571893fd50e9377765420bcaf509", - "docs/handoff/chatgpt-review-1/cheatsheets/S1.md": "bd4b14058babac734ca2ffde9c8246d89570347c9a06716a67794c37330dc869", - "docs/handoff/chatgpt-review-1/cheatsheets/T1.md": "5f0f410b637169e03d712d75919b99dea806836646f3473d463e40f841aed278", - "docs/handoff/chatgpt-review-1/cheatsheets/T4.md": "6af354f834a4a74d499c010e7df3336f94d10bdf5d7b982ee98a1ac3ff5b8954", - "docs/handoff/chatgpt-review-1/cheatsheets/A2.md": "04ff8017adb9156c2c2496c164f3e352c3eade229b0d9ba4c69ae6c056b70624", - "docs/handoff/chatgpt-review-1/cheatsheets/D3.md": "84b92e38cb08e6933e7395f2f64a56fac3b369d1e2fca4c42f8e6e40e53c63e5", - "docs/handoff/chatgpt-review-1/cheatsheets/I1.md": "a38018ce17c1b050c95143a0ec4f45a180416be31903644ed75f3b01501fc48b", - "docs/handoff/chatgpt-review-1/cheatsheets/A1.md": "adc107b5763dfde8f2d669beeadc93f9bfd114d6d0aac2b9de25335794376eee", - "docs/handoff/chatgpt-review-1/cheatsheets/I7.md": "48e7bb066942c2eb78ef61eea181923f91c290d8a411d025c3f5d3d9217d72c9", - "docs/handoff/chatgpt-review-1/cheatsheets/I3.md": "18a777ed326e8f7868ea342aaf0d1915fb6535634c3c7415e3a37df934f443a2", - "docs/handoff/chatgpt-review-1/cheatsheets/I5.md": "0dc7a74285b65a9d1dccc74c30d431c88a3d546c2054e017bb9e72e0e106ebdb", - "docs/handoff/chatgpt-review-1/cheatsheets/D1.md": "e403d3183b448a1514b90e55e720d44adef17fc2d5fe25338565a62315bc1993", - "docs/handoff/chatgpt-review-1/cheatsheets/I2.md": "bce16beca45b52c1ab57a2c030b3ee4532ed0cb0bc089d3751d68842a0c5cbf6", - "docs/handoff/chatgpt-review-1/cheatsheets/D5.md": "7f8724b9ca5a478bbcf056ae06f4492ba79e1d332a751734b86fc9211e7bebc9", - "docs/handoff/chatgpt-review-1/cheatsheets/L2.md": "0b5afb352ff702231f428a9489218f21191d3a89bd40520ab6a567e56f26c61d", - "docs/handoff/chatgpt-review-1/cheatsheets/A3.md": "379e1a39001a2fd502516d043af340eaf1257d5b0d2a3f16591cacd74a4c3ca9", - "docs/handoff/chatgpt-review-1/cheatsheets/L1.md": "a754c73f536ecc97bf67403f1240ec7f95dd55260c95643dd899193c1b7c17b0", - "docs/handoff/chatgpt-review-1/cheatsheets/D2.md": "1983bda7e1e093584419712d07c1e94dd84b191acebc462e0130a10568e84be6", - "docs/handoff/chatgpt-review-1/cheatsheets/I9.md": "df4bb906aeb11235b8d2950b4d0a7b1237175f875bb7e99768af250662caa453", - "docs/handoff/chatgpt-review-1/cheatsheets/L4.md": "f031742b14198a91ff2b55e4d5483337acbbb4ba39bbb7e88ac3ff33bb6b0c77", - "docs/handoff/chatgpt-review-1/cheatsheets/T2.md": "3f6c09e6f33470d62fdc13d9780017e215ccc71711ed809a99bd75c143cf44a2", - "docs/handoff/chatgpt-review-1/cheatsheets/D6.md": "a9e31d9e24a438a5c1e0a81d05701322db9f139ad8b9f396e1f65ae68ec28cea", - "docs/handoff/chatgpt-review-1/validation/typecheck-A2.log": "b06947a044f7cbab3ae04ba9e4172d4dd2df23dd7b909993738e4cfdec96581c", - "docs/handoff/chatgpt-review-1/validation/typecheck-D1.log": "5bfced18ec7a04276205c9c83431adaa3fde3b430a980514f4b19b4c7550987d", - "docs/handoff/chatgpt-review-1/validation/typecheck-A1.log": "1437a814bdebfb68c840f013a8349705a6a5ca70efd2d0d471f7db4a14660dc4", - "docs/handoff/chatgpt-review-1/validation/conductor.log": "b1c223ab3be82a19bad2d7045fca062b892f9d208a5fe2327a750631d6e03fc9", - "docs/handoff/chatgpt-review-1/validation/package-checks.json": "e95d0050afdc95a28bdb644d729d509920a2789e40fcc8b6a4c8a68c59fca3ba", - "docs/handoff/chatgpt-review-1/validation/input-manifest.json": "425381da32fa4201535ac58c825692421f69f93ec15886b5a36ab068b085d6b8", - "docs/handoff/chatgpt-review-1/validation/boundary-compile-initial.log": "0a1a3b4d334ae6d48384689dc75a606014627c85d1495543121f36bc42aaa639", - "docs/handoff/chatgpt-review-1/validation/boundary-tests.log": "b52b633d69e30d338d6c663efd9a5bab8b4f31382980eafd22156a8d449f7e73", - "docs/handoff/chatgpt-review-1/validation/notch.log": "3caae3d18fb3c30e5a3a00cb2bf426bb2e592e741d536b57fc5425ee28f89c1c", - "docs/handoff/chatgpt-review-1/validation/typecheck-D6.log": "b5f48fa3c46e4a9ab4d4614343dc8120f818bcfeaea89d2dff91a0a31f442206", - "docs/handoff/chatgpt-review-1/validation/typecheck-I7.log": "ae6b44eb541b2157885f461debde513e9a35b6c4f2f7368bccd08a4d9d9ee8b8", - "docs/handoff/chatgpt-review-1/validation/typecheck-D2.log": "a2b9d07b9f09ba42353a540e7e4e3c9e8eadb0aabf5a6a6fc487496603fbccf7", - "docs/handoff/chatgpt-review-1/validation/typecheck-T1.log": "337c6e923041d64f295587ab0ac24bfe850cbeccdefe4ab3d6b985ae52d285c6", - "docs/handoff/chatgpt-review-1/validation/toolchain.txt": "eb9fe405b65bcda75635327f6ca704543098f4e7d882bf5d2541a6fca34725d6", - "docs/handoff/chatgpt-review-1/validation/typecheck-D5.log": "4c5db623090d9647446293b944424bd8a1ca0a214a7ad646a810a8f786c5f833", - "docs/handoff/chatgpt-review-1/validation/typecheck-L4.log": "33ca1ccdfe388bb7167fe264b9f7ace299d961f62a281226701f5800cd8a09e2", - "docs/handoff/chatgpt-review-1/validation/example-platforms.json": "348e6fa8a64fd6b410deead88c6bd362a0e4b67c6b62935e4afe5e52b2aadd00", - "docs/handoff/chatgpt-review-1/validation/typecheck-T4.log": "75d2e7ec7e537f5e7efa83b40adb2807ec5a183d5638485eb095df20ed8cf3ab", - "docs/handoff/chatgpt-review-1/validation/review-findings.json": "c4c3358c8d09572b9d2b6612f8d86a6041d0b0d6daae140f9e2ec078adb693be", - "docs/handoff/chatgpt-review-1/validation/boundary-compile.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "docs/handoff/chatgpt-review-1/validation/typecheck-D4.log": "a1bf465ca3224f45a9b9c628c164b34624167d275d9874667b3b8ad0e7563f94", - "docs/handoff/chatgpt-review-1/validation/runner-boundary-tests.log": "b52b633d69e30d338d6c663efd9a5bab8b4f31382980eafd22156a8d449f7e73", - "docs/handoff/chatgpt-review-1/validation/typecheck-I1.log": "b54a2662ac6a3d67d6cbb407b52784749949417ff91e85b89fa0ac9a052e69aa", - "docs/handoff/chatgpt-review-1/validation/typecheck-L1.log": "06834f3abdc1f9f45bb7516cd7021e6b0f154c4b51a5a11f7df6e25f818ce2c3", - "docs/handoff/chatgpt-review-1/validation/typecheck-I9.log": "9b227125fd98c7d67825784358e3aa833ba226d2d5d6186c5b6ef161b4a5f022", - "docs/handoff/chatgpt-review-1/fixtures/hook-allow.json": "600d7470494907251e4ea8186239c1451cd1784487cda22d6b54552114d7cc01", - "docs/handoff/chatgpt-review-1/fixtures/claude-permission-config.json": "dea20a25e015b61ad56d0343a993fdbcd2dee789ba5df296f730738e82cd4611", - "docs/handoff/chatgpt-review-1/fixtures/app-server-client.jsonl": "bd674728d061d7e703f84305fc8b947ab33d54aa3930e202d08fb50350777ca0", - "docs/handoff/chatgpt-review-1/fixtures/hook-none.json": "ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356", - "docs/handoff/chatgpt-review-1/fixtures/hook-deny.json": "2664ee0eff0c12b2f2df5399b55bab2f1561c3ba8e217f15c501227784af33d4", - "docs/handoff/chatgpt-review-1/fixtures/README.md": "640b3f3f163e1d90cfcea6e9f57e37f9e33e8b30726ea5b36280f123214e5f3b", - "docs/handoff/chatgpt-review-1/fixtures/codex-permission-config.json": "3a181b2bfdd8a29da003cf954fbe3aa6d9fdbd88487fdbc80b5207d61778706a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FuzzyFileSearchSessionUpdatedNotification.json": "b8626521028e0c68611c57d458f27dbc9bf8be542e804865ae0d14acd78cf2e6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/RequestId.json": "9c72d59a306d827113020c6d31a14c326d55210d9bd6954f825196a52009f1c7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ServerNotification.json": "b3e76cf11842f3e8b3270c05e000212b56eabafb0152fc38e8f920e2ef902991", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ApplyPatchApprovalParams.json": "179d91081c3c84d0f79fc544a3d6d423f280c0f9d93512cdd0344c80e09b99a3", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCMessage.json": "6da4cc373a7ccd01f5608ad4496eeb4d44b6a9b0d3158e85ed66b59f3c0b5114", - "docs/handoff/reference/codex-app-server-schema-0.153.0/PermissionsRequestApprovalParams.json": "c6d165e1b0c65d5dcf1e099b4c226c7e4dad79fe2b88b03621a1fc6c1d3c86c2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/CommandExecutionRequestApprovalResponse.json": "6d0767113e22f311381809b6b236b0dde2b99b01992879c26bf7b1ea0e003cb7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/McpServerElicitationRequestParams.json": "5cbeb6bc702d2efa076da4c1dfb00672c970c1bad747031eb880b9ab907815c0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FuzzyFileSearchParams.json": "0291dbb87a7c3d8ef7f7cdf8d5d61f929deabab8c0ea79f064da95984d7d5f4f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCError.json": "d7ea353d4875ae204625da5a00a1ecb5afc69101d5778b9acc253a49f8932992", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ToolRequestUserInputResponse.json": "5073b245f741fa8ce62ec52e4dd1809b7831f9c4284c279a78abc9b171f8e3f2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FuzzyFileSearchSessionCompletedNotification.json": "d3af2e301142ac0cb2462d95b052162ff4f25d83f9c1b21e319d5ce9c860d401", - "docs/handoff/reference/codex-app-server-schema-0.153.0/DynamicToolCallResponse.json": "abb082cad67f11fcc98ba75f2eff75d7d1723af0c657655329b83ff160451a02", - "docs/handoff/reference/codex-app-server-schema-0.153.0/McpServerElicitationRequestResponse.json": "792a012fdfe53ac211575a6c37ffbd492be848d15cb313d1bb4b534ade1f54ac", - "docs/handoff/reference/codex-app-server-schema-0.153.0/CommandExecutionRequestApprovalParams.json": "16a71816c2d66e319c2c4aa83dd636dfdc43c61e72b6d5475e421ce08d8e6558", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ClientRequest.json": "25bc001b5dfe3b35785597b8f9ad9e5aaf7e437331fa9921f041c9e0e03fc9f3", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ChatgptAuthTokensRefreshResponse.json": "06d6b30436fc962d80b5d7920f8f323de12a052214d9148c5f0dfbaedd5eec6c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCRequest.json": "31bd6f360b2dd8a7ceaf682708105d40d38cb0b9d0821357a04da67028438f73", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ExecCommandApprovalResponse.json": "80dba6d9f28d19c57960db72340554c193624f014cd496714a0c7aabe1120046", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FileChangeRequestApprovalResponse.json": "b95b03ee6be674e25cee2e863cc135a28620e1070addd2f34685aadee27cde08", - "docs/handoff/reference/codex-app-server-schema-0.153.0/codex_app_server_protocol.v2.schemas.json": "d3eace08be5dca386bfd1f1e8df650058b4113f1e10870a284d775d75517576a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ChatgptAuthTokensRefreshParams.json": "03b7a734b8b3180d9cb477b33564385d29b22a2528165a614891f13849060503", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ServerRequest.json": "31f580ad468fbd18766eb7adb12744be4e3790e3357b58bd4413c0108c4f65d0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ApplyPatchApprovalResponse.json": "a5e145b4794ea91da6eb478626fac96bbbd4485c3399fabd1c9972d53d2d9010", - "docs/handoff/reference/codex-app-server-schema-0.153.0/DynamicToolCallParams.json": "401bba20cfbd95762bef0467d840430c46be53369093ad9f26425ba757e34efc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/AttestationGenerateParams.json": "b85df8f169cfbca98724df3a5f7550fc4649fa69b23f5160aafdb52e027133a8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCResponse.json": "4796738c04c74288213a08fb8d820c7b4df19e0977cdcd35b65ffcb43cfc93ab", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ToolRequestUserInputParams.json": "fda15b62e7446105b59c8ed85c908abed2a47db70653e57c92c47a2f204fa77a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCNotification.json": "c2b43f26880db331393fe09f34bdd76dfeb4dc30d8418d1c26e18db166d6c8c8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ExecCommandApprovalParams.json": "653116614df1aa5011c3cc399cf79bae6b9eb28c1d527df27275abf61ceb1365", - "docs/handoff/reference/codex-app-server-schema-0.153.0/PermissionsRequestApprovalResponse.json": "23f3f24e9dbf35db3e0b85703f0d934da5a1cff3cbb611fba8bcd41f3b4a04b0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FuzzyFileSearchResponse.json": "4984c3dba591e240407c39531d41c6b499c4816017de70a3371c7d6fa2d0951f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ClientNotification.json": "706cf248d75027c84a3c63348d0ed507182e8eba40069dd17541793de029145a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/AttestationGenerateResponse.json": "2eb86b2a37bca01a8cb5d0822f28cf13d46dd106c8b1d38e7ba097e436b5ab30", - "docs/handoff/reference/codex-app-server-schema-0.153.0/codex_app_server_protocol.schemas.json": "e8284c5cb8157554a3dd1e035aadbd4325aea501af56887e9c2e12eb1b9b9448", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCErrorError.json": "12cc5cd5d9df9246defa609c472375020fe5250f3aeabd7d529076cecd9f541e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FileChangeRequestApprovalParams.json": "13848b26814c286ad6425a20d01c1691c86790e1f9e2529399677a8a22fe0d18", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRevertParams.json": "3a5e85a67906c8ea3ad9f5065559d263d968a28a957739e7a1d9e4e1981e4eb8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceAddResponse.json": "a37633e9ecc2fdd87ea582861bcdcbf7963a8fab6db9fbc1bc8eac7d2f7f9a8b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ProjectChangedNotification.json": "b32151fcb7ef78fc5c969db44255756e5e6e1754398a5b6b09244dcff0c1eab9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerOauthLoginCompletedNotification.json": "d3b7ca4f2626a623b4b5a97eeedc711cc27d41b3ee56fed8b0304857c5c9b13c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PermissionProfileListParams.json": "576d405f6c94cbde982a9f65c9301717043683b83ca35d564247907feb16b1b4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnStartResponse.json": "6fc49c3e5d0ce11a3a109ae194619b04d6e3ff98fa29bac683fdb754608958be", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecTerminateParams.json": "979ece7059c6713d0909ab1690daec27149510f4ea2ec10014600bfb1d631c97", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetAccountParams.json": "30b545275f60975b55bd6fbaafd70f15505801d14168ee82d3931b6e93c78aab", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadMetadataUpdateResponse.json": "c1c1095f8ebb5a975c7cdd8b4fb36b81e3e2797e35209b2cf0a4597c6f418961", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRevertResponse.json": "de7206155e188cea30dfd81fb3295d6e2554a7cc7b58202c4b0a49e9623affe1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsWatchParams.json": "10bd9c01b3819db1ed8e2487a277f20b35e3a9f74ae77214654f1a529fc1444d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsWriteFileResponse.json": "0e4153ee7baa5c1203c2c573504baaa40e1dd8738d78e4c1e3a179fb49df6b16", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/StrictReviewRequiredNotification.json": "16b50621c0982d84bd83b6e85586c1038ff309337e4253219895be7c118df470", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadMetadataUpdateParams.json": "190da07d8c7c89c44b1e44b4e57fb5d803f356953534498a7a7f39fe29a8a6a4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginReconcileParams.json": "91dfe0967326b876e50ddf8d896c6c516440c43a36b08efd4746c0bd770882dc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeItemStartedNotification.json": "ef1a68a635ce680b321e276fd9144ef614b37bab16942368bdc16bb8ee217f46", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnStartedNotification.json": "d4b59fd396cadfc2377f60c9f9f4c9367dca95362baadf7817c74e1b9c910c4d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareCheckoutParams.json": "25fd868fff9500ff244150a4ecd36322c0d31b339a4709649594b79aa1349185", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecWriteResponse.json": "22887250f84443b2a6f5fc6f9c46cf9e2af072ff631574340018c48771411571", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FeedbackUploadResponse.json": "604390e864944eed2c4268675978dd8082f0884909d73cc79fda59dbe03a2d58", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsListParams.json": "1d245374e64c5acc9739dfc68a4fe5114c6c9147af04c480886f1846d2ca6239", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadShellCommandResponse.json": "fd4911613f6a6da2ca13b75342501d4d61f64e00a1083c6d60038369b8caeefe", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnCompletedNotification.json": "78af2a37391e8e669a4020cb58593e4d3e378756ced79d5fec72374fa69fb94b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeSdpNotification.json": "1e276f48d346e6cace65551f84ef9b0bc8daba2a3ce93499f3a902551de239fc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnSteerParams.json": "4a52eb76e7a717bb388484ccd7538737fca0df35481fc30a21e259f1bfe96e37", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecutionOutputDeltaNotification.json": "841fa94098ddb63a71acf1bf5f9e3fac1b0491f4ed3fa8ef86f9a6ca1260b539", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadStartedNotification.json": "d66a9b4563471c5fe99de18cb2bd3c83e7b6aac8deb0b0579406b3b7c74d7b35", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeItemTranscriptDeltaNotification.json": "42f2456726367b90a2626a32f3f88495de87032243beecd9bfbad28734f4b62d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsSandboxSetupStartParams.json": "8610d077fff4fc5811f2e33dea82617a15ffb82f08e55e1540aef877133f5b4f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpResourceReadResponse.json": "a48af749203ed3307414750d5070facb5ae6ef8b00253f1cfd9a8124bdfcfe41", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ServerRequestResolvedNotification.json": "4f03d586a5af04edd912cad08cc97eceb658e7e06744565e6d41a93e04a55966", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadStartResponse.json": "656f8fd0fe91f533126cbfdb9369cfab550927a229e48dd46460f6f015d2b186", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeTranscriptDoneNotification.json": "0000453425e300fd19ac2bc5fba4ebf3fbce48ac9a9b62ceb8bc5db8b6c77fff", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigDetectParams.json": "db6c6ea654efb4095dc745a1e65bee76d0d063b03f2bc3202b9077a1569211f8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ProcessExitedNotification.json": "06cb5f39c67f84c227063d7f40e5e78fb62afdb76778c3d603687181896e8440", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ItemCompletedNotification.json": "69aba3fe5f72f38bf5c541e7e2c09de40778abe65ff969d9fc73372037812091", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsUnwatchResponse.json": "9c59c3473df1f1873ee0d87ed33cecec0766b24c8357ee7dc8b29a57ca21e104", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigValueWriteParams.json": "b9032e35bf64d4628bfc72e22b58b71bbcf754aeb720a86eacb091e0137547c9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadApproveGuardianDeniedActionResponse.json": "628336c7cdabd508d5202695502bb0f9ce42fdde380f5efdd4b033cf215d93e5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsReadFileResponse.json": "fd67dd725b5bf5c7f27e78cc3d66fe24314f08913fc00ace9dbb663bf2f487e1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnsubscribeParams.json": "77c67e0dc0a729af2d4612f30ed63f1297160232e96cd32b7cb9cc3e7fff0233", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalUpdatedNotification.json": "52010479c7efcc6dc749e2d9bf1e27c134453d92a1f0b367193d8125eec1fedc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerOauthLoginResponse.json": "95d7d00622866ac49dbe459164b8be665b2c9ad7b26772eadfc610a0537aa6d4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PlanDeltaNotification.json": "a5cf42ccfc6cf905ede0fa9041e9c951ea7870aba4e3a7c7f68d85f01416d3af", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareDeleteResponse.json": "ae881a7f898f5287354de5adf6f42094cef9029a9b9376bfd12aa1b0fe0b3106", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReasoningTextDeltaNotification.json": "16cdc13080a7523b44f00fb6fdb660c56a7c4c8cda96b2f9b87b7e72264170fb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsChangedNotification.json": "197693fcb852a85fedfbcf1cd00c9a3cc74dddfa09bdf6b11fdafebbcd12ea2d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalSetResponse.json": "b1c61b6068b3b73dd3d97b38f8a269593f8f7added4643bfdb2016315b71ad8e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnarchivedNotification.json": "fc00949cdc588b84800a26403647eda0e22d6f28663dc032a90db9c20dfa822d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeItemAddedNotification.json": "48aabfcbfd2361b5830a93257bc9eb31a6933f6e390694e188bfb287acbad9b4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeTranscriptDeltaNotification.json": "1a6add677534de891026eb56aac815b2585fbd4a6d6475f679a722c52b778703", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadLoadedListParams.json": "42c2d124ab2b2998d84f0126daae2d32b0bf9c5a7ea7266e3a0814e5e37cf00d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/RawResponseCompletedNotification.json": "aba140e87952c900f96e0308a8849d3e313d985de1f1aa2b77f193884a76357c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsInstalledParams.json": "c2027510d5d041c2205349036f9c2bea10b20df309de5330beab9de8a9e50bdb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginListResponse.json": "a405d2514d6236df75130c87c749e0e070b946a889f143a0448bbcd27d1d8501", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportHistoriesReadResponse.json": "1c09641e957333a2f602a350532acd99cf538a73ea45f39a2294289907a0bd96", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerStatusUpdatedNotification.json": "d6f4cb120b2363d321247592f03b9afbbf2762ad6d8af31b88c1b1bf39c4c7aa", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecResizeParams.json": "b748fee19979d2c32ac17a460ccfdc761e125cc2939bc551945e1e2c2af34197", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CancelLoginAccountParams.json": "a4570a7542b82b918f69199f1e214ef747151c678473a5af58c58b088fdf58b6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpToolCallProgressNotification.json": "64a32b8282226876e749bc107a81db89d20d5ce5cb86ee6a043b960763214b1d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FileChangeOutputDeltaNotification.json": "04c3df83d46725ffc048577e7a5aa25de9a6c8ea9eff713bbae2b408672481c5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionDeleteResponse.json": "9bbee5cca1fca02e4a65c2481dc3b24f090bca7afb786923ee481017b133b091", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRollbackResponse.json": "c5e1d8f6845e0840068cc46422fcc986a7648487219a901f8a0f51ee9fbb6ca7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSetNameParams.json": "8e334c816bbaeb80f807aca61bf659246f3f60c245c21b5cb7e3ca4ee3ce4820", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelSafetyBufferingUpdatedNotification.json": "4cf853e3a2f968fdfde75206fd497d3d530b26769026bee343c3ef09ce438cfd", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadStartParams.json": "792e2f32e37cece971bd616664ea2053741acbed4e9c92e9d1766427718f2ecd", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadTurnsListResponse.json": "45bffd91efc358859a1a54b8165c0a8b1c21ebc2a312da9f25d05ff27af798ee", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadStatusChangedNotification.json": "26f3c60c1b73f7fa2d31c74429cdc36f8746c76c33e3d314b3fb61d3661f05f6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelProviderCapabilitiesReadResponse.json": "5c42590f728289daaa441b947617398a0ca3aa17479013b3c564a5d314a3c9cf", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadItemsListResponse.json": "886369490fec07067597460301b3d5c1dc9aedc41ea42522cae397d8babe6156", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalGetResponse.json": "f610000963194731c96ce2b45e46722ca700f1b6ccc1fc55a2fd95e526018fd9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerToolCallParams.json": "7039a7583a1cbf38e9e0f5fe6398ff3711acd4d654b81b0be562514087fce6ba", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportResponse.json": "0ad2fc7dff7b1bdc471cc365985f559490f253ea127263417f0a0a1edcb33cef", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsChangedNotification.json": "84f7f1d327c5c774899992f32c98e9e95ee3e010a410d233ec0c33221e4ccbfb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/RawResponseItemCompletedNotification.json": "cbcffe7b3f2dffb607f7e20ac1f1196509ff42e7d0cd9e6961d7c19b25506899", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnarchiveResponse.json": "1df1bd13818b3c22a2fb4a64c55b393778e0eaa65547744333d8df9bb40a29cd", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelVerificationNotification.json": "4f27a99d0c8664c29abb4d65384ab16853bbc29b61de5e749111cefdc6994655", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetWorkspaceMessagesResponse.json": "3ebd00f0acca088e5ee0309ec09b9a571e7f2eea5b63a32cda67be01c6886d67", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportProgressNotification.json": "dae7bfc12026811ba24cc6f32dc01ae9ffaee7d9340d7768f9afce94575c23d2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadQueueChangedNotification.json": "0a960da43fb14f69dae2550ac4f8517760464eedbf95a9977718548739fdcf21", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/NullableGetAccountTokenUsageParams.json": "a992c6ea0fe02b0e9f46b18afb51b8ee2635e7f0c7d546f71e7f95e2a98bebba", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginReadResponse.json": "1651d8136fbbbb00878c4c1f8adbf279d050bf25b4454e6db4fa46f192f953d2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/LoginAccountParams.json": "48fb9bea54d7e0890052653ac06737efb3200ba2261515b2c4014027f36bea3d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecResponse.json": "dec52d187121e8dd48124b47a4a8d8428ef3717b98b9200345bb404f73b62c9d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigReadParams.json": "257c54a423b47c1d209ff1076765a1564d82322fd5161670fd489a2874de1bac", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeItemCompletedNotification.json": "b2a5e38840b8afc2111620c332801603e832b91ad4c95dd1f13c926923b760ef", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionUpdateResponse.json": "4588cbf0374204c17f02f15eecb5390cd5346bc551675e07e541bbfd28d020bf", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeClosedNotification.json": "5290a73f8d4652b59d2f82d89c7bd289003fe2981fb0c628a61e801fa2123364", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AccountRateLimitsUpdatedNotification.json": "c50daa6abb4723ca1edffdae9d0d6ca452770669ed045fae48d0fe9b20c6ea81", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadInjectItemsParams.json": "8d7e754402a2bb71bd817882076d2f8ac4cd75d4573306db082a83b841aa3532", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TerminalInteractionNotification.json": "5383b3d9681d3c071c9845fd4f043afd60fbe1bcc3650939356cb03848a7d627", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSettingsUpdatedNotification.json": "e601ede3c6947f6df0aea6b1c091c01e38ef7909df939f5ef11c8f836fc8a2ed", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ItemStartedNotification.json": "c4c34f47db6326cd4841bae428f23d08eb285077ffad35be9772b928c65bb912", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelListParams.json": "de29a536c00a5b8f46f34dba417dabd93365305571a8ed200e33bea85db68b5a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelProviderCapabilitiesReadParams.json": "9db732188a15476cabb42cf05e495ae0803a1ada993fca7348c21c30a998388d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsConfigWriteParams.json": "6e7dea83b649bfd118828b60446eb2eab2f5ce3cafe287c933b830c9cae9b170", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsListResponse.json": "5811fda68d6274decfc11744ad72bbe93e601d8514549e94f361ba3131d1adeb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceUpgradeResponse.json": "2402379cb0ed1168a7dc327c412fd61bafdea2ad13ea7a3b3ebaee3b43c45963", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadLoadedListResponse.json": "1ea02c4710083e552b2a3a89b931b9049d5bf05b7db46278b8352cf9fd80cd52", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareUpdateTargetsResponse.json": "caf42dec67940f9e686ac7b4e77484921d62fee400b3af73fc85e6f46eaa03f4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportParams.json": "6b8d0a8fbd5a7ddd455ec0dea6d1b578f56841480c8a5fffbfcd045db79458ee", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExperimentalFeatureEnablementSetResponse.json": "5ecd92ee95380d7cadc4c109091530aa71245e41b9f1b530a5e9d5c5c9eda95b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsExtraRootsSetResponse.json": "b659ec17a196eaa3a23273a3e2d5596460ea329bc3ade249971576bc723d9e96", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsInstalledResponse.json": "d8ef8dd14dcba8aaaaaf2b0b80db90d66edf8f4ff422589b844ae2b0edcb46d4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsWriteFileParams.json": "2167e05c7f3eb26d475f9c1ce71697ba3b635efd8761a00b22abfd6af175bd2f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadArchiveParams.json": "dc2c0b133b814a5d9d543cc37afdb3f4f22feca35b7cea4272834b20a1e47705", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsListParams.json": "e880d0c24811118a2d3c2c7f0569a14aae5b12a31b0efe56809ccca8bbd85802", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportHistoryRecordParams.json": "6a3e8071854771b0f34c6623fb7dcfbeaa7518a90779cc4a40c97fe92ac6f3ed", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnModerationMetadataNotification.json": "90fe9ade83c46fd42af9d023737a9990595dac71e059158744950f538e802876", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsCopyResponse.json": "c88392d6c3ff394441231cdf5614794ba0c2b4ba683811f6033a01fe65528a59", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigRequirementsReadResponse.json": "7f3cd9856eeb581985a4dcd1acd90be8efa30a7929a96e4e74b6b9a3d878118f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceRemoveParams.json": "220c2475a96f32ca095f80f3ecbad427477b4ba37dfad7fb48a0acabdeb1f4eb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadCompactStartResponse.json": "74674e47f33e37d7d97d144eac1789ef0580a1fc12d45a5675bb97caa08d803a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExperimentalFeatureEnablementSetParams.json": "00aaf2ef719cc336e4d20eb26dd6158be1eb26161fb7647372804b80a02e3131", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpResourceReadParams.json": "a8241b056a65473b2b9bf0a14c1a49146de52dbc1cfc276549f52f4db13f3be6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadResumeParams.json": "8ac68582a81d60940b10b330be8546123f56bfe246b56f8a4f121da00f347cf2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceRemoveResponse.json": "98deb2f721d57ed727f7cc7b4f478db5f604b6b6d40e6261928dfd5f586405e3", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigBatchWriteParams.json": "d11e244258ffaf8a37a0ca4afdbe589d07cb7881b72f06b7f730fddbab9ad613", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/LoginAccountResponse.json": "72e6d77f49bc5809c3af50f183e2a0862dd8f7836816d4796ff69bb13eae0e89", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ItemGuardianApprovalReviewCompletedNotification.json": "bcf94662d3589c36ac3a13c0d919fa33c2b85f452d5098a8093360884d768a02", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/HookCompletedNotification.json": "1f146d70303cea6e59752191179e36a273650d63a74d4f9338f9a399da6597d2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelReroutedNotification.json": "37cd3c1b3a3560b85b01d4061a07d830fc9ed93b80e4663f975f9197cdb501ef", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginReadParams.json": "f15952a2828c90501cc32f347c1e1691ea65cd2d97f503ab40e7be08757de74d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalClearResponse.json": "2652c2d0072be8ccb71c8dcaaa054aa74f974e68156a73451baf72c8597669c2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelListResponse.json": "c7b58b332f6cf18fd64235409a6daf27bb9e6c09d12dcd0daa2f3dc628b55f6f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadReadResponse.json": "a76583d07f6096fee33045da2dc9caed84d858f8f2d39b37bb38528dbaf32511", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/HooksListResponse.json": "891dd10ef7f78e59631fce05fff2becddb8004b3c0338dbbbd6b4f17ef1fa64f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRevertedNotification.json": "570995a91a4436d403bafbf9a4c34ead666b137ecd5406803e14826a6d84cf22", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareListResponse.json": "d349a496947956fd5f4d125b8348faa2ef0c91daf7f3cd74ae0616f55c8e328b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigReadResponse.json": "bd72c94e2c7d49ead6a20bcf54afedc8db11044bf8cadb387e42135dd5d1e342", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsWorldWritableWarningNotification.json": "bfa34d4890c8121a04412b8d53314a13adf98289fdd948857fd97b808dcbe79e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/LogoutAccountResponse.json": "ac14ddfca2ec6092b0039be8720262d5a9930484d23e62544d2ef0b7e1db7926", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadForkResponse.json": "c15e43ec275b370df2d831cb5147f7ff399aab2e74d091c07cdb3de57db11f94", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExperimentalFeatureListParams.json": "4db92977e59fea4125710babb4cd2128dc2cebef8292e3619d0844089e7fc1f5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsReadParams.json": "61e6a9d35515f3164a7f7e7a5b0c5ac92817c5a3b5d7fb27e9a704fe2935ddf7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsSandboxSetupStartResponse.json": "830bf89deac3e73e36b7d9799ceed32ee25e782c30b1d25266374aa020d3bc7e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConsumeAccountRateLimitResetCreditResponse.json": "6d4144c00dcb7f73be6ad24693ff7e539bad56064e4432f7f2bf8d20b3bab724", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerEventStreamNotification.json": "44b04b6cc079ec0b99b4d29af1a69d99037505c19a2a07cff955aa298d7c181b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionMoveParams.json": "48bc921055838df25c5595c96be7bd25beef3accb8bd1d28026fcaa7d81487b1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadForkParams.json": "60540b97d453ddbc5e12bfaa007a3718f31847d18dec0da59a5e4b89be4717ad", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginSkillReadParams.json": "8850a9a45b9cf6e8b016f014c7c65f7062937be896d4fa0eafdaccc816909a56", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginInstalledParams.json": "0b56f55a817b6e82ea104496281cd43714ee96800f9b984412a3a858f444f68c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginListParams.json": "bc6b499161306df7082c5a8cc51fd793cd6d28dda93555b12ae299445132270a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalSetParams.json": "93162f095e9b3b5a051ceb24318b8922c663edefc1f8c67bd378085c0d6c01d2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareSaveParams.json": "ec937521a40437506ceb2dcfe79cedd03812dd1b8233c651b89c2ddd76e148fe", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReviewStartResponse.json": "d6d5c99473b695fff0f58a896bee11ddcddca23304523fba878860324b7f07df", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadCompactStartParams.json": "684b20adf20213a9fcbca31b59108feadcd5a8b693c16431c20d701049df3737", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsExtraRootsSetParams.json": "bb60389a0c7d4b73f625b9a40965e5e67b56b6503989f2d732cae12e9ca9698a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsConfigWriteResponse.json": "628bc112ca64f5475eb02a0eda718e82d670c40299444494e02a8dc278a772c7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsRemoveParams.json": "c453f8ae4b3311f5da88f67f743fdabbcdc323dc3d9eaa40d750ceae147bb630", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadClosedNotification.json": "d504cceb70e3397ad684924b08d3bff328a927be02ef4e3d482a18e27bab73de", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerRefreshResponse.json": "54a77812db02175dc69053870e582d3b314af6f161f0c76846f3563b0f9487c4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecWriteParams.json": "3e8e849ce321c85987bbe96ce1f913df0047696a5207bc97dfa1409b0142eda8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceAddParams.json": "e6c92ca2a3889641ca2281cca7684569b1187653b25b57f9beabf85519d638a2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionListParams.json": "6aea71b3fba46351fcaf648eab0da564080ba424599a012648abd9fd44464cf8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsReadResponse.json": "f3b73c2c31f16a2cff013c9682dfea48f26571f94002195c93ce10722a288791", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsReadFileParams.json": "74b325108195fe955e6ffcb6032e9380d3bfdee8aed7d115f5f1e4b127c5d706", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRollbackParams.json": "27002ceab514bcbab10ad2e0a7b9b842f9ae51bd5e8c084ed14960889b422ebd", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ItemGuardianApprovalReviewStartedNotification.json": "baf4e17938f94e2cf4d86d31f02f66d69d394b00594e3e04ed03dfe901014543", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ContextCompactedNotification.json": "c9f9a58ef680e09d568cff5f24b45895841e1cf138b650bae64dcf6c85f177af", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadReadParams.json": "dfe040c6ac71d30795b8be3f3ff232e66f362a37f883b491e5d1ea367f470db4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetAccountTokenUsageResponse.json": "a58e58c852c888e5de925d99a66688d55ebb2fff038e795aadf04f8a8426dff8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/DeprecationNoticeNotification.json": "29fdb44fc0a09bfdc5c4924ff34e33679acc9201730fa4fe9be7ed1978af0b72", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsRemoveResponse.json": "6371aba2cae2f92be487be05c1ce531ca4139da5004b740a0010ccfdba548100", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsCreateDirectoryResponse.json": "a658fbd34d5e3d6300bcb7015f10fc1764aa8aca3088abc79af9caa2e848e527", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalClearParams.json": "896c8b1997edf913382393f7d0f20ced4344714b9f0e8ce1f6564a11403e1675", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AuthRecoveryNotification.json": "c19238d43cf8bf610ea346afefc390b9ffa4f01e98ec6b42af0addf29d6cb7d5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginInstallResponse.json": "ae283e1ecb9f454f7614c6a4348fda5a7aba5af99e9ab9177b9a0cd3e1cd7db7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AgentMessageDeltaNotification.json": "996e6c0ea65e57bed5a00f410b94381fe5ebf804333e5d00c2b6e6d47e5c55f6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigDetectResponse.json": "36c4173d5f30ebd04be3d40389c904bc4ecadfbb8e5d1dd46b9b589254f7e1d9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionCreateParams.json": "e3bf941ceab7a4dd39ce1b4063168621d60162aa97f7171cef59819c999c501e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadListParams.json": "b227bb78acf9b91060d03c56d3f2072cdd9f1bd08290c11e8869f1a663b16da2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadInjectItemsResponse.json": "93d909e5b49b44da02072d340f8ad0ecd417d448ccf27fe50be7e369c7864159", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareSaveResponse.json": "3eb7c0ed6e6c72126c7bb3d845e73d5de98ad0d4ea8639d2f227fecd16c15411", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetAccountResponse.json": "08a7dd8c570c905b0bb6998d43ed133e72e2445f08125f86dfc96887e288701a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsCreateDirectoryParams.json": "405fd718ebafe7f47ffd82c86540ab4af663659c737ea2b25acd3e04a1bc94ea", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnsubscribeResponse.json": "9cad5e71a589c3c20e0980ce34a894a29e2898a075b10b1493bc87f32500081a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CancelLoginAccountResponse.json": "06bc17624df01600fdc399d3c0f222f875c010d2d952c1d1191cb84de9b59014", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadApproveGuardianDeniedActionParams.json": "082e5278ed4fb1fc23eafbe658e95ec21d81c446bb6daf2b57e25e8cd3aebd5e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetAccountRateLimitsResponse.json": "a28d4d0e9181a498c58d4ae3b6b49aaa6ee7a33c0c9f81c1ad0bff223bfbbe3b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportCompletedNotification.json": "c54702d40c3a40bcb3e3e835d99860473831725acbd3576fc26d2d4fa3a7617a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ListMcpServerStatusResponse.json": "d581e9ba17f6da0d686d0e730cddd51fda091f361a8c119317b2138a3ecdb612", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadTurnsListParams.json": "2a8b93d7d4437cc25e16a1dde16d8db3c338d39e16c5eece2a56e943a21577d7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionCreateResponse.json": "2b0b0e7a2651354aac35aa5d1a423b9f207ee8d46b2de077df747f4ed4f4c8de", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsSandboxSetupCompletedNotification.json": "dc5383ae8fc2a46badbc2dab3ccd0447fed97729c2d5a177e28c4a7e2a60c329", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionUpdateParams.json": "6cc7b7e486026a59d6fcc0701407d9293c0fe8b96e41894630c3a39fee967980", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareListParams.json": "0d71280d2a655ffc26375044ec1693203848614f99fdb4563e0cb5a4ee40122b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginSkillReadResponse.json": "dedaf95c4a8f70c022f5cac6fe3882603ed2b27d5efef710b52ae370869956cc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerToolCallResponse.json": "04a59b2064922c37b0c49bdb2470b8fff08d943e56dba4f7280a6b34bfa52c68", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ErrorNotification.json": "d77732536ef8864799e4fbb5bf6965a9f1970a6195e523f144252a82287c08e7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnarchiveParams.json": "a1d5d847b61ea16ab09d5b9d1c1461134a7829292aae02a7e11b0a69b00c76ca", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GuardianWarningNotification.json": "5325551d2efb47d578665e3deb846f6369e05f98fbc5bfbffc5d9fe0cb0bd167", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FeedbackUploadParams.json": "aa958cd74b37fb28cc49ce22345a1efcda9d4cf5fa47e7cce6949e5366ff8b2e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsReadDirectoryParams.json": "c4ca6cdc129d70375fe638c723c1b1bb07a9716101525970cf77bf7560fec657", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionMoveResponse.json": "243299d7eebd4fb264d4e75efeb5058982681202371c2b83ff1a63b3369ddbb6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigWriteResponse.json": "1d690287d9e8a0c552f664038d3810dfc3903ec8042eb2c0f772856414f59954", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareCheckoutResponse.json": "d6271afa9bba5531574ba255d22b03f70fe10b8ef159185355625d92b6f9fac6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeStartedNotification.json": "483d324381a8ced04c8ab158c825bca2b64c06a4e85b350a086730050fe8f188", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnInterruptResponse.json": "531de6be06fe979b5963f249bab82498a175e614bf65ac12fb2e849dfe60bcf1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsGetMetadataResponse.json": "b8355f112eda37d7ff25ad0eda7dae912dba695961855c5cb8444a7f867d66c2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsWatchResponse.json": "d32e77e7d6f619c5f4183c335ecddd3c4ffb95a51761198985c47838ae891a6c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadDeleteParams.json": "0d5425d94af95e3dd20971cee052b2cb8c7d0d23195db1d17fde4e59cfbdec4a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsSandboxReadinessResponse.json": "077f60a3d6d1fc226c45059472b29caf675fdc3fdebb29569eaab94bd05ceb00", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PermissionProfileListResponse.json": "4a290b5b9d47c2fc671033e22754671161bc563027ba387e861bd935398f0def", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SendAddCreditsNudgeEmailResponse.json": "389978f741476c7cbcaec716b11a5bfb7f17581a28013e18cbf7a73ec8a45ae6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadProjectUpdatedNotification.json": "ad31b029957a9259f26352ce879219cbe25f0314ae883d02ab811a0c6427a1e5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadItemsListParams.json": "ff56040c327ecdd30ef02affac9bc71fab64031e8980f2b4fea9fd8a888160b4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConsumeAccountRateLimitResetCreditParams.json": "ce36a9f59ce3b8138fccdca042538f723e93d0e34d08441e6846d3153ee0b291", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsUnwatchParams.json": "3134d42c231f40769a4d1ac4adcf051be5205e7a1b70bb32c4a8655fea730175", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadArchivedNotification.json": "54ca94956719ade8682c766f31419ee9953dee8f4587b5b30efd0927de6ca26e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ListMcpServerStatusParams.json": "33b1933595d844c61f76bdcfbc874c8456b65079877fed6e86e2710ea3d49f1b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsListResponse.json": "230f125d6c36ec1b1514018a0bb6d0627f7308ea82f1ef04cad85490de482bae", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReasoningSummaryPartAddedNotification.json": "c8dfcb82d773d0f5d297ae1a47749e2b719013e82030a3af5d4550f9feb8eed6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadResumeResponse.json": "a553d6b1eb66111ca556e22138017ec54fd07c3257dbd2d5ad97ad7660786345", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeOutputAudioDeltaNotification.json": "4f73a5c606fda4984da4fc14e4cd98f62c8f9aa75b2db17cff76562c2d176ec0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadDeleteResponse.json": "333c0c5df96d78d1bcbdb19b57ddfa941de9a02bdae1c29d13c5311c2cdf6527", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginUninstallResponse.json": "f6a0c9c8dfd9e3fc4a535ecfa606f12922c09e469a37d6b1c6e189f45cacb89e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/EnvironmentConnectionNotification.json": "007e9a6ccae0003a56476bb7cdc9a097141e964c168e7ae43d213a763c93fb56", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportHistoryRecordResponse.json": "a252a2c2a03b4460bf3635d517c0735fa487a2f8a97de1aa0637f930419ae656", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadShellCommandParams.json": "dc646457ca36be601c8c3d15c44d14907d9a165ccf2b9635a8e9a878f0ca0727", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigWarningNotification.json": "533e713405b582cce4d772d0b4ebbc75e840f0fe71cedbb17c2c83da285a21d4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalClearedNotification.json": "ad6c2cf53970e45cae55d36dbddd84ecc7b34837846616493efa7b132a35a051", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsGetMetadataParams.json": "382bbf3a8b5c7e8cb16a1a29f853ce49c2904e563325e33a9e41dcbf632dab5e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionDeleteParams.json": "93cc3d12bd5580966b59bbab8f2ccddd31b3b4bce56f76d49cfe41f1916b5deb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerOauthLoginParams.json": "83446fb61e04a361691f84fe236a51fff2ee4fb12a8f58e2e828a32cf6f6cc75", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppListUpdatedNotification.json": "2c67a3bc676309afdd0d6952ad454c2a040a3d4c09d38c8f63ca7fb632034cce", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionListResponse.json": "dc3b5e5501a56ea2a1a83cb97c5221b355629f8c9468793d94e22673424140bc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnSteerResponse.json": "866ba9a77c12b5d570c837d58f73bf40b24e50fa93404bdf792dd984d313b1aa", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginUninstallParams.json": "4c9e1da7048fc99ef5269d4c3f4c6c3297dac01992c2756340fa210ae8f800cc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsCopyParams.json": "bc1135070827681e4d9a14f79b5b06a4f5652e538ae6a89642d27dbc8b2a2af1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecResizeResponse.json": "01da20d70957fa5b43cf41365c5fee4fb3a69927947a45f92866f9bcf0895d0f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/HooksListParams.json": "07638c3a8a3690cf368fa92c7ff697fdd0132865e8c59d53f6e5789e5a260053", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadListResponse.json": "351be50beed03976ddd63e8027e9ddeecb240d7611856b2dc19125c3f8eba400", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnPlanUpdatedNotification.json": "2522f743be0a1e9666dec5ad4f18d8ecba3c4f16e66d510b1491d4117d1dd0ba", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadNameUpdatedNotification.json": "06d5e6b0e1eaf03eb88891af58eff14368a76e300a40a9bed71bacce2093b960", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnInterruptParams.json": "6dff382dae73d1dbc58406ed045605f647e7a49660e2540fbd2c6c24d60c5f2b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/RemoteControlStatusChangedNotification.json": "56aa1d58294238557cd8b16199909c2c157a7542b9259ef2deddf40fe4c02c91", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginReconcileResponse.json": "ba2a8e317c9098beed39d4decc433d9dc29ba0c8164e8d4c229481b9243c5ec8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AccountLoginCompletedNotification.json": "d81e8821fd5a4a9ad118dfc3506ea156d32dcb18da388b336501bbc6a5ccb4a6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsReadDirectoryResponse.json": "2cfb28c3c1ab1487f6b778f4d76871e3a9f590597bdf0da502cc41b202269dbc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginInstalledResponse.json": "8afc8a16fa5c21d67f66d1855bf29890bad10a6229bafc960b3503281fc878e2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExperimentalFeatureListResponse.json": "4084a25f32333b3f58eb5e9803a5983739b57f945c4e7e4002e85851622ce597", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceUpgradeParams.json": "93fc5d331d353b1b89262625c38eed54c6c16b2fb8aa0eac718245c7bdcbe4dc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadTokenUsageUpdatedNotification.json": "aba4f6c7e4a19b2b842c08ee793b57000c07dafd57b922ad0d8e7c76609108c2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalGetParams.json": "1a5de89b3c5c49528af404a65411a73ef05dc7c9c49c3f00c90d9926dfe34137", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReviewStartParams.json": "c55c510988a34d2e95752aeb95e5d165f7083724a0945d7fccd1c568ad85dbb0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSetNameResponse.json": "f8763716433feea94f7c1ebd59b6cea4c261432e83240c13a8d49ba8185aa567", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareUpdateTargetsParams.json": "0ecf16212022bca115211cbf13a1302f8995d7be5664ca268b926b7d00add7b0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareDeleteParams.json": "d422a3fdecf91612bdf839d4fea6f1cddccb794869dc03ad3b8998bcb8e27fff", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AccountUpdatedNotification.json": "9bf450d9d9ea23a2bac9c9cb0a68c2de8f89a97bdeb4485c91762bb4d43295b8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadDeletedNotification.json": "6f8d6fa96700ec6fff4b8c2bddf6768539b7ec7ba5dc05483aba53f5183386f9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeErrorNotification.json": "aeba7e4b477b4825b41990a4da69b0f3cb3a00f44cf9e2e42e275b944b7cb040", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnDiffUpdatedNotification.json": "59a02535094b591b926cdc11a8e5f5babf73b442323a02cace1661c62f0c2918", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadArchiveResponse.json": "2e021dabd0930ae3e2beb68cd0ddbafc40fc20cfbf8dbcb5e2f9c0493d06a08c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WarningNotification.json": "f83c400591b923400ca0beaaaab1341c712d5ac0dee4ce6868a8e590f46490f9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginInstallParams.json": "d6a8ff6356aed22c916cfd5a791ecce34ee2ac509750f690e7d0ef483fec7472", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecParams.json": "e4f20080b92c6199cf132941840c4bd0fb9a90e3fec197ceb0e1ce9084346e18", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/HookStartedNotification.json": "913ca61da2ab299d5f3318f6ea4d842d22708fc9308a9b10cdfad5e757098f2f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReasoningSummaryTextDeltaNotification.json": "895bdca00b4674634c25a5c4d1f82e55e65767d81ddcac4bb7b00aa3d438e62f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SendAddCreditsNudgeEmailParams.json": "91b380293f5685573f8dcdf46c99eba6f8a2adb7a206df9ac987f7fe6cb282a1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FileChangePatchUpdatedNotification.json": "cfb69d18658610a0510f213e09c6847f70517410ed91cf99cc4713c15a795213", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnStartParams.json": "a3835e8c1e942e4b358e1a670939b89918b16c4d13105a579899892b7ade6dea", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ProcessOutputDeltaNotification.json": "c31714aa83297b83fd69dee98db877be7d4a3f98551dbeb517750efba0ecd79d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecOutputDeltaNotification.json": "28e74454b211ab677a256129e623fc5a2a29ce5394da1c69d3bc5136f7e37c57", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecTerminateResponse.json": "d46aa76d952bb3ac95d0bd64de609fb8a82efd98d9ee38264fe3673fd184ce5d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v1/InitializeResponse.json": "62ad689c2cb6379913c1d72749cfd8de5089d35760214123518eb92eef11acc9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v1/InitializeParams.json": "6f0094be9a65242ec779a40794cbd4fdfa32fca1e45084a16adfb50501d33ea2", - "docs/archive/2026-09-13/tasks/release-v1.0.11-progress.md": "9ec0dab218d521e0a65df205a6c3dc4dc6c660e96ba0b0ffe15d5c57fa42e5c5", - "docs/archive/2026-09-13/tasks/design-v1-progress.md": "54ab9724a8026c6645e56a8d096a84f2c94bf7d45ca3bf409dd0e7be72e256e9", - "docs/archive/2026-09-13/tasks/website-progress.md": "63c234095f4d237b04505eb70c76cc5d63086083422f33baf246becda1936262", - "docs/archive/2026-09-13/reviews/near-term-plan-after-history-2026-09-13.md": "8f0834faba6f78bf62417ccc04a39c47d7dc3f4ce3ad1dd271e6d5af33e1d843", - "docs/archive/2026-09-13/reviews/app-experience-priorities-2026-09-13.md": "f8c88707b398d0e2bb16816238fe546396218ceb7e57cbe6b05d38bf80709be8", - "docs/archive/2026-09-13/reviews/native-shade-review-2026-09-13.md": "1e2f4d5e92a7006040e49c92277b11dd5393d482c1c67fd860b7f0edf88a54db", - "tools/behavior-lab/TimingFeatures.swift": "adb2b6edbccf580d99545948b187d3f2ea21ac72efdfe0c3b03a53cf1640e19e", - "tools/behavior-lab/README.md": "f65df09013b8cd908153c8ec5313700480eed56ca42a44758be818937a197f63", - "tools/behavior-lab/main.swift": "8ec906c8d6e8f0ec189f6d7dcb4bab9e82779d9119adc29ae93f0dde7f513658", - "tools/behavior-lab/run.sh": "8023f1e9757ec37098432a250df286d0400e9889dff6542d2aa3c6c8abc2f45a", - "tools/behavior-lab/BehaviorRisk.swift": "edbbe0f391ae397ef24a0899637ef3d2e0454cfadf43f5792c835b52f89bfc6a", - "tools/secure-enclave-probe/main.swift": "e269fa4ba7b34843b727ef241c4e59ca97a6c418c9f7ffc4405c0958b72a48c4", - "tools/secure-enclave-probe/run.sh": "956e15ee147a5c999d18b9fd36dbda58b4af8a3829e00525aafa2bdad04a0352", - "tools/touch-id-island/main.swift": "412214a5d14a1e180b0a59b82da775fb052e33e15f51c4c78cb697fda33836fd", - "tools/touch-id-island/run.sh": "b5f477ed74ae343e73d58ada2f8b03150d98b4101b0129e6dfd4ba21460a9ae7", - "tools/ws2-hook/build.sh": "274e626a57de617debb2b16b6fa48787dea89409a0c77c2231c5fb8a2515da82", - "tools/ws2-hook/main.swift": "bb23445b862a087c1d2fdf105324426b4b21ac30e920744f89fe3e0b95b68c1c", - "tools/lock-probe/README.md": "4e7b10c7da0f5bee4c924a1ddcd56dd0ea9eda7857df5184fbf59e4fc8a4f166", - "tools/lock-probe/main.swift": "c421a26fa618fef2908a3adbafc0a616e2b2509cc4e5538602c20fb305d90d22", - "tools/power-context-probe/README.md": "660ea4ba4791c9c3a3fa3a8ae77463a87e98889bc04cfa4925d2d3c348835833", - "tools/power-context-probe/main.swift": "6732248b368a8b705ddf42f5454a9f957d7d6ae6dc9ce574d7c1edaa76eeafc5", - "tools/power-context-probe/run.sh": "90f70f69cb2bdfcf4d30ae2afb478bb0a961cfd263ffa4807d3f6bc1303f0bb0", - "tools/presence-probe/PresencePolicy.swift": "bc87d4dd1d328edf5850875c569ab0f340ea530c5248270b324ca4a6993d9e7f", - "tools/presence-probe/README.md": "471adbbb78c127e571c8eccb819d3e52003371bc59c30ffe9525041e7574ee2b", - "tools/presence-probe/main.swift": "7b7d0c71e0ace75fab348cc7dd2fd2917b8f44219afcb4b19e216e82be6c66b7", - "tools/presence-probe/run.sh": "fda772e20b6c282f143067c974abe295f192909c73437868ec9dd76a33af5dc1", - "tools/activity-frame-probe/main.swift": "588c505696d631f9b7f96d09366e1e4c457171679ac54e55073b4ef1a82b3e5e", - "tools/activity-frame-probe/run.sh": "1d796225453350a28cf68c33bb9079439c1e2488e2ce76d3bddf06ae8f3ce571", - "tools/liveness-lab/LivenessChallenge.swift": "ae641483f238576eb1ff723db5278a71ce2e246d4cc28a9df395d0e1eaa9b13b", - "tools/liveness-lab/README.md": "aca5d3ed0c4c71f7bd7815ee07e1ed81ac10e063fe21c1c0c5796ccc165d84fc", - "tools/lid-report-probe/LidReportProbe.swift": "5eccb09fe8aa99763f4ff07673d007946bd1331deccb7bdda7f27ffeedcfb5af", - "tools/lid-report-probe/README.md": "eafec4a2914d3cabcbce01360d869133c1497eafd0a515adff23939d2547670a", - "tools/companion-probe/README.md": "aa1b0c781723734879533196af750d53797e7071a170e3877e4f8bd4f1b38b51", - "tools/companion-probe/main.swift": "9831cb9aa5545998ef17954b5eaa70efd1d5e08875eb84b028d48b8f1e8be655", - "tools/companion-probe/run.sh": "a0ec7f5eb3dce6c6d8455aaf25e72d837b536eabd3da4e2c3d6c69464ee7d188", - "tools/window-snapshot-check/main.swift": "a271eb7faf0b1456982ff0dc38443413b778de5c53c60728b3fe6b1833ebed87", - "tools/window-snapshot-check/run.sh": "5b8d9f005ea18b0a499f60f7e2ea7fa18d984363d381725889d096768e970347", - "tools/activity-source-probe/main.swift": "55ac6188889c4c9801c8ac61da19283acc3e9bac31afde4de0750abe46695ad6", - "tools/activity-source-probe/run.sh": "e428f5742e752776df5500c2801c31e0919fee6c8de3a3e83974ddf7920d3c54", - "tools/lid-trace/record.sh": "19e83f70ad081494dc7604b26a52ac42e289ac692f60266d93fa8d39d2105bf3", - "tools/lid-trace/LidTraceRecorder.swift": "3e2677b3105bf5e0b8c1e41d17e2c089abdf118adaa376fc28468073e8c410b6", - "tools/accessory-probe/README.md": "f11a75dab991ac2c0dd01466e2440a87770cbdf82586f4b1f736e99e0191a05e", - "tools/accessory-probe/main.swift": "25d5fe0763ca9533914b6340128371eca91b1e9b8921cc9a6f177230f81e9f83", - "tools/accessory-probe/run.sh": "9d1489fe51c569c0ef13bd020f961b18d6db391e71bee7e795345542a071e214", - "promo/public/icon.png": "8bddac882d6d9b4ae12178e69335e937d3391d07e3a56159d926d5b87c2cd8be", - "promo/public/system-css-LICENSE.txt": "0433a8c105e9d410ca3fb7f205aafe8f1be27e0438cf3bd1447907f738ebc6b0", - "promo/src/index.ts": "957e481dd33a29b4a55ae0e95dbf763b7e48c37c427ca4bd1275faf34bc07a74", - "promo/src/ui.tsx": "83ecb1ea03b0df230eb9aa86f7894d75189e54c1c2f1c8dc1e0f28e99269dadc", - "promo/src/Covers.tsx": "5b5b94afc7ac33c7419bee91d55c63b1e95a9cb1b955e33b21ce507ebec9703d", - "promo/src/Root.tsx": "16d33ce51ae6063b7a1ad9fa43dbb0461b7010ad19deef854f5be796e24f8924", - "promo/src/theme.ts": "3e42a36199d0014b42ec005ff62f621a9bf766ff12a39f8b61a718800b8865b8", - "promo/src/timeline.ts": "d373cf1d626a280b966105c09b9091fd085f4a35bb21abfc181b8ea2811d4d6d", - "promo/scripts/covers.mjs": "738c2dfcda84fbb723fc78396c9270e0cbb19a628badf2b1433f12aa2e754948", - "promo/scripts/render.mjs": "2e27288a74ce4f26a807ff753d590b22c4b9b865bea8b4b282d017ace0a04282", - "promo/scripts/stills.mjs": "c287ccb068e3b1f252a0ef265e1dd02f5fbbe0b8ce9f7a39fc095e4680ce2330", - "promo/scripts/audio.ts": "55ff6da0a290c7644924f3ae564f8704a4786650d84fd873bdc8b977cecae37c", - "promo/src/scenes/Multitask.tsx": "b51fbb866d46460dc118b1b5d473c0d62ac7414b740c448842b978cb0397db99", - "promo/src/scenes/Glance.tsx": "fb4877871d9c112d9793c815929371f41ac7b1429a531888d6015a33ae897c14", - "promo/src/scenes/Opener.tsx": "39dd35c5e72e8d98ecc713c5e2888f097fb1f4d2fb737c5469cae40fc013bb27", - "promo/src/scenes/End.tsx": "4600329f05649b489319be4a4036eed59d07983e2931edca3675ae9b8d64b203", - "promo/src/scenes/DoubleClick.tsx": "ae808f2534b316928be302e4b6620dad99a26ae3bbefa87a1ad0112567ba79ad", - "promo/src/scenes/Gestures.tsx": "dd3c709a7388c23fd69e49b06f18505101b459209238579f97cad737bcec1fbc", - "promo/src/scenes/Ways.tsx": "2f90fd0f0dbdd3ead3af08634b39817b50a2677693bf719f16cb0ca9953e9f67", - "promo/src/scenes/History.tsx": "0f59f6417d9d73f5a2792cc001f6b4f101be3820374a8b9e786f81414aaafdde", - "promo/src/scenes/More.tsx": "69186d0d392cc9ace59d303a09b8615415251395a9c361e4031958ba294a3d60", - "prototype/Support/SecureLogFile.swift": "ed1cfa426af7f9bd4d21a9376ed3da21338c11a1e2d9f79a3e99ee3ceadde4a0", - "prototype/Support/WS2AtomicConfiguration.swift": "49ca64b48ceb7d2717fcf2e56256c4fc3819bccd6b4cb67e1e369147fb3d0754", - "prototype/Support/WS2UnixSocket.swift": "686ea433270bef26a8a1ef5e8eea3b70fb399d9d5d3ce89d65b18da454f64129", - "prototype/Support/WS2ProjectDirectory.swift": "7a9c30764d3199652eccc46265c4d7afae6c05cf65e1ee2a5be65c73bbd628a2", - "prototype/Support/WS2ProcessChannel.swift": "a87b82db462cd9fa4e0bd132153482a6c1c9d9859a4434048829443bf821cf6b", - "prototype/Support/WS2BoundedInput.swift": "57de90c5ff273ddfe189d3ffb03b501e6a90cdd837082971ca56924be380fa75", - "prototype/Support/WS2PairSetupCrypto.swift": "6345ec9ff7339c0845f4140beac96577ee1310968d71dab941a0266d315e6fda", - "prototype/Support/WS2KeychainPeerStorage.swift": "ffe7ecc5a1bbd58497156c645a074506371039f49ceb92bfc2d9b2c6f36a395f", - "prototype/Support/WS2CompanionCrypto.swift": "d50a35fcb45ba1905fb26a6c3c4f14a7dd450bb8413b13bfcf8429b0a7eed8e8", - "prototype/Support/WS2HookConfiguration.swift": "a02f22b49a684d2c74aa385776c31d91b39cc5f6a4cec81eadbf457e8951ba54", - "prototype/Support/Diagnostics.swift": "a1430b16be3f87e7b8c066c5d68dfc033ab2aa2dab9cfdcea08d27868d2078ab", - "prototype/Support/WS2LocalLaunchProfile.swift": "34a52b15e0a183c0e0f8d45d999ab15e0f8d1b1998b7fa467fe15a4b1c843a27", - "prototype/Support/WS2PairSetupServer.swift": "56ba109e6d1f63c8771cb0788c6c3af4796eed38cea5fe9880f744651c6516b1", - "prototype/Support/WS2VersionProbe.swift": "8b77c9a8ce4ec1d66f5106736783ad5581572e45d761ebb7ec92c68756d7bd8f", - "prototype/Support/WS2CompanionTCPTransport.swift": "78bccef841039bf2d4fb5058ae21e01633da6f2e00435eb1a17b9ca2cd273266", - "prototype/Support/WS2FocusEffectExecutor.swift": "674a8760579e1eccf401f6c949d6fcf69b74257943fe795b043f255b7c3887bf", - "prototype/Support/WS2DuplexProcess.swift": "1efe08a7d6987fdac80d87f345f1d2ce212e6a5dddac3a71e086e247d8ab579a", - "prototype/Support/WS2PeerRepository.swift": "1ee4290d4151defac9a50b741c1128dbd8d6bcb7514cd4535ce39ac84f740b42", - "prototype/Window/AXWindow.swift": "14c66d4832b32f5b55a92f896bdc0e0ffebce7588a5ac2c210b7c6c48782d3b7", - "prototype/Window/Coordinates.swift": "8396b5874e5e219bbd635aabe149b2c22cf190ea0bbece57acedb62939dfe67b", - "prototype/Window/ChromeProfile.swift": "e5bf9411c34bf7300f7893ff4a088ef0b97f298eeac1e682b0fa0db1bba98d56", - "prototype/Window/AXHelpers.swift": "ccf1a2c35600cf6471db354ee1fbb3f417a60907be1446f6ee9e393a2b5b8ccf", - "prototype/Window/WindowListCache.swift": "eab77f6b1799267fd17995523aed369a6c3024ae74922dfc790ee9ec9bd13c6c", - "prototype/Window/AppWindows.swift": "cf559d3698d8c20e1373f02205f5141583a3ed40aee89174eecf61f74e5dc0cf", - "prototype/Window/WindowRegistry.swift": "88305979129b732efe6c49eadbe366c0c22f021ae70b19a1b38105f41e38e554", - "prototype/App/SplitView.swift": "5c8694e329550a19a626d4ea9275e19af07a977e5f0a6a3e94f95f487716b87a", - "prototype/App/SlideOverChrome.swift": "d4c72f881c8106dd4b9c82d6f4ddd158acf65512380bbd8da6b0908ec804ab97", - "prototype/App/StandardMenu.swift": "65ae1974c0e53c606e009b716ef6c35e193ac3eff05b1ac2ce46aee829102ff4", - "prototype/App/DirectionKeyPresets.swift": "c886eab76c3e433bf28040b055754f6fc6cbcc6e9394e3589ed7298009e42cdc", - "prototype/App/AuthorizationService.swift": "b2787dc3bb4369d687fbcde86e444cedc752f30d0629a2c5468ae646328a2ba8", - "prototype/App/UpdaterWindow.swift": "5d4843d963a4dd9e38daa0b61db916ee9c5cf33922b182071b42c9b1ab3f77b3", - "prototype/App/QuietDefaultsProbe.swift": "cef48ea449ad9551e122bce3f47d495f1d3f691fdbe8c715cd7966a3421207b0", - "prototype/App/Launchpad.swift": "42098e0e45259a0f04b57713088b09ab57293997d70438a410fef38934619dfc", - "prototype/App/NotchActivityView.swift": "2b622c8cfa4ccac64c4c0b2ea70f66263b8d71e545ec6330c22d9067206a08cf", - "prototype/App/EventTapCallback.swift": "6f48ff09d3c591c589183f212d4e9f5c7cb24fa973fefe73b19af8ecbb8e4943", - "prototype/App/StripPeekProbe.swift": "35d07816e389419220eecee6383ddcc2afd21d540300f17d44655af190fe1d1c", - "prototype/App/FocusTimerCard.swift": "f6dfab112513a28dd52b7d01990a9940c9ad9aaa64a37f54d77a85e0645fe996", - "prototype/App/NotchActivitySymbol.swift": "edf383086a0feb48373ee8af374a37af7245591a146556938cdf9f09eb084cc6", - "prototype/App/ShadeController.swift": "b33f4f48c3b13e0aba198daa0282719a03f7dc0843bccd1c77d1e4971318e663", - "prototype/App/ScrollStripRun.swift": "e454ad1d46d9ff547c5fd4557722e3b450925e24c0fc6759eb00d9550ac790d0", - "prototype/App/OverlayFactory.swift": "671c722677e213613459f159ecd685a750bd6e871e5eedaa492a0f35b3eb403f", - "prototype/App/EventTap.swift": "3c8cb6ff1897f0e5a4ade26240955a747462e65654e3567abe7c91dfa535fb8b", - "prototype/App/LaunchpadLibrary.swift": "d4497f166351297ea0dc40d214391533641adf65a7301a9f9ad953356b5fb987", - "prototype/App/NotchActivityController.swift": "4ee8833f2e4d198fac9eef2c086c0e2bd53a1fce66927f9b42cfbcf42e37bc48", - "prototype/App/Updater.swift": "d2f0aa355acde29b729d0a05fdf41b33269599bf7d5405df64e8117a9c0f2c03", - "prototype/App/GapProbesSupport.swift": "83fa9445f3d5814413759b3be2612e3bde6c903b5348ce5b5b224e713dc7949a", - "prototype/App/ScrollStripPeek.swift": "fbe850a728468b4be72c3cfa39becce428aa423a709afe870174d15d8c39f9d3", - "prototype/App/HoverPreview.swift": "849035faca83dfee588e7b88d0723ff53e99ceb891bd1b4ace1f3c2bf1ddf81c", - "prototype/App/HabitKeys.swift": "6ffba165b600f582c514d0dabf873f01f2e86890fa60cce68b83e7b83c649c32", - "prototype/App/ThumbnailProbe.swift": "d67964e7c25ec612d7f2a8e162a2d530f2f3f64f67272aedcca96c72066cfa44", - "prototype/App/NotchActivitySources.swift": "326b6c21f7b02b8dc71ab0ba976cb59e219d0ad11dcf8aae35e3509c4b1810af", - "prototype/App/Preferences.swift": "7e7f3c3623de1e5a955c552fd8117bcfd2c9ee2ce8f8839f1950a241d78c72c4", - "prototype/App/LaunchpadController.swift": "64a0979768be281ccd2ae98b6f3e69298c66fbcdb5402b82dfc7f1e7051e0f08", - "prototype/App/LaunchpadView.swift": "4449e1a9463dd178a45ce565b4bbfef0371c79a6e6598db653ec6aca11f0f50c", - "prototype/App/ScrollStripOverview.swift": "87840b8f1daa1ff7f93ea5b54cd79462c4c62dd46e315756620f8caa4bffdcd3", - "prototype/App/SlideOverRecovery.swift": "7f2347ef2fccb5f421027db4da4549dcb7130efc10139b36f542f4fd08a81254", - "prototype/App/Welcome.swift": "9440f17488f309d103aa9eb75621f7e7dfdf4822a7ae07b7c80a4d5b99ea5bbe", - "prototype/App/DeviceBatteryController.swift": "f91d842f704003420bc783ec477158f66c722c5a09213bd5c6bf7469dff629a3", - "prototype/App/LaunchpadArtwork.swift": "9565fa02024395fcf754acedf3c4caec9ae0a8dd9b618d23b6e17369e9017c42", - "prototype/App/Thumbnail.swift": "70793ef768cdbcfdd3ea38fa14e405de8a91bd5547dac7b84da1f333f9097cca", - "prototype/App/WS2SupplementPane.swift": "eb49bb23eda0c267d0c169dc4ef4040dd462ae3ed71f75aa341e2bfd96c39fcd", - "prototype/App/WindowGlide.swift": "3f40e5ffb7f4d870e231977916f724a54b0e5ed5ab550f3ffdfe8b5b87d7b0e1", - "prototype/App/PeripheralBatterySource.swift": "149935ed50964a0c77b69551a56551aa2d26ee84e9194e098f3cf61f4ece8d36", - "prototype/App/StripKeys.swift": "cd19aed70f476e05d16269ad8a686d71feca9592d46624ccedbc5444f09ca973", - "prototype/App/UpdaterMove.swift": "b540ab91858ca9986e27e1a03de60741c4f2beeb76cc0367838918519c30a1ec", - "prototype/App/LaunchpadBackdrop.swift": "54d1181b94a8c75d76aa7bb3d49737978ca3ad7984ff1ff107641e16618d14e4", - "prototype/App/MagicTilingRun.swift": "1de26ddd7d2df2f182ec578b878db2c67871ff1494f26ab1077bdd9414e6c4d5", - "prototype/App/InteractionCoordinator.swift": "5524bd61193c8e7ca5090b7c38c498f094bdc13a3e48971f3f084b2fb7a0c5b2", - "prototype/App/WS2ConductorView.swift": "35e1bb2d5b14f59c381aba5969009add1be93e97eb3eeb2005fd1d9607e6e225", - "prototype/App/HabitContext.swift": "a5e7c5c01eaad8338e22baa6c3bb5caeda8d721f7ae3029396dbda004bd36242", - "prototype/App/Glance.swift": "07156696d4117a53c64575ead913c18d79772471609ef160af1798b31e6bdb5c", - "prototype/App/WS2AgentSessionView.swift": "2eb4cc0b0ffd80413aeb0375a2b4973039174218273be6988b5fc1a8f730e53d", - "prototype/App/NotchThumbnails.swift": "abdad6e9c2c85052c682c9e4d9fa34b190f631fb1de4fe9ef8c652f015dbf652", - "prototype/App/AXLatencyBench.swift": "6e9319f45b6d679689d9357d23fd0c861eaaa9f78b5f76000e771ba738a390cb", - "prototype/App/DeviceBatteryCopy.swift": "d8b91913cb5175d3730b1d4e2dd6673613330b68b44fcf9210feaccc78849f37", - "prototype/App/WS2OwnedLaunchController.swift": "631d6e462822fd75a3becc290c7b84492c7baacdc4b8adcbbd418dd125de3c07", - "prototype/App/NotchCoach.swift": "f76df98e2492e2d1070af5c2bf70653af529a8c3082d90c528564f6fca1e0e7e", - "prototype/App/OverlayPresentation.swift": "46726c5a24c76ab7bf3a2e6250966cbc1c0234444d2cd2fbd0a9d0c7c1718060", - "prototype/App/DockClickHide.swift": "122b5ff669d67ab7633ac3537a09e9246d7dd15fd818a5e6d98371859ec0e291", - "prototype/App/UpdaterCopy.swift": "699d4862525eafbe61e04cf5890da36acb899e21f962baa0596346d0c9fc8ef8", - "prototype/App/RectangleImport.swift": "ea45acb976738d3cc1fd347c1042b121e55d7c809c2f9e116580d728cb596258", - "prototype/App/UpdaterSettings.swift": "b0a05613483abae16fd761c80ae5745e6c1e13eb76e2174bf87a22060160244b", - "prototype/App/FullScreenProbe.swift": "98c31a6c3eddf12dde1a50011cfab68143bc38261c1c8e702d67ec7325e49826", - "prototype/App/WindowProxy.swift": "0c852e43d3926075522d628800851fd625578201d875c669b5efbac119b1ffad", - "prototype/App/MissionControlKeys.swift": "d90af0193955650f7deba18f5358cd155093313f398ce568c62415ffe064a762", - "prototype/App/ProbeEntries.swift": "f09f5e8607eed201845178c7e0dd2cd87340ed71fe0e6f6716241e9cb01057fa", - "prototype/App/UpdaterSparkle.swift": "463ec65cd63071614152273e29dcefffd826cc73c99d8bf30196f3f94d4800c5", - "prototype/App/Carry.swift": "915aab4bbfb6891ce535b0cf70b8c14118b90bc38c2f73a350ffc98c3b199840", - "prototype/App/GapProbesRecovery.swift": "d45451bb35ab51dfd798ccf7939b41b4f6950bc03e5eccebd8e52c626d1faad0", - "prototype/App/LaunchpadActivities.swift": "ddc8bc3153e658b8b2feed52ea5734b0bd515c722181129c88ae34750366ae75", - "prototype/App/GlobalShortcuts.swift": "f73921fa76cadded66d9986ec55a7d5a0b2edf2ae6935abc0860178ec09083b6", - "prototype/App/FocusTimerHost.swift": "7aa01c91cb3abf4503ff8eb92a8060efcdfca907b295caa3ab0fde88d264b666", - "prototype/App/GapProbesPlacement.swift": "3f91f6491b2b0a1580e5bba15c3a86e5199bf7c8e11f7562dd9d5598307a87a7", - "prototype/App/DeviceAuthorizationKey.swift": "6940303e09ec0a5e592ad431d4f071bad92ca1d5fa6e94c44bc76bc4733833be", - "prototype/App/NotchShapeProbe.swift": "fe1e1188c4ac40518f18e50c2ccf1ee1cbc5cb65945bfcb7a78d359a52b19d2b", - "prototype/App/LaunchpadToday.swift": "b049a50d0d3df00e200de75734178b35cd9abdaa7b676dcba4b45f8df854d8ec", - "prototype/App/FaceObservationSource.swift": "fe1e1aa7bff0578030af1652c348b0396882037c2d267d439ae97172e9c24a2e", - "prototype/App/Reconcile.swift": "a24b56d18ee50914538f3581f59fd0c496e29babe7a424ed6613657f785bb2b1", - "prototype/App/ArrangeController.swift": "bb95dcbe618844541d577b9c15e5d11558819a5bba8879a85de4fbb79e1523e4", - "prototype/App/ShadeSoundPlayer.swift": "7971dc06925fa19e0f2052d51427d1ea43d2f800d6d07aa8cf427c796af364d1", - "prototype/App/DockSwipe.swift": "7c3480e2051e7aca564a3743475adb3a391045f0973da44810267d4d3da06c44", - "prototype/App/GapProbesSlideOver.swift": "c307da706445ea559bafe5538b2bf64388e6604a77f9d84dc111e515a5412e81", - "prototype/App/WindowSwitcher.swift": "21fa5041bcc27a6622e44836c3e167f6799c9a3857b927d4d7f52fd16ddda92f", - "prototype/App/WS2SettingsInfo.swift": "c73bb4d2152117572fbdfd332ae00bbebe784839868830aa2933821195b7fece", - "prototype/App/DockSwipeProbe.swift": "2537fc6c26507d938278bda6cb5721a1285d55dafd084af380bc2487777f2f7d", - "prototype/App/WS2OwnedCodexSession.swift": "b05f1a6d7aeafd72f5e8d5dea6cd8a460737d57cbf319b1c242b01a5f09d2ef8", - "prototype/App/TrackpadGestures.swift": "9fb30b213a8c5076faa2fcf7de09ae21da700ead05b8f4322d0c00f8bc984db9", - "prototype/App/WinsSwitcherProbe.swift": "05572d4bec475ae450e6b427cd1e2062935ee39c17ca898777a90711241fb217", - "prototype/App/NotchAuthentication.swift": "e2db024c1161ab3157018670c80aa14da701ac5473668a5defa246375797d627", - "prototype/App/WS2FocusSettings.swift": "5c2dd1877beacb8a5e09b8ffc9ae687924068e791a0224484308a28e1aabff60", - "prototype/App/WS2DeviceActionHost.swift": "9bad067f8333d54084cb88f2bffa4dd50307d1bb3db4d34aef501b01daa50011", - "prototype/App/WS2OwnedCodexSession+Authorization.swift": "cd619ed648b81d55565ecf519777681ab4419bd2374eecb1f793c7bf29538266", - "prototype/App/SlideOver.swift": "ac7b2bb10125399b4afdc47902bdcbb9b1936d147347ed56336900d5685e1786", - "prototype/App/NotchShelf.swift": "0efd0bf6633695be3f2bdd2e542ecda53e8de26f2e78736426c87aa1b951e19c", - "prototype/App/PictureInPictureViews.swift": "66190877175232fdb8be54486a0b28beea474a168b898dae9f33a30931c8f9ed", - "prototype/App/CollapseAppearanceSettings.swift": "dcc47edc5d347bd2e247ef3a795ec5250a1a6c7b9f58309c2f4840d5f995b2b2", - "prototype/App/GlanceProbe.swift": "701a340d97b739e13e81c51408c06e6c95d4b631df81ce75455489c3ac82de78", - "prototype/App/WS2AppRuntime.swift": "ae496e5fafe758ced14f91fa8ca9d042699e0b8a68062b51fae88073d7b4fe83", - "prototype/App/NotchWatch.swift": "8ba371f82c6bcf640464d58340bd3d63f503a6d0784e8c45fd84396b10921586", - "prototype/App/MenuBarController.swift": "6c48edc1f260204ce5a5abd7d212b22c225bbf1219688573958ea3ed2c294e9d", - "prototype/App/LaunchpadOpenWith.swift": "8555894605d53d805525ae120f915372cd8ea1050a4b130a063dd4847091ee04", - "prototype/App/ElsewhereProbe.swift": "1f1bf6576be570624eae2e27f26bd995d1e6bdc729997d015dfd997717404f41", - "prototype/App/LaunchpadFolders.swift": "99b845ca243f577c4b0e2ac8112e6a588b0e27a7d4796b155acc010f8041d9b9", - "prototype/App/Permissions.swift": "7f7ffa614871ca3fd6241e11b8835764f3815875e0526910145db5483861a9e5", - "prototype/App/FoldCompletion.swift": "1147a93b8ab37828e0dd4be225e879ea3a4636283aaa5d7202369b926ec850f5", - "prototype/App/FoldTransaction.swift": "0cdb6083d236e72e193df9db07c672893c10f279be8f53b939be1a1f4cbd0733", - "prototype/App/WS2GameControllerBridge.swift": "e8ff240ac2a42ae32eda28fa656c41ecd4ba3e88ad6f763f97af1e1815690a23", - "prototype/App/WS2CodexApprovalHost.swift": "f400c3354906b3ddb97f7651388468520d91f5eb6796417d014d7753266bf03b", - "prototype/App/Notch+Habit.swift": "fd362e41c78fcbe8ac467ef55a6028552520bb15464f2f4ad5b2151567678e33", - "prototype/App/FocusSession.swift": "6a8feaa47356c9e6827eb41f3aa81cc972b0f884c518ef5c80716160f3cd8673", - "prototype/App/UpdaterLaunch.swift": "54b642694b112de3a295c1e924658275af545d41ddfed833965b19223d3ba150", - "prototype/App/FoldExit.swift": "02318b36ed4b257e1709818527db5aaa25f18e4d74ed3f08dfcc5865953bbb6b", - "prototype/App/NotchShelfProbe.swift": "db06842b77820fec3d30b66e9fdceda8cd0890d7f496d7c8d676d17d5a496760", - "prototype/App/HabitProbe.swift": "973d23c5f6bf8eec4e2fa41364fe98241b92c4108a79440ec42f383b5d8e005f", - "prototype/App/DockLock.swift": "aa87b167fe290bb002c1b195438e6104d8c22ee1eadface9c79b582d65830cb3", - "prototype/App/Notch.swift": "354a6045d7221d33a2c16f849a34a910c969fce7acc58fbf7e958be6fb6b5d43", - "prototype/App/Motion.swift": "f93263d9860f82363750593e3f65d4321d35c13ed31acaf268c56270c76138b0", - "prototype/App/WS2OwnedSessionView.swift": "ca1e124b84fd3f2138ee243eb2f3a0c175a03b9087f7eb1adc882fb727fe4ce8", - "prototype/App/GestureProbe.swift": "5e5806791687b6391695a3b91a899703c2a3d256910f8e05dc61fdbda4cf99f0", - "prototype/App/AuthorizationCopy.swift": "229705d3b2f3749a77b5593405316416b9a80251337e68fb3723947656c7e0e2", - "prototype/App/StatusBarIcon.swift": "7c0d4368393f9d2b5f94844fd45c5a17025b828b44685b57d25c2b32b7ee6774", - "prototype/App/LaunchpadKeysProbe.swift": "a57d2c09c520ef962916f8bd6cefd2b48725d298c70e3a1b2bda2f73fa668d64", - "prototype/App/UpdaterSystem.swift": "31ffae2972b4bd85964edb73daa74cf2b7f726b7be858a6e9d04d8a64f6adf37", - "prototype/App/WS2IslandCoordinator.swift": "6499c0c6d5b798b909d6546e8ab5c8c081b234c61cff852a6670cc8ed216ba98", - "prototype/App/GapProbesKeysPins.swift": "d457e8a45465555d827bf1928b8907ae1ca128089616705bf38a1d207f3193e6", - "prototype/App/SlideOverDropHint.swift": "247bb74176f37f537ef5e781f4df02fef8f989b8dcc3476f5b038910869b879b", - "prototype/App/NotchFaceObservations.swift": "f7f541e11cd13467409c555cae89714bd2017f14033100d9012f5982692aafd2", - "prototype/App/PictureInPicture.swift": "afff2ec83f3aa33007437729784286ded251678701f912fe482bff3fb1c77b55", - "prototype/Capture/WindowSnapshot.swift": "66b7c0ff2b81b7cf8d4fc3ba0d6887703d50ac94b5207795ee2edef9f3d4210f", - "prototype/Capture/FastCapture.swift": "bbfe8e9b62fd5177d3260309bfcf4a3bb010cba7da6dab9839672ddad9306b3d", - "prototype/Capture/CaptureIndicatorRemoval.swift": "136aa4d41afb6a11c3214df1a3cf92c0fb110bd58d8f02059cdb73161becedf5", - "prototype/Capture/ShareableContentCache.swift": "02d249d61bc8416a480578f4b8db1b0ad074733defac4e191adb5c6ea170086b", - "prototype/Capture/CaptureIndicatorProbe.swift": "cb9f717530964a7d3fcd96e8c7438180b599be450273dc8f627e334fbb049be5", - "prototype/Capture/WindowSnapshotCache.swift": "4bdbcdc3270a49071d4feb0f10e80c08db2d8c6cb535d1d2b57d38a712fa27d0", - "prototype/Capture/PreviewRenderer.swift": "a8bfbec04f4d8ba82da224832c19b0180a87d6f0e2f6e8c3788b18075e272ac5", - "prototype/Private/ScreenBezel.swift": "7673cbdf0373bceea50a156b4585e00bbedcb6acdf0a9faf5efb825617a8a602", - "prototype/Private/LockSpaceBridge.swift": "d16128cca2e5b893900e5d5165353724a780e76beddc5ffa79f4ac4a2bf8978f", - "prototype/Private/DockBridge.swift": "235001c02b0e9edcedc3011356a531cc0e53e425490ecf7ce6f297c9ee11d058", - "prototype/Private/SkyLightBridge.swift": "26be2e78987f1dbf06cfb58ff0915c9e7a53d0c53a852c543171ff77a82e5fbe", - "prototype/Watchdog/GuardIcon.swift": "86a4da1ce16f774b882eaec4e7b9ba94c4cc981ae0488a910a6d07ac9d1f2523", - "prototype/Watchdog/main.swift": "dc5b952383cb3f6d250ea1bb06dda51bdd0fffc2861c84f2e17309215c0a4585", - "prototype/WindowBrowser/WindowBrowserViews.swift": "35b31dd17656b47ce7c4fdfd6d25771c8ed86f29cf73e8d34085976342331afa", - "prototype/WindowBrowser/WindowBrowserMetadataQueue.swift": "f84d13c4f228aa21bd5de5178ce2bafc419fb7c7f19ae954250057d3432139c5", - "prototype/WindowBrowser/WindowBrowserIdentityProbe.swift": "551299d755b98aaada4ad6e3067d0d610eed7f0726f36c8d327920eebd0a6463", - "prototype/WindowBrowser/WindowBrowserPanel.swift": "e51df9e16a69e98b51bde15147ea5712177ea2646b0d64c62b8cc5aca55829b3", - "prototype/WindowBrowser/WindowBrowserCardView.swift": "45d49717fd01862f54f8e057539f34c53b72166d273dceb5e46bcd79de0ae0aa", - "prototype/WindowBrowser/WindowBrowserGeometry.swift": "8c99b9b866a21f9fa8a3367432b8f34bd22dd6dd67fdcabe63175133c81a08b1", - "prototype/WindowBrowser/WindowBrowserFixture.swift": "87d41830e00e2bab94ad6dbda1411733b56ef6e514c93030b3ad74d2f098af49", - "prototype/WindowBrowser/WindowBrowserSelectionDetailView.swift": "f8ae3713ba812b1d72c606baed65107fd30ccbbc2b77f142d743960659da77b1", - "prototype/WindowBrowser/WindowBrowserDockDetection.swift": "84d32da69e61439e8888470af49563ee1eb9000ec38fc0651392b25d9f152808", - "prototype/WindowBrowser/WindowBrowserDiscovery.swift": "310e952ed56a81ce6b6c0012f73c21180244491512a2eb2da28d2d6ffa8cd293", - "prototype/WindowBrowser/DockHoverProbe.swift": "5f246c4ad9adf0dffaf5dd533d5fbce9a71be59915441dea67da7803cfefd2d9", - "prototype/WindowBrowser/DockHoverObserver.swift": "e960e5af5199853e61b068f8bb170e28c536575b9c00b9f837c4d5c8f20e7ded", - "prototype/WindowBrowser/WindowBrowserNewWindow.swift": "67ad7792871dae78a36fb8d3d96f93100c3f7a5ae14fe33c1e3fc74760266904", - "prototype/WindowBrowser/WindowBrowserQuickLookView.swift": "fc14a2ccb192aa4f2d3dcf5aa0877737b890793c88096c643d6e5f0694bebce6", - "prototype/WindowBrowser/WindowBrowserThumbnailPolicy.swift": "b986005482d3bda8c7a0eeefdbc2600b353b12780b23ea8cbefa8a01271b6c9f", - "prototype/WindowBrowser/WindowBrowserContentView.swift": "fc2f16c95332ed9ab6d38d51fd9057981339aae2b3475113fe11e4269a11e962", - "prototype/WindowBrowser/WindowBrowserShotProbe.swift": "aee82f9d9b735feed796fb75a4dad86c99e71f6f7191ffcea61f9a298a8cc415", - "prototype/WindowBrowser/WindowBrowserSettings.swift": "eaff6f4f80b76fc9e33ef926b80e6fb334c19dc4400288674c4e3bd9b2846194", - "prototype/WindowBrowser/WindowBrowserPreviewStartup.swift": "c85d8b98cdbf44cc2faa56dd20cb819c364394ae3a6344fd69eb657a531d5f14", - "prototype/WindowBrowser/WindowBrowserMoreProbe.swift": "a89798b807b0379184465cd43d61a03bd37121d5faf9ece9732ea19a133af250", - "prototype/WindowBrowser/WindowCatalog.swift": "b81bb8606aa8c93941246e9893ac81d509126845a46b43d3bacb623e7bf563bd", - "prototype/WindowBrowser/WindowBrowserMorePolicy.swift": "0dd7330bbb8e954c9192b6a966fd5d404186f73f61ef6f0a10207684b25c017b", - "prototype/WindowBrowser/WindowBrowserTargetBatch.swift": "6e1d895e426120b795a1759c1443c75193649b2dfe2d9fd50665928df93c206f", - "prototype/WindowBrowser/WindowBrowserMaterial.swift": "8c6c4fa0aa7b91393d7c36c04d5073f9d609e074489730c1a800e131a4de3f0c", - "prototype/WindowBrowser/WindowBrowserListRowView.swift": "c0b8db68c2a9f029075949ffa27fa7dc7a68fa26fa2112235430d2375c18bf99", - "prototype/WindowBrowser/WindowBrowserTargetResolver.swift": "2fc395871767c42537f7fe79a565c1837ef56c82654b5f08fab8c5b4f7b83ab8", - "prototype/WindowBrowser/WindowBrowserAppDelegate.swift": "7578e4ad88f967a0c4fc6b18dabf97100fffd86d1bb7437c254131f55147bf8f", - "prototype/WindowBrowser/WindowBrowserActionPresentation.swift": "6fe2f1b20eb0c5a5c70c2e0eb9ef13605a1a18c8aeabd796022cc90bb1828b00", - "prototype/WindowBrowser/WindowPlacement.swift": "0aa1edd22e88e621b77365532b8ae9f508045668322593277c24d23e48738561", - "prototype/WindowBrowser/WindowBrowserMetadataScheduler.swift": "0c77949b83a0cc53b5709903c7f9d295de93475e99e29659dfe38228aaf2dd0e", - "prototype/WindowBrowser/WindowBrowserModels.swift": "8d1ac3433b43938cebb8565f26472837419b06886c27600a34b37c6a73d135a1", - "prototype/WindowBrowser/WindowBrowserDiscoveryFilter.swift": "52b1b0dc609f969048a124f8e432de16fea49ab1818256a6fc050045ab6e0eb5", - "prototype/WindowBrowser/WindowBrowserTypography.swift": "ce68992e81c1d9a9947c1258ccfac4f2b430be5eb715002d20e31de8ba9054cd", - "prototype/WindowBrowser/WindowBrowserActionBar.swift": "d64562ca98565f71f866a34657b65061c4fe5ee5ab01317f98d72c7ed9459fcf", - "prototype/WindowBrowser/WindowBrowserLiveAppProbe.swift": "7da491d0baed6b3c9e5015b41df0d563bcd73727c832a71e64a14c7f73885711", - "prototype/WindowBrowser/WindowMirrorSlot.swift": "3d3bb68eb6c59d18a0e8088f8b88dc464fddb785667b32e20b0346a4964cb3e3", - "prototype/WindowBrowser/WindowBrowserController.swift": "64bd2b21134e068fdb2f56200817dc3f51a136d94f89937f61d6d9d277029c96", - "prototype/WindowBrowser/WindowThumbnailService.swift": "e22d946a1ea9b79a74e1c9bfa83d807a924fbe0710f27ae4f0d8c57417c102cd", - "prototype/WindowBrowser/WindowBrowserActions.swift": "9d3c4fbc9836384cde1904923b376307c8adca2b0b1f8e90dc69cacf9a0237bf", - "prototype/Native/WS2Child.h": "95380850f4cbd24d868fc785978cda939307f3962640b091200068a17ea1a9da", - "prototype/Native/module.modulemap": "9cac42ba9402e4324e393d07c155c9375e20846e3bca84117460fdd0e6a0db8e", - "prototype/Native/WS2Child.c": "134368aa12dfbbb9ec5a6f60a121c44b52b46bb303d55d73b18d78326d875f47", - "prototype/Overlay/PaperSurfaceStyle.swift": "1a8c1541503bcb1c0710be685a76aa0d2eab4b37c0a836b0f44efbfb44e99f2a", - "prototype/Overlay/PreviewSurfaces.swift": "8bdf6d62b84ce1f87355c8f8c809a5a062cc3a8005c1d5421390f7a7c6f33cdf", - "prototype/Overlay/ShadeStripPool.swift": "3f602cd370d1f082a59e4d8bc598a07f4168b7e69c983e1ec3aebf6d22aca23e", - "prototype/Overlay/ShadeStrip.swift": "ace80cecd6a084427c986c7788e3b12e34ec60a28a9b3422f3a2b8eb355d806a", - "prototype/Overlay/GlancePanel.swift": "07e9babcba683dae230b82acfe2c0b9985d2ffd8134c9c13ac308d3169c84a10", - "prototype/Overlay/GestureHUD.swift": "e8bfe37a0b0c4c5da59ec8bea9f256dc19726e0634b80534ceddb2160f3108ef", - "prototype/Overlay/SystemAppearance.swift": "76ca3eccd79a32175412ae4665a0484ff9628a3ad372333868cb3ae1681ba345", - "prototype/Core/GamepadMapping.swift": "672cf04922a50acca6eecd2727b135f07a05acae74ab285e9fb92a23ea39a855", - "prototype/Core/AuthorizationLedger.swift": "495d1ce534fe560c8c0fe43ee6fd2bb5e9e24b7f82b172978ffdd62143985676", - "prototype/Core/MiddleDrag.swift": "c375a2e23e964890a9d5f691b44aaeecee889670e5aa1641eb6bdfa99a138e46", - "prototype/Core/ResizeStep.swift": "f9e26b08435ed3421c0ee7c374f9c2dcf11cb64dca32b01231a2939a2bdb4060", - "prototype/Core/NotchThumbnailPolicy.swift": "7f0c6b19a2c1a899cbff8fddaf8f8b65f2ec01bacf234d92b1c1ca82d60a3350", - "prototype/Core/FocusTimer.swift": "f8d5760f92ad924c1727717938e84bc456f84967c931faec36d9554e243bf462", - "prototype/Core/WS2InputEligibility.swift": "d88deec0bf2c6224710e90bf106e23a60cee3535cab06e3bf48c8bb027163597", - "prototype/Core/DeviceBattery.swift": "7777539671486437ff4e26398663d7187b31401405d866362efde3caadc473e3", - "prototype/Core/UpdateDecisions.swift": "ed0cdc6362f49ecbced53742e26260060768db5d441c679b6aab4a39f6af11c8", - "prototype/Core/GestureCoach.swift": "2490c0d99e5fd5cf72096106afbb82a07e1d47d15f0c750ed19316dc4481171f", - "prototype/Core/FlickMotion.swift": "46967abd13acba1380e700283a6dee547073a860520c7c11b86454db570a322a", - "prototype/Core/DirectionKeys.swift": "0ef2f8b9997499338f8895bd010cd89007258d6cc221787cb229e942fcf8ec1d", - "prototype/Core/AuthorizationModels.swift": "185ce60f64c618898aae3e27169843337efd3e8eae9bccd81f3c4151fced7719", - "prototype/Core/ElsewhereWindows.swift": "aabfd47c1f0580f98b68a1c18523dffabf6e2bae2ef1c271f1424f595346e5c6", - "prototype/Core/AgentSessions.swift": "218b3910959c810d5662d608b8ab9560d5232cf5e69930c330b400c940c65d7c", - "prototype/Core/WS2QuitBarrier.swift": "2a80a0409cee77c4a117844ac1192084ab922a1073b405d26909a6fd8a39754e", - "prototype/Core/WS2CompanionFrame.swift": "2ecb698bdf16965242836f132a7bc801d0ac7db7b488abc0d5a1b878a4c0fabd", - "prototype/Core/NotchActivities.swift": "e5c6c6fc339b58175672abea1322b5aeaa0c526ab850a4a0b0d7c48280f5c10b", - "prototype/Core/WS2FocusWindowOwnership.swift": "69a0b9a82fd67c318d92b4bcedebd6f980b094f24b37197758fe1cf85f5ab3c7", - "prototype/Core/WS2StrictJSON.swift": "3c1edb48065c85d7b0fbed12ac8299df4d1931abecfe53019f9ea9cabdc9bb0d", - "prototype/Core/WS2OwnedScope.swift": "20102a3fbab321958f7dde9a24d69453f3a7d45d2f537fd5957a9a4df4a9d6f2", - "prototype/Core/InputDeviceKind.swift": "bfee009b5bc3fb1031a4cebbfa871bd770145e424cc8d9343eae3787d5c88233", - "prototype/Core/GlanceIntent.swift": "f024dcf706695b1b226f8ab38658f50252310c5035040ce685ce94f087d09ea7", - "prototype/Core/LidGesture.swift": "f9988eeff67ed98ef01c09ec1f77f955c049603a501d57e4ef03f2723df9e08c", - "prototype/Core/FocusNavigator.swift": "372caeb9b2b2318d8b15dc8e014a69ec6e2ddc305d5731754f2810edfc5578bc", - "prototype/Core/WS2SemanticInputRouter.swift": "7055bb6994681ac67dd6b166374ab00923a8e1d76b9133021d922925ef2ac3c6", - "prototype/Core/DisplayRefit.swift": "7751172780c0bc7a4410bb94c0343bbca3518b76549aeab18825afe04ca15cf9", - "prototype/Core/CodexWire.swift": "ed2e3e209bb3ff42c6ba8273b323f2b6f70bdf48daa4cc21f91060d9bfebecf3", - "prototype/Core/PresenceReadDeadline.swift": "1fbe0aecaaeb279525bc7a5b37de6ffc7b5b48107df0fe84e9524399a287086a", - "prototype/Core/ConductorCapabilities.swift": "4494697451f96b08ea1c1bf92fbb83ec9539055ac06937edef392558c20c9af0", - "prototype/Core/PairingTLV.swift": "32495002c85cc927a8c31cd5699ff517f070107120c111919e9b35c1df2f3845", - "prototype/Core/ShadeTranslucency.swift": "f8083113fc6864b3a775a0081af4c957eae6ca186ad3cbb3e1134c6dcf7a6487", - "prototype/Core/ArrangeGap.swift": "93078fcf0f8c4693bb2e25dd05fcf78e21b7a76a13adbc0336754969229ca945", - "prototype/Core/RemoteEventRouter.swift": "7d025693b62af9d3a537e0f71fdbc5312f0773b53d6a51008f1f441dab4b3e19", - "prototype/Core/LaunchpadModel.swift": "33e3563b11c5ad7c19ccfd332d51c9e4df1e236cf04bfb17d7f505818b8dddd3", - "prototype/Core/TouchTap.swift": "60e6818723846479f637e26a7236998f85003ac329709f01ea3ca6a7efc72c30", - "prototype/Core/SiriRemoteButtons.swift": "be2b7b7d83b28f575eee5b086885b250d4da6b1fd93b4774e02ff6c11b26eef4", - "prototype/Core/SmoothScroll.swift": "8bcd292317a0be05903e2c2fa68c7a3c5a6a7b5662179b438dc03c8fd1b633f6", - "prototype/Core/RemoteMode.swift": "559d83d94615574613c9ec13a92ddf9395a55157c21f3eaff0e60b61bb48b3d7", - "prototype/Core/MagicTiling.swift": "6aeeb96aac653d1eb587c2a12c3d31194fb55bffb196a6849257f593ffedd8b9", - "prototype/Core/WS2DiagnosticTail.swift": "fef7ffb8b3191d594e2c9e5e8521fba1ff8271975ddd653c9ae2185281c12fc5", - "prototype/Core/ShadeModels.swift": "49550836c173cdefb98bf1a2db924a9dc8c6ebf9b8f60428592a21c43eca1c22", - "prototype/Core/SlideOverMotion.swift": "a87a21acec5f89283974f055b5da01928e35a968e14f0aa943176feba029db2c", - "prototype/Core/SessionLockState.swift": "1f92f697f9a7c1b5add7c4842496b86d4e65b93f2985e10f08ba3662a82ebe75", - "prototype/Core/DisplayShape.swift": "64d7c414f0a6ccd227cc730547dbffb3cd7812d8dfb6ba858479873eddc8aa0b", - "prototype/Core/WS2ApprovalReview.swift": "382ba5ed147027f63d3707ca865e79c7a38183cfa7e7216979472f0a42e4a149", - "prototype/Core/LockOverlayLifecycle.swift": "7aa73bab4bd6a8b6e3becd3c1c75314889f6997d1911817741e55cfbffe0462f", - "prototype/Core/SplitPair.swift": "ded3e14e991ee1180b7ff89699a7d2cfbd42ca965497b2a9678523cbdb62e907", - "prototype/Core/DockClickGuard.swift": "2290cbd5d3788825324f661490ababf487a86b77c1e1c6000af81b23afac3ec2", - "prototype/Core/ScrollStrip.swift": "8f035b93e7f890bb6b353722f58b6c637101edf217c486ad85c2173f04931db5", - "prototype/Core/SwitcherOrigin.swift": "be5cb2a70a4e3d9e7e47542205d6668ff4bda622d87e71ef8ae6286d5888e5bf", - "prototype/Core/WS2LockRequestPolicy.swift": "900c77a7fda12d50eeaf345bac99e8ba57ae7eb044023f0beb45ab1aa0f616d5", - "prototype/Core/ConductorSession.swift": "e426c0b1a19fd8bea29528f707371decf0ac65459e3c85dbd6d6e2f94e7f2e7d", - "prototype/Core/WS2SelectionModel.swift": "c8fb3c0ac6564970d2daedee4d4708799ef0014a94a7bb22b99f18a85d86cf4c", - "prototype/Core/ThumbnailLayout.swift": "4a7b82ebdd40e4fd6363d03712591296da51c8ef034d86408a9e579745a093c7", - "prototype/Core/DockLockRule.swift": "159299a99f0e91d3aa06f2eeb0697822100c28db87c8150ceaf19c21d8bcff03", - "prototype/Core/HIDMappingTransaction.swift": "48edb2bb043ddd6cf18285f422ae90e4f75b258ee75efd9c6976fd7ef973a3d6", - "prototype/Core/WindowShake.swift": "0e94c26c2a949a44c52531c0b5193c887901a36937c1d7ff04b0dc7377ad5d6d", - "prototype/Core/WS2BoundedOutbox.swift": "80fb7f58123a2f9df5c0d7b94c206277427e269273be595ac25e4d554c68e326", - "prototype/Core/WindowState.swift": "92dccea12a8c772dd4678c4d14e43866c2a8f12b5e88f0573b34133483eec9c8", - "prototype/Core/UpdateVersion.swift": "539abc3c74b8573b255d8d95e0dfa7289e4c80347dd23804d47915cc19b1e793", - "prototype/Core/SeamLayout.swift": "2e5fc44dab7a3449ce57e80e05ed3662096209677d4556d5869222555f29bad2", - "prototype/Core/RemoteSessionGate.swift": "a48f690ce3db11c93563402a6e27601ce33cf6293b20985efb4bbecc2e1d23f6", - "prototype/Core/FaceGestureTracker.swift": "da07128afd663c1cd02d3fe83c93e5da3c2bbef0a97107dffffbd3af68e47028", - "prototype/Core/WS2FocusEffectPlan.swift": "60ccb717e3641f20e1fc499dc1e432ba37493e3c4abe8e28c73b2ebc19419829", - "prototype/Core/UpdateModels.swift": "4706a3fd6d8412f30b9962b99ea91d767b45b3e8d184e74c9424955db51f61d2", - "prototype/Core/ConductorGesture.swift": "98802f88fa95985e05a46e75582016e60692725c75c84af0e74cb2248b867393", - "prototype/Core/Contracts.swift": "12fffc2e5cf207aa0ca6b4c371f28b9eec8c2b374b5e1a06d8943878891b2420", - "prototype/Core/HabitRules.swift": "dc9c9465f28d295849a1ca032eab408f012feaa35008e0b42d2e7e26d884fa1f", - "prototype/Core/NotchGlancePlan.swift": "249b49af6ba4c0ded8abb7d6087136e70b0bc8afe2c31dd417e50755560708d4", - "prototype/Core/MotionTilt.swift": "0561b7804905d071677d0a50de2fe115203b1c6bc2e010cf7695447e1157c3ee", - "prototype/Core/RectangleKeymap.swift": "9b337f8acf4066f3b2bcf51db605f89b52f5727ccfb3bf456a0304fcbd84bba2", - "prototype/Core/DockSwipeTrack.swift": "41dd4e6f3f1715eda10d3e187a80c4d79f92d4a86fd22b7e202955b171bb0494", - "prototype/Core/CarryShelfLayout.swift": "b12db5b98bd4e244b5ba4ddbaa909c897d74ea7b778c892ecbe1a6f98e0e0f84", - "prototype/Core/WS2OwnedProtocolHost.swift": "11defe55b4723986cdcd10cea154dfcc10f205dbb8d45eb1265c9dc84fe5b765", - "prototype/Core/PairingAttemptWindow.swift": "262dc840763d31105c16f5edda749a2e11ea15064158884c825109fbcd3450e3", - "prototype/Core/MissionControlPick.swift": "47856dff5c85d98d7d2c9f6c5d741247f88416171f602cfb036865eda3c62dce", - "prototype/Core/TitlebarTripleClickIntent.swift": "1bdcf6d07d61492d16fd239b550194e5d78d250a7a5e446540a389f2aad4ea9d", - "prototype/Core/FoldVerifier.swift": "90a4d023619d31706672da91a52ab721023662591b5ab3f72cda05e32fabc086", - "prototype/Core/PresenceLock.swift": "7099b9f42bc09683ac35dd345020a58429bd2e9e19db4823082df19ad7540188", - "prototype/Core/PiPLayout.swift": "176cd9e0b8644d08a50e7503707fed57e762ba95094d497b3e96f276f0a989fb", - "prototype/Core/WS2ConnectionBudget.swift": "f225317ecabd3143c7c40603ed7a1c2bb93f19f083c59722a6bddfc409be9cd2", - "prototype/Core/NotchAlerts.swift": "2084a95a7dbf3c63d200c663b290ca744ac6494fa7aed52f69ac44c7d8567197", - "prototype/Core/WS2DeviceInputGate.swift": "60c5be94786910c4719bcc4b56ff7ff217708e3981591922f33bbe9b384ae662", - "prototype/Core/TrackpadGesture.swift": "f4521524e1de21126f02dce390b1ced38a1e0ad7fd31e05b4da4d333b0fa3948", - "prototype/Core/MultitouchQualification.swift": "dd4bf29aa1cef3fca706c8d9781a84da40f2174623ead5cbeb406132e967dd91", - "prototype/Recovery/Rescue.swift": "26cc2ce87db65aa2b49a134cbac248a1c69740bb0aadd042ad45631ff1ce2428", - "prototype/Recovery/DurableShadeJournal.swift": "5dbcd013cc44573bfef4b028dae0ca44c75c963d7df131cf20b946a737c366c8", - "prototype/Recovery/Journal.swift": "0fa6eb0b1ef02048ffb0b26a1e8ff546c83d37dd96774da231d088e528c075c2", - "prototype/Effects/LockOverlaySession.swift": "fd8da1d18ca18369f9f2df27178911c3762ce70028bbc6809e5c9492e92067e2", - "prototype/Effects/DuoSettingsWindow.swift": "04a80b69bc44fe5185dd558de270842d74aae8a3f107be907a78483fdf4adbc1", - "prototype/Effects/EffectFrameSource.swift": "c63cc6885d42278bf8ce30ae05cfc63e3f209d9490524fbd73ddbfb5087990ab", - "prototype/Effects/RestoreVerifier.swift": "a0ed730ff532106fdde2eaa64fd8905d5aeddaf9a1ec1e28c293b26ff7dc7052", - "prototype/Effects/FoldRenderer.swift": "e3408e15a67de03ba068d43cbcccbba8655f19abec36a7c0785f670d2bce189e", - "prototype/Effects/EffectFrameAwaiter.swift": "634182d48f845ebec9887544b2d1aea0fdeb53e614af3c66e1070b4907f1f68f", - "prototype/Effects/SettingsDesignPreview.swift": "2acf03fbf39f406b80f27b650641613230c0ba1b2e7bf07191ff5856d346a35f", - "prototype/Effects/Duo.metal": "7ca2be657b1e50ead1577d23d1e5f65375931ac391d94eba9fd5e9c19649dbe6", - "prototype/Effects/EffectWindowProbe.swift": "9cbe19213f5f0f965c62e9ff0d523e131b3e3cc2732d2ce135aab2de6299b16d", - "prototype/Effects/EffectSession.swift": "42f2c3f32cb94c62b56dbac2a3ff97139feeba19842efa38b33b21341cdac45e", - "prototype/Effects/DuoController.swift": "00c452749f6ed69481d92b386ca9a1c5a8e034f4fcce7bcfe8fc5321bd692612", - "prototype/Effects/FoldDriver.swift": "d710a5f9546321a2ca9fa29efea2e56edc1d80f738f0797614fcd7b876309852", - "prototype/Effects/EffectInspector.swift": "db563c7b334ee2a23476ee4cf39ac87d3881aceeee49049a855ad4c71d2a22e3", - "prototype/Effects/LatestEffectFrame.swift": "e9c57b3f2ab933d8de70257d29dc0e3840ae23280d186918bc08fa9d15c3aac4", - "prototype/Effects/RestoreVerification.swift": "521564f365800522736a893ab0f5b594746e5a20b86e668ece2833d66282930c", - "prototype/Effects/LockOverlayController.swift": "ffb6c861c80ab6096ee8627c22ba93dd8f6d7b6216b6ef7154e375631c8a58cb", - "prototype/Effects/EffectEnvironment.swift": "b96919951e9dcd50184cf0a49d1e4d4686f84fdda10e93ba775b76adf0b5c5ee", - "prototype/Effects/SettingsShotProbe.swift": "5e8bc146379a032168146f54bd4d949b5ba4dc22e10ac6bf1f524151c057c5d6", - "prototype/Effects/EffectSoakProbe.swift": "257182b9374960b36a6d143fb650596237140aba6cb10ecc5430779d7c069610", - "prototype/Effects/AppleSPUAccelerometer.swift": "d39fd145a3f3c46fa949fe9c543c26cbf92decda6794cef93d7440e42b13ec37", - "prototype/Effects/EffectRenderProbe.swift": "f6e780ff32160d09918c5b38c05af6d954be91353d145d1f21e89a374f85d019", - "prototype/Effects/WindowFoldEffects.swift": "eb892b8d6d4aebe9759080bb0cc80c690d1c0369c6a29fec609857db83658b8a", - "prototype/Effects/LidAngleSource.swift": "bd17b11559c8e698d4d8e8ed57f78c0f8dfe6d28cdc29da858b94b5a0da3cd57", - "prototype/Compatibility/AppPredicates.swift": "f7bed5be688177e482e64ef96066d7ef37967b962206d639b7fdd87430fd7d24", - "prototype/Compatibility/Policies.swift": "ca921cacaacf77751d48cccaaf5781412d8ac867135706eb737609cb6cca93f6", - "prototype/Compatibility/WindowPolicy.swift": "86c30970c8cfd6baad88188c99f4057c4b73311147b1031687bf2153a7d08a9c", - "prototype/Vendor/Sparkle-LICENSE": "389a4e4e9a32f059775b13a06e25a591445ba229d2838d26dd3e7c0c45127cfe", - "film/ws2-concept/DIGEST.md": "1b74350777e94f81fb7dda50a092c9036ff465abf79750b44604c432d3c3a5cf", - "film/ws2-concept/BRIEF.md": "05d4db19471905be1b8542253e00f621c6ffad9fbdf57ecdfd14b10df50b5dee", - "film/ws2-concept/package-lock.json": "89819b15ca1e71e9af46b6dc766db1c181b5b4dc14d1f2ecd0630c164dad86c9", - "film/ws2-concept/package.json": "c50558ca59bf2afc844745f51ce7b1b9310372af4f3cc9c7f6ef9aeb51526e2d", - "film/ws2-concept/remotion.config.ts": "dc2560488ec68013be8dfaf6995d8aa6ef12ee1e64253d7ed3ef2f9a28dd3eb8", - "film/ws2-concept/tsconfig.json": "4c1e3cf27dafa9dca603da9d50806a4cc91bd6c4a98de49cc7ccd2e171a39c87", - "film/ws2-concept/.gitignore": "9ae8e02462ff393bb40e787f0a65e79d241ed4f74b32cc57c64acb4ac18fa3fc", - "film/ws2-concept/reference/LICENSE-video-shotcraft": "b2ce9877a55547ada9b870150664d1468ff777e67cc9888806a73927d31c5771", - "film/ws2-concept/reference/sound-design.md": "cac6f23c0b360cef7c7d04655f3009cf5e45f79e5f775594a622e680b0301521", - "film/ws2-concept/reference/promo-energy-arc.md": "72f5be431d97c04395f3f02cbc5968922a906bcba808d511ddb5d9922b936190", - "film/ws2-concept/reference/aesthetic-rules.md": "4b5f3efd84d10d3d0e1af742a2ee16cecbd1c9aee8e982ed5ac1b7c9f14de78a", - "film/ws2-concept/src/index.ts": "98b03b1da7aa397e0fc89cb4600c418d3572b389cb1831b1e72e9b4400a5a34e", - "film/ws2-concept/src/Film.tsx": "f9c41f018c382e43b074435f7f9383cba58337a1fd9306a6194c509c98f4ebb1", - "film/ws2-concept/src/Root.tsx": "4e1cf80dc01f8d3fbe56f9c21285b0d73e427b13284b34d218be45da30f77b7f", - "film/ws2-concept/src/lib/DigitRoll.tsx": "aeb03c74d481a238dcd413af3054c264f9b4f91d5c745620e10a361fa4cbc20b", - "film/ws2-concept/src/lib/PageCam.tsx": "1679bfc0c15973d5a51f6b600ae17d4d8c06c2fa3f8513e5110f9d0b9b3271de", - "film/ws2-concept/src/lib/VerticalTicker.tsx": "e4f90b838559beae465c6bb08736c00097bb0107d6dd4a378f64308e2acf1bae", - "film/ws2-concept/src/lib/Caption.tsx": "e5be094d9c4321296da5078e51a83147aa39e4d95c95dccc2bf53b9f7d280d04", - "film/ws2-concept/src/lib/FlatPanel.tsx": "e5dff9388d24376db383873ce8ce32e3264ab5ef35c959733fbc568efef6acdd", - "film/ws2-concept/src/lib/FlashCut.tsx": "2e8d9e6319f99970be839f05bc869467b3d580aaa40809efb04b5dc02dd84c7f", - "film/ws2-concept/src/lib/ClipCard.tsx": "3532788285cfe52fef4e836979832054c41885b238f4055fd84b40c8de44670b", - "film/ws2-concept/src/lib/helpers/rand.ts": "0c64fcd062f1fcd7547e3da96cfa8430c2502eaf2e3f09fb2323392f8a5493ef", - "film/ws2-concept/src/lib/helpers/camera.tsx": "8e5fc4e0ccfaa258fcbcc362761803d2c3e548cbf2e461d157cb42a134caf22d", - "film/ws2-concept/src/lib/helpers/shake.ts": "bbee393468a944df5ae85261e9ffee3c78fd78de0087e057cf96ee36e569054e", - "film/ws2-concept/src/lib/helpers/motion.ts": "9123bacf8078982a903bb565923974902212f93ebe265e24d188e4362a8e251f", - "film/ws2-concept/reference/cards/circle-match-iris.md": "5c5e46f211f90fdb437865a863144abba7867eea34d7c19b34d5bc0e5e063f14", - "film/ws2-concept/reference/cards/pill-slot-cycle.md": "32cddebfe7bb0869057e0f81f66c6d6044ea152b381f402a26707e9d4274ff62", - "film/ws2-concept/reference/cards/letterspace-materialize.md": "f6632e8da2ab2bef13248514617e3e636c79d9140de4605997312b01060ddd4a", - "film/ws2-concept/reference/cards/spotlight-hero-card.md": "fbbd603a71ff0a472f37d4ea5647506da2c06dcef2f2d4687d3bc20c2484d989", - "film/ws2-concept/reference/cards/scan-bracket-sweep.md": "e80d67b51792b6355baca5f0547d8b9255675ec3fc6b935b43b57f44917cc686", - "film/ws2-concept/reference/cards/speed-ramp-freeze.md": "7d365e36082978b66ec5bca6623b9dbe57c7898b472f031a84d2bbbd09c3f56f", - "film/ws2-concept/reference/cards/tension-camera-moves.md": "6612ba598559261d2bb556bd536eeb1659490102a48b57e034fe053e10774631", - "film/ws2-concept/reference/cards/draw-svg-trace.md": "efafcc9abd8cd7dee3e22036b98dc7fcc1c5d122ba7630af622f0714675a335d", - "film/ws2-concept/reference/cards/icon-performance-moves.md": "e643217134fe454c5049a4bf02ece3a2c0d066a4bf7f2c92e3d2c17daed351fe", - "film/ws2-concept/reference/cards/wall-reveal-moves.md": "e0783733037425ca97c48fce97fd10fbd1c104855d59faf8b50115f54f72d91d", - "film/ws2-concept/reference/cards/paper-title-card.md": "a474a2d6f5563239be6fabd33e0e6d9002f57623bc49ddf57ea0020cfeffc458", - "film/ws2-concept/reference/cards/outro-group-photo-launch.md": "6cb64b674b8bded5f08a39aceac73de2b957c7a6fdaf559921c4421b6c27d46f", - "film/ws2-concept/reference/cards/type-and-filter.md": "05da1b7e16fe652d2f5868485e913d08caaf87febb5512bd27b71d6b6c964fef", - "film/ws2-concept/reference/cards/voice-waveform-live.md": "d5835944532b621f55fef1894bbf6e7ade6c453402a8a9a01133626b81708d98", - "film/ws2-concept/reference/cards/glass-pill-dictation-typing.md": "fd41dce82df9de936d958fee0640d0b411f13a5e0f71711280076a848e639036", - "film/ws2-concept/reference/cards/light-play-moves.md": "e45f10c67bca8d9bf20af879f60328182ba71a67fa0f90c082f8c8feedb42328", - "film/ws2-concept/reference/cards/deck-deal-flyin.md": "1341d0ae4728efa49ee47ee5715eb11c19155ba695d15b79ac5f986c180f71ad", - "film/ws2-concept/reference/cards/odometer-digit-roll.md": "8f8b356fc57d914d4b324244fe437b232fe10030d212482a31b19a932c56513c", - "film/ws2-concept/reference/cards/terminal-3d.md": "956b483a20e9bf49c192b53ed060fa9690cc5eee771e0d3ca29758768836bb4c", - "film/ws2-concept/reference/cards/list-stack-press.md": "fcf031f506570e4838c9313e4957c8c290a048a35321156ed61874685e8110ba", - "film/ws2-concept/reference/cards/transition-travel.md": "7e1d46357459532c97dde76cf2631770dd21580978f13437a0c4eefd647653eb", - "film/ws2-concept/reference/cards/logo-shrink-wordmark-lockup.md": "1f76c5434a85bf2e5b8867142419577348adfe265fb215e460ec2b7e239b189b", - "film/ws2-concept/reference/cards/ai-stream-response.md": "a44dc2f57dcc3e367e21ecd71669f6550262e5746be0af87e95309ed40308e65", - "film/ws2-concept/reference/cards/input-trigger-moves.md": "4ad36f963da66a7b1c9315da7f80ff75fe3e44d687036c876aebdc1b7484a992", - "film/ws2-concept/reference/cards/shot-transitions.md": "2cdb68da4060b519d4b0545db17ebc5ca000f04c814f40b0de4d4082756bc216", - "film/ws2-concept/reference/cards/dataviz-landscape-open.md": "40318d4903ce1aecf1b39a0beb7738e7ec9b41f35ce49978eafe875efa402439", - "film/ws2-concept/reference/cards/transition-hidden-cut.md": "3e6b872df779eef27a4ec0304d04a02d49ba5a3ad7bf6744020c1de94c64d22e", - "film/ws2-concept/reference/cards/quad-split-parallel-scenes.md": "22b9e42c9d136c29710ea9371728205198be2ec73a90322107ce92223ea18fcb", - "film/ws2-concept/reference/cards/svg-shape-morph.md": "ddc54c05b5c397adfe9c9fe458cf1f9ec62232d8162eb82ca3dca00090250f71", - "film/ws2-concept/reference/cards/crash-zoom-punch.md": "7ff7214d17dc305718683ae15b308ab6704a2cc82ee82a6afe9db5cbe7a417f4", - "film/ws2-concept/reference/cards/morph-from-primitive.md": "c338f6d3639b65bea1edff3c5749e530daa9a6ce70c8f44e6bbffbcfe86a6456", - "film/ws2-concept/reference/cards/fui-hud-moves.md": "480e920e376e8f18529142d06c4de84544406b0e5f2dd37062dfe274b3f51305", - "film/ws2-concept/reference/cards/depth-layer-moves.md": "3caa8ebc9c5ae5af8dfe3932f43bc88c1f1bd5d4e6980a0c0461be121bcf1acc", - "film/ws2-concept/reference/lib-tests/__tests__/helpers.test.ts": "65617872abe7a728cd19f12707fb456225d27ca0bab30863277d3b47e0a834ee", - "film/ws2-concept/reference/demos/pill-slot-cycle/PillSlotCycle.tsx": "a8db19162d267d107904fd8e46573e9b74854bcbf871dd604fac56ff58b87f2f", - "film/ws2-concept/reference/demos/light-play-moves/SheenSweepRetry.tsx": "c411aedec951a84afcf1722c93e8d9bec2864752610c652cc8a7d9e862f5e799", - "film/ws2-concept/reference/demos/light-play-moves/HalationBloom.tsx": "515567c881a3b18c8ae92d001b0b656b506f3bbadea32d75a82a476c6ea47096", - "film/ws2-concept/reference/demos/light-play-moves/SpotlightSweepReveal.tsx": "2abd85f00e8221f6a6b67c89d0be24fea3dc661a1f00d68e3dc954567cb4b438", - "film/ws2-concept/reference/demos/depth-layer-moves/DollyZoomReal.tsx": "47d44cad258e8a3c7b7bfd7c5e5b3535360b486f21621e6fb25d210c7e4797b0", - "film/ws2-concept/reference/demos/depth-layer-moves/MultiplaneReal.tsx": "b67c6ab37f02f1df6033b54fdb08d1fa0aa85300404578be50715285d16d2124", - "film/ws2-concept/reference/demos/circle-match-iris/CircleMatchIris.tsx": "0c2afbb49d65aa15241396fb2343ba3cb046d0958cd80a9eac1925e4f93efd20", - "film/ws2-concept/reference/demos/draw-svg-trace/DrawSvgTrace.tsx": "654e26eef7357c64a828a6cbbd790331f9865e0e9c18768de15de46c281aacf5", - "film/ws2-concept/reference/demos/ai-stream-response/StreamResponse.tsx": "017726ea7fd92256de50a1c5018391b88efc9920abb7d0cf42dce0e2c0db3df5", - "film/ws2-concept/reference/demos/ai-stream-response/agent-stream.jpg": "8a6683ac0348347f941aaf5f396d48e70086e61ef0667626cb77e74b48d076f2", - "film/ws2-concept/reference/demos/icon-performance-moves/PopBurstConfirm.tsx": "cca22774f4d75754795f96e0060f727a8b062c3005b7bab5cf45fce86f02b80f", - "film/ws2-concept/reference/demos/icon-performance-moves/AttentionBounce.tsx": "c467057383f91a4433be617db40d92d03f5f53f47e4cbcedb66091492f50cb87", - "film/ws2-concept/reference/demos/letterspace-materialize/LetterspaceMaterialize.tsx": "c66c6a726608e8de3584afd8ff25406eecd387edcf313c701a14d577cf7c9341", - "film/ws2-concept/reference/demos/input-trigger-moves/CursorPerformancePunchIn.tsx": "a2970990b385856cd9e176757eebdcd778fca864f7bf979c976b8fd4cfab53d3", - "film/ws2-concept/reference/demos/input-trigger-moves/KeycapSmashCut.tsx": "cd995c264dd139a0e6c161d59bb9b5cff17d92fc2ac4efba2e7003e329d53904", - "film/ws2-concept/reference/demos/deck-deal-flyin/DeckDealFlyin.tsx": "4738e54d707a82847d1a5081af88876a872465eb3ead94f1c7682acf8e5a251a", - "film/ws2-concept/reference/demos/odometer-digit-roll/OdometerDigitRoll.tsx": "e91c46c1c80f68f83fbed2c1c39e5ad22d6be5799f3541978f56b9e61ee73af2", - "film/ws2-concept/reference/demos/scan-bracket-sweep/ScanBracketSweep.tsx": "e96046d8b393545fc17a5b6c5d0158aae95d2f2285b6d2a997232a6595e6686e", - "film/ws2-concept/reference/demos/speed-ramp-freeze/FreezeAnnotateReal.tsx": "5ea9848eb760ed76123ab152d4e2b60bb3b1df9472c3b0ca12e6723fb64f35c7", - "film/ws2-concept/reference/demos/speed-ramp-freeze/SpeedRampReal.tsx": "f3f9e54385f0920aad4071d6f85bf9c878946ddb7908894d5802ab2ecd5f11b8", - "film/ws2-concept/reference/demos/voice-waveform-live/VoiceWaveformLive.tsx": "77ab5983344687d7d591e2101febe8f80bd72fcef2043b470fa24fb95ee9f833", - "film/ws2-concept/reference/demos/shot-transitions/PortalWipeV2.tsx": "037b4f5bdd9b5c3d73a11d2932acddc471127e7051c122aee0f6423b77f511c1", - "film/ws2-concept/reference/demos/shot-transitions/WhipBrakeReal.tsx": "87c84d66f0675d921ca4cfd55a9fd9c5a5ba9a7717870d4b44c4c391c81ad063", - "film/ws2-concept/reference/demos/shot-transitions/BlackCardTransition.tsx": "4e4698247bb6bdd489ff34b46db292da07e616e575681eb13624b4f21d883561", - "film/ws2-concept/reference/demos/shot-transitions/DarkTunnelTransition.tsx": "526fd36c73b2aebbf01164900bc30e953bfa1361e76835d4efbfe47f7980ca67", - "film/ws2-concept/reference/demos/shot-transitions/FocusHandoffTransition.tsx": "00662137985de0d86b86cb882544189e6cf69276e8d849f45c7b2c23a84b679f", - "film/ws2-concept/reference/demos/shot-transitions/WhipPanReal.tsx": "eda7132e8c2e142be87995b50a30e48c60c925872a9047c6bb8f54a8406be37f", - "film/ws2-concept/reference/demos/shot-transitions/MaskWipeReal.tsx": "92eb6e2a34f4f075b286e03fa4ee000fda8369ff5f3b2bd3a02964e2efff3713", - "film/ws2-concept/reference/demos/transition-hidden-cut/LightLeakBurn.tsx": "31e4be432a84e13d6fa233ef3aff4a40646d67b949e16e9a5bea2a8f7b62b5fb", - "film/ws2-concept/reference/demos/transition-hidden-cut/InvisibleCut.tsx": "41e68ca391f37c1ca10288407283c38f71844ab7f796b36a37056d7c56f43ad5", - "film/ws2-concept/reference/demos/transition-hidden-cut/VersusSlam.tsx": "ec0f28e508e4c3706a642798ed8516d90ef1b39c7350e1af15e0f5e9f4cb481a", - "film/ws2-concept/reference/demos/terminal-3d/Terminal3D.tsx": "810807a14ff6a7f813fe2ef999a40364734043428d34d9e272b24e7df18280d4", - "film/ws2-concept/reference/demos/crash-zoom-punch/CrashZoomReal.tsx": "495a5afc91a4c93424d15edf35c8767d1ff90f4d9515bb9194f68d7f355a181f", - "film/ws2-concept/reference/demos/crash-zoom-punch/CrashImpactReal.tsx": "6150253befeb22cff49492dcf3a5b56c01d667e3df6136466e480d7b3b92789d", - "film/ws2-concept/reference/demos/paper-title-card/PaperTitleCard.tsx": "5ab4b473e631c2863d6033be22231a07afce2b29d08322d5ba821607c2642a16", - "film/ws2-concept/reference/demos/type-and-filter/TypeAndFilter.tsx": "95ab942c3e7f0416fbab7563ff326724123cc2a4ddc9fea478aebc8901cdf3b8", - "film/ws2-concept/reference/demos/list-stack-press/ListStackPress.tsx": "6649fa6321663c6b54c9ca326147917d89a2dfd61d582954b996c7dd83c878db", - "film/ws2-concept/reference/demos/fui-hud-moves/LineUnfoldPanel.tsx": "87329b62b3dfe20b6c08c9f3a559b2f77ee4841b4860cc2be1a00ddf2d5d0122", - "film/ws2-concept/reference/demos/fui-hud-moves/ReticleLockOn.tsx": "46bf287a5de1fde17d34e3725ed6cf66d443a90cff63ebcc907293cf0c31fdf5", - "film/ws2-concept/reference/demos/logo-shrink-wordmark-lockup/LogoShrinkWordmarkLockup.tsx": "d8581f081b037f36954214276aefed9039ebe8d76aadbe91ffdf7c6ff3d4a4df", - "film/ws2-concept/reference/demos/wall-reveal-moves/BentoLightUp.tsx": "eccb4c2211af30cb26b391ea734c326599958906411e9a3c019acfeceb87fd69", - "film/ws2-concept/reference/demos/wall-reveal-moves/WireframeDrawOn.tsx": "18d2fc4192a67dbfdcfca390d753eb52f6bcb50be316b71480e54ed32208558f", - "film/ws2-concept/reference/demos/wall-reveal-moves/GridWaveFlip.tsx": "c39a5cabdca00167d3354667442b4de477b76a36576815abc483609f1198f481", - "film/ws2-concept/reference/demos/quad-split-parallel-scenes/QuadSplitParallelScenes.tsx": "0ef89104610b5a00fc7bb89367957fa8b42df0b616a6c98ed535af6984f07c8e", - "film/ws2-concept/reference/demos/outro-group-photo-launch/OutroGroupPhotoLaunch.tsx": "af4bbbf21570b65bc8e33b6ed679700089315bd17dffaf17864e4a8ac1e39830", - "film/ws2-concept/reference/demos/tension-camera-moves/DutchRollToLevel.tsx": "de3f0848a382c77d5f1d7824041fce6a371cef804be592845fba981dd83564d0", - "film/ws2-concept/reference/demos/tension-camera-moves/PullBackIsolation.tsx": "93e36a2f42e96497627fb6aac92854d914f70037239a772e5cb3830e7f1a9844", - "film/ws2-concept/reference/demos/tension-camera-moves/SlowPushIn.tsx": "db43d1d0d52b27cba3a97f17bf2999bcbb8750f5c4aee460889285d7c2647446", - "film/ws2-concept/reference/demos/tension-camera-moves/BulletTimeFreezeOrbit.tsx": "975f02697f579905a6d83461727f7e258f285fa4738d783ac96b3e6f997413bb", - "film/ws2-concept/reference/demos/transition-travel/LetterformZoom.tsx": "272b01d64d73252aab1b70b8f6214656d046704266ca06e5306edb66fc75da13", - "film/ws2-concept/reference/demos/transition-travel/SharedElementMorph.tsx": "fe5d3a1071e71cce96470939bb6f4b4e7dc52e61058697ffa010c3e17e3521f3", - "film/ws2-concept/reference/demos/_fixtures/PageCam2D.tsx": "36b3b90680df7e99f0ced02f135181d7037f74c33a4f425cc01f7a110d20f69a", - "film/ws2-concept/reference/demos/_fixtures/Motion.tsx": "961a9ce2401e38b5fe22fce7f44d84fc656d76aad0b178082e447feb01494421", - "film/ws2-concept/reference/demos/_fixtures/Fixtures.tsx": "e06a6edce67ba854c46b897c11575d487ab265a2b3edf2b480be85dbe29bb5a0", - "film/ws2-concept/reference/demos/spotlight-hero-card/SpotlightHeroCard.tsx": "9dcc839d8953ff930ade91c82a7da178a31afdaa1e81b1b7ff59820e4b6cb04c", - "film/ws2-concept/reference/demos/glass-pill-dictation-typing/GlassPillDictationTyping.tsx": "b3d70491d046eb645ea594e5e2a5f9d24d40dd0cf3860d7e65496e528e47f688", - "film/ws2-concept/reference/demos/svg-shape-morph/SvgShapeMorph.tsx": "9e6bfaca697bd36837b3c31163d607863942570daaa0b5abda0c0c5f131172ed", - "film/ws2-concept/reference/demos/dataviz-landscape-open/DatavizLandscapeOpen.tsx": "f575d1387ed5fe5bd1172ab50cdda20fe0562d44bfb469ec6d199b97bacd024a", - "film/ws2-concept/reference/demos/morph-from-primitive/MorphFromPrimitive.tsx": "f18d82ce6675be5c0b097969285a973c122633f2844fd1c4a81cc1c6a97a0d5e", - "film/ws2-concept/public/footage/SHOTLIST.md": "a10154e0ef8db5ff09ec6f35d1d2b182229a25e0dfd75b0028b908f6b937fac0", - "film/ws2-concept/public/footage/manifest.json": "48793c6bb3ed0dea0fcfe54eb2c936e3fa0d3bff5499ba6954b704b3325da9a2", - "tests/support/NotchThumbnailsShim.swift": "d902c85adfb192b475ab833ca911eecf09f40cf1b480f0dabdac1887616cc7a9", - "tests/fixtures/capture-indicator-stream-frame@2x.png": "3e070f6196de997e6713bdd320175f5cd8fbbf94dc50413215cf4b5941d22434", - "tests/fixtures/GlanceFixture.swift": "42a9b09d4d50e2dc1158946d111b43719de83216013ed47ff239fb385d778dad", - "tests/fixtures/capture-indicator-before-stream@2x.png": "f98ceb3b31a89ea298229fcb9dff01d0c3b86e5e4bf2583fc24b3b5f908b0083", - "tests/fixtures/LaunchpadPerfFixture.swift": "9c008df67cf10add6ec425b9dc7855ca007d379ab6365d1e114e0ba7dbacd20e", - "tests/fixtures/capture-indicator-inactive@2x.png": "f979f41f3cd3faf343f3870486dbed609c36c716c790e88f110858caa1624c69", - "tests/fixtures/capture-indicator-active@2x.png": "e9dc2161d154c48a5cbca2e156691131dbc0942e5e31ad624f77ad6850d966e9", - "tests/fixtures/LaunchpadVisualFixture.swift": "e664bf9ebe168b5543a8a6868672d4c2a842cfcc4dc4cc1c271fb907e4d541eb", - "tests/fixtures/lid-traces/rest.csv": "f3b43a73a2a78a3219075228fa2759aa74ba81ce2bc932f8cb65ff6af5e68648", - "tests/fixtures/lid-traces/partial-hold.csv": "7edecd690b14174651f775ebbc9a8a71d11dd4fe63ce531e9cbed4c7114f7d7c", - "tests/fixtures/lid-traces/slow-close.csv": "aecc4574bd843c2663432828ae87503d520c016092144611f7d9bf216bdfd31d", - "tests/fixtures/lid-traces/fast.csv": "674d70b7c4909699de5a8ef8d7d0d873ab0f8cebf167875bdb609e397057003c", - "tests/fixtures/lid-traces/adjust.csv": "364402af37f1d196bb69291bfa359f2743eba38bbac0f65c737a79df6c5fb72f", - "assets/app-icon/windowshade-app-icon.png": "5f6fb9a4471230c9982865685ffadfb49608c4e0f026ff767e3407122804f5a1", - "assets/app-icon/WindowShade.icns": "c391bb38afb6d34d6ab250e67fb879f42c4d56af5919ab6b2b021947a904af78" -} \ No newline at end of file diff --git a/tests/archive/part8/sources/code-map.json b/tests/archive/part8/sources/code-map.json deleted file mode 100644 index 5faac4ef..00000000 --- a/tests/archive/part8/sources/code-map.json +++ /dev/null @@ -1,3108 +0,0 @@ -[ - { - "path": "prototype/App/FocusTimerHost.swift", - "sha256": "7aa01c91cb3abf4503ff8eb92a8060efcdfca907b295caa3ab0fde88d264b666", - "symbols": [ - { - "line": 2, - "text": "@MainActor final class FocusTimerHost {" - }, - { - "line": 16, - "text": "func handle(_ event: FocusTimer.Event) {" - }, - { - "line": 21, - "text": "func configure(preset: FocusTimer.Preset, tuckChatEnabled: Bool) {" - }, - { - "line": 26, - "text": "func stop() { wake?.cancel(); wake = nil; if revision < .max { revision += 1 } }" - }, - { - "line": 27, - "text": "private func schedule() {" - } - ] - }, - { - "path": "prototype/App/FoldExit.swift", - "sha256": "e69cdab84f86400d15e9bbf85f3a1a2a5eb71c9586332576c13c301581d7af30", - "symbols": [ - { - "line": 7, - "text": "func unshadeReturningElement(_ id: CGWindowID, playSound: Bool = true," - }, - { - "line": 91, - "text": "func unshade(_ id: CGWindowID) -> Bool {" - }, - { - "line": 103, - "text": "func forceCleanup(_ id: CGWindowID, preserveFocusEntry: Bool = false, preserveRecovery: Bool = false) {" - }, - { - "line": 136, - "text": "func removeProxyForAction(_ id: CGWindowID, state: ShadeState," - }, - { - "line": 164, - "text": "func removeProxyForForwardedAction(_ id: CGWindowID, state: ShadeState) {" - }, - { - "line": 167, - "text": "func quickLookProcessHint(pid: pid_t) -> Bool {" - }, - { - "line": 179, - "text": "func windowLooksLikeQuickLookTarget(_ win: AXUIElement, pid: pid_t," - }, - { - "line": 199, - "text": "func quickLookWindowCandidates(preferredPID: pid_t, title: String) -> [(pid: pid_t, win: AXUIElement)] {" - }, - { - "line": 249, - "text": "func reopenQuickLookForProxyFullScreen(state: ShadeState, id: CGWindowID) -> Bool {" - }, - { - "line": 261, - "text": "func clickQuickLookVisualFullScreenButton(_ win: AXUIElement, pid: pid_t," - }, - { - "line": 283, - "text": "func triggerQuickLookFullScreen(_ win: AXUIElement, pid: pid_t," - }, - { - "line": 311, - "text": "func verifyQuickLookFullScreenOrSendShortcut(_ win: AXUIElement, pid: pid_t," - }, - { - "line": 343, - "text": "func openQuickLookFullScreenFromProxy(state: ShadeState, id: CGWindowID) {" - }, - { - "line": 346, - "text": "func attempt(_ index: Int) {" - }, - { - "line": 372, - "text": "func handleQuickLookTrafficLight(_ action: TrafficAction, id: CGWindowID, state: ShadeState) {" - }, - { - "line": 386, - "text": "func handleTrafficLight(_ action: TrafficAction, _ id: CGWindowID) {" - }, - { - "line": 413, - "text": "func handleClassicAction(_ action: ClassicAction, _ id: CGWindowID) {" - } - ] - }, - { - "path": "prototype/App/FoldTransaction.swift", - "sha256": "482e8b46ad1aec8d169653d75d0c3976379104191c2e53bbe3ecab05bb98e06c", - "symbols": [ - { - "line": 7, - "text": "func parkFocusForInactiveCapture() {" - }, - { - "line": 22, - "text": "func releaseFocusParking(reactivate pid: pid_t?) {" - }, - { - "line": 41, - "text": "func handOffFocusBeforeHiding(win: AXUIElement, pid: pid_t, id: CGWindowID) -> Bool {" - }, - { - "line": 104, - "text": "func hideTookEffect(_ hide: HideMethod, win: AXUIElement, pid: pid_t," - }, - { - "line": 125, - "text": "func scheduleFoldVerification(id: CGWindowID) {" - }, - { - "line": 174, - "text": "func revealOverlayAfterVerification(id: CGWindowID, state: ShadeState) {" - }, - { - "line": 190, - "text": "func rollbackFoldTransaction(id: CGWindowID, expectedTransaction: UUID? = nil) {" - }, - { - "line": 215, - "text": "func activateApp(pid: pid_t) {" - }, - { - "line": 221, - "text": "func bringRestoredWindowToFront(_ win: AXUIElement, pid: pid_t, reason: String) {" - }, - { - "line": 224, - "text": "func attempt(_ label: String) {" - }, - { - "line": 248, - "text": "func prepareForwardedTrafficAction(_ win: AXUIElement, pid: pid_t, reason: String) {" - }, - { - "line": 255, - "text": "func restoredWindowIsGeometryReady(_ win: AXUIElement) -> Bool {" - }, - { - "line": 260, - "text": "func buttonIsReady(_ win: AXUIElement, _ attr: String) -> Bool {" - }, - { - "line": 276, - "text": "func forwardedTrafficActionSucceeded(state: ShadeState, id: CGWindowID," - }, - { - "line": 299, - "text": "func performForwardedTrafficAction(state: ShadeState, pos: CGPoint," - }, - { - "line": 313, - "text": "func retryOrFallback(_ index: Int, note: String) {" - }, - { - "line": 337, - "text": "func verifyAfterAXPress(_ win: AXUIElement, index: Int, attr: String) {" - }, - { - "line": 349, - "text": "func verifyAfterPointerClick(_ win: AXUIElement, index: Int, attr: String) {" - }, - { - "line": 366, - "text": "func attempt(_ index: Int) {" - }, - { - "line": 397, - "text": "func schedule(_ index: Int, note: String) {" - }, - { - "line": 412, - "text": "func showRealWindowManagementPopover(_ id: CGWindowID) {" - }, - { - "line": 425, - "text": "func attempt(_ index: Int) {" - }, - { - "line": 455, - "text": "func windowIsParkedOffscreen(id: CGWindowID, win: AXUIElement, size: CGSize) -> Bool {" - }, - { - "line": 463, - "text": "func privateSLSOffscreenHide(_ win: AXUIElement, id: CGWindowID," - }, - { - "line": 499, - "text": "func privateSLSAlphaHide(id: CGWindowID, pid: pid_t, reason: String) -> HideMethod? {" - }, - { - "line": 531, - "text": "func axOffscreenHide(_ win: AXUIElement," - }, - { - "line": 555, - "text": "func ownWindow(id: CGWindowID?) -> NSWindow? {" - }, - { - "line": 562, - "text": "func orderOutOwnWindowIfNeeded(id: CGWindowID?, pid: pid_t, reason: String) -> HideMethod? {" - }, - { - "line": 573, - "text": "func hideWindow(_ win: AXUIElement, pid: pid_t, originalPosition pos: CGPoint," - }, - { - "line": 634, - "text": "func fallbackHide(_ win: AXUIElement, pid: pid_t, id: CGWindowID?," - }, - { - "line": 664, - "text": "func safeRestorePosition(for state: ShadeState, desired pos: CGPoint) -> CGPoint {" - }, - { - "line": 683, - "text": "func refreshedWindowElement(id: CGWindowID, fallback: AXUIElement," - }, - { - "line": 691, - "text": "func resolvedWindowElement(for state: ShadeState) -> AXUIElement {" - }, - { - "line": 719, - "text": "func applyRestoredGeometry(_ state: ShadeState, to pos: CGPoint," - }, - { - "line": 752, - "text": "func restoreWindow(_ state: ShadeState, to pos: CGPoint) -> AXUIElement {" - }, - { - "line": 792, - "text": "func cancelRestorePin(for id: CGWindowID) {" - }, - { - "line": 796, - "text": "func pinRestoredWindow(_ state: ShadeState, to pos: CGPoint, reason: String) {" - }, - { - "line": 804, - "text": "func attempt(_ label: String, focus: Bool, verify: Bool = true) {" - }, - { - "line": 847, - "text": "func resizeShadedWindowFromProxy(_ id: CGWindowID, proxyFrame: NSRect) {" - }, - { - "line": 886, - "text": "func makeRevealObserver(pid: pid_t, win: AXUIElement, id: CGWindowID) -> AXObserver? {" - }, - { - "line": 898, - "text": "func removeObserver(_ state: ShadeState) {" - }, - { - "line": 904, - "text": "func handleAXNotification(_ id: CGWindowID, _ notification: String) {" - }, - { - "line": 943, - "text": "@objc func appTerminated(_ note: Notification) {" - }, - { - "line": 953, - "text": "@objc func frontmostApplicationChanged(_ note: Notification) {" - }, - { - "line": 983, - "text": "@objc func screenParametersChanged(_ note: Notification) {" - }, - { - "line": 1028, - "text": "@objc func activeSpaceChanged(_ note: Notification) {" - } - ] - }, - { - "path": "prototype/App/InteractionCoordinator.swift", - "sha256": "5524bd61193c8e7ca5090b7c38c498f094bdc13a3e48971f3f084b2fb7a0c5b2", - "symbols": [ - { - "line": 5, - "text": "final class InteractionCoordinator {" - }, - { - "line": 6, - "text": "struct Environment { var unlocked: Bool; var displays: Set }" - }, - { - "line": 7, - "text": "private struct Active { let handle: WS2.LeaseHandle; let layer: WS2.Layer; let deadline: WS2.Instant }" - }, - { - "line": 8, - "text": "private struct Alert { let first: WS2.Instant; var last: WS2.Instant; let deadline: WS2.Instant }" - }, - { - "line": 27, - "text": "private func permits(_ r: WS2.LeaseRequest) -> Bool {" - }, - { - "line": 35, - "text": "private func withdraw(_ reason: WS2.LeaseRevocation) {" - }, - { - "line": 40, - "text": "private func expire(_ now: WS2.Instant) {" - }, - { - "line": 46, - "text": "func acquire(_ r: WS2.LeaseRequest, replacing expected: WS2.LeaseHandle? = nil) -> WS2.LeaseDecision {" - }, - { - "line": 75, - "text": "func isCurrent(_ lease: WS2.LeaseHandle) -> Bool {" - }, - { - "line": 81, - "text": "func release(_ lease: WS2.LeaseHandle, at now: WS2.Instant) {" - }, - { - "line": 86, - "text": "private func barrier(_ reason: WS2.LeaseRevocation) {" - }, - { - "line": 90, - "text": "func invalidate(_ reason: WS2.LeaseRevocation, at now: WS2.Instant) {" - }, - { - "line": 98, - "text": "func removeDisplay(_ id: WS2.DisplayID, at now: WS2.Instant) {" - }, - { - "line": 105, - "text": "func publishOngoing(_ ids: [String], on display: WS2.DisplayID) {" - }, - { - "line": 110, - "text": "func remind(on display: WS2.DisplayID, at now: WS2.Instant) {" - }, - { - "line": 119, - "text": "func snapshots(at now: WS2.Instant) -> [WS2.VisibilitySnapshot] {" - }, - { - "line": 137, - "text": "func confirmationIsFresh(lease: WS2.LeaseHandle, beganAt: WS2.Instant, sequence: UInt64," - } - ] - }, - { - "path": "prototype/App/Notch.swift", - "sha256": "f99ffc0698fa98d63b07a4d3c4ba196e6ddba38f1148df635295a47572c6a1c7", - "symbols": [ - { - "line": 29, - "text": "final class NotchController {" - }, - { - "line": 30, - "text": "private struct Tucked {" - }, - { - "line": 49, - "text": "func refreshAppearance() {" - }, - { - "line": 73, - "text": "func authenticationPanel() -> NotchPanel? {" - }, - { - "line": 128, - "text": "static func notchScreen() -> NSScreen? {" - }, - { - "line": 133, - "text": "static func notchRect(on screen: NSScreen) -> NSRect? {" - }, - { - "line": 141, - "text": "static func slotRect(on screen: NSScreen) -> (rect: NSRect, virtual: Bool) {" - }, - { - "line": 147, - "text": "private static func displayID(_ screen: NSScreen) -> CGDirectDisplayID? {" - }, - { - "line": 151, - "text": "private func panel(for screen: NSScreen) -> NotchPanel? {" - }, - { - "line": 155, - "text": "private func panel(containing point: CGPoint) -> NotchPanel? {" - }, - { - "line": 163, - "text": "func isTucked(_ id: CGWindowID) -> Bool { tucked.contains { $0.id == id } }" - }, - { - "line": 173, - "text": "func install() {" - }, - { - "line": 249, - "text": "private func applyShapes() {" - }, - { - "line": 257, - "text": "func prepareForLaunchpad() {" - }, - { - "line": 263, - "text": "func setEnabled(_ enabled: Bool) {" - }, - { - "line": 278, - "text": "func setAlertsEnabled(_ enabled: Bool) {" - }, - { - "line": 290, - "text": "func aims(from release: CGPoint, velocity: CGVector) -> Bool {" - }, - { - "line": 301, - "text": "func dragMoved(to point: CGPoint) {" - }, - { - "line": 316, - "text": "func cancelDrag() {" - }, - { - "line": 322, - "text": "func dragEnded(at point: CGPoint) -> NotchPanel.DropChoice? {" - }, - { - "line": 331, - "text": "func screen(containing point: CGPoint) -> NSScreen? {" - }, - { - "line": 339, - "text": "func tuck(_ win: AXUIElement, id: CGWindowID, pid: pid_t, landed: CGRect, home: CGRect, velocity: CGVector," - }, - { - "line": 375, - "text": "private func finishTuck(_ win: AXUIElement, id: CGWindowID, pid: pid_t, landed: CGRect, home: CGRect," - }, - { - "line": 432, - "text": "private func coverUntilHidden(_ plate: BackgroundPlate, id: CGWindowID, attempts: Int) {" - }, - { - "line": 444, - "text": "private func hideStripWhenReady(_ id: CGWindowID, attempts: Int, since: Int? = nil) {" - }, - { - "line": 472, - "text": "func releaseLatest(reason: String, from origin: NSRect? = nil) {" - }, - { - "line": 491, - "text": "func release(_ id: CGWindowID, reason: String, from origin: NSRect? = nil) {" - }, - { - "line": 515, - "text": "private func restore(_ item: Tucked, landing: CGRect) {" - }, - { - "line": 525, - "text": "private func slideHome(_ item: Tucked, attempts: Int) {" - }, - { - "line": 551, - "text": "private func hoverChanged(_ inside: Bool, panel: NotchPanel) {" - }, - { - "line": 578, - "text": "private func open(_ id: CGWindowID, from origin: NSRect? = nil) {" - }, - { - "line": 613, - "text": "private func saveCoach() {" - }, - { - "line": 619, - "text": "private func pointerPanel() -> NotchPanel? {" - }, - { - "line": 626, - "text": "func announce(_ text: String, detail: String = \"\", tone: NotchPanel.Tone = .info, symbol: String? = nil," - }, - { - "line": 653, - "text": "private struct PendingAnnouncement {" - }, - { - "line": 665, - "text": "func announceWhenFree(key: String, text: String, detail: String = \"\", tone: NotchPanel.Tone = .info," - }, - { - "line": 687, - "text": "private func isFreeToAnnounce() -> Bool {" - }, - { - "line": 692, - "text": "private func drainPendingAnnouncements() {" - }, - { - "line": 711, - "text": "func teach(_ tip: CoachTip, on target: NotchPanel? = nil) -> Bool {" - }, - { - "line": 733, - "text": "func coachUsed(_ tip: CoachTip) {" - }, - { - "line": 740, - "text": "func resetCoachForProbe() { coach = GestureCoach() }" - }, - { - "line": 741, - "text": "func tapAnnouncementForProbe() { panels.values.first { $0.isAlerting }?.tapForProbe() }" - }, - { - "line": 752, - "text": "func tuckFocused() -> Bool {" - }, - { - "line": 772, - "text": "func tuckAll(on screen: NSScreen? = nil) -> Int {" - }, - { - "line": 800, - "text": "func switchApp(back: Bool, panel: NotchPanel? = nil) {" - }, - { - "line": 824, - "text": "static func recentWindows() -> [(id: CGWindowID, pid: pid_t)] {" - }, - { - "line": 840, - "text": "private func homeKey(_ clicks: Int, from rect: NSRect) {" - }, - { - "line": 867, - "text": "func activeSpaceChanged() {" - }, - { - "line": 883, - "text": "func pressForProbe(_ clicks: Int) {" - }, - { - "line": 889, - "text": "func refreshShelfForProbe() { shelf.invalidate(); refreshShelf() }" - }, - { - "line": 890, - "text": "func openTileForProbe(_ id: CGWindowID) { open(id) }" - }, - { - "line": 893, - "text": "private func refreshShelf() {" - }, - { - "line": 898, - "text": "private func requestThumbnails() {" - }, - { - "line": 906, - "text": "private func rowExclude() -> Set {" - }, - { - "line": 926, - "text": "private func showPeek(_ id: CGWindowID, tile: NSRect? = nil) {" - }, - { - "line": 987, - "text": "private func showStoredPeek(_ id: CGWindowID) {" - }, - { - "line": 997, - "text": "enum TileGlance {" - }, - { - "line": 1003, - "text": "private func startTileGlance(_ id: CGWindowID, tile: NSRect, glance: TileGlance, pid: pid_t, title: String) {" - }, - { - "line": 1010, - "text": "private func showStill(_ item: NotchShelfItem, tile: NSRect) {" - }, - { - "line": 1048, - "text": "private func endPeek() {" - }, - { - "line": 1065, - "text": "private func hideStripAfterGlance(_ id: CGWindowID, attempts: Int) {" - }, - { - "line": 1082, - "text": "func peekForProbe(_ id: CGWindowID, tile: NSRect) { showPeek(id, tile: tile) }" - }, - { - "line": 1083, - "text": "func peekForProbe(_ id: CGWindowID) { showPeek(id) }" - }, - { - "line": 1085, - "text": "func thumbnailForProbe(_ id: CGWindowID) -> CGImage? { thumbnails.image(id) }" - }, - { - "line": 1087, - "text": "func requestThumbnailsForProbe() { requestThumbnails() }" - }, - { - "line": 1088, - "text": "func endPeekForProbe() { endPeek() }" - }, - { - "line": 1090, - "text": "private func refresh() {" - }, - { - "line": 1099, - "text": "private func room(for panel: NotchPanel, display: CGDirectDisplayID) -> MenuBarRoom.Sides? {" - }, - { - "line": 1108, - "text": "private func compactInfo() -> NotchPanel.Compact? {" - }, - { - "line": 1117, - "text": "private func forgetGone() {" - }, - { - "line": 1126, - "text": "private func tiles() -> [NotchTile] {" - }, - { - "line": 1131, - "text": "func icon(_ pid: pid_t) -> NSImage? { NSRunningApplication(processIdentifier: pid)?.icon }" - }, - { - "line": 1164, - "text": "private func syncWatchers() {" - }, - { - "line": 1178, - "text": "private func titleSettled(_ id: CGWindowID, title: String) {" - }, - { - "line": 1218, - "text": "func clearChange(_ id: CGWindowID) {" - }, - { - "line": 1227, - "text": "func simulateTitleChange(_ id: CGWindowID, title: String) {" - }, - { - "line": 1232, - "text": "func syncWatchersForProbe() { syncWatchers() }" - }, - { - "line": 1233, - "text": "func isWatchingTitle(_ id: CGWindowID) -> Bool { watcher.isWatching(id) }" - }, - { - "line": 1239, - "text": "private enum FlightStyle { case intoNotch, intoVirtualNotch, out }" - }, - { - "line": 1241, - "text": "private func fly(_ image: CGImage, from: NSRect, to: NSRect, velocity: CGVector, style: FlightStyle," - }, - { - "line": 1260, - "text": "func elsewhereAnchorFrame(_ id: CGWindowID) -> NSRect? {" - }, - { - "line": 1268, - "text": "func glanceTarget(forElsewhere id: CGWindowID) -> GlanceTarget? {" - }, - { - "line": 1314, - "text": "func openElsewhereWindow(_ id: CGWindowID) { open(id) }" - }, - { - "line": 1317, - "text": "struct NotchTile {" - }, - { - "line": 1318, - "text": "enum Kind { case tucked, strip, slideOver, carried, minimized, hiddenApp, elsewhere }" - }, - { - "line": 1337, - "text": "final class NotchPanel: NSPanel {" - }, - { - "line": 1338, - "text": "enum DropState { case none, offered, armed, confirmed }" - }, - { - "line": 1347, - "text": "func refreshAppearance() { apply(animated: false) }" - }, - { - "line": 1351, - "text": "enum DropChoice: Int, CaseIterable {" - }, - { - "line": 1373, - "text": "struct IslandStyle {" - }, - { - "line": 1383, - "text": "struct Compact {" - }, - { - "line": 1388, - "text": "func same(as other: Compact?) -> Bool {" - }, - { - "line": 1395, - "text": "struct Alert {" - }, - { - "line": 1408, - "text": "enum Tone { case info, done, problem, tip }" - }, - { - "line": 1450, - "text": "func isShowingInteraction(_ view: NSView) -> Bool { authenticationView === view }" - }, - { - "line": 1455, - "text": "func setAuthentication(_ view: NotchAuthenticationView?, animated: Bool = true) {" - }, - { - "line": 1458, - "text": "func setInteraction(_ view: (NSView & NotchInteractiveContent)?, animated: Bool = true) {" - }, - { - "line": 1467, - "text": "func setActivities(_ items: [NotchActivity], selected: String?) {" - }, - { - "line": 1494, - "text": "func tapForProbe() { pressed(1) }" - }, - { - "line": 1512, - "text": "func choice(at point: CGPoint) -> DropChoice {" - }, - { - "line": 1563, - "text": "private func showActivityMenu(_ event: NSEvent) {" - }, - { - "line": 1572, - "text": "@objc private func activityMenuAction(_ item: NSMenuItem) {" - }, - { - "line": 1580, - "text": "override func orderOut(_ sender: Any?) {" - }, - { - "line": 1589, - "text": "private func refitShoulders() {" - }, - { - "line": 1606, - "text": "private func pressed(_ clicks: Int) {" - }, - { - "line": 1651, - "text": "private func updateVisibility() {" - }, - { - "line": 1660, - "text": "func setCompact(_ value: Compact?, room newRoom: MenuBarRoom.Sides?) {" - }, - { - "line": 1703, - "text": "static func alertWidth(notch: NSRect, teaching: Bool) -> CGFloat {" - }, - { - "line": 1708, - "text": "static func alertCoverSpans(notch: NSRect, virtual: Bool, screen: NSRect) -> MenuBarRoom.Spans {" - }, - { - "line": 1715, - "text": "private enum CompactShape { case sides, pill, chin, pending }" - }, - { - "line": 1723, - "text": "func alert(_ info: Alert, duration: TimeInterval = 2.6) {" - }, - { - "line": 1739, - "text": "func expand(with tiles: [NotchTile]) {" - }, - { - "line": 1753, - "text": "func updateTileSnapshot(id: CGWindowID, image: CGImage?) {" - }, - { - "line": 1759, - "text": "func collapse() {" - }, - { - "line": 1768, - "text": "func confirmDrop() {" - }, - { - "line": 1783, - "text": "func setDropState(_ state: DropState, choice: DropChoice? = nil) {" - }, - { - "line": 1796, - "text": "private func hover(_ inside: Bool) {" - }, - { - "line": 1826, - "text": "private func pull(_ distance: CGFloat, touching: Bool, velocity: CGFloat) {" - }, - { - "line": 1850, - "text": "static func rubberBand(_ x: CGFloat, limit d: CGFloat) -> CGFloat {" - }, - { - "line": 1854, - "text": "static func rubberBandSlope(_ x: CGFloat, limit d: CGFloat) -> CGFloat {" - }, - { - "line": 1859, - "text": "private struct Target {" - }, - { - "line": 1873, - "text": "private func target() -> Target {" - }, - { - "line": 1910, - "text": "private func baseTarget() -> (rect: NSRect, style: IslandStyle) {" - }, - { - "line": 1988, - "text": "private func spring() -> NotchCanvasView.Spring {" - }, - { - "line": 1998, - "text": "private func apply(animated: Bool, spring custom: NotchCanvasView.Spring? = nil, roomOnly: Bool = false) {" - }, - { - "line": 2066, - "text": "private func shoulderMotion(to target: Target, from now: NSRect) -> (scale: (leading: CGFloat, trailing: CGFloat)," - }, - { - "line": 2070, - "text": "func side(from edge: CGFloat, to goal: CGFloat, hardware: CGFloat, scale: CGFloat, was: CGFloat) -> (CGFloat, Bool) {" - }, - { - "line": 2082, - "text": "func swallow() {" - }, - { - "line": 2107, - "text": "private func compactSlots(in size: NSSize, shape: CompactShape, side: CGFloat) -> (leading: NSRect, trailing: NSRect) {" - }, - { - "line": 2116, - "text": "private func hintText() -> String? {" - }, - { - "line": 2136, - "text": "final class NotchCanvasView: NSView {" - }, - { - "line": 2137, - "text": "struct Content {" - }, - { - "line": 2161, - "text": "func same(as other: Content) -> Bool {" - }, - { - "line": 2175, - "text": "struct Spring {" - }, - { - "line": 2208, - "text": "func setAuthentication(_ view: (NSView & NotchInteractiveContent)?) {" - }, - { - "line": 2214, - "text": "func placeAuthentication(in rect: NSRect) {" - }, - { - "line": 2224, - "text": "func updateTileSnapshot(id: CGWindowID, image: CGImage?) {" - }, - { - "line": 2261, - "text": "func setBare(_ bare: Bool) {" - }, - { - "line": 2270, - "text": "func islandOnScreen(panelOrigin: NSPoint) -> NSRect? {" - }, - { - "line": 2277, - "text": "func shift(by delta: CGVector) {" - }, - { - "line": 2290, - "text": "func morph(to rect: NSRect, style: NotchPanel.IslandStyle, content: Content, spring: Spring?," - }, - { - "line": 2340, - "text": "private func add(_ spring: Spring, key: String, to layer: CALayer, position: CGVector, size: CGSize, radius: CGFloat) {" - }, - { - "line": 2341, - "text": "func animate(_ keyPath: String, from: Any, zero: Any) {" - }, - { - "line": 2361, - "text": "private func present(_ content: Content, in rect: NSRect, animated: Bool) {" - }, - { - "line": 2399, - "text": "func settle() {" - }, - { - "line": 2405, - "text": "func pullIconOnScreen() -> NSRect? {" - }, - { - "line": 2411, - "text": "func pulse(width: CGFloat, height: CGFloat) {" - }, - { - "line": 2413, - "text": "func bump(_ layer: CALayer) {" - }, - { - "line": 2438, - "text": "override func updateTrackingAreas() {" - }, - { - "line": 2445, - "text": "override func mouseEntered(with event: NSEvent) { onHover?(true) }" - }, - { - "line": 2446, - "text": "override func mouseExited(with event: NSEvent) { holdTimer?.invalidate(); holdTimer = nil; if mouseDragAxis == nil { pressedAt = nil }; onHover?(false) }" - }, - { - "line": 2447, - "text": "override func mouseMoved(with event: NSEvent) { onPointerMoved?() }" - }, - { - "line": 2448, - "text": "override func acceptsFirstMouse(for event: NSEvent?) -> Bool { true }" - }, - { - "line": 2455, - "text": "private func mouseScreenPoint(_ event: NSEvent) -> NSPoint { window?.convertPoint(toScreen: event.locationInWindow) ?? event.locationInWindow }" - }, - { - "line": 2456, - "text": "override func mouseDown(with event: NSEvent) {" - }, - { - "line": 2472, - "text": "override func mouseUp(with event: NSEvent) {" - }, - { - "line": 2502, - "text": "override func mouseDragged(with event: NSEvent) {" - }, - { - "line": 2513, - "text": "func cancelHold() { holdTimer?.invalidate(); holdTimer = nil; pressedAt = nil; mouseDragAxis = nil }" - }, - { - "line": 2514, - "text": "func resetInteractions() {" - }, - { - "line": 2519, - "text": "override func cancelOperation(_ sender: Any?) {" - }, - { - "line": 2525, - "text": "override func rightMouseDown(with event: NSEvent) { if authenticationView == nil { onAuxiliaryClick?(event) } }" - }, - { - "line": 2526, - "text": "override func smartMagnify(with event: NSEvent) { if authenticationView == nil { onSmartExpand?() } }" - }, - { - "line": 2527, - "text": "override func swipe(with event: NSEvent) {" - }, - { - "line": 2541, - "text": "override func draggingEntered(_ sender: NSDraggingInfo) -> NSDragOperation {" - }, - { - "line": 2555, - "text": "override func draggingExited(_ sender: NSDraggingInfo?) {" - }, - { - "line": 2559, - "text": "override func performDragOperation(_ sender: NSDraggingInfo) -> Bool {" - }, - { - "line": 2574, - "text": "override func scrollWheel(with event: NSEvent) {" - }, - { - "line": 2627, - "text": "private func currentActivitySwipe(_ distance: CGFloat, touching: Bool, velocity: CGFloat, cancelled: Bool = false) -> Bool {" - }, - { - "line": 2631, - "text": "override func magnify(with event: NSEvent) {" - }, - { - "line": 2656, - "text": "final class NotchShoulders: NSPanel {" - }, - { - "line": 2658, - "text": "struct Probe {" - }, - { - "line": 2704, - "text": "func fit(screen: NSRect, top: CGFloat, radius: CGFloat) {" - }, - { - "line": 2720, - "text": "func m(_ p: CGPoint) -> CGPoint { CGPoint(x: p.x * sign, y: p.y) }" - }, - { - "line": 2741, - "text": "func place(leading a: NSPoint, trailing b: NSPoint, scale: (leading: CGFloat, trailing: CGFloat)," - }, - { - "line": 2755, - "text": "func settle(_ scale: (leading: CGFloat, trailing: CGFloat)) {" - }, - { - "line": 2765, - "text": "private func move(_ layer: CAShapeLayer, to point: NSPoint, from old: CGFloat, to new: CGFloat, snap: Bool," - }, - { - "line": 2813, - "text": "private func animate(_ layer: CALayer, _ keyPath: String, from: Any, zero: Any, spring: NotchCanvasView.Spring, key: String) {" - }, - { - "line": 2825, - "text": "func setBare(_ bare: Bool) {" - }, - { - "line": 2834, - "text": "func pulse(width: CGFloat, keyTimes: [NSNumber], duration: CFTimeInterval, timing: [CAMediaTimingFunction]) {" - }, - { - "line": 2847, - "text": "func attached(leading a: NSPoint, trailing b: NSPoint) -> Bool {" - }, - { - "line": 2849, - "text": "func at(_ layer: CALayer, _ p: NSPoint) -> Bool {" - }, - { - "line": 2867, - "text": "final class NotchContentView: NSView {" - }, - { - "line": 2932, - "text": "func updateSnapshot(id: CGWindowID, image: CGImage?) {" - }, - { - "line": 2936, - "text": "override func hitTest(_ point: NSPoint) -> NSView? { inert ? nil : super.hitTest(point) }" - }, - { - "line": 2939, - "text": "func place(in rect: NSRect, content: NotchCanvasView.Content) {" - }, - { - "line": 3016, - "text": "final class NotchDotsView: NSView {" - }, - { - "line": 3021, - "text": "func update(count: Int, changed: Bool, y: CGFloat) {" - }, - { - "line": 3029, - "text": "override func hitTest(_ point: NSPoint) -> NSView? { nil }" - }, - { - "line": 3031, - "text": "override func draw(_ dirtyRect: NSRect) {" - }, - { - "line": 3045, - "text": "final class NotchCompactView: NSView {" - }, - { - "line": 3049, - "text": "func update(_ compact: NotchPanel.Compact?, slots: (leading: NSRect, trailing: NSRect)?) {" - }, - { - "line": 3060, - "text": "override func hitTest(_ point: NSPoint) -> NSView? { nil }" - }, - { - "line": 3062, - "text": "override func draw(_ dirtyRect: NSRect) {" - }, - { - "line": 3091, - "text": "final class NotchAlertView: NSView {" - }, - { - "line": 3096, - "text": "func update(_ alert: NotchPanel.Alert?) {" - }, - { - "line": 3111, - "text": "override func hitTest(_ point: NSPoint) -> NSView? { nil }" - }, - { - "line": 3113, - "text": "override func layout() {" - }, - { - "line": 3119, - "text": "override func draw(_ dirtyRect: NSRect) {" - }, - { - "line": 3165, - "text": "final class NotchTileView: NSView {" - }, - { - "line": 3175, - "text": "func setSnapshot(_ image: CGImage?) {" - }, - { - "line": 3202, - "text": "static func verb(_ kind: NotchTile.Kind) -> String {" - }, - { - "line": 3213, - "text": "static func kindName(_ kind: NotchTile.Kind) -> String {" - }, - { - "line": 3225, - "text": "private static func badge(_ kind: NotchTile.Kind) -> NSImage? {" - }, - { - "line": 3240, - "text": "override func updateTrackingAreas() {" - }, - { - "line": 3248, - "text": "override func mouseEntered(with event: NSEvent) {" - }, - { - "line": 3255, - "text": "override func mouseExited(with event: NSEvent) {" - }, - { - "line": 3260, - "text": "override func mouseDown(with event: NSEvent) {" - }, - { - "line": 3264, - "text": "override func acceptsFirstMouse(for event: NSEvent?) -> Bool { true }" - }, - { - "line": 3277, - "text": "override func draw(_ dirtyRect: NSRect) {" - }, - { - "line": 3331, - "text": "final class NotchPeek {" - }, - { - "line": 3367, - "text": "func close() {" - } - ] - }, - { - "path": "prototype/App/ShadeController.swift", - "sha256": "f22cc7af4a270af54422820beea2807235198ba823b8bb42adf098b52f85a198", - "symbols": [ - { - "line": 8, - "text": "func retargetToActiveSpaceWindow(pid: pid_t) -> (AXUIElement, CGWindowID)? {" - }, - { - "line": 35, - "text": "func toggle() {" - }, - { - "line": 87, - "text": "func performNativeStickiesShade(_ win: AXUIElement) {" - }, - { - "line": 104, - "text": "func makeShadePlan(win: AXUIElement, pos: CGPoint, size: CGSize," - }, - { - "line": 157, - "text": "func resolvedSourceSpaceID(windowID id: CGWindowID," - }, - { - "line": 169, - "text": "func shade(_ win: AXUIElement, _ id: CGWindowID," - }, - { - "line": 175, - "text": "func completeFold(success: Bool) {" - }, - { - "line": 286, - "text": "func installOverlay(_ overlay: NSWindow, mode: ShadeAppearanceMode, previewImage: NSImage?) {" - }, - { - "line": 463, - "text": "func installInteractiveNativeCollapse(barH: CGFloat) -> Bool {" - }, - { - "line": 737, - "text": "func captureWindow(id: CGWindowID, axPos: CGPoint, size: CGSize," - }, - { - "line": 776, - "text": "func fastWindowCapture(_ id: CGWindowID) async -> CGImage? {" - }, - { - "line": 783, - "text": "func captureWindowWithTimeout(id: CGWindowID, axPos: CGPoint, size: CGSize," - }, - { - "line": 834, - "text": "private func raceCaptureWithTimeout(id: CGWindowID, axPos: CGPoint, size: CGSize," - } - ] - }, - { - "path": "prototype/App/WS2AppRuntime.swift", - "sha256": "99205e90fd9d99278da55fbfe88924e2100c4ada4223c6d35136da67cf5b6db2", - "symbols": [ - { - "line": 3, - "text": "@MainActor final class WS2AppRuntime {" - }, - { - "line": 31, - "text": "func day(_ date: Date) -> String {" - }, - { - "line": 108, - "text": "private func setLockReason(_ reason: String, locked: Bool) {" - }, - { - "line": 119, - "text": "func applicationShouldTerminate() -> NSApplication.TerminateReply {" - }, - { - "line": 138, - "text": "private func finishQuit(updaterReply:Bool?=nil,childrenReady:Bool=false,failed:Bool=false) {" - }, - { - "line": 144, - "text": "func openOwned() {" - }, - { - "line": 153, - "text": "private func openModelPicker() {" - }, - { - "line": 192, - "text": "func open() {" - }, - { - "line": 205, - "text": "func refreshFocusSettings() {" - }, - { - "line": 210, - "text": "func toggleFocus() {" - }, - { - "line": 217, - "text": "@discardableResult func showSessions(_ sessions:[AgentSessions.Session], open:@escaping(WS2.Context)->Void," - }, - { - "line": 222, - "text": "@discardableResult func showConductor(_ state:ConductorNotch, action:@escaping(WS2ConductorView.Action)->Void) -> Bool {" - }, - { - "line": 228, - "text": "private func publish() {" - }, - { - "line": 236, - "text": "func stop() {" - }, - { - "line": 249, - "text": "@objc func ws2OpenOwned() { MainActor.assumeIsolated { ws2Runtime.openOwned() } }" - }, - { - "line": 250, - "text": "@objc func ws2OpenFocus() { MainActor.assumeIsolated { ws2Runtime.open() } }" - } - ] - }, - { - "path": "prototype/App/WS2DeviceActionHost.swift", - "sha256": "e969db6f1d29d4dc2af25afb99a58e90281b395480a704193de53e3b5cf2e5a7", - "symbols": [ - { - "line": 4, - "text": "@MainActor final class WS2DeviceActionHost {" - }, - { - "line": 35, - "text": "func start() { bridge.start() }" - }, - { - "line": 37, - "text": "private func clear(_ id: UUID) {" - }, - { - "line": 41, - "text": "@discardableResult func enable(_ id: UUID) -> Bool {" - }, - { - "line": 51, - "text": "func disable(_ id: UUID) { clear(id); _ = bridge.setEnabled(false, attachment: id) }" - }, - { - "line": 52, - "text": "func environmentChanged() {" - }, - { - "line": 56, - "text": "private func receive(_ input: WS2ControllerInput) {" - }, - { - "line": 96, - "text": "private static func intent(_ name: String) -> WS2SemanticInputRouter.Intent? {" - }, - { - "line": 105, - "text": "func stop() { for id in Array(contexts.keys) { clear(id) }; bridge.stop() }" - } - ] - }, - { - "path": "prototype/App/WS2FoldEvidenceAdapter.swift", - "sha256": "cb7f57c8020aeda4aca842a4a48a58b5e4a70acacc02cff63a2682d426a0c264", - "symbols": [ - { - "line": 7, - "text": "func shadeWithEvidence(_ win:AXUIElement,id:CGWindowID,pid:pid_t,recordedPosition:CGPoint?," - }, - { - "line": 27, - "text": "func deliverFoldEvidence(_ event:WS2FoldEvidence.Event?){" - }, - { - "line": 33, - "text": "func mayCommitObservedFold(_ ticket:WS2FoldEvidence.Ticket)->Bool {" - }, - { - "line": 37, - "text": "func finishFoldEvidence(_ ticket:WS2FoldEvidence.Ticket?,success:Bool){" - }, - { - "line": 44, - "text": "func publishFoldObservation(id:CGWindowID,state:ShadeState){" - }, - { - "line": 61, - "text": "func strictFoldObservation(id:CGWindowID,state:ShadeState)->WS2FoldEvidence.Observation{" - }, - { - "line": 84, - "text": "func cancelFoldEvidence(id:CGWindowID,transaction:UUID){" - } - ] - }, - { - "path": "prototype/App/WS2GameControllerBridge.swift", - "sha256": "cf257e4e8233d7030b96e5b317d02043024d25f2d03dc27824dd9976394881ee", - "symbols": [ - { - "line": 5, - "text": "@MainActor final class WS2GameControllerBridge: WS2ControllerBridge {" - }, - { - "line": 9, - "text": "@MainActor private final class Entry {" - }, - { - "line": 32, - "text": "func start() {" - }, - { - "line": 52, - "text": "@discardableResult func setEnabled(_ enabled: Bool, attachment: UUID) -> Bool {" - }, - { - "line": 67, - "text": "func environmentChanged() {" - }, - { - "line": 80, - "text": "func suspendAll() { for e in entries.values { suspend(e) }; publish() }" - }, - { - "line": 81, - "text": "private func reconcile() {" - }, - { - "line": 97, - "text": "private func installHandler(_ e: Entry) -> Bool {" - }, - { - "line": 108, - "text": "private func releaseHandler(_ e: Entry) {" - }, - { - "line": 117, - "text": "private func sample(_ e: Entry) {" - }, - { - "line": 157, - "text": "@discardableResult func feedback(attachment:UUID,start:Float,strength:Float) -> Bool {" - }, - { - "line": 167, - "text": "private func clearFeedback(_ e:Entry) {" - }, - { - "line": 171, - "text": "private func suspend(_ e:Entry) {" - }, - { - "line": 177, - "text": "private func publish() {" - }, - { - "line": 180, - "text": "func stop() {" - } - ] - }, - { - "path": "prototype/App/WS2IslandCoordinator.swift", - "sha256": "315bf8f9b76ead7600c8829b69c4609bf89d919f3421631b3154aedd13acd91f", - "symbols": [ - { - "line": 3, - "text": "@MainActor protocol WS2LeaseContent: NotchInteractiveContent {" - }, - { - "line": 6, - "text": "func revoke()" - }, - { - "line": 8, - "text": "@MainActor final class WS2IslandCoordinator {" - }, - { - "line": 32, - "text": "private static func displayID(_ screen: NSScreen) -> WS2.DisplayID? {" - }, - { - "line": 35, - "text": "@discardableResult func show(_ content: NSView & WS2LeaseContent, ownerID: String, layer: WS2.Layer = .opened," - }, - { - "line": 60, - "text": "func inputHandle(for content: NSView) -> WS2.LeaseHandle? {" - }, - { - "line": 65, - "text": "func handOffToAuthorization() { dismissed = nil; dismiss() }" - }, - { - "line": 66, - "text": "func dismiss() { if let handle { leases.release(handle, at: clock.now()) } }" - }, - { - "line": 67, - "text": "func dismiss(ifShowing content: NSView) { if view === content { dismiss() } }" - }, - { - "line": 68, - "text": "func handOffToAuthorization(ifShowing content: NSView) -> Bool {" - }, - { - "line": 71, - "text": "private func revoked(_ lease: WS2.LeaseHandle, reason: WS2.LeaseRevocation) {" - }, - { - "line": 84, - "text": "private func beginAuthorization(on panel: NotchPanel) -> Bool {" - }, - { - "line": 92, - "text": "private func endAuthorization() { if let authHandle { leases.release(authHandle,at:clock.now()) }; authHandle = nil }" - }, - { - "line": 93, - "text": "func invalidate(_ reason: WS2.LeaseRevocation) { leases.invalidate(reason,at:clock.now()) }" - }, - { - "line": 94, - "text": "private func reconcileDisplays() { _ = leases.snapshots(at:clock.now()) }" - }, - { - "line": 95, - "text": "func stop() {" - } - ] - }, - { - "path": "prototype/App/WS2ModelPickerView.swift", - "sha256": "1da4c59ec557195a5b03760eb038b2d8fe1ecabb2f733f2c29ab554d8790f73c", - "symbols": [ - { - "line": 4, - "text": "@MainActor final class WS2ModelPickerView: NSView, WS2LeaseContent, NSTableViewDataSource, NSTableViewDelegate {" - }, - { - "line": 79, - "text": "override func viewDidMoveToWindow() {" - }, - { - "line": 96, - "text": "func sync() {" - }, - { - "line": 112, - "text": "func renderDevices(_ devices: [WS2ControllerDevice]) {" - }, - { - "line": 128, - "text": "private func renderHint() {" - }, - { - "line": 132, - "text": "private func showSelection() {" - }, - { - "line": 137, - "text": "func numberOfRows(in tableView: NSTableView) -> Int { rows.count }" - }, - { - "line": 138, - "text": "func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView? {" - }, - { - "line": 145, - "text": "func tableViewSelectionDidChange(_ notification: Notification) {" - }, - { - "line": 149, - "text": "@objc private func toggleDevice() {" - }, - { - "line": 159, - "text": "@objc private func useSelection() {" - }, - { - "line": 164, - "text": "@objc private func goBack() { if inputIsCurrent() { navigateBack?() } }" - }, - { - "line": 165, - "text": "func revoke() {" - }, - { - "line": 175, - "text": "func prepare(_ ticket: WS2SemanticInputRouter.Ticket) -> Bool { input.ready = isInputReady; return input.prepare(ticket) }" - }, - { - "line": 176, - "text": "func cancelPrepared(context: WS2SemanticInputRouter.Context, presses: [UInt64]) { input.cancel(context: context, presses: presses) }" - }, - { - "line": 177, - "text": "func execute(_ ticket: WS2SemanticInputRouter.Ticket) -> Bool { input.ready = isInputReady; return input.execute(ticket) }" - }, - { - "line": 178, - "text": "func move(_ effect: GamepadMapping.Effect, context: WS2SemanticInputRouter.Context) -> Bool { false }" - } - ] - }, - { - "path": "prototype/App/WS2OwnedCodexSession.swift", - "sha256": "b05f1a6d7aeafd72f5e8d5dea6cd8a460737d57cbf319b1c242b01a5f09d2ef8", - "symbols": [ - { - "line": 3, - "text": "/// One engine for the real App and the process-backed protocol tests. It owns exactly one" - }, - { - "line": 4, - "text": "/// child channel and one protocol host. The host factory cannot create a second transport." - }, - { - "line": 5, - "text": "@MainActor final class WS2OwnedCodexSession {" - }, - { - "line": 57, - "text": "func start() throws {" - }, - { - "line": 62, - "text": "func startThread(cwd:String,model:String) throws { try approval.startThread(cwd:cwd,model:model);scheduleExpiry() }" - }, - { - "line": 63, - "text": "func resumeThread(_ id:String) throws { try approval.resumeThread(id);scheduleExpiry() }" - }, - { - "line": 64, - "text": "func startTurn(text:String,model:String,effort:String) throws { try approval.startTurn(text:text,model:model,effort:effort);scheduleExpiry() }" - }, - { - "line": 65, - "text": "func steer(text:String,expectedTurn:String) throws { try approval.steer(text:text,expectedTurn:expectedTurn);scheduleExpiry() }" - }, - { - "line": 66, - "text": "func interrupt() throws { try approval.interruptTurn();scheduleExpiry() }" - }, - { - "line": 67, - "text": "func account(_ action:WS2AccountAction) throws -> WS2.RequestID {" - }, - { - "line": 70, - "text": "func clearDiagnostics() { channel.clearDiagnostics() }" - }, - { - "line": 71, - "text": "private func scheduleExpiry() {" - }, - { - "line": 80, - "text": "func stop() {" - } - ] - }, - { - "path": "prototype/App/WS2OwnedLaunchController.swift", - "sha256": "302f4b8ad841610a8a471caf79af657a5c8bc5d10e9c0e0a8d954363160a4ed2", - "symbols": [ - { - "line": 4, - "text": "/// AgentSessions remain the authorities for protocol state and backend sessions respectively." - }, - { - "line": 5, - "text": "@MainActor final class WS2OwnedLaunchController {" - }, - { - "line": 6, - "text": "enum Phase: Equatable { case idle, checkingVersion, connecting, checkingConfig, signedOut, ready, creatingThread, sending, running, interrupting, completed, failed, stopping, stopped }" - }, - { - "line": 7, - "text": "private enum Query { case config, account, login, cancelLogin, logout }" - }, - { - "line": 8, - "text": "private struct Submission { let text:String;let model:String;let effort:String }" - }, - { - "line": 9, - "text": "private struct Association { let project:WS2OwnedScope.Project;let thread:String }" - }, - { - "line": 60, - "text": "@discardableResult func editDraft(_ value:String) -> Bool {" - }, - { - "line": 63, - "text": "@discardableResult func selectProject(_ url:URL) -> Bool {" - }, - { - "line": 74, - "text": "@discardableResult func selectExecutable(_ url:URL) -> Bool {" - }, - { - "line": 78, - "text": "@discardableResult func launch(consent:Bool,diagnostics:Bool=false) -> Bool {" - }, - { - "line": 94, - "text": "private func begin(_ prepared:WS2LocalLaunchProfile,diagnostics:Bool) {" - }, - { - "line": 120, - "text": "private func currentIsValid() -> Bool {" - }, - { - "line": 125, - "text": "private func revalidate() -> Bool {" - }, - { - "line": 129, - "text": "@discardableResult func chooseModel(_ value:String) -> Bool {" - }, - { - "line": 133, - "text": "@discardableResult func chooseEffort(_ value:String) -> Bool {" - }, - { - "line": 137, - "text": "@discardableResult func send(_ draft:String,hasMarkedText:Bool) -> Bool {" - }, - { - "line": 149, - "text": "private func deliverSubmission() throws {" - }, - { - "line": 155, - "text": "@discardableResult func resumeLast() -> Bool {" - }, - { - "line": 161, - "text": "@discardableResult func interrupt() -> Bool {" - }, - { - "line": 166, - "text": "@discardableResult func login() -> Bool {" - }, - { - "line": 171, - "text": "@discardableResult func logout() -> Bool {" - }, - { - "line": 176, - "text": "func cancelLogin() {" - }, - { - "line": 183, - "text": "static func browserLoginURL(_ text:String) -> URL? {" - }, - { - "line": 189, - "text": "private func receive(_ event:CodexWire.Event,connection:UUID) {" - }, - { - "line": 256, - "text": "private func readAccount() throws {" - }, - { - "line": 260, - "text": "private func synchronizeThreadAndTurn() throws {" - }, - { - "line": 275, - "text": "private func emit(_ event:AgentSessions.Event,turn:String?=nil) {" - }, - { - "line": 279, - "text": "private func ended(connection:UUID) {" - }, - { - "line": 285, - "text": "func stop(reason:String=\"已断开连接\",clearPrivate:Bool=false) {" - }, - { - "line": 303, - "text": "func environmentChanged() {" - }, - { - "line": 307, - "text": "private func fail(_ message:String) {" - }, - { - "line": 310, - "text": "private func changed() { onChange?();if !isBusy { onQuiescent?() } }" - } - ] - }, - { - "path": "prototype/App/WS2OwnedSessionView.swift", - "sha256": "d3360e975925f28b112b32d4c51b9a75d195a507629793e5e5b3d3eed006434f", - "symbols": [ - { - "line": 4, - "text": "@MainActor final class WS2OwnedSessionView: NSView, WS2LeaseContent, NSTextViewDelegate {" - }, - { - "line": 45, - "text": "func row(_ views:[NSView]) -> NSStackView { let r=NSStackView(views:views);r.orientation = .horizontal;r.spacing=8;return r }" - }, - { - "line": 75, - "text": "private func configure(_ text:NSTextView,editable:Bool) {" - }, - { - "line": 82, - "text": "func scheduleRender() {" - }, - { - "line": 89, - "text": "func render() {" - }, - { - "line": 117, - "text": "func textDidChange(_ notification:Notification) {" - }, - { - "line": 121, - "text": "private func choose(directory:Bool) {" - }, - { - "line": 132, - "text": "@objc private func pickProject() { choose(directory:true) }" - }, - { - "line": 133, - "text": "@objc private func pickExecutable() { choose(directory:false) }" - }, - { - "line": 134, - "text": "@objc private func consentChanged() { render() }" - }, - { - "line": 135, - "text": "@objc private func start() { guard inputIsCurrent() else { return };_=controller.launch(consent:consent.state == .on,diagnostics:diagnostic.state == .on);render() }" - }, - { - "line": 136, - "text": "@objc private func logIn() { guard inputIsCurrent() else { return };_=controller.login() }" - }, - { - "line": 137, - "text": "@objc private func cancelLogIn() { guard inputIsCurrent() else { return };controller.cancelLogin() }" - }, - { - "line": 138, - "text": "@objc private func logOut() { guard inputIsCurrent() else { return };_=controller.logout() }" - }, - { - "line": 139, - "text": "@objc private func resumeSession() { guard inputIsCurrent() else { return };_=controller.resumeLast() }" - }, - { - "line": 140, - "text": "@objc private func showModelPicker() {" - }, - { - "line": 145, - "text": "@objc private func selectModel() { guard inputIsCurrent(),model.indexOfSelectedItem>0 else { return };_=controller.chooseModel(modelIDs[model.indexOfSelectedItem-1]) }" - }, - { - "line": 146, - "text": "@objc private func selectEffort() { guard inputIsCurrent(),effort.indexOfSelectedItem>0 else { return };_=controller.chooseEffort(effortIDs[effort.indexOfSelectedItem-1]) }" - }, - { - "line": 147, - "text": "@objc private func sendDraft() { guard inputIsCurrent() else { return };_=controller.send(draft.string,hasMarkedText:draft.hasMarkedText()) }" - }, - { - "line": 148, - "text": "@objc private func interruptTurn() { guard inputIsCurrent() else { return };_=controller.interrupt() }" - }, - { - "line": 149, - "text": "@objc private func stopSession() { guard inputIsCurrent() else { return };controller.stop() }" - }, - { - "line": 150, - "text": "@objc private func toggleDiagnostics() { guard inputIsCurrent() else { return };displayingDiagnostics.toggle();diagnostics.title=displayingDiagnostics ? \"返回回复\":\"查看诊断\";render() }" - }, - { - "line": 151, - "text": "func revoke() { renderTask?.cancel();renderTask=nil;inputIsCurrent={false};draft.inputContext?.discardMarkedText();draft.string=\"\";output.string=\"\";onCancel?() }" - }, - { - "line": 154, - "text": "@MainActor private final class WS2OwnedDocumentView:NSView { override var isFlipped:Bool { true } }" - } - ] - }, - { - "path": "prototype/Core/AgentSessions.swift", - "sha256": "218b3910959c810d5662d608b8ab9560d5232cf5e69930c330b400c940c65d7c", - "symbols": [ - { - "line": 4, - "text": "struct AgentSessions: Sendable {" - }, - { - "line": 5, - "text": "enum Control: Sendable { case observed, owned }" - }, - { - "line": 6, - "text": "enum Status: Equatable, Sendable { case idle, running, waiting, completed, failed, stale, disconnected }" - }, - { - "line": 7, - "text": "struct Session: Sendable {" - }, - { - "line": 17, - "text": "enum Event: Sendable {" - }, - { - "line": 23, - "text": "enum Effect: Equatable, Sendable {" - }, - { - "line": 28, - "text": "private struct Pending: Sendable {" - }, - { - "line": 33, - "text": "enum TypedAction: Sendable {" - }, - { - "line": 37, - "text": "static func risk(of action: TypedAction) -> WS2.Risk {" - }, - { - "line": 64, - "text": "func request(for key: WS2.ApprovalKey) -> WS2.ApprovalRequest? { suspended ? nil : pending[key]?.request }" - }, - { - "line": 65, - "text": "mutating func receive(_ envelope: WS2.Envelope) -> [Effect] {" - }, - { - "line": 151, - "text": "mutating func choose(_ key: WS2.ApprovalKey, choice: WS2.ApprovalChoice," - }, - { - "line": 173, - "text": "mutating func authorizationFinished(_ outcome: WS2.AuthorizationOutcome, now: WS2.Instant) -> [Effect] {" - }, - { - "line": 189, - "text": "mutating func tick(at now: WS2.Instant) -> [Effect] {" - }, - { - "line": 200, - "text": "mutating func suspend(at now: WS2.Instant) -> [Effect] {" - }, - { - "line": 210, - "text": "mutating func resume(at now: WS2.Instant) -> [Effect] {" - }, - { - "line": 223, - "text": "private mutating func expire(at now: WS2.Instant) -> [Effect] {" - }, - { - "line": 233, - "text": "private mutating func clearApprovals(for session: WS2.SessionKey) -> [Effect] {" - }, - { - "line": 240, - "text": "private mutating func restoreStatus(for key: WS2.SessionKey, fallback: Status) {" - }, - { - "line": 244, - "text": "private func orderedKeys() -> [WS2.SessionKey] {" - }, - { - "line": 247, - "text": "private func approvalOrder(_ a: WS2.ApprovalKey, _ b: WS2.ApprovalKey) -> Bool {" - }, - { - "line": 258, - "text": "private func valid(_ summary: String) -> Bool { !summary.isEmpty && summary.utf8.count <= 16_384 }" - }, - { - "line": 259, - "text": "private func validID(_ id: String) -> Bool { !id.isEmpty && id.utf8.count <= 512 }" - } - ] - }, - { - "path": "prototype/Core/CodexWire.swift", - "sha256": "ed2e3e209bb3ff42c6ba8273b323f2b6f70bdf48daa4cc21f91060d9bfebecf3", - "symbols": [ - { - "line": 3, - "text": "indirect enum WireJSON: Codable, Equatable, Sendable {" - }, - { - "line": 15, - "text": "func encode(to encoder: any Encoder) throws {" - }, - { - "line": 33, - "text": "struct CodexWire: Sendable {" - }, - { - "line": 34, - "text": "enum Failure: Error { case oversized, closed, malformed, notReady, unsupported, stale, capacity }" - }, - { - "line": 35, - "text": "enum State: Equatable, Sendable { case fresh, initializing, listingModels, ready, closed }" - }, - { - "line": 36, - "text": "struct Pending: Sendable { let method: String; let deadline: WS2.Instant }" - }, - { - "line": 37, - "text": "enum Event: Equatable, Sendable {" - }, - { - "line": 42, - "text": "static let maximumFrame = 1_048_576 // Recommendation: bounded metadata stream; not a measured protocol maximum." - }, - { - "line": 59, - "text": "mutating func drain() -> [Data] { defer { outbound.removeAll(keepingCapacity:true) }; return outbound }" - }, - { - "line": 60, - "text": "private mutating func send(_ value: WireJSON) throws {" - }, - { - "line": 66, - "text": "private mutating func request(_ method: String, _ params: [String:WireJSON]?, now: WS2.Instant) throws -> WS2.RequestID {" - }, - { - "line": 74, - "text": "mutating func initialize(now: WS2.Instant) throws {" - }, - { - "line": 79, - "text": "mutating func startThread(cwd: String, model: String, now: WS2.Instant) throws {" - }, - { - "line": 87, - "text": "mutating func resumeThread(id: String, now: WS2.Instant) throws {" - }, - { - "line": 95, - "text": "mutating func startTurn(text: String, model: String, effort: String, now: WS2.Instant) throws {" - }, - { - "line": 104, - "text": "mutating func steer(text: String, expectedTurnID: String, now: WS2.Instant) throws {" - }, - { - "line": 110, - "text": "mutating func interrupt(now: WS2.Instant) throws {" - }, - { - "line": 115, - "text": "mutating func readConfig(cwd:String,now:WS2.Instant) throws -> WS2.RequestID {" - }, - { - "line": 119, - "text": "mutating func readAccount(now: WS2.Instant) throws -> WS2.RequestID {" - }, - { - "line": 123, - "text": "mutating func beginBrowserLogin(now: WS2.Instant) throws -> WS2.RequestID {" - }, - { - "line": 127, - "text": "mutating func cancelLogin(id: String, now: WS2.Instant) throws -> WS2.RequestID {" - }, - { - "line": 131, - "text": "mutating func logout(now: WS2.Instant) throws -> WS2.RequestID {" - }, - { - "line": 135, - "text": "mutating func ingest(_ chunk: Data, now: WS2.Instant) throws -> [Event] {" - }, - { - "line": 156, - "text": "private mutating func receive(_ v: WireJSON, now: WS2.Instant) throws -> [Event] {" - }, - { - "line": 237, - "text": "mutating func denyApproval(_ id: WS2.RequestID) throws {" - }, - { - "line": 246, - "text": "enum ApprovalWireDecision { case acceptOnce, decline }" - }, - { - "line": 247, - "text": "mutating func enqueueApprovalResponse(_ id: WS2.RequestID, expectedMethod: String," - }, - { - "line": 260, - "text": "mutating func tick(now: WS2.Instant) -> [Event] {" - }, - { - "line": 266, - "text": "mutating func close() {" - } - ] - }, - { - "path": "prototype/Core/Contracts.swift", - "sha256": "12fffc2e5cf207aa0ca6b4c371f28b9eec8c2b374b5e1a06d8943878891b2420", - "symbols": [ - { - "line": 6, - "text": "enum WS2 {" - }, - { - "line": 8, - "text": "struct Instant: Hashable, Comparable, Sendable, Codable {" - }, - { - "line": 20, - "text": "func adding(_ duration: UInt64) -> Self {" - }, - { - "line": 25, - "text": "func elapsed(since earlier: Self) -> UInt64 {" - }, - { - "line": 32, - "text": "enum Duration {" - }, - { - "line": 39, - "text": "struct TimeGate: Sendable {" - }, - { - "line": 41, - "text": "mutating func accept(_ now: Instant) -> Bool {" - }, - { - "line": 50, - "text": "struct EventGate: Sendable {" - }, - { - "line": 53, - "text": "mutating func accept(sequence: UInt64, at now: Instant) -> Bool {" - }, - { - "line": 62, - "text": "enum TokenDomain: String, Hashable, Sendable, Codable { case unspecified, focusTimer, presenceLock, conductor, interaction }" - }, - { - "line": 66, - "text": "struct Token: Hashable, Sendable, Codable {" - }, - { - "line": 76, - "text": "struct TokenSource: Sendable {" - }, - { - "line": 80, - "text": "mutating func next() -> Token? {" - }, - { - "line": 88, - "text": "enum Provider: String, Hashable, Sendable, Codable, CaseIterable {" - }, - { - "line": 94, - "text": "struct SessionKey: Hashable, Sendable, Codable {" - }, - { - "line": 101, - "text": "struct Context: Hashable, Sendable, Codable {" - }, - { - "line": 114, - "text": "struct Envelope: Sendable {" - }, - { - "line": 124, - "text": "struct Digest: Hashable, Sendable, Codable {" - }, - { - "line": 138, - "text": "func encode(to encoder: Encoder) throws {" - }, - { - "line": 145, - "text": "struct ModelID: Hashable, Sendable, Codable {" - }, - { - "line": 151, - "text": "struct ExecutionConfig: Hashable, Sendable, Codable {" - }, - { - "line": 159, - "text": "struct CostBinding: Hashable, Sendable, Codable {" - }, - { - "line": 167, - "text": "enum Risk: String, Sendable, Codable { case normal, high, unknown }" - }, - { - "line": 170, - "text": "enum RequestID: Hashable, Sendable, Codable {" - }, - { - "line": 176, - "text": "struct ApprovalKey: Hashable, Sendable, Codable {" - }, - { - "line": 183, - "text": "struct ApprovalRequest: Equatable, Sendable {" - }, - { - "line": 200, - "text": "enum ApprovalChoice: Sendable { case confirm, deny, returnToHost }" - }, - { - "line": 203, - "text": "struct AuthorizationIntent: Equatable, Sendable {" - }, - { - "line": 211, - "text": "enum AuthorizationOutcome: Sendable {" - }, - { - "line": 218, - "text": "enum ApprovalDisposition: String, Equatable, Sendable { case deny, deferToHost }" - }, - { - "line": 221, - "text": "enum Button: String, Hashable, Sendable, CaseIterable {" - }, - { - "line": 226, - "text": "enum ButtonPhase: String, Sendable { case down, up, cancel, heldHalfSecond, heldOneSecond, clickOnly }" - }, - { - "line": 229, - "text": "struct ButtonEvent: Equatable, Sendable {" - }, - { - "line": 238, - "text": "struct Point: Equatable, Sendable {" - }, - { - "line": 245, - "text": "enum Action: String, Equatable, Sendable {" - }, - { - "line": 254, - "text": "enum Layer: Int, Comparable, Sendable, CaseIterable {" - }, - { - "line": 260, - "text": "struct DisplayID: Hashable, Comparable, Sendable, Codable {" - }, - { - "line": 266, - "text": "enum Fault: String, Equatable, Sendable {" - }, - { - "line": 273, - "text": "protocol WS2Clock: Sendable {" - }, - { - "line": 274, - "text": "func now() -> WS2.Instant" - }, - { - "line": 278, - "text": "struct WS2ContinuousClock: WS2Clock, Sendable {" - }, - { - "line": 281, - "text": "func now() -> WS2.Instant {" - }, - { - "line": 296, - "text": "struct LeaseRequest: Sendable {" - }, - { - "line": 304, - "text": "struct LeaseHandle: Hashable, Sendable {" - }, - { - "line": 310, - "text": "enum LeaseRevocation: Sendable {" - }, - { - "line": 313, - "text": "enum LeaseDecision: Sendable {" - }, - { - "line": 319, - "text": "struct VisibilitySnapshot: Sendable {" - } - ] - }, - { - "path": "prototype/Core/GamepadMapping.swift", - "sha256": "672cf04922a50acca6eecd2727b135f07a05acae74ab285e9fb92a23ea39a855", - "symbols": [ - { - "line": 3, - "text": "struct GamepadMapping: Sendable {" - }, - { - "line": 4, - "text": "struct Vector: Equatable, Sendable { var x: Double; var y: Double; static let zero = Vector(x: 0, y: 0) }" - }, - { - "line": 5, - "text": "enum Effect: Equatable, Sendable { case pointer(Vector), scroll(Vector), desktop(Int), releaseTriggers }" - }, - { - "line": 15, - "text": "mutating func configure(enabled: Bool, gameInFront: Bool) -> [Effect] {" - }, - { - "line": 21, - "text": "static func axis(_ v: Vector) -> Vector {" - }, - { - "line": 29, - "text": "mutating func sample(left: Vector, right: Vector, at now: Double) -> [Effect] {" - }, - { - "line": 41, - "text": "mutating func trigger(left: Bool, value: Double, desktopEnabled: Bool) -> [Effect] {" - }, - { - "line": 51, - "text": "mutating func disconnect() -> [Effect] { configure(enabled:false,gameInFront:false) }" - } - ] - }, - { - "path": "prototype/Core/WS2DeviceActionContracts.swift", - "sha256": "bb69fd284e1fe4921c90e68f770915e724ce6198f12156662f81b04161a809a0", - "symbols": [ - { - "line": 4, - "text": "struct WS2ControllerDevice: Equatable, Sendable {" - }, - { - "line": 9, - "text": "enum WS2ControllerInput: Sendable {" - }, - { - "line": 14, - "text": "struct WS2ControllerEnvironment: Sendable {" - }, - { - "line": 21, - "text": "@MainActor protocol WS2ControllerBridge: AnyObject {" - }, - { - "line": 24, - "text": "func start()" - }, - { - "line": 25, - "text": "func stop()" - }, - { - "line": 26, - "text": "func suspendAll()" - }, - { - "line": 27, - "text": "func environmentChanged()" - }, - { - "line": 28, - "text": "@discardableResult func setEnabled(_ enabled: Bool, attachment: UUID) -> Bool" - }, - { - "line": 30, - "text": "@MainActor protocol WS2DeviceActionSink: AnyObject {" - }, - { - "line": 34, - "text": "func prepare(_ ticket: WS2SemanticInputRouter.Ticket) -> Bool" - }, - { - "line": 35, - "text": "func cancelPrepared(context: WS2SemanticInputRouter.Context, presses: [UInt64])" - }, - { - "line": 37, - "text": "func execute(_ ticket: WS2SemanticInputRouter.Ticket) -> Bool" - }, - { - "line": 38, - "text": "func move(_ effect: GamepadMapping.Effect, context: WS2SemanticInputRouter.Context) -> Bool" - } - ] - }, - { - "path": "prototype/Core/WS2DeviceInputGate.swift", - "sha256": "60c5be94786910c4719bcc4b56ff7ff217708e3981591922f33bbe9b384ae662", - "symbols": [ - { - "line": 3, - "text": "struct WS2DeviceInputGate: Sendable {" - }, - { - "line": 4, - "text": "enum Domain: Sendable { case desktop, conductor, review }" - }, - { - "line": 5, - "text": "enum Outcome: Equatable, Sendable { case ignored, began(UInt64), ended(UInt64), cancelled(UInt64) }" - }, - { - "line": 14, - "text": "mutating func connect(_ id: UUID) { attachment = id; enabled = false; neutralSeen.removeAll(); down.removeAll(); sequence = nil; time = .init(); currentDomain = nil }" - }, - { - "line": 15, - "text": "mutating func enable(_ id: UUID) -> Bool {" - }, - { - "line": 19, - "text": "mutating func suspend() -> [UInt64] {" - }, - { - "line": 22, - "text": "mutating func disconnect() -> [UInt64] { let ids = suspend(); attachment = nil; currentDomain = nil; return ids }" - }, - { - "line": 24, - "text": "mutating func changeDomain(to domain: Domain) -> [UInt64] {" - }, - { - "line": 30, - "text": "mutating func button(attachment id: UUID, name: String, pressed: Bool, sequence: UInt64," - }, - { - "line": 49, - "text": "struct WS2HIDButtonMap: Sendable {" - }, - { - "line": 50, - "text": "struct Identity: Equatable, Sendable { let registryID: UInt64; let vendor: Int; let product: Int }" - }, - { - "line": 52, - "text": "func button(from actual: Identity, page: Int, usage: Int, value: Int) -> (WS2.Button, Bool)? {" - } - ] - }, - { - "path": "prototype/Core/WS2FocusEffectPlan.swift", - "sha256": "60ccb717e3641f20e1fc499dc1e432ba37493e3c4abe8e28c73b2ebc19419829", - "symbols": [ - { - "line": 4, - "text": "struct WS2FocusEffectPlan: Sendable {" - }, - { - "line": 7, - "text": "struct Window: Equatable, Sendable { let identity: Identity; let revision: UInt64 }" - }, - { - "line": 8, - "text": "enum Kind: Equatable, Sendable { case tuck(Window, WS2.Token, UInt64), restore(Receipt) }" - }, - { - "line": 9, - "text": "struct Operation: Equatable, Sendable { let id: UUID; let kind: Kind }" - }, - { - "line": 10, - "text": "enum Outcome: Sendable { case completed(revision: UInt64), unchanged, userChanged, unknown }" - }, - { - "line": 11, - "text": "enum Failure: Error { case invalid, capacity, overflow, unexpectedCompletion }" - }, - { - "line": 24, - "text": "mutating func transition(run: WS2.Token?, windows: [Window]) throws {" - }, - { - "line": 31, - "text": "mutating func setSuspended(_ value: Bool) { suspended = value }" - }, - { - "line": 32, - "text": "mutating func manualChange(_ identity: Identity) {" - }, - { - "line": 38, - "text": "private static func identity(_ kind: Kind) -> Identity {" - }, - { - "line": 41, - "text": "mutating func next() -> Operation? {" - }, - { - "line": 51, - "text": "func mayCommit(_ operation: Operation) -> Bool {" - }, - { - "line": 60, - "text": "mutating func complete(_ operation: Operation, _ outcome: Outcome) throws {" - } - ] - }, - { - "path": "prototype/Core/WS2FocusWindowOwnership.swift", - "sha256": "69a0b9a82fd67c318d92b4bcedebd6f980b094f24b37197758fe1cf85f5ab3c7", - "symbols": [ - { - "line": 3, - "text": "struct WS2FocusWindowOwnership: Sendable {" - }, - { - "line": 4, - "text": "struct Identity: Hashable, Sendable { let pid: Int32; let processStart: UInt64; let windowID: UInt32; let windowGeneration: UInt64 }" - }, - { - "line": 5, - "text": "struct Receipt: Equatable, Sendable {" - }, - { - "line": 13, - "text": "mutating func record(_ receipt: Receipt, didComplete: Bool) -> Bool {" - }, - { - "line": 18, - "text": "mutating func takeForRestore(_ id: Identity, run: WS2.Token, effectGeneration: UInt64, liveRevision: UInt64) -> Receipt? {" - }, - { - "line": 24, - "text": "mutating func manualChange(_ id: Identity) { owned[id] = nil }" - }, - { - "line": 25, - "text": "mutating func clear() { owned.removeAll() }" - } - ] - }, - { - "path": "prototype/Core/WS2FoldEvidence.swift", - "sha256": "3d1dd3583a1e6f93a4d721e6b4587a0cd700c993722fee2f7a03428919f420dd", - "symbols": [ - { - "line": 5, - "text": "struct WS2FoldEvidence: Sendable {" - }, - { - "line": 6, - "text": "struct Ticket: Equatable, Sendable { let request:UUID;let window:UInt32;let pid:Int32 }" - }, - { - "line": 7, - "text": "enum Observation:String,Sendable,Codable { case verifiedHidden, stillVisible, unknown, notStarted }" - }, - { - "line": 8, - "text": "struct Event:Equatable,Sendable { let ticket:Ticket;let transaction:UUID?;let observation:Observation;let late:Bool }" - }, - { - "line": 9, - "text": "private struct Entry:Sendable { let ticket:Ticket;let issuedAt:Double;let deadline:Double;var attempted=false;var transaction:UUID?;var last:Observation? }" - }, - { - "line": 12, - "text": "func contains(_ ticket:Ticket)->Bool{entries[ticket.request]?.ticket == ticket}" - }, - { - "line": 13, - "text": "mutating func begin(request:UUID,window:UInt32,pid:Int32,at now:Double,timeout:Double=30)->Ticket?{" - }, - { - "line": 19, - "text": "func mayStart(_ t:Ticket,at now:Double)->Bool {" - }, - { - "line": 23, - "text": "mutating func markMutation(_ t:Ticket,at now:Double)->Bool{" - }, - { - "line": 26, - "text": "mutating func bind(_ t:Ticket,transaction:UUID)->Bool{" - }, - { - "line": 30, - "text": "func ticket(window:UInt32,transaction:UUID)->Ticket?{" - }, - { - "line": 33, - "text": "mutating func observe(_ t:Ticket,transaction:UUID,observation:Observation)->Event?{" - }, - { - "line": 38, - "text": "mutating func failed(_ t:Ticket)->Event?{" - }, - { - "line": 42, - "text": "mutating func expire(_ t:Ticket,at now:Double)->Event?{" - }, - { - "line": 48, - "text": "mutating func forget(_ t:Ticket){if contains(t){entries[t.request]=nil}}" - }, - { - "line": 49, - "text": "private mutating func emit(_ t:Ticket,observation:Observation)->Event?{" - } - ] - }, - { - "path": "prototype/Core/WS2SelectionModel.swift", - "sha256": "c8fb3c0ac6564970d2daedee4d4708799ef0014a94a7bb22b99f18a85d86cf4c", - "symbols": [ - { - "line": 4, - "text": "struct WS2SelectionModel: Sendable {" - }, - { - "line": 5, - "text": "struct Item: Equatable, Sendable { let id: String; let enabled: Bool }" - }, - { - "line": 6, - "text": "struct Activation: Equatable, Sendable { let revision: UInt64; let serial: UInt64; let itemID: String }" - }, - { - "line": 7, - "text": "enum Failure: Error { case invalidSnapshot, exhausted }" - }, - { - "line": 14, - "text": "mutating func replace(_ next: [Item]) throws {" - }, - { - "line": 25, - "text": "@discardableResult mutating func move(_ direction: Int, expectedRevision: UInt64) -> Bool {" - }, - { - "line": 34, - "text": "@discardableResult mutating func select(id: String, expectedRevision: UInt64) -> Bool {" - }, - { - "line": 38, - "text": "mutating func reserveActivation(expectedRevision: UInt64) -> Activation? {" - }, - { - "line": 44, - "text": "mutating func consume(_ value: Activation) -> String? {" - }, - { - "line": 49, - "text": "mutating func revoke() { pending = nil; items = []; selectedID = nil; if revision < .max { revision += 1 } else { exhausted = true } }" - } - ] - }, - { - "path": "prototype/Core/WS2SemanticInputRouter.swift", - "sha256": "7055bb6994681ac67dd6b166374ab00923a8e1d76b9133021d922925ef2ac3c6", - "symbols": [ - { - "line": 4, - "text": "struct WS2SemanticInputRouter: Sendable {" - }, - { - "line": 5, - "text": "enum Intent: Equatable, Sendable { case previous, next, cancel, openSelection, interruptTurn }" - }, - { - "line": 6, - "text": "struct Context: Equatable, Sendable {" - }, - { - "line": 10, - "text": "struct Ticket: Equatable, Sendable { let context: Context; let press: UInt64; let intent: Intent }" - }, - { - "line": 11, - "text": "enum Failure: Error { case invalid, replay, unavailable, stale, forbidden, capacity }" - }, - { - "line": 16, - "text": "@discardableResult mutating func enable(_ context: Context) -> Bool {" - }, - { - "line": 20, - "text": "mutating func revoke() { active = nil; seen.removeAll(); reserved.removeAll(); enabled = false }" - }, - { - "line": 23, - "text": "mutating func reserve(press: UInt64, intent: Intent, context: Context, unlocked: Bool, sinkReady: Bool) throws -> Ticket {" - }, - { - "line": 36, - "text": "func isCurrent(_ ticket: Ticket, live: Context, unlocked: Bool, sinkReady: Bool) -> Bool {" - }, - { - "line": 39, - "text": "@discardableResult mutating func consume(_ ticket: Ticket, live: Context, unlocked: Bool, sinkReady: Bool) -> Bool {" - } - ] - }, - { - "path": "prototype/Core/WS2VisibleListInput.swift", - "sha256": "919b37b1add050fa65660fa70127a8dc131e659675ebedf791b86277d5acf425", - "symbols": [ - { - "line": 4, - "text": "@MainActor final class WS2VisibleListInput {" - }, - { - "line": 14, - "text": "func replace(_ items: [WS2SelectionModel.Item], selectedID: String?) throws {" - }, - { - "line": 20, - "text": "func bind(_ context: WS2SemanticInputRouter.Context?) {" - }, - { - "line": 24, - "text": "@discardableResult func select(_ id: String) -> Bool {" - }, - { - "line": 30, - "text": "@discardableResult func prepare(_ ticket: WS2SemanticInputRouter.Ticket) -> Bool {" - }, - { - "line": 39, - "text": "func cancel(context: WS2SemanticInputRouter.Context, presses: [UInt64]) {" - }, - { - "line": 43, - "text": "func cancelAll() {" - }, - { - "line": 48, - "text": "@discardableResult func execute(_ ticket: WS2SemanticInputRouter.Ticket) -> Bool {" - }, - { - "line": 69, - "text": "func revoke() { ready = false; context = nil; prepared = nil; selection.revoke(); onArmed?(nil) }" - } - ] - }, - { - "path": "prototype/Support/WS2DuplexProcess.swift", - "sha256": "1efe08a7d6987fdac80d87f345f1d2ce212e6a5dddac3a71e086e247d8ab579a", - "symbols": [ - { - "line": 11, - "text": "@MainActor final class WS2DuplexProcess {" - }, - { - "line": 12, - "text": "enum Failure: Error { case invalid, io(Int32), notRunning }" - }, - { - "line": 13, - "text": "enum End: Equatable { case localStop, eof, processExit, io(Int32), framing, timeout, revoked }" - }, - { - "line": 14, - "text": "struct Termination: Equatable, Sendable { let status: Int32; let wasSignalled: Bool }" - }, - { - "line": 57, - "text": "func start() throws {" - }, - { - "line": 96, - "text": "private func pollChild() {" - }, - { - "line": 120, - "text": "@discardableResult func admit(_ lines: [Data], connection: UUID, deadline: Double," - }, - { - "line": 131, - "text": "@discardableResult func admitWireFrames(_ frames: [Data], connection: UUID, deadline: Double," - }, - { - "line": 143, - "text": "private func armWrite() { if !writeArmed, !stopped { writeArmed = true; writer?.resume() } }" - }, - { - "line": 144, - "text": "private func disarmWrite() { if writeArmed { writeArmed = false; writer?.suspend() } }" - }, - { - "line": 145, - "text": "private func scheduleDeadline() {" - }, - { - "line": 157, - "text": "private func writeReady() {" - }, - { - "line": 183, - "text": "private func readReady(checkChild: Bool = true) {" - }, - { - "line": 205, - "text": "private func readDiagnosticReady() {" - }, - { - "line": 220, - "text": "func clearDiagnostics() { diagnostics?.clear() }" - }, - { - "line": 221, - "text": "private static func writeWithoutSIGPIPE(_ fd: Int32, _ bytes: Data) -> Int {" - }, - { - "line": 236, - "text": "func stop(_ reason: End = .localStop) {" - }, - { - "line": 246, - "text": "// The reaper timer survives protocol closure. A stopped pipe is not reaping evidence." - } - ] - }, - { - "path": "prototype/Support/WS2FocusEffectExecutor.swift", - "sha256": "674a8760579e1eccf401f6c949d6fcf69b74257943fe795b043f255b7c3887bf", - "symbols": [ - { - "line": 3, - "text": "@MainActor protocol WS2FocusMutationPort: AnyObject {" - }, - { - "line": 6, - "text": "func perform(_ operation: WS2FocusEffectPlan.Operation," - }, - { - "line": 10, - "text": "@MainActor final class WS2FocusEffectExecutor {" - }, - { - "line": 16, - "text": "func transition(run: WS2.Token?, windows: [WS2FocusEffectPlan.Window]) throws {" - }, - { - "line": 19, - "text": "func suspend() { plan.setSuspended(true) }" - }, - { - "line": 20, - "text": "func resumeAfterVerifiedUnlock() { plan.setSuspended(false); pump() }" - }, - { - "line": 21, - "text": "func manualChange(_ identity: WS2FocusEffectPlan.Identity) { plan.manualChange(identity); pump() }" - }, - { - "line": 23, - "text": "func end() throws { try transition(run: nil, windows: []) }" - }, - { - "line": 24, - "text": "private func pump() {" - } - ] - }, - { - "path": "prototype/Support/WS2ProjectDirectory.swift", - "sha256": "7a9c30764d3199652eccc46265c4d7afae6c05cf65e1ee2a5be65c73bbd628a2", - "symbols": [ - { - "line": 4, - "text": "enum WS2ProjectDirectory {" - }, - { - "line": 5, - "text": "enum Failure: Error { case notAbsoluteFileURL, notDirectory, missingIdentity }" - }, - { - "line": 6, - "text": "static func read(_ url: URL) throws -> WS2OwnedScope.Directory {" - }, - { - "line": 18, - "text": "static func contains(canonicalRoot root: String, canonicalCandidate candidate: String) -> Bool {" - } - ] - }, - { - "path": "prototype/WindowShade.swift", - "sha256": "0c489c4b721315ef147f7b3898aa388377eac8b766ada421fda395716f16828a", - "symbols": [ - { - "line": 79, - "text": "func framesAlmostEqual(_ a: NSRect, _ b: NSRect, tolerance: CGFloat = 0.5) -> Bool {" - }, - { - "line": 86, - "text": "func cgWindowID(for window: NSWindow) -> CGWindowID? {" - }, - { - "line": 94, - "text": "final class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {" - }, - { - "line": 96, - "text": "final class PendingTitlebarTripleClick {" - }, - { - "line": 110, - "text": "struct PendingSpaceReturn {" - }, - { - "line": 118, - "text": "struct ReconcileAXTarget {" - }, - { - "line": 125, - "text": "struct ReconcileAXSnapshot {" - }, - { - "line": 304, - "text": "func applicationDidFinishLaunching(_ note: Notification) {" - }, - { - "line": 418, - "text": "func applicationShouldTerminate(_ sender: NSApplication) -> NSApplication.TerminateReply {" - }, - { - "line": 423, - "text": "@objc func systemAppearanceOptionsChanged(_ note: Notification) {" - }, - { - "line": 454, - "text": "func installStandardMainMenu() {" - }, - { - "line": 464, - "text": "private func migrateDistractingDefaultSounds() {" - }, - { - "line": 493, - "text": "func refreshPinnedPreviewTarget(reason: String) {" - }, - { - "line": 500, - "text": "private func setupPinnedPreviewFocusTracking() {" - }, - { - "line": 513, - "text": "private func scheduleTitlebarPrefetch() {" - }, - { - "line": 534, - "text": "private func schedulePinnedPreviewTargetRefresh() {" - }, - { - "line": 554, - "text": "func focusSizedFrame(pos: CGPoint, size: CGSize," - }, - { - "line": 593, - "text": "func configureShadedAccessibility(for overlay: NSWindow, id: CGWindowID," - }, - { - "line": 619, - "text": "func currentShadedOverlayID() -> CGWindowID? {" - }, - { - "line": 637, - "text": "@objc func finishOnboarding() {" - }, - { - "line": 641, - "text": "@objc func dismissOnboarding() {" - }, - { - "line": 652, - "text": "private func runTool(_ path: String, _ args: [String]) -> Int32? {" - }, - { - "line": 669, - "text": "private func readTool(_ path: String, _ args: [String]) -> String? {" - }, - { - "line": 685, - "text": "private func runDefaults(_ args: [String]) { runTool(\"/usr/bin/defaults\", args) }" - }, - { - "line": 686, - "text": "private func readDefaults(_ args: [String]) -> String? { readTool(\"/usr/bin/defaults\", args) }" - }, - { - "line": 687, - "text": "private func killDock() { runTool(\"/usr/bin/killall\", [\"Dock\"]) } // 让 Dock 重读 mineffect" - }, - { - "line": 689, - "text": "private func writeDockMinimizeEffect(_ value: String, reason: String) -> Bool {" - }, - { - "line": 702, - "text": "private func persistDockMinimizeEffectSession(original: String?) {" - }, - { - "line": 713, - "text": "private func clearDockMinimizeEffectSession() {" - }, - { - "line": 720, - "text": "private func restoreDockMinimizeEffect(original: String?) {" - }, - { - "line": 728, - "text": "private func recoverStaleDockMinimizeEffectSessionIfNeeded() {" - }, - { - "line": 739, - "text": "private func enableScaleMinimizeEffectForSession() {" - }, - { - "line": 767, - "text": "private func restoreDockMinimizeEffect() {" - }, - { - "line": 784, - "text": "func currentOperationState(_ id: CGWindowID) -> WindowShadeState {" - }, - { - "line": 790, - "text": "func transitionOperationState(id: CGWindowID, to next: WindowShadeState," - }, - { - "line": 803, - "text": "func applicationWillTerminate(_ note: Notification) {" - }, - { - "line": 830, - "text": "func ensureAccessibility() -> Bool {" - }, - { - "line": 837, - "text": "@objc func toggleAction() { toggle() }" - }, - { - "line": 848, - "text": "@objc func focusCurrentAppAction() {" - }, - { - "line": 862, - "text": "@objc func unshadeFromMenu(_ sender: NSMenuItem) {" - }, - { - "line": 867, - "text": "@objc func quit() {" - }, - { - "line": 880, - "text": "func setupEventTapWhenTrusted() {" - }, - { - "line": 896, - "text": "func setupEventTap() -> Bool {" - } - ] - } -] diff --git a/tests/archive/part8/sources/code-map.md b/tests/archive/part8/sources/code-map.md deleted file mode 100644 index 88814409..00000000 --- a/tests/archive/part8/sources/code-map.md +++ /dev/null @@ -1,888 +0,0 @@ -# 实际源码定位 - -哈希匹配时行号才有效。当前参考是本包candidate,不是公开HEAD。 - -## `prototype/App/FocusTimerHost.swift` - -SHA256 `7aa01c91cb3abf4503ff8eb92a8060efcdfca907b295caa3ab0fde88d264b666` - -- L2: `@MainActor final class FocusTimerHost {` -- L16: `func handle(_ event: FocusTimer.Event) {` -- L21: `func configure(preset: FocusTimer.Preset, tuckChatEnabled: Bool) {` -- L26: `func stop() { wake?.cancel(); wake = nil; if revision < .max { revision += 1 } }` -- L27: `private func schedule() {` - -## `prototype/App/FoldExit.swift` - -SHA256 `e69cdab84f86400d15e9bbf85f3a1a2a5eb71c9586332576c13c301581d7af30` - -- L7: `func unshadeReturningElement(_ id: CGWindowID, playSound: Bool = true,` -- L91: `func unshade(_ id: CGWindowID) -> Bool {` -- L103: `func forceCleanup(_ id: CGWindowID, preserveFocusEntry: Bool = false, preserveRecovery: Bool = false) {` -- L136: `func removeProxyForAction(_ id: CGWindowID, state: ShadeState,` -- L164: `func removeProxyForForwardedAction(_ id: CGWindowID, state: ShadeState) {` -- L167: `func quickLookProcessHint(pid: pid_t) -> Bool {` -- L179: `func windowLooksLikeQuickLookTarget(_ win: AXUIElement, pid: pid_t,` -- L199: `func quickLookWindowCandidates(preferredPID: pid_t, title: String) -> [(pid: pid_t, win: AXUIElement)] {` -- L249: `func reopenQuickLookForProxyFullScreen(state: ShadeState, id: CGWindowID) -> Bool {` -- L261: `func clickQuickLookVisualFullScreenButton(_ win: AXUIElement, pid: pid_t,` -- L283: `func triggerQuickLookFullScreen(_ win: AXUIElement, pid: pid_t,` -- L311: `func verifyQuickLookFullScreenOrSendShortcut(_ win: AXUIElement, pid: pid_t,` -- L343: `func openQuickLookFullScreenFromProxy(state: ShadeState, id: CGWindowID) {` -- L346: `func attempt(_ index: Int) {` -- L372: `func handleQuickLookTrafficLight(_ action: TrafficAction, id: CGWindowID, state: ShadeState) {` -- L386: `func handleTrafficLight(_ action: TrafficAction, _ id: CGWindowID) {` -- L413: `func handleClassicAction(_ action: ClassicAction, _ id: CGWindowID) {` - -## `prototype/App/FoldTransaction.swift` - -SHA256 `482e8b46ad1aec8d169653d75d0c3976379104191c2e53bbe3ecab05bb98e06c` - -- L7: `func parkFocusForInactiveCapture() {` -- L22: `func releaseFocusParking(reactivate pid: pid_t?) {` -- L41: `func handOffFocusBeforeHiding(win: AXUIElement, pid: pid_t, id: CGWindowID) -> Bool {` -- L104: `func hideTookEffect(_ hide: HideMethod, win: AXUIElement, pid: pid_t,` -- L125: `func scheduleFoldVerification(id: CGWindowID) {` -- L174: `func revealOverlayAfterVerification(id: CGWindowID, state: ShadeState) {` -- L190: `func rollbackFoldTransaction(id: CGWindowID, expectedTransaction: UUID? = nil) {` -- L215: `func activateApp(pid: pid_t) {` -- L221: `func bringRestoredWindowToFront(_ win: AXUIElement, pid: pid_t, reason: String) {` -- L224: `func attempt(_ label: String) {` -- L248: `func prepareForwardedTrafficAction(_ win: AXUIElement, pid: pid_t, reason: String) {` -- L255: `func restoredWindowIsGeometryReady(_ win: AXUIElement) -> Bool {` -- L260: `func buttonIsReady(_ win: AXUIElement, _ attr: String) -> Bool {` -- L276: `func forwardedTrafficActionSucceeded(state: ShadeState, id: CGWindowID,` -- L299: `func performForwardedTrafficAction(state: ShadeState, pos: CGPoint,` -- L313: `func retryOrFallback(_ index: Int, note: String) {` -- L337: `func verifyAfterAXPress(_ win: AXUIElement, index: Int, attr: String) {` -- L349: `func verifyAfterPointerClick(_ win: AXUIElement, index: Int, attr: String) {` -- L366: `func attempt(_ index: Int) {` -- L397: `func schedule(_ index: Int, note: String) {` -- L412: `func showRealWindowManagementPopover(_ id: CGWindowID) {` -- L425: `func attempt(_ index: Int) {` -- L455: `func windowIsParkedOffscreen(id: CGWindowID, win: AXUIElement, size: CGSize) -> Bool {` -- L463: `func privateSLSOffscreenHide(_ win: AXUIElement, id: CGWindowID,` -- L499: `func privateSLSAlphaHide(id: CGWindowID, pid: pid_t, reason: String) -> HideMethod? {` -- L531: `func axOffscreenHide(_ win: AXUIElement,` -- L555: `func ownWindow(id: CGWindowID?) -> NSWindow? {` -- L562: `func orderOutOwnWindowIfNeeded(id: CGWindowID?, pid: pid_t, reason: String) -> HideMethod? {` -- L573: `func hideWindow(_ win: AXUIElement, pid: pid_t, originalPosition pos: CGPoint,` -- L634: `func fallbackHide(_ win: AXUIElement, pid: pid_t, id: CGWindowID?,` -- L664: `func safeRestorePosition(for state: ShadeState, desired pos: CGPoint) -> CGPoint {` -- L683: `func refreshedWindowElement(id: CGWindowID, fallback: AXUIElement,` -- L691: `func resolvedWindowElement(for state: ShadeState) -> AXUIElement {` -- L719: `func applyRestoredGeometry(_ state: ShadeState, to pos: CGPoint,` -- L752: `func restoreWindow(_ state: ShadeState, to pos: CGPoint) -> AXUIElement {` -- L792: `func cancelRestorePin(for id: CGWindowID) {` -- L796: `func pinRestoredWindow(_ state: ShadeState, to pos: CGPoint, reason: String) {` -- L804: `func attempt(_ label: String, focus: Bool, verify: Bool = true) {` -- L847: `func resizeShadedWindowFromProxy(_ id: CGWindowID, proxyFrame: NSRect) {` -- L886: `func makeRevealObserver(pid: pid_t, win: AXUIElement, id: CGWindowID) -> AXObserver? {` -- L898: `func removeObserver(_ state: ShadeState) {` -- L904: `func handleAXNotification(_ id: CGWindowID, _ notification: String) {` -- L943: `@objc func appTerminated(_ note: Notification) {` -- L953: `@objc func frontmostApplicationChanged(_ note: Notification) {` -- L983: `@objc func screenParametersChanged(_ note: Notification) {` -- L1028: `@objc func activeSpaceChanged(_ note: Notification) {` - -## `prototype/App/InteractionCoordinator.swift` - -SHA256 `5524bd61193c8e7ca5090b7c38c498f094bdc13a3e48971f3f084b2fb7a0c5b2` - -- L5: `final class InteractionCoordinator {` -- L6: `struct Environment { var unlocked: Bool; var displays: Set }` -- L7: `private struct Active { let handle: WS2.LeaseHandle; let layer: WS2.Layer; let deadline: WS2.Instant }` -- L8: `private struct Alert { let first: WS2.Instant; var last: WS2.Instant; let deadline: WS2.Instant }` -- L27: `private func permits(_ r: WS2.LeaseRequest) -> Bool {` -- L35: `private func withdraw(_ reason: WS2.LeaseRevocation) {` -- L40: `private func expire(_ now: WS2.Instant) {` -- L46: `func acquire(_ r: WS2.LeaseRequest, replacing expected: WS2.LeaseHandle? = nil) -> WS2.LeaseDecision {` -- L75: `func isCurrent(_ lease: WS2.LeaseHandle) -> Bool {` -- L81: `func release(_ lease: WS2.LeaseHandle, at now: WS2.Instant) {` -- L86: `private func barrier(_ reason: WS2.LeaseRevocation) {` -- L90: `func invalidate(_ reason: WS2.LeaseRevocation, at now: WS2.Instant) {` -- L98: `func removeDisplay(_ id: WS2.DisplayID, at now: WS2.Instant) {` -- L105: `func publishOngoing(_ ids: [String], on display: WS2.DisplayID) {` -- L110: `func remind(on display: WS2.DisplayID, at now: WS2.Instant) {` -- L119: `func snapshots(at now: WS2.Instant) -> [WS2.VisibilitySnapshot] {` -- L137: `func confirmationIsFresh(lease: WS2.LeaseHandle, beganAt: WS2.Instant, sequence: UInt64,` - -## `prototype/App/Notch.swift` - -SHA256 `f99ffc0698fa98d63b07a4d3c4ba196e6ddba38f1148df635295a47572c6a1c7` - -- L29: `final class NotchController {` -- L30: `private struct Tucked {` -- L49: `func refreshAppearance() {` -- L73: `func authenticationPanel() -> NotchPanel? {` -- L128: `static func notchScreen() -> NSScreen? {` -- L133: `static func notchRect(on screen: NSScreen) -> NSRect? {` -- L141: `static func slotRect(on screen: NSScreen) -> (rect: NSRect, virtual: Bool) {` -- L147: `private static func displayID(_ screen: NSScreen) -> CGDirectDisplayID? {` -- L151: `private func panel(for screen: NSScreen) -> NotchPanel? {` -- L155: `private func panel(containing point: CGPoint) -> NotchPanel? {` -- L163: `func isTucked(_ id: CGWindowID) -> Bool { tucked.contains { $0.id == id } }` -- L173: `func install() {` -- L249: `private func applyShapes() {` -- L257: `func prepareForLaunchpad() {` -- L263: `func setEnabled(_ enabled: Bool) {` -- L278: `func setAlertsEnabled(_ enabled: Bool) {` -- L290: `func aims(from release: CGPoint, velocity: CGVector) -> Bool {` -- L301: `func dragMoved(to point: CGPoint) {` -- L316: `func cancelDrag() {` -- L322: `func dragEnded(at point: CGPoint) -> NotchPanel.DropChoice? {` -- L331: `func screen(containing point: CGPoint) -> NSScreen? {` -- L339: `func tuck(_ win: AXUIElement, id: CGWindowID, pid: pid_t, landed: CGRect, home: CGRect, velocity: CGVector,` -- L375: `private func finishTuck(_ win: AXUIElement, id: CGWindowID, pid: pid_t, landed: CGRect, home: CGRect,` -- L432: `private func coverUntilHidden(_ plate: BackgroundPlate, id: CGWindowID, attempts: Int) {` -- L444: `private func hideStripWhenReady(_ id: CGWindowID, attempts: Int, since: Int? = nil) {` -- L472: `func releaseLatest(reason: String, from origin: NSRect? = nil) {` -- L491: `func release(_ id: CGWindowID, reason: String, from origin: NSRect? = nil) {` -- L515: `private func restore(_ item: Tucked, landing: CGRect) {` -- L525: `private func slideHome(_ item: Tucked, attempts: Int) {` -- L551: `private func hoverChanged(_ inside: Bool, panel: NotchPanel) {` -- L578: `private func open(_ id: CGWindowID, from origin: NSRect? = nil) {` -- L613: `private func saveCoach() {` -- L619: `private func pointerPanel() -> NotchPanel? {` -- L626: `func announce(_ text: String, detail: String = "", tone: NotchPanel.Tone = .info, symbol: String? = nil,` -- L653: `private struct PendingAnnouncement {` -- L665: `func announceWhenFree(key: String, text: String, detail: String = "", tone: NotchPanel.Tone = .info,` -- L687: `private func isFreeToAnnounce() -> Bool {` -- L692: `private func drainPendingAnnouncements() {` -- L711: `func teach(_ tip: CoachTip, on target: NotchPanel? = nil) -> Bool {` -- L733: `func coachUsed(_ tip: CoachTip) {` -- L740: `func resetCoachForProbe() { coach = GestureCoach() }` -- L741: `func tapAnnouncementForProbe() { panels.values.first { $0.isAlerting }?.tapForProbe() }` -- L752: `func tuckFocused() -> Bool {` -- L772: `func tuckAll(on screen: NSScreen? = nil) -> Int {` -- L800: `func switchApp(back: Bool, panel: NotchPanel? = nil) {` -- L824: `static func recentWindows() -> [(id: CGWindowID, pid: pid_t)] {` -- L840: `private func homeKey(_ clicks: Int, from rect: NSRect) {` -- L867: `func activeSpaceChanged() {` -- L883: `func pressForProbe(_ clicks: Int) {` -- L889: `func refreshShelfForProbe() { shelf.invalidate(); refreshShelf() }` -- L890: `func openTileForProbe(_ id: CGWindowID) { open(id) }` -- L893: `private func refreshShelf() {` -- L898: `private func requestThumbnails() {` -- L906: `private func rowExclude() -> Set {` -- L926: `private func showPeek(_ id: CGWindowID, tile: NSRect? = nil) {` -- L987: `private func showStoredPeek(_ id: CGWindowID) {` -- L997: `enum TileGlance {` -- L1003: `private func startTileGlance(_ id: CGWindowID, tile: NSRect, glance: TileGlance, pid: pid_t, title: String) {` -- L1010: `private func showStill(_ item: NotchShelfItem, tile: NSRect) {` -- L1048: `private func endPeek() {` -- L1065: `private func hideStripAfterGlance(_ id: CGWindowID, attempts: Int) {` -- L1082: `func peekForProbe(_ id: CGWindowID, tile: NSRect) { showPeek(id, tile: tile) }` -- L1083: `func peekForProbe(_ id: CGWindowID) { showPeek(id) }` -- L1085: `func thumbnailForProbe(_ id: CGWindowID) -> CGImage? { thumbnails.image(id) }` -- L1087: `func requestThumbnailsForProbe() { requestThumbnails() }` -- L1088: `func endPeekForProbe() { endPeek() }` -- L1090: `private func refresh() {` -- L1099: `private func room(for panel: NotchPanel, display: CGDirectDisplayID) -> MenuBarRoom.Sides? {` -- L1108: `private func compactInfo() -> NotchPanel.Compact? {` -- L1117: `private func forgetGone() {` -- L1126: `private func tiles() -> [NotchTile] {` -- L1131: `func icon(_ pid: pid_t) -> NSImage? { NSRunningApplication(processIdentifier: pid)?.icon }` -- L1164: `private func syncWatchers() {` -- L1178: `private func titleSettled(_ id: CGWindowID, title: String) {` -- L1218: `func clearChange(_ id: CGWindowID) {` -- L1227: `func simulateTitleChange(_ id: CGWindowID, title: String) {` -- L1232: `func syncWatchersForProbe() { syncWatchers() }` -- L1233: `func isWatchingTitle(_ id: CGWindowID) -> Bool { watcher.isWatching(id) }` -- L1239: `private enum FlightStyle { case intoNotch, intoVirtualNotch, out }` -- L1241: `private func fly(_ image: CGImage, from: NSRect, to: NSRect, velocity: CGVector, style: FlightStyle,` -- L1260: `func elsewhereAnchorFrame(_ id: CGWindowID) -> NSRect? {` -- L1268: `func glanceTarget(forElsewhere id: CGWindowID) -> GlanceTarget? {` -- L1314: `func openElsewhereWindow(_ id: CGWindowID) { open(id) }` -- L1317: `struct NotchTile {` -- L1318: `enum Kind { case tucked, strip, slideOver, carried, minimized, hiddenApp, elsewhere }` -- L1337: `final class NotchPanel: NSPanel {` -- L1338: `enum DropState { case none, offered, armed, confirmed }` -- L1347: `func refreshAppearance() { apply(animated: false) }` -- L1351: `enum DropChoice: Int, CaseIterable {` -- L1373: `struct IslandStyle {` -- L1383: `struct Compact {` -- L1388: `func same(as other: Compact?) -> Bool {` -- L1395: `struct Alert {` -- L1408: `enum Tone { case info, done, problem, tip }` -- L1450: `func isShowingInteraction(_ view: NSView) -> Bool { authenticationView === view }` -- L1455: `func setAuthentication(_ view: NotchAuthenticationView?, animated: Bool = true) {` -- L1458: `func setInteraction(_ view: (NSView & NotchInteractiveContent)?, animated: Bool = true) {` -- L1467: `func setActivities(_ items: [NotchActivity], selected: String?) {` -- L1494: `func tapForProbe() { pressed(1) }` -- L1512: `func choice(at point: CGPoint) -> DropChoice {` -- L1563: `private func showActivityMenu(_ event: NSEvent) {` -- L1572: `@objc private func activityMenuAction(_ item: NSMenuItem) {` -- L1580: `override func orderOut(_ sender: Any?) {` -- L1589: `private func refitShoulders() {` -- L1606: `private func pressed(_ clicks: Int) {` -- L1651: `private func updateVisibility() {` -- L1660: `func setCompact(_ value: Compact?, room newRoom: MenuBarRoom.Sides?) {` -- L1703: `static func alertWidth(notch: NSRect, teaching: Bool) -> CGFloat {` -- L1708: `static func alertCoverSpans(notch: NSRect, virtual: Bool, screen: NSRect) -> MenuBarRoom.Spans {` -- L1715: `private enum CompactShape { case sides, pill, chin, pending }` -- L1723: `func alert(_ info: Alert, duration: TimeInterval = 2.6) {` -- L1739: `func expand(with tiles: [NotchTile]) {` -- L1753: `func updateTileSnapshot(id: CGWindowID, image: CGImage?) {` -- L1759: `func collapse() {` -- L1768: `func confirmDrop() {` -- L1783: `func setDropState(_ state: DropState, choice: DropChoice? = nil) {` -- L1796: `private func hover(_ inside: Bool) {` -- L1826: `private func pull(_ distance: CGFloat, touching: Bool, velocity: CGFloat) {` -- L1850: `static func rubberBand(_ x: CGFloat, limit d: CGFloat) -> CGFloat {` -- L1854: `static func rubberBandSlope(_ x: CGFloat, limit d: CGFloat) -> CGFloat {` -- L1859: `private struct Target {` -- L1873: `private func target() -> Target {` -- L1910: `private func baseTarget() -> (rect: NSRect, style: IslandStyle) {` -- L1988: `private func spring() -> NotchCanvasView.Spring {` -- L1998: `private func apply(animated: Bool, spring custom: NotchCanvasView.Spring? = nil, roomOnly: Bool = false) {` -- L2066: `private func shoulderMotion(to target: Target, from now: NSRect) -> (scale: (leading: CGFloat, trailing: CGFloat),` -- L2070: `func side(from edge: CGFloat, to goal: CGFloat, hardware: CGFloat, scale: CGFloat, was: CGFloat) -> (CGFloat, Bool) {` -- L2082: `func swallow() {` -- L2107: `private func compactSlots(in size: NSSize, shape: CompactShape, side: CGFloat) -> (leading: NSRect, trailing: NSRect) {` -- L2116: `private func hintText() -> String? {` -- L2136: `final class NotchCanvasView: NSView {` -- L2137: `struct Content {` -- L2161: `func same(as other: Content) -> Bool {` -- L2175: `struct Spring {` -- L2208: `func setAuthentication(_ view: (NSView & NotchInteractiveContent)?) {` -- L2214: `func placeAuthentication(in rect: NSRect) {` -- L2224: `func updateTileSnapshot(id: CGWindowID, image: CGImage?) {` -- L2261: `func setBare(_ bare: Bool) {` -- L2270: `func islandOnScreen(panelOrigin: NSPoint) -> NSRect? {` -- L2277: `func shift(by delta: CGVector) {` -- L2290: `func morph(to rect: NSRect, style: NotchPanel.IslandStyle, content: Content, spring: Spring?,` -- L2340: `private func add(_ spring: Spring, key: String, to layer: CALayer, position: CGVector, size: CGSize, radius: CGFloat) {` -- L2341: `func animate(_ keyPath: String, from: Any, zero: Any) {` -- L2361: `private func present(_ content: Content, in rect: NSRect, animated: Bool) {` -- L2399: `func settle() {` -- L2405: `func pullIconOnScreen() -> NSRect? {` -- L2411: `func pulse(width: CGFloat, height: CGFloat) {` -- L2413: `func bump(_ layer: CALayer) {` -- L2438: `override func updateTrackingAreas() {` -- L2445: `override func mouseEntered(with event: NSEvent) { onHover?(true) }` -- L2446: `override func mouseExited(with event: NSEvent) { holdTimer?.invalidate(); holdTimer = nil; if mouseDragAxis == nil { pressedAt = nil }; onHover?(false) }` -- L2447: `override func mouseMoved(with event: NSEvent) { onPointerMoved?() }` -- L2448: `override func acceptsFirstMouse(for event: NSEvent?) -> Bool { true }` -- L2455: `private func mouseScreenPoint(_ event: NSEvent) -> NSPoint { window?.convertPoint(toScreen: event.locationInWindow) ?? event.locationInWindow }` -- L2456: `override func mouseDown(with event: NSEvent) {` -- L2472: `override func mouseUp(with event: NSEvent) {` -- L2502: `override func mouseDragged(with event: NSEvent) {` -- L2513: `func cancelHold() { holdTimer?.invalidate(); holdTimer = nil; pressedAt = nil; mouseDragAxis = nil }` -- L2514: `func resetInteractions() {` -- L2519: `override func cancelOperation(_ sender: Any?) {` -- L2525: `override func rightMouseDown(with event: NSEvent) { if authenticationView == nil { onAuxiliaryClick?(event) } }` -- L2526: `override func smartMagnify(with event: NSEvent) { if authenticationView == nil { onSmartExpand?() } }` -- L2527: `override func swipe(with event: NSEvent) {` -- L2541: `override func draggingEntered(_ sender: NSDraggingInfo) -> NSDragOperation {` -- L2555: `override func draggingExited(_ sender: NSDraggingInfo?) {` -- L2559: `override func performDragOperation(_ sender: NSDraggingInfo) -> Bool {` -- L2574: `override func scrollWheel(with event: NSEvent) {` -- L2627: `private func currentActivitySwipe(_ distance: CGFloat, touching: Bool, velocity: CGFloat, cancelled: Bool = false) -> Bool {` -- L2631: `override func magnify(with event: NSEvent) {` -- L2656: `final class NotchShoulders: NSPanel {` -- L2658: `struct Probe {` -- L2704: `func fit(screen: NSRect, top: CGFloat, radius: CGFloat) {` -- L2720: `func m(_ p: CGPoint) -> CGPoint { CGPoint(x: p.x * sign, y: p.y) }` -- L2741: `func place(leading a: NSPoint, trailing b: NSPoint, scale: (leading: CGFloat, trailing: CGFloat),` -- L2755: `func settle(_ scale: (leading: CGFloat, trailing: CGFloat)) {` -- L2765: `private func move(_ layer: CAShapeLayer, to point: NSPoint, from old: CGFloat, to new: CGFloat, snap: Bool,` -- L2813: `private func animate(_ layer: CALayer, _ keyPath: String, from: Any, zero: Any, spring: NotchCanvasView.Spring, key: String) {` -- L2825: `func setBare(_ bare: Bool) {` -- L2834: `func pulse(width: CGFloat, keyTimes: [NSNumber], duration: CFTimeInterval, timing: [CAMediaTimingFunction]) {` -- L2847: `func attached(leading a: NSPoint, trailing b: NSPoint) -> Bool {` -- L2849: `func at(_ layer: CALayer, _ p: NSPoint) -> Bool {` -- L2867: `final class NotchContentView: NSView {` -- L2932: `func updateSnapshot(id: CGWindowID, image: CGImage?) {` -- L2936: `override func hitTest(_ point: NSPoint) -> NSView? { inert ? nil : super.hitTest(point) }` -- L2939: `func place(in rect: NSRect, content: NotchCanvasView.Content) {` -- L3016: `final class NotchDotsView: NSView {` -- L3021: `func update(count: Int, changed: Bool, y: CGFloat) {` -- L3029: `override func hitTest(_ point: NSPoint) -> NSView? { nil }` -- L3031: `override func draw(_ dirtyRect: NSRect) {` -- L3045: `final class NotchCompactView: NSView {` -- L3049: `func update(_ compact: NotchPanel.Compact?, slots: (leading: NSRect, trailing: NSRect)?) {` -- L3060: `override func hitTest(_ point: NSPoint) -> NSView? { nil }` -- L3062: `override func draw(_ dirtyRect: NSRect) {` -- L3091: `final class NotchAlertView: NSView {` -- L3096: `func update(_ alert: NotchPanel.Alert?) {` -- L3111: `override func hitTest(_ point: NSPoint) -> NSView? { nil }` -- L3113: `override func layout() {` -- L3119: `override func draw(_ dirtyRect: NSRect) {` -- L3165: `final class NotchTileView: NSView {` -- L3175: `func setSnapshot(_ image: CGImage?) {` -- L3202: `static func verb(_ kind: NotchTile.Kind) -> String {` -- L3213: `static func kindName(_ kind: NotchTile.Kind) -> String {` -- L3225: `private static func badge(_ kind: NotchTile.Kind) -> NSImage? {` -- L3240: `override func updateTrackingAreas() {` -- L3248: `override func mouseEntered(with event: NSEvent) {` -- L3255: `override func mouseExited(with event: NSEvent) {` -- L3260: `override func mouseDown(with event: NSEvent) {` -- L3264: `override func acceptsFirstMouse(for event: NSEvent?) -> Bool { true }` -- L3277: `override func draw(_ dirtyRect: NSRect) {` -- L3331: `final class NotchPeek {` -- L3367: `func close() {` - -## `prototype/App/ShadeController.swift` - -SHA256 `f22cc7af4a270af54422820beea2807235198ba823b8bb42adf098b52f85a198` - -- L8: `func retargetToActiveSpaceWindow(pid: pid_t) -> (AXUIElement, CGWindowID)? {` -- L35: `func toggle() {` -- L87: `func performNativeStickiesShade(_ win: AXUIElement) {` -- L104: `func makeShadePlan(win: AXUIElement, pos: CGPoint, size: CGSize,` -- L157: `func resolvedSourceSpaceID(windowID id: CGWindowID,` -- L169: `func shade(_ win: AXUIElement, _ id: CGWindowID,` -- L175: `func completeFold(success: Bool) {` -- L286: `func installOverlay(_ overlay: NSWindow, mode: ShadeAppearanceMode, previewImage: NSImage?) {` -- L463: `func installInteractiveNativeCollapse(barH: CGFloat) -> Bool {` -- L737: `func captureWindow(id: CGWindowID, axPos: CGPoint, size: CGSize,` -- L776: `func fastWindowCapture(_ id: CGWindowID) async -> CGImage? {` -- L783: `func captureWindowWithTimeout(id: CGWindowID, axPos: CGPoint, size: CGSize,` -- L834: `private func raceCaptureWithTimeout(id: CGWindowID, axPos: CGPoint, size: CGSize,` - -## `prototype/App/WS2AppRuntime.swift` - -SHA256 `99205e90fd9d99278da55fbfe88924e2100c4ada4223c6d35136da67cf5b6db2` - -- L3: `@MainActor final class WS2AppRuntime {` -- L31: `func day(_ date: Date) -> String {` -- L108: `private func setLockReason(_ reason: String, locked: Bool) {` -- L119: `func applicationShouldTerminate() -> NSApplication.TerminateReply {` -- L138: `private func finishQuit(updaterReply:Bool?=nil,childrenReady:Bool=false,failed:Bool=false) {` -- L144: `func openOwned() {` -- L153: `private func openModelPicker() {` -- L192: `func open() {` -- L205: `func refreshFocusSettings() {` -- L210: `func toggleFocus() {` -- L217: `@discardableResult func showSessions(_ sessions:[AgentSessions.Session], open:@escaping(WS2.Context)->Void,` -- L222: `@discardableResult func showConductor(_ state:ConductorNotch, action:@escaping(WS2ConductorView.Action)->Void) -> Bool {` -- L228: `private func publish() {` -- L236: `func stop() {` -- L249: `@objc func ws2OpenOwned() { MainActor.assumeIsolated { ws2Runtime.openOwned() } }` -- L250: `@objc func ws2OpenFocus() { MainActor.assumeIsolated { ws2Runtime.open() } }` - -## `prototype/App/WS2DeviceActionHost.swift` - -SHA256 `e969db6f1d29d4dc2af25afb99a58e90281b395480a704193de53e3b5cf2e5a7` - -- L4: `@MainActor final class WS2DeviceActionHost {` -- L35: `func start() { bridge.start() }` -- L37: `private func clear(_ id: UUID) {` -- L41: `@discardableResult func enable(_ id: UUID) -> Bool {` -- L51: `func disable(_ id: UUID) { clear(id); _ = bridge.setEnabled(false, attachment: id) }` -- L52: `func environmentChanged() {` -- L56: `private func receive(_ input: WS2ControllerInput) {` -- L96: `private static func intent(_ name: String) -> WS2SemanticInputRouter.Intent? {` -- L105: `func stop() { for id in Array(contexts.keys) { clear(id) }; bridge.stop() }` - -## `prototype/App/WS2FoldEvidenceAdapter.swift` - -SHA256 `cb7f57c8020aeda4aca842a4a48a58b5e4a70acacc02cff63a2682d426a0c264` - -- L7: `func shadeWithEvidence(_ win:AXUIElement,id:CGWindowID,pid:pid_t,recordedPosition:CGPoint?,` -- L27: `func deliverFoldEvidence(_ event:WS2FoldEvidence.Event?){` -- L33: `func mayCommitObservedFold(_ ticket:WS2FoldEvidence.Ticket)->Bool {` -- L37: `func finishFoldEvidence(_ ticket:WS2FoldEvidence.Ticket?,success:Bool){` -- L44: `func publishFoldObservation(id:CGWindowID,state:ShadeState){` -- L61: `func strictFoldObservation(id:CGWindowID,state:ShadeState)->WS2FoldEvidence.Observation{` -- L84: `func cancelFoldEvidence(id:CGWindowID,transaction:UUID){` - -## `prototype/App/WS2GameControllerBridge.swift` - -SHA256 `cf257e4e8233d7030b96e5b317d02043024d25f2d03dc27824dd9976394881ee` - -- L5: `@MainActor final class WS2GameControllerBridge: WS2ControllerBridge {` -- L9: `@MainActor private final class Entry {` -- L32: `func start() {` -- L52: `@discardableResult func setEnabled(_ enabled: Bool, attachment: UUID) -> Bool {` -- L67: `func environmentChanged() {` -- L80: `func suspendAll() { for e in entries.values { suspend(e) }; publish() }` -- L81: `private func reconcile() {` -- L97: `private func installHandler(_ e: Entry) -> Bool {` -- L108: `private func releaseHandler(_ e: Entry) {` -- L117: `private func sample(_ e: Entry) {` -- L157: `@discardableResult func feedback(attachment:UUID,start:Float,strength:Float) -> Bool {` -- L167: `private func clearFeedback(_ e:Entry) {` -- L171: `private func suspend(_ e:Entry) {` -- L177: `private func publish() {` -- L180: `func stop() {` - -## `prototype/App/WS2IslandCoordinator.swift` - -SHA256 `315bf8f9b76ead7600c8829b69c4609bf89d919f3421631b3154aedd13acd91f` - -- L3: `@MainActor protocol WS2LeaseContent: NotchInteractiveContent {` -- L6: `func revoke()` -- L8: `@MainActor final class WS2IslandCoordinator {` -- L32: `private static func displayID(_ screen: NSScreen) -> WS2.DisplayID? {` -- L35: `@discardableResult func show(_ content: NSView & WS2LeaseContent, ownerID: String, layer: WS2.Layer = .opened,` -- L60: `func inputHandle(for content: NSView) -> WS2.LeaseHandle? {` -- L65: `func handOffToAuthorization() { dismissed = nil; dismiss() }` -- L66: `func dismiss() { if let handle { leases.release(handle, at: clock.now()) } }` -- L67: `func dismiss(ifShowing content: NSView) { if view === content { dismiss() } }` -- L68: `func handOffToAuthorization(ifShowing content: NSView) -> Bool {` -- L71: `private func revoked(_ lease: WS2.LeaseHandle, reason: WS2.LeaseRevocation) {` -- L84: `private func beginAuthorization(on panel: NotchPanel) -> Bool {` -- L92: `private func endAuthorization() { if let authHandle { leases.release(authHandle,at:clock.now()) }; authHandle = nil }` -- L93: `func invalidate(_ reason: WS2.LeaseRevocation) { leases.invalidate(reason,at:clock.now()) }` -- L94: `private func reconcileDisplays() { _ = leases.snapshots(at:clock.now()) }` -- L95: `func stop() {` - -## `prototype/App/WS2ModelPickerView.swift` - -SHA256 `1da4c59ec557195a5b03760eb038b2d8fe1ecabb2f733f2c29ab554d8790f73c` - -- L4: `@MainActor final class WS2ModelPickerView: NSView, WS2LeaseContent, NSTableViewDataSource, NSTableViewDelegate {` -- L79: `override func viewDidMoveToWindow() {` -- L96: `func sync() {` -- L112: `func renderDevices(_ devices: [WS2ControllerDevice]) {` -- L128: `private func renderHint() {` -- L132: `private func showSelection() {` -- L137: `func numberOfRows(in tableView: NSTableView) -> Int { rows.count }` -- L138: `func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView? {` -- L145: `func tableViewSelectionDidChange(_ notification: Notification) {` -- L149: `@objc private func toggleDevice() {` -- L159: `@objc private func useSelection() {` -- L164: `@objc private func goBack() { if inputIsCurrent() { navigateBack?() } }` -- L165: `func revoke() {` -- L175: `func prepare(_ ticket: WS2SemanticInputRouter.Ticket) -> Bool { input.ready = isInputReady; return input.prepare(ticket) }` -- L176: `func cancelPrepared(context: WS2SemanticInputRouter.Context, presses: [UInt64]) { input.cancel(context: context, presses: presses) }` -- L177: `func execute(_ ticket: WS2SemanticInputRouter.Ticket) -> Bool { input.ready = isInputReady; return input.execute(ticket) }` -- L178: `func move(_ effect: GamepadMapping.Effect, context: WS2SemanticInputRouter.Context) -> Bool { false }` - -## `prototype/App/WS2OwnedCodexSession.swift` - -SHA256 `b05f1a6d7aeafd72f5e8d5dea6cd8a460737d57cbf319b1c242b01a5f09d2ef8` - -- L3: `/// One engine for the real App and the process-backed protocol tests. It owns exactly one` -- L4: `/// child channel and one protocol host. The host factory cannot create a second transport.` -- L5: `@MainActor final class WS2OwnedCodexSession {` -- L57: `func start() throws {` -- L62: `func startThread(cwd:String,model:String) throws { try approval.startThread(cwd:cwd,model:model);scheduleExpiry() }` -- L63: `func resumeThread(_ id:String) throws { try approval.resumeThread(id);scheduleExpiry() }` -- L64: `func startTurn(text:String,model:String,effort:String) throws { try approval.startTurn(text:text,model:model,effort:effort);scheduleExpiry() }` -- L65: `func steer(text:String,expectedTurn:String) throws { try approval.steer(text:text,expectedTurn:expectedTurn);scheduleExpiry() }` -- L66: `func interrupt() throws { try approval.interruptTurn();scheduleExpiry() }` -- L67: `func account(_ action:WS2AccountAction) throws -> WS2.RequestID {` -- L70: `func clearDiagnostics() { channel.clearDiagnostics() }` -- L71: `private func scheduleExpiry() {` -- L80: `func stop() {` - -## `prototype/App/WS2OwnedLaunchController.swift` - -SHA256 `302f4b8ad841610a8a471caf79af657a5c8bc5d10e9c0e0a8d954363160a4ed2` - -- L4: `/// AgentSessions remain the authorities for protocol state and backend sessions respectively.` -- L5: `@MainActor final class WS2OwnedLaunchController {` -- L6: `enum Phase: Equatable { case idle, checkingVersion, connecting, checkingConfig, signedOut, ready, creatingThread, sending, running, interrupting, completed, failed, stopping, stopped }` -- L7: `private enum Query { case config, account, login, cancelLogin, logout }` -- L8: `private struct Submission { let text:String;let model:String;let effort:String }` -- L9: `private struct Association { let project:WS2OwnedScope.Project;let thread:String }` -- L60: `@discardableResult func editDraft(_ value:String) -> Bool {` -- L63: `@discardableResult func selectProject(_ url:URL) -> Bool {` -- L74: `@discardableResult func selectExecutable(_ url:URL) -> Bool {` -- L78: `@discardableResult func launch(consent:Bool,diagnostics:Bool=false) -> Bool {` -- L94: `private func begin(_ prepared:WS2LocalLaunchProfile,diagnostics:Bool) {` -- L120: `private func currentIsValid() -> Bool {` -- L125: `private func revalidate() -> Bool {` -- L129: `@discardableResult func chooseModel(_ value:String) -> Bool {` -- L133: `@discardableResult func chooseEffort(_ value:String) -> Bool {` -- L137: `@discardableResult func send(_ draft:String,hasMarkedText:Bool) -> Bool {` -- L149: `private func deliverSubmission() throws {` -- L155: `@discardableResult func resumeLast() -> Bool {` -- L161: `@discardableResult func interrupt() -> Bool {` -- L166: `@discardableResult func login() -> Bool {` -- L171: `@discardableResult func logout() -> Bool {` -- L176: `func cancelLogin() {` -- L183: `static func browserLoginURL(_ text:String) -> URL? {` -- L189: `private func receive(_ event:CodexWire.Event,connection:UUID) {` -- L256: `private func readAccount() throws {` -- L260: `private func synchronizeThreadAndTurn() throws {` -- L275: `private func emit(_ event:AgentSessions.Event,turn:String?=nil) {` -- L279: `private func ended(connection:UUID) {` -- L285: `func stop(reason:String="已断开连接",clearPrivate:Bool=false) {` -- L303: `func environmentChanged() {` -- L307: `private func fail(_ message:String) {` -- L310: `private func changed() { onChange?();if !isBusy { onQuiescent?() } }` - -## `prototype/App/WS2OwnedSessionView.swift` - -SHA256 `d3360e975925f28b112b32d4c51b9a75d195a507629793e5e5b3d3eed006434f` - -- L4: `@MainActor final class WS2OwnedSessionView: NSView, WS2LeaseContent, NSTextViewDelegate {` -- L45: `func row(_ views:[NSView]) -> NSStackView { let r=NSStackView(views:views);r.orientation = .horizontal;r.spacing=8;return r }` -- L75: `private func configure(_ text:NSTextView,editable:Bool) {` -- L82: `func scheduleRender() {` -- L89: `func render() {` -- L117: `func textDidChange(_ notification:Notification) {` -- L121: `private func choose(directory:Bool) {` -- L132: `@objc private func pickProject() { choose(directory:true) }` -- L133: `@objc private func pickExecutable() { choose(directory:false) }` -- L134: `@objc private func consentChanged() { render() }` -- L135: `@objc private func start() { guard inputIsCurrent() else { return };_=controller.launch(consent:consent.state == .on,diagnostics:diagnostic.state == .on);render() }` -- L136: `@objc private func logIn() { guard inputIsCurrent() else { return };_=controller.login() }` -- L137: `@objc private func cancelLogIn() { guard inputIsCurrent() else { return };controller.cancelLogin() }` -- L138: `@objc private func logOut() { guard inputIsCurrent() else { return };_=controller.logout() }` -- L139: `@objc private func resumeSession() { guard inputIsCurrent() else { return };_=controller.resumeLast() }` -- L140: `@objc private func showModelPicker() {` -- L145: `@objc private func selectModel() { guard inputIsCurrent(),model.indexOfSelectedItem>0 else { return };_=controller.chooseModel(modelIDs[model.indexOfSelectedItem-1]) }` -- L146: `@objc private func selectEffort() { guard inputIsCurrent(),effort.indexOfSelectedItem>0 else { return };_=controller.chooseEffort(effortIDs[effort.indexOfSelectedItem-1]) }` -- L147: `@objc private func sendDraft() { guard inputIsCurrent() else { return };_=controller.send(draft.string,hasMarkedText:draft.hasMarkedText()) }` -- L148: `@objc private func interruptTurn() { guard inputIsCurrent() else { return };_=controller.interrupt() }` -- L149: `@objc private func stopSession() { guard inputIsCurrent() else { return };controller.stop() }` -- L150: `@objc private func toggleDiagnostics() { guard inputIsCurrent() else { return };displayingDiagnostics.toggle();diagnostics.title=displayingDiagnostics ? "返回回复":"查看诊断";render() }` -- L151: `func revoke() { renderTask?.cancel();renderTask=nil;inputIsCurrent={false};draft.inputContext?.discardMarkedText();draft.string="";output.string="";onCancel?() }` -- L154: `@MainActor private final class WS2OwnedDocumentView:NSView { override var isFlipped:Bool { true } }` - -## `prototype/Core/AgentSessions.swift` - -SHA256 `218b3910959c810d5662d608b8ab9560d5232cf5e69930c330b400c940c65d7c` - -- L4: `struct AgentSessions: Sendable {` -- L5: `enum Control: Sendable { case observed, owned }` -- L6: `enum Status: Equatable, Sendable { case idle, running, waiting, completed, failed, stale, disconnected }` -- L7: `struct Session: Sendable {` -- L17: `enum Event: Sendable {` -- L23: `enum Effect: Equatable, Sendable {` -- L28: `private struct Pending: Sendable {` -- L33: `enum TypedAction: Sendable {` -- L37: `static func risk(of action: TypedAction) -> WS2.Risk {` -- L64: `func request(for key: WS2.ApprovalKey) -> WS2.ApprovalRequest? { suspended ? nil : pending[key]?.request }` -- L65: `mutating func receive(_ envelope: WS2.Envelope) -> [Effect] {` -- L151: `mutating func choose(_ key: WS2.ApprovalKey, choice: WS2.ApprovalChoice,` -- L173: `mutating func authorizationFinished(_ outcome: WS2.AuthorizationOutcome, now: WS2.Instant) -> [Effect] {` -- L189: `mutating func tick(at now: WS2.Instant) -> [Effect] {` -- L200: `mutating func suspend(at now: WS2.Instant) -> [Effect] {` -- L210: `mutating func resume(at now: WS2.Instant) -> [Effect] {` -- L223: `private mutating func expire(at now: WS2.Instant) -> [Effect] {` -- L233: `private mutating func clearApprovals(for session: WS2.SessionKey) -> [Effect] {` -- L240: `private mutating func restoreStatus(for key: WS2.SessionKey, fallback: Status) {` -- L244: `private func orderedKeys() -> [WS2.SessionKey] {` -- L247: `private func approvalOrder(_ a: WS2.ApprovalKey, _ b: WS2.ApprovalKey) -> Bool {` -- L258: `private func valid(_ summary: String) -> Bool { !summary.isEmpty && summary.utf8.count <= 16_384 }` -- L259: `private func validID(_ id: String) -> Bool { !id.isEmpty && id.utf8.count <= 512 }` - -## `prototype/Core/CodexWire.swift` - -SHA256 `ed2e3e209bb3ff42c6ba8273b323f2b6f70bdf48daa4cc21f91060d9bfebecf3` - -- L3: `indirect enum WireJSON: Codable, Equatable, Sendable {` -- L15: `func encode(to encoder: any Encoder) throws {` -- L33: `struct CodexWire: Sendable {` -- L34: `enum Failure: Error { case oversized, closed, malformed, notReady, unsupported, stale, capacity }` -- L35: `enum State: Equatable, Sendable { case fresh, initializing, listingModels, ready, closed }` -- L36: `struct Pending: Sendable { let method: String; let deadline: WS2.Instant }` -- L37: `enum Event: Equatable, Sendable {` -- L42: `static let maximumFrame = 1_048_576 // Recommendation: bounded metadata stream; not a measured protocol maximum.` -- L59: `mutating func drain() -> [Data] { defer { outbound.removeAll(keepingCapacity:true) }; return outbound }` -- L60: `private mutating func send(_ value: WireJSON) throws {` -- L66: `private mutating func request(_ method: String, _ params: [String:WireJSON]?, now: WS2.Instant) throws -> WS2.RequestID {` -- L74: `mutating func initialize(now: WS2.Instant) throws {` -- L79: `mutating func startThread(cwd: String, model: String, now: WS2.Instant) throws {` -- L87: `mutating func resumeThread(id: String, now: WS2.Instant) throws {` -- L95: `mutating func startTurn(text: String, model: String, effort: String, now: WS2.Instant) throws {` -- L104: `mutating func steer(text: String, expectedTurnID: String, now: WS2.Instant) throws {` -- L110: `mutating func interrupt(now: WS2.Instant) throws {` -- L115: `mutating func readConfig(cwd:String,now:WS2.Instant) throws -> WS2.RequestID {` -- L119: `mutating func readAccount(now: WS2.Instant) throws -> WS2.RequestID {` -- L123: `mutating func beginBrowserLogin(now: WS2.Instant) throws -> WS2.RequestID {` -- L127: `mutating func cancelLogin(id: String, now: WS2.Instant) throws -> WS2.RequestID {` -- L131: `mutating func logout(now: WS2.Instant) throws -> WS2.RequestID {` -- L135: `mutating func ingest(_ chunk: Data, now: WS2.Instant) throws -> [Event] {` -- L156: `private mutating func receive(_ v: WireJSON, now: WS2.Instant) throws -> [Event] {` -- L237: `mutating func denyApproval(_ id: WS2.RequestID) throws {` -- L246: `enum ApprovalWireDecision { case acceptOnce, decline }` -- L247: `mutating func enqueueApprovalResponse(_ id: WS2.RequestID, expectedMethod: String,` -- L260: `mutating func tick(now: WS2.Instant) -> [Event] {` -- L266: `mutating func close() {` - -## `prototype/Core/Contracts.swift` - -SHA256 `12fffc2e5cf207aa0ca6b4c371f28b9eec8c2b374b5e1a06d8943878891b2420` - -- L6: `enum WS2 {` -- L8: `struct Instant: Hashable, Comparable, Sendable, Codable {` -- L20: `func adding(_ duration: UInt64) -> Self {` -- L25: `func elapsed(since earlier: Self) -> UInt64 {` -- L32: `enum Duration {` -- L39: `struct TimeGate: Sendable {` -- L41: `mutating func accept(_ now: Instant) -> Bool {` -- L50: `struct EventGate: Sendable {` -- L53: `mutating func accept(sequence: UInt64, at now: Instant) -> Bool {` -- L62: `enum TokenDomain: String, Hashable, Sendable, Codable { case unspecified, focusTimer, presenceLock, conductor, interaction }` -- L66: `struct Token: Hashable, Sendable, Codable {` -- L76: `struct TokenSource: Sendable {` -- L80: `mutating func next() -> Token? {` -- L88: `enum Provider: String, Hashable, Sendable, Codable, CaseIterable {` -- L94: `struct SessionKey: Hashable, Sendable, Codable {` -- L101: `struct Context: Hashable, Sendable, Codable {` -- L114: `struct Envelope: Sendable {` -- L124: `struct Digest: Hashable, Sendable, Codable {` -- L138: `func encode(to encoder: Encoder) throws {` -- L145: `struct ModelID: Hashable, Sendable, Codable {` -- L151: `struct ExecutionConfig: Hashable, Sendable, Codable {` -- L159: `struct CostBinding: Hashable, Sendable, Codable {` -- L167: `enum Risk: String, Sendable, Codable { case normal, high, unknown }` -- L170: `enum RequestID: Hashable, Sendable, Codable {` -- L176: `struct ApprovalKey: Hashable, Sendable, Codable {` -- L183: `struct ApprovalRequest: Equatable, Sendable {` -- L200: `enum ApprovalChoice: Sendable { case confirm, deny, returnToHost }` -- L203: `struct AuthorizationIntent: Equatable, Sendable {` -- L211: `enum AuthorizationOutcome: Sendable {` -- L218: `enum ApprovalDisposition: String, Equatable, Sendable { case deny, deferToHost }` -- L221: `enum Button: String, Hashable, Sendable, CaseIterable {` -- L226: `enum ButtonPhase: String, Sendable { case down, up, cancel, heldHalfSecond, heldOneSecond, clickOnly }` -- L229: `struct ButtonEvent: Equatable, Sendable {` -- L238: `struct Point: Equatable, Sendable {` -- L245: `enum Action: String, Equatable, Sendable {` -- L254: `enum Layer: Int, Comparable, Sendable, CaseIterable {` -- L260: `struct DisplayID: Hashable, Comparable, Sendable, Codable {` -- L266: `enum Fault: String, Equatable, Sendable {` -- L273: `protocol WS2Clock: Sendable {` -- L274: `func now() -> WS2.Instant` -- L278: `struct WS2ContinuousClock: WS2Clock, Sendable {` -- L281: `func now() -> WS2.Instant {` -- L296: `struct LeaseRequest: Sendable {` -- L304: `struct LeaseHandle: Hashable, Sendable {` -- L310: `enum LeaseRevocation: Sendable {` -- L313: `enum LeaseDecision: Sendable {` -- L319: `struct VisibilitySnapshot: Sendable {` - -## `prototype/Core/GamepadMapping.swift` - -SHA256 `672cf04922a50acca6eecd2727b135f07a05acae74ab285e9fb92a23ea39a855` - -- L3: `struct GamepadMapping: Sendable {` -- L4: `struct Vector: Equatable, Sendable { var x: Double; var y: Double; static let zero = Vector(x: 0, y: 0) }` -- L5: `enum Effect: Equatable, Sendable { case pointer(Vector), scroll(Vector), desktop(Int), releaseTriggers }` -- L15: `mutating func configure(enabled: Bool, gameInFront: Bool) -> [Effect] {` -- L21: `static func axis(_ v: Vector) -> Vector {` -- L29: `mutating func sample(left: Vector, right: Vector, at now: Double) -> [Effect] {` -- L41: `mutating func trigger(left: Bool, value: Double, desktopEnabled: Bool) -> [Effect] {` -- L51: `mutating func disconnect() -> [Effect] { configure(enabled:false,gameInFront:false) }` - -## `prototype/Core/WS2DeviceActionContracts.swift` - -SHA256 `bb69fd284e1fe4921c90e68f770915e724ce6198f12156662f81b04161a809a0` - -- L4: `struct WS2ControllerDevice: Equatable, Sendable {` -- L9: `enum WS2ControllerInput: Sendable {` -- L14: `struct WS2ControllerEnvironment: Sendable {` -- L21: `@MainActor protocol WS2ControllerBridge: AnyObject {` -- L24: `func start()` -- L25: `func stop()` -- L26: `func suspendAll()` -- L27: `func environmentChanged()` -- L28: `@discardableResult func setEnabled(_ enabled: Bool, attachment: UUID) -> Bool` -- L30: `@MainActor protocol WS2DeviceActionSink: AnyObject {` -- L34: `func prepare(_ ticket: WS2SemanticInputRouter.Ticket) -> Bool` -- L35: `func cancelPrepared(context: WS2SemanticInputRouter.Context, presses: [UInt64])` -- L37: `func execute(_ ticket: WS2SemanticInputRouter.Ticket) -> Bool` -- L38: `func move(_ effect: GamepadMapping.Effect, context: WS2SemanticInputRouter.Context) -> Bool` - -## `prototype/Core/WS2DeviceInputGate.swift` - -SHA256 `60c5be94786910c4719bcc4b56ff7ff217708e3981591922f33bbe9b384ae662` - -- L3: `struct WS2DeviceInputGate: Sendable {` -- L4: `enum Domain: Sendable { case desktop, conductor, review }` -- L5: `enum Outcome: Equatable, Sendable { case ignored, began(UInt64), ended(UInt64), cancelled(UInt64) }` -- L14: `mutating func connect(_ id: UUID) { attachment = id; enabled = false; neutralSeen.removeAll(); down.removeAll(); sequence = nil; time = .init(); currentDomain = nil }` -- L15: `mutating func enable(_ id: UUID) -> Bool {` -- L19: `mutating func suspend() -> [UInt64] {` -- L22: `mutating func disconnect() -> [UInt64] { let ids = suspend(); attachment = nil; currentDomain = nil; return ids }` -- L24: `mutating func changeDomain(to domain: Domain) -> [UInt64] {` -- L30: `mutating func button(attachment id: UUID, name: String, pressed: Bool, sequence: UInt64,` -- L49: `struct WS2HIDButtonMap: Sendable {` -- L50: `struct Identity: Equatable, Sendable { let registryID: UInt64; let vendor: Int; let product: Int }` -- L52: `func button(from actual: Identity, page: Int, usage: Int, value: Int) -> (WS2.Button, Bool)? {` - -## `prototype/Core/WS2FocusEffectPlan.swift` - -SHA256 `60ccb717e3641f20e1fc499dc1e432ba37493e3c4abe8e28c73b2ebc19419829` - -- L4: `struct WS2FocusEffectPlan: Sendable {` -- L7: `struct Window: Equatable, Sendable { let identity: Identity; let revision: UInt64 }` -- L8: `enum Kind: Equatable, Sendable { case tuck(Window, WS2.Token, UInt64), restore(Receipt) }` -- L9: `struct Operation: Equatable, Sendable { let id: UUID; let kind: Kind }` -- L10: `enum Outcome: Sendable { case completed(revision: UInt64), unchanged, userChanged, unknown }` -- L11: `enum Failure: Error { case invalid, capacity, overflow, unexpectedCompletion }` -- L24: `mutating func transition(run: WS2.Token?, windows: [Window]) throws {` -- L31: `mutating func setSuspended(_ value: Bool) { suspended = value }` -- L32: `mutating func manualChange(_ identity: Identity) {` -- L38: `private static func identity(_ kind: Kind) -> Identity {` -- L41: `mutating func next() -> Operation? {` -- L51: `func mayCommit(_ operation: Operation) -> Bool {` -- L60: `mutating func complete(_ operation: Operation, _ outcome: Outcome) throws {` - -## `prototype/Core/WS2FocusWindowOwnership.swift` - -SHA256 `69a0b9a82fd67c318d92b4bcedebd6f980b094f24b37197758fe1cf85f5ab3c7` - -- L3: `struct WS2FocusWindowOwnership: Sendable {` -- L4: `struct Identity: Hashable, Sendable { let pid: Int32; let processStart: UInt64; let windowID: UInt32; let windowGeneration: UInt64 }` -- L5: `struct Receipt: Equatable, Sendable {` -- L13: `mutating func record(_ receipt: Receipt, didComplete: Bool) -> Bool {` -- L18: `mutating func takeForRestore(_ id: Identity, run: WS2.Token, effectGeneration: UInt64, liveRevision: UInt64) -> Receipt? {` -- L24: `mutating func manualChange(_ id: Identity) { owned[id] = nil }` -- L25: `mutating func clear() { owned.removeAll() }` - -## `prototype/Core/WS2FoldEvidence.swift` - -SHA256 `3d1dd3583a1e6f93a4d721e6b4587a0cd700c993722fee2f7a03428919f420dd` - -- L5: `struct WS2FoldEvidence: Sendable {` -- L6: `struct Ticket: Equatable, Sendable { let request:UUID;let window:UInt32;let pid:Int32 }` -- L7: `enum Observation:String,Sendable,Codable { case verifiedHidden, stillVisible, unknown, notStarted }` -- L8: `struct Event:Equatable,Sendable { let ticket:Ticket;let transaction:UUID?;let observation:Observation;let late:Bool }` -- L9: `private struct Entry:Sendable { let ticket:Ticket;let issuedAt:Double;let deadline:Double;var attempted=false;var transaction:UUID?;var last:Observation? }` -- L12: `func contains(_ ticket:Ticket)->Bool{entries[ticket.request]?.ticket == ticket}` -- L13: `mutating func begin(request:UUID,window:UInt32,pid:Int32,at now:Double,timeout:Double=30)->Ticket?{` -- L19: `func mayStart(_ t:Ticket,at now:Double)->Bool {` -- L23: `mutating func markMutation(_ t:Ticket,at now:Double)->Bool{` -- L26: `mutating func bind(_ t:Ticket,transaction:UUID)->Bool{` -- L30: `func ticket(window:UInt32,transaction:UUID)->Ticket?{` -- L33: `mutating func observe(_ t:Ticket,transaction:UUID,observation:Observation)->Event?{` -- L38: `mutating func failed(_ t:Ticket)->Event?{` -- L42: `mutating func expire(_ t:Ticket,at now:Double)->Event?{` -- L48: `mutating func forget(_ t:Ticket){if contains(t){entries[t.request]=nil}}` -- L49: `private mutating func emit(_ t:Ticket,observation:Observation)->Event?{` - -## `prototype/Core/WS2SelectionModel.swift` - -SHA256 `c8fb3c0ac6564970d2daedee4d4708799ef0014a94a7bb22b99f18a85d86cf4c` - -- L4: `struct WS2SelectionModel: Sendable {` -- L5: `struct Item: Equatable, Sendable { let id: String; let enabled: Bool }` -- L6: `struct Activation: Equatable, Sendable { let revision: UInt64; let serial: UInt64; let itemID: String }` -- L7: `enum Failure: Error { case invalidSnapshot, exhausted }` -- L14: `mutating func replace(_ next: [Item]) throws {` -- L25: `@discardableResult mutating func move(_ direction: Int, expectedRevision: UInt64) -> Bool {` -- L34: `@discardableResult mutating func select(id: String, expectedRevision: UInt64) -> Bool {` -- L38: `mutating func reserveActivation(expectedRevision: UInt64) -> Activation? {` -- L44: `mutating func consume(_ value: Activation) -> String? {` -- L49: `mutating func revoke() { pending = nil; items = []; selectedID = nil; if revision < .max { revision += 1 } else { exhausted = true } }` - -## `prototype/Core/WS2SemanticInputRouter.swift` - -SHA256 `7055bb6994681ac67dd6b166374ab00923a8e1d76b9133021d922925ef2ac3c6` - -- L4: `struct WS2SemanticInputRouter: Sendable {` -- L5: `enum Intent: Equatable, Sendable { case previous, next, cancel, openSelection, interruptTurn }` -- L6: `struct Context: Equatable, Sendable {` -- L10: `struct Ticket: Equatable, Sendable { let context: Context; let press: UInt64; let intent: Intent }` -- L11: `enum Failure: Error { case invalid, replay, unavailable, stale, forbidden, capacity }` -- L16: `@discardableResult mutating func enable(_ context: Context) -> Bool {` -- L20: `mutating func revoke() { active = nil; seen.removeAll(); reserved.removeAll(); enabled = false }` -- L23: `mutating func reserve(press: UInt64, intent: Intent, context: Context, unlocked: Bool, sinkReady: Bool) throws -> Ticket {` -- L36: `func isCurrent(_ ticket: Ticket, live: Context, unlocked: Bool, sinkReady: Bool) -> Bool {` -- L39: `@discardableResult mutating func consume(_ ticket: Ticket, live: Context, unlocked: Bool, sinkReady: Bool) -> Bool {` - -## `prototype/Core/WS2VisibleListInput.swift` - -SHA256 `919b37b1add050fa65660fa70127a8dc131e659675ebedf791b86277d5acf425` - -- L4: `@MainActor final class WS2VisibleListInput {` -- L14: `func replace(_ items: [WS2SelectionModel.Item], selectedID: String?) throws {` -- L20: `func bind(_ context: WS2SemanticInputRouter.Context?) {` -- L24: `@discardableResult func select(_ id: String) -> Bool {` -- L30: `@discardableResult func prepare(_ ticket: WS2SemanticInputRouter.Ticket) -> Bool {` -- L39: `func cancel(context: WS2SemanticInputRouter.Context, presses: [UInt64]) {` -- L43: `func cancelAll() {` -- L48: `@discardableResult func execute(_ ticket: WS2SemanticInputRouter.Ticket) -> Bool {` -- L69: `func revoke() { ready = false; context = nil; prepared = nil; selection.revoke(); onArmed?(nil) }` - -## `prototype/Support/WS2DuplexProcess.swift` - -SHA256 `1efe08a7d6987fdac80d87f345f1d2ce212e6a5dddac3a71e086e247d8ab579a` - -- L11: `@MainActor final class WS2DuplexProcess {` -- L12: `enum Failure: Error { case invalid, io(Int32), notRunning }` -- L13: `enum End: Equatable { case localStop, eof, processExit, io(Int32), framing, timeout, revoked }` -- L14: `struct Termination: Equatable, Sendable { let status: Int32; let wasSignalled: Bool }` -- L57: `func start() throws {` -- L96: `private func pollChild() {` -- L120: `@discardableResult func admit(_ lines: [Data], connection: UUID, deadline: Double,` -- L131: `@discardableResult func admitWireFrames(_ frames: [Data], connection: UUID, deadline: Double,` -- L143: `private func armWrite() { if !writeArmed, !stopped { writeArmed = true; writer?.resume() } }` -- L144: `private func disarmWrite() { if writeArmed { writeArmed = false; writer?.suspend() } }` -- L145: `private func scheduleDeadline() {` -- L157: `private func writeReady() {` -- L183: `private func readReady(checkChild: Bool = true) {` -- L205: `private func readDiagnosticReady() {` -- L220: `func clearDiagnostics() { diagnostics?.clear() }` -- L221: `private static func writeWithoutSIGPIPE(_ fd: Int32, _ bytes: Data) -> Int {` -- L236: `func stop(_ reason: End = .localStop) {` -- L246: `// The reaper timer survives protocol closure. A stopped pipe is not reaping evidence.` - -## `prototype/Support/WS2FocusEffectExecutor.swift` - -SHA256 `674a8760579e1eccf401f6c949d6fcf69b74257943fe795b043f255b7c3887bf` - -- L3: `@MainActor protocol WS2FocusMutationPort: AnyObject {` -- L6: `func perform(_ operation: WS2FocusEffectPlan.Operation,` -- L10: `@MainActor final class WS2FocusEffectExecutor {` -- L16: `func transition(run: WS2.Token?, windows: [WS2FocusEffectPlan.Window]) throws {` -- L19: `func suspend() { plan.setSuspended(true) }` -- L20: `func resumeAfterVerifiedUnlock() { plan.setSuspended(false); pump() }` -- L21: `func manualChange(_ identity: WS2FocusEffectPlan.Identity) { plan.manualChange(identity); pump() }` -- L23: `func end() throws { try transition(run: nil, windows: []) }` -- L24: `private func pump() {` - -## `prototype/Support/WS2ProjectDirectory.swift` - -SHA256 `7a9c30764d3199652eccc46265c4d7afae6c05cf65e1ee2a5be65c73bbd628a2` - -- L4: `enum WS2ProjectDirectory {` -- L5: `enum Failure: Error { case notAbsoluteFileURL, notDirectory, missingIdentity }` -- L6: `static func read(_ url: URL) throws -> WS2OwnedScope.Directory {` -- L18: `static func contains(canonicalRoot root: String, canonicalCandidate candidate: String) -> Bool {` - -## `prototype/WindowShade.swift` - -SHA256 `0c489c4b721315ef147f7b3898aa388377eac8b766ada421fda395716f16828a` - -- L79: `func framesAlmostEqual(_ a: NSRect, _ b: NSRect, tolerance: CGFloat = 0.5) -> Bool {` -- L86: `func cgWindowID(for window: NSWindow) -> CGWindowID? {` -- L94: `final class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {` -- L96: `final class PendingTitlebarTripleClick {` -- L110: `struct PendingSpaceReturn {` -- L118: `struct ReconcileAXTarget {` -- L125: `struct ReconcileAXSnapshot {` -- L304: `func applicationDidFinishLaunching(_ note: Notification) {` -- L418: `func applicationShouldTerminate(_ sender: NSApplication) -> NSApplication.TerminateReply {` -- L423: `@objc func systemAppearanceOptionsChanged(_ note: Notification) {` -- L454: `func installStandardMainMenu() {` -- L464: `private func migrateDistractingDefaultSounds() {` -- L493: `func refreshPinnedPreviewTarget(reason: String) {` -- L500: `private func setupPinnedPreviewFocusTracking() {` -- L513: `private func scheduleTitlebarPrefetch() {` -- L534: `private func schedulePinnedPreviewTargetRefresh() {` -- L554: `func focusSizedFrame(pos: CGPoint, size: CGSize,` -- L593: `func configureShadedAccessibility(for overlay: NSWindow, id: CGWindowID,` -- L619: `func currentShadedOverlayID() -> CGWindowID? {` -- L637: `@objc func finishOnboarding() {` -- L641: `@objc func dismissOnboarding() {` -- L652: `private func runTool(_ path: String, _ args: [String]) -> Int32? {` -- L669: `private func readTool(_ path: String, _ args: [String]) -> String? {` -- L685: `private func runDefaults(_ args: [String]) { runTool("/usr/bin/defaults", args) }` -- L686: `private func readDefaults(_ args: [String]) -> String? { readTool("/usr/bin/defaults", args) }` -- L687: `private func killDock() { runTool("/usr/bin/killall", ["Dock"]) } // 让 Dock 重读 mineffect` -- L689: `private func writeDockMinimizeEffect(_ value: String, reason: String) -> Bool {` -- L702: `private func persistDockMinimizeEffectSession(original: String?) {` -- L713: `private func clearDockMinimizeEffectSession() {` -- L720: `private func restoreDockMinimizeEffect(original: String?) {` -- L728: `private func recoverStaleDockMinimizeEffectSessionIfNeeded() {` -- L739: `private func enableScaleMinimizeEffectForSession() {` -- L767: `private func restoreDockMinimizeEffect() {` -- L784: `func currentOperationState(_ id: CGWindowID) -> WindowShadeState {` -- L790: `func transitionOperationState(id: CGWindowID, to next: WindowShadeState,` -- L803: `func applicationWillTerminate(_ note: Notification) {` -- L830: `func ensureAccessibility() -> Bool {` -- L837: `@objc func toggleAction() { toggle() }` -- L848: `@objc func focusCurrentAppAction() {` -- L862: `@objc func unshadeFromMenu(_ sender: NSMenuItem) {` -- L867: `@objc func quit() {` -- L880: `func setupEventTapWhenTrusted() {` -- L896: `func setupEventTap() -> Bool {` diff --git a/tests/archive/part8/sources/primary-fetch.json b/tests/archive/part8/sources/primary-fetch.json deleted file mode 100644 index f2bd644a..00000000 --- a/tests/archive/part8/sources/primary-fetch.json +++ /dev/null @@ -1,27 +0,0 @@ -[ - { - "url": "https://developer.apple.com/documentation/gamecontroller/gcdevice/handlerqueue.md", - "status": "failed", - "error": "" - }, - { - "url": "https://developer.apple.com/documentation/gamecontroller/gcextendedgamepad/valuechangedhandler.md", - "status": "failed", - "error": "" - }, - { - "url": "https://developer.apple.com/documentation/gamecontroller/gccontroller/shouldmonitorbackgroundevents.md", - "status": "failed", - "error": "" - }, - { - "url": "https://developer.apple.com/documentation/appkit/nstableview/scrollrowtovisible(_:).md", - "status": "failed", - "error": "" - }, - { - "url": "https://developer.apple.com/documentation/applicationservices/axuielementcopyattributevalue(_:_:_:).md", - "status": "failed", - "error": "" - } -] \ No newline at end of file diff --git a/tests/archive/part8/sources/privacy-delta.json b/tests/archive/part8/sources/privacy-delta.json deleted file mode 100644 index 9d9c6eca..00000000 --- a/tests/archive/part8/sources/privacy-delta.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "id": "R8-gamecontroller-inventory", - "source": "GCController controllers/profile/vendorName", - "when": "仅模型选择页开启", - "retention": "页面/本次连接内存", - "off_device": false, - "limitations": "名称不是身份;没有本轮硬件采集" - }, - { - "id": "R8-gamecontroller-input", - "source": "显式启用附件的button状态", - "when": "当前页+key window+前台+本次启用", - "retention": "有界held/ticket,关闭和失焦撤销", - "off_device": false, - "limitations": "采用模型不提交草稿;motion/feedback未启用" - }, - { - "id": "R8-model-selection", - "source": "既有CLI模型目录", - "when": "同一连接可选模型阶段", - "retention": "现有控制器与页面内存", - "off_device": false, - "limitations": "后续用户单独发送仍沿原CLI数据去向" - }, - { - "id": "R8-fold-observation", - "source": "本次窗口AX/隐藏/alpha状态", - "when": "原收起真实事务及有限观察重试", - "retention": "临时64项通知账;不新存截图/标题,原journal不变", - "off_device": false, - "limitations": "30/60秒为主队列调度目标;不是T3所有权" - } -] diff --git a/tests/archive/part8/tests/FoldTests.swift b/tests/archive/part8/tests/FoldTests.swift deleted file mode 100644 index e3cad86f..00000000 --- a/tests/archive/part8/tests/FoldTests.swift +++ /dev/null @@ -1,29 +0,0 @@ -import Foundation -@main struct FoldTests { - @MainActor static func main() throws { - let t=TestLog() - func ticket(_ book:inout WS2FoldEvidence, window:UInt32=1, at:Double=0)->WS2FoldEvidence.Ticket {book.begin(request:UUID(),window:window,pid:123,at:at)!} - t.begin("FOLD01 admission is not evidence");var a=WS2FoldEvidence();let x=ticket(&a);t.check(a.contains(x),"pending");t.check(a.ticket(window:1,transaction:UUID())==nil,"no invented transaction");t.end() - t.begin("FOLD02 hidden needs physical attempt and bound transaction");let tx=UUID();t.check(a.observe(x,transaction:tx,observation:.verifiedHidden)==nil,"no unbound success");t.check(!a.bind(x,transaction:tx),"bind before attempt refused");t.end() - t.begin("FOLD03 exactly one ordinary completion");t.check(a.markMutation(x,at:1),"marked");t.check(a.bind(x,transaction:tx),"bound");let e=a.observe(x,transaction:tx,observation:.verifiedHidden);t.check(e?.late==false && e?.observation == .verifiedHidden,"first actual result");t.check(a.observe(x,transaction:tx,observation:.verifiedHidden)==nil && a.count==0,"no replay or retention");t.end() - t.begin("FOLD04 wrong transaction cannot complete");var b=WS2FoldEvidence();let y=ticket(&b);_=b.markMutation(y,at:1);_=b.bind(y,transaction:tx);t.check(b.observe(y,transaction:UUID(),observation:.verifiedHidden)==nil,"foreign generation ignored");t.check(b.contains(y),"correct pending intact");t.end() - t.begin("FOLD05 deadline before hide proves not started");var c=WS2FoldEvidence();let z=ticket(&c);let timeout=c.expire(z,at:30);t.check(timeout?.observation == .notStarted,"no attempt");t.check(!c.markMutation(z,at:31),"late screenshot cannot mutate");t.end() - t.begin("FOLD06 deadline after hide remains unknown");var d=WS2FoldEvidence();let d1=ticket(&d);_=d.markMutation(d1,at:1);_=d.bind(d1,transaction:tx);t.check(d.expire(d1,at:30)?.observation == .unknown,"not success or false visible");t.check(d.contains(d1),"late evidence retained");t.end() - t.begin("FOLD07 late success is marked separately");let late=d.observe(d1,transaction:tx,observation:.verifiedHidden);t.check(late?.late==true && late?.transaction==tx,"late evidence not new promise");t.check(!d.contains(d1),"finished");t.end() - t.begin("FOLD08 early failure means no hiding attempt");var f=WS2FoldEvidence();let f1=ticket(&f);t.check(f.failed(f1)?.observation == .notStarted,"refused plan");t.check(f.count==0,"callback can release");t.end() - t.begin("FOLD09 failure after mutation not called cancelled");let f2=ticket(&f);_=f.markMutation(f2,at:1);t.check(f.failed(f2)?.observation == .unknown,"may have hidden");t.check(f.contains(f2),"no discarded uncertainty");t.end() - t.begin("FOLD10 error cannot turn into notStarted after write");_=f.bind(f2,transaction:tx);t.check(f.observe(f2,transaction:tx,observation:.notStarted)==nil,"forbidden downgrade");t.check(f.failed(f2)==nil,"same result not reemitted");t.end() - t.begin("FOLD11 visible observation can later confirm hidden");var g=WS2FoldEvidence();let g1=ticket(&g);_=g.markMutation(g1,at:1);_=g.bind(g1,transaction:tx);t.check(g.observe(g1,transaction:tx,observation:.stillVisible)?.late==false,"first observation");t.check(g.observe(g1,transaction:tx,observation:.verifiedHidden)?.late==true,"async OS transition");t.end() - t.begin("FOLD12 repeated unknown is silent");var h=WS2FoldEvidence();let h1=ticket(&h);_=h.markMutation(h1,at:1);_=h.bind(h1,transaction:tx);_=h.observe(h1,transaction:tx,observation:.unknown);t.check(h.observe(h1,transaction:tx,observation:.unknown)==nil,"no repeated notification");t.check(h.expire(h1,at:30)==nil,"old timer silent");t.end() - t.begin("FOLD13 window-id reuse cannot consume old ticket");h.forget(h1);let h2=ticket(&h,at:31);_=h.markMutation(h2,at:32);t.check(h.observe(h1,transaction:tx,observation:.verifiedHidden)==nil,"old request ignored");t.check(h.contains(h2),"new ticket still present");t.end() - t.begin("FOLD14 duplicate live window refused");var j=WS2FoldEvidence();_=ticket(&j);t.check(j.begin(request:UUID(),window:1,pid:123,at:1)==nil,"one current observer per window");t.check(j.count==1,"no growth");t.end() - t.begin("FOLD15 bounded observer capacity");var k=WS2FoldEvidence();for n in 1...64{_=ticket(&k,window:UInt32(n))};t.check(k.count==64,"fixed bound");t.check(k.begin(request:UUID(),window:65,pid:123,at:0)==nil,"overflow rejected");t.end() - t.begin("FOLD16 bad time and identifiers refused");var m=WS2FoldEvidence();t.check(m.begin(request:UUID(),window:0,pid:1,at:0)==nil,"zero window");t.check(m.begin(request:UUID(),window:1,pid:0,at:0)==nil,"zero pid");t.check(m.begin(request:UUID(),window:1,pid:1,at:.nan)==nil,"nan");t.check(m.begin(request:UUID(),window:1,pid:1,at:0,timeout:31)==nil,"timeout bound");t.check(m.begin(request:UUID(),window:1,pid:1,at:Double.greatestFiniteMagnitude)==nil,"nonadvancing deadline");t.end() - t.begin("FOLD17 exact deadline prevents mutation");let m1=ticket(&m);t.check(m.mayStart(m1,at:29.99),"before deadline");t.check(!m.markMutation(m1,at:30),"at deadline");t.check(m.expire(m1,at:29.99)==nil,"timer cannot expire early");t.end() - t.begin("FOLD18 second transaction cannot overwrite binding");var n=WS2FoldEvidence();let n1=ticket(&n);_=n.markMutation(n1,at:1);t.check(n.bind(n1,transaction:tx),"first bind");t.check(!n.bind(n1,transaction:UUID()),"cannot rebind newer state");t.check(n.ticket(window:1,transaction:tx)==n1,"original binding retained");t.end() - t.begin("FOLD19 callback after bounded release is inert");n.forget(n1);t.check(n.observe(n1,transaction:tx,observation:.verifiedHidden)==nil,"no stale callback");t.check(n.count==0,"storage released");t.end() - t.begin("FOLD20 forged ticket cannot use matching request UUID");var p=WS2FoldEvidence();let p1=ticket(&p);let forged=WS2FoldEvidence.Ticket(request:p1.request,window:999,pid:123);t.check(!p.markMutation(forged,at:1),"window mismatch");t.check(p.failed(forged)==nil,"full ticket checked");t.end() - t.begin("FOLD21 backward time cannot start mutation");var q=WS2FoldEvidence();let q1=ticket(&q,at:10);t.check(!q.markMutation(q1,at:9),"before creation refused");t.check(q.markMutation(q1,at:10),"created now allowed");t.end() - try t.save(URL(fileURLWithPath:CommandLine.arguments[1])) - } -} diff --git a/tests/archive/part8/tests/InputFlowTests.swift b/tests/archive/part8/tests/InputFlowTests.swift deleted file mode 100644 index 824e3b44..00000000 --- a/tests/archive/part8/tests/InputFlowTests.swift +++ /dev/null @@ -1,49 +0,0 @@ -import Foundation -@MainActor func waitUntil(_ predicate:()->Bool)async->Bool{ - let start=ProcessInfo.processInfo.systemUptime - while !predicate(),ProcessInfo.processInfo.systemUptime-start<5{try? await Task.sleep(nanoseconds:10_000_000)} - return predicate() -} -@main struct InputFlowTests { - @MainActor static func main()async throws{ - let t=TestLog(),fm=FileManager.default - let root=fm.temporaryDirectory.resolvingSymlinksInPath().appendingPathComponent("ws2-r8-flow-"+UUID().uuidString) - try fm.createDirectory(at:root,withIntermediateDirectories:true,attributes:[.posixPermissions:0o700]);defer{try? fm.removeItem(at:root)} - let project=root.appendingPathComponent("project"),exe=root.appendingPathComponent("fake-codex-picker.py") - try fm.createDirectory(at:project,withIntermediateDirectories:true,attributes:[.posixPermissions:0o700]);try Data(contentsOf:URL(fileURLWithPath:CommandLine.arguments[2])).write(to:exe) - try fm.setAttributes([.posixPermissions:0o700],ofItemAtPath:exe.path) - var mayUse=true - let c=WS2OwnedLaunchController(profileRoot:root.appendingPathComponent("state"),mayUse:{mayUse}) - t.begin("IFLOW01 real pipe catalogue supplies selection rows") - t.check(c.selectProject(project),"local project");t.check(c.selectExecutable(exe),"local fixture");t.check(c.launch(consent:true),"explicit launch") - let ready=await waitUntil({c.phase == .ready});t.check(ready,"actual handshake");t.check(c.models.keys.sorted()==["fixture-a","fixture-b"],"two actual backend rows");t.check(c.canChooseModel,"valid UI state") - let h=try InputHarness();try h.sink.input.replace(c.models.keys.sorted().map{.init(id:$0,enabled:true)},selectedID:c.model) - h.backend=c.session!.connectionID;h.sink.input.onActivate={c.chooseModel($0)} - t.check(h.enable(),"local enable of substitute attachment");t.end() - func log()throws->[String:Any]{["text":try String(contentsOf:exe.deletingPathExtension().appendingPathExtension("messages.ndjson"),encoding:.utf8)]} - t.begin("IFLOW02 device chooses model without sending work") - h.tap("down");h.tap("a");t.check(c.model=="fixture-b","selected current backend b");let before=try log()["text"] as! String - t.check(!before.contains("thread/start") && !before.contains("turn/start"),"selection creates no model job");t.check(c.store.visibleSessions.isEmpty,"no fabricated session");t.end() - t.begin("IFLOW03 separate local send uses selected model") - t.check(!c.send("组字中",hasMarkedText:true),"IME protected");t.check(c.send("明确发送",hasMarkedText:false),"explicit send");t.check(!c.canChooseModel,"selection disabled while preparing") - let complete=await waitUntil({c.phase == .completed});t.check(complete,"real synthetic stream completed") - let bytes=try String(contentsOf:exe.deletingPathExtension().appendingPathExtension("messages.ndjson"),encoding:.utf8) - let messages=try bytes.split(separator:"\n").map{try JSONSerialization.jsonObject(with:Data($0.utf8)) as! [String:Any]} - let starts=messages.filter{($0["method"] as? String)=="thread/start"} - let turns=messages.filter{($0["method"] as? String)=="turn/start"} - t.check(starts.count==1 && turns.count==1,"one job only");t.check((starts[0]["params"] as? [String:Any])?["model"] as? String == "fixture-b","selected model on actual wire");t.end() - t.begin("IFLOW04 late release after local capability loss cannot change model") - h.holdA();mayUse=false;c.environmentChanged();h.sink.input.ready=c.canChooseModel;h.host.environmentChanged();h.releaseA() - t.check(!h.active,"device revoked");t.check(!c.canChooseModel,"closed capability");let ended=await waitUntil({!c.isBusy});t.check(ended,"owned process actually reaped");t.end() - t.begin("IFLOW05 reconnect uses a new backend epoch") - mayUse=true;t.check(c.launch(consent:true),"explicit reconnect");let again=await waitUntil({c.phase == .ready});t.check(again,"reconnected") - t.check(c.session!.connectionID != h.backend,"new scope");h.backend=c.session!.connectionID;h.sink.input.ready=true;h.host.environmentChanged() - t.check(!h.active,"reconnect never reenables device");t.check(h.enable(),"local reenabling");t.end() - t.begin("IFLOW06 project replacement rejected by actual model selector") - try fm.moveItem(at:project,to:root.appendingPathComponent("previous-project")) - try fm.createDirectory(at:project,withIntermediateDirectories:true,attributes:[.posixPermissions:0o700]) - t.check(!c.chooseModel("fixture-a"),"actual select revalidates replaced inode") - let done=await waitUntil({!c.isBusy});t.check(done,"invalid scope shuts down and reaps");h.host.stop();t.check(h.bridge.installed.isEmpty,"all input subscriptions removed");t.end() - try t.save(URL(fileURLWithPath:CommandLine.arguments[1])) - } -} diff --git a/tests/archive/part8/tests/InputHarness.swift b/tests/archive/part8/tests/InputHarness.swift deleted file mode 100644 index 811c0536..00000000 --- a/tests/archive/part8/tests/InputHarness.swift +++ /dev/null @@ -1,59 +0,0 @@ -import Foundation -/// Explicit test substitute for GameController. Uses the production gate; never claims SDK/device evidence. -@MainActor final class TestBridge: WS2ControllerBridge { - struct Entry { var gate=WS2DeviceInputGate();var sequence:UInt64=0 } - let env:()->WS2ControllerEnvironment, emit:(WS2ControllerInput)->Void - var entries:[UUID:Entry]=[:], started=false, installed=Set() - var devicesChanged:(([WS2ControllerDevice])->Void)? - init(env:@escaping()->WS2ControllerEnvironment,emit:@escaping(WS2ControllerInput)->Void) {self.env=env;self.emit=emit} - var devices:[WS2ControllerDevice] { entries.map{.init(attachment:$0.key,label:"Same label",enabled:$0.value.gate.enabled)} } - func publish(){devicesChanged?(devices)} - func attach(_ id:UUID){var e=Entry();e.gate.connect(id);entries[id]=e;publish()} - func detach(_ id:UUID){_=setEnabled(false,attachment:id);entries[id]=nil;publish()} - func start(){started=true;publish()} - func stop(){suspendAll();started=false;entries.removeAll();publish()} - func suspendAll(){for id in Array(entries.keys){_=setEnabled(false,attachment:id)}} - func environmentChanged(){let e=env();if !e.unlocked || !e.sinkReady || e.gameOrUnknownInFront || e.domain == .review {suspendAll()}} - func setEnabled(_ enabled:Bool,attachment:UUID)->Bool { - guard var e=entries[attachment] else{return false} - if enabled { - guard started,env().unlocked,env().sinkReady,!env().gameOrUnknownInFront,env().domain != .review else{return false} - _=e.gate.enable(attachment);_=e.gate.changeDomain(to:env().domain);installed.insert(attachment) - } else { let presses=e.gate.suspend();entries[attachment]=e;installed.remove(attachment);emit(.cancel(attachment:attachment,presses:presses)) } - entries[attachment]=e;publish();return true - } - func raw(_ id:UUID,_ name:String,_ pressed:Bool){ - guard var e=entries[id] else{return};e.sequence += 1 - let state=env();let result=e.gate.button(attachment:id,name:name,pressed:pressed,sequence:e.sequence,at:.init(nanoseconds:e.sequence),unlocked:state.unlocked,domain:state.domain) - entries[id]=e;if result != .ignored {emit(.button(attachment:id,name:name,outcome:result))} - } - func tap(_ id:UUID,_ name:String){raw(id,name,false);raw(id,name,true);raw(id,name,false)} -} -@MainActor final class TestListSink:WS2DeviceActionSink { - let input=WS2VisibleListInput() - var ready:Bool{input.ready};var motionReady:Bool{false} - func prepare(_ t:WS2SemanticInputRouter.Ticket)->Bool{input.prepare(t)} - func cancelPrepared(context:WS2SemanticInputRouter.Context,presses:[UInt64]){input.cancel(context:context,presses:presses)} - func execute(_ t:WS2SemanticInputRouter.Ticket)->Bool{input.execute(t)} - func move(_ effect:GamepadMapping.Effect,context:WS2SemanticInputRouter.Context)->Bool{false} -} -@MainActor final class InputHarness { - let sink=TestListSink(), id=UUID();var lease=UUID(),backend=UUID(), unlocked=true,frontBlocked=false - var domain=WS2DeviceInputGate.Domain.conductor - var chosen:[String]=[],cancelled=0;var host:WS2DeviceActionHost!,bridge:TestBridge! - init()throws{ - try sink.input.replace([.init(id:"a",enabled:true),.init(id:"b",enabled:true),.init(id:"c",enabled:true)],selectedID:"a") - sink.input.ready=true;sink.input.onActivate={[weak self] id in self?.chosen.append(id);return true} - sink.input.onCancel={[weak self] in self?.cancelled += 1} - host=WS2DeviceActionHost(sink:sink,liveContext:{[weak self] id in self?.context(id)},frontIsGameOrUnknown:{[weak self] in self?.frontBlocked ?? true},unlocked:{[weak self] in self?.unlocked ?? false},makeBridge:{env,emit in - let b=TestBridge(env:env,emit:emit);bridge=b;return b - }) - host.start();bridge.attach(id) - } - func context(_ id:UUID)->WS2SemanticInputRouter.Context? { .init(attachment:id,lease:lease,domain:domain,targetRevision:sink.input.selection.revision,backendEpoch:backend) } - @discardableResult func enable(_ other:UUID?=nil)->Bool {let id=other ?? id;sink.input.bind(context(id));return host.enable(id)} - func tap(_ name:String){bridge.tap(id,name)} - var active:Bool{bridge.devices.first(where:{$0.attachment == id})?.enabled == true} - func holdA(){bridge.raw(id,"a",false);bridge.raw(id,"a",true)} - func releaseA(){bridge.raw(id,"a",false)} -} diff --git a/tests/archive/part8/tests/InputTests.swift b/tests/archive/part8/tests/InputTests.swift deleted file mode 100644 index b88e97eb..00000000 --- a/tests/archive/part8/tests/InputTests.swift +++ /dev/null @@ -1,41 +0,0 @@ -import Foundation -@main struct InputTests { - @MainActor static func main() throws { - let t=TestLog() - func run(_ name:String,_ body:(InputHarness)throws->Void)throws{t.begin(name);let h=try InputHarness();try body(h);h.host.stop();t.end()} - try run("INPUT01 discovery does not enable or install") {h in t.check(h.bridge.installed.isEmpty,"no installed test callback");h.tap("a");t.check(h.chosen.isEmpty,"nothing selected")} - try run("INPUT02 explicit enable and fresh release") {h in t.check(h.enable(),"enabled");h.tap("a");t.check(h.chosen == ["a"],"current actual id once")} - try run("INPUT03 held A before enable must become neutral") {h in _=h.enable();h.bridge.raw(h.id,"a",true);h.releaseA();t.check(h.chosen.isEmpty,"held key not accepted");h.tap("a");t.check(h.chosen == ["a"],"fresh press accepted")} - try run("INPUT04 navigation uses stable item") {h in _=h.enable();h.tap("down");h.tap("a");t.check(h.chosen == ["b"],"selected b not a")} - try run("INPUT05 previous at beginning is not failure") {h in _=h.enable();h.tap("up");t.check(h.active,"still enabled");t.check(h.sink.input.selection.selectedID == "a","no wrap")} - try run("INPUT06 next at end is not failure") {h in _=h.enable();for _ in 0..<4{h.tap("down")};t.check(h.active,"not disabled at edge");t.check(h.sink.input.selection.selectedID == "c","last row")} - try run("INPUT07 hold A then navigate does not activate new row") {h in _=h.enable();h.holdA();h.tap("down");h.releaseA();t.check(h.chosen.isEmpty,"no retarget");t.check(!h.active,"stale prepared intent rejected")} - try run("INPUT08 mouse change invalidates pending A") {h in _=h.enable();h.holdA();_=h.sink.input.select("c");h.releaseA();t.check(h.chosen.isEmpty,"no mouse-key race")} - try run("INPUT09 same-row click invalidates pending A") {h in _=h.enable();h.holdA();_=h.sink.input.select("a");h.releaseA();t.check(h.chosen.isEmpty,"same id still cancels")} - try run("INPUT10 list reorder revokes context") {h in _=h.enable();h.holdA();try h.sink.input.replace([.init(id:"c",enabled:true),.init(id:"b",enabled:true),.init(id:"a",enabled:true)],selectedID:"a");h.host.environmentChanged();h.releaseA();t.check(h.chosen.isEmpty,"no stale activation");t.check(!h.active,"new revision requires enable")} - try run("INPUT11 page lease change cancels") {h in _=h.enable();h.holdA();h.lease=UUID();h.host.environmentChanged();h.releaseA();t.check(h.chosen.isEmpty && !h.active,"no old page action")} - try run("INPUT12 backend epoch change cancels") {h in _=h.enable();h.holdA();h.backend=UUID();h.host.environmentChanged();h.releaseA();t.check(h.chosen.isEmpty && !h.active,"old backend refused")} - try run("INPUT13 lock revokes without auto reenabling") {h in _=h.enable();h.holdA();h.unlocked=false;h.host.environmentChanged();h.unlocked=true;h.host.environmentChanged();h.releaseA();t.check(h.chosen.isEmpty && !h.active,"unlock not resume")} - try run("INPUT14 foreground loss revokes") {h in _=h.enable();h.holdA();h.frontBlocked=true;h.host.environmentChanged();h.frontBlocked=false;h.releaseA();t.check(h.chosen.isEmpty && !h.active,"no background action")} - try run("INPUT15 sink unavailable or IME guard revokes") {h in _=h.enable();h.holdA();h.sink.input.ready=false;h.host.environmentChanged();h.releaseA();t.check(h.chosen.isEmpty && !h.active,"input unavailable")} - try run("INPUT16 approvals cannot reuse list device") {h in _=h.enable();h.holdA();h.domain = .review;h.host.environmentChanged();h.releaseA();t.check(h.chosen.isEmpty && !h.active,"review never accepted");t.check(!h.enable(),"cannot enable review")} - try run("INPUT17 detach invalidates pending target") {h in _=h.enable();h.holdA();h.bridge.detach(h.id);h.bridge.emit(.button(attachment:h.id,name:"a",outcome:.ended(1)));t.check(h.chosen.isEmpty,"late release discarded")} - try run("INPUT18 identical label is not attachment identity") {h in _=h.enable();let other=UUID();h.bridge.attach(other);h.bridge.tap(other,"a");t.check(h.chosen.isEmpty,"same label no admission");t.check(!h.bridge.installed.contains(other),"no handler")} - try run("INPUT19 enabling second device disables first") {h in _=h.enable();h.holdA();let other=UUID();h.bridge.attach(other);t.check(h.enable(other),"new local enable");h.releaseA();h.bridge.tap(other,"a");t.check(h.chosen == ["a"],"only new input");t.check(h.bridge.installed == [other],"one owner")} - try run("INPUT20 replayed end cannot select twice") {h in _=h.enable();h.tap("a");h.bridge.emit(.button(attachment:h.id,name:"a",outcome:.ended(1)));t.check(h.chosen.count == 1,"single consume")} - try run("INPUT21 repeated down does not duplicate") {h in _=h.enable();h.holdA();h.bridge.raw(h.id,"a",true);h.releaseA();t.check(h.chosen.count == 1,"debounced physical press")} - try run("INPUT22 unknown controls cannot activate") {h in _=h.enable();h.tap("x");h.tap("leftShoulder");t.check(h.chosen.isEmpty && h.active,"unknown buttons no action")} - try run("INPUT23 cancel opens no model") {h in _=h.enable();h.tap("b");t.check(h.cancelled == 1 && h.chosen.isEmpty,"one navigation cancel")} - try run("INPUT24 mismatched release control fails closed") {h in _=h.enable();h.holdA();h.bridge.emit(.button(attachment:h.id,name:"b",outcome:.ended(1)));t.check(h.chosen.isEmpty && h.cancelled == 0 && !h.active,"do not reinterpret down")} - try run("INPUT25 stop releases all resources") {h in _=h.enable();h.holdA();h.host.stop();h.bridge.emit(.button(attachment:h.id,name:"a",outcome:.ended(1)));t.check(h.bridge.installed.isEmpty && !h.bridge.started,"stopped");t.check(h.chosen.isEmpty,"no late action")} - try run("INPUT26 reentrant model action may stop host") {h in _=h.enable();h.sink.input.onActivate={id in h.chosen.append(id);h.host.stop();return true};h.tap("a");t.check(h.chosen == ["a"] && !h.bridge.started,"safe stop inside sink")} - try run("INPUT27 duplicate ids revoke selection") {h in _=h.enable();h.holdA();do{try h.sink.input.replace([.init(id:"a",enabled:true),.init(id:"a",enabled:true)],selectedID:"a");t.check(false,"must throw")}catch{t.check(true,"duplicate rejected")};h.host.environmentChanged();h.releaseA();t.check(h.chosen.isEmpty,"no retained activation")} - try run("INPUT28 disabled rows skipped") {h in try h.sink.input.replace([.init(id:"a",enabled:true),.init(id:"b",enabled:false),.init(id:"c",enabled:true)],selectedID:"a");_=h.enable();h.tap("down");h.tap("a");t.check(h.chosen == ["c"],"disabled row not chosen")} - try run("INPUT29 absent attachment cannot enable") {h in t.check(!h.enable(UUID()),"unknown denied");t.check(h.bridge.installed.isEmpty,"not installed")} - try run("INPUT30 cancelled press cannot activate") {h in _=h.enable();h.holdA();h.bridge.emit(.cancel(attachment:h.id,presses:[1]));h.releaseA();t.check(h.chosen.isEmpty,"cancelled down discarded")} - try run("INPUT31 armed indication tracks captured target") {h in var indicated:[String?]=[];h.sink.input.onArmed={indicated.append($0)};_=h.enable();h.holdA();t.check(indicated.last! == "a","armed actual target");h.tap("down");t.check(indicated.last! == nil,"navigation clears indication");h.releaseA();t.check(h.chosen.isEmpty,"cannot retarget")} - try run("INPUT32 reentrant revoke while preparing is safe") {h in _=h.enable();h.sink.input.onArmed={id in if id != nil { h.host.stop() }};h.holdA();h.releaseA();t.check(h.chosen.isEmpty && !h.bridge.started,"prepare callback cannot resurrect host")} - try run("INPUT33 chosen model invalidation during prepare fails closed") {h in _=h.enable();h.sink.input.onArmed={id in if id != nil { _=h.sink.input.select("b") }};h.holdA();h.releaseA();t.check(h.chosen.isEmpty,"target changed during reservation rejected")} - try t.save(URL(fileURLWithPath:CommandLine.arguments[1])) - } -} diff --git a/tests/archive/part8/tests/TEST-CASES.md b/tests/archive/part8/tests/TEST-CASES.md deleted file mode 100644 index e6c452bd..00000000 --- a/tests/archive/part8/tests/TEST-CASES.md +++ /dev/null @@ -1,78 +0,0 @@ -# 本次用例索引 - -这是实际测试输出的目录,不增加场景数。硬件/AX替身边界见VALIDATION。 - -## input - -|用例|断言|本轮结果| -|---|---:|---| -|INPUT01 discovery does not enable or install|2|PASS| -|INPUT02 explicit enable and fresh release|2|PASS| -|INPUT03 held A before enable must become neutral|2|PASS| -|INPUT04 navigation uses stable item|1|PASS| -|INPUT05 previous at beginning is not failure|2|PASS| -|INPUT06 next at end is not failure|2|PASS| -|INPUT07 hold A then navigate does not activate new row|2|PASS| -|INPUT08 mouse change invalidates pending A|1|PASS| -|INPUT09 same-row click invalidates pending A|1|PASS| -|INPUT10 list reorder revokes context|2|PASS| -|INPUT11 page lease change cancels|1|PASS| -|INPUT12 backend epoch change cancels|1|PASS| -|INPUT13 lock revokes without auto reenabling|1|PASS| -|INPUT14 foreground loss revokes|1|PASS| -|INPUT15 sink unavailable or IME guard revokes|1|PASS| -|INPUT16 approvals cannot reuse list device|2|PASS| -|INPUT17 detach invalidates pending target|1|PASS| -|INPUT18 identical label is not attachment identity|2|PASS| -|INPUT19 enabling second device disables first|3|PASS| -|INPUT20 replayed end cannot select twice|1|PASS| -|INPUT21 repeated down does not duplicate|1|PASS| -|INPUT22 unknown controls cannot activate|1|PASS| -|INPUT23 cancel opens no model|1|PASS| -|INPUT24 mismatched release control fails closed|1|PASS| -|INPUT25 stop releases all resources|2|PASS| -|INPUT26 reentrant model action may stop host|1|PASS| -|INPUT27 duplicate ids revoke selection|2|PASS| -|INPUT28 disabled rows skipped|1|PASS| -|INPUT29 absent attachment cannot enable|2|PASS| -|INPUT30 cancelled press cannot activate|1|PASS| -|INPUT31 armed indication tracks captured target|3|PASS| -|INPUT32 reentrant revoke while preparing is safe|1|PASS| -|INPUT33 chosen model invalidation during prepare fails closed|1|PASS| - -## fold - -|用例|断言|本轮结果| -|---|---:|---| -|FOLD01 admission is not evidence|2|PASS| -|FOLD02 hidden needs physical attempt and bound transaction|2|PASS| -|FOLD03 exactly one ordinary completion|4|PASS| -|FOLD04 wrong transaction cannot complete|2|PASS| -|FOLD05 deadline before hide proves not started|2|PASS| -|FOLD06 deadline after hide remains unknown|2|PASS| -|FOLD07 late success is marked separately|2|PASS| -|FOLD08 early failure means no hiding attempt|2|PASS| -|FOLD09 failure after mutation not called cancelled|2|PASS| -|FOLD10 error cannot turn into notStarted after write|2|PASS| -|FOLD11 visible observation can later confirm hidden|2|PASS| -|FOLD12 repeated unknown is silent|2|PASS| -|FOLD13 window-id reuse cannot consume old ticket|2|PASS| -|FOLD14 duplicate live window refused|2|PASS| -|FOLD15 bounded observer capacity|2|PASS| -|FOLD16 bad time and identifiers refused|5|PASS| -|FOLD17 exact deadline prevents mutation|3|PASS| -|FOLD18 second transaction cannot overwrite binding|3|PASS| -|FOLD19 callback after bounded release is inert|2|PASS| -|FOLD20 forged ticket cannot use matching request UUID|2|PASS| -|FOLD21 backward time cannot start mutation|2|PASS| - -## flow - -|用例|断言|本轮结果| -|---|---:|---| -|IFLOW01 real pipe catalogue supplies selection rows|7|PASS| -|IFLOW02 device chooses model without sending work|3|PASS| -|IFLOW03 separate local send uses selected model|6|PASS| -|IFLOW04 late release after local capability loss cannot change model|3|PASS| -|IFLOW05 reconnect uses a new backend epoch|5|PASS| -|IFLOW06 project replacement rejected by actual model selector|3|PASS| diff --git a/tests/archive/part8/tests/TestLog.swift b/tests/archive/part8/tests/TestLog.swift deleted file mode 100644 index 2c0de55f..00000000 --- a/tests/archive/part8/tests/TestLog.swift +++ /dev/null @@ -1,16 +0,0 @@ -import Foundation -@MainActor final class TestLog { - struct Record:Codable { let name:String;let assertions:Int;let result:String } - private(set) var assertions=0; private(set) var records:[Record]=[] - private var began=0, name="" - func begin(_ name:String) { self.name=name;began=assertions } - func check(_ value:@autoclosure()->Bool,_ reason:String) { - assertions += 1 - guard value() else { fatalError("FAIL \(name): \(reason)") } - } - func end() { records.append(.init(name:name,assertions:assertions-began,result:"PASS"));print("PASS \(name) [\(assertions-began)]") } - func save(_ url:URL) throws { - let encoder=JSONEncoder();encoder.outputFormatting=[.prettyPrinted,.sortedKeys] - try encoder.encode(records).write(to:url);print("TOTAL \(records.count) scenarios, \(assertions) assertions") - } -} diff --git a/tests/archive/part8/tests/check-build.py b/tests/archive/part8/tests/check-build.py deleted file mode 100644 index b62edaf5..00000000 --- a/tests/archive/part8/tests/check-build.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python3 -"""Actual typecheck for Foundation files; parse-only for Mac files. Never runs the app.""" -import argparse,hashlib,json,pathlib,platform,subprocess,time -p=argparse.ArgumentParser();p.add_argument('--repo',type=pathlib.Path,required=True);a=p.parse_args();base=a.repo.resolve();r=base/'prototype';P=pathlib.Path(__file__).resolve().parent.parent;out=P/'validation';steps=[] -def run(argv): - st=time.monotonic();v=subprocess.run(list(map(str,argv)),text=True,capture_output=True,timeout=60) - steps.append(dict(argv=list(map(str,argv)),exit_code=v.returncode,stdout=v.stdout,stderr=v.stderr,elapsed_seconds=time.monotonic()-st));(out/'build-checks.json').write_text(json.dumps(steps,ensure_ascii=False,indent=2));print(v.stdout,end='');print(v.stderr,end='') - if v.returncode:raise SystemExit(v.returncode) -core='Contracts WS2FocusWindowOwnership WS2DeviceInputGate PairingAttemptWindow PairingTLV CodexWire WS2CompanionFrame WS2ApprovalReview FocusTimer GamepadMapping WS2BoundedOutbox WS2FocusEffectPlan WS2SemanticInputRouter WS2DiagnosticTail WS2OwnedScope WS2SelectionModel WS2ConnectionBudget WS2StrictJSON WS2OwnedProtocolHost WS2QuitBarrier AgentSessions WS2DeviceActionContracts WS2VisibleListInput WS2FoldEvidence'.split() -support='WS2PeerRepository WS2PairSetupServer WS2PairSetupCrypto WS2FocusEffectExecutor WS2DuplexProcess WS2ProjectDirectory WS2LocalLaunchProfile WS2VersionProbe'.split() -# 本仓库把共享仲裁放在 Core/(v8 候选里在 App/)。 -app_files=['FocusTimerHost','WS2OwnedCodexSession','WS2OwnedLaunchController','WS2DeviceActionHost'] -coord=r/'Core/InteractionCoordinator.swift' if (r/'Core/InteractionCoordinator.swift').exists() else r/'App/InteractionCoordinator.swift' -inputs=[r/'Core'/(x+'.swift') for x in core]+[r/'Support'/(x+'.swift') for x in support]+[coord]+[r/'App'/(x+'.swift') for x in app_files] -run(['swiftc','--version']);run(['cc','--version']);run(['uname','-a']);run(['bash','-n',r/'build.sh']) -run(['swiftc','-swift-version','6','-strict-concurrency=complete','-warnings-as-errors','-I',r/'Native','-typecheck',*inputs]) -old=json.loads((P/'sources/base-files.json').read_text());changed=[] -for f in sorted(r.rglob('*.swift')): - if old.get(str(f.relative_to(base)))!=hashlib.sha256(f.read_bytes()).hexdigest():changed.append(f) -for f in changed:run(['swiftc','-frontend','-parse',f]) -(out/'build-boundary.json').write_text(json.dumps(dict(foundation_count=len(inputs),foundation_inputs=[str(x.relative_to(base)) for x in inputs],syntax_count=len(changed),syntax_inputs=[str(x.relative_to(base)) for x in changed],mac_sdk='NOT RUN',platform=platform.platform()),indent=2)) -print('Foundation:',len(inputs),'Syntax only:',len(changed)) diff --git a/tests/archive/part8/tests/check-wiring.py b/tests/archive/part8/tests/check-wiring.py deleted file mode 100644 index 920ae070..00000000 --- a/tests/archive/part8/tests/check-wiring.py +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env python3 -"""Text-level regression guards only. They cannot validate SDK types or actual device/window behavior.""" -import argparse,json,pathlib -p=argparse.ArgumentParser();p.add_argument('--repo',required=True,type=pathlib.Path);a=p.parse_args();r=a.repo/'prototype';P=pathlib.Path(__file__).resolve().parent.parent -read=lambda s:(r/s).read_text();checks=[] -def ck(name,condition):checks.append(dict(name=name,result='PASS' if condition else 'FAIL',level='static source guard')) -gc=read('App/WS2GameControllerBridge.swift');disc=gc.split('private func reconcile()')[1].split('private func installHandler')[0] -ck('discovery does not install handlers','valueChangedHandler =' not in disc and 'handlerQueue =' not in disc) -ck('existing input handler refused','pad.valueChangedHandler == nil' in gc) -ck('background setting not assigned','shouldMonitorBackgroundEvents =' not in gc) -ck('handler release restores queue','e.controller.handlerQueue = queue' in gc and 'extendedGamepad?.valueChangedHandler = nil' in gc) -v=read('App/WS2ModelPickerView.swift') -ck('model page cannot call send or approve',all(x not in v for x in ['sendDraft(','.send(','.approve(','.consumeGrant('])) -ck('model adoption uses real controller','self.controller.chooseModel(id)' in v) -ck('page lease and key window checked','currentLease?() == expectedLease' in v and 'window?.isKeyWindow == true' in v) -ck('armed target visibly represented','松开 A 使用:' in v and 'input.onArmed =' in v) -ck('refocus refresh does not re-enable','Regaining focus refreshes local controls, but never re-enables a controller.' in v) -ad=read('App/WS2FoldEvidenceAdapter.swift') -ck('strict missing-value policy exists','func strictFoldObservation' in ad and 'case .none,.ownWindowOrderedOut,.quickLookClosed: return .unknown' in ad) -ck('retries retain transaction not entire state','let transactionID = state.foldTransactionID' in ad and 'live.foldTransactionID==transactionID' in ad) -sh=read('App/ShadeController.swift') -ck('physical attempt bound to ledger','foldEvidence.markMutation' in sh and 'mayCommitObservedFold' in sh and 'foldEvidence.bind' in sh) -ck('notch uses actual evidence caller','shadeWithEvidence' in read('App/Notch.swift')) -ck('read-only profile kept','WS2ReadOnlyProtocolHost' in read('App/WS2OwnedCodexSession.swift')) -(P/'validation/wiring-static.json').write_text(json.dumps(dict(checks=checks,application_build='NOT RUN',hardware='NOT RUN'),ensure_ascii=False,indent=2)+'\n') -for c in checks:print(c['result'],c['name']) -raise SystemExit(0 if all(c['result']=='PASS' for c in checks) else 1) diff --git a/tests/archive/part8/tests/run-mac-check.sh b/tests/archive/part8/tests/run-mac-check.sh deleted file mode 100755 index 5ab36c95..00000000 --- a/tests/archive/part8/tests/run-mac-check.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -# Isolated optimized compile/link only: no app launch, install, signing or publish. -set -euo pipefail -if [[ "$(uname -s)" != "Darwin" ]]; then - echo "NOT RUN: requires macOS SDK and Metal tools"; exit 78 -fi -BASE="${1:?Supply v8 candidate repo}" -BASE="$(cd "$BASE" && pwd)" -command -v xcrun >/dev/null -xcrun --find swiftc >/dev/null -xcrun --find metal >/dev/null -BUILD="$(mktemp -d)"; trap 'rm -rf "$BUILD"' EXIT -mkdir "$BUILD/repo" -# Do not source the user's signing environment or copy build outputs into this check. -rsync -a --exclude=.git --exclude=.build --exclude='*.app' --exclude=local-codesign.env "$BASE/" "$BUILD/repo/" -cd "$BUILD/repo/prototype" -echo "Isolated SDK check of $BASE; local-codesign.env excluded" -bash ./build.sh --check diff --git a/tests/archive/part8/tests/run.py b/tests/archive/part8/tests/run.py deleted file mode 100644 index df2020f8..00000000 --- a/tests/archive/part8/tests/run.py +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env python3 -"""Compile actual candidate files. The test bridge is explicitly synthetic; no AppKit shim.""" -import argparse,json,pathlib,subprocess,tempfile,time,platform,sys -p=argparse.ArgumentParser();p.add_argument('--repo',type=pathlib.Path,required=True);p.add_argument('--suite',choices=['input','fold','flow'],default='input');a=p.parse_args() -here=pathlib.Path(__file__).resolve().parent.parent;out=here/'validation';out.mkdir(exist_ok=True) -R=a.repo.resolve()/'prototype';steps=[] -def run(cmd,timeout=60): - st=time.monotonic() - try: - r=subprocess.run(list(map(str,cmd)),text=True,capture_output=True,timeout=timeout) - steps.append(dict(argv=list(map(str,cmd)),exit_code=r.returncode,elapsed_seconds=time.monotonic()-st,stdout=r.stdout,stderr=r.stderr)) - except subprocess.TimeoutExpired as e: - steps.append(dict(argv=list(map(str,cmd)),exit_code=None,status='TIMEOUT',elapsed_seconds=time.monotonic()-st));raise - finally:(out/(a.suite+'-commands.json')).write_text(json.dumps(steps,ensure_ascii=False,indent=2)) - print(r.stdout,end='');print(r.stderr,end='') - if r.returncode:raise SystemExit(r.returncode) -base=['Core/Contracts.swift','Core/GamepadMapping.swift','Core/WS2DeviceInputGate.swift','Core/WS2SelectionModel.swift','Core/WS2SemanticInputRouter.swift','Core/WS2DeviceActionContracts.swift','Core/WS2VisibleListInput.swift','App/WS2DeviceActionHost.swift'] -with tempfile.TemporaryDirectory(prefix='ws2-r8-') as td: - binary=pathlib.Path(td)/'tests';extra=[] - if a.suite=='input':tests=['InputHarness.swift','InputTests.swift'] - elif a.suite=='fold':base=['Core/WS2FoldEvidence.swift'];tests=['FoldTests.swift'] - else: - base += ['Core/WS2QuitBarrier.swift','Core/WS2StrictJSON.swift','Core/CodexWire.swift','Core/WS2OwnedProtocolHost.swift','Core/WS2BoundedOutbox.swift','Core/WS2DiagnosticTail.swift','Core/WS2OwnedScope.swift','Core/AgentSessions.swift','Support/WS2ProjectDirectory.swift','Support/WS2LocalLaunchProfile.swift','Support/WS2VersionProbe.swift','Support/WS2DuplexProcess.swift','App/WS2OwnedCodexSession.swift','App/WS2OwnedLaunchController.swift'] - obj=pathlib.Path(td)/'child.o';run(['cc','-std=c11','-O2','-Wall','-Wextra','-Werror','-c',R/'Native/WS2Child.c','-o',obj]);extra=['-I',R/'Native',obj];tests=['InputHarness.swift','InputFlowTests.swift'] - cmd=['swiftc','-swift-version','6','-strict-concurrency=complete','-warnings-as-errors',*extra,*[R/x for x in base],here/'tests/TestLog.swift',*[here/'tests'/x for x in tests],'-o',binary] - run(cmd) - args=[binary,out/(a.suite+'-results.json')] - if a.suite=='flow': - fixture=pathlib.Path(td)/'fake-codex.py' - original=(here/'fixtures/fake-codex.py').read_text() - fixture.write_text('#!'+str(pathlib.Path(sys.executable).resolve())+' -S\n'+'\n'.join(original.splitlines()[1:])+'\n') - args.append(fixture) - run(args) diff --git a/tests/archive/part8/tests/test-tools.py b/tests/archive/part8/tests/test-tools.py deleted file mode 100644 index eed00f93..00000000 --- a/tests/archive/part8/tests/test-tools.py +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/env python3 -"""Filesystem refusal tests on tiny fixtures; not product runtime tests.""" -import importlib.util,json,pathlib,tempfile,unittest,hashlib,os -P=pathlib.Path(__file__).resolve().parent.parent -s=importlib.util.spec_from_file_location('stage',P/'tools/stage.py');m=importlib.util.module_from_spec(s);s.loader.exec_module(m) -class Tests(unittest.TestCase): - def setUp(self): - self.t=tempfile.TemporaryDirectory();self.root=pathlib.Path(self.t.name);self.p=self.root/'pack';self.b=self.root/'base';self.o=self.root/'out' - (self.p/'sources').mkdir(parents=True);(self.p/'overlay').mkdir();self.b.mkdir();(self.b/'x').write_text('old');(self.p/'overlay/x').write_text('new');(self.p/'overlay/y').write_text('added') - self.base={'x':m.digest(self.b/'x')};self.man={'changes':[dict(path='x',operation='replace',base_sha256=self.base['x'],sha256=m.digest(self.p/'overlay/x')),dict(path='y',operation='add',base_sha256=None,sha256=m.digest(self.p/'overlay/y'))],'result_file_count':2} - (self.p/'sources/base-files.json').write_text(json.dumps(self.base));self.save() - def tearDown(self):self.t.cleanup() - def save(self):(self.p/'manifest.json').write_text(json.dumps(self.man)) - def apply(self):return m.apply(self.p,self.b,self.o) - def refuses(self): - with self.assertRaises((m.StageError,FileExistsError)):self.apply() - self.assertFalse(self.o.exists()) - def test_success_and_original(self): - r=self.apply();self.assertEqual(r['result_file_count'],2);self.assertEqual((self.o/'x').read_text(),'new');self.assertEqual((self.b/'x').read_text(),'old') - def test_existing_directory(self): - self.o.mkdir();(self.o/'keep').write_text('keep') - with self.assertRaises(m.StageError):self.apply() - self.assertEqual((self.o/'keep').read_text(),'keep') - def test_existing_file(self): - self.o.write_text('keep') - with self.assertRaises(m.StageError):self.apply() - self.assertEqual(self.o.read_text(),'keep') - def test_wrong_base(self):(self.b/'x').write_text('changed');self.refuses() - def test_missing_base(self):(self.b/'x').unlink();self.refuses() - def test_extra_base(self):(self.b/'extra').write_text('new');self.refuses() - def test_bad_overlay(self):(self.p/'overlay/y').write_text('corrupt');self.refuses() - def test_missing_overlay(self):(self.p/'overlay/y').unlink();self.refuses() - def test_extra_overlay(self):(self.p/'overlay/z').write_text('unlisted');self.refuses() - def test_base_symlink(self):(self.b/'link').symlink_to(self.b/'x');self.refuses() - def test_overlay_symlink(self):(self.p/'overlay/x').unlink();(self.p/'overlay/x').symlink_to(self.b/'x');self.refuses() - def test_nested_output(self): - self.o=self.b/'out';self.refuses() - def test_package_output(self): - self.o=self.p/'out';self.refuses() - def test_traversal(self):self.man['changes'][0]['path']='../escape';self.save();self.refuses() - def test_duplicate_manifest_path(self):self.man['changes'].append(self.man['changes'][0]);self.save();self.refuses() - def test_wrong_base_sha(self):self.man['changes'][0]['base_sha256']='0'*64;self.save();self.refuses() - def test_wrong_count(self):self.man['result_file_count']=999;self.save();self.refuses() - def test_symlink_parent(self): - link=self.root/'link';link.symlink_to(self.root,target_is_directory=True);self.o=link/'nested';self.refuses() -class Recorded(unittest.TextTestResult): - def __init__(self,*a,**kw):super().__init__(*a,**kw);self.records=[] - def addSuccess(self,test):super().addSuccess(test);self.records.append({'name':test.id(),'result':'PASS'}) - def addFailure(self,test,err):super().addFailure(test,err);self.records.append({'name':test.id(),'result':'FAIL'}) - def addError(self,test,err):super().addError(test,err);self.records.append({'name':test.id(),'result':'ERROR'}) -if __name__=='__main__': - result=unittest.TextTestRunner(verbosity=2,resultclass=Recorded).run(unittest.defaultTestLoader.loadTestsFromTestCase(Tests)) - (P/'validation/tools-tests.json').write_text(json.dumps(dict(tests_run=result.testsRun,failures=len(result.failures),errors=len(result.errors),cases=result.records),indent=2)+'\n') - raise SystemExit(0 if result.wasSuccessful() else 1) diff --git a/tests/archive/part8/tools/stage.py b/tests/archive/part8/tools/stage.py deleted file mode 100755 index 7352bef9..00000000 --- a/tests/archive/part8/tools/stage.py +++ /dev/null @@ -1,120 +0,0 @@ -#!/usr/bin/env python3 -"""Apply the part8 overlay only to an exact clean v7 candidate. Never edits the input.""" -from __future__ import annotations -import argparse, hashlib, json, os, pathlib, shutil, sys - -class StageError(ValueError): - pass - -def digest(path: pathlib.Path) -> str: - return hashlib.sha256(path.read_bytes()).hexdigest() - -def relative(value: str) -> pathlib.PurePosixPath: - if not isinstance(value, str) or not value or '\\' in value or '\x00' in value: - raise StageError('invalid relative path') - p = pathlib.PurePosixPath(value) - if p.is_absolute() or '..' in p.parts or '.' in p.parts or str(p) != value: - raise StageError('non-canonical relative path: ' + value) - return p - -def reject_symlink_chain(path: pathlib.Path) -> None: - # macOS 的 /var、/tmp、/etc 是 Apple 自己的根级符号链接(Linux 上是真目录); - # 先按系统事实规范化这三个前缀,其余任何一段是符号链接仍然拒绝。 - resolved = str(path) - for link, target in (('/var', '/private/var'), ('/tmp', '/private/tmp'), ('/etc', '/private/etc')): - if resolved == link or resolved.startswith(link + '/'): - resolved = target + resolved[len(link):] - break - for item in [pathlib.Path(resolved), *pathlib.Path(resolved).parents]: - if item.is_symlink(): - raise StageError('symlink in input/output path: ' + str(item)) - -def inventory(root: pathlib.Path) -> dict[str, str]: - reject_symlink_chain(root) - if not root.is_dir(): - raise StageError('not a directory: ' + str(root)) - output = {} - for current, dirs, files in os.walk(root, followlinks=False): - for name in dirs + files: - p = pathlib.Path(current) / name - if p.is_symlink(): - raise StageError('symlink is not admitted: ' + str(p)) - for name in files: - p = pathlib.Path(current) / name - if not p.is_file(): - raise StageError('non-regular input: ' + str(p)) - output[p.relative_to(root).as_posix()] = digest(p) - return output - -def apply(package: pathlib.Path, base: pathlib.Path, out: pathlib.Path) -> dict: - for path in (package, base, out): - reject_symlink_chain(path.absolute()) - # 全用 resolve():macOS 上 /var 是符号链接,混用 absolute() 会让“输出在输入内”的比较失配。 - package, base, out = package.resolve(), base.resolve(), out.resolve() - if out.exists() or out.is_symlink(): - raise StageError('output already exists') - if not out.parent.is_dir(): - raise StageError('output parent must already exist') - for source in (base, package): - if out == source or source in out.parents or out in source.parents: - raise StageError('output overlaps input') - manifest = json.loads((package / 'manifest.json').read_text()) - expected = json.loads((package / 'sources/base-files.json').read_text()) - for key in expected: - relative(key) - if inventory(base) != expected: - raise StageError('base file set or SHA256 differs from v7') - changes = manifest['changes'] - keys = [entry['path'] for entry in changes] - if len(keys) != len(set(keys)): - raise StageError('duplicate change path') - final = dict(expected) - for entry in changes: - path = relative(entry['path']).as_posix() - if entry.get('base_sha256') != expected.get(path): - raise StageError('incorrect per-file base hash: ' + path) - if entry['operation'] not in ('add', 'replace') or (entry['operation'] == 'add') != (path not in expected): - raise StageError('incorrect change operation: ' + path) - source = package / 'overlay' / path - reject_symlink_chain(source) - if not source.is_file() or digest(source) != entry['sha256']: - raise StageError('overlay missing or hash differs: ' + path) - final[path] = entry['sha256'] - if inventory(package / 'overlay') != {x['path']: x['sha256'] for x in changes}: - raise StageError('overlay has unlisted or missing files') - if len(final) != manifest['result_file_count']: - raise StageError('incorrect result count') - # mkdir is an atomic refusal when another caller has already created this output. - # This is a local staging tool, not a sandbox against hostile same-UID file replacement. - out.mkdir(mode=0o700) - try: - shutil.copytree(base, out, dirs_exist_ok=True, copy_function=shutil.copy2) - for entry in changes: - destination = out / entry['path'] - destination.parent.mkdir(parents=True, exist_ok=True) - shutil.copy2(package / 'overlay' / entry['path'], destination) - if inventory(out) != final or inventory(base) != expected: - raise StageError('post-copy integrity check failed') - except Exception: - shutil.rmtree(out) - raise - return {'status': 'STAGED', 'base_file_count': len(expected), 'result_file_count': len(final), - 'replaced': sum(x['operation'] == 'replace' for x in changes), - 'added': sum(x['operation'] == 'add' for x in changes), 'out': str(out), - 'application_build': 'NOT RUN', 'runtime': 'NOT RUN'} - -def main() -> int: - p = argparse.ArgumentParser(description=__doc__) - p.add_argument('--base', required=True, type=pathlib.Path) - p.add_argument('--out', required=True, type=pathlib.Path) - p.add_argument('--package', type=pathlib.Path, default=pathlib.Path(__file__).resolve().parent.parent) - args = p.parse_args() - try: - result = apply(args.package, args.base, args.out) - except (StageError, OSError, ValueError, KeyError, TypeError) as e: - print('REFUSED: ' + str(e), file=sys.stderr) - return 2 - print(json.dumps(result, ensure_ascii=False, indent=2)) - return 0 -if __name__ == '__main__': - raise SystemExit(main()) diff --git a/tests/archive/part8/validation/build-boundary.json b/tests/archive/part8/validation/build-boundary.json deleted file mode 100644 index a9e12d45..00000000 --- a/tests/archive/part8/validation/build-boundary.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "foundation_count": 37, - "foundation_inputs": [ - "prototype/Core/Contracts.swift", - "prototype/Core/WS2FocusWindowOwnership.swift", - "prototype/Core/WS2DeviceInputGate.swift", - "prototype/Core/PairingAttemptWindow.swift", - "prototype/Core/PairingTLV.swift", - "prototype/Core/CodexWire.swift", - "prototype/Core/WS2CompanionFrame.swift", - "prototype/Core/WS2ApprovalReview.swift", - "prototype/Core/FocusTimer.swift", - "prototype/Core/GamepadMapping.swift", - "prototype/Core/WS2BoundedOutbox.swift", - "prototype/Core/WS2FocusEffectPlan.swift", - "prototype/Core/WS2SemanticInputRouter.swift", - "prototype/Core/WS2DiagnosticTail.swift", - "prototype/Core/WS2OwnedScope.swift", - "prototype/Core/WS2SelectionModel.swift", - "prototype/Core/WS2ConnectionBudget.swift", - "prototype/Core/WS2StrictJSON.swift", - "prototype/Core/WS2OwnedProtocolHost.swift", - "prototype/Core/WS2QuitBarrier.swift", - "prototype/Core/AgentSessions.swift", - "prototype/Core/WS2DeviceActionContracts.swift", - "prototype/Core/WS2VisibleListInput.swift", - "prototype/Core/WS2FoldEvidence.swift", - "prototype/Support/WS2PeerRepository.swift", - "prototype/Support/WS2PairSetupServer.swift", - "prototype/Support/WS2PairSetupCrypto.swift", - "prototype/Support/WS2FocusEffectExecutor.swift", - "prototype/Support/WS2DuplexProcess.swift", - "prototype/Support/WS2ProjectDirectory.swift", - "prototype/Support/WS2LocalLaunchProfile.swift", - "prototype/Support/WS2VersionProbe.swift", - "prototype/Core/InteractionCoordinator.swift", - "prototype/App/FocusTimerHost.swift", - "prototype/App/WS2OwnedCodexSession.swift", - "prototype/App/WS2OwnedLaunchController.swift", - "prototype/App/WS2DeviceActionHost.swift" - ], - "syntax_count": 41, - "syntax_inputs": [ - "prototype/App/FoldCompletion.swift", - "prototype/App/FoldExit.swift", - "prototype/App/FoldTransaction.swift", - "prototype/App/LaunchpadActivities.swift", - "prototype/App/LaunchpadController.swift", - "prototype/App/Notch.swift", - "prototype/App/NotchActivityView.swift", - "prototype/App/NotchLeases.swift", - "prototype/App/Preferences.swift", - "prototype/App/ShadeController.swift", - "prototype/App/Updater.swift", - "prototype/App/UpdaterSettings.swift", - "prototype/App/WS2AppRuntime.swift", - "prototype/App/WS2CodexApprovalHost.swift", - "prototype/App/WS2DeviceActionHost.swift", - "prototype/App/WS2FocusSettings.swift", - "prototype/App/WS2FocusWindowPort.swift", - "prototype/App/WS2FoldEvidenceAdapter.swift", - "prototype/App/WS2GameControllerBridge.swift", - "prototype/App/WS2ModelPickerView.swift", - "prototype/App/WS2OwnedCodexSession+Authorization.swift", - "prototype/App/WS2OwnedLaunchController.swift", - "prototype/App/WS2OwnedSessionView.swift", - "prototype/App/WS2PrivacyData.swift", - "prototype/App/WS2PrivacyPane.swift", - "prototype/App/WS2SettingsInfo.swift", - "prototype/Core/CodexWire.swift", - "prototype/Core/InteractionCoordinator.swift", - "prototype/Core/PairingTLV.swift", - "prototype/Core/WS2DeviceActionContracts.swift", - "prototype/Core/WS2FoldEvidence.swift", - "prototype/Core/WS2VisibleListInput.swift", - "prototype/Effects/DuoSettingsWindow.swift", - "prototype/Support/WS2AtomicConfiguration.swift", - "prototype/Support/WS2DuplexProcess.swift", - "prototype/Support/WS2KeychainPeerStorage.swift", - "prototype/Support/WS2LocalLaunchProfile.swift", - "prototype/Support/WS2ProcessChannel.swift", - "prototype/Support/WS2UnixSocket.swift", - "prototype/Window/AXWindow.swift", - "prototype/WindowShade.swift" - ], - "mac_sdk": "NOT RUN", - "platform": "macOS-27.0-arm64-arm-64bit-Mach-O" -} \ No newline at end of file diff --git a/tests/archive/part8/validation/build-checks.json b/tests/archive/part8/validation/build-checks.json deleted file mode 100644 index 641d95b5..00000000 --- a/tests/archive/part8/validation/build-checks.json +++ /dev/null @@ -1,588 +0,0 @@ -[ - { - "argv": [ - "swiftc", - "--version" - ], - "exit_code": 0, - "stdout": "Apple Swift version 6.4 (swiftlang-6.4.0.34.1 clang-2100.3.34.1)\nTarget: arm64-apple-macosx27.0.0\n", - "stderr": "swift-driver version: 1.168.6 ", - "elapsed_seconds": 1.7876604580087587 - }, - { - "argv": [ - "cc", - "--version" - ], - "exit_code": 0, - "stdout": "Apple clang version 21.0.0 (clang-2100.3.34.2)\nTarget: arm64-apple-darwin27.0.0\nThread model: posix\nInstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin\n", - "stderr": "", - "elapsed_seconds": 0.10282616698532365 - }, - { - "argv": [ - "uname", - "-a" - ], - "exit_code": 0, - "stdout": "Darwin Aarons-MacBook-Air.local 27.0.0 Darwin Kernel Version 27.0.0: Tue Aug 11 21:02:59 PDT 2026; root:xnu-13432.1.9~1/RELEASE_ARM64_T8142 arm64\n", - "stderr": "", - "elapsed_seconds": 0.020792750001419336 - }, - { - "argv": [ - "bash", - "-n", - "/Users/aaron/Documents/WindowShade/prototype/build.sh" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.017903667001519352 - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/Users/aaron/Documents/WindowShade/prototype/Native", - "-typecheck", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2FocusWindowOwnership.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DeviceInputGate.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/PairingAttemptWindow.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/PairingTLV.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2CompanionFrame.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2ApprovalReview.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/FocusTimer.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/GamepadMapping.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2FocusEffectPlan.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2SemanticInputRouter.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedScope.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2SelectionModel.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2ConnectionBudget.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedProtocolHost.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2QuitBarrier.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/AgentSessions.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DeviceActionContracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2VisibleListInput.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2FoldEvidence.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2PeerRepository.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2PairSetupServer.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2PairSetupCrypto.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2FocusEffectExecutor.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2ProjectDirectory.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2LocalLaunchProfile.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2VersionProbe.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/InteractionCoordinator.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/FocusTimerHost.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedCodexSession.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedLaunchController.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2DeviceActionHost.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 21.838127125025494 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/FoldCompletion.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.13431687498814426 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/FoldExit.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.1757034579932224 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/FoldTransaction.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.2956453329825308 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/LaunchpadActivities.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.3269020419975277 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/LaunchpadController.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.2594521249993704 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/Notch.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.2275626249902416 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/NotchActivityView.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.29882137500680983 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/NotchLeases.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.4229680420248769 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/Preferences.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.13531766697997227 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/ShadeController.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.20127166601014324 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/Updater.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.2504912919830531 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/UpdaterSettings.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.20317570900078863 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2AppRuntime.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.14892804197734222 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2CodexApprovalHost.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.20250770897837356 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2DeviceActionHost.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.263290542003233 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2FocusSettings.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.3507301249774173 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2FocusWindowPort.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.628565583989257 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2FoldEvidenceAdapter.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.2082308329991065 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2GameControllerBridge.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.34656595799606293 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2ModelPickerView.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.18405079198419116 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedCodexSession+Authorization.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.17419033398618922 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedLaunchController.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.2729331669979729 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedSessionView.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.35138174999156035 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2PrivacyData.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.3391237090108916 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2PrivacyPane.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.2729969159991015 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2SettingsInfo.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.3745708750211634 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.26957966698682867 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Core/InteractionCoordinator.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.3152757920033764 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Core/PairingTLV.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.2445991669956129 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DeviceActionContracts.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.22003466699970886 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2FoldEvidence.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.2602057909825817 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2VisibleListInput.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.20280216698301956 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Effects/DuoSettingsWindow.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.6856283329834696 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2AtomicConfiguration.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.27459149999776855 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.6318032499984838 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2KeychainPeerStorage.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.43853929202305153 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2LocalLaunchProfile.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.449579125008313 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2ProcessChannel.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.26116304099559784 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2UnixSocket.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.18425620801281184 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/Window/AXWindow.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.18121641699690372 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "/Users/aaron/Documents/WindowShade/prototype/WindowShade.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "elapsed_seconds": 0.3149629579856992 - } -] \ No newline at end of file diff --git a/tests/archive/part8/validation/flow-commands.json b/tests/archive/part8/validation/flow-commands.json deleted file mode 100644 index 03dc0b21..00000000 --- a/tests/archive/part8/validation/flow-commands.json +++ /dev/null @@ -1,74 +0,0 @@ -[ - { - "argv": [ - "cc", - "-std=c11", - "-O2", - "-Wall", - "-Wextra", - "-Werror", - "-c", - "/private/tmp/p9cand/prototype/Native/WS2Child.c", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r8-4r_5lr7e/child.o" - ], - "exit_code": 0, - "elapsed_seconds": 0.48652237499482, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/private/tmp/p9cand/prototype/Native", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r8-4r_5lr7e/child.o", - "/private/tmp/p9cand/prototype/Core/Contracts.swift", - "/private/tmp/p9cand/prototype/Core/GamepadMapping.swift", - "/private/tmp/p9cand/prototype/Core/WS2DeviceInputGate.swift", - "/private/tmp/p9cand/prototype/Core/WS2SelectionModel.swift", - "/private/tmp/p9cand/prototype/Core/WS2SemanticInputRouter.swift", - "/private/tmp/p9cand/prototype/Core/WS2DeviceActionContracts.swift", - "/private/tmp/p9cand/prototype/Core/WS2VisibleListInput.swift", - "/private/tmp/p9cand/prototype/App/WS2DeviceActionHost.swift", - "/private/tmp/p9cand/prototype/Core/WS2QuitBarrier.swift", - "/private/tmp/p9cand/prototype/Core/WS2StrictJSON.swift", - "/private/tmp/p9cand/prototype/Core/CodexWire.swift", - "/private/tmp/p9cand/prototype/Core/WS2OwnedProtocolHost.swift", - "/private/tmp/p9cand/prototype/Core/WS2BoundedOutbox.swift", - "/private/tmp/p9cand/prototype/Core/WS2DiagnosticTail.swift", - "/private/tmp/p9cand/prototype/Core/WS2OwnedScope.swift", - "/private/tmp/p9cand/prototype/Core/AgentSessions.swift", - "/private/tmp/p9cand/prototype/Support/WS2ProjectDirectory.swift", - "/private/tmp/p9cand/prototype/Support/WS2LocalLaunchProfile.swift", - "/private/tmp/p9cand/prototype/Support/WS2VersionProbe.swift", - "/private/tmp/p9cand/prototype/Support/WS2DuplexProcess.swift", - "/private/tmp/p9cand/prototype/App/WS2OwnedCodexSession.swift", - "/private/tmp/p9cand/prototype/App/WS2OwnedLaunchController.swift", - "/Users/aaron/Documents/WindowShade/tests/part8/tests/TestLog.swift", - "/Users/aaron/Documents/WindowShade/tests/part8/tests/InputHarness.swift", - "/Users/aaron/Documents/WindowShade/tests/part8/tests/InputFlowTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r8-4r_5lr7e/tests" - ], - "exit_code": 0, - "elapsed_seconds": 16.799593792005908, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r8-4r_5lr7e/tests", - "/Users/aaron/Documents/WindowShade/tests/part8/validation/flow-results.json", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r8-4r_5lr7e/fake-codex.py" - ], - "exit_code": 0, - "elapsed_seconds": 2.849397209007293, - "stdout": "PASS IFLOW01 real pipe catalogue supplies selection rows [7]\nPASS IFLOW02 device chooses model without sending work [3]\nPASS IFLOW03 separate local send uses selected model [6]\nPASS IFLOW04 late release after local capability loss cannot change model [3]\nPASS IFLOW05 reconnect uses a new backend epoch [5]\nPASS IFLOW06 project replacement rejected by actual model selector [3]\nTOTAL 6 scenarios, 27 assertions\n", - "stderr": "" - } -] \ No newline at end of file diff --git a/tests/archive/part8/validation/flow-results.json b/tests/archive/part8/validation/flow-results.json deleted file mode 100644 index 6a1f7909..00000000 --- a/tests/archive/part8/validation/flow-results.json +++ /dev/null @@ -1,32 +0,0 @@ -[ - { - "assertions" : 7, - "name" : "IFLOW01 real pipe catalogue supplies selection rows", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "IFLOW02 device chooses model without sending work", - "result" : "PASS" - }, - { - "assertions" : 6, - "name" : "IFLOW03 separate local send uses selected model", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "IFLOW04 late release after local capability loss cannot change model", - "result" : "PASS" - }, - { - "assertions" : 5, - "name" : "IFLOW05 reconnect uses a new backend epoch", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "IFLOW06 project replacement rejected by actual model selector", - "result" : "PASS" - } -] \ No newline at end of file diff --git a/tests/archive/part8/validation/fold-commands.json b/tests/archive/part8/validation/fold-commands.json deleted file mode 100644 index c2ce2389..00000000 --- a/tests/archive/part8/validation/fold-commands.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/private/tmp/p9cand/prototype/Core/WS2FoldEvidence.swift", - "/Users/aaron/Documents/WindowShade/tests/part8/tests/TestLog.swift", - "/Users/aaron/Documents/WindowShade/tests/part8/tests/FoldTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r8-ybos83vt/tests" - ], - "exit_code": 0, - "elapsed_seconds": 1.763703416014323, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r8-ybos83vt/tests", - "/Users/aaron/Documents/WindowShade/tests/part8/validation/fold-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 0.23952537501463667, - "stdout": "PASS FOLD01 admission is not evidence [2]\nPASS FOLD02 hidden needs physical attempt and bound transaction [2]\nPASS FOLD03 exactly one ordinary completion [4]\nPASS FOLD04 wrong transaction cannot complete [2]\nPASS FOLD05 deadline before hide proves not started [2]\nPASS FOLD06 deadline after hide remains unknown [2]\nPASS FOLD07 late success is marked separately [2]\nPASS FOLD08 early failure means no hiding attempt [2]\nPASS FOLD09 failure after mutation not called cancelled [2]\nPASS FOLD10 error cannot turn into notStarted after write [2]\nPASS FOLD11 visible observation can later confirm hidden [2]\nPASS FOLD12 repeated unknown is silent [2]\nPASS FOLD13 window-id reuse cannot consume old ticket [2]\nPASS FOLD14 duplicate live window refused [2]\nPASS FOLD15 bounded observer capacity [2]\nPASS FOLD16 bad time and identifiers refused [5]\nPASS FOLD17 exact deadline prevents mutation [3]\nPASS FOLD18 second transaction cannot overwrite binding [3]\nPASS FOLD19 callback after bounded release is inert [2]\nPASS FOLD20 forged ticket cannot use matching request UUID [2]\nPASS FOLD21 backward time cannot start mutation [2]\nTOTAL 21 scenarios, 49 assertions\n", - "stderr": "" - } -] \ No newline at end of file diff --git a/tests/archive/part8/validation/fold-results.json b/tests/archive/part8/validation/fold-results.json deleted file mode 100644 index 3c548fee..00000000 --- a/tests/archive/part8/validation/fold-results.json +++ /dev/null @@ -1,107 +0,0 @@ -[ - { - "assertions" : 2, - "name" : "FOLD01 admission is not evidence", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD02 hidden needs physical attempt and bound transaction", - "result" : "PASS" - }, - { - "assertions" : 4, - "name" : "FOLD03 exactly one ordinary completion", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD04 wrong transaction cannot complete", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD05 deadline before hide proves not started", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD06 deadline after hide remains unknown", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD07 late success is marked separately", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD08 early failure means no hiding attempt", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD09 failure after mutation not called cancelled", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD10 error cannot turn into notStarted after write", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD11 visible observation can later confirm hidden", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD12 repeated unknown is silent", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD13 window-id reuse cannot consume old ticket", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD14 duplicate live window refused", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD15 bounded observer capacity", - "result" : "PASS" - }, - { - "assertions" : 5, - "name" : "FOLD16 bad time and identifiers refused", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "FOLD17 exact deadline prevents mutation", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "FOLD18 second transaction cannot overwrite binding", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD19 callback after bounded release is inert", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD20 forged ticket cannot use matching request UUID", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD21 backward time cannot start mutation", - "result" : "PASS" - } -] \ No newline at end of file diff --git a/tests/archive/part8/validation/input-commands.json b/tests/archive/part8/validation/input-commands.json deleted file mode 100644 index a420ac81..00000000 --- a/tests/archive/part8/validation/input-commands.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/private/tmp/p9cand/prototype/Core/Contracts.swift", - "/private/tmp/p9cand/prototype/Core/GamepadMapping.swift", - "/private/tmp/p9cand/prototype/Core/WS2DeviceInputGate.swift", - "/private/tmp/p9cand/prototype/Core/WS2SelectionModel.swift", - "/private/tmp/p9cand/prototype/Core/WS2SemanticInputRouter.swift", - "/private/tmp/p9cand/prototype/Core/WS2DeviceActionContracts.swift", - "/private/tmp/p9cand/prototype/Core/WS2VisibleListInput.swift", - "/private/tmp/p9cand/prototype/App/WS2DeviceActionHost.swift", - "/Users/aaron/Documents/WindowShade/tests/part8/tests/TestLog.swift", - "/Users/aaron/Documents/WindowShade/tests/part8/tests/InputHarness.swift", - "/Users/aaron/Documents/WindowShade/tests/part8/tests/InputTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r8-1pa4uuqo/tests" - ], - "exit_code": 0, - "elapsed_seconds": 4.390062708000187, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r8-1pa4uuqo/tests", - "/Users/aaron/Documents/WindowShade/tests/part8/validation/input-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 0.2534406670019962, - "stdout": "PASS INPUT01 discovery does not enable or install [2]\nPASS INPUT02 explicit enable and fresh release [2]\nPASS INPUT03 held A before enable must become neutral [2]\nPASS INPUT04 navigation uses stable item [1]\nPASS INPUT05 previous at beginning is not failure [2]\nPASS INPUT06 next at end is not failure [2]\nPASS INPUT07 hold A then navigate does not activate new row [2]\nPASS INPUT08 mouse change invalidates pending A [1]\nPASS INPUT09 same-row click invalidates pending A [1]\nPASS INPUT10 list reorder revokes context [2]\nPASS INPUT11 page lease change cancels [1]\nPASS INPUT12 backend epoch change cancels [1]\nPASS INPUT13 lock revokes without auto reenabling [1]\nPASS INPUT14 foreground loss revokes [1]\nPASS INPUT15 sink unavailable or IME guard revokes [1]\nPASS INPUT16 approvals cannot reuse list device [2]\nPASS INPUT17 detach invalidates pending target [1]\nPASS INPUT18 identical label is not attachment identity [2]\nPASS INPUT19 enabling second device disables first [3]\nPASS INPUT20 replayed end cannot select twice [1]\nPASS INPUT21 repeated down does not duplicate [1]\nPASS INPUT22 unknown controls cannot activate [1]\nPASS INPUT23 cancel opens no model [1]\nPASS INPUT24 mismatched release control fails closed [1]\nPASS INPUT25 stop releases all resources [2]\nPASS INPUT26 reentrant model action may stop host [1]\nPASS INPUT27 duplicate ids revoke selection [2]\nPASS INPUT28 disabled rows skipped [1]\nPASS INPUT29 absent attachment cannot enable [2]\nPASS INPUT30 cancelled press cannot activate [1]\nPASS INPUT31 armed indication tracks captured target [3]\nPASS INPUT32 reentrant revoke while preparing is safe [1]\nPASS INPUT33 chosen model invalidation during prepare fails closed [1]\nTOTAL 33 scenarios, 49 assertions\n", - "stderr": "" - } -] \ No newline at end of file diff --git a/tests/archive/part8/validation/input-results.json b/tests/archive/part8/validation/input-results.json deleted file mode 100644 index fc2c4c0b..00000000 --- a/tests/archive/part8/validation/input-results.json +++ /dev/null @@ -1,167 +0,0 @@ -[ - { - "assertions" : 2, - "name" : "INPUT01 discovery does not enable or install", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT02 explicit enable and fresh release", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT03 held A before enable must become neutral", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT04 navigation uses stable item", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT05 previous at beginning is not failure", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT06 next at end is not failure", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT07 hold A then navigate does not activate new row", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT08 mouse change invalidates pending A", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT09 same-row click invalidates pending A", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT10 list reorder revokes context", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT11 page lease change cancels", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT12 backend epoch change cancels", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT13 lock revokes without auto reenabling", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT14 foreground loss revokes", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT15 sink unavailable or IME guard revokes", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT16 approvals cannot reuse list device", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT17 detach invalidates pending target", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT18 identical label is not attachment identity", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "INPUT19 enabling second device disables first", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT20 replayed end cannot select twice", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT21 repeated down does not duplicate", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT22 unknown controls cannot activate", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT23 cancel opens no model", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT24 mismatched release control fails closed", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT25 stop releases all resources", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT26 reentrant model action may stop host", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT27 duplicate ids revoke selection", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT28 disabled rows skipped", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT29 absent attachment cannot enable", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT30 cancelled press cannot activate", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "INPUT31 armed indication tracks captured target", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT32 reentrant revoke while preparing is safe", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT33 chosen model invalidation during prepare fails closed", - "result" : "PASS" - } -] \ No newline at end of file diff --git a/tests/archive/part8/validation/regressions/legacy/approval-accept.ndjson b/tests/archive/part8/validation/regressions/legacy/approval-accept.ndjson deleted file mode 100644 index 98da1ca6..00000000 --- a/tests/archive/part8/validation/regressions/legacy/approval-accept.ndjson +++ /dev/null @@ -1 +0,0 @@ -{"id":7,"result":{"decision":"accept"}} diff --git a/tests/archive/part8/validation/regressions/legacy/core-results.json b/tests/archive/part8/validation/regressions/legacy/core-results.json deleted file mode 100644 index 079c9214..00000000 --- a/tests/archive/part8/validation/regressions/legacy/core-results.json +++ /dev/null @@ -1,367 +0,0 @@ -{ - "assertions" : 188, - "failures" : 0, - "results" : [ - { - "assertions" : 5, - "id" : "FOC-01 pending-preset-keeps-current-deadline", - "passed" : true - }, - { - "assertions" : 3, - "id" : "FOC-02 next-start-uses-pending-values", - "passed" : true - }, - { - "assertions" : 1, - "id" : "FOC-03 changing-tuck-does-not-lose-restore", - "passed" : true - }, - { - "assertions" : 1, - "id" : "FOC-04 enabling-tuck-does-not-invent-ownership", - "passed" : true - }, - { - "assertions" : 3, - "id" : "FOC-05-pause-configuration-does-not-resume", - "passed" : true - }, - { - "assertions" : 3, - "id" : "FOC-06-locked-and-manual-pause-independent", - "passed" : true - }, - { - "assertions" : 2, - "id" : "FOC-07-rest-continues-through-lock", - "passed" : true - }, - { - "assertions" : 4, - "id" : "FOC-08-no-automatic-next-focus", - "passed" : true - }, - { - "assertions" : 3, - "id" : "FOC-09-visibility-wake-budget", - "passed" : true - }, - { - "assertions" : 2, - "id" : "FOC-10-progress-uses-active-duration", - "passed" : true - }, - { - "assertions" : 2, - "id" : "FOC-11-backwards-clock-refused", - "passed" : true - }, - { - "assertions" : 2, - "id" : "FOC-12-next-run-retains-daily-count-and-token-sequence", - "passed" : true - }, - { - "assertions" : 69, - "id" : "FRM-01-fragmented-at-every-boundary", - "passed" : true - }, - { - "assertions" : 1, - "id" : "FRM-02-multiple-frames-one-read", - "passed" : true - }, - { - "assertions" : 1, - "id" : "FRM-03-big-endian-length", - "passed" : true - }, - { - "assertions" : 3, - "id" : "FRM-04-oversized-header-terminates", - "passed" : true - }, - { - "assertions" : 2, - "id" : "FRM-05-unknown-type-terminates", - "passed" : true - }, - { - "assertions" : 2, - "id" : "FRM-06-truncated-tag-terminates", - "passed" : true - }, - { - "assertions" : 2, - "id" : "FRM-07-local-payload-limit", - "passed" : true - }, - { - "assertions" : 1, - "id" : "FRM-08-bounded-read-batch", - "passed" : true - }, - { - "assertions" : 1, - "id" : "FRM-09-bounded-frame-count", - "passed" : true - }, - { - "assertions" : 1, - "id" : "FRM-10-data-slice-safe", - "passed" : true - }, - { - "assertions" : 1, - "id" : "NON-01-little-endian-prefix", - "passed" : true - }, - { - "assertions" : 2, - "id" : "NON-02-no-repeat", - "passed" : true - }, - { - "assertions" : 2, - "id" : "NON-03-no-wrap", - "passed" : true - }, - { - "assertions" : 1, - "id" : "NON-04-terminal-close", - "passed" : true - }, - { - "assertions" : 3, - "id" : "APR-01-complete-command-review", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-02-wrong-thread", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-03-empty-command", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-04-relative-cwd", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-05-stdin-kind", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-06-unknown-field", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-07-network-request", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-08-policy-upgrade", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-09-remote-environment", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-10-missing-time", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-11-long-command", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-12-file-without-diff-not-reviewable", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-13-request-id-type-bound", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-14-whitespace-in-command-bound", - "passed" : true - }, - { - "assertions" : 2, - "id" : "APR-15-bidi-is-visible-not-silently-dropped", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-16-cannot-confirm-before-layout", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-17-preheld-input-refused", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-18-old-sequence-refused", - "passed" : true - }, - { - "assertions" : 3, - "id" : "APR-19-fresh-confirm-then-grant-still-required", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-20-target-change-invalidates-confirmation", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-21-duplicate-confirmation-refused", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-22-clear-revokes-review", - "passed" : true - }, - { - "assertions" : 3, - "id" : "WIRE-01-accept-once-actual-encoded-response", - "passed" : true - }, - { - "assertions" : 1, - "id" : "WIRE-02-no-duplicate-accept", - "passed" : true - }, - { - "assertions" : 2, - "id" : "WIRE-03-wrong-payload-refused", - "passed" : true - }, - { - "assertions" : 1, - "id" : "WIRE-04-file-not-allowed-by-command-path", - "passed" : true - }, - { - "assertions" : 2, - "id" : "WIRE-05-turn-complete-clears-approval", - "passed" : true - }, - { - "assertions" : 1, - "id" : "WIRE-06-string-id-preserved", - "passed" : true - }, - { - "assertions" : 2, - "id" : "DEV-01-default-disabled", - "passed" : true - }, - { - "assertions" : 1, - "id" : "DEV-02-neutral-required-after-enable", - "passed" : true - }, - { - "assertions" : 2, - "id" : "DEV-03-fresh-press-release-pair", - "passed" : true - }, - { - "assertions" : 2, - "id" : "DEV-04-reconnect-requires-new-consent", - "passed" : true - }, - { - "assertions" : 1, - "id" : "DEV-05-lock-revokes", - "passed" : true - }, - { - "assertions" : 1, - "id" : "DEV-06-review-domain-cannot-begin-control", - "passed" : true - }, - { - "assertions" : 4, - "id" : "DEV-08-domain-change-cancels-and-requires-neutral", - "passed" : true - }, - { - "assertions" : 1, - "id" : "DEV-09-unannounced-domain-change-suspends", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-23-visible-context-escapes-bidi", - "passed" : true - }, - { - "assertions" : 1, - "id" : "DEV-07-replay-suspends", - "passed" : true - }, - { - "assertions" : 2, - "id" : "HID-01-exact-device-and-known-usage", - "passed" : true - }, - { - "assertions" : 2, - "id" : "HID-02-unknown-and-nonbinary-pass-through", - "passed" : true - }, - { - "assertions" : 2, - "id" : "OWN-01-only-completed-effects-recorded", - "passed" : true - }, - { - "assertions" : 2, - "id" : "OWN-02-exact-owner-one-use", - "passed" : true - }, - { - "assertions" : 1, - "id" : "OWN-03-manual-change-excludes-window", - "passed" : true - }, - { - "assertions" : 2, - "id" : "OWN-04-live-revision-change-refuses-restore", - "passed" : true - }, - { - "assertions" : 2, - "id" : "OWN-05-pid-reuse-cannot-match", - "passed" : true - }, - { - "assertions" : 2, - "id" : "OWN-06-other-run-cannot-consume", - "passed" : true - } - ], - "scenarios" : 72 -} \ No newline at end of file diff --git a/tests/archive/part8/validation/regressions/legacy/regression-PROC04-results.json b/tests/archive/part8/validation/regressions/legacy/regression-PROC04-results.json deleted file mode 100644 index dc04f319..00000000 --- a/tests/archive/part8/validation/regressions/legacy/regression-PROC04-results.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "criterion" : "close before the fixture descendant's 0.8s late write; test tolerance <0.7s", - "directChildExitObserved" : true, - "elapsedSeconds" : 0.1171219166717492, - "notProven" : "Mac behavior; tree cleanup; immediate direct-child exit notification", - "probe" : "PROC04", - "receivedLines" : [ - "{\"parent\":1}" - ], - "status" : "OBSERVED_PASS" -} \ No newline at end of file diff --git a/tests/archive/part8/validation/regressions/legacy/regression-part2-outbound.ndjson b/tests/archive/part8/validation/regressions/legacy/regression-part2-outbound.ndjson deleted file mode 100644 index f750edd4..00000000 --- a/tests/archive/part8/validation/regressions/legacy/regression-part2-outbound.ndjson +++ /dev/null @@ -1,9 +0,0 @@ -{"id":1,"method":"initialize","params":{"clientInfo":{"name":"windowshade","version":"2-probe"}}} -{"method":"initialized"} -{"id":2,"method":"model/list","params":{"includeHidden":false,"limit":100}} -{"id":3,"method":"thread/start","params":{"approvalPolicy":"on-request","approvalsReviewer":"user","cwd":"/fixture","model":"test-model","sandbox":"read-only"}} -{"id":4,"method":"turn/start","params":{"approvalPolicy":"on-request","approvalsReviewer":"user","effort":"high","input":[{"text":"Hello","text_elements":[],"type":"text"}],"model":"test-model","sandboxPolicy":{"networkAccess":false,"type":"readOnly"},"threadId":"thread-one"}} -{"id":5,"method":"turn/steer","params":{"expectedTurnId":"turn-one","input":[{"text":"x","text_elements":[],"type":"text"}],"threadId":"thread-one"}} -{"id":6,"method":"turn/interrupt","params":{"threadId":"thread-one","turnId":"turn-one"}} -{"id":7,"result":{"decision":"decline"}} -{"id":"7","result":{"decision":"decline"}} diff --git a/tests/archive/part8/validation/regressions/legacy/regression-part5-core-results.json b/tests/archive/part8/validation/regressions/legacy/regression-part5-core-results.json deleted file mode 100644 index 241e0465..00000000 --- a/tests/archive/part8/validation/regressions/legacy/regression-part5-core-results.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "assertions" : 97, - "crypto" : "mock engine: sequencing only", - "failures" : [ - - ], - "scenarios" : 40 -} \ No newline at end of file diff --git a/tests/archive/part8/validation/regressions/legacy/regression-part5-process-results.json b/tests/archive/part8/validation/regressions/legacy/regression-part5-process-results.json deleted file mode 100644 index abd90701..00000000 --- a/tests/archive/part8/validation/regressions/legacy/regression-part5-process-results.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "assertions" : 26, - "backend" : "owned Python fixture; no real assistant or network", - "failures" : [ - - ], - "scenarios" : 8 -} \ No newline at end of file diff --git a/tests/archive/part8/validation/regressions/legacy/regression-part6-core-results.json b/tests/archive/part8/validation/regressions/legacy/regression-part6-core-results.json deleted file mode 100644 index 54d0fe16..00000000 --- a/tests/archive/part8/validation/regressions/legacy/regression-part6-core-results.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "assertions" : 95, - "boundary" : "Foundation reducers and temporary local filesystem; no Mac SDK, network, authorization or AX", - "cases" : [ - "ARB01 opened page cannot evict review", - "ARB02 exact opened lease replacement cancels once", - "ARB03 same priority without explicit navigation busy", - "ARB04 stale replacement cannot evict newer page", - "ARB05 authorization preempts opened page", - "ARB06 equal authorization never replaces review", - "ARB07 synchronous disable barrier aborts replacement", - "ARB08 reentrant acquire in cancellation refused", - "ARB09 invalid request does not remove existing page", - "ARB10 clock rollback safety invalidation still works", - "ARB11 display removal during callback aborts replacement", - "ARB12 expired expected handle is not resurrected", - "SCP01 cannot begin before local enable and unlock", - "SCP02 project switch invalidates queued work", - "SCP03 relock and unlock never restores old ticket", - "SCP04 path replacement and connection restart rejected", - "SCP05 backend session validation and epoch binding", - "SCP06 disabled state and explicit clear reject", - "DIR01 actual symlink and directory replacement observations", - "DIR02 containment uses path boundary not string prefix", - "DIR03 non-directory and missing path fail", - "SEL01 stable selection survives reorder", - "SEL02 disabled rows skipped and no wrap", - "SEL03 stale events rejected after snapshot", - "SEL04 activation consumed exactly once", - "SEL05 selection movement invalidates activation", - "SEL06 duplicate snapshot fails closed", - "SEL07 disabled selection chooses enabled row and empty is valid", - "SEL08 revoke invalidates queued activation", - "SEL09 snapshot size and identifier bounds", - "NET01 unauthenticated connections globally bounded", - "NET02 pair setup requires local window and cannot extend deadline", - "NET03 one connection per verified peer", - "NET04 deadline rejects promotion and stale generation", - "NET05 per-connection and aggregate queue bounds", - "NET06 total connection cap includes authenticated sessions", - "NET07 clock rollback halts and clears buffers", - "NET08 close releases allocation and stale handle fails", - "DIAG01 bounded suffix and observed versus retained bytes", - "DIAG02 control sequences cannot act as terminal escapes", - "DIAG03 invalid UTF8 and clear bounded memory", - "DIAG04 large append never retains more than capacity" - ], - "failures" : [ - - ], - "scenarios" : 42 -} \ No newline at end of file diff --git a/tests/archive/part8/validation/regressions/legacy/regression-part6-process-results.json b/tests/archive/part8/validation/regressions/legacy/regression-part6-process-results.json deleted file mode 100644 index b06b07df..00000000 --- a/tests/archive/part8/validation/regressions/legacy/regression-part6-process-results.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "assertions" : 27, - "boundary" : "Real Python child\/pipe\/one short-lived fork fixture, no CLI service, Mac SDK, network, or process-tree kill", - "cases" : [ - "PROC01 explicit bounded diagnostic tail does not block stdout", - "PROC02 default diagnostics stays disabled", - "PROC03 direct child exit status is separate from protocol outcome", - "PROC05 partial final frame rejected", - "PROC06 coalesced trailing frames retain ordering", - "PROC07 stop closes transport once and waits for independent exit evidence", - "PROC08 diagnostic buffer can be explicitly cleared", - "PROC09 invalid diagnostic limit rejected before spawning", - "PROC10 late scope change blocks an admitted frame" - ], - "failures" : [ - - ], - "scenarios" : 9 -} \ No newline at end of file diff --git a/tests/archive/part8/validation/regressions/legacy/regression-part6-wire-outbound.ndjson b/tests/archive/part8/validation/regressions/legacy/regression-part6-wire-outbound.ndjson deleted file mode 100644 index 73286cb3..00000000 --- a/tests/archive/part8/validation/regressions/legacy/regression-part6-wire-outbound.ndjson +++ /dev/null @@ -1,4 +0,0 @@ -{"id":3,"method":"thread/start","params":{"approvalPolicy":"on-request","approvalsReviewer":"user","cwd":"/tmp/fixture-project","model":"test-model","sandbox":"read-only"}} -{"id":4,"method":"turn/start","params":{"approvalPolicy":"on-request","approvalsReviewer":"user","effort":"medium","input":[{"text":"Synthetic request","text_elements":[],"type":"text"}],"model":"test-model","sandboxPolicy":{"networkAccess":false,"type":"readOnly"},"threadId":"t"}} -{"id":3,"method":"thread/resume","params":{"approvalPolicy":"on-request","approvalsReviewer":"user","sandbox":"read-only","threadId":"known-thread"}} -{"id":3,"method":"model/list","params":{"cursor":"next","includeHidden":false,"limit":100}} diff --git a/tests/archive/part8/validation/regressions/legacy/regression-part6-wire-results.json b/tests/archive/part8/validation/regressions/legacy/regression-part6-wire-results.json deleted file mode 100644 index 077b0dfd..00000000 --- a/tests/archive/part8/validation/regressions/legacy/regression-part6-wire-results.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "assertions" : 11, - "boundary" : "Synthetic CodexWire fixtures; no real CLI or sandbox enforcement", - "failures" : [ - - ], - "scenarios" : 5 -} \ No newline at end of file diff --git a/tests/archive/part8/validation/regressions/legacy/regressions-foundation.json b/tests/archive/part8/validation/regressions/legacy/regressions-foundation.json deleted file mode 100644 index d634edc8..00000000 --- a/tests/archive/part8/validation/regressions/legacy/regressions-foundation.json +++ /dev/null @@ -1,241 +0,0 @@ -[ - { - "argv": [ - "cc", - "-std=c11", - "-O2", - "-Wall", - "-Wextra", - "-Werror", - "-c", - "/Users/aaron/Documents/WindowShade/prototype/Native/WS2Child.c", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mvh3deh6/child.o" - ], - "exit_code": 0, - "elapsed_seconds": 0.30263312498573214, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedScope.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2SelectionModel.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2ConnectionBudget.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/InteractionCoordinator.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2ProjectDirectory.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part6/tests/CoreTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mvh3deh6/part6-core" - ], - "exit_code": 0, - "elapsed_seconds": 5.19895841597463, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mvh3deh6/part6-core", - "tests/part8/validation/regressions/legacy/regression-part6-core-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 0.06307379200006835, - "stdout": "SCENE ARB01 opened page cannot evict review\nSCENE ARB02 exact opened lease replacement cancels once\nSCENE ARB03 same priority without explicit navigation busy\nSCENE ARB04 stale replacement cannot evict newer page\nSCENE ARB05 authorization preempts opened page\nSCENE ARB06 equal authorization never replaces review\nSCENE ARB07 synchronous disable barrier aborts replacement\nSCENE ARB08 reentrant acquire in cancellation refused\nSCENE ARB09 invalid request does not remove existing page\nSCENE ARB10 clock rollback safety invalidation still works\nSCENE ARB11 display removal during callback aborts replacement\nSCENE ARB12 expired expected handle is not resurrected\nSCENE SCP01 cannot begin before local enable and unlock\nSCENE SCP02 project switch invalidates queued work\nSCENE SCP03 relock and unlock never restores old ticket\nSCENE SCP04 path replacement and connection restart rejected\nSCENE SCP05 backend session validation and epoch binding\nSCENE SCP06 disabled state and explicit clear reject\nSCENE DIR01 actual symlink and directory replacement observations\nSCENE DIR02 containment uses path boundary not string prefix\nSCENE DIR03 non-directory and missing path fail\nSCENE SEL01 stable selection survives reorder\nSCENE SEL02 disabled rows skipped and no wrap\nSCENE SEL03 stale events rejected after snapshot\nSCENE SEL04 activation consumed exactly once\nSCENE SEL05 selection movement invalidates activation\nSCENE SEL06 duplicate snapshot fails closed\nSCENE SEL07 disabled selection chooses enabled row and empty is valid\nSCENE SEL08 revoke invalidates queued activation\nSCENE SEL09 snapshot size and identifier bounds\nSCENE NET01 unauthenticated connections globally bounded\nSCENE NET02 pair setup requires local window and cannot extend deadline\nSCENE NET03 one connection per verified peer\nSCENE NET04 deadline rejects promotion and stale generation\nSCENE NET05 per-connection and aggregate queue bounds\nSCENE NET06 total connection cap includes authenticated sessions\nSCENE NET07 clock rollback halts and clears buffers\nSCENE NET08 close releases allocation and stale handle fails\nSCENE DIAG01 bounded suffix and observed versus retained bytes\nSCENE DIAG02 control sequences cannot act as terminal escapes\nSCENE DIAG03 invalid UTF8 and clear bounded memory\nSCENE DIAG04 large append never retains more than capacity\nRESULT scenarios=42 assertions=95 failures=0\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part6/tests/WireProfileTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mvh3deh6/part6-wire" - ], - "exit_code": 0, - "elapsed_seconds": 7.074751959007699, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mvh3deh6/part6-wire", - "tests/part8/validation/regressions/legacy/regression-part6-wire-results.json", - "tests/part8/validation/regressions/legacy/regression-part6-wire-outbound.ndjson" - ], - "exit_code": 0, - "elapsed_seconds": 0.12502245799987577, - "stdout": "RESULT scenarios=5 assertions=11 failures=0\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2FocusWindowOwnership.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DeviceInputGate.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/PairingAttemptWindow.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/PairingTLV.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2FocusEffectPlan.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2SemanticInputRouter.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2PeerRepository.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2PairSetupServer.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part5/tests/CoreTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mvh3deh6/part5-core" - ], - "exit_code": 0, - "elapsed_seconds": 10.172376041999087, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mvh3deh6/part5-core", - "tests/part8/validation/regressions/legacy/regression-part5-core-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 0.05336966700269841, - "stdout": "SCENE Q01 atomic batch and FIFO partial write\nSCENE Q02 rejected batch does not keep prefix\nSCENE Q03 expired partial write closes connection\nSCENE Q04 old generation denied\nSCENE Q05 clock and invalid completion checks\nSCENE Q06 zero record and record limit\nSCENE Q07 later earlier-deadline frame poisons whole stream\nSCENE K01 missing snapshot does not create identity\nSCENE K02 durable enroll and reload\nSCENE K03 revoke persists and invalidates old revision\nSCENE K04 write failure is not successful persistent revocation\nSCENE K05 malformed snapshot blocks instead of resetting\nSCENE K06 enrolled identifier never silently overwritten\nSCENE K07 peer cap and attempts marker survive reload\nSCENE K08 read failure does not look like no saved peers\nSCENE P01 M1 through M6 commits before return, no crypto claim\nSCENE P02 cannot pair without local PIN window\nSCENE P03 wrong sequence closes session\nSCENE P04 three failures enforce five minute cooldown across new connections\nSCENE P05 restart incomplete imposes fresh cooldown\nSCENE P06 persistence failure never releases M6\nSCENE P07 concurrent setup not admitted\nSCENE P08 expired M3 closes and clears\nSCENE P09 malformed TLV and invalid PIN\nSCENE P10 cancellation/reopening does not reset failure count\nSCENE F01 phase barrier restores before retucking same window\nSCENE F02 cancelled late tuck compensates before anything new\nSCENE F03 manual user change relinquishes ownership\nSCENE F04 unknown completion blocks future phases\nSCENE F05 locked completion waits for verified unlock\nSCENE F06 duplicate completion cannot mutate new transaction\nSCENE F07 restored revision must advance\nSCENE F08 duplicate window identity is rejected\nSCENE F09 failed restore blocks rest tucks\nSCENE I01 semantic ticket consumed once\nSCENE I02 stale lease cannot dispatch\nSCENE I03 approval domain has no remote confirm\nSCENE I04 final lock recheck\nSCENE I05 interrupt not accepted in desktop\nSCENE I06 forged intent does not reuse reserved press\nRESULT scenarios=40 assertions=97 failures=0\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/FocusTimer.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2CompanionFrame.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2ApprovalReview.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DeviceInputGate.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2FocusWindowOwnership.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part4/tests/CoreTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mvh3deh6/part4-core" - ], - "exit_code": 0, - "elapsed_seconds": 7.394132957997499, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mvh3deh6/part4-core", - "tests/part8/validation/regressions/legacy" - ], - "exit_code": 0, - "elapsed_seconds": 0.07350333299837075, - "stdout": "PASS FOC-01 pending-preset-keeps-current-deadline\nPASS FOC-02 next-start-uses-pending-values\nPASS FOC-03 changing-tuck-does-not-lose-restore\nPASS FOC-04 enabling-tuck-does-not-invent-ownership\nPASS FOC-05-pause-configuration-does-not-resume\nPASS FOC-06-locked-and-manual-pause-independent\nPASS FOC-07-rest-continues-through-lock\nPASS FOC-08-no-automatic-next-focus\nPASS FOC-09-visibility-wake-budget\nPASS FOC-10-progress-uses-active-duration\nPASS FOC-11-backwards-clock-refused\nPASS FOC-12-next-run-retains-daily-count-and-token-sequence\nPASS FRM-01-fragmented-at-every-boundary\nPASS FRM-02-multiple-frames-one-read\nPASS FRM-03-big-endian-length\nPASS FRM-04-oversized-header-terminates\nPASS FRM-05-unknown-type-terminates\nPASS FRM-06-truncated-tag-terminates\nPASS FRM-07-local-payload-limit\nPASS FRM-08-bounded-read-batch\nPASS FRM-09-bounded-frame-count\nPASS FRM-10-data-slice-safe\nPASS NON-01-little-endian-prefix\nPASS NON-02-no-repeat\nPASS NON-03-no-wrap\nPASS NON-04-terminal-close\nPASS APR-01-complete-command-review\nPASS APR-02-wrong-thread\nPASS APR-03-empty-command\nPASS APR-04-relative-cwd\nPASS APR-05-stdin-kind\nPASS APR-06-unknown-field\nPASS APR-07-network-request\nPASS APR-08-policy-upgrade\nPASS APR-09-remote-environment\nPASS APR-10-missing-time\nPASS APR-11-long-command\nPASS APR-12-file-without-diff-not-reviewable\nPASS APR-13-request-id-type-bound\nPASS APR-14-whitespace-in-command-bound\nPASS APR-15-bidi-is-visible-not-silently-dropped\nPASS APR-16-cannot-confirm-before-layout\nPASS APR-17-preheld-input-refused\nPASS APR-18-old-sequence-refused\nPASS APR-19-fresh-confirm-then-grant-still-required\nPASS APR-20-target-change-invalidates-confirmation\nPASS APR-21-duplicate-confirmation-refused\nPASS APR-22-clear-revokes-review\nPASS WIRE-01-accept-once-actual-encoded-response\nPASS WIRE-02-no-duplicate-accept\nPASS WIRE-03-wrong-payload-refused\nPASS WIRE-04-file-not-allowed-by-command-path\nPASS WIRE-05-turn-complete-clears-approval\nPASS WIRE-06-string-id-preserved\nPASS DEV-01-default-disabled\nPASS DEV-02-neutral-required-after-enable\nPASS DEV-03-fresh-press-release-pair\nPASS DEV-04-reconnect-requires-new-consent\nPASS DEV-05-lock-revokes\nPASS DEV-06-review-domain-cannot-begin-control\nPASS DEV-08-domain-change-cancels-and-requires-neutral\nPASS DEV-09-unannounced-domain-change-suspends\nPASS APR-23-visible-context-escapes-bidi\nPASS DEV-07-replay-suspends\nPASS HID-01-exact-device-and-known-usage\nPASS HID-02-unknown-and-nonbinary-pass-through\nPASS OWN-01-only-completed-effects-recorded\nPASS OWN-02-exact-owner-one-use\nPASS OWN-03-manual-change-excludes-window\nPASS OWN-04-live-revision-change-refuses-restore\nPASS OWN-05-pid-reuse-cannot-match\nPASS OWN-06-other-run-cannot-consume\nSCENARIOS=72 ASSERTIONS=188 FAILURES=0\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/RemoteSessionGate.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/PresenceReadDeadline.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/InteractionCoordinator.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part2/tests/Part2CoreTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mvh3deh6/part2" - ], - "exit_code": 0, - "elapsed_seconds": 5.837919916986721, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mvh3deh6/part2", - "tests/part8/validation/regressions/legacy/regression-part2-outbound.ndjson" - ], - "exit_code": 0, - "elapsed_seconds": 0.12374004200682975, - "stdout": "PASS LEASE01 single global input owner\nPASS LEASE02 privileged owner table\nPASS LEASE03 authorization preempts synchronously\nPASS LEASE04 old key-down never confirms new approval\nPASS LEASE05 obscured reminder not replayed\nPASS LEASE06 lock barrier clears sensitive state\nPASS LEASE07 display removal cancels only owner\nPASS LEASE08 exact expiry and future request\nPASS LEASE09 reminder four seconds and no endless refresh\nPASS LEASE10 backward-time security invalidation\nPASS BLE01 five-second reads are not two-second age timeouts\nPASS BLE02 exact read deadline and stale callbacks\nPASS REMOTE01 discovery never means paired\nPASS REMOTE02 verified capability replay and revocation\nPASS CODEX01 initialize and two-phase handshake\nPASS CODEX02 thread then turn with actual field names\nPASS CODEX03 steer precondition and interrupt does not finish turn\nPASS CODEX04 approval IDs retain number versus string\nPASS CODEX05 unrelated completion and late reply ignored\nPASS CODEX06 every possible single split boundary\nPASS CODEX07 malformed, oversized and EOF safety\nPASS CODEX08 timeout makes outcome uncertain not retry\nPASS part2 core: 22 scenarios, 86 assertions\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-parse-as-library", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/FocusTimer.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part1/tests/support/WS2TestSupport.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part1/packages/T1/tests/FocusTimerTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mvh3deh6/focus" - ], - "exit_code": 0, - "elapsed_seconds": 3.3241837920213584, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mvh3deh6/focus" - ], - "exit_code": 0, - "elapsed_seconds": 0.03624962500180118, - "stdout": "CASE T1-01 | 空闲开始 25+5 → 截止时刻 1500 秒,聊天收起一次\nok 空闲不排刷新\nok 开始不是累计 tick\nok 重复开始无重复窗口动作\nCASE T1-02 | 紧凑/展开/隐藏 → 分别排分钟、秒、截止唤醒\nok 紧凑整分钟\nok 展开一秒\nok 隐藏只有到点\nok 18 分原文\nok 最后一分钟秒数\nok 秒显示与截止对齐\nCASE T1-03 | 专注自然到点再休息到点 → 计数一次,不自动下一轮\nok 完整专注才计数\nok 真实到点提示音\nok 休息完空闲\nok 重复 tick 无补发\nCASE T1-04 | 手动暂停叠加锁屏 → 单独继续不解除锁屏暂停\nok 暂停原因独立\nok 暂停不醒来\nok 正确顺延剩余时间\nCASE T1-05 | 睡眠叠加锁屏,先唤醒后解锁 → 最后一个原因解除才计时\nok 唤醒不能解锁\nok 睡眠期间无扣秒\nCASE T1-06 | 休息睡两小时 → 已结束,不补播开始或结束音\nok 休息不因睡眠冻结\nCASE T1-07 | 专注到点同刻锁屏 → 结算次数,但不收全桌面、不响铃\nok 已完成专注仍计数\nok 锁屏先于可见效果\nCASE T1-08 | 专注跳过和主动结束 → 都不增加完成数\nok 跳过不算完成\nok 结束清理\nok 明确结束优先于同刻自然结束\nCASE T1-09 | 休息关掉收起的窗口 → 计时继续,恢复只发一次\nok 只撤销本轮窗口归属\nok 重复关闭无动作\nCASE T1-10 | 旧日期的 deadline 晚到新日期 → 不记到今天,不闪过已过去的休息\nok 晚到不补播\nCASE T1-11 | 50+10,关闭聊天收起 → 3000 秒专注、600 秒休息\nok 关闭选项不收聊天\nok 十分钟休息\nCASE T1-12 | 时间倒流/无效日期/锁屏开始 → 拒绝,不启动第二轮\nok 拒绝倒流\nok 锁着不开始\nok 日期不可伪空\nPASS T1: 12 cases, 32 assertions, 0 failures\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-parse-as-library", - "/Users/aaron/Documents/WindowShade/prototype/Core/ConductorGesture.swift", - "/Users/aaron/Documents/WindowShade/tests/ConductorGestureTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mvh3deh6/gesture" - ], - "exit_code": 0, - "elapsed_seconds": 1.5156627079995815, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mvh3deh6/gesture" - ], - "exit_code": 0, - "elapsed_seconds": 0.04270295798778534, - "stdout": "ok C-011 flat line with natural wobble is tone 1 → low\nok C-012 rising stroke is tone 2 → medium\nok C-012 raw y-down coordinates are flipped first, so tone 2 stays tone 2\nok C-012 (control) forgetting the flip would swap tones 2 and 4\nok C-013 one rounded valley is tone 3 → high\nok C-014 falling stroke is tone 4 → xhigh, never max\nok C-013 a broken zigzag with several valleys is rejected, not tone 3\nok C-013 a dip below the jitter band is still a flat tone 1, not tone 3\nok C-013 a valley without a real rise afterwards is rejected, not tone 3\nok between tone 1 and tone 2 slopes is rejected, not rounded to the nearest\nok C-015 a small tremor is rejected, not scaled up into a tone\nok contact shorter than the settle period counts as an accidental touch\nok C-016 vertical swipes select no effort\nok C-016 right-to-left strokes are not mirrored into tones\nok C-016 a stroke that doubles back is not a tone\nok C-017 a narrow V reads as both tone 3 and one beat, so it is rejected\nok C-017 three beats drifting right are rejected, not tone 3 and not 3 beats\nok C-018 a full five-beat phrase requests max\nok C-018 after the fourth beat the preview shows 4\nok C-019 a full six-beat phrase requests ultra\nok C-019 after the fifth beat the preview shows 5\nok C-019 lifting in the middle of the sixth beat is rejected, not taken as 5 beats (max)\nok 1 beats request the matching level\nok 2 beats request the matching level\nok 3 beats request the matching level\nok 4 beats request the matching level\nok seven beats are rejected, not clamped to six\nok C-020 a wobble at the bottom of a beat does not count as an extra beat\nok C-020 a drop without a real rebound is not a beat\nok C-021 fast and slow five-beat phrases both request max\nok C-021 beats faster than 150ms apart are rejected\nok C-021 a long pause inside a phrase breaks it instead of counting on\nok C-022 a phrase longer than 6 seconds is dropped\nok a NaN coordinate rejects the whole stroke\nok an out-of-range coordinate rejects the whole stroke\nok time going backwards rejects the whole stroke\nok an empty stroke is safe\nok out-of-range gestures map to no effort\nok no tone ever requests max or ultra\nall conductor gesture tests passed\n", - "stderr": "" - } -] \ No newline at end of file diff --git a/tests/archive/part8/validation/regressions/legacy/regressions-process.json b/tests/archive/part8/validation/regressions/legacy/regressions-process.json deleted file mode 100644 index b4facdf6..00000000 --- a/tests/archive/part8/validation/regressions/legacy/regressions-process.json +++ /dev/null @@ -1,119 +0,0 @@ -[ - { - "argv": [ - "cc", - "-std=c11", - "-O2", - "-Wall", - "-Wextra", - "-Werror", - "-c", - "/Users/aaron/Documents/WindowShade/prototype/Native/WS2Child.c", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-wggwpdon/child.o" - ], - "exit_code": 0, - "elapsed_seconds": 0.1267652079986874, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/Users/aaron/Documents/WindowShade/prototype/Native", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-wggwpdon/child.o", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part6/tests/ProcessTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-wggwpdon/part6-process" - ], - "exit_code": 0, - "elapsed_seconds": 3.119397916016169, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-wggwpdon/part6-process", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part6/tests/child.py", - "tests/part8/validation/regressions/legacy/regression-part6-process-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 0.6856560420128517, - "stdout": "SCENE PROC01 explicit bounded diagnostic tail does not block stdout\nSCENE PROC02 default diagnostics stays disabled\nSCENE PROC03 direct child exit status is separate from protocol outcome\nSCENE PROC05 partial final frame rejected\nSCENE PROC06 coalesced trailing frames retain ordering\nSCENE PROC07 stop closes transport once and waits for independent exit evidence\nSCENE PROC08 diagnostic buffer can be explicitly cleared\nSCENE PROC09 invalid diagnostic limit rejected before spawning\nSCENE PROC10 late scope change blocks an admitted frame\nRESULT scenarios=9 assertions=27 failures=0\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/Users/aaron/Documents/WindowShade/prototype/Native", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-wggwpdon/child.o", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part5/tests/ProcessTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-wggwpdon/part5-process" - ], - "exit_code": 0, - "elapsed_seconds": 3.2779459589801263, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-wggwpdon/part5-process", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part5/tests/fake-child.py", - "tests/part8/validation/regressions/legacy/regression-part5-process-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 3.3055084589868784, - "stdout": "SCENE IO01 split response, simultaneous write, stderr burst\nSCENE IO02 pipe backpressure deadline closes without retry\nSCENE IO03 truncated EOF rejected\nSCENE IO04 EPIPE does not kill parent with SIGPIPE\nSCENE IO05 multiple coalesced lines delivered in order\nSCENE IO06 oversized incoming line rejected\nSCENE IO07 final write gate and stale epoch\nSCENE IO08 per-batch context gate checked after admission\nRESULT scenarios=8 assertions=26 failures=0\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/Users/aaron/Documents/WindowShade/prototype/Native", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-wggwpdon/child.o", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part6/tests/ExitInheritanceProbe.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-wggwpdon/PROC04" - ], - "exit_code": 0, - "elapsed_seconds": 3.433730791992275, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-wggwpdon/PROC04", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part6/tests/child.py", - "tests/part8/validation/regressions/legacy/regression-PROC04-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 1.0506527080142405, - "stdout": "PROC04 OBSERVED_PASS elapsed=0.1171219166717492\n", - "stderr": "" - } -] \ No newline at end of file diff --git a/tests/archive/part8/validation/regressions/part7/core-commands.json b/tests/archive/part8/validation/regressions/part7/core-commands.json deleted file mode 100644 index c3c4d68d..00000000 --- a/tests/archive/part8/validation/regressions/part7/core-commands.json +++ /dev/null @@ -1,65 +0,0 @@ -[ - { - "argv": [ - "cc", - "-std=c11", - "-O2", - "-Wall", - "-Wextra", - "-Werror", - "-c", - "/Users/aaron/Documents/WindowShade/prototype/Native/WS2Child.c", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-75mj96ja/child.o" - ], - "exit_code": 0, - "elapsed_seconds": 0.4433408749755472, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/Users/aaron/Documents/WindowShade/prototype/Native", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-75mj96ja/child.o", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2QuitBarrier.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedProtocolHost.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedScope.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/AgentSessions.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2ProjectDirectory.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2LocalLaunchProfile.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2VersionProbe.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedCodexSession.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedLaunchController.swift", - "/Users/aaron/Documents/WindowShade/tests/part7/tests/TestSupport.swift", - "/Users/aaron/Documents/WindowShade/tests/part7/tests/CoreTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-75mj96ja/suite" - ], - "exit_code": 0, - "elapsed_seconds": 24.532836458005477, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-75mj96ja/suite", - "tests/part8/validation/regressions/part7/core-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 0.11831008302397095, - "stdout": "PASS JSON01 empty object [1]\nPASS JSON02 nested [1]\nPASS JSON03 duplicate [1]\nPASS JSON04 escaped duplicate [1]\nPASS JSON05 nested duplicate [1]\nPASS JSON06 surrogate pair [1]\nPASS JSON07 lone high surrogate [1]\nPASS JSON08 lone low surrogate [1]\nPASS JSON09 leading zero [1]\nPASS JSON10 fraction exponent [1]\nPASS JSON11 trailing data [1]\nPASS JSON12 trailing comma [1]\nPASS JSON13 invalid escape [1]\nPASS JSON14 raw control [1]\nPASS JSON15 unicode [1]\nPASS JSON16 incomplete exponent [1]\nPASS JSON17 deep [1]\nPASS JSON18 whitespace [1]\nPASS JSON19 size and node budgets [3]\nPASS URL01 browser scheme and exact host [8]\nPASS WIRE01 duplicate keys close before RPC interpretation [2]\nPASS QUIT01 both owners must settle [3]\nPASS QUIT02 updater alone cannot release child [3]\nPASS WIRE02 ambiguous result/error envelope [2]\nPASS QUIT03 veto and double begin [3]\nPASS PROFILE01 creates private state without overwriting changes [6]\nPASS PROFILE02 project configuration and linked state reject [3]\nTOTAL 27 scenarios, 51 assertions\n", - "stderr": "" - } -] \ No newline at end of file diff --git a/tests/archive/part8/validation/regressions/part7/core-results.json b/tests/archive/part8/validation/regressions/part7/core-results.json deleted file mode 100644 index 2f939333..00000000 --- a/tests/archive/part8/validation/regressions/part7/core-results.json +++ /dev/null @@ -1,137 +0,0 @@ -[ - { - "assertions" : 1, - "name" : "JSON01 empty object", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON02 nested", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON03 duplicate", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON04 escaped duplicate", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON05 nested duplicate", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON06 surrogate pair", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON07 lone high surrogate", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON08 lone low surrogate", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON09 leading zero", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON10 fraction exponent", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON11 trailing data", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON12 trailing comma", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON13 invalid escape", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON14 raw control", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON15 unicode", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON16 incomplete exponent", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON17 deep", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON18 whitespace", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "JSON19 size and node budgets", - "result" : "PASS" - }, - { - "assertions" : 8, - "name" : "URL01 browser scheme and exact host", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "WIRE01 duplicate keys close before RPC interpretation", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "QUIT01 both owners must settle", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "QUIT02 updater alone cannot release child", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "WIRE02 ambiguous result\/error envelope", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "QUIT03 veto and double begin", - "result" : "PASS" - }, - { - "assertions" : 6, - "name" : "PROFILE01 creates private state without overwriting changes", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "PROFILE02 project configuration and linked state reject", - "result" : "PASS" - } -] \ No newline at end of file diff --git a/tests/archive/part8/validation/regressions/part7/flow-commands.json b/tests/archive/part8/validation/regressions/part7/flow-commands.json deleted file mode 100644 index 2fbf968f..00000000 --- a/tests/archive/part8/validation/regressions/part7/flow-commands.json +++ /dev/null @@ -1,66 +0,0 @@ -[ - { - "argv": [ - "cc", - "-std=c11", - "-O2", - "-Wall", - "-Wextra", - "-Werror", - "-c", - "/Users/aaron/Documents/WindowShade/prototype/Native/WS2Child.c", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-7u2r3e9_/child.o" - ], - "exit_code": 0, - "elapsed_seconds": 0.19167749999905936, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/Users/aaron/Documents/WindowShade/prototype/Native", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-7u2r3e9_/child.o", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2QuitBarrier.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedProtocolHost.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedScope.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/AgentSessions.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2ProjectDirectory.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2LocalLaunchProfile.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2VersionProbe.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedCodexSession.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedLaunchController.swift", - "/Users/aaron/Documents/WindowShade/tests/part7/tests/TestSupport.swift", - "/Users/aaron/Documents/WindowShade/tests/part7/tests/FlowTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-7u2r3e9_/suite" - ], - "exit_code": 0, - "elapsed_seconds": 24.641663249989506, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-7u2r3e9_/suite", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-7u2r3e9_/fake-codex.py", - "tests/part8/validation/regressions/part7/flow-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 30.77072900001076, - "stdout": "PASS FLOW01 local launch and actual stream completion [21]\nPASS FLOW02 resume only the locally associated project [8]\nPASS FLOW03 different project cannot reuse old thread [6]\nPASS FLOW04 actual login response and exact login ID [10]\nPASS FLOW05 interrupt RPC is not final completion [12]\nPASS FLOW06 elevation always declined by local entry [9]\nPASS FLOW07 failed turn is not successful completion [7]\nPASS FLOW08 mismatched version [7]\nPASS FLOW09 effective config mismatch [7]\nPASS FLOW10 duplicate raw JSON [7]\nPASS FLOW11 reject arbitrary auth URL [7]\nPASS FLOW12 unrelated login completion cannot authenticate [6]\nPASS FLOW13 project replacement invalidates submission [6]\nPASS FLOW14 actual lock invalidation and no automatic restart [6]\nPASS FLOW15 diagnostics are opt-in and clearable [7]\nPASS FLOW16 version-probe cancellation still awaits reaping [6]\nPASS FLOW17 version timeout does not invent a reap receipt [5]\nPASS FLOW18 login cancellation requires fresh account verification [8]\nTOTAL 18 scenarios, 145 assertions\n", - "stderr": "" - } -] \ No newline at end of file diff --git a/tests/archive/part8/validation/regressions/part7/flow-outbound.ndjson b/tests/archive/part8/validation/regressions/part7/flow-outbound.ndjson deleted file mode 100644 index 1938993f..00000000 --- a/tests/archive/part8/validation/regressions/part7/flow-outbound.ndjson +++ /dev/null @@ -1,92 +0,0 @@ -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-8DE8D486-3488-4AC3-AD18-008EE12C8D25/login-wrong-id-B869C085-76AB-4CCB-8924-3C61EF189969/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "account/login/start", "params": {"type": "chatgpt"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-8DE8D486-3488-4AC3-AD18-008EE12C8D25/diagnostics-5F315DFD-0510-4A9A-B994-C1A55C7216F9/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "thread/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-8DE8D486-3488-4AC3-AD18-008EE12C8D25/diagnostics-5F315DFD-0510-4A9A-B994-C1A55C7216F9/project", "model": "fixture-a", "sandbox": "read-only"}} -{"id": 6, "method": "turn/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "effort": "medium", "input": [{"text": "\u8bca\u65ad", "text_elements": [], "type": "text"}], "model": "fixture-a", "sandboxPolicy": {"networkAccess": false, "type": "readOnly"}, "threadId": "thread-real-fixture"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-8DE8D486-3488-4AC3-AD18-008EE12C8D25/failed-DF3852E8-AE22-48D5-9AFD-FC8B4E2204A9/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "thread/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-8DE8D486-3488-4AC3-AD18-008EE12C8D25/failed-DF3852E8-AE22-48D5-9AFD-FC8B4E2204A9/project", "model": "fixture-a", "sandbox": "read-only"}} -{"id": 6, "method": "turn/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "effort": "medium", "input": [{"text": "\u5931\u8d25\u6d4b\u8bd5", "text_elements": [], "type": "text"}], "model": "fixture-a", "sandboxPolicy": {"networkAccess": false, "type": "readOnly"}, "threadId": "thread-real-fixture"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-8DE8D486-3488-4AC3-AD18-008EE12C8D25/url-4FF41EC5-D3A5-4F26-BD36-E8D7A0C6A64A/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "account/login/start", "params": {"type": "chatgpt"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-8DE8D486-3488-4AC3-AD18-008EE12C8D25/lock/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "thread/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-8DE8D486-3488-4AC3-AD18-008EE12C8D25/lock/project", "model": "fixture-a", "sandbox": "read-only"}} -{"id": 6, "method": "turn/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "effort": "medium", "input": [{"text": "\u9501\u5b9a\u6d4b\u8bd5", "text_elements": [], "type": "text"}], "model": "fixture-a", "sandboxPolicy": {"networkAccess": false, "type": "readOnly"}, "threadId": "thread-real-fixture"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-8DE8D486-3488-4AC3-AD18-008EE12C8D25/normal-9DE964C5-3A72-41C9-B94E-33C7BAB46515/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "thread/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-8DE8D486-3488-4AC3-AD18-008EE12C8D25/normal-9DE964C5-3A72-41C9-B94E-33C7BAB46515/project", "model": "fixture-a", "sandbox": "read-only"}} -{"id": 6, "method": "turn/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "effort": "medium", "input": [{"text": "\u4f60\u597d", "text_elements": [], "type": "text"}], "model": "fixture-a", "sandboxPolicy": {"networkAccess": false, "type": "readOnly"}, "threadId": "thread-real-fixture"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-8DE8D486-3488-4AC3-AD18-008EE12C8D25/normal-9DE964C5-3A72-41C9-B94E-33C7BAB46515/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "thread/resume", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "sandbox": "read-only", "threadId": "thread-real-fixture"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-8DE8D486-3488-4AC3-AD18-008EE12C8D25/other", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-8DE8D486-3488-4AC3-AD18-008EE12C8D25/directory-5744F98E-DE25-468B-AAE1-D5785CA0D561/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-8DE8D486-3488-4AC3-AD18-008EE12C8D25/login-34C8DE52-EB96-452B-8969-87377278EFA4/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "account/login/start", "params": {"type": "chatgpt"}} -{"id": 6, "method": "account/read", "params": {"refreshToken": false}} -{"id": 7, "method": "account/logout"} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-8DE8D486-3488-4AC3-AD18-008EE12C8D25/config-960FABB0-0AF9-4374-A5DA-82F2CC7DE445/project", "includeLayers": true}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-8DE8D486-3488-4AC3-AD18-008EE12C8D25/approval-CAEA80BD-0812-4EE0-9B53-071C0E748BF3/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "thread/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-8DE8D486-3488-4AC3-AD18-008EE12C8D25/approval-CAEA80BD-0812-4EE0-9B53-071C0E748BF3/project", "model": "fixture-a", "sandbox": "read-only"}} -{"id": 6, "method": "turn/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "effort": "medium", "input": [{"text": "\u67e5\u8be2", "text_elements": [], "type": "text"}], "model": "fixture-a", "sandboxPolicy": {"networkAccess": false, "type": "readOnly"}, "threadId": "thread-real-fixture"}} -{"id": "approval-fixture", "result": {"decision": "decline"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-8DE8D486-3488-4AC3-AD18-008EE12C8D25/login-cancel-E4E74105-2807-4C58-8833-5DC90963BF3C/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "account/login/start", "params": {"type": "chatgpt"}} -{"id": 6, "method": "account/login/cancel", "params": {"loginId": "login-fixture"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-8DE8D486-3488-4AC3-AD18-008EE12C8D25/hold-2B1122E3-FFC9-4004-9DA1-8047AD828B6C/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "thread/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-8DE8D486-3488-4AC3-AD18-008EE12C8D25/hold-2B1122E3-FFC9-4004-9DA1-8047AD828B6C/project", "model": "fixture-a", "sandbox": "read-only"}} -{"id": 6, "method": "turn/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "effort": "medium", "input": [{"text": "\u505c\u5728\u8fd9\u91cc", "text_elements": [], "type": "text"}], "model": "fixture-a", "sandboxPolicy": {"networkAccess": false, "type": "readOnly"}, "threadId": "thread-real-fixture"}} -{"id": 7, "method": "turn/interrupt", "params": {"threadId": "thread-real-fixture", "turnId": "turn-1"}} diff --git a/tests/archive/part8/validation/regressions/part7/flow-results.json b/tests/archive/part8/validation/regressions/part7/flow-results.json deleted file mode 100644 index 67078c03..00000000 --- a/tests/archive/part8/validation/regressions/part7/flow-results.json +++ /dev/null @@ -1,92 +0,0 @@ -[ - { - "assertions" : 21, - "name" : "FLOW01 local launch and actual stream completion", - "result" : "PASS" - }, - { - "assertions" : 8, - "name" : "FLOW02 resume only the locally associated project", - "result" : "PASS" - }, - { - "assertions" : 6, - "name" : "FLOW03 different project cannot reuse old thread", - "result" : "PASS" - }, - { - "assertions" : 10, - "name" : "FLOW04 actual login response and exact login ID", - "result" : "PASS" - }, - { - "assertions" : 12, - "name" : "FLOW05 interrupt RPC is not final completion", - "result" : "PASS" - }, - { - "assertions" : 9, - "name" : "FLOW06 elevation always declined by local entry", - "result" : "PASS" - }, - { - "assertions" : 7, - "name" : "FLOW07 failed turn is not successful completion", - "result" : "PASS" - }, - { - "assertions" : 7, - "name" : "FLOW08 mismatched version", - "result" : "PASS" - }, - { - "assertions" : 7, - "name" : "FLOW09 effective config mismatch", - "result" : "PASS" - }, - { - "assertions" : 7, - "name" : "FLOW10 duplicate raw JSON", - "result" : "PASS" - }, - { - "assertions" : 7, - "name" : "FLOW11 reject arbitrary auth URL", - "result" : "PASS" - }, - { - "assertions" : 6, - "name" : "FLOW12 unrelated login completion cannot authenticate", - "result" : "PASS" - }, - { - "assertions" : 6, - "name" : "FLOW13 project replacement invalidates submission", - "result" : "PASS" - }, - { - "assertions" : 6, - "name" : "FLOW14 actual lock invalidation and no automatic restart", - "result" : "PASS" - }, - { - "assertions" : 7, - "name" : "FLOW15 diagnostics are opt-in and clearable", - "result" : "PASS" - }, - { - "assertions" : 6, - "name" : "FLOW16 version-probe cancellation still awaits reaping", - "result" : "PASS" - }, - { - "assertions" : 5, - "name" : "FLOW17 version timeout does not invent a reap receipt", - "result" : "PASS" - }, - { - "assertions" : 8, - "name" : "FLOW18 login cancellation requires fresh account verification", - "result" : "PASS" - } -] \ No newline at end of file diff --git a/tests/archive/part8/validation/regressions/part7/native-commands.json b/tests/archive/part8/validation/regressions/part7/native-commands.json deleted file mode 100644 index 66d6fc19..00000000 --- a/tests/archive/part8/validation/regressions/part7/native-commands.json +++ /dev/null @@ -1,67 +0,0 @@ -[ - { - "argv": [ - "cc", - "-std=c11", - "-O2", - "-Wall", - "-Wextra", - "-Werror", - "-c", - "/Users/aaron/Documents/WindowShade/prototype/Native/WS2Child.c", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-lhb1qjs9/child.o" - ], - "exit_code": 0, - "elapsed_seconds": 0.6562997500004712, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/Users/aaron/Documents/WindowShade/prototype/Native", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-lhb1qjs9/child.o", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2QuitBarrier.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedProtocolHost.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedScope.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/AgentSessions.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2ProjectDirectory.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2LocalLaunchProfile.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2VersionProbe.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedCodexSession.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedLaunchController.swift", - "/Users/aaron/Documents/WindowShade/tests/part7/tests/TestSupport.swift", - "/Users/aaron/Documents/WindowShade/tests/part7/tests/NativeTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-lhb1qjs9/suite" - ], - "exit_code": 0, - "elapsed_seconds": 17.5364457090036, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-lhb1qjs9/suite", - "/Users/aaron/Documents/WindowShade/tests/part7/fixtures/native-child.py", - "/opt/homebrew/bin/python3", - "tests/part8/validation/regressions/part7/native-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 2.399403582996456, - "stdout": "PASS NATIVE01 direct child ignores TERM then owned group KILL [6]\nPASS NATIVE02 inherited descriptor descendant cannot delay direct exit [5]\nPASS NATIVE03 unrelated descriptors do not reach child [3]\nTOTAL 3 scenarios, 14 assertions\n", - "stderr": "DIAG exited=true termination=Optional(suite.WS2DuplexProcess.Termination(status: 0, wasSignalled: false)) stopped=true supervision=nil lines=[\"{\\\"parent\\\":1}\"] elapsed=0.1504678333294578\n" - } -] \ No newline at end of file diff --git a/tests/archive/part8/validation/regressions/part7/native-results.json b/tests/archive/part8/validation/regressions/part7/native-results.json deleted file mode 100644 index e4afbc2b..00000000 --- a/tests/archive/part8/validation/regressions/part7/native-results.json +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "assertions" : 6, - "name" : "NATIVE01 direct child ignores TERM then owned group KILL", - "result" : "PASS" - }, - { - "assertions" : 5, - "name" : "NATIVE02 inherited descriptor descendant cannot delay direct exit", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "NATIVE03 unrelated descriptors do not reach child", - "result" : "PASS" - } -] \ No newline at end of file diff --git a/tests/archive/part8/validation/tools-tests.json b/tests/archive/part8/validation/tools-tests.json deleted file mode 100644 index e2dea158..00000000 --- a/tests/archive/part8/validation/tools-tests.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "tests_run": 18, - "failures": 0, - "errors": 0, - "cases": [ - { - "name": "__main__.Tests.test_bad_overlay", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_base_symlink", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_duplicate_manifest_path", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_existing_directory", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_existing_file", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_extra_base", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_extra_overlay", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_missing_base", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_missing_overlay", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_nested_output", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_overlay_symlink", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_package_output", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_success_and_original", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_symlink_parent", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_traversal", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_wrong_base", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_wrong_base_sha", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_wrong_count", - "result": "PASS" - } - ] -} diff --git a/tests/archive/part8/validation/wiring-static.json b/tests/archive/part8/validation/wiring-static.json deleted file mode 100644 index f40ff012..00000000 --- a/tests/archive/part8/validation/wiring-static.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "checks": [ - { - "name": "discovery does not install handlers", - "result": "PASS", - "level": "static source guard" - }, - { - "name": "existing input handler refused", - "result": "PASS", - "level": "static source guard" - }, - { - "name": "background setting not assigned", - "result": "PASS", - "level": "static source guard" - }, - { - "name": "handler release restores queue", - "result": "PASS", - "level": "static source guard" - }, - { - "name": "model page cannot call send or approve", - "result": "PASS", - "level": "static source guard" - }, - { - "name": "model adoption uses real controller", - "result": "PASS", - "level": "static source guard" - }, - { - "name": "page lease and key window checked", - "result": "PASS", - "level": "static source guard" - }, - { - "name": "armed target visibly represented", - "result": "PASS", - "level": "static source guard" - }, - { - "name": "refocus refresh does not re-enable", - "result": "PASS", - "level": "static source guard" - }, - { - "name": "strict missing-value policy exists", - "result": "PASS", - "level": "static source guard" - }, - { - "name": "retries retain transaction not entire state", - "result": "PASS", - "level": "static source guard" - }, - { - "name": "physical attempt bound to ledger", - "result": "PASS", - "level": "static source guard" - }, - { - "name": "notch uses actual evidence caller", - "result": "PASS", - "level": "static source guard" - }, - { - "name": "read-only profile kept", - "result": "PASS", - "level": "static source guard" - } - ], - "application_build": "NOT RUN", - "hardware": "NOT RUN" -} diff --git a/tests/archive/part9/base-files.json b/tests/archive/part9/base-files.json deleted file mode 100644 index 8e62913c..00000000 --- a/tests/archive/part9/base-files.json +++ /dev/null @@ -1,1169 +0,0 @@ -{ - "LICENSE": "b1bd5e5e226fed0591e56f8a12c3e95163df2cdc5ea1a41df7bcdc23e52dd3d3", - "README_CN.md": "b5902a934d10180cec5e05a1f6b3c328d8a4ee41bcd45db811f98aa53ee2bb9a", - "AGENTS.md": "5ec0f273f4e4f46c7fc2281fd436c58b79aed02183c35e3105bd664f84854f26", - "README.md": "71d62059ec243ecc89d3ee82d76f3dd217a94a1a66acfc314e092453726c3bbf", - "WS2-STAGING.json": "81e1ce0044437dff2b349dd063fca4cb4e29de1a3b870a5189dc3c0b5fb05e4f", - ".gitignore": "979af68a27b2848e27b69bc2f4b2b45a1b7a27e0b19c2f20e0c1572ae779f9bf", - "DEVELOPMENT.md": "7900a744b56df4f4f91bf34e5bcc8ef2a9bda5dbb6a62cb7a0481f5865be9c41", - "WindowShade.md": "3d4df4752cbd52234d255869f69366711e4bf3afb9020482a82a6613e6c5a266", - "assets/readme-desk-dark.png": "99c2459a44d3c6ce120c79abe2e1de3cfebfd942d23df9dfb422779f3787dc71", - "assets/windowshade-lid-en.gif": "7bb2a6219a9937b9f1d7ff31f6452c598816bd15eb88931c1cb4318a1ec67bc0", - "assets/readme-desk.png": "7d5b75a5f681bb721dca728a5b31b7f6b8f0842a38c8adaf2684a4b6196d6a34", - "assets/readme-desk-en.png": "9090f27082cb2ff24c07a07b82e2f408fc5012cd57e41e76140e0bc37003f80c", - "assets/windowshade-demo.gif": "328f44f4da1265a7dfe0e5ca294047a4f9a25a4e2da1d9c631e449335262925d", - "assets/windowshade-lid.gif": "2998c24b9e05852d3373810f20112a17c3ad7b72c074230901c92502fd07ccb0", - "assets/windowshade-settings.png": "d61516dc78124b9531b8febc2ba3c8b2faafe3b1a8f1f501a8a6ee6903855d28", - "assets/windowshade-hero.png": "577ec0e66653bb826cc638bf5a82b30afa82c196ed5985fc2e355165f4ce4f17", - "assets/windowshade-settings-dark.png": "ebc62f0aebe62073f3c130dfb546aa99df6be6664b4f7b470d0b015127dd98f8", - "assets/windowshade-menubar.svg": "154365b3f54725ec11e913a6bd772a468dd24d7c968f32a1007ab0bb2fd9f8d5", - "assets/readme-desk-en-dark.png": "6afa1709eda74780793286bad28553ae7ac604b12c4b9f15ec71f25da08533f6", - "docs/vendor-biometric-research.md": "a01f2d2b7ccc767b47bffeadd97cff72fcf9d02341217a36d613422ba3a306b4", - "docs/welcome.md": "e6749f4bafdb588366b5e6b1b6b3cef2fad0b30081fc686745c9d8b2bae659ba", - "docs/privacy-page.md": "f0d41966695d89e893ce3a315e177e1460f414548de16a1d2988a19b1ec78770", - "docs/conductor.md": "ff7720f65b4f337f51c20e0e75ba726fbe0580ce600f48c962152462606875a5", - "docs/device-battery.md": "655de0eacca269fdf91a946404ccafc493b2cc5fed5cffe925cd002491997358", - "docs/live-activities.md": "4caab93fe0c0736d85520feb41d28e32a7bae94bcb8f3efa2ff0440fb9260c6d", - "docs/window-browser-progress.md": "4b732c36182a6a3bf53e7274efddcf4e04c982ed20d86dc07e9c982a4b0a3b9b", - "docs/design-proposal-claude.md": "a4a1d452d194efe13504d511ff868eeea2bee50d12ccfa62c662597270162033", - "docs/stuck-habits.md": "c6b291d7a477e3ef5379957dace049db769b083982e7b14a6cfd4c214f01620a", - "docs/hardware-fit.md": "d14f89076a7ab37a61a3360c4ae2149f59cd401e719461efcef20af2c5b5e275", - "docs/multidisplay-authentication.md": "6bd31097ab87f2f1e068cba583ca093e4ce381661ff72fc5cc0074964abebd67", - "docs/validation-2026-09-22.md": "62abd3ac822ea9dd8fadbe218d7266ec7d0a9237bad51bb7c4e972e92ba4425e", - "docs/direction.md": "513e4f42d4d9ace6226f112144b6c4bddfa8af9eb32764111ed852bda48c8d60", - "docs/ssc.md": "487a8f561f4d324f4db098edb82ef9f8d9db6caf86aa2ab990edbde9ffbd1baa", - "docs/authentication-boundaries.md": "9ac894b177c752bbe1777cea1e399864690de1e9bc8f46e7e6b0926865e312ee", - "docs/lid-effect.md": "cff5610ca05302afd52293633b36900e57d89abb26d611ada26faa7013b67e59", - "docs/windowshade-requirements-status.md": "f25a63f84555d95a2e9697287d06fdaa5f7c89536f9911cd4c5711289a2c90b7", - "docs/blueprint.md": "c9f10268752be9c75d6d269de73e58309c94d409a9b7f64233f595a40ff11de9", - "docs/niri.md": "4c52682ba547845e1e336ad5ed368f2c4cbf21499dd0862bf6415a2222a07556", - "docs/claude-lanes-2026-09-25.md": "9eee45a2e910478a0a13d411330dfb835f55043b4d35053957f45e52a33342b3", - "docs/review-2026-09-22.md": "5a8cf4a5f91c97787a44d3df90e075f64a7b6da3b1e0650b903df397fd521d05", - "docs/slide-over-review.md": "1c0b2c7c4ebac9921566ac68e958e68930cff0fa140d1abfec210cf0c80eca1a", - "docs/window-browser-performance.md": "96a7db937e1bc15ed831508f20fbe2bb9fec038a78c15e52255873c9922ac980", - "docs/menu-bar.md": "6ba87eb72d428ad59b853cf3e029acde5f3edfa2c4f06cdc056f1b226d778158", - "docs/pomodoro.md": "b1295d44a0932d2742d207edda8c21294cdcc302c593eb3027eee3de793e76ea", - "docs/face-unlock.md": "9c191b9a39e43932e0bf8c587a8e0f8d849752bb6f6ef52fe4078322e8c4f59f", - "docs/slide-over.md": "9fcf23e41ebc04dbdd03532cb1740b368e707532dbde827fa1a6289e5c634a84", - "docs/competitors.md": "fbf5b07f817834a951af1c95cd036d68e14f4d2be465b5160a5412335021aa55", - "docs/glance.md": "bdd5a636348bb5dfe11959853823af7106e3d0fae37a3e0f4a60454f8e8eb5be", - "docs/design-system.md": "65b56799b1c169d2c1b6424ee00e22e5726acfa9253f353142e64bcbec491c62", - "docs/glance-integration.md": "e43ca70196487a22fe82e931b579bb8ddcee08847018566c4f51c02fb9d0d66c", - "docs/input-devices.md": "02bf83893ca3125232a8dcd80ebab1fd265ab6bfe1d96fa949174dee68fcd6ee", - "docs/integration-loupe-glance.md": "74111d9a7fd05f3882752a08ffe7b4cf7213acd5a8bb10a7a3a7a491d070cb9f", - "docs/launchpad-design.md": "03c47604122ec36bbbf1ee4546e2be570e59abf6794a55714e02cfb8c806bb36", - "docs/window-browser-polish.md": "e6c24261ca1007e214444d9e6ac14ee1d330aeb0f04720713a3cc3b633b85fa1", - "docs/agents-in-notch.md": "98664f72fa7279b8ecac4674574fa4063a4457f5a286b82cf4faf7ddf44b3b78", - "docs/performance.md": "03a3bd2918a1f58e3bc4ce3dc7d79d74e88ecbbbc620cc2e91576dc3bd5833db", - "docs/lock-unlock-plan.md": "59e782cecea525c98dda7033b07c4873bd9be678c244587059a7edcf9e82735d", - "docs/design-review-1.0.14.md": "63d59ef156dbf6aff25c88c34205779d172180dbd2a96db3ccb6248c5f48a33d", - "docs/dynamic-lock.md": "1b355f08a3f3cb02b41f4667a64c259cd30e1ea33001a5dd1af6b24c3f70a85b", - "docs/window-browser-visual-qa.md": "46c5f8e44074a816ee370fd8dfb2bea63de9d04bcf867549f579a20eed714b86", - "docs/design-v1.md": "3b623a284c9951ddec2df0fa7711f9da1f774b5f37aad74f1b8cb0560b8ba7be", - "docs/pip.md": "74c9b37f4473d7ef8c7bc54d0a3cb64f87bc02e5a853e5ac013adb08023bf8ff", - "docs/notch.md": "71c0d9daf1cf118544aae131550adfbcae2c39007631541e7509c792a7dfe2d3", - "docs/window-browser-test-coverage.md": "5b6de1a8159407b3875660621a421304cbff7bef50e4480359135bfa2aa056a3", - "docs/review-handoff.md": "88248a00dad8f753544b5b0f7761bf425f22ac9c129550628a7d17fb5bdf6da3", - "docs/conductor-v2.md": "5c435d7e17bbdec2ba828718d5830721b77dd2e73d21e63c585f92d8a62d0494", - "docs/behavior-risk-research.md": "3fd394ae3291701174f58745727e35e2b7395480b302f371538a1b412a034dd8", - "docs/RELEASE-v1.0.10.md": "2ad3ba06630f9c018bbe28cf2170b256e81b456c78d25e50908a95759bf4e315", - "docs/launchpad.md": "6955298463ca2aa406fdaf2d3c5e8193a6264cc0affc800c8d592684ed7c675a", - "docs/glance-pro-prompt.md": "4338691621669764d139c5f8050d4617d4c9a059aa41120b4c5ac516abafc63d", - "docs/gestures.md": "285d619c2f6b4d8bb060aecf7eb8f2a09af65d56749ddc304e3ca85e9aabb62d", - "docs/update.md": "9cd132c1b37d598a19e341fd3009fcc52b3254456f76c77b35d4207fcf5ef1d3", - "docs/window-management-quality-progress.md": "3d51827a6c8f2a1603ba940b53ea1fb0545a119ea7c39e2df5af2bdbbc004b6e", - "docs/scorecard.md": "82857ac3d1ff908d61b37d07e8be05210b61730e6de46e11a57b048f54e821ba", - "docs/competitive-analysis.md": "b4a109a4db795f5f8d07f158cd42cbb982b6a2272881d14cb3731a5253205008", - "docs/system-integration-polish.md": "ccec7301237a4118354791bb2cbb6df03ce5fa456d999b4721acd6c56872068f", - "docs/motion-direction.md": "8f6c801d7a189ebc57a0dbf3057b0c0c5786d89b35d80280cfc6df4147827898", - "docs/touch-id-island.md": "71d3979b588171198c23110980b136ce5eab5cda56155e611e31a17b41c19a52", - "docs/window-browser.md": "b8015c096b7ad42d33a52ac65babf91aee7a13d3df9ac87f76f0a2d9a294b64f", - "docs/apple-accessory-interoperability.md": "c800abbb2b4bb1888194d4bee5cc4a9ba88f9770b29819b255b25ea910db4840", - "docs/ideas-switchers.md": "cd24cc08ea91a9724d4dd5df6553ce1b5ee4d7ccc0151a5557f01daddddd59a1", - "docs/third-party-lock-overlay.txt": "1520c03fc15ec8c17bd56947eabf885c593730a36fb13498bffbc688ed4657fc", - "docs/copy-guide.md": "029858deb8ef6823440e3df738c1e96c0b47b55a8dd5150313c82db1af1ff2b6", - "promo/package.json": "2f57b31a94affd8480966acd14d258437fc6ae9b1b1051dc4b1951c17e029bf1", - "promo/.prettierrc": "2a58e5602cb3d271fd359a75bbaf7b6e9faaf165c9178ff554ff8c48c80fcd8c", - "promo/eslint.config.mjs": "7f2ca640409fd597965bedf929073b9a74f143643e1711150c4cac3b6ec5c80d", - "promo/README.md": "7b76bf357f34b9dd1e820078d85a8851eb864f4982a43401055c5924d486b5eb", - "promo/publish.md": "765fcb252a02fca61b243b432dcae6725605aa524034b1759716fa4fcd93cfd2", - "promo/remotion.config.ts": "38e9e6394e32f151e454efdeb84da8bcc616da7550bc8ef52e1721a001745394", - "promo/.gitignore": "5952c5b46c4c2fe0f695d512c95baa6bbe4bef5f3b985c8fe52da10177ceb281", - "promo/tsconfig.json": "69d107d8754c0c175b1c1d5d29abc32ce157318b31ac90a3c7295c3550114cc8", - "promo/package-lock.json": "ba8a6d7b2db0937609334aa8889a719b94b7406b21c0db37ac1b035640b04da6", - "scripts/check-settings-appearance.sh": "ba4eea9d99f1dd57e48d38b4932fffb0f0a3790277e54362ce7b5cae9e43061d", - "scripts/try-duo.command": "7beeeccc2c79837276a165f4bde054271a5d1530c5716b49c312b58a14bf3624", - "scripts/check-standard-menu.sh": "1f186101ae461a577460a9d09e4921743e315a40c51b533f0664559519124044", - "scripts/sls-symbols.c": "de51dd06c9c10cbb592ba03e8e5fa7f473770a2182a9d7d6f01c43058dd4a173", - "tests/TimingFeaturesTests.swift": "00992191897b1588b0fb10fd3f6352cb76f45b3755b8bba049169278c41964d6", - "tests/PresencePolicyTests.swift": "5a42acc39d1ae69c1909860f710af17653058286f82430763c10630b9af68b9a", - "tests/DuoCoreTests.swift": "580fbdfa753b6fba4941f67abc0ce7fe58d182d37cb3409880647a5ea6d748f5", - "tests/duo-integration-check.py": "1614f812d80321117c4ecb43c3e649c4f0033092653ffbbd8026c45a0b127916", - "tests/run-launchpad-perf.sh": "736cbc2f64b15f3e728f79e1ae58c141edf3627fa70493b7612a26d4d3cd3d18", - "tests/PiPLayoutTests.swift": "7aa2aa88e9e7544c62eb17cd8e37b6f9eaccd0920f973dfa853d4e154b8a6653", - "tests/SwitcherOriginTests.swift": "c9b9e61901e25010f9b298f1ca336db108fbb25e6fef200e3df55f2aa107ecbb", - "tests/RectangleKeymapTests.swift": "8c9e19f57a17e324c30f52e4e3536a1901dc86bfa8b8b9fe4fa4d036056815e3", - "tests/DuoFrameMetadataTests.swift": "f1850663a3ea9b6c90220044a1ceaee046b6cc58200e4aea1d8b30daa3b04cef", - "tests/AudioDeviceCacheTests.swift": "6fd6a03c80db60e0eb5d79ec8b200da3dd0215a76a77b9a61476a4b761b18d26", - "tests/run-launchpad-view-tests.sh": "1d368439acb4436187e518545c4cc312272d870ee9d12a76737d3465825feee3", - "tests/run-scroll-strip-tests.sh": "736556ead95040acd1d30efc04ce834cb6e8eaed6caf807f5b9556e763bc3827", - "tests/run-paper-tests.sh": "318db5bf20dad164d2aa506851b0408b0c2f381bf92251fa1eba0f764bea8ca4", - "tests/run-conductor-gesture-tests.sh": "3c916a89a2431a405c20d30832d323df9e90da85952d53334bf7d41e299cdc49", - "tests/run-launchpad-backdrop-tests.sh": "9a8629dafe57968017455af16ad8f326ad4ee4fe7b3506d94aa68f4489dc8db2", - "tests/ConductorGestureTests.swift": "14439c86a80b4fe153084eb21dd3f944e9ade0c6ec2a1a5f3dd59a8f75b1239d", - "tests/NotchActivityTests.swift": "6f894ffa34175e557a8c6ae8cac03e866da49aa66ce16d7221a71ad331e85d13", - "tests/run-notch-activity-tests.sh": "4fae5b0d1024959337536cf23e2f2da99be3d88a41101bdea1db5dde1d38b9eb", - "tests/PaperSurfaceTests.swift": "08434cb38b6e8dbee4bba57914d27a312cefbfc29abf059cbea96017b5309839", - "tests/run-lock-probe.sh": "84fa4a9bbfc498812aa3ec379d4431d137b3a58c328ae1feabf4ed193be52681", - "tests/run-perf-check.sh": "c19afb6cee942b1e6897f1a0c06bef183d2054ff92802d5eedc670034efa4a4b", - "tests/run-elsewhere-windows-tests.sh": "bbb5b677d1b5945922041bfde7a8668e69df0088f2bb6a2d1d7aebeca34114e9", - "tests/ElsewhereWindowsTests.swift": "a768bcf399abb35a1b82e21db77a777eb4a341ab7f138c5a231758dd72c6852c", - "tests/ScrollStripTests.swift": "584e0c4acd9533a0d48d3f7d2db5af433e37b204e6f89c1c3043dc5ef7b4d9a3", - "tests/QuietDefaultsTests.swift": "20f383f9c6d71958244714e8d4e4d007c5f8108f439152159418b28785831eca", - "tests/DuoOptimizationBenchmark.swift": "6414d5a1401ff857f521f09bedd0ce741e20a9ec2b6d6fb17fa861e434630ecf", - "tests/run-glance-tests.sh": "76b81023914f049fa2056f1e444ad5c72bb55422b0a708aff36c150a8a7a320d", - "tests/LivenessChallengeTests.swift": "be983797fa49a07346030c51ac0200c8bc7e6ed6fef77fa7302c4ed3783b4cc7", - "tests/run-presence-policy-tests.sh": "76d81e542e97c77c0effa407b5ef8abc596489cfa24b7958cc5ace1e1f2ab7ae", - "tests/DisplayShapeTests.swift": "63675a2a344167dc856d230a16c9664c770758f479ebb204fd164a0f066aa5b4", - "tests/run-dock-swipe-tests.sh": "f3940991392934f61cb0ad6a419e4e3a4352b8cec846070e3ea809d5fe39e07e", - "tests/run-stall-sampler-tests.sh": "96583b77de69f17bfcacf9b60eb279908ffc775ca8159f4a0dee21182a862bbb", - "tests/run-behavior-feature-tests.sh": "30f1b6f32a199748428a3ea58caa2502472ae633abf0257ac680b316ee82ec8d", - "tests/LaunchpadBackdropTests.swift": "99fe0c5c298970453842a07a8a2a290ecbc24fe01f94c1eec076977f2aa38321", - "tests/ThumbnailLayoutTests.swift": "de0edbb80b71a80e3cb069399d5d60c6fd60c4190486d554e30b92140b57bcf8", - "tests/CarryControllerTests.swift": "e5e0942bc5842490cd348d4f929d36be83712f083952c8c9704f2e1156b6e5b1", - "tests/DockSwipeTests.swift": "d59577e0b45d78f85f03246cfeaf1740e6c24a04d6f164b9c0019c5b3915f839", - "tests/run-duo-tests.sh": "fbdaedfc56e5ec5831cdb70c80474e80275f25cd7d167847ca075dc0359f27ce", - "tests/TrackpadGestureTests.swift": "32eb176b0ffc896dc94c1e4fd248a30e1bc08f9320afdee21624b74a00f9917a", - "tests/SplitPairTests.swift": "853ee7754c26bb20eae0610aac789dbcbbc1cf9c4b0ef28c911cff389ae36262", - "tests/run-appkit-tests.sh": "1f4adf5522dedfed94c7823038b1862e1e7d98e12f1402d727c84eecae29e0a2", - "tests/run-behavior-risk-tests.sh": "097a26043b9d2ce3caed924fd81921d79548f5da03b2a33d4b3176c41fcb3ae3", - "tests/run-lid-source-tests.sh": "1fea0bef734db6b26d5287835eeb4409a108ffbffece7c5e81f00b3c2a8b77e7", - "tests/run-update-tests.sh": "054fef60c81f32da4bb9f735268b93309d31b7b0a105a2726be91449a09193bb", - "tests/run-rectangle-keymap-tests.sh": "cca1bd690c1a235f7b96da9b3c16a073f7a591435ac804876d9e7ff4b77cb0ea", - "tests/run-update-integration.sh": "ff52749b120b1e1ea61e9310eb7384f43cb05089b30f515ed3abafff9800e402", - "tests/BehaviorRiskTests.swift": "6d6f7c617446c8c641badab45c1f4e950d5b0862150528462d6aa19eafe59d5d", - "tests/run-motion-tokens-tests.sh": "9990dc54d1dab6ec610183687617da9056ff296ee0ba0c3f7710ed92ffab2c4f", - "tests/run-magic-tiling-tests.sh": "736ad6ac12010c51c134f6b68689ba189bfc51dea20b845c835afdaf899802f5", - "tests/SeamLayoutTests.swift": "eb730924e1795377f54ade03d7465771b55d7195a17aafc649de5522077f86bc", - "tests/run-authorization-tests.sh": "df83f18a6857608321a5ced73f06e678e08d775846f93551f73d271e1d5a9158", - "tests/SettingsNavigationTests.swift": "c51f97ab6bcadac91cb8c80dc703fd3e870d908c27b2f024738444ceea9c95c8", - "tests/HabitRulesTests.swift": "c2ca1ad2424e89eabfda84fa57e8f2dbfb277e68b6453a6cbfe5106c624bb913", - "tests/run-display-shape-tests.sh": "0e98fd9d200c48e3bbbbecde18a7702664f85c2dea2bc975e38c1e41ce12d4d6", - "tests/CaptureIndicatorTests.swift": "68aa7694ebfa6326ec4e30d9291c14187f088f441f71ffa7d9817523330e2b1d", - "tests/run-notch-glance-tests.sh": "0b7a9c5836808a4ec2bec907e2bee4eb544d00fef7b60c8f935788824796a32f", - "tests/NotchGlanceTests.swift": "0dcbae862ee7eca51c49bac7f2c1b16fcd95c60c1019096a53adeb4ed78e73f9", - "tests/UpdateTests.swift": "f5c1a2bf55d90e69a1cfe0d82361ff50b496b218f1288be7cd4d5d807927b8b9", - "tests/run-seam-layout-tests.sh": "9172f47d9d5d52c1c84ec593d565c6a420e9d4e6a60e479a22102db4cc4071d5", - "tests/run-gesture-tests.sh": "c8b7d41ed2acbeb21d69565eaf7ec413824d402afb77acf5fc43a44dc8a1ab57", - "tests/MetadataQueueTests.swift": "8e942639ef13f95d9e0ce30a1a269ec9a2426f96ac48b2b772171d967d7c610a", - "tests/WindowFoldEffectsTests.swift": "4ee4862cd7a29f4edb2fdb40576551c45cb837cdb8bc85ffeedad4da8750e544", - "tests/StallSamplerTests.swift": "ccd7069deb5732a04f57982e24ea7fa3535613d125184c6e688fcbfb3dd47a40", - "tests/SlideOverMotionTests.swift": "557af4dd930a36ecaa394e23dfecb57c2ce927606df0cc2c56a4b053ac206872", - "tests/LidGestureTests.swift": "37ad9d94eedec3c240e14cdbf1364abf9d9876a54b290a1968f4be3e643a752c", - "tests/DuoGPUBenchmark.swift": "5638f59b1de734ce94684339f6fdea28cb347769b46943fc4b501852896da6bd", - "tests/MotionTokensTests.swift": "06a3cf8102bd9e4f5a11ff648af8c08701c21acd615c9891a175b68e1cd02444", - "tests/run-lid-report-probe.sh": "2032aea177570acb6e80a3a6fe0f18a8d637f2715b1f5b67ee6ba6c03597ad49", - "tests/NotchAuthenticationTests.swift": "6b7e46e7607040e2c4abc6b809859c748635004cc752ff6d207ec957c1dcaac5", - "tests/WindowListCacheTests.swift": "3fdcc5a24540d46735b371c4f83a3653864bc4ba06fce06fe536f109287ba54e", - "tests/LockOverlayLifecycleTests.swift": "3981318764b379d6e733a0acbd04bc0af613bca6148929c5a4e4d6e1d66ebf21", - "tests/run-launchpad-visual-fixture.sh": "b206a0d06f5b7b7798f3d09ab55c461e72f765bc9a6fb3efc220a08c749221c9", - "tests/run-window-browser-tests.sh": "60800f4fd7fc05ef6b0e559a0c78f07fdf73bef2a5fda18102e90a686bfd534a", - "tests/run-device-battery-tests.sh": "a05ab1776107781796cc5d4c41623935c171ac289441e9e5374e18f110fae05a", - "tests/run-lock-overlay-lifecycle-tests.sh": "424ab7dec4ddebc402574f614d116f2e72c02e8f2480c50ed6d523062cde5487", - "tests/LaunchpadModelTests.swift": "e0b350f6cc96e12fd4ac0ce3ce2663dc1ea29ea116b890c2328942fcd70a14ee", - "tests/run-liveness-tests.sh": "326a5a828ccb2538980bd527ef403fbd0d0727548133fae5654e85c05ad99a8c", - "tests/run-window-list-cache-tests.sh": "41c6d3f372235233afe6d298c40fd8ec60be406a19554b12be5b0c5787669ee2", - "tests/run-habit-rules-tests.sh": "80262b720b5cbc5c2e10bf83b4be8015033fba70da05145bba9d1f98d8636431", - "tests/run-face-gesture-tracker-tests.sh": "012ed6d90ccbf6ab9b8d5c820dcf44d07114ccf53e1ae82cfb3f921bd974c821", - "tests/DeviceBatteryTests.swift": "09980d117215ae7b47979f56c1afe9f99a8091f06ad901d54fbfeccbf4b97501", - "tests/WindowBrowserTests.swift": "880ea1e13c0082f81c13ad977c982a3232d655bb2c3ee76033cbcdd5e64e3602", - "tests/run-launchpad-tests.sh": "b8693dc395676c7a60c8ecf62e32ac4e64a698a49177807fa16a916ebcddfb1a", - "tests/NotchActivityViewTests.swift": "4954e6b70c0d40d4576a4307c7ecb132000944c0ef4dfa8475d8e507c026bee6", - "tests/run-slide-over-tests.sh": "2490f215c85b5a59be98866d7dd45f48f68844d1c07bd8f02b3ec9dc8e0dc142", - "tests/run-thumbnail-tests.sh": "aa67fee130a1ba37a58b3d05af861c1dbe5bfad5ef43fa96be8199ed15798d30", - "tests/run-capture-indicator-tests.sh": "29cb6a1301bccd1e7e78f328c4fb730dcb8071cdcd0d8bf82ab48e65aa0105a7", - "tests/ClassicStripTests.swift": "44e61393b8576e971c24bd5ba36f3242fafbe74cb41a43571500ba916f679564", - "tests/run-glance-probe.sh": "9b1f8e937104f0d57348c3738ad3819777cbbd3f907026ace72c18e17401760f", - "tests/LaunchpadViewTests.swift": "c4a9edaea813a157e900546f7b88123f083c1f20c8e0b8761ffd1210ecf80a4c", - "tests/GlanceLifecycleTests.swift": "36ff4b576f04cd482aa661a5b3e59609f5a97194652176f59e48bf0bd5875e02", - "tests/GlanceIntentTests.swift": "9151ea28b4a5208384581587f34273512b69faf4c680595b6f2c654f29c263f1", - "tests/run-pip-layout-tests.sh": "8f5de023f4cefaac9635bdda2cc90a63986ed5e33229fc0d996e07acab47031b", - "tests/FaceGestureTrackerTests.swift": "98239a145c0b7f45c20455fadad10255334ffbad6da6cf226f0de25871900d02", - "tests/run-notch-thumbnails-tests.sh": "54cf9b5defa374b7b84d27da6bc7590a56ac4cf1ac56125de0d0bd77d3151a30", - "tests/MagicTilingTests.swift": "03977451a1b2fda9dee0daaf45acbf1fefabcfd16a162b685929938a9fb8d270", - "tests/NotchThumbnailsTests.swift": "3cfa03c5ad9d1671cd0a2b94b3f62364cb51ac5904f738a9e5f7658bf45b4d37", - "tests/ShadeSoundTests.swift": "62ed4c93372fb29f764f22dcf968184fb06b73f998e5c55e33648b01a0a5516a", - "tests/run-notch-authentication-tests.sh": "6a4b7ee654ca912eb7d4798c3b4c1d0982853688a301d07eb449a8f792c2410f", - "tests/LidSourceTests.swift": "c07ff687a2a34e1a94f541fe44e2064496849bdc246678fdcb9eb9398cd4cebb", - "tests/AuthorizationLedgerTests.swift": "c012e780965ee2c229851dd83fea4fd5e84d80da52a50395853dccf7daf177fb", - "tests/run-switcher-origin-tests.sh": "bbaa861a26426bcb3ccbe4a00793e594e927012049758127ea6f25c35d0d0d7f", - "tests/run-lid-gesture-tests.sh": "c3a1b41012e74a2ab7fcd408649cddd088b3fc1458e7097085a516f6fff386a0", - "tests/run-split-pair-tests.sh": "3d310426a8fd399e6d1f1abad0c7a9fa70ecc7d3d5ba89c5f0a98cb1926c6f11", - "tests/run-shade-sound-tests.sh": "1fd72b5b8cacac4f16bd49bbd88a6e8f9de8b13b59161a7dd5d5359a59934308", - "tests/WindowBrowserPreviewStartupTests.swift": "29674876ac8ac58168812ece4c0c60cacef9d35a2c73b2d234a18bce1022f5c8", - "tests/run-audio-cache-tests.sh": "8cfedadfc7796803c04316aa2f017ceb6064bc886d35f0d6429759df16a34236", - "tests/run-quiet-defaults-tests.sh": "8ea6d71867011632d85017f718de596307a1d0fc937c68cb686da854e316c22e", - "tests/run-settings-tests.sh": "9a46795bd8d1dce76b074a6b717f563086a525dcd74a371dfe745899521edf85", - "prototype/build.sh": "e6db6c9f3499fcdcb4f28c065199f4f87aa64aeb0c5a46b098164dc761ad588c", - "prototype/main.swift": "a0583484440cb3d3d5214620076ae0786c1d2236ec81767cf3f31f6f8e792bf8", - "prototype/PinnedPreviewPanel.swift": "19ef12fbb7e587bb04604e5587c54270d89eff08342b5470565e61be7b9eca65", - "prototype/Info.plist": "8db707bd0bf02100da2517cd8d28e2379cf9077e858af299d088c6d264f91acb", - "prototype/ScreenCaptureBridge.swift": "59c7d12dfc19266d46c87fc7692fc851293fe2b102926d06579c205cec7c78ed", - "prototype/PinnedPreview.swift": "661c5d272f81f0276e6f53ab2da11e3d575628086e03f8da3f04b1152593fba0", - "prototype/WindowShade.swift": "0c489c4b721315ef147f7b3898aa388377eac8b766ada421fda395716f16828a", - "prototype/Capture/WindowSnapshot.swift": "66b7c0ff2b81b7cf8d4fc3ba0d6887703d50ac94b5207795ee2edef9f3d4210f", - "prototype/Capture/FastCapture.swift": "bbfe8e9b62fd5177d3260309bfcf4a3bb010cba7da6dab9839672ddad9306b3d", - "prototype/Capture/CaptureIndicatorProbe.swift": "cb9f717530964a7d3fcd96e8c7438180b599be450273dc8f627e334fbb049be5", - "prototype/Capture/WindowSnapshotCache.swift": "4bdbcdc3270a49071d4feb0f10e80c08db2d8c6cb535d1d2b57d38a712fa27d0", - "prototype/Capture/CaptureIndicatorRemoval.swift": "136aa4d41afb6a11c3214df1a3cf92c0fb110bd58d8f02059cdb73161becedf5", - "prototype/Capture/PreviewRenderer.swift": "a8bfbec04f4d8ba82da224832c19b0180a87d6f0e2f6e8c3788b18075e272ac5", - "prototype/Capture/ShareableContentCache.swift": "02d249d61bc8416a480578f4b8db1b0ad074733defac4e191adb5c6ea170086b", - "prototype/WindowBrowser/WindowBrowserCardView.swift": "45d49717fd01862f54f8e057539f34c53b72166d273dceb5e46bcd79de0ae0aa", - "prototype/WindowBrowser/WindowBrowserMetadataScheduler.swift": "0c77949b83a0cc53b5709903c7f9d295de93475e99e29659dfe38228aaf2dd0e", - "prototype/WindowBrowser/WindowBrowserListRowView.swift": "c0b8db68c2a9f029075949ffa27fa7dc7a68fa26fa2112235430d2375c18bf99", - "prototype/WindowBrowser/WindowBrowserContentView.swift": "fc2f16c95332ed9ab6d38d51fd9057981339aae2b3475113fe11e4269a11e962", - "prototype/WindowBrowser/DockHoverProbe.swift": "5f246c4ad9adf0dffaf5dd533d5fbce9a71be59915441dea67da7803cfefd2d9", - "prototype/WindowBrowser/WindowPlacement.swift": "0aa1edd22e88e621b77365532b8ae9f508045668322593277c24d23e48738561", - "prototype/WindowBrowser/WindowCatalog.swift": "b81bb8606aa8c93941246e9893ac81d509126845a46b43d3bacb623e7bf563bd", - "prototype/WindowBrowser/DockHoverObserver.swift": "e960e5af5199853e61b068f8bb170e28c536575b9c00b9f837c4d5c8f20e7ded", - "prototype/WindowBrowser/WindowBrowserDockDetection.swift": "84d32da69e61439e8888470af49563ee1eb9000ec38fc0651392b25d9f152808", - "prototype/WindowBrowser/WindowBrowserController.swift": "64bd2b21134e068fdb2f56200817dc3f51a136d94f89937f61d6d9d277029c96", - "prototype/WindowBrowser/WindowBrowserAppDelegate.swift": "7578e4ad88f967a0c4fc6b18dabf97100fffd86d1bb7437c254131f55147bf8f", - "prototype/WindowBrowser/WindowBrowserTargetResolver.swift": "2fc395871767c42537f7fe79a565c1837ef56c82654b5f08fab8c5b4f7b83ab8", - "prototype/WindowBrowser/WindowBrowserActionBar.swift": "d64562ca98565f71f866a34657b65061c4fe5ee5ab01317f98d72c7ed9459fcf", - "prototype/WindowBrowser/WindowBrowserSettings.swift": "eaff6f4f80b76fc9e33ef926b80e6fb334c19dc4400288674c4e3bd9b2846194", - "prototype/WindowBrowser/WindowBrowserModels.swift": "8d1ac3433b43938cebb8565f26472837419b06886c27600a34b37c6a73d135a1", - "prototype/WindowBrowser/WindowBrowserMetadataQueue.swift": "f84d13c4f228aa21bd5de5178ce2bafc419fb7c7f19ae954250057d3432139c5", - "prototype/WindowBrowser/WindowBrowserLiveAppProbe.swift": "7da491d0baed6b3c9e5015b41df0d563bcd73727c832a71e64a14c7f73885711", - "prototype/WindowBrowser/WindowBrowserMorePolicy.swift": "0dd7330bbb8e954c9192b6a966fd5d404186f73f61ef6f0a10207684b25c017b", - "prototype/WindowBrowser/WindowBrowserPreviewStartup.swift": "c85d8b98cdbf44cc2faa56dd20cb819c364394ae3a6344fd69eb657a531d5f14", - "prototype/WindowBrowser/WindowBrowserShotProbe.swift": "aee82f9d9b735feed796fb75a4dad86c99e71f6f7191ffcea61f9a298a8cc415", - "prototype/WindowBrowser/WindowBrowserDiscoveryFilter.swift": "52b1b0dc609f969048a124f8e432de16fea49ab1818256a6fc050045ab6e0eb5", - "prototype/WindowBrowser/WindowBrowserMaterial.swift": "8c6c4fa0aa7b91393d7c36c04d5073f9d609e074489730c1a800e131a4de3f0c", - "prototype/WindowBrowser/WindowBrowserQuickLookView.swift": "fc14a2ccb192aa4f2d3dcf5aa0877737b890793c88096c643d6e5f0694bebce6", - "prototype/WindowBrowser/WindowBrowserViews.swift": "35b31dd17656b47ce7c4fdfd6d25771c8ed86f29cf73e8d34085976342331afa", - "prototype/WindowBrowser/WindowBrowserTargetBatch.swift": "6e1d895e426120b795a1759c1443c75193649b2dfe2d9fd50665928df93c206f", - "prototype/WindowBrowser/WindowBrowserFixture.swift": "87d41830e00e2bab94ad6dbda1411733b56ef6e514c93030b3ad74d2f098af49", - "prototype/WindowBrowser/WindowBrowserThumbnailPolicy.swift": "b986005482d3bda8c7a0eeefdbc2600b353b12780b23ea8cbefa8a01271b6c9f", - "prototype/WindowBrowser/WindowBrowserGeometry.swift": "8c99b9b866a21f9fa8a3367432b8f34bd22dd6dd67fdcabe63175133c81a08b1", - "prototype/WindowBrowser/WindowBrowserActions.swift": "9d3c4fbc9836384cde1904923b376307c8adca2b0b1f8e90dc69cacf9a0237bf", - "prototype/WindowBrowser/WindowBrowserIdentityProbe.swift": "551299d755b98aaada4ad6e3067d0d610eed7f0726f36c8d327920eebd0a6463", - "prototype/WindowBrowser/WindowBrowserSelectionDetailView.swift": "f8ae3713ba812b1d72c606baed65107fd30ccbbc2b77f142d743960659da77b1", - "prototype/WindowBrowser/WindowMirrorSlot.swift": "3d3bb68eb6c59d18a0e8088f8b88dc464fddb785667b32e20b0346a4964cb3e3", - "prototype/WindowBrowser/WindowBrowserActionPresentation.swift": "6fe2f1b20eb0c5a5c70c2e0eb9ef13605a1a18c8aeabd796022cc90bb1828b00", - "prototype/WindowBrowser/WindowThumbnailService.swift": "e22d946a1ea9b79a74e1c9bfa83d807a924fbe0710f27ae4f0d8c57417c102cd", - "prototype/WindowBrowser/WindowBrowserTypography.swift": "ce68992e81c1d9a9947c1258ccfac4f2b430be5eb715002d20e31de8ba9054cd", - "prototype/WindowBrowser/WindowBrowserPanel.swift": "e51df9e16a69e98b51bde15147ea5712177ea2646b0d64c62b8cc5aca55829b3", - "prototype/WindowBrowser/WindowBrowserMoreProbe.swift": "a89798b807b0379184465cd43d61a03bd37121d5faf9ece9732ea19a133af250", - "prototype/WindowBrowser/WindowBrowserDiscovery.swift": "310e952ed56a81ce6b6c0012f73c21180244491512a2eb2da28d2d6ffa8cd293", - "prototype/WindowBrowser/WindowBrowserNewWindow.swift": "67ad7792871dae78a36fb8d3d96f93100c3f7a5ae14fe33c1e3fc74760266904", - "prototype/Compatibility/WindowPolicy.swift": "86c30970c8cfd6baad88188c99f4057c4b73311147b1031687bf2153a7d08a9c", - "prototype/Compatibility/AppPredicates.swift": "f7bed5be688177e482e64ef96066d7ef37967b962206d639b7fdd87430fd7d24", - "prototype/Compatibility/Policies.swift": "ca921cacaacf77751d48cccaaf5781412d8ac867135706eb737609cb6cca93f6", - "prototype/Support/WS2PeerRepository.swift": "1ee4290d4151defac9a50b741c1128dbd8d6bcb7514cd4535ce39ac84f740b42", - "prototype/Support/WS2FocusEffectExecutor.swift": "674a8760579e1eccf401f6c949d6fcf69b74257943fe795b043f255b7c3887bf", - "prototype/Support/WS2CompanionTCPTransport.swift": "78bccef841039bf2d4fb5058ae21e01633da6f2e00435eb1a17b9ca2cd273266", - "prototype/Support/SecureLogFile.swift": "ed1cfa426af7f9bd4d21a9376ed3da21338c11a1e2d9f79a3e99ee3ceadde4a0", - "prototype/Support/WS2ProcessChannel.swift": "a87b82db462cd9fa4e0bd132153482a6c1c9d9859a4434048829443bf821cf6b", - "prototype/Support/WS2KeychainPeerStorage.swift": "ffe7ecc5a1bbd58497156c645a074506371039f49ceb92bfc2d9b2c6f36a395f", - "prototype/Support/WS2CompanionCrypto.swift": "d50a35fcb45ba1905fb26a6c3c4f14a7dd450bb8413b13bfcf8429b0a7eed8e8", - "prototype/Support/WS2HookConfiguration.swift": "a02f22b49a684d2c74aa385776c31d91b39cc5f6a4cec81eadbf457e8951ba54", - "prototype/Support/WS2PairSetupCrypto.swift": "6345ec9ff7339c0845f4140beac96577ee1310968d71dab941a0266d315e6fda", - "prototype/Support/WS2UnixSocket.swift": "686ea433270bef26a8a1ef5e8eea3b70fb399d9d5d3ce89d65b18da454f64129", - "prototype/Support/WS2VersionProbe.swift": "8b77c9a8ce4ec1d66f5106736783ad5581572e45d761ebb7ec92c68756d7bd8f", - "prototype/Support/WS2BoundedInput.swift": "57de90c5ff273ddfe189d3ffb03b501e6a90cdd837082971ca56924be380fa75", - "prototype/Support/Diagnostics.swift": "a1430b16be3f87e7b8c066c5d68dfc033ab2aa2dab9cfdcea08d27868d2078ab", - "prototype/Support/WS2PairSetupServer.swift": "56ba109e6d1f63c8771cb0788c6c3af4796eed38cea5fe9880f744651c6516b1", - "prototype/Support/WS2LocalLaunchProfile.swift": "34a52b15e0a183c0e0f8d45d999ab15e0f8d1b1998b7fa467fe15a4b1c843a27", - "prototype/Support/WS2DuplexProcess.swift": "1efe08a7d6987fdac80d87f345f1d2ce212e6a5dddac3a71e086e247d8ab579a", - "prototype/Support/WS2AtomicConfiguration.swift": "49ca64b48ceb7d2717fcf2e56256c4fc3819bccd6b4cb67e1e369147fb3d0754", - "prototype/Support/WS2ProjectDirectory.swift": "7a9c30764d3199652eccc46265c4d7afae6c05cf65e1ee2a5be65c73bbd628a2", - "prototype/Effects/WindowFoldEffects.swift": "eb892b8d6d4aebe9759080bb0cc80c690d1c0369c6a29fec609857db83658b8a", - "prototype/Effects/EffectSoakProbe.swift": "257182b9374960b36a6d143fb650596237140aba6cb10ecc5430779d7c069610", - "prototype/Effects/Duo.metal": "7ca2be657b1e50ead1577d23d1e5f65375931ac391d94eba9fd5e9c19649dbe6", - "prototype/Effects/LidAngleSource.swift": "bd17b11559c8e698d4d8e8ed57f78c0f8dfe6d28cdc29da858b94b5a0da3cd57", - "prototype/Effects/EffectInspector.swift": "db563c7b334ee2a23476ee4cf39ac87d3881aceeee49049a855ad4c71d2a22e3", - "prototype/Effects/SettingsDesignPreview.swift": "2acf03fbf39f406b80f27b650641613230c0ba1b2e7bf07191ff5856d346a35f", - "prototype/Effects/EffectEnvironment.swift": "b96919951e9dcd50184cf0a49d1e4d4686f84fdda10e93ba775b76adf0b5c5ee", - "prototype/Effects/AppleSPUAccelerometer.swift": "d39fd145a3f3c46fa949fe9c543c26cbf92decda6794cef93d7440e42b13ec37", - "prototype/Effects/FoldDriver.swift": "d710a5f9546321a2ca9fa29efea2e56edc1d80f738f0797614fcd7b876309852", - "prototype/Effects/LockOverlaySession.swift": "fd8da1d18ca18369f9f2df27178911c3762ce70028bbc6809e5c9492e92067e2", - "prototype/Effects/EffectSession.swift": "42f2c3f32cb94c62b56dbac2a3ff97139feeba19842efa38b33b21341cdac45e", - "prototype/Effects/RestoreVerification.swift": "521564f365800522736a893ab0f5b594746e5a20b86e668ece2833d66282930c", - "prototype/Effects/EffectFrameAwaiter.swift": "634182d48f845ebec9887544b2d1aea0fdeb53e614af3c66e1070b4907f1f68f", - "prototype/Effects/DuoController.swift": "00c452749f6ed69481d92b386ca9a1c5a8e034f4fcce7bcfe8fc5321bd692612", - "prototype/Effects/LockOverlayController.swift": "ffb6c861c80ab6096ee8627c22ba93dd8f6d7b6216b6ef7154e375631c8a58cb", - "prototype/Effects/DuoSettingsWindow.swift": "04a80b69bc44fe5185dd558de270842d74aae8a3f107be907a78483fdf4adbc1", - "prototype/Effects/SettingsShotProbe.swift": "5e8bc146379a032168146f54bd4d949b5ba4dc22e10ac6bf1f524151c057c5d6", - "prototype/Effects/RestoreVerifier.swift": "a0ed730ff532106fdde2eaa64fd8905d5aeddaf9a1ec1e28c293b26ff7dc7052", - "prototype/Effects/EffectFrameSource.swift": "c63cc6885d42278bf8ce30ae05cfc63e3f209d9490524fbd73ddbfb5087990ab", - "prototype/Effects/LatestEffectFrame.swift": "e9c57b3f2ab933d8de70257d29dc0e3840ae23280d186918bc08fa9d15c3aac4", - "prototype/Effects/EffectRenderProbe.swift": "f6e780ff32160d09918c5b38c05af6d954be91353d145d1f21e89a374f85d019", - "prototype/Effects/FoldRenderer.swift": "e3408e15a67de03ba068d43cbcccbba8655f19abec36a7c0785f670d2bce189e", - "prototype/Effects/EffectWindowProbe.swift": "9cbe19213f5f0f965c62e9ff0d523e131b3e3cc2732d2ce135aab2de6299b16d", - "prototype/Private/DockBridge.swift": "235001c02b0e9edcedc3011356a531cc0e53e425490ecf7ce6f297c9ee11d058", - "prototype/Private/LockSpaceBridge.swift": "d16128cca2e5b893900e5d5165353724a780e76beddc5ffa79f4ac4a2bf8978f", - "prototype/Private/SkyLightBridge.swift": "26be2e78987f1dbf06cfb58ff0915c9e7a53d0c53a852c543171ff77a82e5fbe", - "prototype/Private/ScreenBezel.swift": "7673cbdf0373bceea50a156b4585e00bbedcb6acdf0a9faf5efb825617a8a602", - "prototype/Overlay/GlancePanel.swift": "07e9babcba683dae230b82acfe2c0b9985d2ffd8134c9c13ac308d3169c84a10", - "prototype/Overlay/SystemAppearance.swift": "76ca3eccd79a32175412ae4665a0484ff9628a3ad372333868cb3ae1681ba345", - "prototype/Overlay/PreviewSurfaces.swift": "8bdf6d62b84ce1f87355c8f8c809a5a062cc3a8005c1d5421390f7a7c6f33cdf", - "prototype/Overlay/PaperSurfaceStyle.swift": "1a8c1541503bcb1c0710be685a76aa0d2eab4b37c0a836b0f44efbfb44e99f2a", - "prototype/Overlay/GestureHUD.swift": "e8bfe37a0b0c4c5da59ec8bea9f256dc19726e0634b80534ceddb2160f3108ef", - "prototype/Overlay/ShadeStripPool.swift": "3f602cd370d1f082a59e4d8bc598a07f4168b7e69c983e1ec3aebf6d22aca23e", - "prototype/Overlay/ShadeStrip.swift": "ace80cecd6a084427c986c7788e3b12e34ec60a28a9b3422f3a2b8eb355d806a", - "prototype/Recovery/DurableShadeJournal.swift": "5dbcd013cc44573bfef4b028dae0ca44c75c963d7df131cf20b946a737c366c8", - "prototype/Recovery/Rescue.swift": "26cc2ce87db65aa2b49a134cbac248a1c69740bb0aadd042ad45631ff1ce2428", - "prototype/Recovery/Journal.swift": "0fa6eb0b1ef02048ffb0b26a1e8ff546c83d37dd96774da231d088e528c075c2", - "prototype/Watchdog/main.swift": "dc5b952383cb3f6d250ea1bb06dda51bdd0fffc2861c84f2e17309215c0a4585", - "prototype/Watchdog/GuardIcon.swift": "86a4da1ce16f774b882eaec4e7b9ba94c4cc981ae0488a910a6d07ac9d1f2523", - "prototype/Vendor/Sparkle-LICENSE": "389a4e4e9a32f059775b13a06e25a591445ba229d2838d26dd3e7c0c45127cfe", - "prototype/Window/WindowRegistry.swift": "88305979129b732efe6c49eadbe366c0c22f021ae70b19a1b38105f41e38e554", - "prototype/Window/ChromeProfile.swift": "e5bf9411c34bf7300f7893ff4a088ef0b97f298eeac1e682b0fa0db1bba98d56", - "prototype/Window/AppWindows.swift": "cf559d3698d8c20e1373f02205f5141583a3ed40aee89174eecf61f74e5dc0cf", - "prototype/Window/AXWindow.swift": "14c66d4832b32f5b55a92f896bdc0e0ffebce7588a5ac2c210b7c6c48782d3b7", - "prototype/Window/Coordinates.swift": "8396b5874e5e219bbd635aabe149b2c22cf190ea0bbece57acedb62939dfe67b", - "prototype/Window/AXHelpers.swift": "ccf1a2c35600cf6471db354ee1fbb3f417a60907be1446f6ee9e393a2b5b8ccf", - "prototype/Window/WindowListCache.swift": "eab77f6b1799267fd17995523aed369a6c3024ae74922dfc790ee9ec9bd13c6c", - "prototype/Native/WS2Child.h": "95380850f4cbd24d868fc785978cda939307f3962640b091200068a17ea1a9da", - "prototype/Native/WS2Child.c": "134368aa12dfbbb9ec5a6f60a121c44b52b46bb303d55d73b18d78326d875f47", - "prototype/Native/module.modulemap": "9cac42ba9402e4324e393d07c155c9375e20846e3bca84117460fdd0e6a0db8e", - "prototype/App/EventTap.swift": "3c8cb6ff1897f0e5a4ade26240955a747462e65654e3567abe7c91dfa535fb8b", - "prototype/App/WS2GameControllerBridge.swift": "cf257e4e8233d7030b96e5b317d02043024d25f2d03dc27824dd9976394881ee", - "prototype/App/UpdaterMove.swift": "b540ab91858ca9986e27e1a03de60741c4f2beeb76cc0367838918519c30a1ec", - "prototype/App/AuthorizationService.swift": "b2787dc3bb4369d687fbcde86e444cedc752f30d0629a2c5468ae646328a2ba8", - "prototype/App/GestureProbe.swift": "5e5806791687b6391695a3b91a899703c2a3d256910f8e05dc61fdbda4cf99f0", - "prototype/App/DeviceBatteryController.swift": "f91d842f704003420bc783ec477158f66c722c5a09213bd5c6bf7469dff629a3", - "prototype/App/LaunchpadOpenWith.swift": "8555894605d53d805525ae120f915372cd8ea1050a4b130a063dd4847091ee04", - "prototype/App/LaunchpadController.swift": "64a0979768be281ccd2ae98b6f3e69298c66fbcdb5402b82dfc7f1e7051e0f08", - "prototype/App/LaunchpadToday.swift": "b049a50d0d3df00e200de75734178b35cd9abdaa7b676dcba4b45f8df854d8ec", - "prototype/App/WS2OwnedCodexSession+Authorization.swift": "cd619ed648b81d55565ecf519777681ab4419bd2374eecb1f793c7bf29538266", - "prototype/App/ShadeSoundPlayer.swift": "7971dc06925fa19e0f2052d51427d1ea43d2f800d6d07aa8cf427c796af364d1", - "prototype/App/DockClickHide.swift": "122b5ff669d67ab7633ac3537a09e9246d7dd15fd818a5e6d98371859ec0e291", - "prototype/App/OverlayPresentation.swift": "46726c5a24c76ab7bf3a2e6250966cbc1c0234444d2cd2fbd0a9d0c7c1718060", - "prototype/App/Glance.swift": "07156696d4117a53c64575ead913c18d79772471609ef160af1798b31e6bdb5c", - "prototype/App/Motion.swift": "f93263d9860f82363750593e3f65d4321d35c13ed31acaf268c56270c76138b0", - "prototype/App/PictureInPicture.swift": "afff2ec83f3aa33007437729784286ded251678701f912fe482bff3fb1c77b55", - "prototype/App/StripPeekProbe.swift": "35d07816e389419220eecee6383ddcc2afd21d540300f17d44655af190fe1d1c", - "prototype/App/FocusTimerHost.swift": "7aa01c91cb3abf4503ff8eb92a8060efcdfca907b295caa3ab0fde88d264b666", - "prototype/App/FoldExit.swift": "e69cdab84f86400d15e9bbf85f3a1a2a5eb71c9586332576c13c301581d7af30", - "prototype/App/EventTapCallback.swift": "6f48ff09d3c591c589183f212d4e9f5c7cb24fa973fefe73b19af8ecbb8e4943", - "prototype/App/LaunchpadView.swift": "4449e1a9463dd178a45ce565b4bbfef0371c79a6e6598db653ec6aca11f0f50c", - "prototype/App/DockSwipe.swift": "7c3480e2051e7aca564a3743475adb3a391045f0973da44810267d4d3da06c44", - "prototype/App/InteractionCoordinator.swift": "5524bd61193c8e7ca5090b7c38c498f094bdc13a3e48971f3f084b2fb7a0c5b2", - "prototype/App/Updater.swift": "d2f0aa355acde29b729d0a05fdf41b33269599bf7d5405df64e8117a9c0f2c03", - "prototype/App/NotchFaceObservations.swift": "f7f541e11cd13467409c555cae89714bd2017f14033100d9012f5982692aafd2", - "prototype/App/RectangleImport.swift": "ea45acb976738d3cc1fd347c1042b121e55d7c809c2f9e116580d728cb596258", - "prototype/App/SlideOverDropHint.swift": "247bb74176f37f537ef5e781f4df02fef8f989b8dcc3476f5b038910869b879b", - "prototype/App/MenuBarController.swift": "6c48edc1f260204ce5a5abd7d212b22c225bbf1219688573958ea3ed2c294e9d", - "prototype/App/SlideOverRecovery.swift": "7f2347ef2fccb5f421027db4da4549dcb7130efc10139b36f542f4fd08a81254", - "prototype/App/Permissions.swift": "7f7ffa614871ca3fd6241e11b8835764f3815875e0526910145db5483861a9e5", - "prototype/App/GlobalShortcuts.swift": "f73921fa76cadded66d9986ec55a7d5a0b2edf2ae6935abc0860178ec09083b6", - "prototype/App/HabitContext.swift": "a5e7c5c01eaad8338e22baa6c3bb5caeda8d721f7ae3029396dbda004bd36242", - "prototype/App/LaunchpadLibrary.swift": "d4497f166351297ea0dc40d214391533641adf65a7301a9f9ad953356b5fb987", - "prototype/App/WS2SettingsInfo.swift": "c73bb4d2152117572fbdfd332ae00bbebe784839868830aa2933821195b7fece", - "prototype/App/WS2FoldEvidenceAdapter.swift": "cb7f57c8020aeda4aca842a4a48a58b5e4a70acacc02cff63a2682d426a0c264", - "prototype/App/QuietDefaultsProbe.swift": "cef48ea449ad9551e122bce3f47d495f1d3f691fdbe8c715cd7966a3421207b0", - "prototype/App/Preferences.swift": "7e7f3c3623de1e5a955c552fd8117bcfd2c9ee2ce8f8839f1950a241d78c72c4", - "prototype/App/WindowGlide.swift": "3f40e5ffb7f4d870e231977916f724a54b0e5ed5ab550f3ffdfe8b5b87d7b0e1", - "prototype/App/NotchThumbnails.swift": "abdad6e9c2c85052c682c9e4d9fa34b190f631fb1de4fe9ef8c652f015dbf652", - "prototype/App/Launchpad.swift": "42098e0e45259a0f04b57713088b09ab57293997d70438a410fef38934619dfc", - "prototype/App/ProbeEntries.swift": "f09f5e8607eed201845178c7e0dd2cd87340ed71fe0e6f6716241e9cb01057fa", - "prototype/App/Carry.swift": "915aab4bbfb6891ce535b0cf70b8c14118b90bc38c2f73a350ffc98c3b199840", - "prototype/App/DeviceBatteryCopy.swift": "d8b91913cb5175d3730b1d4e2dd6673613330b68b44fcf9210feaccc78849f37", - "prototype/App/WS2OwnedCodexSession.swift": "b05f1a6d7aeafd72f5e8d5dea6cd8a460737d57cbf319b1c242b01a5f09d2ef8", - "prototype/App/ElsewhereProbe.swift": "1f1bf6576be570624eae2e27f26bd995d1e6bdc729997d015dfd997717404f41", - "prototype/App/NotchAuthentication.swift": "e2db024c1161ab3157018670c80aa14da701ac5473668a5defa246375797d627", - "prototype/App/Notch.swift": "f99ffc0698fa98d63b07a4d3c4ba196e6ddba38f1148df635295a47572c6a1c7", - "prototype/App/NotchActivitySymbol.swift": "edf383086a0feb48373ee8af374a37af7245591a146556938cdf9f09eb084cc6", - "prototype/App/SlideOver.swift": "ac7b2bb10125399b4afdc47902bdcbb9b1936d147347ed56336900d5685e1786", - "prototype/App/DirectionKeyPresets.swift": "c886eab76c3e433bf28040b055754f6fc6cbcc6e9394e3589ed7298009e42cdc", - "prototype/App/NotchActivitySources.swift": "326b6c21f7b02b8dc71ab0ba976cb59e219d0ad11dcf8aae35e3509c4b1810af", - "prototype/App/AXLatencyBench.swift": "6e9319f45b6d679689d9357d23fd0c861eaaa9f78b5f76000e771ba738a390cb", - "prototype/App/TrackpadGestures.swift": "9fb30b213a8c5076faa2fcf7de09ae21da700ead05b8f4322d0c00f8bc984db9", - "prototype/App/WS2OwnedLaunchController.swift": "302f4b8ad841610a8a471caf79af657a5c8bc5d10e9c0e0a8d954363160a4ed2", - "prototype/App/FocusSession.swift": "6a8feaa47356c9e6827eb41f3aa81cc972b0f884c518ef5c80716160f3cd8673", - "prototype/App/OverlayFactory.swift": "671c722677e213613459f159ecd685a750bd6e871e5eedaa492a0f35b3eb403f", - "prototype/App/WS2AgentSessionView.swift": "2eb4cc0b0ffd80413aeb0375a2b4973039174218273be6988b5fc1a8f730e53d", - "prototype/App/UpdaterSystem.swift": "31ffae2972b4bd85964edb73daa74cf2b7f726b7be858a6e9d04d8a64f6adf37", - "prototype/App/Welcome.swift": "9440f17488f309d103aa9eb75621f7e7dfdf4822a7ae07b7c80a4d5b99ea5bbe", - "prototype/App/DockSwipeProbe.swift": "2537fc6c26507d938278bda6cb5721a1285d55dafd084af380bc2487777f2f7d", - "prototype/App/DeviceAuthorizationKey.swift": "6940303e09ec0a5e592ad431d4f071bad92ca1d5fa6e94c44bc76bc4733833be", - "prototype/App/ThumbnailProbe.swift": "d67964e7c25ec612d7f2a8e162a2d530f2f3f64f67272aedcca96c72066cfa44", - "prototype/App/UpdaterWindow.swift": "5d4843d963a4dd9e38daa0b61db916ee9c5cf33922b182071b42c9b1ab3f77b3", - "prototype/App/WS2SupplementPane.swift": "eb49bb23eda0c267d0c169dc4ef4040dd462ae3ed71f75aa341e2bfd96c39fcd", - "prototype/App/UpdaterSparkle.swift": "463ec65cd63071614152273e29dcefffd826cc73c99d8bf30196f3f94d4800c5", - "prototype/App/Thumbnail.swift": "70793ef768cdbcfdd3ea38fa14e405de8a91bd5547dac7b84da1f333f9097cca", - "prototype/App/NotchShapeProbe.swift": "fe1e1188c4ac40518f18e50c2ccf1ee1cbc5cb65945bfcb7a78d359a52b19d2b", - "prototype/App/WS2ModelPickerView.swift": "1da4c59ec557195a5b03760eb038b2d8fe1ecabb2f733f2c29ab554d8790f73c", - "prototype/App/GapProbesKeysPins.swift": "d457e8a45465555d827bf1928b8907ae1ca128089616705bf38a1d207f3193e6", - "prototype/App/FoldTransaction.swift": "482e8b46ad1aec8d169653d75d0c3976379104191c2e53bbe3ecab05bb98e06c", - "prototype/App/LaunchpadKeysProbe.swift": "a57d2c09c520ef962916f8bd6cefd2b48725d298c70e3a1b2bda2f73fa668d64", - "prototype/App/HabitProbe.swift": "973d23c5f6bf8eec4e2fa41364fe98241b92c4108a79440ec42f383b5d8e005f", - "prototype/App/ScrollStripPeek.swift": "fbe850a728468b4be72c3cfa39becce428aa423a709afe870174d15d8c39f9d3", - "prototype/App/NotchShelf.swift": "0efd0bf6633695be3f2bdd2e542ecda53e8de26f2e78736426c87aa1b951e19c", - "prototype/App/GapProbesRecovery.swift": "d45451bb35ab51dfd798ccf7939b41b4f6950bc03e5eccebd8e52c626d1faad0", - "prototype/App/FullScreenProbe.swift": "98c31a6c3eddf12dde1a50011cfab68143bc38261c1c8e702d67ec7325e49826", - "prototype/App/AuthorizationCopy.swift": "229705d3b2f3749a77b5593405316416b9a80251337e68fb3723947656c7e0e2", - "prototype/App/GapProbesPlacement.swift": "3f91f6491b2b0a1580e5bba15c3a86e5199bf7c8e11f7562dd9d5598307a87a7", - "prototype/App/WS2ConductorView.swift": "35e1bb2d5b14f59c381aba5969009add1be93e97eb3eeb2005fd1d9607e6e225", - "prototype/App/WS2CodexApprovalHost.swift": "f400c3354906b3ddb97f7651388468520d91f5eb6796417d014d7753266bf03b", - "prototype/App/SlideOverChrome.swift": "d4c72f881c8106dd4b9c82d6f4ddd158acf65512380bbd8da6b0908ec804ab97", - "prototype/App/FaceObservationSource.swift": "fe1e1aa7bff0578030af1652c348b0396882037c2d267d439ae97172e9c24a2e", - "prototype/App/WS2OwnedSessionView.swift": "d3360e975925f28b112b32d4c51b9a75d195a507629793e5e5b3d3eed006434f", - "prototype/App/FocusTimerCard.swift": "f6dfab112513a28dd52b7d01990a9940c9ad9aaa64a37f54d77a85e0645fe996", - "prototype/App/UpdaterLaunch.swift": "54b642694b112de3a295c1e924658275af545d41ddfed833965b19223d3ba150", - "prototype/App/PeripheralBatterySource.swift": "149935ed50964a0c77b69551a56551aa2d26ee84e9194e098f3cf61f4ece8d36", - "prototype/App/WindowProxy.swift": "0c852e43d3926075522d628800851fd625578201d875c669b5efbac119b1ffad", - "prototype/App/GapProbesSlideOver.swift": "c307da706445ea559bafe5538b2bf64388e6604a77f9d84dc111e515a5412e81", - "prototype/App/StripKeys.swift": "cd19aed70f476e05d16269ad8a686d71feca9592d46624ccedbc5444f09ca973", - "prototype/App/GapProbesSupport.swift": "83fa9445f3d5814413759b3be2612e3bde6c903b5348ce5b5b224e713dc7949a", - "prototype/App/ScrollStripRun.swift": "e454ad1d46d9ff547c5fd4557722e3b450925e24c0fc6759eb00d9550ac790d0", - "prototype/App/WS2DeviceActionHost.swift": "e969db6f1d29d4dc2af25afb99a58e90281b395480a704193de53e3b5cf2e5a7", - "prototype/App/UpdaterCopy.swift": "699d4862525eafbe61e04cf5890da36acb899e21f962baa0596346d0c9fc8ef8", - "prototype/App/SplitView.swift": "5c8694e329550a19a626d4ea9275e19af07a977e5f0a6a3e94f95f487716b87a", - "prototype/App/ShadeController.swift": "f22cc7af4a270af54422820beea2807235198ba823b8bb42adf098b52f85a198", - "prototype/App/Reconcile.swift": "a24b56d18ee50914538f3581f59fd0c496e29babe7a424ed6613657f785bb2b1", - "prototype/App/WS2AppRuntime.swift": "99205e90fd9d99278da55fbfe88924e2100c4ada4223c6d35136da67cf5b6db2", - "prototype/App/NotchCoach.swift": "f76df98e2492e2d1070af5c2bf70653af529a8c3082d90c528564f6fca1e0e7e", - "prototype/App/StandardMenu.swift": "65ae1974c0e53c606e009b716ef6c35e193ac3eff05b1ac2ce46aee829102ff4", - "prototype/App/NotchActivityController.swift": "4ee8833f2e4d198fac9eef2c086c0e2bd53a1fce66927f9b42cfbcf42e37bc48", - "prototype/App/LaunchpadFolders.swift": "99b845ca243f577c4b0e2ac8112e6a588b0e27a7d4796b155acc010f8041d9b9", - "prototype/App/StatusBarIcon.swift": "7c0d4368393f9d2b5f94844fd45c5a17025b828b44685b57d25c2b32b7ee6774", - "prototype/App/NotchActivityView.swift": "2b622c8cfa4ccac64c4c0b2ea70f66263b8d71e545ec6330c22d9067206a08cf", - "prototype/App/PictureInPictureViews.swift": "66190877175232fdb8be54486a0b28beea474a168b898dae9f33a30931c8f9ed", - "prototype/App/WinsSwitcherProbe.swift": "05572d4bec475ae450e6b427cd1e2062935ee39c17ca898777a90711241fb217", - "prototype/App/NotchWatch.swift": "8ba371f82c6bcf640464d58340bd3d63f503a6d0784e8c45fd84396b10921586", - "prototype/App/NotchShelfProbe.swift": "db06842b77820fec3d30b66e9fdceda8cd0890d7f496d7c8d676d17d5a496760", - "prototype/App/GlanceProbe.swift": "701a340d97b739e13e81c51408c06e6c95d4b631df81ce75455489c3ac82de78", - "prototype/App/MissionControlKeys.swift": "d90af0193955650f7deba18f5358cd155093313f398ce568c62415ffe064a762", - "prototype/App/HoverPreview.swift": "849035faca83dfee588e7b88d0723ff53e99ceb891bd1b4ace1f3c2bf1ddf81c", - "prototype/App/MagicTilingRun.swift": "1de26ddd7d2df2f182ec578b878db2c67871ff1494f26ab1077bdd9414e6c4d5", - "prototype/App/ArrangeController.swift": "bb95dcbe618844541d577b9c15e5d11558819a5bba8879a85de4fbb79e1523e4", - "prototype/App/LaunchpadActivities.swift": "ddc8bc3153e658b8b2feed52ea5734b0bd515c722181129c88ae34750366ae75", - "prototype/App/UpdaterSettings.swift": "b0a05613483abae16fd761c80ae5745e6c1e13eb76e2174bf87a22060160244b", - "prototype/App/WS2IslandCoordinator.swift": "315bf8f9b76ead7600c8829b69c4609bf89d919f3421631b3154aedd13acd91f", - "prototype/App/ScrollStripOverview.swift": "87840b8f1daa1ff7f93ea5b54cd79462c4c62dd46e315756620f8caa4bffdcd3", - "prototype/App/DockLock.swift": "aa87b167fe290bb002c1b195438e6104d8c22ee1eadface9c79b582d65830cb3", - "prototype/App/Notch+Habit.swift": "fd362e41c78fcbe8ac467ef55a6028552520bb15464f2f4ad5b2151567678e33", - "prototype/App/CollapseAppearanceSettings.swift": "dcc47edc5d347bd2e247ef3a795ec5250a1a6c7b9f58309c2f4840d5f995b2b2", - "prototype/App/LaunchpadBackdrop.swift": "54d1181b94a8c75d76aa7bb3d49737978ca3ad7984ff1ff107641e16618d14e4", - "prototype/App/WindowSwitcher.swift": "21fa5041bcc27a6622e44836c3e167f6799c9a3857b927d4d7f52fd16ddda92f", - "prototype/App/LaunchpadArtwork.swift": "9565fa02024395fcf754acedf3c4caec9ae0a8dd9b618d23b6e17369e9017c42", - "prototype/App/FoldCompletion.swift": "1147a93b8ab37828e0dd4be225e879ea3a4636283aaa5d7202369b926ec850f5", - "prototype/App/WS2FocusSettings.swift": "5c2dd1877beacb8a5e09b8ffc9ae687924068e791a0224484308a28e1aabff60", - "prototype/App/HabitKeys.swift": "6ffba165b600f582c514d0dabf873f01f2e86890fa60cce68b83e7b83c649c32", - "prototype/Core/WS2DiagnosticTail.swift": "fef7ffb8b3191d594e2c9e5e8521fba1ff8271975ddd653c9ae2185281c12fc5", - "prototype/Core/GlanceIntent.swift": "f024dcf706695b1b226f8ab38658f50252310c5035040ce685ce94f087d09ea7", - "prototype/Core/DisplayRefit.swift": "7751172780c0bc7a4410bb94c0343bbca3518b76549aeab18825afe04ca15cf9", - "prototype/Core/WindowState.swift": "92dccea12a8c772dd4678c4d14e43866c2a8f12b5e88f0573b34133483eec9c8", - "prototype/Core/PairingAttemptWindow.swift": "262dc840763d31105c16f5edda749a2e11ea15064158884c825109fbcd3450e3", - "prototype/Core/PresenceLock.swift": "7099b9f42bc09683ac35dd345020a58429bd2e9e19db4823082df19ad7540188", - "prototype/Core/ThumbnailLayout.swift": "4a7b82ebdd40e4fd6363d03712591296da51c8ef034d86408a9e579745a093c7", - "prototype/Core/WS2SelectionModel.swift": "c8fb3c0ac6564970d2daedee4d4708799ef0014a94a7bb22b99f18a85d86cf4c", - "prototype/Core/MissionControlPick.swift": "47856dff5c85d98d7d2c9f6c5d741247f88416171f602cfb036865eda3c62dce", - "prototype/Core/WS2ApprovalReview.swift": "382ba5ed147027f63d3707ca865e79c7a38183cfa7e7216979472f0a42e4a149", - "prototype/Core/CodexWire.swift": "ed2e3e209bb3ff42c6ba8273b323f2b6f70bdf48daa4cc21f91060d9bfebecf3", - "prototype/Core/ConductorSession.swift": "e426c0b1a19fd8bea29528f707371decf0ac65459e3c85dbd6d6e2f94e7f2e7d", - "prototype/Core/ScrollStrip.swift": "8f035b93e7f890bb6b353722f58b6c637101edf217c486ad85c2173f04931db5", - "prototype/Core/ArrangeGap.swift": "93078fcf0f8c4693bb2e25dd05fcf78e21b7a76a13adbc0336754969229ca945", - "prototype/Core/TouchTap.swift": "60e6818723846479f637e26a7236998f85003ac329709f01ea3ca6a7efc72c30", - "prototype/Core/FoldVerifier.swift": "90a4d023619d31706672da91a52ab721023662591b5ab3f72cda05e32fabc086", - "prototype/Core/LidGesture.swift": "f9988eeff67ed98ef01c09ec1f77f955c049603a501d57e4ef03f2723df9e08c", - "prototype/Core/NotchThumbnailPolicy.swift": "7f0c6b19a2c1a899cbff8fddaf8f8b65f2ec01bacf234d92b1c1ca82d60a3350", - "prototype/Core/AuthorizationModels.swift": "185ce60f64c618898aae3e27169843337efd3e8eae9bccd81f3c4151fced7719", - "prototype/Core/NotchAlerts.swift": "2084a95a7dbf3c63d200c663b290ca744ac6494fa7aed52f69ac44c7d8567197", - "prototype/Core/MotionTilt.swift": "0561b7804905d071677d0a50de2fe115203b1c6bc2e010cf7695447e1157c3ee", - "prototype/Core/WS2BoundedOutbox.swift": "80fb7f58123a2f9df5c0d7b94c206277427e269273be595ac25e4d554c68e326", - "prototype/Core/WS2OwnedScope.swift": "20102a3fbab321958f7dde9a24d69453f3a7d45d2f537fd5957a9a4df4a9d6f2", - "prototype/Core/InputDeviceKind.swift": "bfee009b5bc3fb1031a4cebbfa871bd770145e424cc8d9343eae3787d5c88233", - "prototype/Core/SeamLayout.swift": "2e5fc44dab7a3449ce57e80e05ed3662096209677d4556d5869222555f29bad2", - "prototype/Core/Contracts.swift": "12fffc2e5cf207aa0ca6b4c371f28b9eec8c2b374b5e1a06d8943878891b2420", - "prototype/Core/FocusTimer.swift": "f8d5760f92ad924c1727717938e84bc456f84967c931faec36d9554e243bf462", - "prototype/Core/RemoteEventRouter.swift": "7d025693b62af9d3a537e0f71fdbc5312f0773b53d6a51008f1f441dab4b3e19", - "prototype/Core/WS2LockRequestPolicy.swift": "900c77a7fda12d50eeaf345bac99e8ba57ae7eb044023f0beb45ab1aa0f616d5", - "prototype/Core/CarryShelfLayout.swift": "b12db5b98bd4e244b5ba4ddbaa909c897d74ea7b778c892ecbe1a6f98e0e0f84", - "prototype/Core/FaceGestureTracker.swift": "da07128afd663c1cd02d3fe83c93e5da3c2bbef0a97107dffffbd3af68e47028", - "prototype/Core/SwitcherOrigin.swift": "be5cb2a70a4e3d9e7e47542205d6668ff4bda622d87e71ef8ae6286d5888e5bf", - "prototype/Core/WS2FoldEvidence.swift": "3d1dd3583a1e6f93a4d721e6b4587a0cd700c993722fee2f7a03428919f420dd", - "prototype/Core/AgentSessions.swift": "218b3910959c810d5662d608b8ab9560d5232cf5e69930c330b400c940c65d7c", - "prototype/Core/MagicTiling.swift": "6aeeb96aac653d1eb587c2a12c3d31194fb55bffb196a6849257f593ffedd8b9", - "prototype/Core/HabitRules.swift": "dc9c9465f28d295849a1ca032eab408f012feaa35008e0b42d2e7e26d884fa1f", - "prototype/Core/MiddleDrag.swift": "c375a2e23e964890a9d5f691b44aaeecee889670e5aa1641eb6bdfa99a138e46", - "prototype/Core/WS2QuitBarrier.swift": "2a80a0409cee77c4a117844ac1192084ab922a1073b405d26909a6fd8a39754e", - "prototype/Core/SiriRemoteButtons.swift": "be2b7b7d83b28f575eee5b086885b250d4da6b1fd93b4774e02ff6c11b26eef4", - "prototype/Core/HIDMappingTransaction.swift": "48edb2bb043ddd6cf18285f422ae90e4f75b258ee75efd9c6976fd7ef973a3d6", - "prototype/Core/WS2FocusEffectPlan.swift": "60ccb717e3641f20e1fc499dc1e432ba37493e3c4abe8e28c73b2ebc19419829", - "prototype/Core/WS2FocusWindowOwnership.swift": "69a0b9a82fd67c318d92b4bcedebd6f980b094f24b37197758fe1cf85f5ab3c7", - "prototype/Core/RectangleKeymap.swift": "9b337f8acf4066f3b2bcf51db605f89b52f5727ccfb3bf456a0304fcbd84bba2", - "prototype/Core/DockClickGuard.swift": "2290cbd5d3788825324f661490ababf487a86b77c1e1c6000af81b23afac3ec2", - "prototype/Core/ConductorGesture.swift": "98802f88fa95985e05a46e75582016e60692725c75c84af0e74cb2248b867393", - "prototype/Core/PresenceReadDeadline.swift": "1fbe0aecaaeb279525bc7a5b37de6ffc7b5b48107df0fe84e9524399a287086a", - "prototype/Core/SplitPair.swift": "ded3e14e991ee1180b7ff89699a7d2cfbd42ca965497b2a9678523cbdb62e907", - "prototype/Core/FocusNavigator.swift": "372caeb9b2b2318d8b15dc8e014a69ec6e2ddc305d5731754f2810edfc5578bc", - "prototype/Core/PairingTLV.swift": "32495002c85cc927a8c31cd5699ff517f070107120c111919e9b35c1df2f3845", - "prototype/Core/ShadeTranslucency.swift": "f8083113fc6864b3a775a0081af4c957eae6ca186ad3cbb3e1134c6dcf7a6487", - "prototype/Core/WS2VisibleListInput.swift": "919b37b1add050fa65660fa70127a8dc131e659675ebedf791b86277d5acf425", - "prototype/Core/PiPLayout.swift": "176cd9e0b8644d08a50e7503707fed57e762ba95094d497b3e96f276f0a989fb", - "prototype/Core/GestureCoach.swift": "2490c0d99e5fd5cf72096106afbb82a07e1d47d15f0c750ed19316dc4481171f", - "prototype/Core/DockLockRule.swift": "159299a99f0e91d3aa06f2eeb0697822100c28db87c8150ceaf19c21d8bcff03", - "prototype/Core/UpdateModels.swift": "4706a3fd6d8412f30b9962b99ea91d767b45b3e8d184e74c9424955db51f61d2", - "prototype/Core/RemoteSessionGate.swift": "a48f690ce3db11c93563402a6e27601ce33cf6293b20985efb4bbecc2e1d23f6", - "prototype/Core/WS2DeviceInputGate.swift": "60c5be94786910c4719bcc4b56ff7ff217708e3981591922f33bbe9b384ae662", - "prototype/Core/FlickMotion.swift": "46967abd13acba1380e700283a6dee547073a860520c7c11b86454db570a322a", - "prototype/Core/DirectionKeys.swift": "0ef2f8b9997499338f8895bd010cd89007258d6cc221787cb229e942fcf8ec1d", - "prototype/Core/TrackpadGesture.swift": "f4521524e1de21126f02dce390b1ced38a1e0ad7fd31e05b4da4d333b0fa3948", - "prototype/Core/DockSwipeTrack.swift": "41dd4e6f3f1715eda10d3e187a80c4d79f92d4a86fd22b7e202955b171bb0494", - "prototype/Core/RemoteMode.swift": "559d83d94615574613c9ec13a92ddf9395a55157c21f3eaff0e60b61bb48b3d7", - "prototype/Core/UpdateDecisions.swift": "ed0cdc6362f49ecbced53742e26260060768db5d441c679b6aab4a39f6af11c8", - "prototype/Core/WS2InputEligibility.swift": "d88deec0bf2c6224710e90bf106e23a60cee3535cab06e3bf48c8bb027163597", - "prototype/Core/WS2OwnedProtocolHost.swift": "11defe55b4723986cdcd10cea154dfcc10f205dbb8d45eb1265c9dc84fe5b765", - "prototype/Core/GamepadMapping.swift": "672cf04922a50acca6eecd2727b135f07a05acae74ab285e9fb92a23ea39a855", - "prototype/Core/DisplayShape.swift": "64d7c414f0a6ccd227cc730547dbffb3cd7812d8dfb6ba858479873eddc8aa0b", - "prototype/Core/ConductorCapabilities.swift": "4494697451f96b08ea1c1bf92fbb83ec9539055ac06937edef392558c20c9af0", - "prototype/Core/ShadeModels.swift": "49550836c173cdefb98bf1a2db924a9dc8c6ebf9b8f60428592a21c43eca1c22", - "prototype/Core/NotchActivities.swift": "e5c6c6fc339b58175672abea1322b5aeaa0c526ab850a4a0b0d7c48280f5c10b", - "prototype/Core/UpdateVersion.swift": "539abc3c74b8573b255d8d95e0dfa7289e4c80347dd23804d47915cc19b1e793", - "prototype/Core/NotchGlancePlan.swift": "249b49af6ba4c0ded8abb7d6087136e70b0bc8afe2c31dd417e50755560708d4", - "prototype/Core/DeviceBattery.swift": "7777539671486437ff4e26398663d7187b31401405d866362efde3caadc473e3", - "prototype/Core/WS2SemanticInputRouter.swift": "7055bb6994681ac67dd6b166374ab00923a8e1d76b9133021d922925ef2ac3c6", - "prototype/Core/SmoothScroll.swift": "8bcd292317a0be05903e2c2fa68c7a3c5a6a7b5662179b438dc03c8fd1b633f6", - "prototype/Core/MultitouchQualification.swift": "dd4bf29aa1cef3fca706c8d9781a84da40f2174623ead5cbeb406132e967dd91", - "prototype/Core/SessionLockState.swift": "1f92f697f9a7c1b5add7c4842496b86d4e65b93f2985e10f08ba3662a82ebe75", - "prototype/Core/LaunchpadModel.swift": "33e3563b11c5ad7c19ccfd332d51c9e4df1e236cf04bfb17d7f505818b8dddd3", - "prototype/Core/WindowShake.swift": "0e94c26c2a949a44c52531c0b5193c887901a36937c1d7ff04b0dc7377ad5d6d", - "prototype/Core/TitlebarTripleClickIntent.swift": "1bdcf6d07d61492d16fd239b550194e5d78d250a7a5e446540a389f2aad4ea9d", - "prototype/Core/WS2StrictJSON.swift": "3c1edb48065c85d7b0fbed12ac8299df4d1931abecfe53019f9ea9cabdc9bb0d", - "prototype/Core/ResizeStep.swift": "f9e26b08435ed3421c0ee7c374f9c2dcf11cb64dca32b01231a2939a2bdb4060", - "prototype/Core/SlideOverMotion.swift": "a87a21acec5f89283974f055b5da01928e35a968e14f0aa943176feba029db2c", - "prototype/Core/ElsewhereWindows.swift": "aabfd47c1f0580f98b68a1c18523dffabf6e2bae2ef1c271f1424f595346e5c6", - "prototype/Core/WS2DeviceActionContracts.swift": "bb69fd284e1fe4921c90e68f770915e724ce6198f12156662f81b04161a809a0", - "prototype/Core/WS2CompanionFrame.swift": "2ecb698bdf16965242836f132a7bc801d0ac7db7b488abc0d5a1b878a4c0fabd", - "prototype/Core/LockOverlayLifecycle.swift": "7aa73bab4bd6a8b6e3becd3c1c75314889f6997d1911817741e55cfbffe0462f", - "prototype/Core/WS2ConnectionBudget.swift": "f225317ecabd3143c7c40603ed7a1c2bb93f19f083c59722a6bddfc409be9cd2", - "prototype/Core/AuthorizationLedger.swift": "495d1ce534fe560c8c0fe43ee6fd2bb5e9e24b7f82b172978ffdd62143985676", - "film/ws2-concept/package.json": "c50558ca59bf2afc844745f51ce7b1b9310372af4f3cc9c7f6ef9aeb51526e2d", - "film/ws2-concept/DIGEST.md": "1b74350777e94f81fb7dda50a092c9036ff465abf79750b44604c432d3c3a5cf", - "film/ws2-concept/remotion.config.ts": "dc2560488ec68013be8dfaf6995d8aa6ef12ee1e64253d7ed3ef2f9a28dd3eb8", - "film/ws2-concept/.gitignore": "9ae8e02462ff393bb40e787f0a65e79d241ed4f74b32cc57c64acb4ac18fa3fc", - "film/ws2-concept/tsconfig.json": "4c1e3cf27dafa9dca603da9d50806a4cc91bd6c4a98de49cc7ccd2e171a39c87", - "film/ws2-concept/package-lock.json": "89819b15ca1e71e9af46b6dc766db1c181b5b4dc14d1f2ecd0630c164dad86c9", - "film/ws2-concept/BRIEF.md": "05d4db19471905be1b8542253e00f621c6ffad9fbdf57ecdfd14b10df50b5dee", - "film/ws2-concept/reference/promo-energy-arc.md": "72f5be431d97c04395f3f02cbc5968922a906bcba808d511ddb5d9922b936190", - "film/ws2-concept/reference/sound-design.md": "cac6f23c0b360cef7c7d04655f3009cf5e45f79e5f775594a622e680b0301521", - "film/ws2-concept/reference/LICENSE-video-shotcraft": "b2ce9877a55547ada9b870150664d1468ff777e67cc9888806a73927d31c5771", - "film/ws2-concept/reference/aesthetic-rules.md": "4b5f3efd84d10d3d0e1af742a2ee16cecbd1c9aee8e982ed5ac1b7c9f14de78a", - "film/ws2-concept/src/index.ts": "98b03b1da7aa397e0fc89cb4600c418d3572b389cb1831b1e72e9b4400a5a34e", - "film/ws2-concept/src/Root.tsx": "4e1cf80dc01f8d3fbe56f9c21285b0d73e427b13284b34d218be45da30f77b7f", - "film/ws2-concept/src/Film.tsx": "f9c41f018c382e43b074435f7f9383cba58337a1fd9306a6194c509c98f4ebb1", - "film/ws2-concept/src/lib/FlatPanel.tsx": "e5dff9388d24376db383873ce8ce32e3264ab5ef35c959733fbc568efef6acdd", - "film/ws2-concept/src/lib/DigitRoll.tsx": "aeb03c74d481a238dcd413af3054c264f9b4f91d5c745620e10a361fa4cbc20b", - "film/ws2-concept/src/lib/Caption.tsx": "e5be094d9c4321296da5078e51a83147aa39e4d95c95dccc2bf53b9f7d280d04", - "film/ws2-concept/src/lib/VerticalTicker.tsx": "e4f90b838559beae465c6bb08736c00097bb0107d6dd4a378f64308e2acf1bae", - "film/ws2-concept/src/lib/ClipCard.tsx": "3532788285cfe52fef4e836979832054c41885b238f4055fd84b40c8de44670b", - "film/ws2-concept/src/lib/FlashCut.tsx": "2e8d9e6319f99970be839f05bc869467b3d580aaa40809efb04b5dc02dd84c7f", - "film/ws2-concept/src/lib/PageCam.tsx": "1679bfc0c15973d5a51f6b600ae17d4d8c06c2fa3f8513e5110f9d0b9b3271de", - "film/ws2-concept/src/lib/helpers/camera.tsx": "8e5fc4e0ccfaa258fcbcc362761803d2c3e548cbf2e461d157cb42a134caf22d", - "film/ws2-concept/src/lib/helpers/shake.ts": "bbee393468a944df5ae85261e9ffee3c78fd78de0087e057cf96ee36e569054e", - "film/ws2-concept/src/lib/helpers/rand.ts": "0c64fcd062f1fcd7547e3da96cfa8430c2502eaf2e3f09fb2323392f8a5493ef", - "film/ws2-concept/src/lib/helpers/motion.ts": "9123bacf8078982a903bb565923974902212f93ebe265e24d188e4362a8e251f", - "film/ws2-concept/reference/cards/odometer-digit-roll.md": "8f8b356fc57d914d4b324244fe437b232fe10030d212482a31b19a932c56513c", - "film/ws2-concept/reference/cards/deck-deal-flyin.md": "1341d0ae4728efa49ee47ee5715eb11c19155ba695d15b79ac5f986c180f71ad", - "film/ws2-concept/reference/cards/circle-match-iris.md": "5c5e46f211f90fdb437865a863144abba7867eea34d7c19b34d5bc0e5e063f14", - "film/ws2-concept/reference/cards/pill-slot-cycle.md": "32cddebfe7bb0869057e0f81f66c6d6044ea152b381f402a26707e9d4274ff62", - "film/ws2-concept/reference/cards/morph-from-primitive.md": "c338f6d3639b65bea1edff3c5749e530daa9a6ce70c8f44e6bbffbcfe86a6456", - "film/ws2-concept/reference/cards/shot-transitions.md": "2cdb68da4060b519d4b0545db17ebc5ca000f04c814f40b0de4d4082756bc216", - "film/ws2-concept/reference/cards/crash-zoom-punch.md": "7ff7214d17dc305718683ae15b308ab6704a2cc82ee82a6afe9db5cbe7a417f4", - "film/ws2-concept/reference/cards/icon-performance-moves.md": "e643217134fe454c5049a4bf02ece3a2c0d066a4bf7f2c92e3d2c17daed351fe", - "film/ws2-concept/reference/cards/scan-bracket-sweep.md": "e80d67b51792b6355baca5f0547d8b9255675ec3fc6b935b43b57f44917cc686", - "film/ws2-concept/reference/cards/transition-travel.md": "7e1d46357459532c97dde76cf2631770dd21580978f13437a0c4eefd647653eb", - "film/ws2-concept/reference/cards/logo-shrink-wordmark-lockup.md": "1f76c5434a85bf2e5b8867142419577348adfe265fb215e460ec2b7e239b189b", - "film/ws2-concept/reference/cards/voice-waveform-live.md": "d5835944532b621f55fef1894bbf6e7ade6c453402a8a9a01133626b81708d98", - "film/ws2-concept/reference/cards/speed-ramp-freeze.md": "7d365e36082978b66ec5bca6623b9dbe57c7898b472f031a84d2bbbd09c3f56f", - "film/ws2-concept/reference/cards/transition-hidden-cut.md": "3e6b872df779eef27a4ec0304d04a02d49ba5a3ad7bf6744020c1de94c64d22e", - "film/ws2-concept/reference/cards/spotlight-hero-card.md": "fbbd603a71ff0a472f37d4ea5647506da2c06dcef2f2d4687d3bc20c2484d989", - "film/ws2-concept/reference/cards/letterspace-materialize.md": "f6632e8da2ab2bef13248514617e3e636c79d9140de4605997312b01060ddd4a", - "film/ws2-concept/reference/cards/wall-reveal-moves.md": "e0783733037425ca97c48fce97fd10fbd1c104855d59faf8b50115f54f72d91d", - "film/ws2-concept/reference/cards/paper-title-card.md": "a474a2d6f5563239be6fabd33e0e6d9002f57623bc49ddf57ea0020cfeffc458", - "film/ws2-concept/reference/cards/dataviz-landscape-open.md": "40318d4903ce1aecf1b39a0beb7738e7ec9b41f35ce49978eafe875efa402439", - "film/ws2-concept/reference/cards/draw-svg-trace.md": "efafcc9abd8cd7dee3e22036b98dc7fcc1c5d122ba7630af622f0714675a335d", - "film/ws2-concept/reference/cards/list-stack-press.md": "fcf031f506570e4838c9313e4957c8c290a048a35321156ed61874685e8110ba", - "film/ws2-concept/reference/cards/fui-hud-moves.md": "480e920e376e8f18529142d06c4de84544406b0e5f2dd37062dfe274b3f51305", - "film/ws2-concept/reference/cards/light-play-moves.md": "e45f10c67bca8d9bf20af879f60328182ba71a67fa0f90c082f8c8feedb42328", - "film/ws2-concept/reference/cards/terminal-3d.md": "956b483a20e9bf49c192b53ed060fa9690cc5eee771e0d3ca29758768836bb4c", - "film/ws2-concept/reference/cards/depth-layer-moves.md": "3caa8ebc9c5ae5af8dfe3932f43bc88c1f1bd5d4e6980a0c0461be121bcf1acc", - "film/ws2-concept/reference/cards/glass-pill-dictation-typing.md": "fd41dce82df9de936d958fee0640d0b411f13a5e0f71711280076a848e639036", - "film/ws2-concept/reference/cards/outro-group-photo-launch.md": "6cb64b674b8bded5f08a39aceac73de2b957c7a6fdaf559921c4421b6c27d46f", - "film/ws2-concept/reference/cards/ai-stream-response.md": "a44dc2f57dcc3e367e21ecd71669f6550262e5746be0af87e95309ed40308e65", - "film/ws2-concept/reference/cards/input-trigger-moves.md": "4ad36f963da66a7b1c9315da7f80ff75fe3e44d687036c876aebdc1b7484a992", - "film/ws2-concept/reference/cards/tension-camera-moves.md": "6612ba598559261d2bb556bd536eeb1659490102a48b57e034fe053e10774631", - "film/ws2-concept/reference/cards/quad-split-parallel-scenes.md": "22b9e42c9d136c29710ea9371728205198be2ec73a90322107ce92223ea18fcb", - "film/ws2-concept/reference/cards/svg-shape-morph.md": "ddc54c05b5c397adfe9c9fe458cf1f9ec62232d8162eb82ca3dca00090250f71", - "film/ws2-concept/reference/cards/type-and-filter.md": "05da1b7e16fe652d2f5868485e913d08caaf87febb5512bd27b71d6b6c964fef", - "film/ws2-concept/reference/lib-tests/__tests__/helpers.test.ts": "65617872abe7a728cd19f12707fb456225d27ca0bab30863277d3b47e0a834ee", - "film/ws2-concept/reference/demos/spotlight-hero-card/SpotlightHeroCard.tsx": "9dcc839d8953ff930ade91c82a7da178a31afdaa1e81b1b7ff59820e4b6cb04c", - "film/ws2-concept/reference/demos/draw-svg-trace/DrawSvgTrace.tsx": "654e26eef7357c64a828a6cbbd790331f9865e0e9c18768de15de46c281aacf5", - "film/ws2-concept/reference/demos/pill-slot-cycle/PillSlotCycle.tsx": "a8db19162d267d107904fd8e46573e9b74854bcbf871dd604fac56ff58b87f2f", - "film/ws2-concept/reference/demos/scan-bracket-sweep/ScanBracketSweep.tsx": "e96046d8b393545fc17a5b6c5d0158aae95d2f2285b6d2a997232a6595e6686e", - "film/ws2-concept/reference/demos/terminal-3d/Terminal3D.tsx": "810807a14ff6a7f813fe2ef999a40364734043428d34d9e272b24e7df18280d4", - "film/ws2-concept/reference/demos/odometer-digit-roll/OdometerDigitRoll.tsx": "e91c46c1c80f68f83fbed2c1c39e5ad22d6be5799f3541978f56b9e61ee73af2", - "film/ws2-concept/reference/demos/svg-shape-morph/SvgShapeMorph.tsx": "9e6bfaca697bd36837b3c31163d607863942570daaa0b5abda0c0c5f131172ed", - "film/ws2-concept/reference/demos/depth-layer-moves/DollyZoomReal.tsx": "47d44cad258e8a3c7b7bfd7c5e5b3535360b486f21621e6fb25d210c7e4797b0", - "film/ws2-concept/reference/demos/depth-layer-moves/MultiplaneReal.tsx": "b67c6ab37f02f1df6033b54fdb08d1fa0aa85300404578be50715285d16d2124", - "film/ws2-concept/reference/demos/icon-performance-moves/AttentionBounce.tsx": "c467057383f91a4433be617db40d92d03f5f53f47e4cbcedb66091492f50cb87", - "film/ws2-concept/reference/demos/icon-performance-moves/PopBurstConfirm.tsx": "cca22774f4d75754795f96e0060f727a8b062c3005b7bab5cf45fce86f02b80f", - "film/ws2-concept/reference/demos/circle-match-iris/CircleMatchIris.tsx": "0c2afbb49d65aa15241396fb2343ba3cb046d0958cd80a9eac1925e4f93efd20", - "film/ws2-concept/reference/demos/quad-split-parallel-scenes/QuadSplitParallelScenes.tsx": "0ef89104610b5a00fc7bb89367957fa8b42df0b616a6c98ed535af6984f07c8e", - "film/ws2-concept/reference/demos/transition-travel/SharedElementMorph.tsx": "fe5d3a1071e71cce96470939bb6f4b4e7dc52e61058697ffa010c3e17e3521f3", - "film/ws2-concept/reference/demos/transition-travel/LetterformZoom.tsx": "272b01d64d73252aab1b70b8f6214656d046704266ca06e5306edb66fc75da13", - "film/ws2-concept/reference/demos/wall-reveal-moves/GridWaveFlip.tsx": "c39a5cabdca00167d3354667442b4de477b76a36576815abc483609f1198f481", - "film/ws2-concept/reference/demos/wall-reveal-moves/BentoLightUp.tsx": "eccb4c2211af30cb26b391ea734c326599958906411e9a3c019acfeceb87fd69", - "film/ws2-concept/reference/demos/wall-reveal-moves/WireframeDrawOn.tsx": "18d2fc4192a67dbfdcfca390d753eb52f6bcb50be316b71480e54ed32208558f", - "film/ws2-concept/reference/demos/tension-camera-moves/PullBackIsolation.tsx": "93e36a2f42e96497627fb6aac92854d914f70037239a772e5cb3830e7f1a9844", - "film/ws2-concept/reference/demos/tension-camera-moves/BulletTimeFreezeOrbit.tsx": "975f02697f579905a6d83461727f7e258f285fa4738d783ac96b3e6f997413bb", - "film/ws2-concept/reference/demos/tension-camera-moves/DutchRollToLevel.tsx": "de3f0848a382c77d5f1d7824041fce6a371cef804be592845fba981dd83564d0", - "film/ws2-concept/reference/demos/tension-camera-moves/SlowPushIn.tsx": "db43d1d0d52b27cba3a97f17bf2999bcbb8750f5c4aee460889285d7c2647446", - "film/ws2-concept/reference/demos/logo-shrink-wordmark-lockup/LogoShrinkWordmarkLockup.tsx": "d8581f081b037f36954214276aefed9039ebe8d76aadbe91ffdf7c6ff3d4a4df", - "film/ws2-concept/reference/demos/light-play-moves/SheenSweepRetry.tsx": "c411aedec951a84afcf1722c93e8d9bec2864752610c652cc8a7d9e862f5e799", - "film/ws2-concept/reference/demos/light-play-moves/HalationBloom.tsx": "515567c881a3b18c8ae92d001b0b656b506f3bbadea32d75a82a476c6ea47096", - "film/ws2-concept/reference/demos/light-play-moves/SpotlightSweepReveal.tsx": "2abd85f00e8221f6a6b67c89d0be24fea3dc661a1f00d68e3dc954567cb4b438", - "film/ws2-concept/reference/demos/type-and-filter/TypeAndFilter.tsx": "95ab942c3e7f0416fbab7563ff326724123cc2a4ddc9fea478aebc8901cdf3b8", - "film/ws2-concept/reference/demos/transition-hidden-cut/VersusSlam.tsx": "ec0f28e508e4c3706a642798ed8516d90ef1b39c7350e1af15e0f5e9f4cb481a", - "film/ws2-concept/reference/demos/transition-hidden-cut/InvisibleCut.tsx": "41e68ca391f37c1ca10288407283c38f71844ab7f796b36a37056d7c56f43ad5", - "film/ws2-concept/reference/demos/transition-hidden-cut/LightLeakBurn.tsx": "31e4be432a84e13d6fa233ef3aff4a40646d67b949e16e9a5bea2a8f7b62b5fb", - "film/ws2-concept/reference/demos/shot-transitions/PortalWipeV2.tsx": "037b4f5bdd9b5c3d73a11d2932acddc471127e7051c122aee0f6423b77f511c1", - "film/ws2-concept/reference/demos/shot-transitions/MaskWipeReal.tsx": "92eb6e2a34f4f075b286e03fa4ee000fda8369ff5f3b2bd3a02964e2efff3713", - "film/ws2-concept/reference/demos/shot-transitions/WhipBrakeReal.tsx": "87c84d66f0675d921ca4cfd55a9fd9c5a5ba9a7717870d4b44c4c391c81ad063", - "film/ws2-concept/reference/demos/shot-transitions/BlackCardTransition.tsx": "4e4698247bb6bdd489ff34b46db292da07e616e575681eb13624b4f21d883561", - "film/ws2-concept/reference/demos/shot-transitions/WhipPanReal.tsx": "eda7132e8c2e142be87995b50a30e48c60c925872a9047c6bb8f54a8406be37f", - "film/ws2-concept/reference/demos/shot-transitions/DarkTunnelTransition.tsx": "526fd36c73b2aebbf01164900bc30e953bfa1361e76835d4efbfe47f7980ca67", - "film/ws2-concept/reference/demos/shot-transitions/FocusHandoffTransition.tsx": "00662137985de0d86b86cb882544189e6cf69276e8d849f45c7b2c23a84b679f", - "film/ws2-concept/reference/demos/outro-group-photo-launch/OutroGroupPhotoLaunch.tsx": "af4bbbf21570b65bc8e33b6ed679700089315bd17dffaf17864e4a8ac1e39830", - "film/ws2-concept/reference/demos/letterspace-materialize/LetterspaceMaterialize.tsx": "c66c6a726608e8de3584afd8ff25406eecd387edcf313c701a14d577cf7c9341", - "film/ws2-concept/reference/demos/dataviz-landscape-open/DatavizLandscapeOpen.tsx": "f575d1387ed5fe5bd1172ab50cdda20fe0562d44bfb469ec6d199b97bacd024a", - "film/ws2-concept/reference/demos/voice-waveform-live/VoiceWaveformLive.tsx": "77ab5983344687d7d591e2101febe8f80bd72fcef2043b470fa24fb95ee9f833", - "film/ws2-concept/reference/demos/_fixtures/Motion.tsx": "961a9ce2401e38b5fe22fce7f44d84fc656d76aad0b178082e447feb01494421", - "film/ws2-concept/reference/demos/_fixtures/Fixtures.tsx": "e06a6edce67ba854c46b897c11575d487ab265a2b3edf2b480be85dbe29bb5a0", - "film/ws2-concept/reference/demos/_fixtures/PageCam2D.tsx": "36b3b90680df7e99f0ced02f135181d7037f74c33a4f425cc01f7a110d20f69a", - "film/ws2-concept/reference/demos/ai-stream-response/StreamResponse.tsx": "017726ea7fd92256de50a1c5018391b88efc9920abb7d0cf42dce0e2c0db3df5", - "film/ws2-concept/reference/demos/ai-stream-response/agent-stream.jpg": "8a6683ac0348347f941aaf5f396d48e70086e61ef0667626cb77e74b48d076f2", - "film/ws2-concept/reference/demos/list-stack-press/ListStackPress.tsx": "6649fa6321663c6b54c9ca326147917d89a2dfd61d582954b996c7dd83c878db", - "film/ws2-concept/reference/demos/glass-pill-dictation-typing/GlassPillDictationTyping.tsx": "b3d70491d046eb645ea594e5e2a5f9d24d40dd0cf3860d7e65496e528e47f688", - "film/ws2-concept/reference/demos/input-trigger-moves/CursorPerformancePunchIn.tsx": "a2970990b385856cd9e176757eebdcd778fca864f7bf979c976b8fd4cfab53d3", - "film/ws2-concept/reference/demos/input-trigger-moves/KeycapSmashCut.tsx": "cd995c264dd139a0e6c161d59bb9b5cff17d92fc2ac4efba2e7003e329d53904", - "film/ws2-concept/reference/demos/crash-zoom-punch/CrashZoomReal.tsx": "495a5afc91a4c93424d15edf35c8767d1ff90f4d9515bb9194f68d7f355a181f", - "film/ws2-concept/reference/demos/crash-zoom-punch/CrashImpactReal.tsx": "6150253befeb22cff49492dcf3a5b56c01d667e3df6136466e480d7b3b92789d", - "film/ws2-concept/reference/demos/speed-ramp-freeze/FreezeAnnotateReal.tsx": "5ea9848eb760ed76123ab152d4e2b60bb3b1df9472c3b0ca12e6723fb64f35c7", - "film/ws2-concept/reference/demos/speed-ramp-freeze/SpeedRampReal.tsx": "f3f9e54385f0920aad4071d6f85bf9c878946ddb7908894d5802ab2ecd5f11b8", - "film/ws2-concept/reference/demos/morph-from-primitive/MorphFromPrimitive.tsx": "f18d82ce6675be5c0b097969285a973c122633f2844fd1c4a81cc1c6a97a0d5e", - "film/ws2-concept/reference/demos/paper-title-card/PaperTitleCard.tsx": "5ab4b473e631c2863d6033be22231a07afce2b29d08322d5ba821607c2642a16", - "film/ws2-concept/reference/demos/deck-deal-flyin/DeckDealFlyin.tsx": "4738e54d707a82847d1a5081af88876a872465eb3ead94f1c7682acf8e5a251a", - "film/ws2-concept/reference/demos/fui-hud-moves/ReticleLockOn.tsx": "46bf287a5de1fde17d34e3725ed6cf66d443a90cff63ebcc907293cf0c31fdf5", - "film/ws2-concept/reference/demos/fui-hud-moves/LineUnfoldPanel.tsx": "87329b62b3dfe20b6c08c9f3a559b2f77ee4841b4860cc2be1a00ddf2d5d0122", - "film/ws2-concept/public/footage/SHOTLIST.md": "a10154e0ef8db5ff09ec6f35d1d2b182229a25e0dfd75b0028b908f6b937fac0", - "film/ws2-concept/public/footage/manifest.json": "48793c6bb3ed0dea0fcfe54eb2c936e3fa0d3bff5499ba6954b704b3325da9a2", - "tests/support/NotchThumbnailsShim.swift": "d902c85adfb192b475ab833ca911eecf09f40cf1b480f0dabdac1887616cc7a9", - "tests/fixtures/capture-indicator-stream-frame@2x.png": "3e070f6196de997e6713bdd320175f5cd8fbbf94dc50413215cf4b5941d22434", - "tests/fixtures/LaunchpadPerfFixture.swift": "9c008df67cf10add6ec425b9dc7855ca007d379ab6365d1e114e0ba7dbacd20e", - "tests/fixtures/capture-indicator-inactive@2x.png": "f979f41f3cd3faf343f3870486dbed609c36c716c790e88f110858caa1624c69", - "tests/fixtures/capture-indicator-active@2x.png": "e9dc2161d154c48a5cbca2e156691131dbc0942e5e31ad624f77ad6850d966e9", - "tests/fixtures/LaunchpadVisualFixture.swift": "e664bf9ebe168b5543a8a6868672d4c2a842cfcc4dc4cc1c271fb907e4d541eb", - "tests/fixtures/capture-indicator-before-stream@2x.png": "f98ceb3b31a89ea298229fcb9dff01d0c3b86e5e4bf2583fc24b3b5f908b0083", - "tests/fixtures/GlanceFixture.swift": "42a9b09d4d50e2dc1158946d111b43719de83216013ed47ff239fb385d778dad", - "tests/fixtures/lid-traces/fast.csv": "674d70b7c4909699de5a8ef8d7d0d873ab0f8cebf167875bdb609e397057003c", - "tests/fixtures/lid-traces/rest.csv": "f3b43a73a2a78a3219075228fa2759aa74ba81ce2bc932f8cb65ff6af5e68648", - "tests/fixtures/lid-traces/partial-hold.csv": "7edecd690b14174651f775ebbc9a8a71d11dd4fe63ce531e9cbed4c7114f7d7c", - "tests/fixtures/lid-traces/adjust.csv": "364402af37f1d196bb69291bfa359f2743eba38bbac0f65c737a79df6c5fb72f", - "tests/fixtures/lid-traces/slow-close.csv": "aecc4574bd843c2663432828ae87503d520c016092144611f7d9bf216bdfd31d", - "tools/liveness-lab/README.md": "aca5d3ed0c4c71f7bd7815ee07e1ed81ac10e063fe21c1c0c5796ccc165d84fc", - "tools/liveness-lab/LivenessChallenge.swift": "ae641483f238576eb1ff723db5278a71ce2e246d4cc28a9df395d0e1eaa9b13b", - "tools/ws2-hook/build.sh": "274e626a57de617debb2b16b6fa48787dea89409a0c77c2231c5fb8a2515da82", - "tools/ws2-hook/main.swift": "bb23445b862a087c1d2fdf105324426b4b21ac30e920744f89fe3e0b95b68c1c", - "tools/secure-enclave-probe/main.swift": "e269fa4ba7b34843b727ef241c4e59ca97a6c418c9f7ffc4405c0958b72a48c4", - "tools/secure-enclave-probe/run.sh": "956e15ee147a5c999d18b9fd36dbda58b4af8a3829e00525aafa2bdad04a0352", - "tools/lock-probe/main.swift": "c421a26fa618fef2908a3adbafc0a616e2b2509cc4e5538602c20fb305d90d22", - "tools/lock-probe/README.md": "4e7b10c7da0f5bee4c924a1ddcd56dd0ea9eda7857df5184fbf59e4fc8a4f166", - "tools/lid-trace/LidTraceRecorder.swift": "3e2677b3105bf5e0b8c1e41d17e2c089abdf118adaa376fc28468073e8c410b6", - "tools/lid-trace/record.sh": "19e83f70ad081494dc7604b26a52ac42e289ac692f60266d93fa8d39d2105bf3", - "tools/behavior-lab/BehaviorRisk.swift": "edbbe0f391ae397ef24a0899637ef3d2e0454cfadf43f5792c835b52f89bfc6a", - "tools/behavior-lab/TimingFeatures.swift": "adb2b6edbccf580d99545948b187d3f2ea21ac72efdfe0c3b03a53cf1640e19e", - "tools/behavior-lab/main.swift": "8ec906c8d6e8f0ec189f6d7dcb4bab9e82779d9119adc29ae93f0dde7f513658", - "tools/behavior-lab/README.md": "f65df09013b8cd908153c8ec5313700480eed56ca42a44758be818937a197f63", - "tools/behavior-lab/run.sh": "8023f1e9757ec37098432a250df286d0400e9889dff6542d2aa3c6c8abc2f45a", - "tools/power-context-probe/main.swift": "6732248b368a8b705ddf42f5454a9f957d7d6ae6dc9ce574d7c1edaa76eeafc5", - "tools/power-context-probe/README.md": "660ea4ba4791c9c3a3fa3a8ae77463a87e98889bc04cfa4925d2d3c348835833", - "tools/power-context-probe/run.sh": "90f70f69cb2bdfcf4d30ae2afb478bb0a961cfd263ffa4807d3f6bc1303f0bb0", - "tools/lid-report-probe/LidReportProbe.swift": "5eccb09fe8aa99763f4ff07673d007946bd1331deccb7bdda7f27ffeedcfb5af", - "tools/lid-report-probe/README.md": "eafec4a2914d3cabcbce01360d869133c1497eafd0a515adff23939d2547670a", - "tools/presence-probe/PresencePolicy.swift": "bc87d4dd1d328edf5850875c569ab0f340ea530c5248270b324ca4a6993d9e7f", - "tools/presence-probe/main.swift": "7b7d0c71e0ace75fab348cc7dd2fd2917b8f44219afcb4b19e216e82be6c66b7", - "tools/presence-probe/README.md": "471adbbb78c127e571c8eccb819d3e52003371bc59c30ffe9525041e7574ee2b", - "tools/presence-probe/run.sh": "fda772e20b6c282f143067c974abe295f192909c73437868ec9dd76a33af5dc1", - "tools/companion-probe/main.swift": "9831cb9aa5545998ef17954b5eaa70efd1d5e08875eb84b028d48b8f1e8be655", - "tools/companion-probe/README.md": "aa1b0c781723734879533196af750d53797e7071a170e3877e4f8bd4f1b38b51", - "tools/companion-probe/run.sh": "a0ec7f5eb3dce6c6d8455aaf25e72d837b536eabd3da4e2c3d6c69464ee7d188", - "tools/activity-frame-probe/main.swift": "588c505696d631f9b7f96d09366e1e4c457171679ac54e55073b4ef1a82b3e5e", - "tools/activity-frame-probe/run.sh": "1d796225453350a28cf68c33bb9079439c1e2488e2ce76d3bddf06ae8f3ce571", - "tools/accessory-probe/main.swift": "25d5fe0763ca9533914b6340128371eca91b1e9b8921cc9a6f177230f81e9f83", - "tools/accessory-probe/README.md": "f11a75dab991ac2c0dd01466e2440a87770cbdf82586f4b1f736e99e0191a05e", - "tools/accessory-probe/run.sh": "9d1489fe51c569c0ef13bd020f961b18d6db391e71bee7e795345542a071e214", - "tools/touch-id-island/main.swift": "412214a5d14a1e180b0a59b82da775fb052e33e15f51c4c78cb697fda33836fd", - "tools/touch-id-island/run.sh": "b5f477ed74ae343e73d58ada2f8b03150d98b4101b0129e6dfd4ba21460a9ae7", - "tools/window-snapshot-check/main.swift": "a271eb7faf0b1456982ff0dc38443413b778de5c53c60728b3fe6b1833ebed87", - "tools/window-snapshot-check/run.sh": "5b8d9f005ea18b0a499f60f7e2ea7fa18d984363d381725889d096768e970347", - "tools/activity-source-probe/main.swift": "55ac6188889c4c9801c8ac61da19283acc3e9bac31afde4de0750abe46695ad6", - "tools/activity-source-probe/run.sh": "e428f5742e752776df5500c2801c31e0919fee6c8de3a3e83974ddf7920d3c54", - "promo/public/icon.png": "8bddac882d6d9b4ae12178e69335e937d3391d07e3a56159d926d5b87c2cd8be", - "promo/public/system-css-LICENSE.txt": "0433a8c105e9d410ca3fb7f205aafe8f1be27e0438cf3bd1447907f738ebc6b0", - "promo/scripts/audio.ts": "55ff6da0a290c7644924f3ae564f8704a4786650d84fd873bdc8b977cecae37c", - "promo/scripts/covers.mjs": "738c2dfcda84fbb723fc78396c9270e0cbb19a628badf2b1433f12aa2e754948", - "promo/scripts/render.mjs": "2e27288a74ce4f26a807ff753d590b22c4b9b865bea8b4b282d017ace0a04282", - "promo/scripts/stills.mjs": "c287ccb068e3b1f252a0ef265e1dd02f5fbbe0b8ce9f7a39fc095e4680ce2330", - "promo/src/Covers.tsx": "5b5b94afc7ac33c7419bee91d55c63b1e95a9cb1b955e33b21ce507ebec9703d", - "promo/src/index.ts": "957e481dd33a29b4a55ae0e95dbf763b7e48c37c427ca4bd1275faf34bc07a74", - "promo/src/timeline.ts": "d373cf1d626a280b966105c09b9091fd085f4a35bb21abfc181b8ea2811d4d6d", - "promo/src/Root.tsx": "16d33ce51ae6063b7a1ad9fa43dbb0461b7010ad19deef854f5be796e24f8924", - "promo/src/ui.tsx": "83ecb1ea03b0df230eb9aa86f7894d75189e54c1c2f1c8dc1e0f28e99269dadc", - "promo/src/theme.ts": "3e42a36199d0014b42ec005ff62f621a9bf766ff12a39f8b61a718800b8865b8", - "promo/src/scenes/Multitask.tsx": "b51fbb866d46460dc118b1b5d473c0d62ac7414b740c448842b978cb0397db99", - "promo/src/scenes/Opener.tsx": "39dd35c5e72e8d98ecc713c5e2888f097fb1f4d2fb737c5469cae40fc013bb27", - "promo/src/scenes/More.tsx": "69186d0d392cc9ace59d303a09b8615415251395a9c361e4031958ba294a3d60", - "promo/src/scenes/End.tsx": "4600329f05649b489319be4a4036eed59d07983e2931edca3675ae9b8d64b203", - "promo/src/scenes/Glance.tsx": "fb4877871d9c112d9793c815929371f41ac7b1429a531888d6015a33ae897c14", - "promo/src/scenes/History.tsx": "0f59f6417d9d73f5a2792cc001f6b4f101be3820374a8b9e786f81414aaafdde", - "promo/src/scenes/Gestures.tsx": "dd3c709a7388c23fd69e49b06f18505101b459209238579f97cad737bcec1fbc", - "promo/src/scenes/Ways.tsx": "2f90fd0f0dbdd3ead3af08634b39817b50a2677693bf719f16cb0ca9953e9f67", - "promo/src/scenes/DoubleClick.tsx": "ae808f2534b316928be302e4b6620dad99a26ae3bbefa87a1ad0112567ba79ad", - "docs/releases/v1.0.9.md": "da69d052a7612cb91c5c49b236824ec85cfb8c3d2ca5503621a386b129dd3368", - "docs/releases/v1.0.16-checklist.md": "cad6ca99d72feb5702d9ddb8459ea37bfa10246cd66434d71139000d3508eecb", - "docs/releases/v1.0.16.md": "d28ea7827b3c8c8d928e722edb1d7b7641306f6fcfe3134ff2a7015a6e08febd", - "docs/releases/v1.0.16-ledger.md": "5ef9ad81aedae8dfe2089eef058a022ffe22fd14d34c33b3af2d937ce8313170", - "docs/releases/v1.0.md": "3783367f227bc76b9e62c90d904e0f3ca0b0fa138bc6ea96542643dcd2a84f43", - "docs/releases/v1.0.11.md": "9aa1150983710d8250fb56c91817eb1a25b23428cfc58c23d6f8abc648726198", - "docs/releases/README.md": "79301ab70bbe3c5bf6d7c7095107353d92d1d63eb879bd0fe40d72a7f313bb26", - "docs/releases/v1.0.13.md": "3e57abbf6c7cd8e21bf51dd5efd7a1f0a743c9db18de4f90c7212fd22bdbf6c3", - "docs/releases/v1.0.10.md": "2ad3ba06630f9c018bbe28cf2170b256e81b456c78d25e50908a95759bf4e315", - "docs/releases/v1.0.15.md": "79383e8838bbf160108a38fb70a272f26d4cb2180dc4d181a06fc94535cdaba2", - "docs/releases/v1.0.12.md": "23d4aae11e4085359c1519191cd6e6fabff2c7e11f201e312c0a08d07b9ce8e1", - "docs/releases/v1.0.14.md": "9bf99e2532d4f6b01890e6ea2afa358e362024d365774350bf4c767fe90c23e7", - "docs/handoff/deepseek-conductor.md": "723a8eb65df8c26167947778ec316fdfe54d1213b68ed816f431c9bbb418cc2c", - "docs/handoff/deepseek-dynamic-lock.md": "d4f109f113ccffe680e716a74d34d67743b17b87904628974916d47496d724ce", - "docs/handoff/deepseek-pomodoro-symbols.md": "538c97c89de9fa2df681aa754a8c4b5410b3eb451dbcd8344517aba96e7bec52", - "docs/handoff/START-HERE-deepseek.md": "f312e6ff55ae910ad7d4c4127f1548ed0b711f709ca23196afa0449094010edd", - "docs/handoff/deepseek-film.md": "f935b56ffbb3986db04f9d4489e8dcabe5c3c164e4aa8779d535a95ca34df965", - "docs/handoff/deepseek-menu-agents.md": "f1d69f88f3c1dc6204389ceba794df9a3f1295cc86a6b6043153e599860c34bf", - "docs/handoff/deepseek-input.md": "3452f91df3b1c22b85e5afbdcd5574aa2d44c6e2f663be3df64189d1f30d06c3", - "docs/handoff/chatgpt-review-1-verdict.md": "4caa17fea8390b7d92dbacae8c4d65918a1dca276b6ba25873a015867a38eb5d", - "docs/handoff/chatgpt-2026-10-01.md": "f678d00a318bc5410ae6860b33f81d3454256d853438779c0118deb4e786134a", - "docs/archive/2026-09-13/reviews/app-experience-priorities-2026-09-13.md": "f8c88707b398d0e2bb16816238fe546396218ceb7e57cbe6b05d38bf80709be8", - "docs/archive/2026-09-13/reviews/near-term-plan-after-history-2026-09-13.md": "8f0834faba6f78bf62417ccc04a39c47d7dc3f4ce3ad1dd271e6d5af33e1d843", - "docs/archive/2026-09-13/reviews/native-shade-review-2026-09-13.md": "1e2f4d5e92a7006040e49c92277b11dd5393d482c1c67fd860b7f0edf88a54db", - "docs/archive/2026-09-13/tasks/design-v1-progress.md": "54ab9724a8026c6645e56a8d096a84f2c94bf7d45ca3bf409dd0e7be72e256e9", - "docs/archive/2026-09-13/tasks/website-progress.md": "63c234095f4d237b04505eb70c76cc5d63086083422f33baf246becda1936262", - "docs/archive/2026-09-13/tasks/release-v1.0.11-progress.md": "9ec0dab218d521e0a65df205a6c3dc4dc6c660e96ba0b0ffe15d5c57fa42e5c5", - "docs/handoff/reference/mac-facts-2026-10-03.md": "18c728dee09ac63907f100c86525ce89e790185838154dbcdc0afbc5eef396bd", - "docs/handoff/round2-part8/README.md": "17ce3a43ca16572a43ebf6dc3b6f1c28910751f35c720fde531d5221d274717e", - "docs/handoff/round2-part8/privacy-delta.json": "1dc41ccfe8411ae8433dd86ee317da55a0d114553dc74d4bc589f2a3f2c5befc", - "docs/handoff/round2-part7/privacy-signals.json": "511294f40bd1dd8231178d9906ac9748889a74c2001b3e02cc8a3c3987298499", - "docs/handoff/chatgpt-review-1/SHA256SUMS.txt": "079c3957536797dfafbfae9f74fe48e19b918a95884fda8e8fcd89459f41501f", - "docs/handoff/chatgpt-review-1/README.md": "0ca20d0db3d61bfd18a72354e9158ef4478688c0a4a46070b5e1a85c546a4fac", - "docs/handoff/chatgpt-review-1/prompt-patches.md": "3970e18ff040c8bc28d6b3b98245589b76bef970f04c26ec1ceef0b671bc17ab", - "docs/handoff/chatgpt-review-1/validation.md": "4e80eef0b2b25f940fa25cf67e5045f0cd5a8183115e0fa2df3ab603296b3db8", - "docs/handoff/chatgpt-review-1/sources.md": "641bf7a197ae422cbe4d175bb45fb146a4adefc8f4cd8c8f3fb69f8bb298f48e", - "docs/handoff/chatgpt-review-1/review.md": "47703da5d5f1655ec0a5da707f068c57f1f260a8739168e26c478a1284f4e7df", - "docs/handoff/chatgpt-review-1/validation/package-checks.json": "e95d0050afdc95a28bdb644d729d509920a2789e40fcc8b6a4c8a68c59fca3ba", - "docs/handoff/chatgpt-review-1/validation/conductor.log": "b1c223ab3be82a19bad2d7045fca062b892f9d208a5fe2327a750631d6e03fc9", - "docs/handoff/chatgpt-review-1/validation/runner-boundary-tests.log": "b52b633d69e30d338d6c663efd9a5bab8b4f31382980eafd22156a8d449f7e73", - "docs/handoff/chatgpt-review-1/validation/typecheck-D1.log": "5bfced18ec7a04276205c9c83431adaa3fde3b430a980514f4b19b4c7550987d", - "docs/handoff/chatgpt-review-1/validation/notch.log": "3caae3d18fb3c30e5a3a00cb2bf426bb2e592e741d536b57fc5425ee28f89c1c", - "docs/handoff/chatgpt-review-1/validation/typecheck-D6.log": "b5f48fa3c46e4a9ab4d4614343dc8120f818bcfeaea89d2dff91a0a31f442206", - "docs/handoff/chatgpt-review-1/validation/typecheck-L4.log": "33ca1ccdfe388bb7167fe264b9f7ace299d961f62a281226701f5800cd8a09e2", - "docs/handoff/chatgpt-review-1/validation/typecheck-T4.log": "75d2e7ec7e537f5e7efa83b40adb2807ec5a183d5638485eb095df20ed8cf3ab", - "docs/handoff/chatgpt-review-1/validation/typecheck-I9.log": "9b227125fd98c7d67825784358e3aa833ba226d2d5d6186c5b6ef161b4a5f022", - "docs/handoff/chatgpt-review-1/validation/boundary-tests.log": "b52b633d69e30d338d6c663efd9a5bab8b4f31382980eafd22156a8d449f7e73", - "docs/handoff/chatgpt-review-1/validation/typecheck-D4.log": "a1bf465ca3224f45a9b9c628c164b34624167d275d9874667b3b8ad0e7563f94", - "docs/handoff/chatgpt-review-1/validation/typecheck-I1.log": "b54a2662ac6a3d67d6cbb407b52784749949417ff91e85b89fa0ac9a052e69aa", - "docs/handoff/chatgpt-review-1/validation/typecheck-I7.log": "ae6b44eb541b2157885f461debde513e9a35b6c4f2f7368bccd08a4d9d9ee8b8", - "docs/handoff/chatgpt-review-1/validation/review-findings.json": "c4c3358c8d09572b9d2b6612f8d86a6041d0b0d6daae140f9e2ec078adb693be", - "docs/handoff/chatgpt-review-1/validation/typecheck-D2.log": "a2b9d07b9f09ba42353a540e7e4e3c9e8eadb0aabf5a6a6fc487496603fbccf7", - "docs/handoff/chatgpt-review-1/validation/typecheck-A1.log": "1437a814bdebfb68c840f013a8349705a6a5ca70efd2d0d471f7db4a14660dc4", - "docs/handoff/chatgpt-review-1/validation/boundary-compile.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "docs/handoff/chatgpt-review-1/validation/example-platforms.json": "348e6fa8a64fd6b410deead88c6bd362a0e4b67c6b62935e4afe5e52b2aadd00", - "docs/handoff/chatgpt-review-1/validation/typecheck-D5.log": "4c5db623090d9647446293b944424bd8a1ca0a214a7ad646a810a8f786c5f833", - "docs/handoff/chatgpt-review-1/validation/typecheck-L1.log": "06834f3abdc1f9f45bb7516cd7021e6b0f154c4b51a5a11f7df6e25f818ce2c3", - "docs/handoff/chatgpt-review-1/validation/typecheck-T1.log": "337c6e923041d64f295587ab0ac24bfe850cbeccdefe4ab3d6b985ae52d285c6", - "docs/handoff/chatgpt-review-1/validation/boundary-compile-initial.log": "0a1a3b4d334ae6d48384689dc75a606014627c85d1495543121f36bc42aaa639", - "docs/handoff/chatgpt-review-1/validation/input-manifest.json": "425381da32fa4201535ac58c825692421f69f93ec15886b5a36ab068b085d6b8", - "docs/handoff/chatgpt-review-1/validation/toolchain.txt": "eb9fe405b65bcda75635327f6ca704543098f4e7d882bf5d2541a6fca34725d6", - "docs/handoff/chatgpt-review-1/validation/typecheck-A2.log": "b06947a044f7cbab3ae04ba9e4172d4dd2df23dd7b909993738e4cfdec96581c", - "docs/handoff/chatgpt-review-1/fixtures/hook-none.json": "ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356", - "docs/handoff/chatgpt-review-1/fixtures/hook-deny.json": "2664ee0eff0c12b2f2df5399b55bab2f1561c3ba8e217f15c501227784af33d4", - "docs/handoff/chatgpt-review-1/fixtures/hook-allow.json": "600d7470494907251e4ea8186239c1451cd1784487cda22d6b54552114d7cc01", - "docs/handoff/chatgpt-review-1/fixtures/README.md": "640b3f3f163e1d90cfcea6e9f57e37f9e33e8b30726ea5b36280f123214e5f3b", - "docs/handoff/chatgpt-review-1/fixtures/claude-permission-config.json": "dea20a25e015b61ad56d0343a993fdbcd2dee789ba5df296f730738e82cd4611", - "docs/handoff/chatgpt-review-1/fixtures/codex-permission-config.json": "3a181b2bfdd8a29da003cf954fbe3aa6d9fdbd88487fdbc80b5207d61778706a", - "docs/handoff/chatgpt-review-1/fixtures/app-server-client.jsonl": "bd674728d061d7e703f84305fc8b947ab33d54aa3930e202d08fb50350777ca0", - "docs/handoff/chatgpt-review-1/reference/contracts.md": "0729a25fa1594ef60cf37987555c8ab8dd2b7553a3e544e6b26130a101327cf0", - "docs/handoff/chatgpt-review-1/reference/hooks-and-app-server.md": "6a2e2835b21f556f1af444b345d76dab43da4251e628bd1422639c6a3f9ddccf", - "docs/handoff/chatgpt-review-1/reference/private-abi.md": "66e6571fc608d2576483ad2e116de25c3efe169402fb59ef0cf27d7f056fed0e", - "docs/handoff/chatgpt-review-1/examples/I7.swift": "9c569cc2fe4b5da9d35685bdd423d2d49d6c3a864d9eb0870e2c5a8d4a908952", - "docs/handoff/chatgpt-review-1/examples/I1.swift": "e2ce0a23f28d5804068f49d94559faf7627af06acd55f94fcb7ed77761d00c2f", - "docs/handoff/chatgpt-review-1/examples/I3.swift": "cf57fb29f59a9e3d853393c278152276b323a8e6c45348afaf1dbca3d4678a00", - "docs/handoff/chatgpt-review-1/examples/L1.swift": "49cf160cd5e4f8b1da784a170a77acfcf183c71afd53cff4827c29ed6ddecac8", - "docs/handoff/chatgpt-review-1/examples/I2.swift": "924808e02e2ced9d2e61536f07ecb0c1233defed5227c89850830bcdc9ff1993", - "docs/handoff/chatgpt-review-1/examples/T1.swift": "a43aafbe1b3068fd62f2d7ed96cc656460f6c56842d5df4716463df6f2c0099f", - "docs/handoff/chatgpt-review-1/examples/T4.swift": "e2d4bd8fc78c1b38ac0e9e733bae5ebc94d516a99cce3d6bd25d3213d72d6fb9", - "docs/handoff/chatgpt-review-1/examples/A2.swift": "f4f9926222ce3ab43cfab99be4b14f68bc493c88a96fc43804a9497777204610", - "docs/handoff/chatgpt-review-1/examples/T2.swift": "509363204ac8e73decd1e9323dfa73294e6b196736af09a06b02acf78f03a972", - "docs/handoff/chatgpt-review-1/examples/L4.swift": "096461756b2985fb3adf79cef73541c7a6429425745b1c76728e5719b85090bc", - "docs/handoff/chatgpt-review-1/examples/D5.swift": "7af79bc13e94d075e7d363febf3781690fd52e3687ba4d450b420ddaf998d0ef", - "docs/handoff/chatgpt-review-1/examples/A3.swift": "5c7608e773d33f0a1b868377b07f621fcc7323d192a039f868003d9273be00cf", - "docs/handoff/chatgpt-review-1/examples/D4.swift": "0ce653a07e56078ac82aa4385519ded4e0b5a5b1eb621624050aa0148247d274", - "docs/handoff/chatgpt-review-1/examples/S1.swift": "90046399a1e175342c280088e2f7fcc549796c88ef30e7dc615a9040894d9dd7", - "docs/handoff/chatgpt-review-1/examples/I9.swift": "522bc168abe6bdde86eb42e4f661b8198a7251e11fe38eea51b66bb7c1cb48b5", - "docs/handoff/chatgpt-review-1/examples/D6.swift": "8c551e61ac2ece44f84037e1c8d20260ff53c568441f17c8bfa9002ddcad1906", - "docs/handoff/chatgpt-review-1/examples/D1.swift": "d9c68e8dda1a02cd8443b325d9efaac4d613e3b10e5d8967b73094edfaa274ae", - "docs/handoff/chatgpt-review-1/examples/I5.swift": "7bf1e8c69a00ad86b74dac41e154af3c47fe7bc27adb726d321a5bf87d54cbad", - "docs/handoff/chatgpt-review-1/examples/I8.swift": "9035f9ef3ad52dc3eb1919631be54357ba79c7b8b325000be4dd4076b68e4ffa", - "docs/handoff/chatgpt-review-1/examples/D3.swift": "075a195bb9e32c84c019e1e09ac2d71ddb0c4d2a0cdc9160e3d783b9f2f1e9c8", - "docs/handoff/chatgpt-review-1/examples/D2.swift": "782124401297858c1c1595060747b636c95695046b20b29aa0ede14858666944", - "docs/handoff/chatgpt-review-1/examples/A1.swift": "9dadfffb018324d792f394d392dacd5b4248b31952d08cee7c3db8b63fc84f99", - "docs/handoff/chatgpt-review-1/examples/L2.swift": "ad579f43fbcf02db5fe2141098c00149f9324b052b5dd799873ba9e0199496c3", - "docs/handoff/chatgpt-review-1/examples/M1.swift": "4cba363b11a35c4f201441696829c66be059eff4cf10ba97400cfdbe0d6b9e13", - "docs/handoff/chatgpt-review-1/cheatsheets/A1.md": "adc107b5763dfde8f2d669beeadc93f9bfd114d6d0aac2b9de25335794376eee", - "docs/handoff/chatgpt-review-1/cheatsheets/D1.md": "e403d3183b448a1514b90e55e720d44adef17fc2d5fe25338565a62315bc1993", - "docs/handoff/chatgpt-review-1/cheatsheets/I8.md": "3140b4c4966fb143a1adc80bb11c85610ff2486ff9fe1d4234cf4d44baec756d", - "docs/handoff/chatgpt-review-1/cheatsheets/I5.md": "0dc7a74285b65a9d1dccc74c30d431c88a3d546c2054e017bb9e72e0e106ebdb", - "docs/handoff/chatgpt-review-1/cheatsheets/M1.md": "00957894b035ff5f330b33eb3a4d4a4fec24571893fd50e9377765420bcaf509", - "docs/handoff/chatgpt-review-1/cheatsheets/I2.md": "bce16beca45b52c1ab57a2c030b3ee4532ed0cb0bc089d3751d68842a0c5cbf6", - "docs/handoff/chatgpt-review-1/cheatsheets/I7.md": "48e7bb066942c2eb78ef61eea181923f91c290d8a411d025c3f5d3d9217d72c9", - "docs/handoff/chatgpt-review-1/cheatsheets/D6.md": "a9e31d9e24a438a5c1e0a81d05701322db9f139ad8b9f396e1f65ae68ec28cea", - "docs/handoff/chatgpt-review-1/cheatsheets/A3.md": "379e1a39001a2fd502516d043af340eaf1257d5b0d2a3f16591cacd74a4c3ca9", - "docs/handoff/chatgpt-review-1/cheatsheets/A2.md": "04ff8017adb9156c2c2496c164f3e352c3eade229b0d9ba4c69ae6c056b70624", - "docs/handoff/chatgpt-review-1/cheatsheets/D5.md": "7f8724b9ca5a478bbcf056ae06f4492ba79e1d332a751734b86fc9211e7bebc9", - "docs/handoff/chatgpt-review-1/cheatsheets/I3.md": "18a777ed326e8f7868ea342aaf0d1915fb6535634c3c7415e3a37df934f443a2", - "docs/handoff/chatgpt-review-1/cheatsheets/D4.md": "755ca88033a8cb843fcf7f1ad999a1c70aeb9c9f888f07b0922718230d72b2bd", - "docs/handoff/chatgpt-review-1/cheatsheets/L1.md": "a754c73f536ecc97bf67403f1240ec7f95dd55260c95643dd899193c1b7c17b0", - "docs/handoff/chatgpt-review-1/cheatsheets/T4.md": "6af354f834a4a74d499c010e7df3336f94d10bdf5d7b982ee98a1ac3ff5b8954", - "docs/handoff/chatgpt-review-1/cheatsheets/T2.md": "3f6c09e6f33470d62fdc13d9780017e215ccc71711ed809a99bd75c143cf44a2", - "docs/handoff/chatgpt-review-1/cheatsheets/D2.md": "1983bda7e1e093584419712d07c1e94dd84b191acebc462e0130a10568e84be6", - "docs/handoff/chatgpt-review-1/cheatsheets/I9.md": "df4bb906aeb11235b8d2950b4d0a7b1237175f875bb7e99768af250662caa453", - "docs/handoff/chatgpt-review-1/cheatsheets/T1.md": "5f0f410b637169e03d712d75919b99dea806836646f3473d463e40f841aed278", - "docs/handoff/chatgpt-review-1/cheatsheets/L2.md": "0b5afb352ff702231f428a9489218f21191d3a89bd40520ab6a567e56f26c61d", - "docs/handoff/chatgpt-review-1/cheatsheets/S1.md": "bd4b14058babac734ca2ffde9c8246d89570347c9a06716a67794c37330dc869", - "docs/handoff/chatgpt-review-1/cheatsheets/L4.md": "f031742b14198a91ff2b55e4d5483337acbbb4ba39bbb7e88ac3ff33bb6b0c77", - "docs/handoff/chatgpt-review-1/cheatsheets/I1.md": "a38018ce17c1b050c95143a0ec4f45a180416be31903644ed75f3b01501fc48b", - "docs/handoff/chatgpt-review-1/cheatsheets/D3.md": "84b92e38cb08e6933e7395f2f64a56fac3b369d1e2fca4c42f8e6e40e53c63e5", - "docs/handoff/chatgpt-review-1/tests/BoundaryTests.swift": "eaffe60df038bee7e39416f76dc8b7822c256eb2ab214fdc87cf0cc576f36666", - "docs/handoff/chatgpt-review-1/tests/typecheck-examples.sh": "5e95d1bcda7c5f9a43a1b10b41b03af2c2954d2c805d3f5523089cd5a28501b1", - "docs/handoff/chatgpt-review-1/tests/run-boundary-tests.sh": "9a961256a37a69793d857f3220259d95c1720e703b1b8801b66c4e2e0818bd52", - "docs/handoff/reference/codex-app-server-schema-0.153.0/PermissionsRequestApprovalResponse.json": "23f3f24e9dbf35db3e0b85703f0d934da5a1cff3cbb611fba8bcd41f3b4a04b0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ClientRequest.json": "25bc001b5dfe3b35785597b8f9ad9e5aaf7e437331fa9921f041c9e0e03fc9f3", - "docs/handoff/reference/codex-app-server-schema-0.153.0/codex_app_server_protocol.schemas.json": "e8284c5cb8157554a3dd1e035aadbd4325aea501af56887e9c2e12eb1b9b9448", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FuzzyFileSearchParams.json": "0291dbb87a7c3d8ef7f7cdf8d5d61f929deabab8c0ea79f064da95984d7d5f4f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/AttestationGenerateParams.json": "b85df8f169cfbca98724df3a5f7550fc4649fa69b23f5160aafdb52e027133a8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ExecCommandApprovalResponse.json": "80dba6d9f28d19c57960db72340554c193624f014cd496714a0c7aabe1120046", - "docs/handoff/reference/codex-app-server-schema-0.153.0/CommandExecutionRequestApprovalResponse.json": "6d0767113e22f311381809b6b236b0dde2b99b01992879c26bf7b1ea0e003cb7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/McpServerElicitationRequestResponse.json": "792a012fdfe53ac211575a6c37ffbd492be848d15cb313d1bb4b534ade1f54ac", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ChatgptAuthTokensRefreshParams.json": "03b7a734b8b3180d9cb477b33564385d29b22a2528165a614891f13849060503", - "docs/handoff/reference/codex-app-server-schema-0.153.0/RequestId.json": "9c72d59a306d827113020c6d31a14c326d55210d9bd6954f825196a52009f1c7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ApplyPatchApprovalResponse.json": "a5e145b4794ea91da6eb478626fac96bbbd4485c3399fabd1c9972d53d2d9010", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ClientNotification.json": "706cf248d75027c84a3c63348d0ed507182e8eba40069dd17541793de029145a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCResponse.json": "4796738c04c74288213a08fb8d820c7b4df19e0977cdcd35b65ffcb43cfc93ab", - "docs/handoff/reference/codex-app-server-schema-0.153.0/CommandExecutionRequestApprovalParams.json": "16a71816c2d66e319c2c4aa83dd636dfdc43c61e72b6d5475e421ce08d8e6558", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCRequest.json": "31bd6f360b2dd8a7ceaf682708105d40d38cb0b9d0821357a04da67028438f73", - "docs/handoff/reference/codex-app-server-schema-0.153.0/codex_app_server_protocol.v2.schemas.json": "d3eace08be5dca386bfd1f1e8df650058b4113f1e10870a284d775d75517576a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCMessage.json": "6da4cc373a7ccd01f5608ad4496eeb4d44b6a9b0d3158e85ed66b59f3c0b5114", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FileChangeRequestApprovalResponse.json": "b95b03ee6be674e25cee2e863cc135a28620e1070addd2f34685aadee27cde08", - "docs/handoff/reference/codex-app-server-schema-0.153.0/DynamicToolCallResponse.json": "abb082cad67f11fcc98ba75f2eff75d7d1723af0c657655329b83ff160451a02", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FileChangeRequestApprovalParams.json": "13848b26814c286ad6425a20d01c1691c86790e1f9e2529399677a8a22fe0d18", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ToolRequestUserInputResponse.json": "5073b245f741fa8ce62ec52e4dd1809b7831f9c4284c279a78abc9b171f8e3f2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ServerRequest.json": "31f580ad468fbd18766eb7adb12744be4e3790e3357b58bd4413c0108c4f65d0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCErrorError.json": "12cc5cd5d9df9246defa609c472375020fe5250f3aeabd7d529076cecd9f541e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ChatgptAuthTokensRefreshResponse.json": "06d6b30436fc962d80b5d7920f8f323de12a052214d9148c5f0dfbaedd5eec6c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ExecCommandApprovalParams.json": "653116614df1aa5011c3cc399cf79bae6b9eb28c1d527df27275abf61ceb1365", - "docs/handoff/reference/codex-app-server-schema-0.153.0/PermissionsRequestApprovalParams.json": "c6d165e1b0c65d5dcf1e099b4c226c7e4dad79fe2b88b03621a1fc6c1d3c86c2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FuzzyFileSearchSessionCompletedNotification.json": "d3af2e301142ac0cb2462d95b052162ff4f25d83f9c1b21e319d5ce9c860d401", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ServerNotification.json": "b3e76cf11842f3e8b3270c05e000212b56eabafb0152fc38e8f920e2ef902991", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCError.json": "d7ea353d4875ae204625da5a00a1ecb5afc69101d5778b9acc253a49f8932992", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FuzzyFileSearchSessionUpdatedNotification.json": "b8626521028e0c68611c57d458f27dbc9bf8be542e804865ae0d14acd78cf2e6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCNotification.json": "c2b43f26880db331393fe09f34bdd76dfeb4dc30d8418d1c26e18db166d6c8c8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/AttestationGenerateResponse.json": "2eb86b2a37bca01a8cb5d0822f28cf13d46dd106c8b1d38e7ba097e436b5ab30", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ApplyPatchApprovalParams.json": "179d91081c3c84d0f79fc544a3d6d423f280c0f9d93512cdd0344c80e09b99a3", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FuzzyFileSearchResponse.json": "4984c3dba591e240407c39531d41c6b499c4816017de70a3371c7d6fa2d0951f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/DynamicToolCallParams.json": "401bba20cfbd95762bef0467d840430c46be53369093ad9f26425ba757e34efc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ToolRequestUserInputParams.json": "fda15b62e7446105b59c8ed85c908abed2a47db70653e57c92c47a2f204fa77a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/McpServerElicitationRequestParams.json": "5cbeb6bc702d2efa076da4c1dfb00672c970c1bad747031eb880b9ab907815c0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v1/InitializeParams.json": "6f0094be9a65242ec779a40794cbd4fdfa32fca1e45084a16adfb50501d33ea2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v1/InitializeResponse.json": "62ad689c2cb6379913c1d72749cfd8de5089d35760214123518eb92eef11acc9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigReadParams.json": "257c54a423b47c1d209ff1076765a1564d82322fd5161670fd489a2874de1bac", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeTranscriptDoneNotification.json": "0000453425e300fd19ac2bc5fba4ebf3fbce48ac9a9b62ceb8bc5db8b6c77fff", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeOutputAudioDeltaNotification.json": "4f73a5c606fda4984da4fc14e4cd98f62c8f9aa75b2db17cff76562c2d176ec0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerRefreshResponse.json": "54a77812db02175dc69053870e582d3b314af6f161f0c76846f3563b0f9487c4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReviewStartParams.json": "c55c510988a34d2e95752aeb95e5d165f7083724a0945d7fccd1c568ad85dbb0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadCompactStartResponse.json": "74674e47f33e37d7d97d144eac1789ef0580a1fc12d45a5675bb97caa08d803a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadStatusChangedNotification.json": "26f3c60c1b73f7fa2d31c74429cdc36f8746c76c33e3d314b3fb61d3661f05f6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnStartResponse.json": "6fc49c3e5d0ce11a3a109ae194619b04d6e3ff98fa29bac683fdb754608958be", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ItemStartedNotification.json": "c4c34f47db6326cd4841bae428f23d08eb285077ffad35be9772b928c65bb912", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareDeleteResponse.json": "ae881a7f898f5287354de5adf6f42094cef9029a9b9376bfd12aa1b0fe0b3106", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SendAddCreditsNudgeEmailParams.json": "91b380293f5685573f8dcdf46c99eba6f8a2adb7a206df9ac987f7fe6cb282a1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsSandboxReadinessResponse.json": "077f60a3d6d1fc226c45059472b29caf675fdc3fdebb29569eaab94bd05ceb00", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadShellCommandParams.json": "dc646457ca36be601c8c3d15c44d14907d9a165ccf2b9635a8e9a878f0ca0727", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/EnvironmentConnectionNotification.json": "007e9a6ccae0003a56476bb7cdc9a097141e964c168e7ae43d213a763c93fb56", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadMetadataUpdateResponse.json": "c1c1095f8ebb5a975c7cdd8b4fb36b81e3e2797e35209b2cf0a4597c6f418961", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalUpdatedNotification.json": "52010479c7efcc6dc749e2d9bf1e27c134453d92a1f0b367193d8125eec1fedc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FeedbackUploadResponse.json": "604390e864944eed2c4268675978dd8082f0884909d73cc79fda59dbe03a2d58", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ListMcpServerStatusResponse.json": "d581e9ba17f6da0d686d0e730cddd51fda091f361a8c119317b2138a3ecdb612", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpResourceReadParams.json": "a8241b056a65473b2b9bf0a14c1a49146de52dbc1cfc276549f52f4db13f3be6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpToolCallProgressNotification.json": "64a32b8282226876e749bc107a81db89d20d5ce5cb86ee6a043b960763214b1d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsInstalledParams.json": "c2027510d5d041c2205349036f9c2bea10b20df309de5330beab9de8a9e50bdb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelProviderCapabilitiesReadParams.json": "9db732188a15476cabb42cf05e495ae0803a1ada993fca7348c21c30a998388d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecTerminateParams.json": "979ece7059c6713d0909ab1690daec27149510f4ea2ec10014600bfb1d631c97", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadForkResponse.json": "c15e43ec275b370df2d831cb5147f7ff399aab2e74d091c07cdb3de57db11f94", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeStartedNotification.json": "483d324381a8ced04c8ab158c825bca2b64c06a4e85b350a086730050fe8f188", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadStartParams.json": "792e2f32e37cece971bd616664ea2053741acbed4e9c92e9d1766427718f2ecd", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareSaveParams.json": "ec937521a40437506ceb2dcfe79cedd03812dd1b8233c651b89c2ddd76e148fe", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadNameUpdatedNotification.json": "06d5e6b0e1eaf03eb88891af58eff14368a76e300a40a9bed71bacce2093b960", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnarchivedNotification.json": "fc00949cdc588b84800a26403647eda0e22d6f28663dc032a90db9c20dfa822d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FeedbackUploadParams.json": "aa958cd74b37fb28cc49ce22345a1efcda9d4cf5fa47e7cce6949e5366ff8b2e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginSkillReadParams.json": "8850a9a45b9cf6e8b016f014c7c65f7062937be896d4fa0eafdaccc816909a56", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/LoginAccountResponse.json": "72e6d77f49bc5809c3af50f183e2a0862dd8f7836816d4796ff69bb13eae0e89", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadCompactStartParams.json": "684b20adf20213a9fcbca31b59108feadcd5a8b693c16431c20d701049df3737", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetAccountTokenUsageResponse.json": "a58e58c852c888e5de925d99a66688d55ebb2fff038e795aadf04f8a8426dff8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerEventStreamNotification.json": "44b04b6cc079ec0b99b4d29af1a69d99037505c19a2a07cff955aa298d7c181b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalSetResponse.json": "b1c61b6068b3b73dd3d97b38f8a269593f8f7added4643bfdb2016315b71ad8e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginReconcileResponse.json": "ba2a8e317c9098beed39d4decc433d9dc29ba0c8164e8d4c229481b9243c5ec8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsGetMetadataResponse.json": "b8355f112eda37d7ff25ad0eda7dae912dba695961855c5cb8444a7f867d66c2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginUninstallParams.json": "4c9e1da7048fc99ef5269d4c3f4c6c3297dac01992c2756340fa210ae8f800cc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetAccountRateLimitsResponse.json": "a28d4d0e9181a498c58d4ae3b6b49aaa6ee7a33c0c9f81c1ad0bff223bfbbe3b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExperimentalFeatureListParams.json": "4db92977e59fea4125710babb4cd2128dc2cebef8292e3619d0844089e7fc1f5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportParams.json": "6b8d0a8fbd5a7ddd455ec0dea6d1b578f56841480c8a5fffbfcd045db79458ee", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsReadFileParams.json": "74b325108195fe955e6ffcb6032e9380d3bfdee8aed7d115f5f1e4b127c5d706", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConsumeAccountRateLimitResetCreditResponse.json": "6d4144c00dcb7f73be6ad24693ff7e539bad56064e4432f7f2bf8d20b3bab724", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecWriteResponse.json": "22887250f84443b2a6f5fc6f9c46cf9e2af072ff631574340018c48771411571", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecutionOutputDeltaNotification.json": "841fa94098ddb63a71acf1bf5f9e3fac1b0491f4ed3fa8ef86f9a6ca1260b539", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ContextCompactedNotification.json": "c9f9a58ef680e09d568cff5f24b45895841e1cf138b650bae64dcf6c85f177af", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigWarningNotification.json": "533e713405b582cce4d772d0b4ebbc75e840f0fe71cedbb17c2c83da285a21d4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareSaveResponse.json": "3eb7c0ed6e6c72126c7bb3d845e73d5de98ad0d4ea8639d2f227fecd16c15411", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsListResponse.json": "5811fda68d6274decfc11744ad72bbe93e601d8514549e94f361ba3131d1adeb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigWriteResponse.json": "1d690287d9e8a0c552f664038d3810dfc3903ec8042eb2c0f772856414f59954", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReviewStartResponse.json": "d6d5c99473b695fff0f58a896bee11ddcddca23304523fba878860324b7f07df", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportCompletedNotification.json": "c54702d40c3a40bcb3e3e835d99860473831725acbd3576fc26d2d4fa3a7617a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginInstallResponse.json": "ae283e1ecb9f454f7614c6a4348fda5a7aba5af99e9ab9177b9a0cd3e1cd7db7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceUpgradeParams.json": "93fc5d331d353b1b89262625c38eed54c6c16b2fb8aa0eac718245c7bdcbe4dc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsSandboxSetupStartResponse.json": "830bf89deac3e73e36b7d9799ceed32ee25e782c30b1d25266374aa020d3bc7e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerToolCallParams.json": "7039a7583a1cbf38e9e0f5fe6398ff3711acd4d654b81b0be562514087fce6ba", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsSandboxSetupCompletedNotification.json": "dc5383ae8fc2a46badbc2dab3ccd0447fed97729c2d5a177e28c4a7e2a60c329", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceAddParams.json": "e6c92ca2a3889641ca2281cca7684569b1187653b25b57f9beabf85519d638a2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadListParams.json": "b227bb78acf9b91060d03c56d3f2072cdd9f1bd08290c11e8869f1a663b16da2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsReadDirectoryParams.json": "c4ca6cdc129d70375fe638c723c1b1bb07a9716101525970cf77bf7560fec657", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionCreateResponse.json": "2b0b0e7a2651354aac35aa5d1a423b9f207ee8d46b2de077df747f4ed4f4c8de", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalGetResponse.json": "f610000963194731c96ce2b45e46722ca700f1b6ccc1fc55a2fd95e526018fd9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsReadResponse.json": "f3b73c2c31f16a2cff013c9682dfea48f26571f94002195c93ce10722a288791", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecTerminateResponse.json": "d46aa76d952bb3ac95d0bd64de609fb8a82efd98d9ee38264fe3673fd184ce5d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsRemoveParams.json": "c453f8ae4b3311f5da88f67f743fdabbcdc323dc3d9eaa40d750ceae147bb630", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GuardianWarningNotification.json": "5325551d2efb47d578665e3deb846f6369e05f98fbc5bfbffc5d9fe0cb0bd167", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceRemoveParams.json": "220c2475a96f32ca095f80f3ecbad427477b4ba37dfad7fb48a0acabdeb1f4eb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReasoningTextDeltaNotification.json": "16cdc13080a7523b44f00fb6fdb660c56a7c4c8cda96b2f9b87b7e72264170fb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportProgressNotification.json": "dae7bfc12026811ba24cc6f32dc01ae9ffaee7d9340d7768f9afce94575c23d2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRollbackParams.json": "27002ceab514bcbab10ad2e0a7b9b842f9ae51bd5e8c084ed14960889b422ebd", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadApproveGuardianDeniedActionParams.json": "082e5278ed4fb1fc23eafbe658e95ec21d81c446bb6daf2b57e25e8cd3aebd5e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsWriteFileParams.json": "2167e05c7f3eb26d475f9c1ce71697ba3b635efd8761a00b22abfd6af175bd2f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecOutputDeltaNotification.json": "28e74454b211ab677a256129e623fc5a2a29ce5394da1c69d3bc5136f7e37c57", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadShellCommandResponse.json": "fd4911613f6a6da2ca13b75342501d4d61f64e00a1083c6d60038369b8caeefe", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadResumeResponse.json": "a553d6b1eb66111ca556e22138017ec54fd07c3257dbd2d5ad97ad7660786345", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnStartedNotification.json": "d4b59fd396cadfc2377f60c9f9f4c9367dca95362baadf7817c74e1b9c910c4d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecResponse.json": "dec52d187121e8dd48124b47a4a8d8428ef3717b98b9200345bb404f73b62c9d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigBatchWriteParams.json": "d11e244258ffaf8a37a0ca4afdbe589d07cb7881b72f06b7f730fddbab9ad613", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadApproveGuardianDeniedActionResponse.json": "628336c7cdabd508d5202695502bb0f9ce42fdde380f5efdd4b033cf215d93e5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalClearParams.json": "896c8b1997edf913382393f7d0f20ced4344714b9f0e8ce1f6564a11403e1675", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FileChangeOutputDeltaNotification.json": "04c3df83d46725ffc048577e7a5aa25de9a6c8ea9eff713bbae2b408672481c5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsCreateDirectoryParams.json": "405fd718ebafe7f47ffd82c86540ab4af663659c737ea2b25acd3e04a1bc94ea", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PermissionProfileListResponse.json": "4a290b5b9d47c2fc671033e22754671161bc563027ba387e861bd935398f0def", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/RawResponseCompletedNotification.json": "aba140e87952c900f96e0308a8849d3e313d985de1f1aa2b77f193884a76357c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalClearedNotification.json": "ad6c2cf53970e45cae55d36dbddd84ecc7b34837846616493efa7b132a35a051", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceRemoveResponse.json": "98deb2f721d57ed727f7cc7b4f478db5f604b6b6d40e6261928dfd5f586405e3", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecWriteParams.json": "3e8e849ce321c85987bbe96ce1f913df0047696a5207bc97dfa1409b0142eda8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AgentMessageDeltaNotification.json": "996e6c0ea65e57bed5a00f410b94381fe5ebf804333e5d00c2b6e6d47e5c55f6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsUnwatchParams.json": "3134d42c231f40769a4d1ac4adcf051be5205e7a1b70bb32c4a8655fea730175", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsExtraRootsSetParams.json": "bb60389a0c7d4b73f625b9a40965e5e67b56b6503989f2d732cae12e9ca9698a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeItemStartedNotification.json": "ef1a68a635ce680b321e276fd9144ef614b37bab16942368bdc16bb8ee217f46", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/DeprecationNoticeNotification.json": "29fdb44fc0a09bfdc5c4924ff34e33679acc9201730fa4fe9be7ed1978af0b72", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeSdpNotification.json": "1e276f48d346e6cace65551f84ef9b0bc8daba2a3ce93499f3a902551de239fc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceUpgradeResponse.json": "2402379cb0ed1168a7dc327c412fd61bafdea2ad13ea7a3b3ebaee3b43c45963", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceAddResponse.json": "a37633e9ecc2fdd87ea582861bcdcbf7963a8fab6db9fbc1bc8eac7d2f7f9a8b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CancelLoginAccountParams.json": "a4570a7542b82b918f69199f1e214ef747151c678473a5af58c58b088fdf58b6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelVerificationNotification.json": "4f27a99d0c8664c29abb4d65384ab16853bbc29b61de5e749111cefdc6994655", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadArchiveParams.json": "dc2c0b133b814a5d9d543cc37afdb3f4f22feca35b7cea4272834b20a1e47705", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FileChangePatchUpdatedNotification.json": "cfb69d18658610a0510f213e09c6847f70517410ed91cf99cc4713c15a795213", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionMoveParams.json": "48bc921055838df25c5595c96be7bd25beef3accb8bd1d28026fcaa7d81487b1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ItemGuardianApprovalReviewCompletedNotification.json": "bcf94662d3589c36ac3a13c0d919fa33c2b85f452d5098a8093360884d768a02", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnPlanUpdatedNotification.json": "2522f743be0a1e9666dec5ad4f18d8ecba3c4f16e66d510b1491d4117d1dd0ba", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TerminalInteractionNotification.json": "5383b3d9681d3c071c9845fd4f043afd60fbe1bcc3650939356cb03848a7d627", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadQueueChangedNotification.json": "0a960da43fb14f69dae2550ac4f8517760464eedbf95a9977718548739fdcf21", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/NullableGetAccountTokenUsageParams.json": "a992c6ea0fe02b0e9f46b18afb51b8ee2635e7f0c7d546f71e7f95e2a98bebba", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PlanDeltaNotification.json": "a5cf42ccfc6cf905ede0fa9041e9c951ea7870aba4e3a7c7f68d85f01416d3af", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadArchivedNotification.json": "54ca94956719ade8682c766f31419ee9953dee8f4587b5b30efd0927de6ca26e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalGetParams.json": "1a5de89b3c5c49528af404a65411a73ef05dc7c9c49c3f00c90d9926dfe34137", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginReadParams.json": "f15952a2828c90501cc32f347c1e1691ea65cd2d97f503ab40e7be08757de74d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadTokenUsageUpdatedNotification.json": "aba4f6c7e4a19b2b842c08ee793b57000c07dafd57b922ad0d8e7c76609108c2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsCopyParams.json": "bc1135070827681e4d9a14f79b5b06a4f5652e538ae6a89642d27dbc8b2a2af1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnsubscribeResponse.json": "9cad5e71a589c3c20e0980ce34a894a29e2898a075b10b1493bc87f32500081a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRevertParams.json": "3a5e85a67906c8ea3ad9f5065559d263d968a28a957739e7a1d9e4e1981e4eb8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsWatchParams.json": "10bd9c01b3819db1ed8e2487a277f20b35e3a9f74ae77214654f1a529fc1444d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadProjectUpdatedNotification.json": "ad31b029957a9259f26352ce879219cbe25f0314ae883d02ab811a0c6427a1e5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetAccountParams.json": "30b545275f60975b55bd6fbaafd70f15505801d14168ee82d3931b6e93c78aab", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsWatchResponse.json": "d32e77e7d6f619c5f4183c335ecddd3c4ffb95a51761198985c47838ae891a6c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExperimentalFeatureEnablementSetParams.json": "00aaf2ef719cc336e4d20eb26dd6158be1eb26161fb7647372804b80a02e3131", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/HooksListResponse.json": "891dd10ef7f78e59631fce05fff2becddb8004b3c0338dbbbd6b4f17ef1fa64f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadStartedNotification.json": "d66a9b4563471c5fe99de18cb2bd3c83e7b6aac8deb0b0579406b3b7c74d7b35", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadItemsListParams.json": "ff56040c327ecdd30ef02affac9bc71fab64031e8980f2b4fea9fd8a888160b4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadClosedNotification.json": "d504cceb70e3397ad684924b08d3bff328a927be02ef4e3d482a18e27bab73de", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeItemAddedNotification.json": "48aabfcbfd2361b5830a93257bc9eb31a6933f6e390694e188bfb287acbad9b4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/LogoutAccountResponse.json": "ac14ddfca2ec6092b0039be8720262d5a9930484d23e62544d2ef0b7e1db7926", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareCheckoutParams.json": "25fd868fff9500ff244150a4ecd36322c0d31b339a4709649594b79aa1349185", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportResponse.json": "0ad2fc7dff7b1bdc471cc365985f559490f253ea127263417f0a0a1edcb33cef", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnarchiveParams.json": "a1d5d847b61ea16ab09d5b9d1c1461134a7829292aae02a7e11b0a69b00c76ca", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalClearResponse.json": "2652c2d0072be8ccb71c8dcaaa054aa74f974e68156a73451baf72c8597669c2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsListParams.json": "e880d0c24811118a2d3c2c7f0569a14aae5b12a31b0efe56809ccca8bbd85802", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareListParams.json": "0d71280d2a655ffc26375044ec1693203848614f99fdb4563e0cb5a4ee40122b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/HookStartedNotification.json": "913ca61da2ab299d5f3318f6ea4d842d22708fc9308a9b10cdfad5e757098f2f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareUpdateTargetsParams.json": "0ecf16212022bca115211cbf13a1302f8995d7be5664ca268b926b7d00add7b0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelProviderCapabilitiesReadResponse.json": "5c42590f728289daaa441b947617398a0ca3aa17479013b3c564a5d314a3c9cf", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadTurnsListParams.json": "2a8b93d7d4437cc25e16a1dde16d8db3c338d39e16c5eece2a56e943a21577d7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsConfigWriteParams.json": "6e7dea83b649bfd118828b60446eb2eab2f5ce3cafe287c933b830c9cae9b170", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ProjectChangedNotification.json": "b32151fcb7ef78fc5c969db44255756e5e6e1754398a5b6b09244dcff0c1eab9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsListParams.json": "1d245374e64c5acc9739dfc68a4fe5114c6c9147af04c480886f1846d2ca6239", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsUnwatchResponse.json": "9c59c3473df1f1873ee0d87ed33cecec0766b24c8357ee7dc8b29a57ca21e104", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadLoadedListParams.json": "42c2d124ab2b2998d84f0126daae2d32b0bf9c5a7ea7266e3a0814e5e37cf00d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnStartParams.json": "a3835e8c1e942e4b358e1a670939b89918b16c4d13105a579899892b7ade6dea", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AccountLoginCompletedNotification.json": "d81e8821fd5a4a9ad118dfc3506ea156d32dcb18da388b336501bbc6a5ccb4a6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/RemoteControlStatusChangedNotification.json": "56aa1d58294238557cd8b16199909c2c157a7542b9259ef2deddf40fe4c02c91", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AccountRateLimitsUpdatedNotification.json": "c50daa6abb4723ca1edffdae9d0d6ca452770669ed045fae48d0fe9b20c6ea81", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadInjectItemsResponse.json": "93d909e5b49b44da02072d340f8ad0ecd417d448ccf27fe50be7e369c7864159", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadItemsListResponse.json": "886369490fec07067597460301b3d5c1dc9aedc41ea42522cae397d8babe6156", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsRemoveResponse.json": "6371aba2cae2f92be487be05c1ce531ca4139da5004b740a0010ccfdba548100", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadArchiveResponse.json": "2e021dabd0930ae3e2beb68cd0ddbafc40fc20cfbf8dbcb5e2f9c0493d06a08c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelListParams.json": "de29a536c00a5b8f46f34dba417dabd93365305571a8ed200e33bea85db68b5a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionListParams.json": "6aea71b3fba46351fcaf648eab0da564080ba424599a012648abd9fd44464cf8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionUpdateResponse.json": "4588cbf0374204c17f02f15eecb5390cd5346bc551675e07e541bbfd28d020bf", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsGetMetadataParams.json": "382bbf3a8b5c7e8cb16a1a29f853ce49c2904e563325e33a9e41dcbf632dab5e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CancelLoginAccountResponse.json": "06bc17624df01600fdc399d3c0f222f875c010d2d952c1d1191cb84de9b59014", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ItemGuardianApprovalReviewStartedNotification.json": "baf4e17938f94e2cf4d86d31f02f66d69d394b00594e3e04ed03dfe901014543", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ListMcpServerStatusParams.json": "33b1933595d844c61f76bdcfbc874c8456b65079877fed6e86e2710ea3d49f1b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionCreateParams.json": "e3bf941ceab7a4dd39ce1b4063168621d60162aa97f7171cef59819c999c501e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnInterruptResponse.json": "531de6be06fe979b5963f249bab82498a175e614bf65ac12fb2e849dfe60bcf1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsChangedNotification.json": "84f7f1d327c5c774899992f32c98e9e95ee3e010a410d233ec0c33221e4ccbfb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadTurnsListResponse.json": "45bffd91efc358859a1a54b8165c0a8b1c21ebc2a312da9f25d05ff27af798ee", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ProcessExitedNotification.json": "06cb5f39c67f84c227063d7f40e5e78fb62afdb76778c3d603687181896e8440", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadDeleteParams.json": "0d5425d94af95e3dd20971cee052b2cb8c7d0d23195db1d17fde4e59cfbdec4a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecResizeResponse.json": "01da20d70957fa5b43cf41365c5fee4fb3a69927947a45f92866f9bcf0895d0f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetAccountResponse.json": "08a7dd8c570c905b0bb6998d43ed133e72e2445f08125f86dfc96887e288701a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadListResponse.json": "351be50beed03976ddd63e8027e9ddeecb240d7611856b2dc19125c3f8eba400", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalSetParams.json": "93162f095e9b3b5a051ceb24318b8922c663edefc1f8c67bd378085c0d6c01d2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WarningNotification.json": "f83c400591b923400ca0beaaaab1341c712d5ac0dee4ce6868a8e590f46490f9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/HookCompletedNotification.json": "1f146d70303cea6e59752191179e36a273650d63a74d4f9338f9a399da6597d2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerToolCallResponse.json": "04a59b2064922c37b0c49bdb2470b8fff08d943e56dba4f7280a6b34bfa52c68", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadDeleteResponse.json": "333c0c5df96d78d1bcbdb19b57ddfa941de9a02bdae1c29d13c5311c2cdf6527", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsReadDirectoryResponse.json": "2cfb28c3c1ab1487f6b778f4d76871e3a9f590597bdf0da502cc41b202269dbc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginListParams.json": "bc6b499161306df7082c5a8cc51fd793cd6d28dda93555b12ae299445132270a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelListResponse.json": "c7b58b332f6cf18fd64235409a6daf27bb9e6c09d12dcd0daa2f3dc628b55f6f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ProcessOutputDeltaNotification.json": "c31714aa83297b83fd69dee98db877be7d4a3f98551dbeb517750efba0ecd79d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelReroutedNotification.json": "37cd3c1b3a3560b85b01d4061a07d830fc9ed93b80e4663f975f9197cdb501ef", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ErrorNotification.json": "d77732536ef8864799e4fbb5bf6965a9f1970a6195e523f144252a82287c08e7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppListUpdatedNotification.json": "2c67a3bc676309afdd0d6952ad454c2a040a3d4c09d38c8f63ca7fb632034cce", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SendAddCreditsNudgeEmailResponse.json": "389978f741476c7cbcaec716b11a5bfb7f17581a28013e18cbf7a73ec8a45ae6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareDeleteParams.json": "d422a3fdecf91612bdf839d4fea6f1cddccb794869dc03ad3b8998bcb8e27fff", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsSandboxSetupStartParams.json": "8610d077fff4fc5811f2e33dea82617a15ffb82f08e55e1540aef877133f5b4f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionDeleteParams.json": "93cc3d12bd5580966b59bbab8f2ccddd31b3b4bce56f76d49cfe41f1916b5deb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionMoveResponse.json": "243299d7eebd4fb264d4e75efeb5058982681202371c2b83ff1a63b3369ddbb6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsChangedNotification.json": "197693fcb852a85fedfbcf1cd00c9a3cc74dddfa09bdf6b11fdafebbcd12ea2d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRollbackResponse.json": "c5e1d8f6845e0840068cc46422fcc986a7648487219a901f8a0f51ee9fbb6ca7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsConfigWriteResponse.json": "628bc112ca64f5475eb02a0eda718e82d670c40299444494e02a8dc278a772c7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeItemCompletedNotification.json": "b2a5e38840b8afc2111620c332801603e832b91ad4c95dd1f13c926923b760ef", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerStatusUpdatedNotification.json": "d6f4cb120b2363d321247592f03b9afbbf2762ad6d8af31b88c1b1bf39c4c7aa", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsCopyResponse.json": "c88392d6c3ff394441231cdf5614794ba0c2b4ba683811f6033a01fe65528a59", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportHistoriesReadResponse.json": "1c09641e957333a2f602a350532acd99cf538a73ea45f39a2294289907a0bd96", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportHistoryRecordResponse.json": "a252a2c2a03b4460bf3635d517c0735fa487a2f8a97de1aa0637f930419ae656", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsReadParams.json": "61e6a9d35515f3164a7f7e7a5b0c5ac92817c5a3b5d7fb27e9a704fe2935ddf7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConsumeAccountRateLimitResetCreditParams.json": "ce36a9f59ce3b8138fccdca042538f723e93d0e34d08441e6846d3153ee0b291", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginUninstallResponse.json": "f6a0c9c8dfd9e3fc4a535ecfa606f12922c09e469a37d6b1c6e189f45cacb89e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeErrorNotification.json": "aeba7e4b477b4825b41990a4da69b0f3cb3a00f44cf9e2e42e275b944b7cb040", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginReconcileParams.json": "91dfe0967326b876e50ddf8d896c6c516440c43a36b08efd4746c0bd770882dc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionDeleteResponse.json": "9bbee5cca1fca02e4a65c2481dc3b24f090bca7afb786923ee481017b133b091", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigRequirementsReadResponse.json": "7f3cd9856eeb581985a4dcd1acd90be8efa30a7929a96e4e74b6b9a3d878118f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSettingsUpdatedNotification.json": "e601ede3c6947f6df0aea6b1c091c01e38ef7909df939f5ef11c8f836fc8a2ed", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginInstalledResponse.json": "8afc8a16fa5c21d67f66d1855bf29890bad10a6229bafc960b3503281fc878e2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnDiffUpdatedNotification.json": "59a02535094b591b926cdc11a8e5f5babf73b442323a02cace1661c62f0c2918", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadInjectItemsParams.json": "8d7e754402a2bb71bd817882076d2f8ac4cd75d4573306db082a83b841aa3532", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeTranscriptDeltaNotification.json": "1a6add677534de891026eb56aac815b2585fbd4a6d6475f679a722c52b778703", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AuthRecoveryNotification.json": "c19238d43cf8bf610ea346afefc390b9ffa4f01e98ec6b42af0addf29d6cb7d5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigDetectResponse.json": "36c4173d5f30ebd04be3d40389c904bc4ecadfbb8e5d1dd46b9b589254f7e1d9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnModerationMetadataNotification.json": "90fe9ade83c46fd42af9d023737a9990595dac71e059158744950f538e802876", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRevertResponse.json": "de7206155e188cea30dfd81fb3295d6e2554a7cc7b58202c4b0a49e9623affe1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsExtraRootsSetResponse.json": "b659ec17a196eaa3a23273a3e2d5596460ea329bc3ade249971576bc723d9e96", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadReadParams.json": "dfe040c6ac71d30795b8be3f3ff232e66f362a37f883b491e5d1ea367f470db4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnarchiveResponse.json": "1df1bd13818b3c22a2fb4a64c55b393778e0eaa65547744333d8df9bb40a29cd", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AccountUpdatedNotification.json": "9bf450d9d9ea23a2bac9c9cb0a68c2de8f89a97bdeb4485c91762bb4d43295b8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeItemTranscriptDeltaNotification.json": "42f2456726367b90a2626a32f3f88495de87032243beecd9bfbad28734f4b62d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionUpdateParams.json": "6cc7b7e486026a59d6fcc0701407d9293c0fe8b96e41894630c3a39fee967980", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/StrictReviewRequiredNotification.json": "16b50621c0982d84bd83b6e85586c1038ff309337e4253219895be7c118df470", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigReadResponse.json": "bd72c94e2c7d49ead6a20bcf54afedc8db11044bf8cadb387e42135dd5d1e342", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnSteerParams.json": "4a52eb76e7a717bb388484ccd7538737fca0df35481fc30a21e259f1bfe96e37", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadForkParams.json": "60540b97d453ddbc5e12bfaa007a3718f31847d18dec0da59a5e4b89be4717ad", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginSkillReadResponse.json": "dedaf95c4a8f70c022f5cac6fe3882603ed2b27d5efef710b52ae370869956cc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsWriteFileResponse.json": "0e4153ee7baa5c1203c2c573504baaa40e1dd8738d78e4c1e3a179fb49df6b16", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerOauthLoginCompletedNotification.json": "d3b7ca4f2626a623b4b5a97eeedc711cc27d41b3ee56fed8b0304857c5c9b13c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/HooksListParams.json": "07638c3a8a3690cf368fa92c7ff697fdd0132865e8c59d53f6e5789e5a260053", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadLoadedListResponse.json": "1ea02c4710083e552b2a3a89b931b9049d5bf05b7db46278b8352cf9fd80cd52", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionListResponse.json": "dc3b5e5501a56ea2a1a83cb97c5221b355629f8c9468793d94e22673424140bc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareCheckoutResponse.json": "d6271afa9bba5531574ba255d22b03f70fe10b8ef159185355625d92b6f9fac6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnsubscribeParams.json": "77c67e0dc0a729af2d4612f30ed63f1297160232e96cd32b7cb9cc3e7fff0233", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecParams.json": "e4f20080b92c6199cf132941840c4bd0fb9a90e3fec197ceb0e1ce9084346e18", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsListResponse.json": "230f125d6c36ec1b1514018a0bb6d0627f7308ea82f1ef04cad85490de482bae", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSetNameResponse.json": "f8763716433feea94f7c1ebd59b6cea4c261432e83240c13a8d49ba8185aa567", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerOauthLoginParams.json": "83446fb61e04a361691f84fe236a51fff2ee4fb12a8f58e2e828a32cf6f6cc75", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/LoginAccountParams.json": "48fb9bea54d7e0890052653ac06737efb3200ba2261515b2c4014027f36bea3d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareUpdateTargetsResponse.json": "caf42dec67940f9e686ac7b4e77484921d62fee400b3af73fc85e6f46eaa03f4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnInterruptParams.json": "6dff382dae73d1dbc58406ed045605f647e7a49660e2540fbd2c6c24d60c5f2b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelSafetyBufferingUpdatedNotification.json": "4cf853e3a2f968fdfde75206fd497d3d530b26769026bee343c3ef09ce438cfd", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsWorldWritableWarningNotification.json": "bfa34d4890c8121a04412b8d53314a13adf98289fdd948857fd97b808dcbe79e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigDetectParams.json": "db6c6ea654efb4095dc745a1e65bee76d0d063b03f2bc3202b9077a1569211f8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsReadFileResponse.json": "fd67dd725b5bf5c7f27e78cc3d66fe24314f08913fc00ace9dbb663bf2f487e1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ItemCompletedNotification.json": "69aba3fe5f72f38bf5c541e7e2c09de40778abe65ff969d9fc73372037812091", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetWorkspaceMessagesResponse.json": "3ebd00f0acca088e5ee0309ec09b9a571e7f2eea5b63a32cda67be01c6886d67", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PermissionProfileListParams.json": "576d405f6c94cbde982a9f65c9301717043683b83ca35d564247907feb16b1b4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsInstalledResponse.json": "d8ef8dd14dcba8aaaaaf2b0b80db90d66edf8f4ff422589b844ae2b0edcb46d4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExperimentalFeatureEnablementSetResponse.json": "5ecd92ee95380d7cadc4c109091530aa71245e41b9f1b530a5e9d5c5c9eda95b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadMetadataUpdateParams.json": "190da07d8c7c89c44b1e44b4e57fb5d803f356953534498a7a7f39fe29a8a6a4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnSteerResponse.json": "866ba9a77c12b5d570c837d58f73bf40b24e50fa93404bdf792dd984d313b1aa", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExperimentalFeatureListResponse.json": "4084a25f32333b3f58eb5e9803a5983739b57f945c4e7e4002e85851622ce597", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadStartResponse.json": "656f8fd0fe91f533126cbfdb9369cfab550927a229e48dd46460f6f015d2b186", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginInstallParams.json": "d6a8ff6356aed22c916cfd5a791ecce34ee2ac509750f690e7d0ef483fec7472", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReasoningSummaryPartAddedNotification.json": "c8dfcb82d773d0f5d297ae1a47749e2b719013e82030a3af5d4550f9feb8eed6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareListResponse.json": "d349a496947956fd5f4d125b8348faa2ef0c91daf7f3cd74ae0616f55c8e328b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadResumeParams.json": "8ac68582a81d60940b10b330be8546123f56bfe246b56f8a4f121da00f347cf2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsCreateDirectoryResponse.json": "a658fbd34d5e3d6300bcb7015f10fc1764aa8aca3088abc79af9caa2e848e527", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginInstalledParams.json": "0b56f55a817b6e82ea104496281cd43714ee96800f9b984412a3a858f444f68c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigValueWriteParams.json": "b9032e35bf64d4628bfc72e22b58b71bbcf754aeb720a86eacb091e0137547c9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerOauthLoginResponse.json": "95d7d00622866ac49dbe459164b8be665b2c9ad7b26772eadfc610a0537aa6d4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecResizeParams.json": "b748fee19979d2c32ac17a460ccfdc761e125cc2939bc551945e1e2c2af34197", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadReadResponse.json": "a76583d07f6096fee33045da2dc9caed84d858f8f2d39b37bb38528dbaf32511", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnCompletedNotification.json": "78af2a37391e8e669a4020cb58593e4d3e378756ced79d5fec72374fa69fb94b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ServerRequestResolvedNotification.json": "4f03d586a5af04edd912cad08cc97eceb658e7e06744565e6d41a93e04a55966", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/RawResponseItemCompletedNotification.json": "cbcffe7b3f2dffb607f7e20ac1f1196509ff42e7d0cd9e6961d7c19b25506899", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadDeletedNotification.json": "6f8d6fa96700ec6fff4b8c2bddf6768539b7ec7ba5dc05483aba53f5183386f9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportHistoryRecordParams.json": "6a3e8071854771b0f34c6623fb7dcfbeaa7518a90779cc4a40c97fe92ac6f3ed", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginReadResponse.json": "1651d8136fbbbb00878c4c1f8adbf279d050bf25b4454e6db4fa46f192f953d2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginListResponse.json": "a405d2514d6236df75130c87c749e0e070b946a889f143a0448bbcd27d1d8501", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpResourceReadResponse.json": "a48af749203ed3307414750d5070facb5ae6ef8b00253f1cfd9a8124bdfcfe41", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReasoningSummaryTextDeltaNotification.json": "895bdca00b4674634c25a5c4d1f82e55e65767d81ddcac4bb7b00aa3d438e62f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRevertedNotification.json": "570995a91a4436d403bafbf9a4c34ead666b137ecd5406803e14826a6d84cf22", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSetNameParams.json": "8e334c816bbaeb80f807aca61bf659246f3f60c245c21b5cb7e3ca4ee3ce4820", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeClosedNotification.json": "5290a73f8d4652b59d2f82d89c7bd289003fe2981fb0c628a61e801fa2123364", - "assets/app-icon/windowshade-app-icon.png": "5f6fb9a4471230c9982865685ffadfb49608c4e0f026ff767e3407122804f5a1", - "assets/app-icon/WindowShade.icns": "c391bb38afb6d34d6ab250e67fb879f42c4d56af5919ab6b2b021947a904af78", - "prototype/Support/WS2PureSRP.swift": "309f90e249c72d9dce5ae4f1e4cf78c2a8b81a5c0517435cb2f7ca6f502fdf27", - "prototype/Core/UsageReading.swift": "a0f3a71e09aa326d6d512988d96f152a65f273b0b839e52447528dcaebfca518", - "prototype/Core/WS2BluetoothPresenceModel.swift": "341cc1ee6cea8ca3df2d74cc28b156ce4a5e742ac8b325fa420e84ff3f813806" -} \ No newline at end of file diff --git a/tests/archive/part9/manifest.json b/tests/archive/part9/manifest.json deleted file mode 100644 index 3aab4729..00000000 --- a/tests/archive/part9/manifest.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "part": 9, - "base": "WindowShade2-round2-handoff-v8/candidate-repo", - "base_file_count": 1164, - "result_file_count": 1168, - "replaced": 11, - "added": 4, - "changes": [ - { - "path": "docs/handoff/round2-part9/INTEGRATION.md", - "operation": "add", - "base_sha256": null, - "sha256": "31097cbe2651ed47c377cf4d4918d61ca3d18b25b9da693da8e9710b37753f29" - }, - { - "path": "docs/handoff/round2-part9/privacy-signals.json", - "operation": "add", - "base_sha256": null, - "sha256": "fb4881b9604d88b04452a791eb3d780e5a34294125816678fc20df8022300b18" - }, - { - "path": "prototype/App/FoldCompletion.swift", - "operation": "replace", - "base_sha256": "1147a93b8ab37828e0dd4be225e879ea3a4636283aaa5d7202369b926ec850f5", - "sha256": "18559db591375242d83406a083b9a18e4bf5dc69de7b8c32c8f3494c31054982" - }, - { - "path": "prototype/App/FoldTransaction.swift", - "operation": "replace", - "base_sha256": "482e8b46ad1aec8d169653d75d0c3976379104191c2e53bbe3ecab05bb98e06c", - "sha256": "f353846ee708e80dc81e78636f24dd3976d5ec77f1c0f9db0e38f2f675519c3b" - }, - { - "path": "prototype/App/Reconcile.swift", - "operation": "replace", - "base_sha256": "a24b56d18ee50914538f3581f59fd0c496e29babe7a424ed6613657f785bb2b1", - "sha256": "290d8fb4dcb1b14e79620279ff9e30b42e81fbaa86c68678808a5073bd333f04" - }, - { - "path": "prototype/App/ShadeController.swift", - "operation": "replace", - "base_sha256": "f22cc7af4a270af54422820beea2807235198ba823b8bb42adf098b52f85a198", - "sha256": "ffe5d474a28aa43ac12baf5e4a85b1d795494be0df928980fe6b4e69d8bb813f" - }, - { - "path": "prototype/App/WS2FoldCallbackGuard.swift", - "operation": "add", - "base_sha256": null, - "sha256": "9f8d8cc688955c493ac17ebde396f59f70892e32c0b78250c78589c007fc63db" - }, - { - "path": "prototype/App/WS2FoldEvidenceAdapter.swift", - "operation": "replace", - "base_sha256": "cb7f57c8020aeda4aca842a4a48a58b5e4a70acacc02cff63a2682d426a0c264", - "sha256": "56606957ca290794e0450d6199aa4e3d85fc954e4c472a9e6158bb06cdb7013d" - }, - { - "path": "prototype/Core/FoldVerifier.swift", - "operation": "replace", - "base_sha256": "90a4d023619d31706672da91a52ab721023662591b5ab3f72cda05e32fabc086", - "sha256": "8391bca46e6af68e0ae1942edd2e9bd106f5ea83e237ffa9ba0b58e5b878c597" - }, - { - "path": "prototype/Core/WS2FoldCallbackStamp.swift", - "operation": "add", - "base_sha256": null, - "sha256": "50e53418e04733bbe0421c49533bd7e87943f25707f7404bedf188a4ed4543de" - }, - { - "path": "prototype/Effects/EffectFrameAwaiter.swift", - "operation": "replace", - "base_sha256": "634182d48f845ebec9887544b2d1aea0fdeb53e614af3c66e1070b4907f1f68f", - "sha256": "9c7a967621855e6add53c5ee4cd405249142d018eea497e5301ebae72e0e42c8" - }, - { - "path": "prototype/Window/AXHelpers.swift", - "operation": "replace", - "base_sha256": "ccf1a2c35600cf6471db354ee1fbb3f417a60907be1446f6ee9e393a2b5b8ccf", - "sha256": "b679b85d9e4e31f1a2f4594a048fba885c89b46bd25395e3fab768c880ab71b6" - }, - { - "path": "prototype/WindowBrowser/WindowBrowserAppDelegate.swift", - "operation": "replace", - "base_sha256": "7578e4ad88f967a0c4fc6b18dabf97100fffd86d1bb7437c254131f55147bf8f", - "sha256": "47a44ee7dd3717a71545ca192da753f650a75ca9a538a8ceeb0fd895583937c8" - }, - { - "path": "prototype/WindowShade.swift", - "operation": "replace", - "base_sha256": "0c489c4b721315ef147f7b3898aa388377eac8b766ada421fda395716f16828a", - "sha256": "2c95d5d27a9f4649461e330e590da4bf0afdacee1fb0a2bfdb4897b32f570aed" - }, - { - "path": "tests/duo-integration-check.py", - "operation": "replace", - "base_sha256": "1614f812d80321117c4ecb43c3e649c4f0033092653ffbbd8026c45a0b127916", - "sha256": "77baca7e632b420b099a9af21b6462d826b6f9f2eb97c9c5d90f5906e002bb6d" - } - ], - "mac_sdk_build": "NOT RUN", - "runtime_hardware": "NOT RUN", - "release_authorized": false -} diff --git a/tests/archive/part9/sources/SOURCES.md b/tests/archive/part9/sources/SOURCES.md deleted file mode 100644 index 1159b44d..00000000 --- a/tests/archive/part9/sources/SOURCES.md +++ /dev/null @@ -1,27 +0,0 @@ -# 来源与适用范围 - -核对日期:2026-10-03。代码事实以本包 base-sources、overlay、manifest 和实际测试日志为准,不以公开仓库 HEAD 覆盖上传快照。没有将别的项目源码拷入新增 Swift。以下外部资料只支持明确列出的语言与运行循环概念,不能证明本产品完成。 - -## S01 - -Swift 官方 SE-0420,Inheritance of actor isolation。 -https://github.com/swiftlang/swift-evolution/blob/main/proposals/0420-inheritance-of-actor-isolation.md - -本轮读到完整提案正文;其标明 Swift 6.0 implemented。使用范围为可选 isolated 参数和 #isolation 继承调用者隔离。这帮助解释本次 helper 的修复选择;具体成功依据仍是本地 Swift 6.2.1 的真实编译与测试。没有将其视为 ScreenCaptureKit 导入类型已经可用的证据。页面 main 不是本产品固定依赖。 - -## S02 - -Apple 官方归档 Threading Programming Guide,Run Loops。 -https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/RunLoopManagement.html - -本轮读到正文。使用范围为运行循环可能嵌套、timer 投递不保证实时、运行循环对象使用有线程边界。它是归档概念资料,不是当前 macOS AX observer 或私有 WindowServer 的完整协议。 - -## SDK 正文可用性限制 - -本轮尝试官方 AXObserverCallback、AXUIElementCopyAttributeValue 等符号页面时,部分只返回 JavaScript 页面壳。未把这些壳当作已经读到函数的完整线程、所有权或错误契约。实际 SDK 头文件与类型检查、Mac observer 安装/撤销行为仍在验收单中。候选能 frontend parse 不等于 SDK 签名正确。 - -## 产品内事实 - -原 v8 `REMAINING.md` 明确保留旧宽松 Bool 消费者、完整 T3 恢复、Mac 编译等缺口。本份对照这些实际路径逐一修改;没有因未再涉及其他目标就删除它们。`sources/code-map.json` 给出实际路径、源码 SHA256 和当前符号行号;版本变化后先核对 hash,不盲贴行号。 - -外部资料的说明均为短摘要,本包不附整篇提案或指南。未下载或分发字体、SDK、商业媒体或任何用户身份凭据。 diff --git a/tests/archive/part9/sources/base-files.json b/tests/archive/part9/sources/base-files.json deleted file mode 100644 index c1410a77..00000000 --- a/tests/archive/part9/sources/base-files.json +++ /dev/null @@ -1,1166 +0,0 @@ -{ - ".gitignore": "979af68a27b2848e27b69bc2f4b2b45a1b7a27e0b19c2f20e0c1572ae779f9bf", - "AGENTS.md": "5ec0f273f4e4f46c7fc2281fd436c58b79aed02183c35e3105bd664f84854f26", - "DEVELOPMENT.md": "7900a744b56df4f4f91bf34e5bcc8ef2a9bda5dbb6a62cb7a0481f5865be9c41", - "LICENSE": "b1bd5e5e226fed0591e56f8a12c3e95163df2cdc5ea1a41df7bcdc23e52dd3d3", - "README.md": "71d62059ec243ecc89d3ee82d76f3dd217a94a1a66acfc314e092453726c3bbf", - "README_CN.md": "b5902a934d10180cec5e05a1f6b3c328d8a4ee41bcd45db811f98aa53ee2bb9a", - "WS2-STAGING.json": "81e1ce0044437dff2b349dd063fca4cb4e29de1a3b870a5189dc3c0b5fb05e4f", - "WindowShade.md": "3d4df4752cbd52234d255869f69366711e4bf3afb9020482a82a6613e6c5a266", - "assets/app-icon/WindowShade.icns": "c391bb38afb6d34d6ab250e67fb879f42c4d56af5919ab6b2b021947a904af78", - "assets/app-icon/windowshade-app-icon.png": "5f6fb9a4471230c9982865685ffadfb49608c4e0f026ff767e3407122804f5a1", - "assets/readme-desk-dark.png": "99c2459a44d3c6ce120c79abe2e1de3cfebfd942d23df9dfb422779f3787dc71", - "assets/readme-desk-en-dark.png": "6afa1709eda74780793286bad28553ae7ac604b12c4b9f15ec71f25da08533f6", - "assets/readme-desk-en.png": "9090f27082cb2ff24c07a07b82e2f408fc5012cd57e41e76140e0bc37003f80c", - "assets/readme-desk.png": "7d5b75a5f681bb721dca728a5b31b7f6b8f0842a38c8adaf2684a4b6196d6a34", - "assets/windowshade-demo.gif": "328f44f4da1265a7dfe0e5ca294047a4f9a25a4e2da1d9c631e449335262925d", - "assets/windowshade-hero.png": "577ec0e66653bb826cc638bf5a82b30afa82c196ed5985fc2e355165f4ce4f17", - "assets/windowshade-lid-en.gif": "7bb2a6219a9937b9f1d7ff31f6452c598816bd15eb88931c1cb4318a1ec67bc0", - "assets/windowshade-lid.gif": "2998c24b9e05852d3373810f20112a17c3ad7b72c074230901c92502fd07ccb0", - "assets/windowshade-menubar.svg": "154365b3f54725ec11e913a6bd772a468dd24d7c968f32a1007ab0bb2fd9f8d5", - "assets/windowshade-settings-dark.png": "ebc62f0aebe62073f3c130dfb546aa99df6be6664b4f7b470d0b015127dd98f8", - "assets/windowshade-settings.png": "d61516dc78124b9531b8febc2ba3c8b2faafe3b1a8f1f501a8a6ee6903855d28", - "docs/RELEASE-v1.0.10.md": "2ad3ba06630f9c018bbe28cf2170b256e81b456c78d25e50908a95759bf4e315", - "docs/agents-in-notch.md": "98664f72fa7279b8ecac4674574fa4063a4457f5a286b82cf4faf7ddf44b3b78", - "docs/apple-accessory-interoperability.md": "c800abbb2b4bb1888194d4bee5cc4a9ba88f9770b29819b255b25ea910db4840", - "docs/archive/2026-09-13/reviews/app-experience-priorities-2026-09-13.md": "f8c88707b398d0e2bb16816238fe546396218ceb7e57cbe6b05d38bf80709be8", - "docs/archive/2026-09-13/reviews/native-shade-review-2026-09-13.md": "1e2f4d5e92a7006040e49c92277b11dd5393d482c1c67fd860b7f0edf88a54db", - "docs/archive/2026-09-13/reviews/near-term-plan-after-history-2026-09-13.md": "8f0834faba6f78bf62417ccc04a39c47d7dc3f4ce3ad1dd271e6d5af33e1d843", - "docs/archive/2026-09-13/tasks/design-v1-progress.md": "54ab9724a8026c6645e56a8d096a84f2c94bf7d45ca3bf409dd0e7be72e256e9", - "docs/archive/2026-09-13/tasks/release-v1.0.11-progress.md": "9ec0dab218d521e0a65df205a6c3dc4dc6c660e96ba0b0ffe15d5c57fa42e5c5", - "docs/archive/2026-09-13/tasks/website-progress.md": "63c234095f4d237b04505eb70c76cc5d63086083422f33baf246becda1936262", - "docs/authentication-boundaries.md": "9ac894b177c752bbe1777cea1e399864690de1e9bc8f46e7e6b0926865e312ee", - "docs/behavior-risk-research.md": "3fd394ae3291701174f58745727e35e2b7395480b302f371538a1b412a034dd8", - "docs/blueprint.md": "c9f10268752be9c75d6d269de73e58309c94d409a9b7f64233f595a40ff11de9", - "docs/claude-lanes-2026-09-25.md": "9eee45a2e910478a0a13d411330dfb835f55043b4d35053957f45e52a33342b3", - "docs/competitive-analysis.md": "b4a109a4db795f5f8d07f158cd42cbb982b6a2272881d14cb3731a5253205008", - "docs/competitors.md": "fbf5b07f817834a951af1c95cd036d68e14f4d2be465b5160a5412335021aa55", - "docs/conductor-v2.md": "5c435d7e17bbdec2ba828718d5830721b77dd2e73d21e63c585f92d8a62d0494", - "docs/conductor.md": "ff7720f65b4f337f51c20e0e75ba726fbe0580ce600f48c962152462606875a5", - "docs/copy-guide.md": "029858deb8ef6823440e3df738c1e96c0b47b55a8dd5150313c82db1af1ff2b6", - "docs/design-proposal-claude.md": "a4a1d452d194efe13504d511ff868eeea2bee50d12ccfa62c662597270162033", - "docs/design-review-1.0.14.md": "63d59ef156dbf6aff25c88c34205779d172180dbd2a96db3ccb6248c5f48a33d", - "docs/design-system.md": "65b56799b1c169d2c1b6424ee00e22e5726acfa9253f353142e64bcbec491c62", - "docs/design-v1.md": "3b623a284c9951ddec2df0fa7711f9da1f774b5f37aad74f1b8cb0560b8ba7be", - "docs/device-battery.md": "655de0eacca269fdf91a946404ccafc493b2cc5fed5cffe925cd002491997358", - "docs/direction.md": "513e4f42d4d9ace6226f112144b6c4bddfa8af9eb32764111ed852bda48c8d60", - "docs/dynamic-lock.md": "1b355f08a3f3cb02b41f4667a64c259cd30e1ea33001a5dd1af6b24c3f70a85b", - "docs/face-unlock.md": "9c191b9a39e43932e0bf8c587a8e0f8d849752bb6f6ef52fe4078322e8c4f59f", - "docs/gestures.md": "285d619c2f6b4d8bb060aecf7eb8f2a09af65d56749ddc304e3ca85e9aabb62d", - "docs/glance-integration.md": "e43ca70196487a22fe82e931b579bb8ddcee08847018566c4f51c02fb9d0d66c", - "docs/glance-pro-prompt.md": "4338691621669764d139c5f8050d4617d4c9a059aa41120b4c5ac516abafc63d", - "docs/glance.md": "bdd5a636348bb5dfe11959853823af7106e3d0fae37a3e0f4a60454f8e8eb5be", - "docs/handoff/START-HERE-deepseek.md": "f312e6ff55ae910ad7d4c4127f1548ed0b711f709ca23196afa0449094010edd", - "docs/handoff/chatgpt-2026-10-01.md": "f678d00a318bc5410ae6860b33f81d3454256d853438779c0118deb4e786134a", - "docs/handoff/chatgpt-review-1/README.md": "0ca20d0db3d61bfd18a72354e9158ef4478688c0a4a46070b5e1a85c546a4fac", - "docs/handoff/chatgpt-review-1/SHA256SUMS.txt": "079c3957536797dfafbfae9f74fe48e19b918a95884fda8e8fcd89459f41501f", - "docs/handoff/chatgpt-review-1/cheatsheets/A1.md": "adc107b5763dfde8f2d669beeadc93f9bfd114d6d0aac2b9de25335794376eee", - "docs/handoff/chatgpt-review-1/cheatsheets/A2.md": "04ff8017adb9156c2c2496c164f3e352c3eade229b0d9ba4c69ae6c056b70624", - "docs/handoff/chatgpt-review-1/cheatsheets/A3.md": "379e1a39001a2fd502516d043af340eaf1257d5b0d2a3f16591cacd74a4c3ca9", - "docs/handoff/chatgpt-review-1/cheatsheets/D1.md": "e403d3183b448a1514b90e55e720d44adef17fc2d5fe25338565a62315bc1993", - "docs/handoff/chatgpt-review-1/cheatsheets/D2.md": "1983bda7e1e093584419712d07c1e94dd84b191acebc462e0130a10568e84be6", - "docs/handoff/chatgpt-review-1/cheatsheets/D3.md": "84b92e38cb08e6933e7395f2f64a56fac3b369d1e2fca4c42f8e6e40e53c63e5", - "docs/handoff/chatgpt-review-1/cheatsheets/D4.md": "755ca88033a8cb843fcf7f1ad999a1c70aeb9c9f888f07b0922718230d72b2bd", - "docs/handoff/chatgpt-review-1/cheatsheets/D5.md": "7f8724b9ca5a478bbcf056ae06f4492ba79e1d332a751734b86fc9211e7bebc9", - "docs/handoff/chatgpt-review-1/cheatsheets/D6.md": "a9e31d9e24a438a5c1e0a81d05701322db9f139ad8b9f396e1f65ae68ec28cea", - "docs/handoff/chatgpt-review-1/cheatsheets/I1.md": "a38018ce17c1b050c95143a0ec4f45a180416be31903644ed75f3b01501fc48b", - "docs/handoff/chatgpt-review-1/cheatsheets/I2.md": "bce16beca45b52c1ab57a2c030b3ee4532ed0cb0bc089d3751d68842a0c5cbf6", - "docs/handoff/chatgpt-review-1/cheatsheets/I3.md": "18a777ed326e8f7868ea342aaf0d1915fb6535634c3c7415e3a37df934f443a2", - "docs/handoff/chatgpt-review-1/cheatsheets/I5.md": "0dc7a74285b65a9d1dccc74c30d431c88a3d546c2054e017bb9e72e0e106ebdb", - "docs/handoff/chatgpt-review-1/cheatsheets/I7.md": "48e7bb066942c2eb78ef61eea181923f91c290d8a411d025c3f5d3d9217d72c9", - "docs/handoff/chatgpt-review-1/cheatsheets/I8.md": "3140b4c4966fb143a1adc80bb11c85610ff2486ff9fe1d4234cf4d44baec756d", - "docs/handoff/chatgpt-review-1/cheatsheets/I9.md": "df4bb906aeb11235b8d2950b4d0a7b1237175f875bb7e99768af250662caa453", - "docs/handoff/chatgpt-review-1/cheatsheets/L1.md": "a754c73f536ecc97bf67403f1240ec7f95dd55260c95643dd899193c1b7c17b0", - "docs/handoff/chatgpt-review-1/cheatsheets/L2.md": "0b5afb352ff702231f428a9489218f21191d3a89bd40520ab6a567e56f26c61d", - "docs/handoff/chatgpt-review-1/cheatsheets/L4.md": "f031742b14198a91ff2b55e4d5483337acbbb4ba39bbb7e88ac3ff33bb6b0c77", - "docs/handoff/chatgpt-review-1/cheatsheets/M1.md": "00957894b035ff5f330b33eb3a4d4a4fec24571893fd50e9377765420bcaf509", - "docs/handoff/chatgpt-review-1/cheatsheets/S1.md": "bd4b14058babac734ca2ffde9c8246d89570347c9a06716a67794c37330dc869", - "docs/handoff/chatgpt-review-1/cheatsheets/T1.md": "5f0f410b637169e03d712d75919b99dea806836646f3473d463e40f841aed278", - "docs/handoff/chatgpt-review-1/cheatsheets/T2.md": "3f6c09e6f33470d62fdc13d9780017e215ccc71711ed809a99bd75c143cf44a2", - "docs/handoff/chatgpt-review-1/cheatsheets/T4.md": "6af354f834a4a74d499c010e7df3336f94d10bdf5d7b982ee98a1ac3ff5b8954", - "docs/handoff/chatgpt-review-1/examples/A1.swift": "9dadfffb018324d792f394d392dacd5b4248b31952d08cee7c3db8b63fc84f99", - "docs/handoff/chatgpt-review-1/examples/A2.swift": "f4f9926222ce3ab43cfab99be4b14f68bc493c88a96fc43804a9497777204610", - "docs/handoff/chatgpt-review-1/examples/A3.swift": "5c7608e773d33f0a1b868377b07f621fcc7323d192a039f868003d9273be00cf", - "docs/handoff/chatgpt-review-1/examples/D1.swift": "d9c68e8dda1a02cd8443b325d9efaac4d613e3b10e5d8967b73094edfaa274ae", - "docs/handoff/chatgpt-review-1/examples/D2.swift": "782124401297858c1c1595060747b636c95695046b20b29aa0ede14858666944", - "docs/handoff/chatgpt-review-1/examples/D3.swift": "075a195bb9e32c84c019e1e09ac2d71ddb0c4d2a0cdc9160e3d783b9f2f1e9c8", - "docs/handoff/chatgpt-review-1/examples/D4.swift": "0ce653a07e56078ac82aa4385519ded4e0b5a5b1eb621624050aa0148247d274", - "docs/handoff/chatgpt-review-1/examples/D5.swift": "7af79bc13e94d075e7d363febf3781690fd52e3687ba4d450b420ddaf998d0ef", - "docs/handoff/chatgpt-review-1/examples/D6.swift": "8c551e61ac2ece44f84037e1c8d20260ff53c568441f17c8bfa9002ddcad1906", - "docs/handoff/chatgpt-review-1/examples/I1.swift": "e2ce0a23f28d5804068f49d94559faf7627af06acd55f94fcb7ed77761d00c2f", - "docs/handoff/chatgpt-review-1/examples/I2.swift": "924808e02e2ced9d2e61536f07ecb0c1233defed5227c89850830bcdc9ff1993", - "docs/handoff/chatgpt-review-1/examples/I3.swift": "cf57fb29f59a9e3d853393c278152276b323a8e6c45348afaf1dbca3d4678a00", - "docs/handoff/chatgpt-review-1/examples/I5.swift": "7bf1e8c69a00ad86b74dac41e154af3c47fe7bc27adb726d321a5bf87d54cbad", - "docs/handoff/chatgpt-review-1/examples/I7.swift": "9c569cc2fe4b5da9d35685bdd423d2d49d6c3a864d9eb0870e2c5a8d4a908952", - "docs/handoff/chatgpt-review-1/examples/I8.swift": "9035f9ef3ad52dc3eb1919631be54357ba79c7b8b325000be4dd4076b68e4ffa", - "docs/handoff/chatgpt-review-1/examples/I9.swift": "522bc168abe6bdde86eb42e4f661b8198a7251e11fe38eea51b66bb7c1cb48b5", - "docs/handoff/chatgpt-review-1/examples/L1.swift": "49cf160cd5e4f8b1da784a170a77acfcf183c71afd53cff4827c29ed6ddecac8", - "docs/handoff/chatgpt-review-1/examples/L2.swift": "ad579f43fbcf02db5fe2141098c00149f9324b052b5dd799873ba9e0199496c3", - "docs/handoff/chatgpt-review-1/examples/L4.swift": "096461756b2985fb3adf79cef73541c7a6429425745b1c76728e5719b85090bc", - "docs/handoff/chatgpt-review-1/examples/M1.swift": "4cba363b11a35c4f201441696829c66be059eff4cf10ba97400cfdbe0d6b9e13", - "docs/handoff/chatgpt-review-1/examples/S1.swift": "90046399a1e175342c280088e2f7fcc549796c88ef30e7dc615a9040894d9dd7", - "docs/handoff/chatgpt-review-1/examples/T1.swift": "a43aafbe1b3068fd62f2d7ed96cc656460f6c56842d5df4716463df6f2c0099f", - "docs/handoff/chatgpt-review-1/examples/T2.swift": "509363204ac8e73decd1e9323dfa73294e6b196736af09a06b02acf78f03a972", - "docs/handoff/chatgpt-review-1/examples/T4.swift": "e2d4bd8fc78c1b38ac0e9e733bae5ebc94d516a99cce3d6bd25d3213d72d6fb9", - "docs/handoff/chatgpt-review-1/fixtures/README.md": "640b3f3f163e1d90cfcea6e9f57e37f9e33e8b30726ea5b36280f123214e5f3b", - "docs/handoff/chatgpt-review-1/fixtures/app-server-client.jsonl": "bd674728d061d7e703f84305fc8b947ab33d54aa3930e202d08fb50350777ca0", - "docs/handoff/chatgpt-review-1/fixtures/claude-permission-config.json": "dea20a25e015b61ad56d0343a993fdbcd2dee789ba5df296f730738e82cd4611", - "docs/handoff/chatgpt-review-1/fixtures/codex-permission-config.json": "3a181b2bfdd8a29da003cf954fbe3aa6d9fdbd88487fdbc80b5207d61778706a", - "docs/handoff/chatgpt-review-1/fixtures/hook-allow.json": "600d7470494907251e4ea8186239c1451cd1784487cda22d6b54552114d7cc01", - "docs/handoff/chatgpt-review-1/fixtures/hook-deny.json": "2664ee0eff0c12b2f2df5399b55bab2f1561c3ba8e217f15c501227784af33d4", - "docs/handoff/chatgpt-review-1/fixtures/hook-none.json": "ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356", - "docs/handoff/chatgpt-review-1/prompt-patches.md": "3970e18ff040c8bc28d6b3b98245589b76bef970f04c26ec1ceef0b671bc17ab", - "docs/handoff/chatgpt-review-1/reference/contracts.md": "0729a25fa1594ef60cf37987555c8ab8dd2b7553a3e544e6b26130a101327cf0", - "docs/handoff/chatgpt-review-1/reference/hooks-and-app-server.md": "6a2e2835b21f556f1af444b345d76dab43da4251e628bd1422639c6a3f9ddccf", - "docs/handoff/chatgpt-review-1/reference/private-abi.md": "66e6571fc608d2576483ad2e116de25c3efe169402fb59ef0cf27d7f056fed0e", - "docs/handoff/chatgpt-review-1/review.md": "47703da5d5f1655ec0a5da707f068c57f1f260a8739168e26c478a1284f4e7df", - "docs/handoff/chatgpt-review-1/sources.md": "641bf7a197ae422cbe4d175bb45fb146a4adefc8f4cd8c8f3fb69f8bb298f48e", - "docs/handoff/chatgpt-review-1/tests/BoundaryTests.swift": "eaffe60df038bee7e39416f76dc8b7822c256eb2ab214fdc87cf0cc576f36666", - "docs/handoff/chatgpt-review-1/tests/run-boundary-tests.sh": "9a961256a37a69793d857f3220259d95c1720e703b1b8801b66c4e2e0818bd52", - "docs/handoff/chatgpt-review-1/tests/typecheck-examples.sh": "5e95d1bcda7c5f9a43a1b10b41b03af2c2954d2c805d3f5523089cd5a28501b1", - "docs/handoff/chatgpt-review-1/validation/boundary-compile-initial.log": "0a1a3b4d334ae6d48384689dc75a606014627c85d1495543121f36bc42aaa639", - "docs/handoff/chatgpt-review-1/validation/boundary-compile.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "docs/handoff/chatgpt-review-1/validation/boundary-tests.log": "b52b633d69e30d338d6c663efd9a5bab8b4f31382980eafd22156a8d449f7e73", - "docs/handoff/chatgpt-review-1/validation/conductor.log": "b1c223ab3be82a19bad2d7045fca062b892f9d208a5fe2327a750631d6e03fc9", - "docs/handoff/chatgpt-review-1/validation/example-platforms.json": "348e6fa8a64fd6b410deead88c6bd362a0e4b67c6b62935e4afe5e52b2aadd00", - "docs/handoff/chatgpt-review-1/validation/input-manifest.json": "425381da32fa4201535ac58c825692421f69f93ec15886b5a36ab068b085d6b8", - "docs/handoff/chatgpt-review-1/validation/notch.log": "3caae3d18fb3c30e5a3a00cb2bf426bb2e592e741d536b57fc5425ee28f89c1c", - "docs/handoff/chatgpt-review-1/validation/package-checks.json": "e95d0050afdc95a28bdb644d729d509920a2789e40fcc8b6a4c8a68c59fca3ba", - "docs/handoff/chatgpt-review-1/validation/review-findings.json": "c4c3358c8d09572b9d2b6612f8d86a6041d0b0d6daae140f9e2ec078adb693be", - "docs/handoff/chatgpt-review-1/validation/runner-boundary-tests.log": "b52b633d69e30d338d6c663efd9a5bab8b4f31382980eafd22156a8d449f7e73", - "docs/handoff/chatgpt-review-1/validation/toolchain.txt": "eb9fe405b65bcda75635327f6ca704543098f4e7d882bf5d2541a6fca34725d6", - "docs/handoff/chatgpt-review-1/validation/typecheck-A1.log": "1437a814bdebfb68c840f013a8349705a6a5ca70efd2d0d471f7db4a14660dc4", - "docs/handoff/chatgpt-review-1/validation/typecheck-A2.log": "b06947a044f7cbab3ae04ba9e4172d4dd2df23dd7b909993738e4cfdec96581c", - "docs/handoff/chatgpt-review-1/validation/typecheck-D1.log": "5bfced18ec7a04276205c9c83431adaa3fde3b430a980514f4b19b4c7550987d", - "docs/handoff/chatgpt-review-1/validation/typecheck-D2.log": "a2b9d07b9f09ba42353a540e7e4e3c9e8eadb0aabf5a6a6fc487496603fbccf7", - "docs/handoff/chatgpt-review-1/validation/typecheck-D4.log": "a1bf465ca3224f45a9b9c628c164b34624167d275d9874667b3b8ad0e7563f94", - "docs/handoff/chatgpt-review-1/validation/typecheck-D5.log": "4c5db623090d9647446293b944424bd8a1ca0a214a7ad646a810a8f786c5f833", - "docs/handoff/chatgpt-review-1/validation/typecheck-D6.log": "b5f48fa3c46e4a9ab4d4614343dc8120f818bcfeaea89d2dff91a0a31f442206", - "docs/handoff/chatgpt-review-1/validation/typecheck-I1.log": "b54a2662ac6a3d67d6cbb407b52784749949417ff91e85b89fa0ac9a052e69aa", - "docs/handoff/chatgpt-review-1/validation/typecheck-I7.log": "ae6b44eb541b2157885f461debde513e9a35b6c4f2f7368bccd08a4d9d9ee8b8", - "docs/handoff/chatgpt-review-1/validation/typecheck-I9.log": "9b227125fd98c7d67825784358e3aa833ba226d2d5d6186c5b6ef161b4a5f022", - "docs/handoff/chatgpt-review-1/validation/typecheck-L1.log": "06834f3abdc1f9f45bb7516cd7021e6b0f154c4b51a5a11f7df6e25f818ce2c3", - "docs/handoff/chatgpt-review-1/validation/typecheck-L4.log": "33ca1ccdfe388bb7167fe264b9f7ace299d961f62a281226701f5800cd8a09e2", - "docs/handoff/chatgpt-review-1/validation/typecheck-T1.log": "337c6e923041d64f295587ab0ac24bfe850cbeccdefe4ab3d6b985ae52d285c6", - "docs/handoff/chatgpt-review-1/validation/typecheck-T4.log": "75d2e7ec7e537f5e7efa83b40adb2807ec5a183d5638485eb095df20ed8cf3ab", - "docs/handoff/chatgpt-review-1/validation.md": "4e80eef0b2b25f940fa25cf67e5045f0cd5a8183115e0fa2df3ab603296b3db8", - "docs/handoff/chatgpt-review-1-verdict.md": "4caa17fea8390b7d92dbacae8c4d65918a1dca276b6ba25873a015867a38eb5d", - "docs/handoff/deepseek-conductor.md": "723a8eb65df8c26167947778ec316fdfe54d1213b68ed816f431c9bbb418cc2c", - "docs/handoff/deepseek-dynamic-lock.md": "d4f109f113ccffe680e716a74d34d67743b17b87904628974916d47496d724ce", - "docs/handoff/deepseek-film.md": "f935b56ffbb3986db04f9d4489e8dcabe5c3c164e4aa8779d535a95ca34df965", - "docs/handoff/deepseek-input.md": "3452f91df3b1c22b85e5afbdcd5574aa2d44c6e2f663be3df64189d1f30d06c3", - "docs/handoff/deepseek-menu-agents.md": "f1d69f88f3c1dc6204389ceba794df9a3f1295cc86a6b6043153e599860c34bf", - "docs/handoff/deepseek-pomodoro-symbols.md": "538c97c89de9fa2df681aa754a8c4b5410b3eb451dbcd8344517aba96e7bec52", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ApplyPatchApprovalParams.json": "179d91081c3c84d0f79fc544a3d6d423f280c0f9d93512cdd0344c80e09b99a3", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ApplyPatchApprovalResponse.json": "a5e145b4794ea91da6eb478626fac96bbbd4485c3399fabd1c9972d53d2d9010", - "docs/handoff/reference/codex-app-server-schema-0.153.0/AttestationGenerateParams.json": "b85df8f169cfbca98724df3a5f7550fc4649fa69b23f5160aafdb52e027133a8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/AttestationGenerateResponse.json": "2eb86b2a37bca01a8cb5d0822f28cf13d46dd106c8b1d38e7ba097e436b5ab30", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ChatgptAuthTokensRefreshParams.json": "03b7a734b8b3180d9cb477b33564385d29b22a2528165a614891f13849060503", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ChatgptAuthTokensRefreshResponse.json": "06d6b30436fc962d80b5d7920f8f323de12a052214d9148c5f0dfbaedd5eec6c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ClientNotification.json": "706cf248d75027c84a3c63348d0ed507182e8eba40069dd17541793de029145a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ClientRequest.json": "25bc001b5dfe3b35785597b8f9ad9e5aaf7e437331fa9921f041c9e0e03fc9f3", - "docs/handoff/reference/codex-app-server-schema-0.153.0/CommandExecutionRequestApprovalParams.json": "16a71816c2d66e319c2c4aa83dd636dfdc43c61e72b6d5475e421ce08d8e6558", - "docs/handoff/reference/codex-app-server-schema-0.153.0/CommandExecutionRequestApprovalResponse.json": "6d0767113e22f311381809b6b236b0dde2b99b01992879c26bf7b1ea0e003cb7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/DynamicToolCallParams.json": "401bba20cfbd95762bef0467d840430c46be53369093ad9f26425ba757e34efc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/DynamicToolCallResponse.json": "abb082cad67f11fcc98ba75f2eff75d7d1723af0c657655329b83ff160451a02", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ExecCommandApprovalParams.json": "653116614df1aa5011c3cc399cf79bae6b9eb28c1d527df27275abf61ceb1365", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ExecCommandApprovalResponse.json": "80dba6d9f28d19c57960db72340554c193624f014cd496714a0c7aabe1120046", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FileChangeRequestApprovalParams.json": "13848b26814c286ad6425a20d01c1691c86790e1f9e2529399677a8a22fe0d18", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FileChangeRequestApprovalResponse.json": "b95b03ee6be674e25cee2e863cc135a28620e1070addd2f34685aadee27cde08", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FuzzyFileSearchParams.json": "0291dbb87a7c3d8ef7f7cdf8d5d61f929deabab8c0ea79f064da95984d7d5f4f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FuzzyFileSearchResponse.json": "4984c3dba591e240407c39531d41c6b499c4816017de70a3371c7d6fa2d0951f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FuzzyFileSearchSessionCompletedNotification.json": "d3af2e301142ac0cb2462d95b052162ff4f25d83f9c1b21e319d5ce9c860d401", - "docs/handoff/reference/codex-app-server-schema-0.153.0/FuzzyFileSearchSessionUpdatedNotification.json": "b8626521028e0c68611c57d458f27dbc9bf8be542e804865ae0d14acd78cf2e6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCError.json": "d7ea353d4875ae204625da5a00a1ecb5afc69101d5778b9acc253a49f8932992", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCErrorError.json": "12cc5cd5d9df9246defa609c472375020fe5250f3aeabd7d529076cecd9f541e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCMessage.json": "6da4cc373a7ccd01f5608ad4496eeb4d44b6a9b0d3158e85ed66b59f3c0b5114", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCNotification.json": "c2b43f26880db331393fe09f34bdd76dfeb4dc30d8418d1c26e18db166d6c8c8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCRequest.json": "31bd6f360b2dd8a7ceaf682708105d40d38cb0b9d0821357a04da67028438f73", - "docs/handoff/reference/codex-app-server-schema-0.153.0/JSONRPCResponse.json": "4796738c04c74288213a08fb8d820c7b4df19e0977cdcd35b65ffcb43cfc93ab", - "docs/handoff/reference/codex-app-server-schema-0.153.0/McpServerElicitationRequestParams.json": "5cbeb6bc702d2efa076da4c1dfb00672c970c1bad747031eb880b9ab907815c0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/McpServerElicitationRequestResponse.json": "792a012fdfe53ac211575a6c37ffbd492be848d15cb313d1bb4b534ade1f54ac", - "docs/handoff/reference/codex-app-server-schema-0.153.0/PermissionsRequestApprovalParams.json": "c6d165e1b0c65d5dcf1e099b4c226c7e4dad79fe2b88b03621a1fc6c1d3c86c2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/PermissionsRequestApprovalResponse.json": "23f3f24e9dbf35db3e0b85703f0d934da5a1cff3cbb611fba8bcd41f3b4a04b0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/RequestId.json": "9c72d59a306d827113020c6d31a14c326d55210d9bd6954f825196a52009f1c7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ServerNotification.json": "b3e76cf11842f3e8b3270c05e000212b56eabafb0152fc38e8f920e2ef902991", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ServerRequest.json": "31f580ad468fbd18766eb7adb12744be4e3790e3357b58bd4413c0108c4f65d0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ToolRequestUserInputParams.json": "fda15b62e7446105b59c8ed85c908abed2a47db70653e57c92c47a2f204fa77a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/ToolRequestUserInputResponse.json": "5073b245f741fa8ce62ec52e4dd1809b7831f9c4284c279a78abc9b171f8e3f2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/codex_app_server_protocol.schemas.json": "e8284c5cb8157554a3dd1e035aadbd4325aea501af56887e9c2e12eb1b9b9448", - "docs/handoff/reference/codex-app-server-schema-0.153.0/codex_app_server_protocol.v2.schemas.json": "d3eace08be5dca386bfd1f1e8df650058b4113f1e10870a284d775d75517576a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v1/InitializeParams.json": "6f0094be9a65242ec779a40794cbd4fdfa32fca1e45084a16adfb50501d33ea2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v1/InitializeResponse.json": "62ad689c2cb6379913c1d72749cfd8de5089d35760214123518eb92eef11acc9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AccountLoginCompletedNotification.json": "d81e8821fd5a4a9ad118dfc3506ea156d32dcb18da388b336501bbc6a5ccb4a6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AccountRateLimitsUpdatedNotification.json": "c50daa6abb4723ca1edffdae9d0d6ca452770669ed045fae48d0fe9b20c6ea81", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AccountUpdatedNotification.json": "9bf450d9d9ea23a2bac9c9cb0a68c2de8f89a97bdeb4485c91762bb4d43295b8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AgentMessageDeltaNotification.json": "996e6c0ea65e57bed5a00f410b94381fe5ebf804333e5d00c2b6e6d47e5c55f6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppListUpdatedNotification.json": "2c67a3bc676309afdd0d6952ad454c2a040a3d4c09d38c8f63ca7fb632034cce", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsInstalledParams.json": "c2027510d5d041c2205349036f9c2bea10b20df309de5330beab9de8a9e50bdb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsInstalledResponse.json": "d8ef8dd14dcba8aaaaaf2b0b80db90d66edf8f4ff422589b844ae2b0edcb46d4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsListParams.json": "e880d0c24811118a2d3c2c7f0569a14aae5b12a31b0efe56809ccca8bbd85802", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsListResponse.json": "5811fda68d6274decfc11744ad72bbe93e601d8514549e94f361ba3131d1adeb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsReadParams.json": "61e6a9d35515f3164a7f7e7a5b0c5ac92817c5a3b5d7fb27e9a704fe2935ddf7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AppsReadResponse.json": "f3b73c2c31f16a2cff013c9682dfea48f26571f94002195c93ce10722a288791", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/AuthRecoveryNotification.json": "c19238d43cf8bf610ea346afefc390b9ffa4f01e98ec6b42af0addf29d6cb7d5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CancelLoginAccountParams.json": "a4570a7542b82b918f69199f1e214ef747151c678473a5af58c58b088fdf58b6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CancelLoginAccountResponse.json": "06bc17624df01600fdc399d3c0f222f875c010d2d952c1d1191cb84de9b59014", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecOutputDeltaNotification.json": "28e74454b211ab677a256129e623fc5a2a29ce5394da1c69d3bc5136f7e37c57", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecParams.json": "e4f20080b92c6199cf132941840c4bd0fb9a90e3fec197ceb0e1ce9084346e18", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecResizeParams.json": "b748fee19979d2c32ac17a460ccfdc761e125cc2939bc551945e1e2c2af34197", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecResizeResponse.json": "01da20d70957fa5b43cf41365c5fee4fb3a69927947a45f92866f9bcf0895d0f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecResponse.json": "dec52d187121e8dd48124b47a4a8d8428ef3717b98b9200345bb404f73b62c9d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecTerminateParams.json": "979ece7059c6713d0909ab1690daec27149510f4ea2ec10014600bfb1d631c97", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecTerminateResponse.json": "d46aa76d952bb3ac95d0bd64de609fb8a82efd98d9ee38264fe3673fd184ce5d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecWriteParams.json": "3e8e849ce321c85987bbe96ce1f913df0047696a5207bc97dfa1409b0142eda8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecWriteResponse.json": "22887250f84443b2a6f5fc6f9c46cf9e2af072ff631574340018c48771411571", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/CommandExecutionOutputDeltaNotification.json": "841fa94098ddb63a71acf1bf5f9e3fac1b0491f4ed3fa8ef86f9a6ca1260b539", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigBatchWriteParams.json": "d11e244258ffaf8a37a0ca4afdbe589d07cb7881b72f06b7f730fddbab9ad613", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigReadParams.json": "257c54a423b47c1d209ff1076765a1564d82322fd5161670fd489a2874de1bac", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigReadResponse.json": "bd72c94e2c7d49ead6a20bcf54afedc8db11044bf8cadb387e42135dd5d1e342", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigRequirementsReadResponse.json": "7f3cd9856eeb581985a4dcd1acd90be8efa30a7929a96e4e74b6b9a3d878118f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigValueWriteParams.json": "b9032e35bf64d4628bfc72e22b58b71bbcf754aeb720a86eacb091e0137547c9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigWarningNotification.json": "533e713405b582cce4d772d0b4ebbc75e840f0fe71cedbb17c2c83da285a21d4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConfigWriteResponse.json": "1d690287d9e8a0c552f664038d3810dfc3903ec8042eb2c0f772856414f59954", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConsumeAccountRateLimitResetCreditParams.json": "ce36a9f59ce3b8138fccdca042538f723e93d0e34d08441e6846d3153ee0b291", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ConsumeAccountRateLimitResetCreditResponse.json": "6d4144c00dcb7f73be6ad24693ff7e539bad56064e4432f7f2bf8d20b3bab724", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ContextCompactedNotification.json": "c9f9a58ef680e09d568cff5f24b45895841e1cf138b650bae64dcf6c85f177af", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/DeprecationNoticeNotification.json": "29fdb44fc0a09bfdc5c4924ff34e33679acc9201730fa4fe9be7ed1978af0b72", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/EnvironmentConnectionNotification.json": "007e9a6ccae0003a56476bb7cdc9a097141e964c168e7ae43d213a763c93fb56", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ErrorNotification.json": "d77732536ef8864799e4fbb5bf6965a9f1970a6195e523f144252a82287c08e7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExperimentalFeatureEnablementSetParams.json": "00aaf2ef719cc336e4d20eb26dd6158be1eb26161fb7647372804b80a02e3131", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExperimentalFeatureEnablementSetResponse.json": "5ecd92ee95380d7cadc4c109091530aa71245e41b9f1b530a5e9d5c5c9eda95b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExperimentalFeatureListParams.json": "4db92977e59fea4125710babb4cd2128dc2cebef8292e3619d0844089e7fc1f5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExperimentalFeatureListResponse.json": "4084a25f32333b3f58eb5e9803a5983739b57f945c4e7e4002e85851622ce597", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigDetectParams.json": "db6c6ea654efb4095dc745a1e65bee76d0d063b03f2bc3202b9077a1569211f8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigDetectResponse.json": "36c4173d5f30ebd04be3d40389c904bc4ecadfbb8e5d1dd46b9b589254f7e1d9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportCompletedNotification.json": "c54702d40c3a40bcb3e3e835d99860473831725acbd3576fc26d2d4fa3a7617a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportHistoriesReadResponse.json": "1c09641e957333a2f602a350532acd99cf538a73ea45f39a2294289907a0bd96", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportHistoryRecordParams.json": "6a3e8071854771b0f34c6623fb7dcfbeaa7518a90779cc4a40c97fe92ac6f3ed", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportHistoryRecordResponse.json": "a252a2c2a03b4460bf3635d517c0735fa487a2f8a97de1aa0637f930419ae656", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportParams.json": "6b8d0a8fbd5a7ddd455ec0dea6d1b578f56841480c8a5fffbfcd045db79458ee", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportProgressNotification.json": "dae7bfc12026811ba24cc6f32dc01ae9ffaee7d9340d7768f9afce94575c23d2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ExternalAgentConfigImportResponse.json": "0ad2fc7dff7b1bdc471cc365985f559490f253ea127263417f0a0a1edcb33cef", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FeedbackUploadParams.json": "aa958cd74b37fb28cc49ce22345a1efcda9d4cf5fa47e7cce6949e5366ff8b2e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FeedbackUploadResponse.json": "604390e864944eed2c4268675978dd8082f0884909d73cc79fda59dbe03a2d58", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FileChangeOutputDeltaNotification.json": "04c3df83d46725ffc048577e7a5aa25de9a6c8ea9eff713bbae2b408672481c5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FileChangePatchUpdatedNotification.json": "cfb69d18658610a0510f213e09c6847f70517410ed91cf99cc4713c15a795213", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsChangedNotification.json": "197693fcb852a85fedfbcf1cd00c9a3cc74dddfa09bdf6b11fdafebbcd12ea2d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsCopyParams.json": "bc1135070827681e4d9a14f79b5b06a4f5652e538ae6a89642d27dbc8b2a2af1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsCopyResponse.json": "c88392d6c3ff394441231cdf5614794ba0c2b4ba683811f6033a01fe65528a59", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsCreateDirectoryParams.json": "405fd718ebafe7f47ffd82c86540ab4af663659c737ea2b25acd3e04a1bc94ea", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsCreateDirectoryResponse.json": "a658fbd34d5e3d6300bcb7015f10fc1764aa8aca3088abc79af9caa2e848e527", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsGetMetadataParams.json": "382bbf3a8b5c7e8cb16a1a29f853ce49c2904e563325e33a9e41dcbf632dab5e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsGetMetadataResponse.json": "b8355f112eda37d7ff25ad0eda7dae912dba695961855c5cb8444a7f867d66c2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsReadDirectoryParams.json": "c4ca6cdc129d70375fe638c723c1b1bb07a9716101525970cf77bf7560fec657", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsReadDirectoryResponse.json": "2cfb28c3c1ab1487f6b778f4d76871e3a9f590597bdf0da502cc41b202269dbc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsReadFileParams.json": "74b325108195fe955e6ffcb6032e9380d3bfdee8aed7d115f5f1e4b127c5d706", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsReadFileResponse.json": "fd67dd725b5bf5c7f27e78cc3d66fe24314f08913fc00ace9dbb663bf2f487e1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsRemoveParams.json": "c453f8ae4b3311f5da88f67f743fdabbcdc323dc3d9eaa40d750ceae147bb630", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsRemoveResponse.json": "6371aba2cae2f92be487be05c1ce531ca4139da5004b740a0010ccfdba548100", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsUnwatchParams.json": "3134d42c231f40769a4d1ac4adcf051be5205e7a1b70bb32c4a8655fea730175", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsUnwatchResponse.json": "9c59c3473df1f1873ee0d87ed33cecec0766b24c8357ee7dc8b29a57ca21e104", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsWatchParams.json": "10bd9c01b3819db1ed8e2487a277f20b35e3a9f74ae77214654f1a529fc1444d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsWatchResponse.json": "d32e77e7d6f619c5f4183c335ecddd3c4ffb95a51761198985c47838ae891a6c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsWriteFileParams.json": "2167e05c7f3eb26d475f9c1ce71697ba3b635efd8761a00b22abfd6af175bd2f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/FsWriteFileResponse.json": "0e4153ee7baa5c1203c2c573504baaa40e1dd8738d78e4c1e3a179fb49df6b16", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetAccountParams.json": "30b545275f60975b55bd6fbaafd70f15505801d14168ee82d3931b6e93c78aab", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetAccountRateLimitsResponse.json": "a28d4d0e9181a498c58d4ae3b6b49aaa6ee7a33c0c9f81c1ad0bff223bfbbe3b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetAccountResponse.json": "08a7dd8c570c905b0bb6998d43ed133e72e2445f08125f86dfc96887e288701a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetAccountTokenUsageResponse.json": "a58e58c852c888e5de925d99a66688d55ebb2fff038e795aadf04f8a8426dff8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GetWorkspaceMessagesResponse.json": "3ebd00f0acca088e5ee0309ec09b9a571e7f2eea5b63a32cda67be01c6886d67", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/GuardianWarningNotification.json": "5325551d2efb47d578665e3deb846f6369e05f98fbc5bfbffc5d9fe0cb0bd167", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/HookCompletedNotification.json": "1f146d70303cea6e59752191179e36a273650d63a74d4f9338f9a399da6597d2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/HookStartedNotification.json": "913ca61da2ab299d5f3318f6ea4d842d22708fc9308a9b10cdfad5e757098f2f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/HooksListParams.json": "07638c3a8a3690cf368fa92c7ff697fdd0132865e8c59d53f6e5789e5a260053", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/HooksListResponse.json": "891dd10ef7f78e59631fce05fff2becddb8004b3c0338dbbbd6b4f17ef1fa64f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ItemCompletedNotification.json": "69aba3fe5f72f38bf5c541e7e2c09de40778abe65ff969d9fc73372037812091", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ItemGuardianApprovalReviewCompletedNotification.json": "bcf94662d3589c36ac3a13c0d919fa33c2b85f452d5098a8093360884d768a02", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ItemGuardianApprovalReviewStartedNotification.json": "baf4e17938f94e2cf4d86d31f02f66d69d394b00594e3e04ed03dfe901014543", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ItemStartedNotification.json": "c4c34f47db6326cd4841bae428f23d08eb285077ffad35be9772b928c65bb912", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ListMcpServerStatusParams.json": "33b1933595d844c61f76bdcfbc874c8456b65079877fed6e86e2710ea3d49f1b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ListMcpServerStatusResponse.json": "d581e9ba17f6da0d686d0e730cddd51fda091f361a8c119317b2138a3ecdb612", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/LoginAccountParams.json": "48fb9bea54d7e0890052653ac06737efb3200ba2261515b2c4014027f36bea3d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/LoginAccountResponse.json": "72e6d77f49bc5809c3af50f183e2a0862dd8f7836816d4796ff69bb13eae0e89", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/LogoutAccountResponse.json": "ac14ddfca2ec6092b0039be8720262d5a9930484d23e62544d2ef0b7e1db7926", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceAddParams.json": "e6c92ca2a3889641ca2281cca7684569b1187653b25b57f9beabf85519d638a2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceAddResponse.json": "a37633e9ecc2fdd87ea582861bcdcbf7963a8fab6db9fbc1bc8eac7d2f7f9a8b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceRemoveParams.json": "220c2475a96f32ca095f80f3ecbad427477b4ba37dfad7fb48a0acabdeb1f4eb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceRemoveResponse.json": "98deb2f721d57ed727f7cc7b4f478db5f604b6b6d40e6261928dfd5f586405e3", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceUpgradeParams.json": "93fc5d331d353b1b89262625c38eed54c6c16b2fb8aa0eac718245c7bdcbe4dc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/MarketplaceUpgradeResponse.json": "2402379cb0ed1168a7dc327c412fd61bafdea2ad13ea7a3b3ebaee3b43c45963", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpResourceReadParams.json": "a8241b056a65473b2b9bf0a14c1a49146de52dbc1cfc276549f52f4db13f3be6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpResourceReadResponse.json": "a48af749203ed3307414750d5070facb5ae6ef8b00253f1cfd9a8124bdfcfe41", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerEventStreamNotification.json": "44b04b6cc079ec0b99b4d29af1a69d99037505c19a2a07cff955aa298d7c181b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerOauthLoginCompletedNotification.json": "d3b7ca4f2626a623b4b5a97eeedc711cc27d41b3ee56fed8b0304857c5c9b13c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerOauthLoginParams.json": "83446fb61e04a361691f84fe236a51fff2ee4fb12a8f58e2e828a32cf6f6cc75", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerOauthLoginResponse.json": "95d7d00622866ac49dbe459164b8be665b2c9ad7b26772eadfc610a0537aa6d4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerRefreshResponse.json": "54a77812db02175dc69053870e582d3b314af6f161f0c76846f3563b0f9487c4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerStatusUpdatedNotification.json": "d6f4cb120b2363d321247592f03b9afbbf2762ad6d8af31b88c1b1bf39c4c7aa", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerToolCallParams.json": "7039a7583a1cbf38e9e0f5fe6398ff3711acd4d654b81b0be562514087fce6ba", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpServerToolCallResponse.json": "04a59b2064922c37b0c49bdb2470b8fff08d943e56dba4f7280a6b34bfa52c68", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/McpToolCallProgressNotification.json": "64a32b8282226876e749bc107a81db89d20d5ce5cb86ee6a043b960763214b1d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelListParams.json": "de29a536c00a5b8f46f34dba417dabd93365305571a8ed200e33bea85db68b5a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelListResponse.json": "c7b58b332f6cf18fd64235409a6daf27bb9e6c09d12dcd0daa2f3dc628b55f6f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelProviderCapabilitiesReadParams.json": "9db732188a15476cabb42cf05e495ae0803a1ada993fca7348c21c30a998388d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelProviderCapabilitiesReadResponse.json": "5c42590f728289daaa441b947617398a0ca3aa17479013b3c564a5d314a3c9cf", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelReroutedNotification.json": "37cd3c1b3a3560b85b01d4061a07d830fc9ed93b80e4663f975f9197cdb501ef", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelSafetyBufferingUpdatedNotification.json": "4cf853e3a2f968fdfde75206fd497d3d530b26769026bee343c3ef09ce438cfd", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ModelVerificationNotification.json": "4f27a99d0c8664c29abb4d65384ab16853bbc29b61de5e749111cefdc6994655", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/NullableGetAccountTokenUsageParams.json": "a992c6ea0fe02b0e9f46b18afb51b8ee2635e7f0c7d546f71e7f95e2a98bebba", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PermissionProfileListParams.json": "576d405f6c94cbde982a9f65c9301717043683b83ca35d564247907feb16b1b4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PermissionProfileListResponse.json": "4a290b5b9d47c2fc671033e22754671161bc563027ba387e861bd935398f0def", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PlanDeltaNotification.json": "a5cf42ccfc6cf905ede0fa9041e9c951ea7870aba4e3a7c7f68d85f01416d3af", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginInstallParams.json": "d6a8ff6356aed22c916cfd5a791ecce34ee2ac509750f690e7d0ef483fec7472", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginInstallResponse.json": "ae283e1ecb9f454f7614c6a4348fda5a7aba5af99e9ab9177b9a0cd3e1cd7db7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginInstalledParams.json": "0b56f55a817b6e82ea104496281cd43714ee96800f9b984412a3a858f444f68c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginInstalledResponse.json": "8afc8a16fa5c21d67f66d1855bf29890bad10a6229bafc960b3503281fc878e2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginListParams.json": "bc6b499161306df7082c5a8cc51fd793cd6d28dda93555b12ae299445132270a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginListResponse.json": "a405d2514d6236df75130c87c749e0e070b946a889f143a0448bbcd27d1d8501", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginReadParams.json": "f15952a2828c90501cc32f347c1e1691ea65cd2d97f503ab40e7be08757de74d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginReadResponse.json": "1651d8136fbbbb00878c4c1f8adbf279d050bf25b4454e6db4fa46f192f953d2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginReconcileParams.json": "91dfe0967326b876e50ddf8d896c6c516440c43a36b08efd4746c0bd770882dc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginReconcileResponse.json": "ba2a8e317c9098beed39d4decc433d9dc29ba0c8164e8d4c229481b9243c5ec8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareCheckoutParams.json": "25fd868fff9500ff244150a4ecd36322c0d31b339a4709649594b79aa1349185", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareCheckoutResponse.json": "d6271afa9bba5531574ba255d22b03f70fe10b8ef159185355625d92b6f9fac6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareDeleteParams.json": "d422a3fdecf91612bdf839d4fea6f1cddccb794869dc03ad3b8998bcb8e27fff", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareDeleteResponse.json": "ae881a7f898f5287354de5adf6f42094cef9029a9b9376bfd12aa1b0fe0b3106", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareListParams.json": "0d71280d2a655ffc26375044ec1693203848614f99fdb4563e0cb5a4ee40122b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareListResponse.json": "d349a496947956fd5f4d125b8348faa2ef0c91daf7f3cd74ae0616f55c8e328b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareSaveParams.json": "ec937521a40437506ceb2dcfe79cedd03812dd1b8233c651b89c2ddd76e148fe", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareSaveResponse.json": "3eb7c0ed6e6c72126c7bb3d845e73d5de98ad0d4ea8639d2f227fecd16c15411", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareUpdateTargetsParams.json": "0ecf16212022bca115211cbf13a1302f8995d7be5664ca268b926b7d00add7b0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginShareUpdateTargetsResponse.json": "caf42dec67940f9e686ac7b4e77484921d62fee400b3af73fc85e6f46eaa03f4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginSkillReadParams.json": "8850a9a45b9cf6e8b016f014c7c65f7062937be896d4fa0eafdaccc816909a56", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginSkillReadResponse.json": "dedaf95c4a8f70c022f5cac6fe3882603ed2b27d5efef710b52ae370869956cc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginUninstallParams.json": "4c9e1da7048fc99ef5269d4c3f4c6c3297dac01992c2756340fa210ae8f800cc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/PluginUninstallResponse.json": "f6a0c9c8dfd9e3fc4a535ecfa606f12922c09e469a37d6b1c6e189f45cacb89e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ProcessExitedNotification.json": "06cb5f39c67f84c227063d7f40e5e78fb62afdb76778c3d603687181896e8440", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ProcessOutputDeltaNotification.json": "c31714aa83297b83fd69dee98db877be7d4a3f98551dbeb517750efba0ecd79d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ProjectChangedNotification.json": "b32151fcb7ef78fc5c969db44255756e5e6e1754398a5b6b09244dcff0c1eab9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/RawResponseCompletedNotification.json": "aba140e87952c900f96e0308a8849d3e313d985de1f1aa2b77f193884a76357c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/RawResponseItemCompletedNotification.json": "cbcffe7b3f2dffb607f7e20ac1f1196509ff42e7d0cd9e6961d7c19b25506899", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReasoningSummaryPartAddedNotification.json": "c8dfcb82d773d0f5d297ae1a47749e2b719013e82030a3af5d4550f9feb8eed6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReasoningSummaryTextDeltaNotification.json": "895bdca00b4674634c25a5c4d1f82e55e65767d81ddcac4bb7b00aa3d438e62f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReasoningTextDeltaNotification.json": "16cdc13080a7523b44f00fb6fdb660c56a7c4c8cda96b2f9b87b7e72264170fb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/RemoteControlStatusChangedNotification.json": "56aa1d58294238557cd8b16199909c2c157a7542b9259ef2deddf40fe4c02c91", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReviewStartParams.json": "c55c510988a34d2e95752aeb95e5d165f7083724a0945d7fccd1c568ad85dbb0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ReviewStartResponse.json": "d6d5c99473b695fff0f58a896bee11ddcddca23304523fba878860324b7f07df", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SendAddCreditsNudgeEmailParams.json": "91b380293f5685573f8dcdf46c99eba6f8a2adb7a206df9ac987f7fe6cb282a1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SendAddCreditsNudgeEmailResponse.json": "389978f741476c7cbcaec716b11a5bfb7f17581a28013e18cbf7a73ec8a45ae6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ServerRequestResolvedNotification.json": "4f03d586a5af04edd912cad08cc97eceb658e7e06744565e6d41a93e04a55966", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsChangedNotification.json": "84f7f1d327c5c774899992f32c98e9e95ee3e010a410d233ec0c33221e4ccbfb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsConfigWriteParams.json": "6e7dea83b649bfd118828b60446eb2eab2f5ce3cafe287c933b830c9cae9b170", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsConfigWriteResponse.json": "628bc112ca64f5475eb02a0eda718e82d670c40299444494e02a8dc278a772c7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsExtraRootsSetParams.json": "bb60389a0c7d4b73f625b9a40965e5e67b56b6503989f2d732cae12e9ca9698a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsExtraRootsSetResponse.json": "b659ec17a196eaa3a23273a3e2d5596460ea329bc3ade249971576bc723d9e96", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsListParams.json": "1d245374e64c5acc9739dfc68a4fe5114c6c9147af04c480886f1846d2ca6239", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/SkillsListResponse.json": "230f125d6c36ec1b1514018a0bb6d0627f7308ea82f1ef04cad85490de482bae", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/StrictReviewRequiredNotification.json": "16b50621c0982d84bd83b6e85586c1038ff309337e4253219895be7c118df470", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TerminalInteractionNotification.json": "5383b3d9681d3c071c9845fd4f043afd60fbe1bcc3650939356cb03848a7d627", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadApproveGuardianDeniedActionParams.json": "082e5278ed4fb1fc23eafbe658e95ec21d81c446bb6daf2b57e25e8cd3aebd5e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadApproveGuardianDeniedActionResponse.json": "628336c7cdabd508d5202695502bb0f9ce42fdde380f5efdd4b033cf215d93e5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadArchiveParams.json": "dc2c0b133b814a5d9d543cc37afdb3f4f22feca35b7cea4272834b20a1e47705", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadArchiveResponse.json": "2e021dabd0930ae3e2beb68cd0ddbafc40fc20cfbf8dbcb5e2f9c0493d06a08c", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadArchivedNotification.json": "54ca94956719ade8682c766f31419ee9953dee8f4587b5b30efd0927de6ca26e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadClosedNotification.json": "d504cceb70e3397ad684924b08d3bff328a927be02ef4e3d482a18e27bab73de", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadCompactStartParams.json": "684b20adf20213a9fcbca31b59108feadcd5a8b693c16431c20d701049df3737", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadCompactStartResponse.json": "74674e47f33e37d7d97d144eac1789ef0580a1fc12d45a5675bb97caa08d803a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadDeleteParams.json": "0d5425d94af95e3dd20971cee052b2cb8c7d0d23195db1d17fde4e59cfbdec4a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadDeleteResponse.json": "333c0c5df96d78d1bcbdb19b57ddfa941de9a02bdae1c29d13c5311c2cdf6527", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadDeletedNotification.json": "6f8d6fa96700ec6fff4b8c2bddf6768539b7ec7ba5dc05483aba53f5183386f9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadForkParams.json": "60540b97d453ddbc5e12bfaa007a3718f31847d18dec0da59a5e4b89be4717ad", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadForkResponse.json": "c15e43ec275b370df2d831cb5147f7ff399aab2e74d091c07cdb3de57db11f94", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalClearParams.json": "896c8b1997edf913382393f7d0f20ced4344714b9f0e8ce1f6564a11403e1675", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalClearResponse.json": "2652c2d0072be8ccb71c8dcaaa054aa74f974e68156a73451baf72c8597669c2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalClearedNotification.json": "ad6c2cf53970e45cae55d36dbddd84ecc7b34837846616493efa7b132a35a051", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalGetParams.json": "1a5de89b3c5c49528af404a65411a73ef05dc7c9c49c3f00c90d9926dfe34137", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalGetResponse.json": "f610000963194731c96ce2b45e46722ca700f1b6ccc1fc55a2fd95e526018fd9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalSetParams.json": "93162f095e9b3b5a051ceb24318b8922c663edefc1f8c67bd378085c0d6c01d2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalSetResponse.json": "b1c61b6068b3b73dd3d97b38f8a269593f8f7added4643bfdb2016315b71ad8e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadGoalUpdatedNotification.json": "52010479c7efcc6dc749e2d9bf1e27c134453d92a1f0b367193d8125eec1fedc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadInjectItemsParams.json": "8d7e754402a2bb71bd817882076d2f8ac4cd75d4573306db082a83b841aa3532", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadInjectItemsResponse.json": "93d909e5b49b44da02072d340f8ad0ecd417d448ccf27fe50be7e369c7864159", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadItemsListParams.json": "ff56040c327ecdd30ef02affac9bc71fab64031e8980f2b4fea9fd8a888160b4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadItemsListResponse.json": "886369490fec07067597460301b3d5c1dc9aedc41ea42522cae397d8babe6156", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadListParams.json": "b227bb78acf9b91060d03c56d3f2072cdd9f1bd08290c11e8869f1a663b16da2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadListResponse.json": "351be50beed03976ddd63e8027e9ddeecb240d7611856b2dc19125c3f8eba400", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadLoadedListParams.json": "42c2d124ab2b2998d84f0126daae2d32b0bf9c5a7ea7266e3a0814e5e37cf00d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadLoadedListResponse.json": "1ea02c4710083e552b2a3a89b931b9049d5bf05b7db46278b8352cf9fd80cd52", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadMetadataUpdateParams.json": "190da07d8c7c89c44b1e44b4e57fb5d803f356953534498a7a7f39fe29a8a6a4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadMetadataUpdateResponse.json": "c1c1095f8ebb5a975c7cdd8b4fb36b81e3e2797e35209b2cf0a4597c6f418961", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadNameUpdatedNotification.json": "06d5e6b0e1eaf03eb88891af58eff14368a76e300a40a9bed71bacce2093b960", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadProjectUpdatedNotification.json": "ad31b029957a9259f26352ce879219cbe25f0314ae883d02ab811a0c6427a1e5", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadQueueChangedNotification.json": "0a960da43fb14f69dae2550ac4f8517760464eedbf95a9977718548739fdcf21", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadReadParams.json": "dfe040c6ac71d30795b8be3f3ff232e66f362a37f883b491e5d1ea367f470db4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadReadResponse.json": "a76583d07f6096fee33045da2dc9caed84d858f8f2d39b37bb38528dbaf32511", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeClosedNotification.json": "5290a73f8d4652b59d2f82d89c7bd289003fe2981fb0c628a61e801fa2123364", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeErrorNotification.json": "aeba7e4b477b4825b41990a4da69b0f3cb3a00f44cf9e2e42e275b944b7cb040", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeItemAddedNotification.json": "48aabfcbfd2361b5830a93257bc9eb31a6933f6e390694e188bfb287acbad9b4", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeItemCompletedNotification.json": "b2a5e38840b8afc2111620c332801603e832b91ad4c95dd1f13c926923b760ef", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeItemStartedNotification.json": "ef1a68a635ce680b321e276fd9144ef614b37bab16942368bdc16bb8ee217f46", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeItemTranscriptDeltaNotification.json": "42f2456726367b90a2626a32f3f88495de87032243beecd9bfbad28734f4b62d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeOutputAudioDeltaNotification.json": "4f73a5c606fda4984da4fc14e4cd98f62c8f9aa75b2db17cff76562c2d176ec0", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeSdpNotification.json": "1e276f48d346e6cace65551f84ef9b0bc8daba2a3ce93499f3a902551de239fc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeStartedNotification.json": "483d324381a8ced04c8ab158c825bca2b64c06a4e85b350a086730050fe8f188", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeTranscriptDeltaNotification.json": "1a6add677534de891026eb56aac815b2585fbd4a6d6475f679a722c52b778703", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRealtimeTranscriptDoneNotification.json": "0000453425e300fd19ac2bc5fba4ebf3fbce48ac9a9b62ceb8bc5db8b6c77fff", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadResumeParams.json": "8ac68582a81d60940b10b330be8546123f56bfe246b56f8a4f121da00f347cf2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadResumeResponse.json": "a553d6b1eb66111ca556e22138017ec54fd07c3257dbd2d5ad97ad7660786345", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRevertParams.json": "3a5e85a67906c8ea3ad9f5065559d263d968a28a957739e7a1d9e4e1981e4eb8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRevertResponse.json": "de7206155e188cea30dfd81fb3295d6e2554a7cc7b58202c4b0a49e9623affe1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRevertedNotification.json": "570995a91a4436d403bafbf9a4c34ead666b137ecd5406803e14826a6d84cf22", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRollbackParams.json": "27002ceab514bcbab10ad2e0a7b9b842f9ae51bd5e8c084ed14960889b422ebd", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadRollbackResponse.json": "c5e1d8f6845e0840068cc46422fcc986a7648487219a901f8a0f51ee9fbb6ca7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionCreateParams.json": "e3bf941ceab7a4dd39ce1b4063168621d60162aa97f7171cef59819c999c501e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionCreateResponse.json": "2b0b0e7a2651354aac35aa5d1a423b9f207ee8d46b2de077df747f4ed4f4c8de", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionDeleteParams.json": "93cc3d12bd5580966b59bbab8f2ccddd31b3b4bce56f76d49cfe41f1916b5deb", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionDeleteResponse.json": "9bbee5cca1fca02e4a65c2481dc3b24f090bca7afb786923ee481017b133b091", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionListParams.json": "6aea71b3fba46351fcaf648eab0da564080ba424599a012648abd9fd44464cf8", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionListResponse.json": "dc3b5e5501a56ea2a1a83cb97c5221b355629f8c9468793d94e22673424140bc", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionMoveParams.json": "48bc921055838df25c5595c96be7bd25beef3accb8bd1d28026fcaa7d81487b1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionMoveResponse.json": "243299d7eebd4fb264d4e75efeb5058982681202371c2b83ff1a63b3369ddbb6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionUpdateParams.json": "6cc7b7e486026a59d6fcc0701407d9293c0fe8b96e41894630c3a39fee967980", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSectionUpdateResponse.json": "4588cbf0374204c17f02f15eecb5390cd5346bc551675e07e541bbfd28d020bf", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSetNameParams.json": "8e334c816bbaeb80f807aca61bf659246f3f60c245c21b5cb7e3ca4ee3ce4820", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSetNameResponse.json": "f8763716433feea94f7c1ebd59b6cea4c261432e83240c13a8d49ba8185aa567", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadSettingsUpdatedNotification.json": "e601ede3c6947f6df0aea6b1c091c01e38ef7909df939f5ef11c8f836fc8a2ed", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadShellCommandParams.json": "dc646457ca36be601c8c3d15c44d14907d9a165ccf2b9635a8e9a878f0ca0727", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadShellCommandResponse.json": "fd4911613f6a6da2ca13b75342501d4d61f64e00a1083c6d60038369b8caeefe", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadStartParams.json": "792e2f32e37cece971bd616664ea2053741acbed4e9c92e9d1766427718f2ecd", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadStartResponse.json": "656f8fd0fe91f533126cbfdb9369cfab550927a229e48dd46460f6f015d2b186", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadStartedNotification.json": "d66a9b4563471c5fe99de18cb2bd3c83e7b6aac8deb0b0579406b3b7c74d7b35", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadStatusChangedNotification.json": "26f3c60c1b73f7fa2d31c74429cdc36f8746c76c33e3d314b3fb61d3661f05f6", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadTokenUsageUpdatedNotification.json": "aba4f6c7e4a19b2b842c08ee793b57000c07dafd57b922ad0d8e7c76609108c2", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadTurnsListParams.json": "2a8b93d7d4437cc25e16a1dde16d8db3c338d39e16c5eece2a56e943a21577d7", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadTurnsListResponse.json": "45bffd91efc358859a1a54b8165c0a8b1c21ebc2a312da9f25d05ff27af798ee", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnarchiveParams.json": "a1d5d847b61ea16ab09d5b9d1c1461134a7829292aae02a7e11b0a69b00c76ca", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnarchiveResponse.json": "1df1bd13818b3c22a2fb4a64c55b393778e0eaa65547744333d8df9bb40a29cd", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnarchivedNotification.json": "fc00949cdc588b84800a26403647eda0e22d6f28663dc032a90db9c20dfa822d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnsubscribeParams.json": "77c67e0dc0a729af2d4612f30ed63f1297160232e96cd32b7cb9cc3e7fff0233", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/ThreadUnsubscribeResponse.json": "9cad5e71a589c3c20e0980ce34a894a29e2898a075b10b1493bc87f32500081a", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnCompletedNotification.json": "78af2a37391e8e669a4020cb58593e4d3e378756ced79d5fec72374fa69fb94b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnDiffUpdatedNotification.json": "59a02535094b591b926cdc11a8e5f5babf73b442323a02cace1661c62f0c2918", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnInterruptParams.json": "6dff382dae73d1dbc58406ed045605f647e7a49660e2540fbd2c6c24d60c5f2b", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnInterruptResponse.json": "531de6be06fe979b5963f249bab82498a175e614bf65ac12fb2e849dfe60bcf1", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnModerationMetadataNotification.json": "90fe9ade83c46fd42af9d023737a9990595dac71e059158744950f538e802876", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnPlanUpdatedNotification.json": "2522f743be0a1e9666dec5ad4f18d8ecba3c4f16e66d510b1491d4117d1dd0ba", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnStartParams.json": "a3835e8c1e942e4b358e1a670939b89918b16c4d13105a579899892b7ade6dea", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnStartResponse.json": "6fc49c3e5d0ce11a3a109ae194619b04d6e3ff98fa29bac683fdb754608958be", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnStartedNotification.json": "d4b59fd396cadfc2377f60c9f9f4c9367dca95362baadf7817c74e1b9c910c4d", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnSteerParams.json": "4a52eb76e7a717bb388484ccd7538737fca0df35481fc30a21e259f1bfe96e37", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/TurnSteerResponse.json": "866ba9a77c12b5d570c837d58f73bf40b24e50fa93404bdf792dd984d313b1aa", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WarningNotification.json": "f83c400591b923400ca0beaaaab1341c712d5ac0dee4ce6868a8e590f46490f9", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsSandboxReadinessResponse.json": "077f60a3d6d1fc226c45059472b29caf675fdc3fdebb29569eaab94bd05ceb00", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsSandboxSetupCompletedNotification.json": "dc5383ae8fc2a46badbc2dab3ccd0447fed97729c2d5a177e28c4a7e2a60c329", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsSandboxSetupStartParams.json": "8610d077fff4fc5811f2e33dea82617a15ffb82f08e55e1540aef877133f5b4f", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsSandboxSetupStartResponse.json": "830bf89deac3e73e36b7d9799ceed32ee25e782c30b1d25266374aa020d3bc7e", - "docs/handoff/reference/codex-app-server-schema-0.153.0/v2/WindowsWorldWritableWarningNotification.json": "bfa34d4890c8121a04412b8d53314a13adf98289fdd948857fd97b808dcbe79e", - "docs/handoff/reference/mac-facts-2026-10-03.md": "18c728dee09ac63907f100c86525ce89e790185838154dbcdc0afbc5eef396bd", - "docs/handoff/round2-part7/privacy-signals.json": "511294f40bd1dd8231178d9906ac9748889a74c2001b3e02cc8a3c3987298499", - "docs/handoff/round2-part8/README.md": "17ce3a43ca16572a43ebf6dc3b6f1c28910751f35c720fde531d5221d274717e", - "docs/handoff/round2-part8/privacy-delta.json": "1dc41ccfe8411ae8433dd86ee317da55a0d114553dc74d4bc589f2a3f2c5befc", - "docs/hardware-fit.md": "d14f89076a7ab37a61a3360c4ae2149f59cd401e719461efcef20af2c5b5e275", - "docs/ideas-switchers.md": "cd24cc08ea91a9724d4dd5df6553ce1b5ee4d7ccc0151a5557f01daddddd59a1", - "docs/input-devices.md": "02bf83893ca3125232a8dcd80ebab1fd265ab6bfe1d96fa949174dee68fcd6ee", - "docs/integration-loupe-glance.md": "74111d9a7fd05f3882752a08ffe7b4cf7213acd5a8bb10a7a3a7a491d070cb9f", - "docs/launchpad-design.md": "03c47604122ec36bbbf1ee4546e2be570e59abf6794a55714e02cfb8c806bb36", - "docs/launchpad.md": "6955298463ca2aa406fdaf2d3c5e8193a6264cc0affc800c8d592684ed7c675a", - "docs/lid-effect.md": "cff5610ca05302afd52293633b36900e57d89abb26d611ada26faa7013b67e59", - "docs/live-activities.md": "4caab93fe0c0736d85520feb41d28e32a7bae94bcb8f3efa2ff0440fb9260c6d", - "docs/lock-unlock-plan.md": "59e782cecea525c98dda7033b07c4873bd9be678c244587059a7edcf9e82735d", - "docs/menu-bar.md": "6ba87eb72d428ad59b853cf3e029acde5f3edfa2c4f06cdc056f1b226d778158", - "docs/motion-direction.md": "8f6c801d7a189ebc57a0dbf3057b0c0c5786d89b35d80280cfc6df4147827898", - "docs/multidisplay-authentication.md": "6bd31097ab87f2f1e068cba583ca093e4ce381661ff72fc5cc0074964abebd67", - "docs/niri.md": "4c52682ba547845e1e336ad5ed368f2c4cbf21499dd0862bf6415a2222a07556", - "docs/notch.md": "71c0d9daf1cf118544aae131550adfbcae2c39007631541e7509c792a7dfe2d3", - "docs/performance.md": "03a3bd2918a1f58e3bc4ce3dc7d79d74e88ecbbbc620cc2e91576dc3bd5833db", - "docs/pip.md": "74c9b37f4473d7ef8c7bc54d0a3cb64f87bc02e5a853e5ac013adb08023bf8ff", - "docs/pomodoro.md": "b1295d44a0932d2742d207edda8c21294cdcc302c593eb3027eee3de793e76ea", - "docs/privacy-page.md": "f0d41966695d89e893ce3a315e177e1460f414548de16a1d2988a19b1ec78770", - "docs/releases/README.md": "79301ab70bbe3c5bf6d7c7095107353d92d1d63eb879bd0fe40d72a7f313bb26", - "docs/releases/v1.0.10.md": "2ad3ba06630f9c018bbe28cf2170b256e81b456c78d25e50908a95759bf4e315", - "docs/releases/v1.0.11.md": "9aa1150983710d8250fb56c91817eb1a25b23428cfc58c23d6f8abc648726198", - "docs/releases/v1.0.12.md": "23d4aae11e4085359c1519191cd6e6fabff2c7e11f201e312c0a08d07b9ce8e1", - "docs/releases/v1.0.13.md": "3e57abbf6c7cd8e21bf51dd5efd7a1f0a743c9db18de4f90c7212fd22bdbf6c3", - "docs/releases/v1.0.14.md": "9bf99e2532d4f6b01890e6ea2afa358e362024d365774350bf4c767fe90c23e7", - "docs/releases/v1.0.15.md": "79383e8838bbf160108a38fb70a272f26d4cb2180dc4d181a06fc94535cdaba2", - "docs/releases/v1.0.16-checklist.md": "cad6ca99d72feb5702d9ddb8459ea37bfa10246cd66434d71139000d3508eecb", - "docs/releases/v1.0.16-ledger.md": "5ef9ad81aedae8dfe2089eef058a022ffe22fd14d34c33b3af2d937ce8313170", - "docs/releases/v1.0.16.md": "d28ea7827b3c8c8d928e722edb1d7b7641306f6fcfe3134ff2a7015a6e08febd", - "docs/releases/v1.0.9.md": "da69d052a7612cb91c5c49b236824ec85cfb8c3d2ca5503621a386b129dd3368", - "docs/releases/v1.0.md": "3783367f227bc76b9e62c90d904e0f3ca0b0fa138bc6ea96542643dcd2a84f43", - "docs/review-2026-09-22.md": "5a8cf4a5f91c97787a44d3df90e075f64a7b6da3b1e0650b903df397fd521d05", - "docs/review-handoff.md": "88248a00dad8f753544b5b0f7761bf425f22ac9c129550628a7d17fb5bdf6da3", - "docs/scorecard.md": "82857ac3d1ff908d61b37d07e8be05210b61730e6de46e11a57b048f54e821ba", - "docs/slide-over-review.md": "1c0b2c7c4ebac9921566ac68e958e68930cff0fa140d1abfec210cf0c80eca1a", - "docs/slide-over.md": "9fcf23e41ebc04dbdd03532cb1740b368e707532dbde827fa1a6289e5c634a84", - "docs/ssc.md": "487a8f561f4d324f4db098edb82ef9f8d9db6caf86aa2ab990edbde9ffbd1baa", - "docs/stuck-habits.md": "c6b291d7a477e3ef5379957dace049db769b083982e7b14a6cfd4c214f01620a", - "docs/system-integration-polish.md": "ccec7301237a4118354791bb2cbb6df03ce5fa456d999b4721acd6c56872068f", - "docs/third-party-lock-overlay.txt": "1520c03fc15ec8c17bd56947eabf885c593730a36fb13498bffbc688ed4657fc", - "docs/touch-id-island.md": "71d3979b588171198c23110980b136ce5eab5cda56155e611e31a17b41c19a52", - "docs/update.md": "9cd132c1b37d598a19e341fd3009fcc52b3254456f76c77b35d4207fcf5ef1d3", - "docs/validation-2026-09-22.md": "62abd3ac822ea9dd8fadbe218d7266ec7d0a9237bad51bb7c4e972e92ba4425e", - "docs/vendor-biometric-research.md": "a01f2d2b7ccc767b47bffeadd97cff72fcf9d02341217a36d613422ba3a306b4", - "docs/welcome.md": "e6749f4bafdb588366b5e6b1b6b3cef2fad0b30081fc686745c9d8b2bae659ba", - "docs/window-browser-performance.md": "96a7db937e1bc15ed831508f20fbe2bb9fec038a78c15e52255873c9922ac980", - "docs/window-browser-polish.md": "e6c24261ca1007e214444d9e6ac14ee1d330aeb0f04720713a3cc3b633b85fa1", - "docs/window-browser-progress.md": "4b732c36182a6a3bf53e7274efddcf4e04c982ed20d86dc07e9c982a4b0a3b9b", - "docs/window-browser-test-coverage.md": "5b6de1a8159407b3875660621a421304cbff7bef50e4480359135bfa2aa056a3", - "docs/window-browser-visual-qa.md": "46c5f8e44074a816ee370fd8dfb2bea63de9d04bcf867549f579a20eed714b86", - "docs/window-browser.md": "b8015c096b7ad42d33a52ac65babf91aee7a13d3df9ac87f76f0a2d9a294b64f", - "docs/window-management-quality-progress.md": "3d51827a6c8f2a1603ba940b53ea1fb0545a119ea7c39e2df5af2bdbbc004b6e", - "docs/windowshade-requirements-status.md": "f25a63f84555d95a2e9697287d06fdaa5f7c89536f9911cd4c5711289a2c90b7", - "film/ws2-concept/.gitignore": "9ae8e02462ff393bb40e787f0a65e79d241ed4f74b32cc57c64acb4ac18fa3fc", - "film/ws2-concept/BRIEF.md": "05d4db19471905be1b8542253e00f621c6ffad9fbdf57ecdfd14b10df50b5dee", - "film/ws2-concept/DIGEST.md": "1b74350777e94f81fb7dda50a092c9036ff465abf79750b44604c432d3c3a5cf", - "film/ws2-concept/package-lock.json": "89819b15ca1e71e9af46b6dc766db1c181b5b4dc14d1f2ecd0630c164dad86c9", - "film/ws2-concept/package.json": "c50558ca59bf2afc844745f51ce7b1b9310372af4f3cc9c7f6ef9aeb51526e2d", - "film/ws2-concept/public/footage/SHOTLIST.md": "a10154e0ef8db5ff09ec6f35d1d2b182229a25e0dfd75b0028b908f6b937fac0", - "film/ws2-concept/public/footage/manifest.json": "48793c6bb3ed0dea0fcfe54eb2c936e3fa0d3bff5499ba6954b704b3325da9a2", - "film/ws2-concept/reference/LICENSE-video-shotcraft": "b2ce9877a55547ada9b870150664d1468ff777e67cc9888806a73927d31c5771", - "film/ws2-concept/reference/aesthetic-rules.md": "4b5f3efd84d10d3d0e1af742a2ee16cecbd1c9aee8e982ed5ac1b7c9f14de78a", - "film/ws2-concept/reference/cards/ai-stream-response.md": "a44dc2f57dcc3e367e21ecd71669f6550262e5746be0af87e95309ed40308e65", - "film/ws2-concept/reference/cards/circle-match-iris.md": "5c5e46f211f90fdb437865a863144abba7867eea34d7c19b34d5bc0e5e063f14", - "film/ws2-concept/reference/cards/crash-zoom-punch.md": "7ff7214d17dc305718683ae15b308ab6704a2cc82ee82a6afe9db5cbe7a417f4", - "film/ws2-concept/reference/cards/dataviz-landscape-open.md": "40318d4903ce1aecf1b39a0beb7738e7ec9b41f35ce49978eafe875efa402439", - "film/ws2-concept/reference/cards/deck-deal-flyin.md": "1341d0ae4728efa49ee47ee5715eb11c19155ba695d15b79ac5f986c180f71ad", - "film/ws2-concept/reference/cards/depth-layer-moves.md": "3caa8ebc9c5ae5af8dfe3932f43bc88c1f1bd5d4e6980a0c0461be121bcf1acc", - "film/ws2-concept/reference/cards/draw-svg-trace.md": "efafcc9abd8cd7dee3e22036b98dc7fcc1c5d122ba7630af622f0714675a335d", - "film/ws2-concept/reference/cards/fui-hud-moves.md": "480e920e376e8f18529142d06c4de84544406b0e5f2dd37062dfe274b3f51305", - "film/ws2-concept/reference/cards/glass-pill-dictation-typing.md": "fd41dce82df9de936d958fee0640d0b411f13a5e0f71711280076a848e639036", - "film/ws2-concept/reference/cards/icon-performance-moves.md": "e643217134fe454c5049a4bf02ece3a2c0d066a4bf7f2c92e3d2c17daed351fe", - "film/ws2-concept/reference/cards/input-trigger-moves.md": "4ad36f963da66a7b1c9315da7f80ff75fe3e44d687036c876aebdc1b7484a992", - "film/ws2-concept/reference/cards/letterspace-materialize.md": "f6632e8da2ab2bef13248514617e3e636c79d9140de4605997312b01060ddd4a", - "film/ws2-concept/reference/cards/light-play-moves.md": "e45f10c67bca8d9bf20af879f60328182ba71a67fa0f90c082f8c8feedb42328", - "film/ws2-concept/reference/cards/list-stack-press.md": "fcf031f506570e4838c9313e4957c8c290a048a35321156ed61874685e8110ba", - "film/ws2-concept/reference/cards/logo-shrink-wordmark-lockup.md": "1f76c5434a85bf2e5b8867142419577348adfe265fb215e460ec2b7e239b189b", - "film/ws2-concept/reference/cards/morph-from-primitive.md": "c338f6d3639b65bea1edff3c5749e530daa9a6ce70c8f44e6bbffbcfe86a6456", - "film/ws2-concept/reference/cards/odometer-digit-roll.md": "8f8b356fc57d914d4b324244fe437b232fe10030d212482a31b19a932c56513c", - "film/ws2-concept/reference/cards/outro-group-photo-launch.md": "6cb64b674b8bded5f08a39aceac73de2b957c7a6fdaf559921c4421b6c27d46f", - "film/ws2-concept/reference/cards/paper-title-card.md": "a474a2d6f5563239be6fabd33e0e6d9002f57623bc49ddf57ea0020cfeffc458", - "film/ws2-concept/reference/cards/pill-slot-cycle.md": "32cddebfe7bb0869057e0f81f66c6d6044ea152b381f402a26707e9d4274ff62", - "film/ws2-concept/reference/cards/quad-split-parallel-scenes.md": "22b9e42c9d136c29710ea9371728205198be2ec73a90322107ce92223ea18fcb", - "film/ws2-concept/reference/cards/scan-bracket-sweep.md": "e80d67b51792b6355baca5f0547d8b9255675ec3fc6b935b43b57f44917cc686", - "film/ws2-concept/reference/cards/shot-transitions.md": "2cdb68da4060b519d4b0545db17ebc5ca000f04c814f40b0de4d4082756bc216", - "film/ws2-concept/reference/cards/speed-ramp-freeze.md": "7d365e36082978b66ec5bca6623b9dbe57c7898b472f031a84d2bbbd09c3f56f", - "film/ws2-concept/reference/cards/spotlight-hero-card.md": "fbbd603a71ff0a472f37d4ea5647506da2c06dcef2f2d4687d3bc20c2484d989", - "film/ws2-concept/reference/cards/svg-shape-morph.md": "ddc54c05b5c397adfe9c9fe458cf1f9ec62232d8162eb82ca3dca00090250f71", - "film/ws2-concept/reference/cards/tension-camera-moves.md": "6612ba598559261d2bb556bd536eeb1659490102a48b57e034fe053e10774631", - "film/ws2-concept/reference/cards/terminal-3d.md": "956b483a20e9bf49c192b53ed060fa9690cc5eee771e0d3ca29758768836bb4c", - "film/ws2-concept/reference/cards/transition-hidden-cut.md": "3e6b872df779eef27a4ec0304d04a02d49ba5a3ad7bf6744020c1de94c64d22e", - "film/ws2-concept/reference/cards/transition-travel.md": "7e1d46357459532c97dde76cf2631770dd21580978f13437a0c4eefd647653eb", - "film/ws2-concept/reference/cards/type-and-filter.md": "05da1b7e16fe652d2f5868485e913d08caaf87febb5512bd27b71d6b6c964fef", - "film/ws2-concept/reference/cards/voice-waveform-live.md": "d5835944532b621f55fef1894bbf6e7ade6c453402a8a9a01133626b81708d98", - "film/ws2-concept/reference/cards/wall-reveal-moves.md": "e0783733037425ca97c48fce97fd10fbd1c104855d59faf8b50115f54f72d91d", - "film/ws2-concept/reference/demos/_fixtures/Fixtures.tsx": "e06a6edce67ba854c46b897c11575d487ab265a2b3edf2b480be85dbe29bb5a0", - "film/ws2-concept/reference/demos/_fixtures/Motion.tsx": "961a9ce2401e38b5fe22fce7f44d84fc656d76aad0b178082e447feb01494421", - "film/ws2-concept/reference/demos/_fixtures/PageCam2D.tsx": "36b3b90680df7e99f0ced02f135181d7037f74c33a4f425cc01f7a110d20f69a", - "film/ws2-concept/reference/demos/ai-stream-response/StreamResponse.tsx": "017726ea7fd92256de50a1c5018391b88efc9920abb7d0cf42dce0e2c0db3df5", - "film/ws2-concept/reference/demos/ai-stream-response/agent-stream.jpg": "8a6683ac0348347f941aaf5f396d48e70086e61ef0667626cb77e74b48d076f2", - "film/ws2-concept/reference/demos/circle-match-iris/CircleMatchIris.tsx": "0c2afbb49d65aa15241396fb2343ba3cb046d0958cd80a9eac1925e4f93efd20", - "film/ws2-concept/reference/demos/crash-zoom-punch/CrashImpactReal.tsx": "6150253befeb22cff49492dcf3a5b56c01d667e3df6136466e480d7b3b92789d", - "film/ws2-concept/reference/demos/crash-zoom-punch/CrashZoomReal.tsx": "495a5afc91a4c93424d15edf35c8767d1ff90f4d9515bb9194f68d7f355a181f", - "film/ws2-concept/reference/demos/dataviz-landscape-open/DatavizLandscapeOpen.tsx": "f575d1387ed5fe5bd1172ab50cdda20fe0562d44bfb469ec6d199b97bacd024a", - "film/ws2-concept/reference/demos/deck-deal-flyin/DeckDealFlyin.tsx": "4738e54d707a82847d1a5081af88876a872465eb3ead94f1c7682acf8e5a251a", - "film/ws2-concept/reference/demos/depth-layer-moves/DollyZoomReal.tsx": "47d44cad258e8a3c7b7bfd7c5e5b3535360b486f21621e6fb25d210c7e4797b0", - "film/ws2-concept/reference/demos/depth-layer-moves/MultiplaneReal.tsx": "b67c6ab37f02f1df6033b54fdb08d1fa0aa85300404578be50715285d16d2124", - "film/ws2-concept/reference/demos/draw-svg-trace/DrawSvgTrace.tsx": "654e26eef7357c64a828a6cbbd790331f9865e0e9c18768de15de46c281aacf5", - "film/ws2-concept/reference/demos/fui-hud-moves/LineUnfoldPanel.tsx": "87329b62b3dfe20b6c08c9f3a559b2f77ee4841b4860cc2be1a00ddf2d5d0122", - "film/ws2-concept/reference/demos/fui-hud-moves/ReticleLockOn.tsx": "46bf287a5de1fde17d34e3725ed6cf66d443a90cff63ebcc907293cf0c31fdf5", - "film/ws2-concept/reference/demos/glass-pill-dictation-typing/GlassPillDictationTyping.tsx": "b3d70491d046eb645ea594e5e2a5f9d24d40dd0cf3860d7e65496e528e47f688", - "film/ws2-concept/reference/demos/icon-performance-moves/AttentionBounce.tsx": "c467057383f91a4433be617db40d92d03f5f53f47e4cbcedb66091492f50cb87", - "film/ws2-concept/reference/demos/icon-performance-moves/PopBurstConfirm.tsx": "cca22774f4d75754795f96e0060f727a8b062c3005b7bab5cf45fce86f02b80f", - "film/ws2-concept/reference/demos/input-trigger-moves/CursorPerformancePunchIn.tsx": "a2970990b385856cd9e176757eebdcd778fca864f7bf979c976b8fd4cfab53d3", - "film/ws2-concept/reference/demos/input-trigger-moves/KeycapSmashCut.tsx": "cd995c264dd139a0e6c161d59bb9b5cff17d92fc2ac4efba2e7003e329d53904", - "film/ws2-concept/reference/demos/letterspace-materialize/LetterspaceMaterialize.tsx": "c66c6a726608e8de3584afd8ff25406eecd387edcf313c701a14d577cf7c9341", - "film/ws2-concept/reference/demos/light-play-moves/HalationBloom.tsx": "515567c881a3b18c8ae92d001b0b656b506f3bbadea32d75a82a476c6ea47096", - "film/ws2-concept/reference/demos/light-play-moves/SheenSweepRetry.tsx": "c411aedec951a84afcf1722c93e8d9bec2864752610c652cc8a7d9e862f5e799", - "film/ws2-concept/reference/demos/light-play-moves/SpotlightSweepReveal.tsx": "2abd85f00e8221f6a6b67c89d0be24fea3dc661a1f00d68e3dc954567cb4b438", - "film/ws2-concept/reference/demos/list-stack-press/ListStackPress.tsx": "6649fa6321663c6b54c9ca326147917d89a2dfd61d582954b996c7dd83c878db", - "film/ws2-concept/reference/demos/logo-shrink-wordmark-lockup/LogoShrinkWordmarkLockup.tsx": "d8581f081b037f36954214276aefed9039ebe8d76aadbe91ffdf7c6ff3d4a4df", - "film/ws2-concept/reference/demos/morph-from-primitive/MorphFromPrimitive.tsx": "f18d82ce6675be5c0b097969285a973c122633f2844fd1c4a81cc1c6a97a0d5e", - "film/ws2-concept/reference/demos/odometer-digit-roll/OdometerDigitRoll.tsx": "e91c46c1c80f68f83fbed2c1c39e5ad22d6be5799f3541978f56b9e61ee73af2", - "film/ws2-concept/reference/demos/outro-group-photo-launch/OutroGroupPhotoLaunch.tsx": "af4bbbf21570b65bc8e33b6ed679700089315bd17dffaf17864e4a8ac1e39830", - "film/ws2-concept/reference/demos/paper-title-card/PaperTitleCard.tsx": "5ab4b473e631c2863d6033be22231a07afce2b29d08322d5ba821607c2642a16", - "film/ws2-concept/reference/demos/pill-slot-cycle/PillSlotCycle.tsx": "a8db19162d267d107904fd8e46573e9b74854bcbf871dd604fac56ff58b87f2f", - "film/ws2-concept/reference/demos/quad-split-parallel-scenes/QuadSplitParallelScenes.tsx": "0ef89104610b5a00fc7bb89367957fa8b42df0b616a6c98ed535af6984f07c8e", - "film/ws2-concept/reference/demos/scan-bracket-sweep/ScanBracketSweep.tsx": "e96046d8b393545fc17a5b6c5d0158aae95d2f2285b6d2a997232a6595e6686e", - "film/ws2-concept/reference/demos/shot-transitions/BlackCardTransition.tsx": "4e4698247bb6bdd489ff34b46db292da07e616e575681eb13624b4f21d883561", - "film/ws2-concept/reference/demos/shot-transitions/DarkTunnelTransition.tsx": "526fd36c73b2aebbf01164900bc30e953bfa1361e76835d4efbfe47f7980ca67", - "film/ws2-concept/reference/demos/shot-transitions/FocusHandoffTransition.tsx": "00662137985de0d86b86cb882544189e6cf69276e8d849f45c7b2c23a84b679f", - "film/ws2-concept/reference/demos/shot-transitions/MaskWipeReal.tsx": "92eb6e2a34f4f075b286e03fa4ee000fda8369ff5f3b2bd3a02964e2efff3713", - "film/ws2-concept/reference/demos/shot-transitions/PortalWipeV2.tsx": "037b4f5bdd9b5c3d73a11d2932acddc471127e7051c122aee0f6423b77f511c1", - "film/ws2-concept/reference/demos/shot-transitions/WhipBrakeReal.tsx": "87c84d66f0675d921ca4cfd55a9fd9c5a5ba9a7717870d4b44c4c391c81ad063", - "film/ws2-concept/reference/demos/shot-transitions/WhipPanReal.tsx": "eda7132e8c2e142be87995b50a30e48c60c925872a9047c6bb8f54a8406be37f", - "film/ws2-concept/reference/demos/speed-ramp-freeze/FreezeAnnotateReal.tsx": "5ea9848eb760ed76123ab152d4e2b60bb3b1df9472c3b0ca12e6723fb64f35c7", - "film/ws2-concept/reference/demos/speed-ramp-freeze/SpeedRampReal.tsx": "f3f9e54385f0920aad4071d6f85bf9c878946ddb7908894d5802ab2ecd5f11b8", - "film/ws2-concept/reference/demos/spotlight-hero-card/SpotlightHeroCard.tsx": "9dcc839d8953ff930ade91c82a7da178a31afdaa1e81b1b7ff59820e4b6cb04c", - "film/ws2-concept/reference/demos/svg-shape-morph/SvgShapeMorph.tsx": "9e6bfaca697bd36837b3c31163d607863942570daaa0b5abda0c0c5f131172ed", - "film/ws2-concept/reference/demos/tension-camera-moves/BulletTimeFreezeOrbit.tsx": "975f02697f579905a6d83461727f7e258f285fa4738d783ac96b3e6f997413bb", - "film/ws2-concept/reference/demos/tension-camera-moves/DutchRollToLevel.tsx": "de3f0848a382c77d5f1d7824041fce6a371cef804be592845fba981dd83564d0", - "film/ws2-concept/reference/demos/tension-camera-moves/PullBackIsolation.tsx": "93e36a2f42e96497627fb6aac92854d914f70037239a772e5cb3830e7f1a9844", - "film/ws2-concept/reference/demos/tension-camera-moves/SlowPushIn.tsx": "db43d1d0d52b27cba3a97f17bf2999bcbb8750f5c4aee460889285d7c2647446", - "film/ws2-concept/reference/demos/terminal-3d/Terminal3D.tsx": "810807a14ff6a7f813fe2ef999a40364734043428d34d9e272b24e7df18280d4", - "film/ws2-concept/reference/demos/transition-hidden-cut/InvisibleCut.tsx": "41e68ca391f37c1ca10288407283c38f71844ab7f796b36a37056d7c56f43ad5", - "film/ws2-concept/reference/demos/transition-hidden-cut/LightLeakBurn.tsx": "31e4be432a84e13d6fa233ef3aff4a40646d67b949e16e9a5bea2a8f7b62b5fb", - "film/ws2-concept/reference/demos/transition-hidden-cut/VersusSlam.tsx": "ec0f28e508e4c3706a642798ed8516d90ef1b39c7350e1af15e0f5e9f4cb481a", - "film/ws2-concept/reference/demos/transition-travel/LetterformZoom.tsx": "272b01d64d73252aab1b70b8f6214656d046704266ca06e5306edb66fc75da13", - "film/ws2-concept/reference/demos/transition-travel/SharedElementMorph.tsx": "fe5d3a1071e71cce96470939bb6f4b4e7dc52e61058697ffa010c3e17e3521f3", - "film/ws2-concept/reference/demos/type-and-filter/TypeAndFilter.tsx": "95ab942c3e7f0416fbab7563ff326724123cc2a4ddc9fea478aebc8901cdf3b8", - "film/ws2-concept/reference/demos/voice-waveform-live/VoiceWaveformLive.tsx": "77ab5983344687d7d591e2101febe8f80bd72fcef2043b470fa24fb95ee9f833", - "film/ws2-concept/reference/demos/wall-reveal-moves/BentoLightUp.tsx": "eccb4c2211af30cb26b391ea734c326599958906411e9a3c019acfeceb87fd69", - "film/ws2-concept/reference/demos/wall-reveal-moves/GridWaveFlip.tsx": "c39a5cabdca00167d3354667442b4de477b76a36576815abc483609f1198f481", - "film/ws2-concept/reference/demos/wall-reveal-moves/WireframeDrawOn.tsx": "18d2fc4192a67dbfdcfca390d753eb52f6bcb50be316b71480e54ed32208558f", - "film/ws2-concept/reference/lib-tests/__tests__/helpers.test.ts": "65617872abe7a728cd19f12707fb456225d27ca0bab30863277d3b47e0a834ee", - "film/ws2-concept/reference/promo-energy-arc.md": "72f5be431d97c04395f3f02cbc5968922a906bcba808d511ddb5d9922b936190", - "film/ws2-concept/reference/sound-design.md": "cac6f23c0b360cef7c7d04655f3009cf5e45f79e5f775594a622e680b0301521", - "film/ws2-concept/remotion.config.ts": "dc2560488ec68013be8dfaf6995d8aa6ef12ee1e64253d7ed3ef2f9a28dd3eb8", - "film/ws2-concept/src/Film.tsx": "f9c41f018c382e43b074435f7f9383cba58337a1fd9306a6194c509c98f4ebb1", - "film/ws2-concept/src/Root.tsx": "4e1cf80dc01f8d3fbe56f9c21285b0d73e427b13284b34d218be45da30f77b7f", - "film/ws2-concept/src/index.ts": "98b03b1da7aa397e0fc89cb4600c418d3572b389cb1831b1e72e9b4400a5a34e", - "film/ws2-concept/src/lib/Caption.tsx": "e5be094d9c4321296da5078e51a83147aa39e4d95c95dccc2bf53b9f7d280d04", - "film/ws2-concept/src/lib/ClipCard.tsx": "3532788285cfe52fef4e836979832054c41885b238f4055fd84b40c8de44670b", - "film/ws2-concept/src/lib/DigitRoll.tsx": "aeb03c74d481a238dcd413af3054c264f9b4f91d5c745620e10a361fa4cbc20b", - "film/ws2-concept/src/lib/FlashCut.tsx": "2e8d9e6319f99970be839f05bc869467b3d580aaa40809efb04b5dc02dd84c7f", - "film/ws2-concept/src/lib/FlatPanel.tsx": "e5dff9388d24376db383873ce8ce32e3264ab5ef35c959733fbc568efef6acdd", - "film/ws2-concept/src/lib/PageCam.tsx": "1679bfc0c15973d5a51f6b600ae17d4d8c06c2fa3f8513e5110f9d0b9b3271de", - "film/ws2-concept/src/lib/VerticalTicker.tsx": "e4f90b838559beae465c6bb08736c00097bb0107d6dd4a378f64308e2acf1bae", - "film/ws2-concept/src/lib/helpers/camera.tsx": "8e5fc4e0ccfaa258fcbcc362761803d2c3e548cbf2e461d157cb42a134caf22d", - "film/ws2-concept/src/lib/helpers/motion.ts": "9123bacf8078982a903bb565923974902212f93ebe265e24d188e4362a8e251f", - "film/ws2-concept/src/lib/helpers/rand.ts": "0c64fcd062f1fcd7547e3da96cfa8430c2502eaf2e3f09fb2323392f8a5493ef", - "film/ws2-concept/src/lib/helpers/shake.ts": "bbee393468a944df5ae85261e9ffee3c78fd78de0087e057cf96ee36e569054e", - "film/ws2-concept/tsconfig.json": "4c1e3cf27dafa9dca603da9d50806a4cc91bd6c4a98de49cc7ccd2e171a39c87", - "promo/.gitignore": "5952c5b46c4c2fe0f695d512c95baa6bbe4bef5f3b985c8fe52da10177ceb281", - "promo/.prettierrc": "2a58e5602cb3d271fd359a75bbaf7b6e9faaf165c9178ff554ff8c48c80fcd8c", - "promo/README.md": "7b76bf357f34b9dd1e820078d85a8851eb864f4982a43401055c5924d486b5eb", - "promo/eslint.config.mjs": "7f2ca640409fd597965bedf929073b9a74f143643e1711150c4cac3b6ec5c80d", - "promo/package-lock.json": "ba8a6d7b2db0937609334aa8889a719b94b7406b21c0db37ac1b035640b04da6", - "promo/package.json": "2f57b31a94affd8480966acd14d258437fc6ae9b1b1051dc4b1951c17e029bf1", - "promo/public/icon.png": "8bddac882d6d9b4ae12178e69335e937d3391d07e3a56159d926d5b87c2cd8be", - "promo/public/system-css-LICENSE.txt": "0433a8c105e9d410ca3fb7f205aafe8f1be27e0438cf3bd1447907f738ebc6b0", - "promo/publish.md": "765fcb252a02fca61b243b432dcae6725605aa524034b1759716fa4fcd93cfd2", - "promo/remotion.config.ts": "38e9e6394e32f151e454efdeb84da8bcc616da7550bc8ef52e1721a001745394", - "promo/scripts/audio.ts": "55ff6da0a290c7644924f3ae564f8704a4786650d84fd873bdc8b977cecae37c", - "promo/scripts/covers.mjs": "738c2dfcda84fbb723fc78396c9270e0cbb19a628badf2b1433f12aa2e754948", - "promo/scripts/render.mjs": "2e27288a74ce4f26a807ff753d590b22c4b9b865bea8b4b282d017ace0a04282", - "promo/scripts/stills.mjs": "c287ccb068e3b1f252a0ef265e1dd02f5fbbe0b8ce9f7a39fc095e4680ce2330", - "promo/src/Covers.tsx": "5b5b94afc7ac33c7419bee91d55c63b1e95a9cb1b955e33b21ce507ebec9703d", - "promo/src/Root.tsx": "16d33ce51ae6063b7a1ad9fa43dbb0461b7010ad19deef854f5be796e24f8924", - "promo/src/index.ts": "957e481dd33a29b4a55ae0e95dbf763b7e48c37c427ca4bd1275faf34bc07a74", - "promo/src/scenes/DoubleClick.tsx": "ae808f2534b316928be302e4b6620dad99a26ae3bbefa87a1ad0112567ba79ad", - "promo/src/scenes/End.tsx": "4600329f05649b489319be4a4036eed59d07983e2931edca3675ae9b8d64b203", - "promo/src/scenes/Gestures.tsx": "dd3c709a7388c23fd69e49b06f18505101b459209238579f97cad737bcec1fbc", - "promo/src/scenes/Glance.tsx": "fb4877871d9c112d9793c815929371f41ac7b1429a531888d6015a33ae897c14", - "promo/src/scenes/History.tsx": "0f59f6417d9d73f5a2792cc001f6b4f101be3820374a8b9e786f81414aaafdde", - "promo/src/scenes/More.tsx": "69186d0d392cc9ace59d303a09b8615415251395a9c361e4031958ba294a3d60", - "promo/src/scenes/Multitask.tsx": "b51fbb866d46460dc118b1b5d473c0d62ac7414b740c448842b978cb0397db99", - "promo/src/scenes/Opener.tsx": "39dd35c5e72e8d98ecc713c5e2888f097fb1f4d2fb737c5469cae40fc013bb27", - "promo/src/scenes/Ways.tsx": "2f90fd0f0dbdd3ead3af08634b39817b50a2677693bf719f16cb0ca9953e9f67", - "promo/src/theme.ts": "3e42a36199d0014b42ec005ff62f621a9bf766ff12a39f8b61a718800b8865b8", - "promo/src/timeline.ts": "d373cf1d626a280b966105c09b9091fd085f4a35bb21abfc181b8ea2811d4d6d", - "promo/src/ui.tsx": "83ecb1ea03b0df230eb9aa86f7894d75189e54c1c2f1c8dc1e0f28e99269dadc", - "promo/tsconfig.json": "69d107d8754c0c175b1c1d5d29abc32ce157318b31ac90a3c7295c3550114cc8", - "prototype/App/AXLatencyBench.swift": "6e9319f45b6d679689d9357d23fd0c861eaaa9f78b5f76000e771ba738a390cb", - "prototype/App/ArrangeController.swift": "bb95dcbe618844541d577b9c15e5d11558819a5bba8879a85de4fbb79e1523e4", - "prototype/App/AuthorizationCopy.swift": "229705d3b2f3749a77b5593405316416b9a80251337e68fb3723947656c7e0e2", - "prototype/App/AuthorizationService.swift": "b2787dc3bb4369d687fbcde86e444cedc752f30d0629a2c5468ae646328a2ba8", - "prototype/App/Carry.swift": "915aab4bbfb6891ce535b0cf70b8c14118b90bc38c2f73a350ffc98c3b199840", - "prototype/App/CollapseAppearanceSettings.swift": "dcc47edc5d347bd2e247ef3a795ec5250a1a6c7b9f58309c2f4840d5f995b2b2", - "prototype/App/DeviceAuthorizationKey.swift": "6940303e09ec0a5e592ad431d4f071bad92ca1d5fa6e94c44bc76bc4733833be", - "prototype/App/DeviceBatteryController.swift": "f91d842f704003420bc783ec477158f66c722c5a09213bd5c6bf7469dff629a3", - "prototype/App/DeviceBatteryCopy.swift": "d8b91913cb5175d3730b1d4e2dd6673613330b68b44fcf9210feaccc78849f37", - "prototype/App/DirectionKeyPresets.swift": "c886eab76c3e433bf28040b055754f6fc6cbcc6e9394e3589ed7298009e42cdc", - "prototype/App/DockClickHide.swift": "122b5ff669d67ab7633ac3537a09e9246d7dd15fd818a5e6d98371859ec0e291", - "prototype/App/DockLock.swift": "aa87b167fe290bb002c1b195438e6104d8c22ee1eadface9c79b582d65830cb3", - "prototype/App/DockSwipe.swift": "7c3480e2051e7aca564a3743475adb3a391045f0973da44810267d4d3da06c44", - "prototype/App/DockSwipeProbe.swift": "2537fc6c26507d938278bda6cb5721a1285d55dafd084af380bc2487777f2f7d", - "prototype/App/ElsewhereProbe.swift": "1f1bf6576be570624eae2e27f26bd995d1e6bdc729997d015dfd997717404f41", - "prototype/App/EventTap.swift": "3c8cb6ff1897f0e5a4ade26240955a747462e65654e3567abe7c91dfa535fb8b", - "prototype/App/EventTapCallback.swift": "6f48ff09d3c591c589183f212d4e9f5c7cb24fa973fefe73b19af8ecbb8e4943", - "prototype/App/FaceObservationSource.swift": "fe1e1aa7bff0578030af1652c348b0396882037c2d267d439ae97172e9c24a2e", - "prototype/App/FocusSession.swift": "6a8feaa47356c9e6827eb41f3aa81cc972b0f884c518ef5c80716160f3cd8673", - "prototype/App/FocusTimerCard.swift": "f6dfab112513a28dd52b7d01990a9940c9ad9aaa64a37f54d77a85e0645fe996", - "prototype/App/FocusTimerHost.swift": "7aa01c91cb3abf4503ff8eb92a8060efcdfca907b295caa3ab0fde88d264b666", - "prototype/App/FoldCompletion.swift": "1147a93b8ab37828e0dd4be225e879ea3a4636283aaa5d7202369b926ec850f5", - "prototype/App/FoldExit.swift": "e69cdab84f86400d15e9bbf85f3a1a2a5eb71c9586332576c13c301581d7af30", - "prototype/App/FoldTransaction.swift": "482e8b46ad1aec8d169653d75d0c3976379104191c2e53bbe3ecab05bb98e06c", - "prototype/App/FullScreenProbe.swift": "98c31a6c3eddf12dde1a50011cfab68143bc38261c1c8e702d67ec7325e49826", - "prototype/App/GapProbesKeysPins.swift": "d457e8a45465555d827bf1928b8907ae1ca128089616705bf38a1d207f3193e6", - "prototype/App/GapProbesPlacement.swift": "3f91f6491b2b0a1580e5bba15c3a86e5199bf7c8e11f7562dd9d5598307a87a7", - "prototype/App/GapProbesRecovery.swift": "d45451bb35ab51dfd798ccf7939b41b4f6950bc03e5eccebd8e52c626d1faad0", - "prototype/App/GapProbesSlideOver.swift": "c307da706445ea559bafe5538b2bf64388e6604a77f9d84dc111e515a5412e81", - "prototype/App/GapProbesSupport.swift": "83fa9445f3d5814413759b3be2612e3bde6c903b5348ce5b5b224e713dc7949a", - "prototype/App/GestureProbe.swift": "5e5806791687b6391695a3b91a899703c2a3d256910f8e05dc61fdbda4cf99f0", - "prototype/App/Glance.swift": "07156696d4117a53c64575ead913c18d79772471609ef160af1798b31e6bdb5c", - "prototype/App/GlanceProbe.swift": "701a340d97b739e13e81c51408c06e6c95d4b631df81ce75455489c3ac82de78", - "prototype/App/GlobalShortcuts.swift": "f73921fa76cadded66d9986ec55a7d5a0b2edf2ae6935abc0860178ec09083b6", - "prototype/App/HabitContext.swift": "a5e7c5c01eaad8338e22baa6c3bb5caeda8d721f7ae3029396dbda004bd36242", - "prototype/App/HabitKeys.swift": "6ffba165b600f582c514d0dabf873f01f2e86890fa60cce68b83e7b83c649c32", - "prototype/App/HabitProbe.swift": "973d23c5f6bf8eec4e2fa41364fe98241b92c4108a79440ec42f383b5d8e005f", - "prototype/App/HoverPreview.swift": "849035faca83dfee588e7b88d0723ff53e99ceb891bd1b4ace1f3c2bf1ddf81c", - "prototype/App/InteractionCoordinator.swift": "5524bd61193c8e7ca5090b7c38c498f094bdc13a3e48971f3f084b2fb7a0c5b2", - "prototype/App/Launchpad.swift": "42098e0e45259a0f04b57713088b09ab57293997d70438a410fef38934619dfc", - "prototype/App/LaunchpadActivities.swift": "ddc8bc3153e658b8b2feed52ea5734b0bd515c722181129c88ae34750366ae75", - "prototype/App/LaunchpadArtwork.swift": "9565fa02024395fcf754acedf3c4caec9ae0a8dd9b618d23b6e17369e9017c42", - "prototype/App/LaunchpadBackdrop.swift": "54d1181b94a8c75d76aa7bb3d49737978ca3ad7984ff1ff107641e16618d14e4", - "prototype/App/LaunchpadController.swift": "64a0979768be281ccd2ae98b6f3e69298c66fbcdb5402b82dfc7f1e7051e0f08", - "prototype/App/LaunchpadFolders.swift": "99b845ca243f577c4b0e2ac8112e6a588b0e27a7d4796b155acc010f8041d9b9", - "prototype/App/LaunchpadKeysProbe.swift": "a57d2c09c520ef962916f8bd6cefd2b48725d298c70e3a1b2bda2f73fa668d64", - "prototype/App/LaunchpadLibrary.swift": "d4497f166351297ea0dc40d214391533641adf65a7301a9f9ad953356b5fb987", - "prototype/App/LaunchpadOpenWith.swift": "8555894605d53d805525ae120f915372cd8ea1050a4b130a063dd4847091ee04", - "prototype/App/LaunchpadToday.swift": "b049a50d0d3df00e200de75734178b35cd9abdaa7b676dcba4b45f8df854d8ec", - "prototype/App/LaunchpadView.swift": "4449e1a9463dd178a45ce565b4bbfef0371c79a6e6598db653ec6aca11f0f50c", - "prototype/App/MagicTilingRun.swift": "1de26ddd7d2df2f182ec578b878db2c67871ff1494f26ab1077bdd9414e6c4d5", - "prototype/App/MenuBarController.swift": "6c48edc1f260204ce5a5abd7d212b22c225bbf1219688573958ea3ed2c294e9d", - "prototype/App/MissionControlKeys.swift": "d90af0193955650f7deba18f5358cd155093313f398ce568c62415ffe064a762", - "prototype/App/Motion.swift": "f93263d9860f82363750593e3f65d4321d35c13ed31acaf268c56270c76138b0", - "prototype/App/Notch+Habit.swift": "fd362e41c78fcbe8ac467ef55a6028552520bb15464f2f4ad5b2151567678e33", - "prototype/App/Notch.swift": "f99ffc0698fa98d63b07a4d3c4ba196e6ddba38f1148df635295a47572c6a1c7", - "prototype/App/NotchActivityController.swift": "4ee8833f2e4d198fac9eef2c086c0e2bd53a1fce66927f9b42cfbcf42e37bc48", - "prototype/App/NotchActivitySources.swift": "326b6c21f7b02b8dc71ab0ba976cb59e219d0ad11dcf8aae35e3509c4b1810af", - "prototype/App/NotchActivitySymbol.swift": "edf383086a0feb48373ee8af374a37af7245591a146556938cdf9f09eb084cc6", - "prototype/App/NotchActivityView.swift": "2b622c8cfa4ccac64c4c0b2ea70f66263b8d71e545ec6330c22d9067206a08cf", - "prototype/App/NotchAuthentication.swift": "e2db024c1161ab3157018670c80aa14da701ac5473668a5defa246375797d627", - "prototype/App/NotchCoach.swift": "f76df98e2492e2d1070af5c2bf70653af529a8c3082d90c528564f6fca1e0e7e", - "prototype/App/NotchFaceObservations.swift": "f7f541e11cd13467409c555cae89714bd2017f14033100d9012f5982692aafd2", - "prototype/App/NotchShapeProbe.swift": "fe1e1188c4ac40518f18e50c2ccf1ee1cbc5cb65945bfcb7a78d359a52b19d2b", - "prototype/App/NotchShelf.swift": "0efd0bf6633695be3f2bdd2e542ecda53e8de26f2e78736426c87aa1b951e19c", - "prototype/App/NotchShelfProbe.swift": "db06842b77820fec3d30b66e9fdceda8cd0890d7f496d7c8d676d17d5a496760", - "prototype/App/NotchThumbnails.swift": "abdad6e9c2c85052c682c9e4d9fa34b190f631fb1de4fe9ef8c652f015dbf652", - "prototype/App/NotchWatch.swift": "8ba371f82c6bcf640464d58340bd3d63f503a6d0784e8c45fd84396b10921586", - "prototype/App/OverlayFactory.swift": "671c722677e213613459f159ecd685a750bd6e871e5eedaa492a0f35b3eb403f", - "prototype/App/OverlayPresentation.swift": "46726c5a24c76ab7bf3a2e6250966cbc1c0234444d2cd2fbd0a9d0c7c1718060", - "prototype/App/PeripheralBatterySource.swift": "149935ed50964a0c77b69551a56551aa2d26ee84e9194e098f3cf61f4ece8d36", - "prototype/App/Permissions.swift": "7f7ffa614871ca3fd6241e11b8835764f3815875e0526910145db5483861a9e5", - "prototype/App/PictureInPicture.swift": "afff2ec83f3aa33007437729784286ded251678701f912fe482bff3fb1c77b55", - "prototype/App/PictureInPictureViews.swift": "66190877175232fdb8be54486a0b28beea474a168b898dae9f33a30931c8f9ed", - "prototype/App/Preferences.swift": "7e7f3c3623de1e5a955c552fd8117bcfd2c9ee2ce8f8839f1950a241d78c72c4", - "prototype/App/ProbeEntries.swift": "f09f5e8607eed201845178c7e0dd2cd87340ed71fe0e6f6716241e9cb01057fa", - "prototype/App/QuietDefaultsProbe.swift": "cef48ea449ad9551e122bce3f47d495f1d3f691fdbe8c715cd7966a3421207b0", - "prototype/App/Reconcile.swift": "a24b56d18ee50914538f3581f59fd0c496e29babe7a424ed6613657f785bb2b1", - "prototype/App/RectangleImport.swift": "ea45acb976738d3cc1fd347c1042b121e55d7c809c2f9e116580d728cb596258", - "prototype/App/ScrollStripOverview.swift": "87840b8f1daa1ff7f93ea5b54cd79462c4c62dd46e315756620f8caa4bffdcd3", - "prototype/App/ScrollStripPeek.swift": "fbe850a728468b4be72c3cfa39becce428aa423a709afe870174d15d8c39f9d3", - "prototype/App/ScrollStripRun.swift": "e454ad1d46d9ff547c5fd4557722e3b450925e24c0fc6759eb00d9550ac790d0", - "prototype/App/ShadeController.swift": "f22cc7af4a270af54422820beea2807235198ba823b8bb42adf098b52f85a198", - "prototype/App/ShadeSoundPlayer.swift": "7971dc06925fa19e0f2052d51427d1ea43d2f800d6d07aa8cf427c796af364d1", - "prototype/App/SlideOver.swift": "ac7b2bb10125399b4afdc47902bdcbb9b1936d147347ed56336900d5685e1786", - "prototype/App/SlideOverChrome.swift": "d4c72f881c8106dd4b9c82d6f4ddd158acf65512380bbd8da6b0908ec804ab97", - "prototype/App/SlideOverDropHint.swift": "247bb74176f37f537ef5e781f4df02fef8f989b8dcc3476f5b038910869b879b", - "prototype/App/SlideOverRecovery.swift": "7f2347ef2fccb5f421027db4da4549dcb7130efc10139b36f542f4fd08a81254", - "prototype/App/SplitView.swift": "5c8694e329550a19a626d4ea9275e19af07a977e5f0a6a3e94f95f487716b87a", - "prototype/App/StandardMenu.swift": "65ae1974c0e53c606e009b716ef6c35e193ac3eff05b1ac2ce46aee829102ff4", - "prototype/App/StatusBarIcon.swift": "7c0d4368393f9d2b5f94844fd45c5a17025b828b44685b57d25c2b32b7ee6774", - "prototype/App/StripKeys.swift": "cd19aed70f476e05d16269ad8a686d71feca9592d46624ccedbc5444f09ca973", - "prototype/App/StripPeekProbe.swift": "35d07816e389419220eecee6383ddcc2afd21d540300f17d44655af190fe1d1c", - "prototype/App/Thumbnail.swift": "70793ef768cdbcfdd3ea38fa14e405de8a91bd5547dac7b84da1f333f9097cca", - "prototype/App/ThumbnailProbe.swift": "d67964e7c25ec612d7f2a8e162a2d530f2f3f64f67272aedcca96c72066cfa44", - "prototype/App/TrackpadGestures.swift": "9fb30b213a8c5076faa2fcf7de09ae21da700ead05b8f4322d0c00f8bc984db9", - "prototype/App/Updater.swift": "d2f0aa355acde29b729d0a05fdf41b33269599bf7d5405df64e8117a9c0f2c03", - "prototype/App/UpdaterCopy.swift": "699d4862525eafbe61e04cf5890da36acb899e21f962baa0596346d0c9fc8ef8", - "prototype/App/UpdaterLaunch.swift": "54b642694b112de3a295c1e924658275af545d41ddfed833965b19223d3ba150", - "prototype/App/UpdaterMove.swift": "b540ab91858ca9986e27e1a03de60741c4f2beeb76cc0367838918519c30a1ec", - "prototype/App/UpdaterSettings.swift": "b0a05613483abae16fd761c80ae5745e6c1e13eb76e2174bf87a22060160244b", - "prototype/App/UpdaterSparkle.swift": "463ec65cd63071614152273e29dcefffd826cc73c99d8bf30196f3f94d4800c5", - "prototype/App/UpdaterSystem.swift": "31ffae2972b4bd85964edb73daa74cf2b7f726b7be858a6e9d04d8a64f6adf37", - "prototype/App/UpdaterWindow.swift": "5d4843d963a4dd9e38daa0b61db916ee9c5cf33922b182071b42c9b1ab3f77b3", - "prototype/App/WS2AgentSessionView.swift": "2eb4cc0b0ffd80413aeb0375a2b4973039174218273be6988b5fc1a8f730e53d", - "prototype/App/WS2AppRuntime.swift": "99205e90fd9d99278da55fbfe88924e2100c4ada4223c6d35136da67cf5b6db2", - "prototype/App/WS2CodexApprovalHost.swift": "f400c3354906b3ddb97f7651388468520d91f5eb6796417d014d7753266bf03b", - "prototype/App/WS2ConductorView.swift": "35e1bb2d5b14f59c381aba5969009add1be93e97eb3eeb2005fd1d9607e6e225", - "prototype/App/WS2DeviceActionHost.swift": "e969db6f1d29d4dc2af25afb99a58e90281b395480a704193de53e3b5cf2e5a7", - "prototype/App/WS2FocusSettings.swift": "5c2dd1877beacb8a5e09b8ffc9ae687924068e791a0224484308a28e1aabff60", - "prototype/App/WS2FoldEvidenceAdapter.swift": "cb7f57c8020aeda4aca842a4a48a58b5e4a70acacc02cff63a2682d426a0c264", - "prototype/App/WS2GameControllerBridge.swift": "cf257e4e8233d7030b96e5b317d02043024d25f2d03dc27824dd9976394881ee", - "prototype/App/WS2IslandCoordinator.swift": "315bf8f9b76ead7600c8829b69c4609bf89d919f3421631b3154aedd13acd91f", - "prototype/App/WS2ModelPickerView.swift": "1da4c59ec557195a5b03760eb038b2d8fe1ecabb2f733f2c29ab554d8790f73c", - "prototype/App/WS2OwnedCodexSession+Authorization.swift": "cd619ed648b81d55565ecf519777681ab4419bd2374eecb1f793c7bf29538266", - "prototype/App/WS2OwnedCodexSession.swift": "b05f1a6d7aeafd72f5e8d5dea6cd8a460737d57cbf319b1c242b01a5f09d2ef8", - "prototype/App/WS2OwnedLaunchController.swift": "302f4b8ad841610a8a471caf79af657a5c8bc5d10e9c0e0a8d954363160a4ed2", - "prototype/App/WS2OwnedSessionView.swift": "d3360e975925f28b112b32d4c51b9a75d195a507629793e5e5b3d3eed006434f", - "prototype/App/WS2SettingsInfo.swift": "c73bb4d2152117572fbdfd332ae00bbebe784839868830aa2933821195b7fece", - "prototype/App/WS2SupplementPane.swift": "eb49bb23eda0c267d0c169dc4ef4040dd462ae3ed71f75aa341e2bfd96c39fcd", - "prototype/App/Welcome.swift": "9440f17488f309d103aa9eb75621f7e7dfdf4822a7ae07b7c80a4d5b99ea5bbe", - "prototype/App/WindowGlide.swift": "3f40e5ffb7f4d870e231977916f724a54b0e5ed5ab550f3ffdfe8b5b87d7b0e1", - "prototype/App/WindowProxy.swift": "0c852e43d3926075522d628800851fd625578201d875c669b5efbac119b1ffad", - "prototype/App/WindowSwitcher.swift": "21fa5041bcc27a6622e44836c3e167f6799c9a3857b927d4d7f52fd16ddda92f", - "prototype/App/WinsSwitcherProbe.swift": "05572d4bec475ae450e6b427cd1e2062935ee39c17ca898777a90711241fb217", - "prototype/Capture/CaptureIndicatorProbe.swift": "cb9f717530964a7d3fcd96e8c7438180b599be450273dc8f627e334fbb049be5", - "prototype/Capture/CaptureIndicatorRemoval.swift": "136aa4d41afb6a11c3214df1a3cf92c0fb110bd58d8f02059cdb73161becedf5", - "prototype/Capture/FastCapture.swift": "bbfe8e9b62fd5177d3260309bfcf4a3bb010cba7da6dab9839672ddad9306b3d", - "prototype/Capture/PreviewRenderer.swift": "a8bfbec04f4d8ba82da224832c19b0180a87d6f0e2f6e8c3788b18075e272ac5", - "prototype/Capture/ShareableContentCache.swift": "02d249d61bc8416a480578f4b8db1b0ad074733defac4e191adb5c6ea170086b", - "prototype/Capture/WindowSnapshot.swift": "66b7c0ff2b81b7cf8d4fc3ba0d6887703d50ac94b5207795ee2edef9f3d4210f", - "prototype/Capture/WindowSnapshotCache.swift": "4bdbcdc3270a49071d4feb0f10e80c08db2d8c6cb535d1d2b57d38a712fa27d0", - "prototype/Compatibility/AppPredicates.swift": "f7bed5be688177e482e64ef96066d7ef37967b962206d639b7fdd87430fd7d24", - "prototype/Compatibility/Policies.swift": "ca921cacaacf77751d48cccaaf5781412d8ac867135706eb737609cb6cca93f6", - "prototype/Compatibility/WindowPolicy.swift": "86c30970c8cfd6baad88188c99f4057c4b73311147b1031687bf2153a7d08a9c", - "prototype/Core/AgentSessions.swift": "218b3910959c810d5662d608b8ab9560d5232cf5e69930c330b400c940c65d7c", - "prototype/Core/ArrangeGap.swift": "93078fcf0f8c4693bb2e25dd05fcf78e21b7a76a13adbc0336754969229ca945", - "prototype/Core/AuthorizationLedger.swift": "495d1ce534fe560c8c0fe43ee6fd2bb5e9e24b7f82b172978ffdd62143985676", - "prototype/Core/AuthorizationModels.swift": "185ce60f64c618898aae3e27169843337efd3e8eae9bccd81f3c4151fced7719", - "prototype/Core/CarryShelfLayout.swift": "b12db5b98bd4e244b5ba4ddbaa909c897d74ea7b778c892ecbe1a6f98e0e0f84", - "prototype/Core/CodexWire.swift": "ed2e3e209bb3ff42c6ba8273b323f2b6f70bdf48daa4cc21f91060d9bfebecf3", - "prototype/Core/ConductorCapabilities.swift": "4494697451f96b08ea1c1bf92fbb83ec9539055ac06937edef392558c20c9af0", - "prototype/Core/ConductorGesture.swift": "98802f88fa95985e05a46e75582016e60692725c75c84af0e74cb2248b867393", - "prototype/Core/ConductorSession.swift": "e426c0b1a19fd8bea29528f707371decf0ac65459e3c85dbd6d6e2f94e7f2e7d", - "prototype/Core/Contracts.swift": "12fffc2e5cf207aa0ca6b4c371f28b9eec8c2b374b5e1a06d8943878891b2420", - "prototype/Core/DeviceBattery.swift": "7777539671486437ff4e26398663d7187b31401405d866362efde3caadc473e3", - "prototype/Core/DirectionKeys.swift": "0ef2f8b9997499338f8895bd010cd89007258d6cc221787cb229e942fcf8ec1d", - "prototype/Core/DisplayRefit.swift": "7751172780c0bc7a4410bb94c0343bbca3518b76549aeab18825afe04ca15cf9", - "prototype/Core/DisplayShape.swift": "64d7c414f0a6ccd227cc730547dbffb3cd7812d8dfb6ba858479873eddc8aa0b", - "prototype/Core/DockClickGuard.swift": "2290cbd5d3788825324f661490ababf487a86b77c1e1c6000af81b23afac3ec2", - "prototype/Core/DockLockRule.swift": "159299a99f0e91d3aa06f2eeb0697822100c28db87c8150ceaf19c21d8bcff03", - "prototype/Core/DockSwipeTrack.swift": "41dd4e6f3f1715eda10d3e187a80c4d79f92d4a86fd22b7e202955b171bb0494", - "prototype/Core/ElsewhereWindows.swift": "aabfd47c1f0580f98b68a1c18523dffabf6e2bae2ef1c271f1424f595346e5c6", - "prototype/Core/FaceGestureTracker.swift": "da07128afd663c1cd02d3fe83c93e5da3c2bbef0a97107dffffbd3af68e47028", - "prototype/Core/FlickMotion.swift": "46967abd13acba1380e700283a6dee547073a860520c7c11b86454db570a322a", - "prototype/Core/FocusNavigator.swift": "372caeb9b2b2318d8b15dc8e014a69ec6e2ddc305d5731754f2810edfc5578bc", - "prototype/Core/FocusTimer.swift": "f8d5760f92ad924c1727717938e84bc456f84967c931faec36d9554e243bf462", - "prototype/Core/FoldVerifier.swift": "90a4d023619d31706672da91a52ab721023662591b5ab3f72cda05e32fabc086", - "prototype/Core/GamepadMapping.swift": "672cf04922a50acca6eecd2727b135f07a05acae74ab285e9fb92a23ea39a855", - "prototype/Core/GestureCoach.swift": "2490c0d99e5fd5cf72096106afbb82a07e1d47d15f0c750ed19316dc4481171f", - "prototype/Core/GlanceIntent.swift": "f024dcf706695b1b226f8ab38658f50252310c5035040ce685ce94f087d09ea7", - "prototype/Core/HIDMappingTransaction.swift": "48edb2bb043ddd6cf18285f422ae90e4f75b258ee75efd9c6976fd7ef973a3d6", - "prototype/Core/HabitRules.swift": "dc9c9465f28d295849a1ca032eab408f012feaa35008e0b42d2e7e26d884fa1f", - "prototype/Core/InputDeviceKind.swift": "bfee009b5bc3fb1031a4cebbfa871bd770145e424cc8d9343eae3787d5c88233", - "prototype/Core/LaunchpadModel.swift": "33e3563b11c5ad7c19ccfd332d51c9e4df1e236cf04bfb17d7f505818b8dddd3", - "prototype/Core/LidGesture.swift": "f9988eeff67ed98ef01c09ec1f77f955c049603a501d57e4ef03f2723df9e08c", - "prototype/Core/LockOverlayLifecycle.swift": "7aa73bab4bd6a8b6e3becd3c1c75314889f6997d1911817741e55cfbffe0462f", - "prototype/Core/MagicTiling.swift": "6aeeb96aac653d1eb587c2a12c3d31194fb55bffb196a6849257f593ffedd8b9", - "prototype/Core/MiddleDrag.swift": "c375a2e23e964890a9d5f691b44aaeecee889670e5aa1641eb6bdfa99a138e46", - "prototype/Core/MissionControlPick.swift": "47856dff5c85d98d7d2c9f6c5d741247f88416171f602cfb036865eda3c62dce", - "prototype/Core/MotionTilt.swift": "0561b7804905d071677d0a50de2fe115203b1c6bc2e010cf7695447e1157c3ee", - "prototype/Core/MultitouchQualification.swift": "dd4bf29aa1cef3fca706c8d9781a84da40f2174623ead5cbeb406132e967dd91", - "prototype/Core/NotchActivities.swift": "e5c6c6fc339b58175672abea1322b5aeaa0c526ab850a4a0b0d7c48280f5c10b", - "prototype/Core/NotchAlerts.swift": "2084a95a7dbf3c63d200c663b290ca744ac6494fa7aed52f69ac44c7d8567197", - "prototype/Core/NotchGlancePlan.swift": "249b49af6ba4c0ded8abb7d6087136e70b0bc8afe2c31dd417e50755560708d4", - "prototype/Core/NotchThumbnailPolicy.swift": "7f0c6b19a2c1a899cbff8fddaf8f8b65f2ec01bacf234d92b1c1ca82d60a3350", - "prototype/Core/PairingAttemptWindow.swift": "262dc840763d31105c16f5edda749a2e11ea15064158884c825109fbcd3450e3", - "prototype/Core/PairingTLV.swift": "32495002c85cc927a8c31cd5699ff517f070107120c111919e9b35c1df2f3845", - "prototype/Core/PiPLayout.swift": "176cd9e0b8644d08a50e7503707fed57e762ba95094d497b3e96f276f0a989fb", - "prototype/Core/PresenceLock.swift": "7099b9f42bc09683ac35dd345020a58429bd2e9e19db4823082df19ad7540188", - "prototype/Core/PresenceReadDeadline.swift": "1fbe0aecaaeb279525bc7a5b37de6ffc7b5b48107df0fe84e9524399a287086a", - "prototype/Core/RectangleKeymap.swift": "9b337f8acf4066f3b2bcf51db605f89b52f5727ccfb3bf456a0304fcbd84bba2", - "prototype/Core/RemoteEventRouter.swift": "7d025693b62af9d3a537e0f71fdbc5312f0773b53d6a51008f1f441dab4b3e19", - "prototype/Core/RemoteMode.swift": "559d83d94615574613c9ec13a92ddf9395a55157c21f3eaff0e60b61bb48b3d7", - "prototype/Core/RemoteSessionGate.swift": "a48f690ce3db11c93563402a6e27601ce33cf6293b20985efb4bbecc2e1d23f6", - "prototype/Core/ResizeStep.swift": "f9e26b08435ed3421c0ee7c374f9c2dcf11cb64dca32b01231a2939a2bdb4060", - "prototype/Core/ScrollStrip.swift": "8f035b93e7f890bb6b353722f58b6c637101edf217c486ad85c2173f04931db5", - "prototype/Core/SeamLayout.swift": "2e5fc44dab7a3449ce57e80e05ed3662096209677d4556d5869222555f29bad2", - "prototype/Core/SessionLockState.swift": "1f92f697f9a7c1b5add7c4842496b86d4e65b93f2985e10f08ba3662a82ebe75", - "prototype/Core/ShadeModels.swift": "49550836c173cdefb98bf1a2db924a9dc8c6ebf9b8f60428592a21c43eca1c22", - "prototype/Core/ShadeTranslucency.swift": "f8083113fc6864b3a775a0081af4c957eae6ca186ad3cbb3e1134c6dcf7a6487", - "prototype/Core/SiriRemoteButtons.swift": "be2b7b7d83b28f575eee5b086885b250d4da6b1fd93b4774e02ff6c11b26eef4", - "prototype/Core/SlideOverMotion.swift": "a87a21acec5f89283974f055b5da01928e35a968e14f0aa943176feba029db2c", - "prototype/Core/SmoothScroll.swift": "8bcd292317a0be05903e2c2fa68c7a3c5a6a7b5662179b438dc03c8fd1b633f6", - "prototype/Core/SplitPair.swift": "ded3e14e991ee1180b7ff89699a7d2cfbd42ca965497b2a9678523cbdb62e907", - "prototype/Core/SwitcherOrigin.swift": "be5cb2a70a4e3d9e7e47542205d6668ff4bda622d87e71ef8ae6286d5888e5bf", - "prototype/Core/ThumbnailLayout.swift": "4a7b82ebdd40e4fd6363d03712591296da51c8ef034d86408a9e579745a093c7", - "prototype/Core/TitlebarTripleClickIntent.swift": "1bdcf6d07d61492d16fd239b550194e5d78d250a7a5e446540a389f2aad4ea9d", - "prototype/Core/TouchTap.swift": "60e6818723846479f637e26a7236998f85003ac329709f01ea3ca6a7efc72c30", - "prototype/Core/TrackpadGesture.swift": "f4521524e1de21126f02dce390b1ced38a1e0ad7fd31e05b4da4d333b0fa3948", - "prototype/Core/UpdateDecisions.swift": "ed0cdc6362f49ecbced53742e26260060768db5d441c679b6aab4a39f6af11c8", - "prototype/Core/UpdateModels.swift": "4706a3fd6d8412f30b9962b99ea91d767b45b3e8d184e74c9424955db51f61d2", - "prototype/Core/UpdateVersion.swift": "539abc3c74b8573b255d8d95e0dfa7289e4c80347dd23804d47915cc19b1e793", - "prototype/Core/WS2ApprovalReview.swift": "382ba5ed147027f63d3707ca865e79c7a38183cfa7e7216979472f0a42e4a149", - "prototype/Core/WS2BoundedOutbox.swift": "80fb7f58123a2f9df5c0d7b94c206277427e269273be595ac25e4d554c68e326", - "prototype/Core/WS2CompanionFrame.swift": "2ecb698bdf16965242836f132a7bc801d0ac7db7b488abc0d5a1b878a4c0fabd", - "prototype/Core/WS2ConnectionBudget.swift": "f225317ecabd3143c7c40603ed7a1c2bb93f19f083c59722a6bddfc409be9cd2", - "prototype/Core/WS2DeviceActionContracts.swift": "bb69fd284e1fe4921c90e68f770915e724ce6198f12156662f81b04161a809a0", - "prototype/Core/WS2DeviceInputGate.swift": "60c5be94786910c4719bcc4b56ff7ff217708e3981591922f33bbe9b384ae662", - "prototype/Core/WS2DiagnosticTail.swift": "fef7ffb8b3191d594e2c9e5e8521fba1ff8271975ddd653c9ae2185281c12fc5", - "prototype/Core/WS2FocusEffectPlan.swift": "60ccb717e3641f20e1fc499dc1e432ba37493e3c4abe8e28c73b2ebc19419829", - "prototype/Core/WS2FocusWindowOwnership.swift": "69a0b9a82fd67c318d92b4bcedebd6f980b094f24b37197758fe1cf85f5ab3c7", - "prototype/Core/WS2FoldEvidence.swift": "3d1dd3583a1e6f93a4d721e6b4587a0cd700c993722fee2f7a03428919f420dd", - "prototype/Core/WS2InputEligibility.swift": "d88deec0bf2c6224710e90bf106e23a60cee3535cab06e3bf48c8bb027163597", - "prototype/Core/WS2LockRequestPolicy.swift": "900c77a7fda12d50eeaf345bac99e8ba57ae7eb044023f0beb45ab1aa0f616d5", - "prototype/Core/WS2OwnedProtocolHost.swift": "11defe55b4723986cdcd10cea154dfcc10f205dbb8d45eb1265c9dc84fe5b765", - "prototype/Core/WS2OwnedScope.swift": "20102a3fbab321958f7dde9a24d69453f3a7d45d2f537fd5957a9a4df4a9d6f2", - "prototype/Core/WS2QuitBarrier.swift": "2a80a0409cee77c4a117844ac1192084ab922a1073b405d26909a6fd8a39754e", - "prototype/Core/WS2SelectionModel.swift": "c8fb3c0ac6564970d2daedee4d4708799ef0014a94a7bb22b99f18a85d86cf4c", - "prototype/Core/WS2SemanticInputRouter.swift": "7055bb6994681ac67dd6b166374ab00923a8e1d76b9133021d922925ef2ac3c6", - "prototype/Core/WS2StrictJSON.swift": "3c1edb48065c85d7b0fbed12ac8299df4d1931abecfe53019f9ea9cabdc9bb0d", - "prototype/Core/WS2VisibleListInput.swift": "919b37b1add050fa65660fa70127a8dc131e659675ebedf791b86277d5acf425", - "prototype/Core/WindowShake.swift": "0e94c26c2a949a44c52531c0b5193c887901a36937c1d7ff04b0dc7377ad5d6d", - "prototype/Core/WindowState.swift": "92dccea12a8c772dd4678c4d14e43866c2a8f12b5e88f0573b34133483eec9c8", - "prototype/Effects/AppleSPUAccelerometer.swift": "d39fd145a3f3c46fa949fe9c543c26cbf92decda6794cef93d7440e42b13ec37", - "prototype/Effects/Duo.metal": "7ca2be657b1e50ead1577d23d1e5f65375931ac391d94eba9fd5e9c19649dbe6", - "prototype/Effects/DuoController.swift": "00c452749f6ed69481d92b386ca9a1c5a8e034f4fcce7bcfe8fc5321bd692612", - "prototype/Effects/DuoSettingsWindow.swift": "04a80b69bc44fe5185dd558de270842d74aae8a3f107be907a78483fdf4adbc1", - "prototype/Effects/EffectEnvironment.swift": "b96919951e9dcd50184cf0a49d1e4d4686f84fdda10e93ba775b76adf0b5c5ee", - "prototype/Effects/EffectFrameAwaiter.swift": "634182d48f845ebec9887544b2d1aea0fdeb53e614af3c66e1070b4907f1f68f", - "prototype/Effects/EffectFrameSource.swift": "c63cc6885d42278bf8ce30ae05cfc63e3f209d9490524fbd73ddbfb5087990ab", - "prototype/Effects/EffectInspector.swift": "db563c7b334ee2a23476ee4cf39ac87d3881aceeee49049a855ad4c71d2a22e3", - "prototype/Effects/EffectRenderProbe.swift": "f6e780ff32160d09918c5b38c05af6d954be91353d145d1f21e89a374f85d019", - "prototype/Effects/EffectSession.swift": "42f2c3f32cb94c62b56dbac2a3ff97139feeba19842efa38b33b21341cdac45e", - "prototype/Effects/EffectSoakProbe.swift": "257182b9374960b36a6d143fb650596237140aba6cb10ecc5430779d7c069610", - "prototype/Effects/EffectWindowProbe.swift": "9cbe19213f5f0f965c62e9ff0d523e131b3e3cc2732d2ce135aab2de6299b16d", - "prototype/Effects/FoldDriver.swift": "d710a5f9546321a2ca9fa29efea2e56edc1d80f738f0797614fcd7b876309852", - "prototype/Effects/FoldRenderer.swift": "e3408e15a67de03ba068d43cbcccbba8655f19abec36a7c0785f670d2bce189e", - "prototype/Effects/LatestEffectFrame.swift": "e9c57b3f2ab933d8de70257d29dc0e3840ae23280d186918bc08fa9d15c3aac4", - "prototype/Effects/LidAngleSource.swift": "bd17b11559c8e698d4d8e8ed57f78c0f8dfe6d28cdc29da858b94b5a0da3cd57", - "prototype/Effects/LockOverlayController.swift": "ffb6c861c80ab6096ee8627c22ba93dd8f6d7b6216b6ef7154e375631c8a58cb", - "prototype/Effects/LockOverlaySession.swift": "fd8da1d18ca18369f9f2df27178911c3762ce70028bbc6809e5c9492e92067e2", - "prototype/Effects/RestoreVerification.swift": "521564f365800522736a893ab0f5b594746e5a20b86e668ece2833d66282930c", - "prototype/Effects/RestoreVerifier.swift": "a0ed730ff532106fdde2eaa64fd8905d5aeddaf9a1ec1e28c293b26ff7dc7052", - "prototype/Effects/SettingsDesignPreview.swift": "2acf03fbf39f406b80f27b650641613230c0ba1b2e7bf07191ff5856d346a35f", - "prototype/Effects/SettingsShotProbe.swift": "5e8bc146379a032168146f54bd4d949b5ba4dc22e10ac6bf1f524151c057c5d6", - "prototype/Effects/WindowFoldEffects.swift": "eb892b8d6d4aebe9759080bb0cc80c690d1c0369c6a29fec609857db83658b8a", - "prototype/Info.plist": "8db707bd0bf02100da2517cd8d28e2379cf9077e858af299d088c6d264f91acb", - "prototype/Native/WS2Child.c": "134368aa12dfbbb9ec5a6f60a121c44b52b46bb303d55d73b18d78326d875f47", - "prototype/Native/WS2Child.h": "95380850f4cbd24d868fc785978cda939307f3962640b091200068a17ea1a9da", - "prototype/Native/module.modulemap": "9cac42ba9402e4324e393d07c155c9375e20846e3bca84117460fdd0e6a0db8e", - "prototype/Overlay/GestureHUD.swift": "e8bfe37a0b0c4c5da59ec8bea9f256dc19726e0634b80534ceddb2160f3108ef", - "prototype/Overlay/GlancePanel.swift": "07e9babcba683dae230b82acfe2c0b9985d2ffd8134c9c13ac308d3169c84a10", - "prototype/Overlay/PaperSurfaceStyle.swift": "1a8c1541503bcb1c0710be685a76aa0d2eab4b37c0a836b0f44efbfb44e99f2a", - "prototype/Overlay/PreviewSurfaces.swift": "8bdf6d62b84ce1f87355c8f8c809a5a062cc3a8005c1d5421390f7a7c6f33cdf", - "prototype/Overlay/ShadeStrip.swift": "ace80cecd6a084427c986c7788e3b12e34ec60a28a9b3422f3a2b8eb355d806a", - "prototype/Overlay/ShadeStripPool.swift": "3f602cd370d1f082a59e4d8bc598a07f4168b7e69c983e1ec3aebf6d22aca23e", - "prototype/Overlay/SystemAppearance.swift": "76ca3eccd79a32175412ae4665a0484ff9628a3ad372333868cb3ae1681ba345", - "prototype/PinnedPreview.swift": "661c5d272f81f0276e6f53ab2da11e3d575628086e03f8da3f04b1152593fba0", - "prototype/PinnedPreviewPanel.swift": "19ef12fbb7e587bb04604e5587c54270d89eff08342b5470565e61be7b9eca65", - "prototype/Private/DockBridge.swift": "235001c02b0e9edcedc3011356a531cc0e53e425490ecf7ce6f297c9ee11d058", - "prototype/Private/LockSpaceBridge.swift": "d16128cca2e5b893900e5d5165353724a780e76beddc5ffa79f4ac4a2bf8978f", - "prototype/Private/ScreenBezel.swift": "7673cbdf0373bceea50a156b4585e00bbedcb6acdf0a9faf5efb825617a8a602", - "prototype/Private/SkyLightBridge.swift": "26be2e78987f1dbf06cfb58ff0915c9e7a53d0c53a852c543171ff77a82e5fbe", - "prototype/Recovery/DurableShadeJournal.swift": "5dbcd013cc44573bfef4b028dae0ca44c75c963d7df131cf20b946a737c366c8", - "prototype/Recovery/Journal.swift": "0fa6eb0b1ef02048ffb0b26a1e8ff546c83d37dd96774da231d088e528c075c2", - "prototype/Recovery/Rescue.swift": "26cc2ce87db65aa2b49a134cbac248a1c69740bb0aadd042ad45631ff1ce2428", - "prototype/ScreenCaptureBridge.swift": "59c7d12dfc19266d46c87fc7692fc851293fe2b102926d06579c205cec7c78ed", - "prototype/Support/Diagnostics.swift": "a1430b16be3f87e7b8c066c5d68dfc033ab2aa2dab9cfdcea08d27868d2078ab", - "prototype/Support/SecureLogFile.swift": "ed1cfa426af7f9bd4d21a9376ed3da21338c11a1e2d9f79a3e99ee3ceadde4a0", - "prototype/Support/WS2AtomicConfiguration.swift": "49ca64b48ceb7d2717fcf2e56256c4fc3819bccd6b4cb67e1e369147fb3d0754", - "prototype/Support/WS2BoundedInput.swift": "57de90c5ff273ddfe189d3ffb03b501e6a90cdd837082971ca56924be380fa75", - "prototype/Support/WS2CompanionCrypto.swift": "d50a35fcb45ba1905fb26a6c3c4f14a7dd450bb8413b13bfcf8429b0a7eed8e8", - "prototype/Support/WS2CompanionTCPTransport.swift": "78bccef841039bf2d4fb5058ae21e01633da6f2e00435eb1a17b9ca2cd273266", - "prototype/Support/WS2DuplexProcess.swift": "1efe08a7d6987fdac80d87f345f1d2ce212e6a5dddac3a71e086e247d8ab579a", - "prototype/Support/WS2FocusEffectExecutor.swift": "674a8760579e1eccf401f6c949d6fcf69b74257943fe795b043f255b7c3887bf", - "prototype/Support/WS2HookConfiguration.swift": "a02f22b49a684d2c74aa385776c31d91b39cc5f6a4cec81eadbf457e8951ba54", - "prototype/Support/WS2KeychainPeerStorage.swift": "ffe7ecc5a1bbd58497156c645a074506371039f49ceb92bfc2d9b2c6f36a395f", - "prototype/Support/WS2LocalLaunchProfile.swift": "34a52b15e0a183c0e0f8d45d999ab15e0f8d1b1998b7fa467fe15a4b1c843a27", - "prototype/Support/WS2PairSetupCrypto.swift": "6345ec9ff7339c0845f4140beac96577ee1310968d71dab941a0266d315e6fda", - "prototype/Support/WS2PairSetupServer.swift": "56ba109e6d1f63c8771cb0788c6c3af4796eed38cea5fe9880f744651c6516b1", - "prototype/Support/WS2PeerRepository.swift": "1ee4290d4151defac9a50b741c1128dbd8d6bcb7514cd4535ce39ac84f740b42", - "prototype/Support/WS2ProcessChannel.swift": "a87b82db462cd9fa4e0bd132153482a6c1c9d9859a4434048829443bf821cf6b", - "prototype/Support/WS2ProjectDirectory.swift": "7a9c30764d3199652eccc46265c4d7afae6c05cf65e1ee2a5be65c73bbd628a2", - "prototype/Support/WS2UnixSocket.swift": "686ea433270bef26a8a1ef5e8eea3b70fb399d9d5d3ce89d65b18da454f64129", - "prototype/Support/WS2VersionProbe.swift": "8b77c9a8ce4ec1d66f5106736783ad5581572e45d761ebb7ec92c68756d7bd8f", - "prototype/Vendor/Sparkle-LICENSE": "389a4e4e9a32f059775b13a06e25a591445ba229d2838d26dd3e7c0c45127cfe", - "prototype/Watchdog/GuardIcon.swift": "86a4da1ce16f774b882eaec4e7b9ba94c4cc981ae0488a910a6d07ac9d1f2523", - "prototype/Watchdog/main.swift": "dc5b952383cb3f6d250ea1bb06dda51bdd0fffc2861c84f2e17309215c0a4585", - "prototype/Window/AXHelpers.swift": "ccf1a2c35600cf6471db354ee1fbb3f417a60907be1446f6ee9e393a2b5b8ccf", - "prototype/Window/AXWindow.swift": "14c66d4832b32f5b55a92f896bdc0e0ffebce7588a5ac2c210b7c6c48782d3b7", - "prototype/Window/AppWindows.swift": "cf559d3698d8c20e1373f02205f5141583a3ed40aee89174eecf61f74e5dc0cf", - "prototype/Window/ChromeProfile.swift": "e5bf9411c34bf7300f7893ff4a088ef0b97f298eeac1e682b0fa0db1bba98d56", - "prototype/Window/Coordinates.swift": "8396b5874e5e219bbd635aabe149b2c22cf190ea0bbece57acedb62939dfe67b", - "prototype/Window/WindowListCache.swift": "eab77f6b1799267fd17995523aed369a6c3024ae74922dfc790ee9ec9bd13c6c", - "prototype/Window/WindowRegistry.swift": "88305979129b732efe6c49eadbe366c0c22f021ae70b19a1b38105f41e38e554", - "prototype/WindowBrowser/DockHoverObserver.swift": "e960e5af5199853e61b068f8bb170e28c536575b9c00b9f837c4d5c8f20e7ded", - "prototype/WindowBrowser/DockHoverProbe.swift": "5f246c4ad9adf0dffaf5dd533d5fbce9a71be59915441dea67da7803cfefd2d9", - "prototype/WindowBrowser/WindowBrowserActionBar.swift": "d64562ca98565f71f866a34657b65061c4fe5ee5ab01317f98d72c7ed9459fcf", - "prototype/WindowBrowser/WindowBrowserActionPresentation.swift": "6fe2f1b20eb0c5a5c70c2e0eb9ef13605a1a18c8aeabd796022cc90bb1828b00", - "prototype/WindowBrowser/WindowBrowserActions.swift": "9d3c4fbc9836384cde1904923b376307c8adca2b0b1f8e90dc69cacf9a0237bf", - "prototype/WindowBrowser/WindowBrowserAppDelegate.swift": "7578e4ad88f967a0c4fc6b18dabf97100fffd86d1bb7437c254131f55147bf8f", - "prototype/WindowBrowser/WindowBrowserCardView.swift": "45d49717fd01862f54f8e057539f34c53b72166d273dceb5e46bcd79de0ae0aa", - "prototype/WindowBrowser/WindowBrowserContentView.swift": "fc2f16c95332ed9ab6d38d51fd9057981339aae2b3475113fe11e4269a11e962", - "prototype/WindowBrowser/WindowBrowserController.swift": "64bd2b21134e068fdb2f56200817dc3f51a136d94f89937f61d6d9d277029c96", - "prototype/WindowBrowser/WindowBrowserDiscovery.swift": "310e952ed56a81ce6b6c0012f73c21180244491512a2eb2da28d2d6ffa8cd293", - "prototype/WindowBrowser/WindowBrowserDiscoveryFilter.swift": "52b1b0dc609f969048a124f8e432de16fea49ab1818256a6fc050045ab6e0eb5", - "prototype/WindowBrowser/WindowBrowserDockDetection.swift": "84d32da69e61439e8888470af49563ee1eb9000ec38fc0651392b25d9f152808", - "prototype/WindowBrowser/WindowBrowserFixture.swift": "87d41830e00e2bab94ad6dbda1411733b56ef6e514c93030b3ad74d2f098af49", - "prototype/WindowBrowser/WindowBrowserGeometry.swift": "8c99b9b866a21f9fa8a3367432b8f34bd22dd6dd67fdcabe63175133c81a08b1", - "prototype/WindowBrowser/WindowBrowserIdentityProbe.swift": "551299d755b98aaada4ad6e3067d0d610eed7f0726f36c8d327920eebd0a6463", - "prototype/WindowBrowser/WindowBrowserListRowView.swift": "c0b8db68c2a9f029075949ffa27fa7dc7a68fa26fa2112235430d2375c18bf99", - "prototype/WindowBrowser/WindowBrowserLiveAppProbe.swift": "7da491d0baed6b3c9e5015b41df0d563bcd73727c832a71e64a14c7f73885711", - "prototype/WindowBrowser/WindowBrowserMaterial.swift": "8c6c4fa0aa7b91393d7c36c04d5073f9d609e074489730c1a800e131a4de3f0c", - "prototype/WindowBrowser/WindowBrowserMetadataQueue.swift": "f84d13c4f228aa21bd5de5178ce2bafc419fb7c7f19ae954250057d3432139c5", - "prototype/WindowBrowser/WindowBrowserMetadataScheduler.swift": "0c77949b83a0cc53b5709903c7f9d295de93475e99e29659dfe38228aaf2dd0e", - "prototype/WindowBrowser/WindowBrowserModels.swift": "8d1ac3433b43938cebb8565f26472837419b06886c27600a34b37c6a73d135a1", - "prototype/WindowBrowser/WindowBrowserMorePolicy.swift": "0dd7330bbb8e954c9192b6a966fd5d404186f73f61ef6f0a10207684b25c017b", - "prototype/WindowBrowser/WindowBrowserMoreProbe.swift": "a89798b807b0379184465cd43d61a03bd37121d5faf9ece9732ea19a133af250", - "prototype/WindowBrowser/WindowBrowserNewWindow.swift": "67ad7792871dae78a36fb8d3d96f93100c3f7a5ae14fe33c1e3fc74760266904", - "prototype/WindowBrowser/WindowBrowserPanel.swift": "e51df9e16a69e98b51bde15147ea5712177ea2646b0d64c62b8cc5aca55829b3", - "prototype/WindowBrowser/WindowBrowserPreviewStartup.swift": "c85d8b98cdbf44cc2faa56dd20cb819c364394ae3a6344fd69eb657a531d5f14", - "prototype/WindowBrowser/WindowBrowserQuickLookView.swift": "fc14a2ccb192aa4f2d3dcf5aa0877737b890793c88096c643d6e5f0694bebce6", - "prototype/WindowBrowser/WindowBrowserSelectionDetailView.swift": "f8ae3713ba812b1d72c606baed65107fd30ccbbc2b77f142d743960659da77b1", - "prototype/WindowBrowser/WindowBrowserSettings.swift": "eaff6f4f80b76fc9e33ef926b80e6fb334c19dc4400288674c4e3bd9b2846194", - "prototype/WindowBrowser/WindowBrowserShotProbe.swift": "aee82f9d9b735feed796fb75a4dad86c99e71f6f7191ffcea61f9a298a8cc415", - "prototype/WindowBrowser/WindowBrowserTargetBatch.swift": "6e1d895e426120b795a1759c1443c75193649b2dfe2d9fd50665928df93c206f", - "prototype/WindowBrowser/WindowBrowserTargetResolver.swift": "2fc395871767c42537f7fe79a565c1837ef56c82654b5f08fab8c5b4f7b83ab8", - "prototype/WindowBrowser/WindowBrowserThumbnailPolicy.swift": "b986005482d3bda8c7a0eeefdbc2600b353b12780b23ea8cbefa8a01271b6c9f", - "prototype/WindowBrowser/WindowBrowserTypography.swift": "ce68992e81c1d9a9947c1258ccfac4f2b430be5eb715002d20e31de8ba9054cd", - "prototype/WindowBrowser/WindowBrowserViews.swift": "35b31dd17656b47ce7c4fdfd6d25771c8ed86f29cf73e8d34085976342331afa", - "prototype/WindowBrowser/WindowCatalog.swift": "b81bb8606aa8c93941246e9893ac81d509126845a46b43d3bacb623e7bf563bd", - "prototype/WindowBrowser/WindowMirrorSlot.swift": "3d3bb68eb6c59d18a0e8088f8b88dc464fddb785667b32e20b0346a4964cb3e3", - "prototype/WindowBrowser/WindowPlacement.swift": "0aa1edd22e88e621b77365532b8ae9f508045668322593277c24d23e48738561", - "prototype/WindowBrowser/WindowThumbnailService.swift": "e22d946a1ea9b79a74e1c9bfa83d807a924fbe0710f27ae4f0d8c57417c102cd", - "prototype/WindowShade.swift": "0c489c4b721315ef147f7b3898aa388377eac8b766ada421fda395716f16828a", - "prototype/build.sh": "e6db6c9f3499fcdcb4f28c065199f4f87aa64aeb0c5a46b098164dc761ad588c", - "prototype/main.swift": "a0583484440cb3d3d5214620076ae0786c1d2236ec81767cf3f31f6f8e792bf8", - "scripts/check-settings-appearance.sh": "ba4eea9d99f1dd57e48d38b4932fffb0f0a3790277e54362ce7b5cae9e43061d", - "scripts/check-standard-menu.sh": "1f186101ae461a577460a9d09e4921743e315a40c51b533f0664559519124044", - "scripts/sls-symbols.c": "de51dd06c9c10cbb592ba03e8e5fa7f473770a2182a9d7d6f01c43058dd4a173", - "scripts/try-duo.command": "7beeeccc2c79837276a165f4bde054271a5d1530c5716b49c312b58a14bf3624", - "tests/AudioDeviceCacheTests.swift": "6fd6a03c80db60e0eb5d79ec8b200da3dd0215a76a77b9a61476a4b761b18d26", - "tests/AuthorizationLedgerTests.swift": "c012e780965ee2c229851dd83fea4fd5e84d80da52a50395853dccf7daf177fb", - "tests/BehaviorRiskTests.swift": "6d6f7c617446c8c641badab45c1f4e950d5b0862150528462d6aa19eafe59d5d", - "tests/CaptureIndicatorTests.swift": "68aa7694ebfa6326ec4e30d9291c14187f088f441f71ffa7d9817523330e2b1d", - "tests/CarryControllerTests.swift": "e5e0942bc5842490cd348d4f929d36be83712f083952c8c9704f2e1156b6e5b1", - "tests/ClassicStripTests.swift": "44e61393b8576e971c24bd5ba36f3242fafbe74cb41a43571500ba916f679564", - "tests/ConductorGestureTests.swift": "14439c86a80b4fe153084eb21dd3f944e9ade0c6ec2a1a5f3dd59a8f75b1239d", - "tests/DeviceBatteryTests.swift": "09980d117215ae7b47979f56c1afe9f99a8091f06ad901d54fbfeccbf4b97501", - "tests/DisplayShapeTests.swift": "63675a2a344167dc856d230a16c9664c770758f479ebb204fd164a0f066aa5b4", - "tests/DockSwipeTests.swift": "d59577e0b45d78f85f03246cfeaf1740e6c24a04d6f164b9c0019c5b3915f839", - "tests/DuoCoreTests.swift": "580fbdfa753b6fba4941f67abc0ce7fe58d182d37cb3409880647a5ea6d748f5", - "tests/DuoFrameMetadataTests.swift": "f1850663a3ea9b6c90220044a1ceaee046b6cc58200e4aea1d8b30daa3b04cef", - "tests/DuoGPUBenchmark.swift": "5638f59b1de734ce94684339f6fdea28cb347769b46943fc4b501852896da6bd", - "tests/DuoOptimizationBenchmark.swift": "6414d5a1401ff857f521f09bedd0ce741e20a9ec2b6d6fb17fa861e434630ecf", - "tests/ElsewhereWindowsTests.swift": "a768bcf399abb35a1b82e21db77a777eb4a341ab7f138c5a231758dd72c6852c", - "tests/FaceGestureTrackerTests.swift": "98239a145c0b7f45c20455fadad10255334ffbad6da6cf226f0de25871900d02", - "tests/GlanceIntentTests.swift": "9151ea28b4a5208384581587f34273512b69faf4c680595b6f2c654f29c263f1", - "tests/GlanceLifecycleTests.swift": "36ff4b576f04cd482aa661a5b3e59609f5a97194652176f59e48bf0bd5875e02", - "tests/HabitRulesTests.swift": "c2ca1ad2424e89eabfda84fa57e8f2dbfb277e68b6453a6cbfe5106c624bb913", - "tests/LaunchpadBackdropTests.swift": "99fe0c5c298970453842a07a8a2a290ecbc24fe01f94c1eec076977f2aa38321", - "tests/LaunchpadModelTests.swift": "e0b350f6cc96e12fd4ac0ce3ce2663dc1ea29ea116b890c2328942fcd70a14ee", - "tests/LaunchpadViewTests.swift": "c4a9edaea813a157e900546f7b88123f083c1f20c8e0b8761ffd1210ecf80a4c", - "tests/LidGestureTests.swift": "37ad9d94eedec3c240e14cdbf1364abf9d9876a54b290a1968f4be3e643a752c", - "tests/LidSourceTests.swift": "c07ff687a2a34e1a94f541fe44e2064496849bdc246678fdcb9eb9398cd4cebb", - "tests/LivenessChallengeTests.swift": "be983797fa49a07346030c51ac0200c8bc7e6ed6fef77fa7302c4ed3783b4cc7", - "tests/LockOverlayLifecycleTests.swift": "3981318764b379d6e733a0acbd04bc0af613bca6148929c5a4e4d6e1d66ebf21", - "tests/MagicTilingTests.swift": "03977451a1b2fda9dee0daaf45acbf1fefabcfd16a162b685929938a9fb8d270", - "tests/MetadataQueueTests.swift": "8e942639ef13f95d9e0ce30a1a269ec9a2426f96ac48b2b772171d967d7c610a", - "tests/MotionTokensTests.swift": "06a3cf8102bd9e4f5a11ff648af8c08701c21acd615c9891a175b68e1cd02444", - "tests/NotchActivityTests.swift": "6f894ffa34175e557a8c6ae8cac03e866da49aa66ce16d7221a71ad331e85d13", - "tests/NotchActivityViewTests.swift": "4954e6b70c0d40d4576a4307c7ecb132000944c0ef4dfa8475d8e507c026bee6", - "tests/NotchAuthenticationTests.swift": "6b7e46e7607040e2c4abc6b809859c748635004cc752ff6d207ec957c1dcaac5", - "tests/NotchGlanceTests.swift": "0dcbae862ee7eca51c49bac7f2c1b16fcd95c60c1019096a53adeb4ed78e73f9", - "tests/NotchThumbnailsTests.swift": "3cfa03c5ad9d1671cd0a2b94b3f62364cb51ac5904f738a9e5f7658bf45b4d37", - "tests/PaperSurfaceTests.swift": "08434cb38b6e8dbee4bba57914d27a312cefbfc29abf059cbea96017b5309839", - "tests/PiPLayoutTests.swift": "7aa2aa88e9e7544c62eb17cd8e37b6f9eaccd0920f973dfa853d4e154b8a6653", - "tests/PresencePolicyTests.swift": "5a42acc39d1ae69c1909860f710af17653058286f82430763c10630b9af68b9a", - "tests/QuietDefaultsTests.swift": "20f383f9c6d71958244714e8d4e4d007c5f8108f439152159418b28785831eca", - "tests/RectangleKeymapTests.swift": "8c9e19f57a17e324c30f52e4e3536a1901dc86bfa8b8b9fe4fa4d036056815e3", - "tests/ScrollStripTests.swift": "584e0c4acd9533a0d48d3f7d2db5af433e37b204e6f89c1c3043dc5ef7b4d9a3", - "tests/SeamLayoutTests.swift": "eb730924e1795377f54ade03d7465771b55d7195a17aafc649de5522077f86bc", - "tests/SettingsNavigationTests.swift": "c51f97ab6bcadac91cb8c80dc703fd3e870d908c27b2f024738444ceea9c95c8", - "tests/ShadeSoundTests.swift": "62ed4c93372fb29f764f22dcf968184fb06b73f998e5c55e33648b01a0a5516a", - "tests/SlideOverMotionTests.swift": "557af4dd930a36ecaa394e23dfecb57c2ce927606df0cc2c56a4b053ac206872", - "tests/SplitPairTests.swift": "853ee7754c26bb20eae0610aac789dbcbbc1cf9c4b0ef28c911cff389ae36262", - "tests/StallSamplerTests.swift": "ccd7069deb5732a04f57982e24ea7fa3535613d125184c6e688fcbfb3dd47a40", - "tests/SwitcherOriginTests.swift": "c9b9e61901e25010f9b298f1ca336db108fbb25e6fef200e3df55f2aa107ecbb", - "tests/ThumbnailLayoutTests.swift": "de0edbb80b71a80e3cb069399d5d60c6fd60c4190486d554e30b92140b57bcf8", - "tests/TimingFeaturesTests.swift": "00992191897b1588b0fb10fd3f6352cb76f45b3755b8bba049169278c41964d6", - "tests/TrackpadGestureTests.swift": "32eb176b0ffc896dc94c1e4fd248a30e1bc08f9320afdee21624b74a00f9917a", - "tests/UpdateTests.swift": "f5c1a2bf55d90e69a1cfe0d82361ff50b496b218f1288be7cd4d5d807927b8b9", - "tests/WindowBrowserPreviewStartupTests.swift": "29674876ac8ac58168812ece4c0c60cacef9d35a2c73b2d234a18bce1022f5c8", - "tests/WindowBrowserTests.swift": "880ea1e13c0082f81c13ad977c982a3232d655bb2c3ee76033cbcdd5e64e3602", - "tests/WindowFoldEffectsTests.swift": "4ee4862cd7a29f4edb2fdb40576551c45cb837cdb8bc85ffeedad4da8750e544", - "tests/WindowListCacheTests.swift": "3fdcc5a24540d46735b371c4f83a3653864bc4ba06fce06fe536f109287ba54e", - "tests/duo-integration-check.py": "1614f812d80321117c4ecb43c3e649c4f0033092653ffbbd8026c45a0b127916", - "tests/fixtures/GlanceFixture.swift": "42a9b09d4d50e2dc1158946d111b43719de83216013ed47ff239fb385d778dad", - "tests/fixtures/LaunchpadPerfFixture.swift": "9c008df67cf10add6ec425b9dc7855ca007d379ab6365d1e114e0ba7dbacd20e", - "tests/fixtures/LaunchpadVisualFixture.swift": "e664bf9ebe168b5543a8a6868672d4c2a842cfcc4dc4cc1c271fb907e4d541eb", - "tests/fixtures/capture-indicator-active@2x.png": "e9dc2161d154c48a5cbca2e156691131dbc0942e5e31ad624f77ad6850d966e9", - "tests/fixtures/capture-indicator-before-stream@2x.png": "f98ceb3b31a89ea298229fcb9dff01d0c3b86e5e4bf2583fc24b3b5f908b0083", - "tests/fixtures/capture-indicator-inactive@2x.png": "f979f41f3cd3faf343f3870486dbed609c36c716c790e88f110858caa1624c69", - "tests/fixtures/capture-indicator-stream-frame@2x.png": "3e070f6196de997e6713bdd320175f5cd8fbbf94dc50413215cf4b5941d22434", - "tests/fixtures/lid-traces/adjust.csv": "364402af37f1d196bb69291bfa359f2743eba38bbac0f65c737a79df6c5fb72f", - "tests/fixtures/lid-traces/fast.csv": "674d70b7c4909699de5a8ef8d7d0d873ab0f8cebf167875bdb609e397057003c", - "tests/fixtures/lid-traces/partial-hold.csv": "7edecd690b14174651f775ebbc9a8a71d11dd4fe63ce531e9cbed4c7114f7d7c", - "tests/fixtures/lid-traces/rest.csv": "f3b43a73a2a78a3219075228fa2759aa74ba81ce2bc932f8cb65ff6af5e68648", - "tests/fixtures/lid-traces/slow-close.csv": "aecc4574bd843c2663432828ae87503d520c016092144611f7d9bf216bdfd31d", - "tests/run-appkit-tests.sh": "1f4adf5522dedfed94c7823038b1862e1e7d98e12f1402d727c84eecae29e0a2", - "tests/run-audio-cache-tests.sh": "8cfedadfc7796803c04316aa2f017ceb6064bc886d35f0d6429759df16a34236", - "tests/run-authorization-tests.sh": "df83f18a6857608321a5ced73f06e678e08d775846f93551f73d271e1d5a9158", - "tests/run-behavior-feature-tests.sh": "30f1b6f32a199748428a3ea58caa2502472ae633abf0257ac680b316ee82ec8d", - "tests/run-behavior-risk-tests.sh": "097a26043b9d2ce3caed924fd81921d79548f5da03b2a33d4b3176c41fcb3ae3", - "tests/run-capture-indicator-tests.sh": "29cb6a1301bccd1e7e78f328c4fb730dcb8071cdcd0d8bf82ab48e65aa0105a7", - "tests/run-conductor-gesture-tests.sh": "3c916a89a2431a405c20d30832d323df9e90da85952d53334bf7d41e299cdc49", - "tests/run-device-battery-tests.sh": "a05ab1776107781796cc5d4c41623935c171ac289441e9e5374e18f110fae05a", - "tests/run-display-shape-tests.sh": "0e98fd9d200c48e3bbbbecde18a7702664f85c2dea2bc975e38c1e41ce12d4d6", - "tests/run-dock-swipe-tests.sh": "f3940991392934f61cb0ad6a419e4e3a4352b8cec846070e3ea809d5fe39e07e", - "tests/run-duo-tests.sh": "fbdaedfc56e5ec5831cdb70c80474e80275f25cd7d167847ca075dc0359f27ce", - "tests/run-elsewhere-windows-tests.sh": "bbb5b677d1b5945922041bfde7a8668e69df0088f2bb6a2d1d7aebeca34114e9", - "tests/run-face-gesture-tracker-tests.sh": "012ed6d90ccbf6ab9b8d5c820dcf44d07114ccf53e1ae82cfb3f921bd974c821", - "tests/run-gesture-tests.sh": "c8b7d41ed2acbeb21d69565eaf7ec413824d402afb77acf5fc43a44dc8a1ab57", - "tests/run-glance-probe.sh": "9b1f8e937104f0d57348c3738ad3819777cbbd3f907026ace72c18e17401760f", - "tests/run-glance-tests.sh": "76b81023914f049fa2056f1e444ad5c72bb55422b0a708aff36c150a8a7a320d", - "tests/run-habit-rules-tests.sh": "80262b720b5cbc5c2e10bf83b4be8015033fba70da05145bba9d1f98d8636431", - "tests/run-launchpad-backdrop-tests.sh": "9a8629dafe57968017455af16ad8f326ad4ee4fe7b3506d94aa68f4489dc8db2", - "tests/run-launchpad-perf.sh": "736cbc2f64b15f3e728f79e1ae58c141edf3627fa70493b7612a26d4d3cd3d18", - "tests/run-launchpad-tests.sh": "b8693dc395676c7a60c8ecf62e32ac4e64a698a49177807fa16a916ebcddfb1a", - "tests/run-launchpad-view-tests.sh": "1d368439acb4436187e518545c4cc312272d870ee9d12a76737d3465825feee3", - "tests/run-launchpad-visual-fixture.sh": "b206a0d06f5b7b7798f3d09ab55c461e72f765bc9a6fb3efc220a08c749221c9", - "tests/run-lid-gesture-tests.sh": "c3a1b41012e74a2ab7fcd408649cddd088b3fc1458e7097085a516f6fff386a0", - "tests/run-lid-report-probe.sh": "2032aea177570acb6e80a3a6fe0f18a8d637f2715b1f5b67ee6ba6c03597ad49", - "tests/run-lid-source-tests.sh": "1fea0bef734db6b26d5287835eeb4409a108ffbffece7c5e81f00b3c2a8b77e7", - "tests/run-liveness-tests.sh": "326a5a828ccb2538980bd527ef403fbd0d0727548133fae5654e85c05ad99a8c", - "tests/run-lock-overlay-lifecycle-tests.sh": "424ab7dec4ddebc402574f614d116f2e72c02e8f2480c50ed6d523062cde5487", - "tests/run-lock-probe.sh": "84fa4a9bbfc498812aa3ec379d4431d137b3a58c328ae1feabf4ed193be52681", - "tests/run-magic-tiling-tests.sh": "736ad6ac12010c51c134f6b68689ba189bfc51dea20b845c835afdaf899802f5", - "tests/run-motion-tokens-tests.sh": "9990dc54d1dab6ec610183687617da9056ff296ee0ba0c3f7710ed92ffab2c4f", - "tests/run-notch-activity-tests.sh": "4fae5b0d1024959337536cf23e2f2da99be3d88a41101bdea1db5dde1d38b9eb", - "tests/run-notch-authentication-tests.sh": "6a4b7ee654ca912eb7d4798c3b4c1d0982853688a301d07eb449a8f792c2410f", - "tests/run-notch-glance-tests.sh": "0b7a9c5836808a4ec2bec907e2bee4eb544d00fef7b60c8f935788824796a32f", - "tests/run-notch-thumbnails-tests.sh": "54cf9b5defa374b7b84d27da6bc7590a56ac4cf1ac56125de0d0bd77d3151a30", - "tests/run-paper-tests.sh": "318db5bf20dad164d2aa506851b0408b0c2f381bf92251fa1eba0f764bea8ca4", - "tests/run-perf-check.sh": "c19afb6cee942b1e6897f1a0c06bef183d2054ff92802d5eedc670034efa4a4b", - "tests/run-pip-layout-tests.sh": "8f5de023f4cefaac9635bdda2cc90a63986ed5e33229fc0d996e07acab47031b", - "tests/run-presence-policy-tests.sh": "76d81e542e97c77c0effa407b5ef8abc596489cfa24b7958cc5ace1e1f2ab7ae", - "tests/run-quiet-defaults-tests.sh": "8ea6d71867011632d85017f718de596307a1d0fc937c68cb686da854e316c22e", - "tests/run-rectangle-keymap-tests.sh": "cca1bd690c1a235f7b96da9b3c16a073f7a591435ac804876d9e7ff4b77cb0ea", - "tests/run-scroll-strip-tests.sh": "736556ead95040acd1d30efc04ce834cb6e8eaed6caf807f5b9556e763bc3827", - "tests/run-seam-layout-tests.sh": "9172f47d9d5d52c1c84ec593d565c6a420e9d4e6a60e479a22102db4cc4071d5", - "tests/run-settings-tests.sh": "9a46795bd8d1dce76b074a6b717f563086a525dcd74a371dfe745899521edf85", - "tests/run-shade-sound-tests.sh": "1fd72b5b8cacac4f16bd49bbd88a6e8f9de8b13b59161a7dd5d5359a59934308", - "tests/run-slide-over-tests.sh": "2490f215c85b5a59be98866d7dd45f48f68844d1c07bd8f02b3ec9dc8e0dc142", - "tests/run-split-pair-tests.sh": "3d310426a8fd399e6d1f1abad0c7a9fa70ecc7d3d5ba89c5f0a98cb1926c6f11", - "tests/run-stall-sampler-tests.sh": "96583b77de69f17bfcacf9b60eb279908ffc775ca8159f4a0dee21182a862bbb", - "tests/run-switcher-origin-tests.sh": "bbaa861a26426bcb3ccbe4a00793e594e927012049758127ea6f25c35d0d0d7f", - "tests/run-thumbnail-tests.sh": "aa67fee130a1ba37a58b3d05af861c1dbe5bfad5ef43fa96be8199ed15798d30", - "tests/run-update-integration.sh": "ff52749b120b1e1ea61e9310eb7384f43cb05089b30f515ed3abafff9800e402", - "tests/run-update-tests.sh": "054fef60c81f32da4bb9f735268b93309d31b7b0a105a2726be91449a09193bb", - "tests/run-window-browser-tests.sh": "60800f4fd7fc05ef6b0e559a0c78f07fdf73bef2a5fda18102e90a686bfd534a", - "tests/run-window-list-cache-tests.sh": "41c6d3f372235233afe6d298c40fd8ec60be406a19554b12be5b0c5787669ee2", - "tests/support/NotchThumbnailsShim.swift": "d902c85adfb192b475ab833ca911eecf09f40cf1b480f0dabdac1887616cc7a9", - "tools/accessory-probe/README.md": "f11a75dab991ac2c0dd01466e2440a87770cbdf82586f4b1f736e99e0191a05e", - "tools/accessory-probe/main.swift": "25d5fe0763ca9533914b6340128371eca91b1e9b8921cc9a6f177230f81e9f83", - "tools/accessory-probe/run.sh": "9d1489fe51c569c0ef13bd020f961b18d6db391e71bee7e795345542a071e214", - "tools/activity-frame-probe/main.swift": "588c505696d631f9b7f96d09366e1e4c457171679ac54e55073b4ef1a82b3e5e", - "tools/activity-frame-probe/run.sh": "1d796225453350a28cf68c33bb9079439c1e2488e2ce76d3bddf06ae8f3ce571", - "tools/activity-source-probe/main.swift": "55ac6188889c4c9801c8ac61da19283acc3e9bac31afde4de0750abe46695ad6", - "tools/activity-source-probe/run.sh": "e428f5742e752776df5500c2801c31e0919fee6c8de3a3e83974ddf7920d3c54", - "tools/behavior-lab/BehaviorRisk.swift": "edbbe0f391ae397ef24a0899637ef3d2e0454cfadf43f5792c835b52f89bfc6a", - "tools/behavior-lab/README.md": "f65df09013b8cd908153c8ec5313700480eed56ca42a44758be818937a197f63", - "tools/behavior-lab/TimingFeatures.swift": "adb2b6edbccf580d99545948b187d3f2ea21ac72efdfe0c3b03a53cf1640e19e", - "tools/behavior-lab/main.swift": "8ec906c8d6e8f0ec189f6d7dcb4bab9e82779d9119adc29ae93f0dde7f513658", - "tools/behavior-lab/run.sh": "8023f1e9757ec37098432a250df286d0400e9889dff6542d2aa3c6c8abc2f45a", - "tools/companion-probe/README.md": "aa1b0c781723734879533196af750d53797e7071a170e3877e4f8bd4f1b38b51", - "tools/companion-probe/main.swift": "9831cb9aa5545998ef17954b5eaa70efd1d5e08875eb84b028d48b8f1e8be655", - "tools/companion-probe/run.sh": "a0ec7f5eb3dce6c6d8455aaf25e72d837b536eabd3da4e2c3d6c69464ee7d188", - "tools/lid-report-probe/LidReportProbe.swift": "5eccb09fe8aa99763f4ff07673d007946bd1331deccb7bdda7f27ffeedcfb5af", - "tools/lid-report-probe/README.md": "eafec4a2914d3cabcbce01360d869133c1497eafd0a515adff23939d2547670a", - "tools/lid-trace/LidTraceRecorder.swift": "3e2677b3105bf5e0b8c1e41d17e2c089abdf118adaa376fc28468073e8c410b6", - "tools/lid-trace/record.sh": "19e83f70ad081494dc7604b26a52ac42e289ac692f60266d93fa8d39d2105bf3", - "tools/liveness-lab/LivenessChallenge.swift": "ae641483f238576eb1ff723db5278a71ce2e246d4cc28a9df395d0e1eaa9b13b", - "tools/liveness-lab/README.md": "aca5d3ed0c4c71f7bd7815ee07e1ed81ac10e063fe21c1c0c5796ccc165d84fc", - "tools/lock-probe/README.md": "4e7b10c7da0f5bee4c924a1ddcd56dd0ea9eda7857df5184fbf59e4fc8a4f166", - "tools/lock-probe/main.swift": "c421a26fa618fef2908a3adbafc0a616e2b2509cc4e5538602c20fb305d90d22", - "tools/power-context-probe/README.md": "660ea4ba4791c9c3a3fa3a8ae77463a87e98889bc04cfa4925d2d3c348835833", - "tools/power-context-probe/main.swift": "6732248b368a8b705ddf42f5454a9f957d7d6ae6dc9ce574d7c1edaa76eeafc5", - "tools/power-context-probe/run.sh": "90f70f69cb2bdfcf4d30ae2afb478bb0a961cfd263ffa4807d3f6bc1303f0bb0", - "tools/presence-probe/PresencePolicy.swift": "bc87d4dd1d328edf5850875c569ab0f340ea530c5248270b324ca4a6993d9e7f", - "tools/presence-probe/README.md": "471adbbb78c127e571c8eccb819d3e52003371bc59c30ffe9525041e7574ee2b", - "tools/presence-probe/main.swift": "7b7d0c71e0ace75fab348cc7dd2fd2917b8f44219afcb4b19e216e82be6c66b7", - "tools/presence-probe/run.sh": "fda772e20b6c282f143067c974abe295f192909c73437868ec9dd76a33af5dc1", - "tools/secure-enclave-probe/main.swift": "e269fa4ba7b34843b727ef241c4e59ca97a6c418c9f7ffc4405c0958b72a48c4", - "tools/secure-enclave-probe/run.sh": "956e15ee147a5c999d18b9fd36dbda58b4af8a3829e00525aafa2bdad04a0352", - "tools/touch-id-island/main.swift": "412214a5d14a1e180b0a59b82da775fb052e33e15f51c4c78cb697fda33836fd", - "tools/touch-id-island/run.sh": "b5f477ed74ae343e73d58ada2f8b03150d98b4101b0129e6dfd4ba21460a9ae7", - "tools/window-snapshot-check/main.swift": "a271eb7faf0b1456982ff0dc38443413b778de5c53c60728b3fe6b1833ebed87", - "tools/window-snapshot-check/run.sh": "5b8d9f005ea18b0a499f60f7e2ea7fa18d984363d381725889d096768e970347", - "tools/ws2-hook/build.sh": "274e626a57de617debb2b16b6fa48787dea89409a0c77c2231c5fb8a2515da82", - "tools/ws2-hook/main.swift": "bb23445b862a087c1d2fdf105324426b4b21ac30e920744f89fe3e0b95b68c1c" -} diff --git a/tests/archive/part9/sources/code-map.json b/tests/archive/part9/sources/code-map.json deleted file mode 100644 index 5c931c3c..00000000 --- a/tests/archive/part9/sources/code-map.json +++ /dev/null @@ -1,1758 +0,0 @@ -{ - "candidate": "v9", - "files": [ - { - "path": "prototype/App/FocusTimerHost.swift", - "sha256": "7aa01c91cb3abf4503ff8eb92a8060efcdfca907b295caa3ab0fde88d264b666", - "base_sha256": "7aa01c91cb3abf4503ff8eb92a8060efcdfca907b295caa3ab0fde88d264b666", - "changed": false, - "line_count": 39, - "symbols": [ - { - "name": "FocusTimerHost", - "line": 2, - "declaration": "@MainActor final class FocusTimerHost {" - }, - { - "name": "handle", - "line": 16, - "declaration": "func handle(_ event: FocusTimer.Event) {" - }, - { - "name": "configure", - "line": 21, - "declaration": "func configure(preset: FocusTimer.Preset, tuckChatEnabled: Bool) {" - }, - { - "name": "stop", - "line": 26, - "declaration": "func stop() { wake?.cancel(); wake = nil; if revision < .max { revision += 1 } }" - }, - { - "name": "schedule", - "line": 27, - "declaration": "private func schedule() {" - } - ] - }, - { - "path": "prototype/App/FoldCompletion.swift", - "sha256": "18559db591375242d83406a083b9a18e4bf5dc69de7b8c32c8f3494c31054982", - "base_sha256": "1147a93b8ab37828e0dd4be225e879ea3a4636283aaa5d7202369b926ec850f5", - "changed": true, - "line_count": 65, - "symbols": [ - { - "name": "registerFoldWaiter", - "line": 11, - "declaration": "func registerFoldWaiter(id: CGWindowID, completion: @escaping (Bool) -> Void) -> UUID {" - }, - { - "name": "bindFoldWaiters", - "line": 21, - "declaration": "func bindFoldWaiters(id: CGWindowID, tokens: [UUID], transaction: UUID) {" - }, - { - "name": "settleFoldWaiter", - "line": 28, - "declaration": "func settleFoldWaiter(id: CGWindowID, token: UUID, success: Bool) {" - }, - { - "name": "settleFoldWaiters", - "line": 33, - "declaration": "func settleFoldWaiters(id: CGWindowID, transaction: UUID, success: Bool) {" - }, - { - "name": "cancelFoldWaiters", - "line": 38, - "declaration": "func cancelFoldWaiters(id: CGWindowID, tokens: [UUID]) {" - }, - { - "name": "settleFoldWaiters", - "line": 42, - "declaration": "func settleFoldWaiters(id: CGWindowID, tokens: [UUID], success: Bool) {" - } - ] - }, - { - "path": "prototype/App/FoldTransaction.swift", - "sha256": "f353846ee708e80dc81e78636f24dd3976d5ec77f1c0f9db0e38f2f675519c3b", - "base_sha256": "482e8b46ad1aec8d169653d75d0c3976379104191c2e53bbe3ecab05bb98e06c", - "changed": true, - "line_count": 1059, - "symbols": [ - { - "name": "parkFocusForInactiveCapture", - "line": 7, - "declaration": "func parkFocusForInactiveCapture() {" - }, - { - "name": "releaseFocusParking", - "line": 22, - "declaration": "func releaseFocusParking(reactivate pid: pid_t?) {" - }, - { - "name": "handOffFocusBeforeHiding", - "line": 41, - "declaration": "func handOffFocusBeforeHiding(win: AXUIElement, pid: pid_t, id: CGWindowID) -> Bool {" - }, - { - "name": "hideTookEffect", - "line": 103, - "declaration": "func hideTookEffect(_ hide: HideMethod, win: AXUIElement, pid: pid_t," - }, - { - "name": "scheduleFoldVerification", - "line": 108, - "declaration": "func scheduleFoldVerification(id: CGWindowID) {" - }, - { - "name": "revealOverlayAfterVerification", - "line": 147, - "declaration": "func revealOverlayAfterVerification(id: CGWindowID, state: ShadeState) {" - }, - { - "name": "rollbackFoldTransaction", - "line": 165, - "declaration": "func rollbackFoldTransaction(id: CGWindowID, expectedTransaction: UUID? = nil) {" - }, - { - "name": "activateApp", - "line": 190, - "declaration": "func activateApp(pid: pid_t) {" - }, - { - "name": "bringRestoredWindowToFront", - "line": 196, - "declaration": "func bringRestoredWindowToFront(_ win: AXUIElement, pid: pid_t, reason: String) {" - }, - { - "name": "attempt", - "line": 199, - "declaration": "func attempt(_ label: String) {" - }, - { - "name": "prepareForwardedTrafficAction", - "line": 223, - "declaration": "func prepareForwardedTrafficAction(_ win: AXUIElement, pid: pid_t, reason: String) {" - }, - { - "name": "restoredWindowIsGeometryReady", - "line": 230, - "declaration": "func restoredWindowIsGeometryReady(_ win: AXUIElement) -> Bool {" - }, - { - "name": "buttonIsReady", - "line": 235, - "declaration": "func buttonIsReady(_ win: AXUIElement, _ attr: String) -> Bool {" - }, - { - "name": "forwardedTrafficActionSucceeded", - "line": 251, - "declaration": "func forwardedTrafficActionSucceeded(state: ShadeState, id: CGWindowID," - }, - { - "name": "performForwardedTrafficAction", - "line": 274, - "declaration": "func performForwardedTrafficAction(state: ShadeState, pos: CGPoint," - }, - { - "name": "retryOrFallback", - "line": 288, - "declaration": "func retryOrFallback(_ index: Int, note: String) {" - }, - { - "name": "verifyAfterAXPress", - "line": 312, - "declaration": "func verifyAfterAXPress(_ win: AXUIElement, index: Int, attr: String) {" - }, - { - "name": "verifyAfterPointerClick", - "line": 324, - "declaration": "func verifyAfterPointerClick(_ win: AXUIElement, index: Int, attr: String) {" - }, - { - "name": "attempt", - "line": 341, - "declaration": "func attempt(_ index: Int) {" - }, - { - "name": "schedule", - "line": 372, - "declaration": "func schedule(_ index: Int, note: String) {" - }, - { - "name": "showRealWindowManagementPopover", - "line": 387, - "declaration": "func showRealWindowManagementPopover(_ id: CGWindowID) {" - }, - { - "name": "attempt", - "line": 400, - "declaration": "func attempt(_ index: Int) {" - }, - { - "name": "windowIsParkedOffscreen", - "line": 430, - "declaration": "func windowIsParkedOffscreen(id: CGWindowID, win: AXUIElement, size: CGSize) -> Bool {" - }, - { - "name": "privateSLSOffscreenHide", - "line": 438, - "declaration": "func privateSLSOffscreenHide(_ win: AXUIElement, id: CGWindowID," - }, - { - "name": "privateSLSAlphaHide", - "line": 474, - "declaration": "func privateSLSAlphaHide(id: CGWindowID, pid: pid_t, reason: String) -> HideMethod? {" - }, - { - "name": "axOffscreenHide", - "line": 506, - "declaration": "func axOffscreenHide(_ win: AXUIElement," - }, - { - "name": "ownWindow", - "line": 530, - "declaration": "func ownWindow(id: CGWindowID?) -> NSWindow? {" - }, - { - "name": "orderOutOwnWindowIfNeeded", - "line": 537, - "declaration": "func orderOutOwnWindowIfNeeded(id: CGWindowID?, pid: pid_t, reason: String) -> HideMethod? {" - }, - { - "name": "hideWindow", - "line": 548, - "declaration": "func hideWindow(_ win: AXUIElement, pid: pid_t, originalPosition pos: CGPoint," - }, - { - "name": "fallbackHide", - "line": 609, - "declaration": "func fallbackHide(_ win: AXUIElement, pid: pid_t, id: CGWindowID?," - }, - { - "name": "safeRestorePosition", - "line": 639, - "declaration": "func safeRestorePosition(for state: ShadeState, desired pos: CGPoint) -> CGPoint {" - }, - { - "name": "refreshedWindowElement", - "line": 658, - "declaration": "func refreshedWindowElement(id: CGWindowID, fallback: AXUIElement," - }, - { - "name": "resolvedWindowElement", - "line": 666, - "declaration": "func resolvedWindowElement(for state: ShadeState) -> AXUIElement {" - }, - { - "name": "applyRestoredGeometry", - "line": 694, - "declaration": "func applyRestoredGeometry(_ state: ShadeState, to pos: CGPoint," - }, - { - "name": "restoreWindow", - "line": 727, - "declaration": "func restoreWindow(_ state: ShadeState, to pos: CGPoint) -> AXUIElement {" - }, - { - "name": "cancelRestorePin", - "line": 767, - "declaration": "func cancelRestorePin(for id: CGWindowID) {" - }, - { - "name": "pinRestoredWindow", - "line": 771, - "declaration": "func pinRestoredWindow(_ state: ShadeState, to pos: CGPoint, reason: String) {" - }, - { - "name": "attempt", - "line": 779, - "declaration": "func attempt(_ label: String, focus: Bool, verify: Bool = true) {" - }, - { - "name": "resizeShadedWindowFromProxy", - "line": 822, - "declaration": "func resizeShadedWindowFromProxy(_ id: CGWindowID, proxyFrame: NSRect) {" - }, - { - "name": "makeRevealObserver", - "line": 861, - "declaration": "func makeRevealObserver(pid: pid_t, win: AXUIElement, id: CGWindowID, transaction: UUID) -> AXObserver? {" - }, - { - "name": "removeObserver", - "line": 884, - "declaration": "func removeObserver(_ state: ShadeState) {" - }, - { - "name": "handleAXNotification", - "line": 894, - "declaration": "func handleAXNotification(_ id: CGWindowID, _ notification: String, expected: WS2FoldCallbackStamp) {" - }, - { - "name": "appTerminated", - "line": 942, - "declaration": "@objc func appTerminated(_ note: Notification) {" - }, - { - "name": "frontmostApplicationChanged", - "line": 952, - "declaration": "@objc func frontmostApplicationChanged(_ note: Notification) {" - }, - { - "name": "screenParametersChanged", - "line": 982, - "declaration": "@objc func screenParametersChanged(_ note: Notification) {" - }, - { - "name": "activeSpaceChanged", - "line": 1028, - "declaration": "@objc func activeSpaceChanged(_ note: Notification) {" - } - ] - }, - { - "path": "prototype/App/InteractionCoordinator.swift", - "sha256": "5524bd61193c8e7ca5090b7c38c498f094bdc13a3e48971f3f084b2fb7a0c5b2", - "base_sha256": "5524bd61193c8e7ca5090b7c38c498f094bdc13a3e48971f3f084b2fb7a0c5b2", - "changed": false, - "line_count": 142, - "symbols": [ - { - "name": "InteractionCoordinator", - "line": 5, - "declaration": "final class InteractionCoordinator {" - }, - { - "name": "Environment", - "line": 6, - "declaration": "struct Environment { var unlocked: Bool; var displays: Set }" - }, - { - "name": "Active", - "line": 7, - "declaration": "private struct Active { let handle: WS2.LeaseHandle; let layer: WS2.Layer; let deadline: WS2.Instant }" - }, - { - "name": "Alert", - "line": 8, - "declaration": "private struct Alert { let first: WS2.Instant; var last: WS2.Instant; let deadline: WS2.Instant }" - }, - { - "name": "permits", - "line": 27, - "declaration": "private func permits(_ r: WS2.LeaseRequest) -> Bool {" - }, - { - "name": "withdraw", - "line": 35, - "declaration": "private func withdraw(_ reason: WS2.LeaseRevocation) {" - }, - { - "name": "expire", - "line": 40, - "declaration": "private func expire(_ now: WS2.Instant) {" - }, - { - "name": "acquire", - "line": 46, - "declaration": "func acquire(_ r: WS2.LeaseRequest, replacing expected: WS2.LeaseHandle? = nil) -> WS2.LeaseDecision {" - }, - { - "name": "isCurrent", - "line": 75, - "declaration": "func isCurrent(_ lease: WS2.LeaseHandle) -> Bool {" - }, - { - "name": "release", - "line": 81, - "declaration": "func release(_ lease: WS2.LeaseHandle, at now: WS2.Instant) {" - }, - { - "name": "barrier", - "line": 86, - "declaration": "private func barrier(_ reason: WS2.LeaseRevocation) {" - }, - { - "name": "invalidate", - "line": 90, - "declaration": "func invalidate(_ reason: WS2.LeaseRevocation, at now: WS2.Instant) {" - }, - { - "name": "removeDisplay", - "line": 98, - "declaration": "func removeDisplay(_ id: WS2.DisplayID, at now: WS2.Instant) {" - }, - { - "name": "publishOngoing", - "line": 105, - "declaration": "func publishOngoing(_ ids: [String], on display: WS2.DisplayID) {" - }, - { - "name": "remind", - "line": 110, - "declaration": "func remind(on display: WS2.DisplayID, at now: WS2.Instant) {" - }, - { - "name": "snapshots", - "line": 119, - "declaration": "func snapshots(at now: WS2.Instant) -> [WS2.VisibilitySnapshot] {" - }, - { - "name": "confirmationIsFresh", - "line": 137, - "declaration": "func confirmationIsFresh(lease: WS2.LeaseHandle, beganAt: WS2.Instant, sequence: UInt64," - } - ] - }, - { - "path": "prototype/App/Reconcile.swift", - "sha256": "290d8fb4dcb1b14e79620279ff9e30b42e81fbaa86c68678808a5073bd333f04", - "base_sha256": "a24b56d18ee50914538f3581f59fd0c496e29babe7a424ed6613657f785bb2b1", - "changed": true, - "line_count": 209, - "symbols": [ - { - "name": "updateReconcileTimer", - "line": 7, - "declaration": "func updateReconcileTimer() {" - }, - { - "name": "shouldRetryJournalRescue", - "line": 25, - "declaration": "func shouldRetryJournalRescue(now: Date) -> Bool {" - }, - { - "name": "sourceWindowLooksUserVisible", - "line": 30, - "declaration": "func sourceWindowLooksUserVisible(state: ShadeState, pos: CGPoint, size: CGSize," - }, - { - "name": "shouldLogReconcileInvalidCount", - "line": 65, - "declaration": "func shouldLogReconcileInvalidCount(_ count: Int) -> Bool {" - }, - { - "name": "sourceWindowMissingShouldCleanup", - "line": 68, - "declaration": "func sourceWindowMissingShouldCleanup(id: CGWindowID, state: ShadeState) -> Bool {" - }, - { - "name": "reconcileShadedWindows", - "line": 91, - "declaration": "func reconcileShadedWindows(reason: String) {" - }, - { - "name": "applyReconcileAXSnapshots", - "line": 153, - "declaration": "func applyReconcileAXSnapshots(_ snapshots: [ReconcileAXSnapshot]," - }, - { - "name": "finishReconcileShadedWindows", - "line": 203, - "declaration": "func finishReconcileShadedWindows() {" - } - ] - }, - { - "path": "prototype/App/ShadeController.swift", - "sha256": "ffe5d474a28aa43ac12baf5e4a85b1d795494be0df928980fe6b4e69d8bb813f", - "base_sha256": "f22cc7af4a270af54422820beea2807235198ba823b8bb42adf098b52f85a198", - "changed": true, - "line_count": 891, - "symbols": [ - { - "name": "retargetToActiveSpaceWindow", - "line": 8, - "declaration": "func retargetToActiveSpaceWindow(pid: pid_t) -> (AXUIElement, CGWindowID)? {" - }, - { - "name": "toggle", - "line": 35, - "declaration": "func toggle() {" - }, - { - "name": "performNativeStickiesShade", - "line": 87, - "declaration": "func performNativeStickiesShade(_ win: AXUIElement) {" - }, - { - "name": "makeShadePlan", - "line": 104, - "declaration": "func makeShadePlan(win: AXUIElement, pos: CGPoint, size: CGSize," - }, - { - "name": "resolvedSourceSpaceID", - "line": 157, - "declaration": "func resolvedSourceSpaceID(windowID id: CGWindowID," - }, - { - "name": "shade", - "line": 169, - "declaration": "func shade(_ win: AXUIElement, _ id: CGWindowID," - }, - { - "name": "admissionCurrent", - "line": 178, - "declaration": "func admissionCurrent() -> Bool {" - }, - { - "name": "completeFold", - "line": 184, - "declaration": "func completeFold(success: Bool, transaction: UUID? = nil) {" - }, - { - "name": "installOverlay", - "line": 303, - "declaration": "func installOverlay(_ overlay: NSWindow, mode: ShadeAppearanceMode, previewImage: NSImage?) {" - }, - { - "name": "installInteractiveNativeCollapse", - "line": 482, - "declaration": "func installInteractiveNativeCollapse(barH: CGFloat) -> Bool {" - }, - { - "name": "captureWindow", - "line": 761, - "declaration": "func captureWindow(id: CGWindowID, axPos: CGPoint, size: CGSize," - }, - { - "name": "fastWindowCapture", - "line": 800, - "declaration": "func fastWindowCapture(_ id: CGWindowID) async -> CGImage? {" - }, - { - "name": "captureWindowWithTimeout", - "line": 807, - "declaration": "func captureWindowWithTimeout(id: CGWindowID, axPos: CGPoint, size: CGSize," - }, - { - "name": "raceCaptureWithTimeout", - "line": 858, - "declaration": "private func raceCaptureWithTimeout(id: CGWindowID, axPos: CGPoint, size: CGSize," - } - ] - }, - { - "path": "prototype/App/WS2AppRuntime.swift", - "sha256": "99205e90fd9d99278da55fbfe88924e2100c4ada4223c6d35136da67cf5b6db2", - "base_sha256": "99205e90fd9d99278da55fbfe88924e2100c4ada4223c6d35136da67cf5b6db2", - "changed": false, - "line_count": 251, - "symbols": [ - { - "name": "WS2AppRuntime", - "line": 3, - "declaration": "@MainActor final class WS2AppRuntime {" - }, - { - "name": "day", - "line": 31, - "declaration": "func day(_ date: Date) -> String {" - }, - { - "name": "setLockReason", - "line": 108, - "declaration": "private func setLockReason(_ reason: String, locked: Bool) {" - }, - { - "name": "applicationShouldTerminate", - "line": 119, - "declaration": "func applicationShouldTerminate() -> NSApplication.TerminateReply {" - }, - { - "name": "finishQuit", - "line": 138, - "declaration": "private func finishQuit(updaterReply:Bool?=nil,childrenReady:Bool=false,failed:Bool=false) {" - }, - { - "name": "openOwned", - "line": 144, - "declaration": "func openOwned() {" - }, - { - "name": "openModelPicker", - "line": 153, - "declaration": "private func openModelPicker() {" - }, - { - "name": "open", - "line": 192, - "declaration": "func open() {" - }, - { - "name": "refreshFocusSettings", - "line": 205, - "declaration": "func refreshFocusSettings() {" - }, - { - "name": "toggleFocus", - "line": 210, - "declaration": "func toggleFocus() {" - }, - { - "name": "showSessions", - "line": 217, - "declaration": "@discardableResult func showSessions(_ sessions:[AgentSessions.Session], open:@escaping(WS2.Context)->Void," - }, - { - "name": "showConductor", - "line": 222, - "declaration": "@discardableResult func showConductor(_ state:ConductorNotch, action:@escaping(WS2ConductorView.Action)->Void) -> Bool {" - }, - { - "name": "publish", - "line": 228, - "declaration": "private func publish() {" - }, - { - "name": "stop", - "line": 236, - "declaration": "func stop() {" - }, - { - "name": "ws2OpenOwned", - "line": 249, - "declaration": "@objc func ws2OpenOwned() { MainActor.assumeIsolated { ws2Runtime.openOwned() } }" - }, - { - "name": "ws2OpenFocus", - "line": 250, - "declaration": "@objc func ws2OpenFocus() { MainActor.assumeIsolated { ws2Runtime.open() } }" - } - ] - }, - { - "path": "prototype/App/WS2FoldCallbackGuard.swift", - "sha256": "9f8d8cc688955c493ac17ebde396f59f70892e32c0b78250c78589c007fc63db", - "base_sha256": null, - "changed": true, - "line_count": 100, - "symbols": [ - { - "name": "foldCallbackStamp", - "line": 5, - "declaration": "func foldCallbackStamp(id: CGWindowID, state: ShadeState) -> WS2FoldCallbackStamp {" - }, - { - "name": "foldWaiterDeliveryStamp", - "line": 13, - "declaration": "func foldWaiterDeliveryStamp(id: CGWindowID, transaction: UUID) -> WS2FoldCallbackStamp? {" - }, - { - "name": "foldCallbackIsCurrent", - "line": 21, - "declaration": "func foldCallbackIsCurrent(_ expected: WS2FoldCallbackStamp," - }, - { - "name": "observeFoldHide", - "line": 30, - "declaration": "func observeFoldHide(_ hide: HideMethod, win: AXUIElement, pid: pid_t," - }, - { - "name": "retainUnconfirmedFold", - "line": 68, - "declaration": "func retainUnconfirmedFold(id: CGWindowID, state: ShadeState) {" - }, - { - "name": "receiveFoldAXNotification", - "line": 84, - "declaration": "func receiveFoldAXNotification(routeID: UInt, notification: String) {" - }, - { - "name": "axObservedBoolAttribute", - "line": 96, - "declaration": "func axObservedBoolAttribute(_ win: AXUIElement, _ attribute: String) -> Bool? {" - } - ] - }, - { - "path": "prototype/App/WS2FoldEvidenceAdapter.swift", - "sha256": "56606957ca290794e0450d6199aa4e3d85fc954e4c472a9e6158bb06cdb7013d", - "base_sha256": "cb7f57c8020aeda4aca842a4a48a58b5e4a70acacc02cff63a2682d426a0c264", - "changed": true, - "line_count": 75, - "symbols": [ - { - "name": "shadeWithEvidence", - "line": 7, - "declaration": "func shadeWithEvidence(_ win:AXUIElement,id:CGWindowID,pid:pid_t,recordedPosition:CGPoint?," - }, - { - "name": "deliverFoldEvidence", - "line": 27, - "declaration": "func deliverFoldEvidence(_ event:WS2FoldEvidence.Event?){" - }, - { - "name": "mayCommitObservedFold", - "line": 33, - "declaration": "func mayCommitObservedFold(_ ticket:WS2FoldEvidence.Ticket)->Bool {" - }, - { - "name": "finishFoldEvidence", - "line": 37, - "declaration": "func finishFoldEvidence(_ ticket:WS2FoldEvidence.Ticket?,success:Bool){" - }, - { - "name": "publishFoldObservation", - "line": 44, - "declaration": "func publishFoldObservation(id:CGWindowID,state:ShadeState){" - }, - { - "name": "strictFoldObservation", - "line": 61, - "declaration": "func strictFoldObservation(id: CGWindowID, state: ShadeState) -> WS2FoldEvidence.Observation {" - }, - { - "name": "cancelFoldEvidence", - "line": 70, - "declaration": "func cancelFoldEvidence(id:CGWindowID,transaction:UUID){" - } - ] - }, - { - "path": "prototype/Core/FoldVerifier.swift", - "sha256": "8391bca46e6af68e0ae1942edd2e9bd106f5ea83e237ffa9ba0b58e5b878c597", - "base_sha256": "90a4d023619d31706672da91a52ab721023662591b5ab3f72cda05e32fabc086", - "changed": true, - "line_count": 88, - "symbols": [ - { - "name": "FoldVerifier", - "line": 4, - "declaration": "final class FoldVerifier {" - }, - { - "name": "Observation", - "line": 5, - "declaration": "enum Observation: Equatable, Sendable { case hidden, visible, unknown }" - }, - { - "name": "start", - "line": 44, - "declaration": "func start() {" - }, - { - "name": "pollQuickly", - "line": 50, - "declaration": "private func pollQuickly(until deadline: TimeInterval, elapsed: TimeInterval) {" - }, - { - "name": "check", - "line": 62, - "declaration": "private func check(attempt: Int) {" - }, - { - "name": "finish", - "line": 83, - "declaration": "private func finish(_ value: Observation) {" - } - ] - }, - { - "path": "prototype/Core/WS2FocusEffectPlan.swift", - "sha256": "60ccb717e3641f20e1fc499dc1e432ba37493e3c4abe8e28c73b2ebc19419829", - "base_sha256": "60ccb717e3641f20e1fc499dc1e432ba37493e3c4abe8e28c73b2ebc19419829", - "changed": false, - "line_count": 85, - "symbols": [ - { - "name": "WS2FocusEffectPlan", - "line": 4, - "declaration": "struct WS2FocusEffectPlan: Sendable {" - }, - { - "name": "Window", - "line": 7, - "declaration": "struct Window: Equatable, Sendable { let identity: Identity; let revision: UInt64 }" - }, - { - "name": "Kind", - "line": 8, - "declaration": "enum Kind: Equatable, Sendable { case tuck(Window, WS2.Token, UInt64), restore(Receipt) }" - }, - { - "name": "Operation", - "line": 9, - "declaration": "struct Operation: Equatable, Sendable { let id: UUID; let kind: Kind }" - }, - { - "name": "Outcome", - "line": 10, - "declaration": "enum Outcome: Sendable { case completed(revision: UInt64), unchanged, userChanged, unknown }" - }, - { - "name": "Failure", - "line": 11, - "declaration": "enum Failure: Error { case invalid, capacity, overflow, unexpectedCompletion }" - }, - { - "name": "transition", - "line": 24, - "declaration": "mutating func transition(run: WS2.Token?, windows: [Window]) throws {" - }, - { - "name": "setSuspended", - "line": 31, - "declaration": "mutating func setSuspended(_ value: Bool) { suspended = value }" - }, - { - "name": "manualChange", - "line": 32, - "declaration": "mutating func manualChange(_ identity: Identity) {" - }, - { - "name": "identity", - "line": 38, - "declaration": "private static func identity(_ kind: Kind) -> Identity {" - }, - { - "name": "next", - "line": 41, - "declaration": "mutating func next() -> Operation? {" - }, - { - "name": "mayCommit", - "line": 51, - "declaration": "func mayCommit(_ operation: Operation) -> Bool {" - }, - { - "name": "complete", - "line": 60, - "declaration": "mutating func complete(_ operation: Operation, _ outcome: Outcome) throws {" - } - ] - }, - { - "path": "prototype/Core/WS2FoldCallbackStamp.swift", - "sha256": "50e53418e04733bbe0421c49533bd7e87943f25707f7404bedf188a4ed4543de", - "base_sha256": null, - "changed": true, - "line_count": 39, - "symbols": [ - { - "name": "WS2FoldCallbackStamp", - "line": 5, - "declaration": "struct WS2FoldCallbackStamp: Equatable, Sendable {" - }, - { - "name": "accepts", - "line": 15, - "declaration": "func accepts(current: Self, now: TimeInterval, unlocked: Bool," - }, - { - "name": "WS2FoldObserverRoute", - "line": 29, - "declaration": "struct WS2FoldObserverRoute: Equatable, Sendable {" - }, - { - "name": "ws2ObservedBoolean", - "line": 36, - "declaration": "func ws2ObservedBoolean(_ raw: CFTypeRef?) -> Bool? {" - } - ] - }, - { - "path": "prototype/Core/WS2FoldEvidence.swift", - "sha256": "3d1dd3583a1e6f93a4d721e6b4587a0cd700c993722fee2f7a03428919f420dd", - "base_sha256": "3d1dd3583a1e6f93a4d721e6b4587a0cd700c993722fee2f7a03428919f420dd", - "changed": false, - "line_count": 58, - "symbols": [ - { - "name": "WS2FoldEvidence", - "line": 5, - "declaration": "struct WS2FoldEvidence: Sendable {" - }, - { - "name": "Ticket", - "line": 6, - "declaration": "struct Ticket: Equatable, Sendable { let request:UUID;let window:UInt32;let pid:Int32 }" - }, - { - "name": "Observation", - "line": 7, - "declaration": "enum Observation:String,Sendable,Codable { case verifiedHidden, stillVisible, unknown, notStarted }" - }, - { - "name": "Event", - "line": 8, - "declaration": "struct Event:Equatable,Sendable { let ticket:Ticket;let transaction:UUID?;let observation:Observation;let late:Bool }" - }, - { - "name": "Entry", - "line": 9, - "declaration": "private struct Entry:Sendable { let ticket:Ticket;let issuedAt:Double;let deadline:Double;var attempted=false;var transaction:UUID?;var last:Observation? }" - }, - { - "name": "contains", - "line": 12, - "declaration": "func contains(_ ticket:Ticket)->Bool{entries[ticket.request]?.ticket == ticket}" - }, - { - "name": "begin", - "line": 13, - "declaration": "mutating func begin(request:UUID,window:UInt32,pid:Int32,at now:Double,timeout:Double=30)->Ticket?{" - }, - { - "name": "mayStart", - "line": 19, - "declaration": "func mayStart(_ t:Ticket,at now:Double)->Bool {" - }, - { - "name": "markMutation", - "line": 23, - "declaration": "mutating func markMutation(_ t:Ticket,at now:Double)->Bool{" - }, - { - "name": "bind", - "line": 26, - "declaration": "mutating func bind(_ t:Ticket,transaction:UUID)->Bool{" - }, - { - "name": "ticket", - "line": 30, - "declaration": "func ticket(window:UInt32,transaction:UUID)->Ticket?{" - }, - { - "name": "observe", - "line": 33, - "declaration": "mutating func observe(_ t:Ticket,transaction:UUID,observation:Observation)->Event?{" - }, - { - "name": "failed", - "line": 38, - "declaration": "mutating func failed(_ t:Ticket)->Event?{" - }, - { - "name": "expire", - "line": 42, - "declaration": "mutating func expire(_ t:Ticket,at now:Double)->Event?{" - }, - { - "name": "forget", - "line": 48, - "declaration": "mutating func forget(_ t:Ticket){if contains(t){entries[t.request]=nil}}" - }, - { - "name": "emit", - "line": 49, - "declaration": "private mutating func emit(_ t:Ticket,observation:Observation)->Event?{" - } - ] - }, - { - "path": "prototype/Effects/EffectFrameAwaiter.swift", - "sha256": "9c7a967621855e6add53c5ee4cd405249142d018eea497e5301ebae72e0e42c8", - "base_sha256": "634182d48f845ebec9887544b2d1aea0fdeb53e614af3c66e1070b4907f1f68f", - "changed": true, - "line_count": 32, - "symbols": [ - { - "name": "EffectFrameAwaiter", - "line": 3, - "declaration": "enum EffectFrameAwaiter {" - }, - { - "name": "first", - "line": 6, - "declaration": "static func first(" - } - ] - }, - { - "path": "prototype/Effects/EffectFrameSource.swift", - "sha256": "c63cc6885d42278bf8ce30ae05cfc63e3f209d9490524fbd73ddbfb5087990ab", - "base_sha256": "c63cc6885d42278bf8ce30ae05cfc63e3f209d9490524fbd73ddbfb5087990ab", - "changed": false, - "line_count": 286, - "symbols": [ - { - "name": "EffectColorSpace", - "line": 7, - "declaration": "enum EffectColorSpace: String {" - }, - { - "name": "display", - "line": 11, - "declaration": "static func display(_ screen: NSScreen?) -> EffectColorSpace {" - }, - { - "name": "EffectFrame", - "line": 15, - "declaration": "struct EffectFrame {" - }, - { - "name": "stillImage", - "line": 30, - "declaration": "func stillImage() -> CGImage? {" - }, - { - "name": "EffectFrameSource", - "line": 46, - "declaration": "final class EffectFrameSource: NSObject, SCStreamOutput, SCStreamDelegate {" - }, - { - "name": "frame", - "line": 62, - "declaration": "func frame() -> EffectFrame? { lock.withLock { slot.value } }" - }, - { - "name": "configuration", - "line": 71, - "declaration": "private static func configuration(size: CGSize, fps: Int, color: EffectColorSpace)" - }, - { - "name": "start", - "line": 88, - "declaration": "func start(filter: SCContentFilter, size: CGSize, fps: Int = 60, color: EffectColorSpace = .sRGB)" - }, - { - "name": "stop", - "line": 126, - "declaration": "@discardableResult func stop() -> UInt64 {" - }, - { - "name": "stopLocked", - "line": 129, - "declaration": "private func stopLocked() -> UInt64 {" - }, - { - "name": "stopAndWait", - "line": 158, - "declaration": "func stopAndWait() async throws {" - }, - { - "name": "waitForStop", - "line": 162, - "declaration": "private func waitForStop() async throws {" - }, - { - "name": "updateFPS", - "line": 167, - "declaration": "func updateFPS(_ fps: Int) {" - }, - { - "name": "waitForFrame", - "line": 191, - "declaration": "func waitForFrame(timeout: TimeInterval = 0.6) async -> EffectFrame? {" - }, - { - "name": "contentUV", - "line": 199, - "declaration": "static func contentUV(_ raw: Any?, scaleFactor: CGFloat, buffer: CVPixelBuffer) -> CGRect {" - }, - { - "name": "stream", - "line": 224, - "declaration": "func stream(" - }, - { - "name": "fail", - "line": 273, - "declaration": "private func fail(_ candidate: SCStream, error: Error) {" - }, - { - "name": "stream", - "line": 285, - "declaration": "func stream(_ stream: SCStream, didStopWithError error: Error) { fail(stream, error: error) }" - } - ] - }, - { - "path": "prototype/Effects/RestoreVerifier.swift", - "sha256": "a0ed730ff532106fdde2eaa64fd8905d5aeddaf9a1ec1e28c293b26ff7dc7052", - "base_sha256": "a0ed730ff532106fdde2eaa64fd8905d5aeddaf9a1ec1e28c293b26ff7dc7052", - "changed": false, - "line_count": 53, - "symbols": [ - { - "name": "RestoreObservation", - "line": 3, - "declaration": "enum RestoreObservation { case pending, visible, closed }" - }, - { - "name": "RestoreVerifier", - "line": 7, - "declaration": "final class RestoreVerifier {" - }, - { - "name": "start", - "line": 31, - "declaration": "func start() {" - }, - { - "name": "check", - "line": 35, - "declaration": "private func check() {" - } - ] - }, - { - "path": "prototype/Native/WS2Child.c", - "sha256": "134368aa12dfbbb9ec5a6f60a121c44b52b46bb303d55d73b18d78326d875f47", - "base_sha256": "134368aa12dfbbb9ec5a6f60a121c44b52b46bb303d55d73b18d78326d875f47", - "changed": false, - "line_count": 167, - "symbols": [ - { - "name": "WS2Child", - "line": 16, - "declaration": "struct WS2Child {" - }, - { - "name": "timespec", - "line": 23, - "declaration": "struct timespec value;" - } - ] - }, - { - "path": "prototype/Recovery/DurableShadeJournal.swift", - "sha256": "5dbcd013cc44573bfef4b028dae0ca44c75c963d7df131cf20b946a737c366c8", - "base_sha256": "5dbcd013cc44573bfef4b028dae0ca44c75c963d7df131cf20b946a737c366c8", - "changed": false, - "line_count": 34, - "symbols": [ - { - "name": "DurableShadeJournal", - "line": 4, - "declaration": "struct DurableShadeJournal {" - }, - { - "name": "load", - "line": 11, - "declaration": "func load() throws -> [[String: Any]]? {" - }, - { - "name": "save", - "line": 22, - "declaration": "func save(_ entries: [[String: Any]]) throws {" - } - ] - }, - { - "path": "prototype/Support/WS2DuplexProcess.swift", - "sha256": "1efe08a7d6987fdac80d87f345f1d2ce212e6a5dddac3a71e086e247d8ab579a", - "base_sha256": "1efe08a7d6987fdac80d87f345f1d2ce212e6a5dddac3a71e086e247d8ab579a", - "changed": false, - "line_count": 248, - "symbols": [ - { - "name": "WS2DuplexProcess", - "line": 11, - "declaration": "@MainActor final class WS2DuplexProcess {" - }, - { - "name": "Failure", - "line": 12, - "declaration": "enum Failure: Error { case invalid, io(Int32), notRunning }" - }, - { - "name": "End", - "line": 13, - "declaration": "enum End: Equatable { case localStop, eof, processExit, io(Int32), framing, timeout, revoked }" - }, - { - "name": "Termination", - "line": 14, - "declaration": "struct Termination: Equatable, Sendable { let status: Int32; let wasSignalled: Bool }" - }, - { - "name": "start", - "line": 57, - "declaration": "func start() throws {" - }, - { - "name": "pollChild", - "line": 96, - "declaration": "private func pollChild() {" - }, - { - "name": "admit", - "line": 120, - "declaration": "@discardableResult func admit(_ lines: [Data], connection: UUID, deadline: Double," - }, - { - "name": "admitWireFrames", - "line": 131, - "declaration": "@discardableResult func admitWireFrames(_ frames: [Data], connection: UUID, deadline: Double," - }, - { - "name": "armWrite", - "line": 143, - "declaration": "private func armWrite() { if !writeArmed, !stopped { writeArmed = true; writer?.resume() } }" - }, - { - "name": "disarmWrite", - "line": 144, - "declaration": "private func disarmWrite() { if writeArmed { writeArmed = false; writer?.suspend() } }" - }, - { - "name": "scheduleDeadline", - "line": 145, - "declaration": "private func scheduleDeadline() {" - }, - { - "name": "writeReady", - "line": 157, - "declaration": "private func writeReady() {" - }, - { - "name": "readReady", - "line": 183, - "declaration": "private func readReady(checkChild: Bool = true) {" - }, - { - "name": "readDiagnosticReady", - "line": 205, - "declaration": "private func readDiagnosticReady() {" - }, - { - "name": "clearDiagnostics", - "line": 220, - "declaration": "func clearDiagnostics() { diagnostics?.clear() }" - }, - { - "name": "writeWithoutSIGPIPE", - "line": 221, - "declaration": "private static func writeWithoutSIGPIPE(_ fd: Int32, _ bytes: Data) -> Int {" - }, - { - "name": "stop", - "line": 236, - "declaration": "func stop(_ reason: End = .localStop) {" - } - ] - }, - { - "path": "prototype/Support/WS2FocusEffectExecutor.swift", - "sha256": "674a8760579e1eccf401f6c949d6fcf69b74257943fe795b043f255b7c3887bf", - "base_sha256": "674a8760579e1eccf401f6c949d6fcf69b74257943fe795b043f255b7c3887bf", - "changed": false, - "line_count": 35, - "symbols": [ - { - "name": "WS2FocusMutationPort", - "line": 3, - "declaration": "@MainActor protocol WS2FocusMutationPort: AnyObject {" - }, - { - "name": "perform", - "line": 6, - "declaration": "func perform(_ operation: WS2FocusEffectPlan.Operation," - }, - { - "name": "WS2FocusEffectExecutor", - "line": 10, - "declaration": "@MainActor final class WS2FocusEffectExecutor {" - }, - { - "name": "transition", - "line": 16, - "declaration": "func transition(run: WS2.Token?, windows: [WS2FocusEffectPlan.Window]) throws {" - }, - { - "name": "suspend", - "line": 19, - "declaration": "func suspend() { plan.setSuspended(true) }" - }, - { - "name": "resumeAfterVerifiedUnlock", - "line": 20, - "declaration": "func resumeAfterVerifiedUnlock() { plan.setSuspended(false); pump() }" - }, - { - "name": "manualChange", - "line": 21, - "declaration": "func manualChange(_ identity: WS2FocusEffectPlan.Identity) { plan.manualChange(identity); pump() }" - }, - { - "name": "end", - "line": 23, - "declaration": "func end() throws { try transition(run: nil, windows: []) }" - }, - { - "name": "pump", - "line": 24, - "declaration": "private func pump() {" - } - ] - }, - { - "path": "prototype/Window/AXHelpers.swift", - "sha256": "b679b85d9e4e31f1a2f4594a048fba885c89b46bd25395e3fab768c880ab71b6", - "base_sha256": "ccf1a2c35600cf6471db354ee1fbb3f417a60907be1446f6ee9e393a2b5b8ccf", - "changed": true, - "line_count": 255, - "symbols": [ - { - "name": "TrafficAction", - "line": 9, - "declaration": "enum TrafficAction { case close, minimize, zoom, fullScreen }" - }, - { - "name": "ProxyTrafficLightStyle", - "line": 11, - "declaration": "enum ProxyTrafficLightStyle {" - }, - { - "name": "ProxyTrafficLightConfiguration", - "line": 16, - "declaration": "struct ProxyTrafficLightConfiguration {" - }, - { - "name": "proxyTrafficLightConfiguration", - "line": 40, - "declaration": "func proxyTrafficLightConfiguration(of win: AXUIElement, pid: pid_t) -> ProxyTrafficLightConfiguration {" - }, - { - "name": "urlFromAXAttribute", - "line": 73, - "declaration": "func urlFromAXAttribute(_ win: AXUIElement, _ attr: String) -> URL? {" - }, - { - "name": "quickLookReopenURL", - "line": 90, - "declaration": "func quickLookReopenURL(for win: AXUIElement) -> URL? {" - }, - { - "name": "reopenQuickLookPreview", - "line": 102, - "declaration": "func reopenQuickLookPreview(url: URL) -> Bool {" - }, - { - "name": "postSpacebarKey", - "line": 116, - "declaration": "func postSpacebarKey() {" - }, - { - "name": "reopenQuickLookFromFinderSelection", - "line": 125, - "declaration": "func reopenQuickLookFromFinderSelection(pid: pid_t) -> Bool {" - }, - { - "name": "SystemTitlebarDoubleClickAction", - "line": 149, - "declaration": "enum SystemTitlebarDoubleClickAction: Equatable {" - }, - { - "name": "systemTitlebarDoubleClickAction", - "line": 155, - "declaration": "func systemTitlebarDoubleClickAction() -> SystemTitlebarDoubleClickAction {" - }, - { - "name": "systemTitlebarTripleClickDescription", - "line": 163, - "declaration": "func systemTitlebarTripleClickDescription() -> String? {" - }, - { - "name": "WindowManagementCapability", - "line": 174, - "declaration": "enum WindowManagementCapability {" - }, - { - "name": "realWindowManagementCapability", - "line": 182, - "declaration": "func realWindowManagementCapability(_ win: AXUIElement) -> WindowManagementCapability {" - }, - { - "name": "trafficLightRects", - "line": 203, - "declaration": "func trafficLightRects(_ win: AXUIElement, winTopLeft pos: CGPoint, barH: CGFloat) -> [(CGRect, TrafficAction)] {" - }, - { - "name": "trafficLightRects", - "line": 216, - "declaration": "func trafficLightRects(_ rects: [(CGRect, TrafficAction)]," - }, - { - "name": "axTitle", - "line": 238, - "declaration": "func axTitle(_ e: AXUIElement) -> String {" - }, - { - "name": "dumpWindow", - "line": 245, - "declaration": "func dumpWindow(_ win: AXUIElement) {" - } - ] - }, - { - "path": "prototype/WindowBrowser/WindowBrowserAppDelegate.swift", - "sha256": "47a44ee7dd3717a71545ca192da753f650a75ca9a538a8ceeb0fd895583937c8", - "base_sha256": "7578e4ad88f967a0c4fc6b18dabf97100fffd86d1bb7437c254131f55147bf8f", - "changed": true, - "line_count": 145, - "symbols": [ - { - "name": "windowBrowserManagedSnapshots", - "line": 11, - "declaration": "func windowBrowserManagedSnapshots() -> [ManagedWindowDescriptor] {" - }, - { - "name": "windowBrowserBeginFold", - "line": 101, - "declaration": "func windowBrowserBeginFold(key: WindowKey, element: AXUIElement," - }, - { - "name": "windowBrowserTargetCandidate", - "line": 127, - "declaration": "func windowBrowserTargetCandidate(key: WindowKey) -> AXUIElement? {" - }, - { - "name": "windowBrowserIsWindowStillPresent", - "line": 135, - "declaration": "func windowBrowserIsWindowStillPresent(key: WindowKey) -> Bool {" - } - ] - }, - { - "path": "prototype/WindowShade.swift", - "sha256": "2c95d5d27a9f4649461e330e590da4bf0afdacee1fb0a2bfdb4897b32f570aed", - "base_sha256": "0c489c4b721315ef147f7b3898aa388377eac8b766ada421fda395716f16828a", - "changed": true, - "line_count": 924, - "symbols": [ - { - "name": "framesAlmostEqual", - "line": 79, - "declaration": "func framesAlmostEqual(_ a: NSRect, _ b: NSRect, tolerance: CGFloat = 0.5) -> Bool {" - }, - { - "name": "cgWindowID", - "line": 86, - "declaration": "func cgWindowID(for window: NSWindow) -> CGWindowID? {" - }, - { - "name": "AppDelegate", - "line": 94, - "declaration": "final class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {" - }, - { - "name": "PendingTitlebarTripleClick", - "line": 96, - "declaration": "final class PendingTitlebarTripleClick {" - }, - { - "name": "PendingSpaceReturn", - "line": 110, - "declaration": "struct PendingSpaceReturn {" - }, - { - "name": "ReconcileAXTarget", - "line": 118, - "declaration": "struct ReconcileAXTarget {" - }, - { - "name": "ReconcileAXSnapshot", - "line": 126, - "declaration": "struct ReconcileAXSnapshot: Sendable {" - }, - { - "name": "applicationDidFinishLaunching", - "line": 311, - "declaration": "func applicationDidFinishLaunching(_ note: Notification) {" - }, - { - "name": "applicationShouldTerminate", - "line": 425, - "declaration": "func applicationShouldTerminate(_ sender: NSApplication) -> NSApplication.TerminateReply {" - }, - { - "name": "systemAppearanceOptionsChanged", - "line": 430, - "declaration": "@objc func systemAppearanceOptionsChanged(_ note: Notification) {" - }, - { - "name": "installStandardMainMenu", - "line": 461, - "declaration": "func installStandardMainMenu() {" - }, - { - "name": "migrateDistractingDefaultSounds", - "line": 471, - "declaration": "private func migrateDistractingDefaultSounds() {" - }, - { - "name": "refreshPinnedPreviewTarget", - "line": 500, - "declaration": "func refreshPinnedPreviewTarget(reason: String) {" - }, - { - "name": "setupPinnedPreviewFocusTracking", - "line": 507, - "declaration": "private func setupPinnedPreviewFocusTracking() {" - }, - { - "name": "scheduleTitlebarPrefetch", - "line": 520, - "declaration": "private func scheduleTitlebarPrefetch() {" - }, - { - "name": "schedulePinnedPreviewTargetRefresh", - "line": 541, - "declaration": "private func schedulePinnedPreviewTargetRefresh() {" - }, - { - "name": "focusSizedFrame", - "line": 561, - "declaration": "func focusSizedFrame(pos: CGPoint, size: CGSize," - }, - { - "name": "configureShadedAccessibility", - "line": 600, - "declaration": "func configureShadedAccessibility(for overlay: NSWindow, id: CGWindowID," - }, - { - "name": "currentShadedOverlayID", - "line": 626, - "declaration": "func currentShadedOverlayID() -> CGWindowID? {" - }, - { - "name": "finishOnboarding", - "line": 644, - "declaration": "@objc func finishOnboarding() {" - }, - { - "name": "dismissOnboarding", - "line": 648, - "declaration": "@objc func dismissOnboarding() {" - }, - { - "name": "runTool", - "line": 659, - "declaration": "private func runTool(_ path: String, _ args: [String]) -> Int32? {" - }, - { - "name": "readTool", - "line": 676, - "declaration": "private func readTool(_ path: String, _ args: [String]) -> String? {" - }, - { - "name": "runDefaults", - "line": 692, - "declaration": "private func runDefaults(_ args: [String]) { runTool(\"/usr/bin/defaults\", args) }" - }, - { - "name": "readDefaults", - "line": 693, - "declaration": "private func readDefaults(_ args: [String]) -> String? { readTool(\"/usr/bin/defaults\", args) }" - }, - { - "name": "killDock", - "line": 694, - "declaration": "private func killDock() { runTool(\"/usr/bin/killall\", [\"Dock\"]) } // 让 Dock 重读 mineffect" - }, - { - "name": "writeDockMinimizeEffect", - "line": 696, - "declaration": "private func writeDockMinimizeEffect(_ value: String, reason: String) -> Bool {" - }, - { - "name": "persistDockMinimizeEffectSession", - "line": 709, - "declaration": "private func persistDockMinimizeEffectSession(original: String?) {" - }, - { - "name": "clearDockMinimizeEffectSession", - "line": 720, - "declaration": "private func clearDockMinimizeEffectSession() {" - }, - { - "name": "restoreDockMinimizeEffect", - "line": 727, - "declaration": "private func restoreDockMinimizeEffect(original: String?) {" - }, - { - "name": "recoverStaleDockMinimizeEffectSessionIfNeeded", - "line": 735, - "declaration": "private func recoverStaleDockMinimizeEffectSessionIfNeeded() {" - }, - { - "name": "enableScaleMinimizeEffectForSession", - "line": 746, - "declaration": "private func enableScaleMinimizeEffectForSession() {" - }, - { - "name": "restoreDockMinimizeEffect", - "line": 774, - "declaration": "private func restoreDockMinimizeEffect() {" - }, - { - "name": "currentOperationState", - "line": 791, - "declaration": "func currentOperationState(_ id: CGWindowID) -> WindowShadeState {" - }, - { - "name": "transitionOperationState", - "line": 797, - "declaration": "func transitionOperationState(id: CGWindowID, to next: WindowShadeState," - }, - { - "name": "applicationWillTerminate", - "line": 810, - "declaration": "func applicationWillTerminate(_ note: Notification) {" - }, - { - "name": "ensureAccessibility", - "line": 837, - "declaration": "func ensureAccessibility() -> Bool {" - }, - { - "name": "toggleAction", - "line": 844, - "declaration": "@objc func toggleAction() { toggle() }" - }, - { - "name": "focusCurrentAppAction", - "line": 855, - "declaration": "@objc func focusCurrentAppAction() {" - }, - { - "name": "unshadeFromMenu", - "line": 869, - "declaration": "@objc func unshadeFromMenu(_ sender: NSMenuItem) {" - }, - { - "name": "quit", - "line": 874, - "declaration": "@objc func quit() {" - }, - { - "name": "setupEventTapWhenTrusted", - "line": 887, - "declaration": "func setupEventTapWhenTrusted() {" - }, - { - "name": "setupEventTap", - "line": 903, - "declaration": "func setupEventTap() -> Bool {" - } - ] - }, - { - "path": "prototype/build.sh", - "sha256": "e6db6c9f3499fcdcb4f28c065199f4f87aa64aeb0c5a46b098164dc761ad588c", - "base_sha256": "e6db6c9f3499fcdcb4f28c065199f4f87aa64aeb0c5a46b098164dc761ad588c", - "changed": false, - "line_count": 358, - "symbols": [] - }, - { - "path": "tests/DuoCoreTests.swift", - "sha256": "580fbdfa753b6fba4941f67abc0ce7fe58d182d37cb3409880647a5ea6d748f5", - "base_sha256": "580fbdfa753b6fba4941f67abc0ce7fe58d182d37cb3409880647a5ea6d748f5", - "changed": false, - "line_count": 404, - "symbols": [ - { - "name": "DuoCoreTests", - "line": 3, - "declaration": "@main struct DuoCoreTests {" - }, - { - "name": "Clock", - "line": 4, - "declaration": "final class Clock {" - }, - { - "name": "schedule", - "line": 7, - "declaration": "func schedule(_ delay: Double, _ action: @escaping () -> Void) {" - }, - { - "name": "advance", - "line": 10, - "declaration": "func advance(_ delta: Double) {" - }, - { - "name": "main", - "line": 22, - "declaration": "static func main() async throws {" - }, - { - "name": "titlebarIntentTests", - "line": 110, - "declaration": "static func titlebarIntentTests() {" - }, - { - "name": "foldVerificationTests", - "line": 134, - "declaration": "static func foldVerificationTests() {" - }, - { - "name": "Scenario", - "line": 135, - "declaration": "final class Scenario {" - }, - { - "name": "deferredRestoreCompletionTests", - "line": 222, - "declaration": "static func deferredRestoreCompletionTests() {" - }, - { - "name": "restorationTests", - "line": 253, - "declaration": "static func restorationTests() throws {" - }, - { - "name": "verifier", - "line": 266, - "declaration": "func verifier() -> RestoreVerifier {" - }, - { - "name": "LegacyMotion", - "line": 307, - "declaration": "struct LegacyMotion {" - }, - { - "name": "receive", - "line": 312, - "declaration": "mutating func receive(_ acceleration: SIMD3, time: Double) {" - }, - { - "name": "motionTiltTests", - "line": 334, - "declaration": "static func motionTiltTests() throws {" - } - ] - }, - { - "path": "tests/duo-integration-check.py", - "sha256": "77baca7e632b420b099a9af21b6462d826b6f9f2eb97c9c5d90f5906e002bb6d", - "base_sha256": "1614f812d80321117c4ecb43c3e649c4f0033092653ffbbd8026c45a0b127916", - "changed": true, - "line_count": 34, - "symbols": [ - { - "name": "installOverlay", - "line": 5, - "declaration": "transaction = shade.split('func installOverlay(', 1)[1].split('func installInteractiveNativeCollapse', 1)[0]" - }, - { - "name": "installInteractiveNativeCollapse", - "line": 11, - "declaration": "native = shade.split('func installInteractiveNativeCollapse', 1)[1].split('if mode == .interactiveNative', 1)[0]" - }, - { - "name": "unshadeReturningElement", - "line": 15, - "declaration": "sync = exit_code.split('func unshadeReturningElement(', 1)[1].split('@discardableResult', 1)[0]" - }, - { - "name": "suspend", - "line": 20, - "declaration": "suspend = controller.split('private func suspend()', 1)[1].split('private func resume()', 1)[0]" - }, - { - "name": "MenuState", - "line": 25, - "declaration": "assert 'struct MenuState' in menu" - } - ] - } - ] -} diff --git a/tests/archive/part9/sources/code-map.md b/tests/archive/part9/sources/code-map.md deleted file mode 100644 index 64695c14..00000000 --- a/tests/archive/part9/sources/code-map.md +++ /dev/null @@ -1,437 +0,0 @@ -# 源码索引 - -共 26 份实际文件。行号只对应此处 SHA256,不把更晚工作区相同行号当同一实现。 - -## prototype/App/FocusTimerHost.swift - -SHA256:`7aa01c91cb3abf4503ff8eb92a8060efcdfca907b295caa3ab0fde88d264b666`;既有相关调用者,未改。 - -- L2:`@MainActor final class FocusTimerHost {` -- L16:`func handle(_ event: FocusTimer.Event) {` -- L21:`func configure(preset: FocusTimer.Preset, tuckChatEnabled: Bool) {` -- L26:`func stop() { wake?.cancel(); wake = nil; if revision < .max { revision += 1 } }` -- L27:`private func schedule() {` - -## prototype/App/FoldCompletion.swift - -SHA256:`18559db591375242d83406a083b9a18e4bf5dc69de7b8c32c8f3494c31054982`;本份修改/新增。 - -- L11:`func registerFoldWaiter(id: CGWindowID, completion: @escaping (Bool) -> Void) -> UUID {` -- L21:`func bindFoldWaiters(id: CGWindowID, tokens: [UUID], transaction: UUID) {` -- L28:`func settleFoldWaiter(id: CGWindowID, token: UUID, success: Bool) {` -- L33:`func settleFoldWaiters(id: CGWindowID, transaction: UUID, success: Bool) {` -- L38:`func cancelFoldWaiters(id: CGWindowID, tokens: [UUID]) {` -- L42:`func settleFoldWaiters(id: CGWindowID, tokens: [UUID], success: Bool) {` - -## prototype/App/FoldTransaction.swift - -SHA256:`f353846ee708e80dc81e78636f24dd3976d5ec77f1c0f9db0e38f2f675519c3b`;本份修改/新增。 - -- L7:`func parkFocusForInactiveCapture() {` -- L22:`func releaseFocusParking(reactivate pid: pid_t?) {` -- L41:`func handOffFocusBeforeHiding(win: AXUIElement, pid: pid_t, id: CGWindowID) -> Bool {` -- L103:`func hideTookEffect(_ hide: HideMethod, win: AXUIElement, pid: pid_t,` -- L108:`func scheduleFoldVerification(id: CGWindowID) {` -- L147:`func revealOverlayAfterVerification(id: CGWindowID, state: ShadeState) {` -- L165:`func rollbackFoldTransaction(id: CGWindowID, expectedTransaction: UUID? = nil) {` -- L190:`func activateApp(pid: pid_t) {` -- L196:`func bringRestoredWindowToFront(_ win: AXUIElement, pid: pid_t, reason: String) {` -- L199:`func attempt(_ label: String) {` -- L223:`func prepareForwardedTrafficAction(_ win: AXUIElement, pid: pid_t, reason: String) {` -- L230:`func restoredWindowIsGeometryReady(_ win: AXUIElement) -> Bool {` -- L235:`func buttonIsReady(_ win: AXUIElement, _ attr: String) -> Bool {` -- L251:`func forwardedTrafficActionSucceeded(state: ShadeState, id: CGWindowID,` -- L274:`func performForwardedTrafficAction(state: ShadeState, pos: CGPoint,` -- L288:`func retryOrFallback(_ index: Int, note: String) {` -- L312:`func verifyAfterAXPress(_ win: AXUIElement, index: Int, attr: String) {` -- L324:`func verifyAfterPointerClick(_ win: AXUIElement, index: Int, attr: String) {` -- L341:`func attempt(_ index: Int) {` -- L372:`func schedule(_ index: Int, note: String) {` -- L387:`func showRealWindowManagementPopover(_ id: CGWindowID) {` -- L400:`func attempt(_ index: Int) {` -- L430:`func windowIsParkedOffscreen(id: CGWindowID, win: AXUIElement, size: CGSize) -> Bool {` -- L438:`func privateSLSOffscreenHide(_ win: AXUIElement, id: CGWindowID,` -- L474:`func privateSLSAlphaHide(id: CGWindowID, pid: pid_t, reason: String) -> HideMethod? {` -- L506:`func axOffscreenHide(_ win: AXUIElement,` -- L530:`func ownWindow(id: CGWindowID?) -> NSWindow? {` -- L537:`func orderOutOwnWindowIfNeeded(id: CGWindowID?, pid: pid_t, reason: String) -> HideMethod? {` -- L548:`func hideWindow(_ win: AXUIElement, pid: pid_t, originalPosition pos: CGPoint,` -- L609:`func fallbackHide(_ win: AXUIElement, pid: pid_t, id: CGWindowID?,` -- L639:`func safeRestorePosition(for state: ShadeState, desired pos: CGPoint) -> CGPoint {` -- L658:`func refreshedWindowElement(id: CGWindowID, fallback: AXUIElement,` -- L666:`func resolvedWindowElement(for state: ShadeState) -> AXUIElement {` -- L694:`func applyRestoredGeometry(_ state: ShadeState, to pos: CGPoint,` -- L727:`func restoreWindow(_ state: ShadeState, to pos: CGPoint) -> AXUIElement {` -- L767:`func cancelRestorePin(for id: CGWindowID) {` -- L771:`func pinRestoredWindow(_ state: ShadeState, to pos: CGPoint, reason: String) {` -- L779:`func attempt(_ label: String, focus: Bool, verify: Bool = true) {` -- L822:`func resizeShadedWindowFromProxy(_ id: CGWindowID, proxyFrame: NSRect) {` -- L861:`func makeRevealObserver(pid: pid_t, win: AXUIElement, id: CGWindowID, transaction: UUID) -> AXObserver? {` -- L884:`func removeObserver(_ state: ShadeState) {` -- L894:`func handleAXNotification(_ id: CGWindowID, _ notification: String, expected: WS2FoldCallbackStamp) {` -- L942:`@objc func appTerminated(_ note: Notification) {` -- L952:`@objc func frontmostApplicationChanged(_ note: Notification) {` -- L982:`@objc func screenParametersChanged(_ note: Notification) {` -- L1028:`@objc func activeSpaceChanged(_ note: Notification) {` - -## prototype/App/InteractionCoordinator.swift - -SHA256:`5524bd61193c8e7ca5090b7c38c498f094bdc13a3e48971f3f084b2fb7a0c5b2`;既有相关调用者,未改。 - -- L5:`final class InteractionCoordinator {` -- L6:`struct Environment { var unlocked: Bool; var displays: Set }` -- L7:`private struct Active { let handle: WS2.LeaseHandle; let layer: WS2.Layer; let deadline: WS2.Instant }` -- L8:`private struct Alert { let first: WS2.Instant; var last: WS2.Instant; let deadline: WS2.Instant }` -- L27:`private func permits(_ r: WS2.LeaseRequest) -> Bool {` -- L35:`private func withdraw(_ reason: WS2.LeaseRevocation) {` -- L40:`private func expire(_ now: WS2.Instant) {` -- L46:`func acquire(_ r: WS2.LeaseRequest, replacing expected: WS2.LeaseHandle? = nil) -> WS2.LeaseDecision {` -- L75:`func isCurrent(_ lease: WS2.LeaseHandle) -> Bool {` -- L81:`func release(_ lease: WS2.LeaseHandle, at now: WS2.Instant) {` -- L86:`private func barrier(_ reason: WS2.LeaseRevocation) {` -- L90:`func invalidate(_ reason: WS2.LeaseRevocation, at now: WS2.Instant) {` -- L98:`func removeDisplay(_ id: WS2.DisplayID, at now: WS2.Instant) {` -- L105:`func publishOngoing(_ ids: [String], on display: WS2.DisplayID) {` -- L110:`func remind(on display: WS2.DisplayID, at now: WS2.Instant) {` -- L119:`func snapshots(at now: WS2.Instant) -> [WS2.VisibilitySnapshot] {` -- L137:`func confirmationIsFresh(lease: WS2.LeaseHandle, beganAt: WS2.Instant, sequence: UInt64,` - -## prototype/App/Reconcile.swift - -SHA256:`290d8fb4dcb1b14e79620279ff9e30b42e81fbaa86c68678808a5073bd333f04`;本份修改/新增。 - -- L7:`func updateReconcileTimer() {` -- L25:`func shouldRetryJournalRescue(now: Date) -> Bool {` -- L30:`func sourceWindowLooksUserVisible(state: ShadeState, pos: CGPoint, size: CGSize,` -- L65:`func shouldLogReconcileInvalidCount(_ count: Int) -> Bool {` -- L68:`func sourceWindowMissingShouldCleanup(id: CGWindowID, state: ShadeState) -> Bool {` -- L91:`func reconcileShadedWindows(reason: String) {` -- L153:`func applyReconcileAXSnapshots(_ snapshots: [ReconcileAXSnapshot],` -- L203:`func finishReconcileShadedWindows() {` - -## prototype/App/ShadeController.swift - -SHA256:`ffe5d474a28aa43ac12baf5e4a85b1d795494be0df928980fe6b4e69d8bb813f`;本份修改/新增。 - -- L8:`func retargetToActiveSpaceWindow(pid: pid_t) -> (AXUIElement, CGWindowID)? {` -- L35:`func toggle() {` -- L87:`func performNativeStickiesShade(_ win: AXUIElement) {` -- L104:`func makeShadePlan(win: AXUIElement, pos: CGPoint, size: CGSize,` -- L157:`func resolvedSourceSpaceID(windowID id: CGWindowID,` -- L169:`func shade(_ win: AXUIElement, _ id: CGWindowID,` -- L178:`func admissionCurrent() -> Bool {` -- L184:`func completeFold(success: Bool, transaction: UUID? = nil) {` -- L303:`func installOverlay(_ overlay: NSWindow, mode: ShadeAppearanceMode, previewImage: NSImage?) {` -- L482:`func installInteractiveNativeCollapse(barH: CGFloat) -> Bool {` -- L761:`func captureWindow(id: CGWindowID, axPos: CGPoint, size: CGSize,` -- L800:`func fastWindowCapture(_ id: CGWindowID) async -> CGImage? {` -- L807:`func captureWindowWithTimeout(id: CGWindowID, axPos: CGPoint, size: CGSize,` -- L858:`private func raceCaptureWithTimeout(id: CGWindowID, axPos: CGPoint, size: CGSize,` - -## prototype/App/WS2AppRuntime.swift - -SHA256:`99205e90fd9d99278da55fbfe88924e2100c4ada4223c6d35136da67cf5b6db2`;既有相关调用者,未改。 - -- L3:`@MainActor final class WS2AppRuntime {` -- L31:`func day(_ date: Date) -> String {` -- L108:`private func setLockReason(_ reason: String, locked: Bool) {` -- L119:`func applicationShouldTerminate() -> NSApplication.TerminateReply {` -- L138:`private func finishQuit(updaterReply:Bool?=nil,childrenReady:Bool=false,failed:Bool=false) {` -- L144:`func openOwned() {` -- L153:`private func openModelPicker() {` -- L192:`func open() {` -- L205:`func refreshFocusSettings() {` -- L210:`func toggleFocus() {` -- L217:`@discardableResult func showSessions(_ sessions:[AgentSessions.Session], open:@escaping(WS2.Context)->Void,` -- L222:`@discardableResult func showConductor(_ state:ConductorNotch, action:@escaping(WS2ConductorView.Action)->Void) -> Bool {` -- L228:`private func publish() {` -- L236:`func stop() {` -- L249:`@objc func ws2OpenOwned() { MainActor.assumeIsolated { ws2Runtime.openOwned() } }` -- L250:`@objc func ws2OpenFocus() { MainActor.assumeIsolated { ws2Runtime.open() } }` - -## prototype/App/WS2FoldCallbackGuard.swift - -SHA256:`9f8d8cc688955c493ac17ebde396f59f70892e32c0b78250c78589c007fc63db`;本份修改/新增。 - -- L5:`func foldCallbackStamp(id: CGWindowID, state: ShadeState) -> WS2FoldCallbackStamp {` -- L13:`func foldWaiterDeliveryStamp(id: CGWindowID, transaction: UUID) -> WS2FoldCallbackStamp? {` -- L21:`func foldCallbackIsCurrent(_ expected: WS2FoldCallbackStamp,` -- L30:`func observeFoldHide(_ hide: HideMethod, win: AXUIElement, pid: pid_t,` -- L68:`func retainUnconfirmedFold(id: CGWindowID, state: ShadeState) {` -- L84:`func receiveFoldAXNotification(routeID: UInt, notification: String) {` -- L96:`func axObservedBoolAttribute(_ win: AXUIElement, _ attribute: String) -> Bool? {` - -## prototype/App/WS2FoldEvidenceAdapter.swift - -SHA256:`56606957ca290794e0450d6199aa4e3d85fc954e4c472a9e6158bb06cdb7013d`;本份修改/新增。 - -- L7:`func shadeWithEvidence(_ win:AXUIElement,id:CGWindowID,pid:pid_t,recordedPosition:CGPoint?,` -- L27:`func deliverFoldEvidence(_ event:WS2FoldEvidence.Event?){` -- L33:`func mayCommitObservedFold(_ ticket:WS2FoldEvidence.Ticket)->Bool {` -- L37:`func finishFoldEvidence(_ ticket:WS2FoldEvidence.Ticket?,success:Bool){` -- L44:`func publishFoldObservation(id:CGWindowID,state:ShadeState){` -- L61:`func strictFoldObservation(id: CGWindowID, state: ShadeState) -> WS2FoldEvidence.Observation {` -- L70:`func cancelFoldEvidence(id:CGWindowID,transaction:UUID){` - -## prototype/Core/FoldVerifier.swift - -SHA256:`8391bca46e6af68e0ae1942edd2e9bd106f5ea83e237ffa9ba0b58e5b878c597`;本份修改/新增。 - -- L4:`final class FoldVerifier {` -- L5:`enum Observation: Equatable, Sendable { case hidden, visible, unknown }` -- L44:`func start() {` -- L50:`private func pollQuickly(until deadline: TimeInterval, elapsed: TimeInterval) {` -- L62:`private func check(attempt: Int) {` -- L83:`private func finish(_ value: Observation) {` - -## prototype/Core/WS2FocusEffectPlan.swift - -SHA256:`60ccb717e3641f20e1fc499dc1e432ba37493e3c4abe8e28c73b2ebc19419829`;既有相关调用者,未改。 - -- L4:`struct WS2FocusEffectPlan: Sendable {` -- L7:`struct Window: Equatable, Sendable { let identity: Identity; let revision: UInt64 }` -- L8:`enum Kind: Equatable, Sendable { case tuck(Window, WS2.Token, UInt64), restore(Receipt) }` -- L9:`struct Operation: Equatable, Sendable { let id: UUID; let kind: Kind }` -- L10:`enum Outcome: Sendable { case completed(revision: UInt64), unchanged, userChanged, unknown }` -- L11:`enum Failure: Error { case invalid, capacity, overflow, unexpectedCompletion }` -- L24:`mutating func transition(run: WS2.Token?, windows: [Window]) throws {` -- L31:`mutating func setSuspended(_ value: Bool) { suspended = value }` -- L32:`mutating func manualChange(_ identity: Identity) {` -- L38:`private static func identity(_ kind: Kind) -> Identity {` -- L41:`mutating func next() -> Operation? {` -- L51:`func mayCommit(_ operation: Operation) -> Bool {` -- L60:`mutating func complete(_ operation: Operation, _ outcome: Outcome) throws {` - -## prototype/Core/WS2FoldCallbackStamp.swift - -SHA256:`50e53418e04733bbe0421c49533bd7e87943f25707f7404bedf188a4ed4543de`;本份修改/新增。 - -- L5:`struct WS2FoldCallbackStamp: Equatable, Sendable {` -- L15:`func accepts(current: Self, now: TimeInterval, unlocked: Bool,` -- L29:`struct WS2FoldObserverRoute: Equatable, Sendable {` -- L36:`func ws2ObservedBoolean(_ raw: CFTypeRef?) -> Bool? {` - -## prototype/Core/WS2FoldEvidence.swift - -SHA256:`3d1dd3583a1e6f93a4d721e6b4587a0cd700c993722fee2f7a03428919f420dd`;既有相关调用者,未改。 - -- L5:`struct WS2FoldEvidence: Sendable {` -- L6:`struct Ticket: Equatable, Sendable { let request:UUID;let window:UInt32;let pid:Int32 }` -- L7:`enum Observation:String,Sendable,Codable { case verifiedHidden, stillVisible, unknown, notStarted }` -- L8:`struct Event:Equatable,Sendable { let ticket:Ticket;let transaction:UUID?;let observation:Observation;let late:Bool }` -- L9:`private struct Entry:Sendable { let ticket:Ticket;let issuedAt:Double;let deadline:Double;var attempted=false;var transaction:UUID?;var last:Observation? }` -- L12:`func contains(_ ticket:Ticket)->Bool{entries[ticket.request]?.ticket == ticket}` -- L13:`mutating func begin(request:UUID,window:UInt32,pid:Int32,at now:Double,timeout:Double=30)->Ticket?{` -- L19:`func mayStart(_ t:Ticket,at now:Double)->Bool {` -- L23:`mutating func markMutation(_ t:Ticket,at now:Double)->Bool{` -- L26:`mutating func bind(_ t:Ticket,transaction:UUID)->Bool{` -- L30:`func ticket(window:UInt32,transaction:UUID)->Ticket?{` -- L33:`mutating func observe(_ t:Ticket,transaction:UUID,observation:Observation)->Event?{` -- L38:`mutating func failed(_ t:Ticket)->Event?{` -- L42:`mutating func expire(_ t:Ticket,at now:Double)->Event?{` -- L48:`mutating func forget(_ t:Ticket){if contains(t){entries[t.request]=nil}}` -- L49:`private mutating func emit(_ t:Ticket,observation:Observation)->Event?{` - -## prototype/Effects/EffectFrameAwaiter.swift - -SHA256:`9c7a967621855e6add53c5ee4cd405249142d018eea497e5301ebae72e0e42c8`;本份修改/新增。 - -- L3:`enum EffectFrameAwaiter {` -- L6:`static func first(` - -## prototype/Effects/EffectFrameSource.swift - -SHA256:`c63cc6885d42278bf8ce30ae05cfc63e3f209d9490524fbd73ddbfb5087990ab`;既有相关调用者,未改。 - -- L7:`enum EffectColorSpace: String {` -- L11:`static func display(_ screen: NSScreen?) -> EffectColorSpace {` -- L15:`struct EffectFrame {` -- L30:`func stillImage() -> CGImage? {` -- L46:`final class EffectFrameSource: NSObject, SCStreamOutput, SCStreamDelegate {` -- L62:`func frame() -> EffectFrame? { lock.withLock { slot.value } }` -- L71:`private static func configuration(size: CGSize, fps: Int, color: EffectColorSpace)` -- L88:`func start(filter: SCContentFilter, size: CGSize, fps: Int = 60, color: EffectColorSpace = .sRGB)` -- L126:`@discardableResult func stop() -> UInt64 {` -- L129:`private func stopLocked() -> UInt64 {` -- L158:`func stopAndWait() async throws {` -- L162:`private func waitForStop() async throws {` -- L167:`func updateFPS(_ fps: Int) {` -- L191:`func waitForFrame(timeout: TimeInterval = 0.6) async -> EffectFrame? {` -- L199:`static func contentUV(_ raw: Any?, scaleFactor: CGFloat, buffer: CVPixelBuffer) -> CGRect {` -- L224:`func stream(` -- L273:`private func fail(_ candidate: SCStream, error: Error) {` -- L285:`func stream(_ stream: SCStream, didStopWithError error: Error) { fail(stream, error: error) }` - -## prototype/Effects/RestoreVerifier.swift - -SHA256:`a0ed730ff532106fdde2eaa64fd8905d5aeddaf9a1ec1e28c293b26ff7dc7052`;既有相关调用者,未改。 - -- L3:`enum RestoreObservation { case pending, visible, closed }` -- L7:`final class RestoreVerifier {` -- L31:`func start() {` -- L35:`private func check() {` - -## prototype/Native/WS2Child.c - -SHA256:`134368aa12dfbbb9ec5a6f60a121c44b52b46bb303d55d73b18d78326d875f47`;既有相关调用者,未改。 - -- L16:`struct WS2Child {` -- L23:`struct timespec value;` - -## prototype/Recovery/DurableShadeJournal.swift - -SHA256:`5dbcd013cc44573bfef4b028dae0ca44c75c963d7df131cf20b946a737c366c8`;既有相关调用者,未改。 - -- L4:`struct DurableShadeJournal {` -- L11:`func load() throws -> [[String: Any]]? {` -- L22:`func save(_ entries: [[String: Any]]) throws {` - -## prototype/Support/WS2DuplexProcess.swift - -SHA256:`1efe08a7d6987fdac80d87f345f1d2ce212e6a5dddac3a71e086e247d8ab579a`;既有相关调用者,未改。 - -- L11:`@MainActor final class WS2DuplexProcess {` -- L12:`enum Failure: Error { case invalid, io(Int32), notRunning }` -- L13:`enum End: Equatable { case localStop, eof, processExit, io(Int32), framing, timeout, revoked }` -- L14:`struct Termination: Equatable, Sendable { let status: Int32; let wasSignalled: Bool }` -- L57:`func start() throws {` -- L96:`private func pollChild() {` -- L120:`@discardableResult func admit(_ lines: [Data], connection: UUID, deadline: Double,` -- L131:`@discardableResult func admitWireFrames(_ frames: [Data], connection: UUID, deadline: Double,` -- L143:`private func armWrite() { if !writeArmed, !stopped { writeArmed = true; writer?.resume() } }` -- L144:`private func disarmWrite() { if writeArmed { writeArmed = false; writer?.suspend() } }` -- L145:`private func scheduleDeadline() {` -- L157:`private func writeReady() {` -- L183:`private func readReady(checkChild: Bool = true) {` -- L205:`private func readDiagnosticReady() {` -- L220:`func clearDiagnostics() { diagnostics?.clear() }` -- L221:`private static func writeWithoutSIGPIPE(_ fd: Int32, _ bytes: Data) -> Int {` -- L236:`func stop(_ reason: End = .localStop) {` - -## prototype/Support/WS2FocusEffectExecutor.swift - -SHA256:`674a8760579e1eccf401f6c949d6fcf69b74257943fe795b043f255b7c3887bf`;既有相关调用者,未改。 - -- L3:`@MainActor protocol WS2FocusMutationPort: AnyObject {` -- L6:`func perform(_ operation: WS2FocusEffectPlan.Operation,` -- L10:`@MainActor final class WS2FocusEffectExecutor {` -- L16:`func transition(run: WS2.Token?, windows: [WS2FocusEffectPlan.Window]) throws {` -- L19:`func suspend() { plan.setSuspended(true) }` -- L20:`func resumeAfterVerifiedUnlock() { plan.setSuspended(false); pump() }` -- L21:`func manualChange(_ identity: WS2FocusEffectPlan.Identity) { plan.manualChange(identity); pump() }` -- L23:`func end() throws { try transition(run: nil, windows: []) }` -- L24:`private func pump() {` - -## prototype/Window/AXHelpers.swift - -SHA256:`b679b85d9e4e31f1a2f4594a048fba885c89b46bd25395e3fab768c880ab71b6`;本份修改/新增。 - -- L9:`enum TrafficAction { case close, minimize, zoom, fullScreen }` -- L11:`enum ProxyTrafficLightStyle {` -- L16:`struct ProxyTrafficLightConfiguration {` -- L40:`func proxyTrafficLightConfiguration(of win: AXUIElement, pid: pid_t) -> ProxyTrafficLightConfiguration {` -- L73:`func urlFromAXAttribute(_ win: AXUIElement, _ attr: String) -> URL? {` -- L90:`func quickLookReopenURL(for win: AXUIElement) -> URL? {` -- L102:`func reopenQuickLookPreview(url: URL) -> Bool {` -- L116:`func postSpacebarKey() {` -- L125:`func reopenQuickLookFromFinderSelection(pid: pid_t) -> Bool {` -- L149:`enum SystemTitlebarDoubleClickAction: Equatable {` -- L155:`func systemTitlebarDoubleClickAction() -> SystemTitlebarDoubleClickAction {` -- L163:`func systemTitlebarTripleClickDescription() -> String? {` -- L174:`enum WindowManagementCapability {` -- L182:`func realWindowManagementCapability(_ win: AXUIElement) -> WindowManagementCapability {` -- L203:`func trafficLightRects(_ win: AXUIElement, winTopLeft pos: CGPoint, barH: CGFloat) -> [(CGRect, TrafficAction)] {` -- L216:`func trafficLightRects(_ rects: [(CGRect, TrafficAction)],` -- L238:`func axTitle(_ e: AXUIElement) -> String {` -- L245:`func dumpWindow(_ win: AXUIElement) {` - -## prototype/WindowBrowser/WindowBrowserAppDelegate.swift - -SHA256:`47a44ee7dd3717a71545ca192da753f650a75ca9a538a8ceeb0fd895583937c8`;本份修改/新增。 - -- L11:`func windowBrowserManagedSnapshots() -> [ManagedWindowDescriptor] {` -- L101:`func windowBrowserBeginFold(key: WindowKey, element: AXUIElement,` -- L127:`func windowBrowserTargetCandidate(key: WindowKey) -> AXUIElement? {` -- L135:`func windowBrowserIsWindowStillPresent(key: WindowKey) -> Bool {` - -## prototype/WindowShade.swift - -SHA256:`2c95d5d27a9f4649461e330e590da4bf0afdacee1fb0a2bfdb4897b32f570aed`;本份修改/新增。 - -- L79:`func framesAlmostEqual(_ a: NSRect, _ b: NSRect, tolerance: CGFloat = 0.5) -> Bool {` -- L86:`func cgWindowID(for window: NSWindow) -> CGWindowID? {` -- L94:`final class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {` -- L96:`final class PendingTitlebarTripleClick {` -- L110:`struct PendingSpaceReturn {` -- L118:`struct ReconcileAXTarget {` -- L126:`struct ReconcileAXSnapshot: Sendable {` -- L311:`func applicationDidFinishLaunching(_ note: Notification) {` -- L425:`func applicationShouldTerminate(_ sender: NSApplication) -> NSApplication.TerminateReply {` -- L430:`@objc func systemAppearanceOptionsChanged(_ note: Notification) {` -- L461:`func installStandardMainMenu() {` -- L471:`private func migrateDistractingDefaultSounds() {` -- L500:`func refreshPinnedPreviewTarget(reason: String) {` -- L507:`private func setupPinnedPreviewFocusTracking() {` -- L520:`private func scheduleTitlebarPrefetch() {` -- L541:`private func schedulePinnedPreviewTargetRefresh() {` -- L561:`func focusSizedFrame(pos: CGPoint, size: CGSize,` -- L600:`func configureShadedAccessibility(for overlay: NSWindow, id: CGWindowID,` -- L626:`func currentShadedOverlayID() -> CGWindowID? {` -- L644:`@objc func finishOnboarding() {` -- L648:`@objc func dismissOnboarding() {` -- L659:`private func runTool(_ path: String, _ args: [String]) -> Int32? {` -- L676:`private func readTool(_ path: String, _ args: [String]) -> String? {` -- L692:`private func runDefaults(_ args: [String]) { runTool("/usr/bin/defaults", args) }` -- L693:`private func readDefaults(_ args: [String]) -> String? { readTool("/usr/bin/defaults", args) }` -- L694:`private func killDock() { runTool("/usr/bin/killall", ["Dock"]) } // 让 Dock 重读 mineffect` -- L696:`private func writeDockMinimizeEffect(_ value: String, reason: String) -> Bool {` -- L709:`private func persistDockMinimizeEffectSession(original: String?) {` -- L720:`private func clearDockMinimizeEffectSession() {` -- L727:`private func restoreDockMinimizeEffect(original: String?) {` -- L735:`private func recoverStaleDockMinimizeEffectSessionIfNeeded() {` -- L746:`private func enableScaleMinimizeEffectForSession() {` -- L774:`private func restoreDockMinimizeEffect() {` -- L791:`func currentOperationState(_ id: CGWindowID) -> WindowShadeState {` -- L797:`func transitionOperationState(id: CGWindowID, to next: WindowShadeState,` -- L810:`func applicationWillTerminate(_ note: Notification) {` -- L837:`func ensureAccessibility() -> Bool {` -- L844:`@objc func toggleAction() { toggle() }` -- L855:`@objc func focusCurrentAppAction() {` -- L869:`@objc func unshadeFromMenu(_ sender: NSMenuItem) {` -- L874:`@objc func quit() {` -- L887:`func setupEventTapWhenTrusted() {` -- L903:`func setupEventTap() -> Bool {` - -## prototype/build.sh - -SHA256:`e6db6c9f3499fcdcb4f28c065199f4f87aa64aeb0c5a46b098164dc761ad588c`;既有相关调用者,未改。 - - -## tests/DuoCoreTests.swift - -SHA256:`580fbdfa753b6fba4941f67abc0ce7fe58d182d37cb3409880647a5ea6d748f5`;既有相关调用者,未改。 - -- L3:`@main struct DuoCoreTests {` -- L4:`final class Clock {` -- L7:`func schedule(_ delay: Double, _ action: @escaping () -> Void) {` -- L10:`func advance(_ delta: Double) {` -- L22:`static func main() async throws {` -- L110:`static func titlebarIntentTests() {` -- L134:`static func foldVerificationTests() {` -- L135:`final class Scenario {` -- L222:`static func deferredRestoreCompletionTests() {` -- L253:`static func restorationTests() throws {` -- L266:`func verifier() -> RestoreVerifier {` -- L307:`struct LegacyMotion {` -- L312:`mutating func receive(_ acceleration: SIMD3, time: Double) {` -- L334:`static func motionTiltTests() throws {` - -## tests/duo-integration-check.py - -SHA256:`77baca7e632b420b099a9af21b6462d826b6f9f2eb97c9c5d90f5906e002bb6d`;本份修改/新增。 - -- L5:`transaction = shade.split('func installOverlay(', 1)[1].split('func installInteractiveNativeCollapse', 1)[0]` -- L11:`native = shade.split('func installInteractiveNativeCollapse', 1)[1].split('if mode == .interactiveNative', 1)[0]` -- L15:`sync = exit_code.split('func unshadeReturningElement(', 1)[1].split('@discardableResult', 1)[0]` -- L20:`suspend = controller.split('private func suspend()', 1)[1].split('private func resume()', 1)[0]` -- L25:`assert 'struct MenuState' in menu` diff --git a/tests/archive/part9/sources/privacy-signals.json b/tests/archive/part9/sources/privacy-signals.json deleted file mode 100644 index 5b7745df..00000000 --- a/tests/archive/part9/sources/privacy-signals.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "part": 9, - "baseline": "round2-handoff-v8", - "new_network_destinations": [], - "new_permissions": [], - "new_persistent_user_data": [], - "changes": [ - { - "signal": "AX geometry/minimized plus app/window observation", - "existing_source": true, - "use": "tri-state verification and reconcile; successful reads must match current context", - "retention": "existing runtime state only; existing recovery journal retained, not newly expanded" - }, - { - "signal": "fold callback stamp", - "fields": [ - "windowID", - "pid", - "transaction", - "hide", - "boot", - "sessionEpoch", - "presentation", - "capturedAt" - ], - "retention": "transient process memory", - "authorization": "none; does not consume or create grants" - }, - { - "signal": "observer routeID and batchID", - "retention": "current observer/current reconcile batch", - "cleanup": "route removed before run-loop source; batch cleared at finish", - "limitation": "already issued AX call is not cancelled" - }, - { - "signal": "diagnostic status messages", - "new_channel": false, - "use": "existing wlog/quiet notice; unknown outcome and stale callback rejection", - "retention": "existing project logging policy; no new exports or automatic model upload" - } - ], - "did_not_collect": [ - "real window samples", - "gamepad input", - "camera", - "microphone", - "BLE", - "biometric templates", - "real CLI credentials" - ], - "notes": [ - "Hash and transient UUID are not anonymization claims.", - "This delta must be reviewed with the prior signal registry." - ] -} diff --git a/tests/archive/part9/tests/FrameTests.swift b/tests/archive/part9/tests/FrameTests.swift deleted file mode 100644 index 6b8c28c6..00000000 --- a/tests/archive/part9/tests/FrameTests.swift +++ /dev/null @@ -1,52 +0,0 @@ -import Foundation -final class Frame { let number: Int; init(_ number:Int){self.number=number} } -actor FrameOwner { - var clock=0.0 - func exercise() async -> Bool { - let frame=Frame(7) - let read=await EffectFrameAwaiter.first(timeout:1,now:{self.clock},isCurrent:{true},latest:{frame},pause:{self.clock+=0.1}) - return read === frame - } -} -@main enum FrameTests { - @MainActor static func main() async throws { - var cases:[[String:Any]]=[];var failures=0 - func check(_ name:String,_ passed:Bool){cases.append(["id":name,"passed":passed]);if !passed{failures+=1};print(passed ? "PASS":"FAIL",name)} - let frame=Frame(1) - let ready=await EffectFrameAwaiter.first(timeout:1,now:{0},isCurrent:{true},latest:{frame},pause:{}) - check("FRAME01-main-actor-nonsendable-value",ready === frame) - check("FRAME02-independent-actor",await FrameOwner().exercise()) - let unisolated=await Task.detached {let box=Frame(3);let value=await EffectFrameAwaiter.first(timeout:1,now:{0},isCurrent:{true},latest:{box},pause:{});return value === box}.value - check("FRAME03-unisolated-caller",unisolated) - var active=true - let replaced=await EffectFrameAwaiter.first(timeout:1,now:{0},isCurrent:{active},latest:{active=false;return frame},pause:{}) - check("FRAME04-replaced-inside-getter",replaced == nil) - var now=0.0 - let expired=await EffectFrameAwaiter.first(timeout:1,now:{now},isCurrent:{true},latest:{now=1;return frame},pause:{}) - check("FRAME05-deadline-inside-getter",expired == nil) - now=0;active=true;var reads=0 - let cancelled=await EffectFrameAwaiter.first(timeout:1,now:{now},isCurrent:{active},latest:{reads+=1;return nil},pause:{now+=0.1;active=false}) - check("FRAME06-revoked-during-pause",cancelled == nil && reads==1) - for (label,timeout) in [("zero",0.0),("negative",-1), ("nan",Double.nan),("infinite",.infinity)] { - var read=false - let value=await EffectFrameAwaiter.first(timeout:timeout,now:{0},isCurrent:{true},latest:{read=true;return frame},pause:{}) - check("FRAME07-timeout-"+label,value == nil && !read) - } - let badClock=await EffectFrameAwaiter.first(timeout:1,now:{.nan},isCurrent:{true},latest:{frame},pause:{}) - check("FRAME08-nonfinite-clock",badClock == nil) - var sequence=[0.0,-1.0] - let reversed=await EffectFrameAwaiter.first(timeout:1,now:{sequence.removeFirst()},isCurrent:{true},latest:{frame},pause:{}) - check("FRAME09-clock-goes-backward",reversed == nil) - let overflow=await EffectFrameAwaiter.first(timeout:Double.greatestFiniteMagnitude,now:{Double.greatestFiniteMagnitude},isCurrent:{true},latest:{frame},pause:{}) - check("FRAME10-deadline-overflow",overflow == nil) - let noProgress=await EffectFrameAwaiter.first(timeout:1,now:{Double.greatestFiniteMagnitude},isCurrent:{true},latest:{frame},pause:{}) - check("FRAME11-deadline-does-not-advance",noProgress == nil) - var taskRead=false - let task=Task { @MainActor in let result=await EffectFrameAwaiter.first(timeout:1,now:{0},isCurrent:{true},latest:{taskRead=true;return frame},pause:{});return result == nil } - task.cancel();let value=await task.value - check("FRAME12-task-cancelled",value && !taskRead) - try JSONSerialization.data(withJSONObject:["suite":"FrameAwaiter","scenarios":cases.count,"assertions":cases.count,"failures":failures,"cases":cases],options:[.prettyPrinted,.sortedKeys]).write(to:URL(fileURLWithPath:CommandLine.arguments[1])) - print("SCENARIOS \(cases.count) ASSERTIONS \(cases.count) FAILURES \(failures)") - if failures>0 {exit(1)} - } -} diff --git a/tests/archive/part9/tests/RegressionTests.swift b/tests/archive/part9/tests/RegressionTests.swift deleted file mode 100644 index ae260a7f..00000000 --- a/tests/archive/part9/tests/RegressionTests.swift +++ /dev/null @@ -1,228 +0,0 @@ -import Foundation -import CoreFoundation - -typealias CGWindowID = UInt32 -// Only the production completion ledger's stored fields. No AX/AppKit replacement. -@MainActor final class AppDelegate { - var foldWaiters: [CGWindowID: [UUID: (Bool) -> Void]] = [:] - var foldWaiterTransactions: [UUID: UUID] = [:] - // Explicitly injected current-window/lock facts; no platform is simulated here. - var current: [UInt32: UUID] = [:] - var epoch: UInt64 = 0 - var unlocked = true - var now = 10.0 - let boot = UUID(), presentation = UUID() - func install(_ transaction: UUID, id: UInt32 = 1) { current[id] = transaction } - func foldWaiterDeliveryStamp(id: CGWindowID, transaction: UUID) -> WS2FoldCallbackStamp? { - guard current[id] == transaction else { return nil } - return WS2FoldCallbackStamp(window:id,pid:81,transaction:transaction,hide:"hidden",boot:boot, - sessionEpoch:epoch,presentation:presentation,capturedAt:now) - } - func foldCallbackIsCurrent(_ stamp: WS2FoldCallbackStamp) -> Bool { - guard let tx=current[stamp.window],let live=foldWaiterDeliveryStamp(id:stamp.window,transaction:tx) else {return false} - return stamp.accepts(current:live,now:now,unlocked:unlocked) - } -} -final class Clock { - var time = 0.0 - var sequence = 0 - var pending: [(Double, Int, () -> Void)] = [] - func schedule(_ delay: Double, _ action: @escaping () -> Void) { - sequence += 1; pending.append((time + delay, sequence, action)) - } - func advance(_ target: Double) { - while let next = pending.indices.min(by: { (pending[$0].0, pending[$0].1) < (pending[$1].0, pending[$1].1) }), pending[next].0 <= target { - let event = pending.remove(at: next); time = event.0; event.2() - } - time = target - } -} -@MainActor final class Log { - var cases: [[String: Any]] = []; var checks = 0; var failures: [String] = []; var active = "" - func begin(_ name: String) { active = name; cases.append(["id": name,"assertions": 0,"failed": 0]) } - func check(_ value: @autoclosure () -> Bool, _ message: String) { - checks += 1; cases[cases.count-1]["assertions"] = (cases.last?["assertions"] as? Int ?? 0)+1 - if !value() { - failures.append(active+": "+message) - cases[cases.count-1]["failed"] = (cases.last?["failed"] as? Int ?? 0)+1 - print("FAIL",active,message) - } - } - func finish(_ path: String) throws { - let result: [String:Any] = ["suite":"part9-regression","scenarios":cases.count,"assertions":checks,"failures":failures,"cases":cases, - "scope":"Actual Foundation stamp/verifier and production FoldCompletion extension with explicit field/current-context host; no AX/AppKit execution"] - try JSONSerialization.data(withJSONObject:result,options:[.prettyPrinted,.sortedKeys]).write(to:URL(fileURLWithPath:path)) - print("SCENARIOS \(cases.count) ASSERTIONS \(checks) FAILURES \(failures.count)") - if !failures.isEmpty { exit(1) } - } -} -@main enum Tests { - @MainActor static func flush() async { await withCheckedContinuation { c in DispatchQueue.main.async { c.resume() } } } - @MainActor static func main() async throws { - let t = Log() - let boot = UUID(), tx = UUID(), presentation = UUID() - func stamp(window: UInt32 = 44, pid: Int32 = 81, transaction: UUID? = nil, hide: String = "hidden", epoch: UInt64 = 2, bootID: UUID? = nil, screen: UUID? = nil, at: Double = 10) -> WS2FoldCallbackStamp { - WS2FoldCallbackStamp(window:window,pid:pid,transaction:transaction ?? tx,hide:hide,boot:bootID ?? boot,sessionEpoch:epoch,presentation:screen ?? presentation,capturedAt:at) - } - t.begin("FENCE01-current") - t.check(stamp().accepts(current:stamp(at:11),now:11,unlocked:true),"fresh exact context") - t.begin("FENCE02-replaced-transaction") - t.check(!stamp().accepts(current:stamp(transaction:UUID(),at:11),now:11,unlocked:true),"same window ID cannot substitute transaction") - t.begin("FENCE03-reused-pid-or-window") - t.check(!stamp().accepts(current:stamp(pid:82),now:11,unlocked:true),"PID changed") - t.check(!stamp().accepts(current:stamp(window:45),now:11,unlocked:true),"window changed") - t.begin("FENCE04-strategy-changed") - t.check(!stamp().accepts(current:stamp(hide:"minimized"),now:11,unlocked:true),"strategy changed") - t.begin("FENCE05-lock-unlock-epoch") - t.check(!stamp().accepts(current:stamp(),now:11,unlocked:false),"locked/unknown") - t.check(!stamp().accepts(current:stamp(epoch:3),now:11,unlocked:true),"unlock cannot revive epoch") - t.begin("FENCE06-boot-and-display") - t.check(!stamp().accepts(current:stamp(bootID:UUID()),now:11,unlocked:true),"boot") - t.check(!stamp().accepts(current:stamp(screen:UUID()),now:11,unlocked:true),"screen/Space revision") - t.begin("FENCE07-expiry-boundary") - t.check(stamp().accepts(current:stamp(at:11.999),now:11.999,unlocked:true),"before deadline") - t.check(!stamp().accepts(current:stamp(at:12),now:12,unlocked:true),"at deadline") - t.check(!stamp().accepts(current:stamp(at:13),now:13,unlocked:true),"late AX batch") - t.begin("FENCE08-clock-regression") - t.check(!stamp().accepts(current:stamp(at:9),now:9,unlocked:true),"backward clock") - t.check(!stamp().accepts(current:stamp(at:12),now:11,unlocked:true),"current observation from future") - t.begin("FENCE09-nonfinite") - for bad in [Double.nan, .infinity, -.infinity] { - t.check(!stamp(at:bad).accepts(current:stamp(),now:11,unlocked:true),"bad capture") - t.check(!stamp().accepts(current:stamp(at:bad),now:11,unlocked:true),"bad current") - t.check(!stamp().accepts(current:stamp(),now:bad,unlocked:true),"bad now") - t.check(!stamp().accepts(current:stamp(),now:11,unlocked:true,maximumAge:bad),"bad ttl") - } - t.begin("FENCE10-invalid-budget") - t.check(!stamp().accepts(current:stamp(),now:11,unlocked:true,maximumAge:0),"zero") - t.check(!stamp().accepts(current:stamp(),now:11,unlocked:true,maximumAge:-1),"negative") - t.begin("BOOL01-explicit-true-false") - t.check(ws2ObservedBoolean(kCFBooleanTrue) == true,"true") - t.check(ws2ObservedBoolean(kCFBooleanFalse) == false,"false") - t.begin("BOOL02-absence-not-false") - t.check(ws2ObservedBoolean(nil) == nil,"absent") - t.begin("BOOL03-numbers-not-booleans") - t.check(ws2ObservedBoolean(NSNumber(value:0)) == nil,"number zero is unknown") - t.check(ws2ObservedBoolean(NSNumber(value:1)) == nil,"number one is unknown") - t.check(ws2ObservedBoolean(NSNumber(value:2)) == nil,"number two is unknown") - t.begin("BOOL04-strings-not-booleans") - t.check(ws2ObservedBoolean("true" as NSString) == nil,"string true") - t.check(ws2ObservedBoolean("0" as NSString) == nil,"string zero") - - // Real production FoldVerifier, deterministic injected scheduler and observations. - for (name, sequence, salvageSucceeds, expected, expectedWrites) in [ - ("VERIFY01-hidden",[FoldVerifier.Observation.hidden],true,FoldVerifier.Observation.hidden,0), - ("VERIFY02-unknown-then-hidden",[.unknown,.hidden],true,.hidden,0), - ("VERIFY03-stays-unknown",[.unknown,.unknown],true,.unknown,0), - ("VERIFY04-visible-then-unknown",[.visible,.unknown],true,.unknown,0), - ("VERIFY05-visible-retry-succeeds",[.visible,.visible,.hidden],true,.hidden,1), - ("VERIFY06-visible-retry-unknown",[.visible,.visible,.unknown],true,.unknown,1), - ("VERIFY07-visible-retry-visible",[.visible,.visible,.visible],true,.visible,1), - ("VERIFY08-no-cross-strategy-write",[.visible,.visible],false,.visible,0) - ] { - t.begin(name); let clock = Clock(); var observations=sequence;var writes=0;var values:[FoldVerifier.Observation]=[] - let verifier=FoldVerifier(schedule:clock.schedule,isCurrent:{true},observation:{observations.removeFirst()},salvage:{if salvageSucceeds {writes+=1};return salvageSucceeds},salvagedObservation:{observations.removeFirst()},result:{values.append($0)}) - verifier.start();verifier.start();clock.advance(3) - t.check(values == [expected],"one exact result") - t.check(writes == expectedWrites,"no write from unknown") - t.check(clock.pending.isEmpty,"finite callbacks; no implicit quick polling") - } - for cancelledAt in [0.0,0.2,0.7] { - t.begin("VERIFY-cancel-at-\(cancelledAt)");let clock=Clock();var valid=true;var writes=0;var probes=0;var values=0 - let v=FoldVerifier(schedule:clock.schedule,isCurrent:{valid},observation:{probes+=1;return .visible},salvage:{writes+=1;return true},salvagedObservation:{probes+=1;return .hidden},result:{_ in values+=1}) - v.start();clock.advance(cancelledAt);let oldWrites=writes,oldProbes=probes;valid=false;clock.advance(3) - t.check(writes==oldWrites && probes==oldProbes,"no stale read/write") - t.check(values==0,"no result for revoked state") - } - t.begin("VERIFY12-revoke-inside-observe") - do {let c=Clock();var valid=true;var writes=0;var results=0 - let v=FoldVerifier(schedule:c.schedule,isCurrent:{valid},observation:{valid=false;return .hidden},salvage:{writes+=1;return true},salvagedObservation:{.hidden},result:{_ in results+=1}) - v.start();c.advance(3);t.check(results==0 && writes==0,"observer reentry cannot confirm")} - t.begin("VERIFY13-revoke-inside-write") - do {let c=Clock();var valid=true;var results=0;var reads=0 - let v=FoldVerifier(schedule:c.schedule,isCurrent:{valid},observation:{.visible},salvage:{valid=false;return true},salvagedObservation:{reads+=1;return .hidden},result:{_ in results+=1}) - v.start();c.advance(3);t.check(results==0 && reads==0,"write cannot revive result")} - t.begin("VERIFY14-revoke-inside-final-read") - do {let c=Clock();var valid=true;var results=0 - let v=FoldVerifier(schedule:c.schedule,isCurrent:{valid},observation:{.visible},salvage:{true},salvagedObservation:{valid=false;return .hidden},result:{_ in results+=1}) - v.start();c.advance(3);t.check(results==0,"final read rechecks identity")} - t.begin("VERIFY15-no-fast-screen-shortcut") - do {let c=Clock();var probes=0 - let v=FoldVerifier(schedule:c.schedule,isCurrent:{true},observation:{probes+=1;return .unknown},salvage:{true},salvagedObservation:{.hidden},result:{_ in}) - v.start();t.check(c.pending.count==1,"only scheduled actual observation");c.advance(0.149);t.check(probes==0,"no 30ms screen polling")} - - // These methods are compiled from the unchanged production extension file. - t.begin("WAIT01-replacement-keeps-new-waiter") - do {let d=AppDelegate();let a=UUID(),b=UUID();var old:[Bool]=[],new:[Bool]=[] - let x=d.registerFoldWaiter(id:44){old.append($0)};d.bindFoldWaiters(id:44,tokens:[x],transaction:a) - let y=d.registerFoldWaiter(id:44){new.append($0)};d.bindFoldWaiters(id:44,tokens:[y],transaction:b);d.install(b,id:44) - d.settleFoldWaiters(id:44,transaction:a,success:true) - t.check(old.isEmpty && new.isEmpty,"no callbacks inside mutation") - t.check(d.foldWaiters[44]?[y] != nil && d.foldWaiterTransactions[y]==b,"new wait retained") - await flush();t.check(old == [false] && new.isEmpty,"old txn cannot acknowledge replacement") - d.settleFoldWaiters(id:44,transaction:b,success:true);await flush();t.check(new==[true],"own txn completes")} - t.begin("WAIT02-first-settlement-wins") - do {let d=AppDelegate();var values:[Bool]=[];let x=d.registerFoldWaiter(id:1){values.append($0)} - d.settleFoldWaiter(id:1,token:x,success:false);d.settleFoldWaiter(id:1,token:x,success:true);await flush() - t.check(values==[false],"one callback");t.check(d.foldWaiters.isEmpty && d.foldWaiterTransactions.isEmpty,"no state retained")} - t.begin("WAIT03-unbound-token-not-acknowledged") - do {let d=AppDelegate();var values:[Bool]=[];let x=d.registerFoldWaiter(id:1){values.append($0)} - d.settleFoldWaiters(id:1,transaction:UUID(),success:true);await flush();t.check(values.isEmpty,"unbound success forbidden") - d.cancelFoldWaiters(id:1,tokens:[x]);await flush();t.check(values==[false],"unbound cancellation works")} - t.begin("WAIT04-rebind-refused") - do {let d=AppDelegate();let a=UUID(),b=UUID();var values:[Bool]=[];let x=d.registerFoldWaiter(id:1){values.append($0)} - d.install(a);d.bindFoldWaiters(id:1,tokens:[x],transaction:a);d.bindFoldWaiters(id:1,tokens:[x],transaction:b) - d.settleFoldWaiters(id:1,transaction:b,success:true);await flush();t.check(values.isEmpty,"new txn cannot steal old token") - d.settleFoldWaiters(id:1,transaction:a,success:true);await flush();t.check(values==[true],"original owns it")} - t.begin("WAIT05-whole-batch-drained-before-callback") - do {let d=AppDelegate();var values:[Bool]=[];var allDrained=true;var tokens:[UUID]=[] - for _ in 0..<3 {tokens.append(d.registerFoldWaiter(id:1){v in allDrained = allDrained && d.foldWaiters[1]==nil;values.append(v)})} - let tx=UUID();d.install(tx);d.bindFoldWaiters(id:1,tokens:tokens,transaction:tx) - d.settleFoldWaiters(id:1,tokens:tokens,success:true);await flush() - t.check(allDrained && values==[true,true,true],"batch erased before client code")} - t.begin("WAIT06-reentrant-register-preserved") - do {let d=AppDelegate();var later:UUID?;var newValues:[Bool]=[] - let x=d.registerFoldWaiter(id:1){_ in later=d.registerFoldWaiter(id:1){newValues.append($0)}} - d.settleFoldWaiter(id:1,token:x,success:true);await flush() - t.check(later != nil && d.foldWaiters[1]?[later!] != nil,"new callback survives old batch") - d.settleFoldWaiter(id:1,token:x,success:false);await flush();t.check(newValues.isEmpty,"late old timeout harmless") - d.cancelFoldWaiters(id:1,tokens:[later!]);await flush()} - t.begin("WAIT07-duplicates-and-wrong-window") - do {let d=AppDelegate();var values:[Bool]=[];let x=d.registerFoldWaiter(id:1){values.append($0)} - d.settleFoldWaiters(id:2,tokens:[x],success:true);await flush();t.check(values.isEmpty,"wrong ID ignored") - let tx=UUID();d.install(tx);d.bindFoldWaiters(id:1,tokens:[x],transaction:tx) - d.settleFoldWaiters(id:1,tokens:[x,x],success:true);await flush();t.check(values==[true],"duplicated list once")} - t.begin("WAIT08-deleted-before-bind") - do {let d=AppDelegate();let x=d.registerFoldWaiter(id:1){_ in};d.cancelFoldWaiters(id:1,tokens:[x]);d.bindFoldWaiters(id:1,tokens:[x],transaction:UUID());await flush() - t.check(d.foldWaiterTransactions.isEmpty,"no orphaned binding")} - t.begin("WAIT09-many-generations") - do {let d=AppDelegate();var values:[Int]=[];var txs:[UUID]=[] - for i in 0..<100 {let tx=UUID();txs.append(tx);let id=UInt32(i+1);d.install(tx,id:id);let token=d.registerFoldWaiter(id:id){_ in values.append(i)};d.bindFoldWaiters(id:id,tokens:[token],transaction:tx)} - for i in (0..<100).reversed() {d.settleFoldWaiters(id:UInt32(i+1),transaction:txs[i],success:true)};await flush() - t.check(values==Array((0..<100).reversed()),"exact generations in delivered order") - t.check(d.foldWaiters.isEmpty && d.foldWaiterTransactions.isEmpty,"bindings released")} - t.begin("WAIT10-context-changes-before-delivery") - do {let d=AppDelegate();let tx=UUID();d.install(tx);var values:[Bool]=[] - let x=d.registerFoldWaiter(id:1){values.append($0)};d.bindFoldWaiters(id:1,tokens:[x],transaction:tx) - d.settleFoldWaiters(id:1,transaction:tx,success:true);d.install(UUID());await flush() - t.check(values==[false],"queued old success cannot target replacement")} - t.begin("WAIT11-lock-cycle-before-delivery") - do {let d=AppDelegate();let tx=UUID();d.install(tx);var values:[Bool]=[] - let x=d.registerFoldWaiter(id:1){values.append($0)};d.bindFoldWaiters(id:1,tokens:[x],transaction:tx) - d.settleFoldWaiters(id:1,transaction:tx,success:true);d.epoch+=1;await flush() - t.check(values==[false],"unlock does not revive queued success")} - t.begin("WAIT12-cross-cancel-after-batch-drained") - do {let d=AppDelegate();let tx=UUID();d.install(tx);var secondToken:UUID?;var values:[Bool]=[] - let first=d.registerFoldWaiter(id:1){_ in d.settleFoldWaiter(id:1,token:secondToken!,success:false)} - secondToken=d.registerFoldWaiter(id:1){values.append($0)} - d.bindFoldWaiters(id:1,tokens:[first,secondToken!],transaction:tx) - d.settleFoldWaiters(id:1,tokens:[first,secondToken!],success:true);await flush() - t.check(values==[true],"reentrant cancel cannot change an already drained settlement")} - t.begin("WAIT13-delivery-deadline") - do {let d=AppDelegate();let tx=UUID();d.install(tx);var values:[Bool]=[] - let x=d.registerFoldWaiter(id:1){values.append($0)};d.bindFoldWaiters(id:1,tokens:[x],transaction:tx) - d.settleFoldWaiters(id:1,transaction:tx,success:true);d.now=12;await flush() - t.check(values==[false],"stalled delivery not silently renewed")} - try t.finish(CommandLine.arguments[1]) - } -} diff --git a/tests/archive/part9/tests/TEST-CASES.md b/tests/archive/part9/tests/TEST-CASES.md deleted file mode 100644 index 6b392a79..00000000 --- a/tests/archive/part9/tests/TEST-CASES.md +++ /dev/null @@ -1,70 +0,0 @@ -# 本次新用例与证据边界 - -测试 ID 原样来自实际执行记录。旧回归、原缺陷复现和源文本检查不混入本表。 - -## regression - -|场景|断言|结果| -|---|---:|---| -|FENCE01-current|1|PASS| -|FENCE02-replaced-transaction|1|PASS| -|FENCE03-reused-pid-or-window|2|PASS| -|FENCE04-strategy-changed|1|PASS| -|FENCE05-lock-unlock-epoch|2|PASS| -|FENCE06-boot-and-display|2|PASS| -|FENCE07-expiry-boundary|3|PASS| -|FENCE08-clock-regression|2|PASS| -|FENCE09-nonfinite|12|PASS| -|FENCE10-invalid-budget|2|PASS| -|BOOL01-explicit-true-false|2|PASS| -|BOOL02-absence-not-false|1|PASS| -|BOOL03-numbers-not-booleans|3|PASS| -|BOOL04-strings-not-booleans|2|PASS| -|VERIFY01-hidden|3|PASS| -|VERIFY02-unknown-then-hidden|3|PASS| -|VERIFY03-stays-unknown|3|PASS| -|VERIFY04-visible-then-unknown|3|PASS| -|VERIFY05-visible-retry-succeeds|3|PASS| -|VERIFY06-visible-retry-unknown|3|PASS| -|VERIFY07-visible-retry-visible|3|PASS| -|VERIFY08-no-cross-strategy-write|3|PASS| -|VERIFY-cancel-at-0.0|2|PASS| -|VERIFY-cancel-at-0.2|2|PASS| -|VERIFY-cancel-at-0.7|2|PASS| -|VERIFY12-revoke-inside-observe|1|PASS| -|VERIFY13-revoke-inside-write|1|PASS| -|VERIFY14-revoke-inside-final-read|1|PASS| -|VERIFY15-no-fast-screen-shortcut|2|PASS| -|WAIT01-replacement-keeps-new-waiter|4|PASS| -|WAIT02-first-settlement-wins|2|PASS| -|WAIT03-unbound-token-not-acknowledged|2|PASS| -|WAIT04-rebind-refused|2|PASS| -|WAIT05-whole-batch-drained-before-callback|1|PASS| -|WAIT06-reentrant-register-preserved|2|PASS| -|WAIT07-duplicates-and-wrong-window|2|PASS| -|WAIT08-deleted-before-bind|1|PASS| -|WAIT09-many-generations|2|PASS| -|WAIT10-context-changes-before-delivery|1|PASS| -|WAIT11-lock-cycle-before-delivery|1|PASS| -|WAIT12-cross-cancel-after-batch-drained|1|PASS| -|WAIT13-delivery-deadline|1|PASS| - -## frame - -|场景|断言|结果| -|---|---:|---| -|FRAME01-main-actor-nonsendable-value|1|PASS| -|FRAME02-independent-actor|1|PASS| -|FRAME03-unisolated-caller|1|PASS| -|FRAME04-replaced-inside-getter|1|PASS| -|FRAME05-deadline-inside-getter|1|PASS| -|FRAME06-revoked-during-pause|1|PASS| -|FRAME07-timeout-zero|1|PASS| -|FRAME07-timeout-negative|1|PASS| -|FRAME07-timeout-nan|1|PASS| -|FRAME07-timeout-infinite|1|PASS| -|FRAME08-nonfinite-clock|1|PASS| -|FRAME09-clock-goes-backward|1|PASS| -|FRAME10-deadline-overflow|1|PASS| -|FRAME11-deadline-does-not-advance|1|PASS| -|FRAME12-task-cancelled|1|PASS| diff --git a/tests/archive/part9/tests/check-build.py b/tests/archive/part9/tests/check-build.py deleted file mode 100644 index dd19ea72..00000000 --- a/tests/archive/part9/tests/check-build.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env python3 -import argparse,pathlib,json,subprocess,time,hashlib,platform -p=argparse.ArgumentParser();p.add_argument('--repo',required=True,type=pathlib.Path);a=p.parse_args();r=a.repo/'prototype';here=pathlib.Path(__file__).resolve().parent.parent;out=here/'validation';records=[] -def run(cmd): - st=time.monotonic();v=subprocess.run(list(map(str,cmd)),capture_output=True,text=True,timeout=80) - records.append(dict(argv=list(map(str,cmd)),exit_code=v.returncode,stdout=v.stdout,stderr=v.stderr,seconds=time.monotonic()-st));(out/'build-commands.json').write_text(json.dumps(records,indent=2,ensure_ascii=False)+'\n');print(v.stdout,end='');print(v.stderr,end='') - if v.returncode:raise SystemExit(v.returncode) -core='Contracts WireJSON UsageReading WS2FocusWindowOwnership WS2DeviceInputGate PairingAttemptWindow PairingTLV CodexWire WS2CompanionFrame WS2ApprovalReview FocusTimer GamepadMapping WS2BoundedOutbox WS2FocusEffectPlan WS2SemanticInputRouter WS2DiagnosticTail WS2OwnedScope WS2SelectionModel WS2ConnectionBudget WS2StrictJSON WS2OwnedProtocolHost WS2QuitBarrier AgentSessions WS2DeviceActionContracts WS2VisibleListInput WS2FoldEvidence FoldVerifier WS2FoldCallbackStamp'.split() -support='WS2PeerRepository WS2PureSRP WS2PairSetupServer WS2PairSetupCrypto WS2FocusEffectExecutor WS2DuplexProcess WS2ProjectDirectory WS2LocalLaunchProfile WS2VersionProbe'.split() -# 本仓库把共享仲裁放在 Core/(v9 候选里在 App/)。 -app_files=['FocusTimerHost','WS2OwnedCodexSession','WS2OwnedLaunchController','WS2DeviceActionHost'] -coord=r/'Core/InteractionCoordinator.swift' if (r/'Core/InteractionCoordinator.swift').exists() else r/'App/InteractionCoordinator.swift' -inputs=[r/'Core'/(s+'.swift') for s in core]+[r/'Support'/(s+'.swift') for s in support]+[coord]+[r/'App'/(s+'.swift') for s in app_files] -inputs.append(r/'Effects/EffectFrameAwaiter.swift') -for cmd in [['swiftc','--version'],['cc','--version'],['uname','-a'],['bash','-n',r/'build.sh']]:run(cmd) -run(['swiftc','-swift-version','6','-strict-concurrency=complete','-warnings-as-errors','-I',r/'Native','-typecheck',*inputs]) -base=json.loads((here/'base-files.json').read_text());changed=[f for f in sorted(r.rglob('*.swift')) if hashlib.sha256(f.read_bytes()).hexdigest()!=base.get(str(f.relative_to(a.repo)))] -for f in changed:run(['swiftc','-frontend','-parse',f]) -(out/'build-boundary.json').write_text(json.dumps(dict(foundation_count=len(inputs),foundation_sources=[str(p.relative_to(a.repo)) for p in inputs],syntax_only_count=len(changed),syntax_only_sources=[str(p.relative_to(a.repo)) for p in changed],mac_sdk='NOT RUN',environment=platform.platform()),indent=2)+'\n') -print('Foundation:',len(inputs),'Parse only:',len(changed),'Mac SDK: NOT RUN') diff --git a/tests/archive/part9/tests/check-wiring.py b/tests/archive/part9/tests/check-wiring.py deleted file mode 100644 index 496b69fa..00000000 --- a/tests/archive/part9/tests/check-wiring.py +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env python3 -"""Source-level regression guards; no assertion here proves an AX or AppKit behavior.""" -import argparse,pathlib,json -p=argparse.ArgumentParser();p.add_argument('--repo',required=True,type=pathlib.Path);a=p.parse_args();r=a.repo/'prototype';here=pathlib.Path(__file__).resolve().parent.parent;items=[] -def text(path):return (r/path).read_text() -def ck(name,condition):items.append(dict(name=name,passed=bool(condition),level='source-level only')) -f=text('App/FoldTransaction.swift');v=f.split('func scheduleFoldVerification',1)[1].split('func revealOverlayAfterVerification',1)[0] -g=text('App/WS2FoldCallbackGuard.swift');c=text('App/FoldCompletion.swift');s=text('App/ShadeController.swift');re=text('App/Reconcile.swift');ax=text('Window/AXHelpers.swift') -ck('production uses three-state verification','observation:' in v and 'result:' in v) -ck('no screen-absence quick success','quickObserve:' not in v and 'quickObservation:' not in v) -ck('no cross-strategy rescue','state.hide == .minimized' in v and 'shaded[id]?.hide = .minimized' not in v) -ck('unknown keeps original recovery entry','retainUnconfirmedFold' in v and 'clearShadeJournal' not in g) -ck('shared strict Boolean decoding','ws2ObservedBoolean(raw)' in g and 'axObservedBoolAttribute' in re) -ck('old id-only success method removed','func settleFoldWaiters(id: CGWindowID, success:' not in c) -ck('batch drained before queued callbacks',c.index('foldWaiters[id] = waiting.isEmpty') < c.index('DispatchQueue.main.async { [weak self]')) -ck('queued result is revalidated','owner.foldCallbackIsCurrent(stamp)' in c) -ck('callback refcon is registration not window ID','receiveFoldAXNotification(routeID:' in ax and 'CGWindowID(Int(bitPattern:' not in ax) -ck('callback main runloop premise is guarded','Thread.isMainThread' in ax and 'CFRunLoopAddSource(CFRunLoopGetMain()' in f) -ck('observer registration never wraps','foldObserverSerial < UInt(Int.max)' in f and 'foldObserverRoutes[serial] = route' in f) -ck('destroyed event requires fresh absence','windows.isEmpty, foldCallbackIsCurrent(expected)' in f) -ck('shown event requires current unhidden app','!app.isTerminated, !app.isHidden' in f) -ck('snapshot carries transaction/context','ReconcileAXSnapshot(stamp: target.stamp' in re and 'foldCallbackIsCurrent(snapshot.stamp)' in re) -ck('no shared mutable snapshot accumulator','snapshots.append(contentsOf:' not in re and 'group.wait()' not in re) -ck('independent app batch identity checked','self.reconcileBatchID == batch' in re and 'self.reconcilePendingApplications -= 1' in re) -ck('onscreen membership not sampled before async batch',re.index('let onScreenIDs = currentOnScreenWindowIDs()') > re.index('func applyReconcileAXSnapshots')) -ck('ordinary source write has admission check','finalPID != pid || windowID(of: win) != id || !admissionCurrent()' in s) -ck('unreachable appearance modes removed','interactiveNative' not in s and 'classicSemantic' not in s) -ck('proxy path binds request tokens',s.count('bindFoldWaiters(id: id, tokens: completionTokens, transaction:') == 1) -ck('frame helper inherits caller isolation','isolated (any Actor)? = #isolation' in text('Effects/EffectFrameAwaiter.swift')) -ck('no new unchecked Sendable in changed helpers',all('@unchecked Sendable' not in x for x in [g,c,text('Core/WS2FoldCallbackStamp.swift'),text('Effects/EffectFrameAwaiter.swift')])) -ck('read-only entry still refuses elevation','WS2ReadOnlyProtocolHost' in text('App/WS2OwnedCodexSession.swift')) -ck('old timer window executor still unavailable unless actually connected','focusWindowEffects' in text('App/WS2AppRuntime.swift')) -report={'checks':items,'checks_count':len(items),'failures':sum(not i['passed'] for i in items),'sdk_executed':False,'hardware_executed':False} -(here/'validation/wiring-static.json').write_text(json.dumps(report,ensure_ascii=False,indent=2)+'\n') -for i in items:print('PASS' if i['passed'] else 'FAIL',i['name']) -raise SystemExit(bool(report['failures'])) diff --git a/tests/archive/part9/tests/reproduce-v8.py b/tests/archive/part9/tests/reproduce-v8.py deleted file mode 100644 index 66ff7fd4..00000000 --- a/tests/archive/part9/tests/reproduce-v8.py +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env python3 -"""Reproduce two defects in the v8 production completion methods, not in AppKit.""" -import argparse,pathlib,tempfile,subprocess,hashlib,json,time,sys -p=argparse.ArgumentParser();p.add_argument('--base',required=True,type=pathlib.Path);a=p.parse_args() -here=pathlib.Path(__file__).resolve().parent.parent;out=here/'validation';source=a.base/'prototype/App/FoldCompletion.swift' -original=source.read_text();records=[] -assert original.startswith('import Cocoa\n') -fixture='''import Foundation -typealias CGWindowID = UInt32 -@MainActor final class AppDelegate { var foldWaiters: [CGWindowID:[UUID:(Bool)->Void]] = [:] } -@main enum Repro { - @MainActor static func main() { - let one=AppDelegate(); var a:[Bool]=[],b:[Bool]=[] - _=one.registerFoldWaiter(id:77){a.append($0)} - _=one.registerFoldWaiter(id:77){b.append($0)} - one.settleFoldWaiters(id:77,success:true) - let replacementWasAcknowledged = b == [true] - let two=AppDelegate();var second:[Bool]=[];var secondToken:UUID? - let first=two.registerFoldWaiter(id:99){_ in two.settleFoldWaiter(id:99,token:secondToken!,success:false)} - secondToken=two.registerFoldWaiter(id:99){second.append($0)} - two.settleFoldWaiters(id:99,tokens:[first,secondToken!],success:true) - let batchWasReentered = second == [false] - print("BASELINE_REPLACEMENT_ACK=\\(replacementWasAcknowledged)") - print("BASELINE_SUCCESS_BATCH_REENTERED=\\(batchWasReentered)") - if !replacementWasAcknowledged || !batchWasReentered {exit(1)} - } -} -''' -with tempfile.TemporaryDirectory(prefix='ws2-baseline-repro-') as td: - d=pathlib.Path(td);src=d/'Completion.swift';main=d/'Repro.swift';src.write_text(original.replace('import Cocoa\n','import Foundation\n',1));main.write_text(fixture) - for cmd in [['swiftc','-swift-version','6','-strict-concurrency=complete','-warnings-as-errors',src,main,'-o',d/'repro'],[d/'repro']]: - st=time.monotonic();v=subprocess.run(list(map(str,cmd)),capture_output=True,text=True,timeout=40) - records.append(dict(argv=list(map(str,cmd)),exit_code=v.returncode,stdout=v.stdout,stderr=v.stderr,seconds=time.monotonic()-st));print(v.stdout,end='');print(v.stderr,end='') - if v.returncode:break -report={'source_sha256':hashlib.sha256(source.read_bytes()).hexdigest(),'only_source_change':'import Cocoa replaced with import Foundation to compile field-only host','commands':records,'baseline_defects_reproduced':records[-1]['exit_code']==0 and len(records)==2,'mac_ui_executed':False,'meaning':'Two reproduced bookkeeping defects, not two fixed tests or a live window reproduction'} -(out/'baseline-reproduction.json').write_text(json.dumps(report,ensure_ascii=False,indent=2)+'\n') -raise SystemExit(records[-1]['exit_code']) diff --git a/tests/archive/part9/tests/run-mac-check.sh b/tests/archive/part9/tests/run-mac-check.sh deleted file mode 100644 index e77a061f..00000000 --- a/tests/archive/part9/tests/run-mac-check.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -# Isolated optimized compile/link only: no app launch, install, signing or publish. -set -euo pipefail -if [[ "$(uname -s)" != "Darwin" ]]; then - echo "NOT RUN: requires macOS SDK and Metal tools"; exit 78 -fi -BASE="${1:?Supply v9 candidate repo}" -BASE="$(cd "$BASE" && pwd)" -command -v xcrun >/dev/null -xcrun --find swiftc >/dev/null -xcrun --find metal >/dev/null -BUILD="$(mktemp -d)"; trap 'rm -rf "$BUILD"' EXIT -mkdir "$BUILD/repo" -# Do not source the user's signing environment or copy build outputs into this check. -rsync -a --exclude=.git --exclude=.build --exclude='*.app' --exclude=local-codesign.env "$BASE/" "$BUILD/repo/" -cd "$BUILD/repo/prototype" -echo "Isolated SDK check of $BASE; local-codesign.env excluded" -bash ./build.sh --check diff --git a/tests/archive/part9/tests/run-previous.py b/tests/archive/part9/tests/run-previous.py deleted file mode 100644 index 68de445f..00000000 --- a/tests/archive/part9/tests/run-previous.py +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env python3 -"""Run immutable previous tests from disposable copies; never overwrite historical reports.""" -import argparse,pathlib,shutil,subprocess,tempfile,time,json,sys -p=argparse.ArgumentParser();p.add_argument('--repo',required=True,type=pathlib.Path);p.add_argument('--history',required=True,type=pathlib.Path);p.add_argument('--suite',required=True,choices=['part8-input','part8-fold','part8-flow','part8-static','part7-core','part7-native','part7-flow','duo','legacy-foundation','legacy-process']);a=p.parse_args() -here=pathlib.Path(__file__).resolve().parent.parent;out=here/'validation/regressions'/a.suite;out.mkdir(parents=True,exist_ok=True);records=[] -def run(cmd,timeout=150): - st=time.monotonic();v=subprocess.run(list(map(str,cmd)),capture_output=True,text=True,timeout=timeout) - records.append(dict(argv=list(map(str,cmd)),exit_code=v.returncode,stdout=v.stdout,stderr=v.stderr,seconds=time.monotonic()-st));(out/'commands.json').write_text(json.dumps(records,ensure_ascii=False,indent=2)+'\n');print(v.stdout,end='');print(v.stderr,end='',file=sys.stderr);return v.returncode -with tempfile.TemporaryDirectory(prefix='ws2-r9-regression-') as td: - tmp=pathlib.Path(td) - if a.suite.startswith(('part8-','part7-')): - part,suite=a.suite.split('-');source=a.history/part;copy=tmp/part;copy.mkdir() - for d in ['tests','fixtures','sources']: - if (source/d).exists():shutil.copytree(source/d,copy/d) - (copy/'validation').mkdir() - script=copy/'tests'/('check-wiring.py' if suite=='static' else 'run.py') - cmd=[sys.executable,script,'--repo',a.repo] - if suite!='static':cmd+=['--suite',suite] - rc=run(cmd) - for f in (copy/'validation').rglob('*'): - if f.is_file():shutil.copy2(f,out/f.name) - elif a.suite=='duo': - root=a.repo/'prototype';binary=tmp/'duo-tests' - files=['Core/FlickMotion.swift','Effects/FoldDriver.swift','Effects/EffectFrameAwaiter.swift','Effects/LatestEffectFrame.swift','Effects/RestoreVerifier.swift','Core/FoldVerifier.swift','Core/MotionTilt.swift','Core/TitlebarTripleClickIntent.swift','Recovery/DurableShadeJournal.swift'] - rc=run(['swiftc','-swift-version','6','-strict-concurrency=complete','-warnings-as-errors',*[root/f for f in files],a.repo/'tests/DuoCoreTests.swift','-o',binary]) - if not rc:rc=run([binary]) - if not rc:rc=run([sys.executable,a.repo/'tests/duo-integration-check.py']) - else: - # 本仓库把历史回归脚本保留在 tests/part7/(已带 Core/ 仲裁路径适配); - # --history 指向含 part1..part6 原始测试的归档目录。 - legacy=pathlib.Path(__file__).resolve().parents[2]/'part7/tests/regressions.py' - if not legacy.exists():legacy=a.history/'part7/tests/regressions.py' - rc=run([sys.executable,legacy,'--repo',a.repo,'--history',a.history,'--batch',a.suite.split('-')[1],'--report-dir',out]) - (out/'suite.json').write_text(json.dumps(dict(suite=a.suite,exit_code=rc,original_swift_test_sources_modified=False,source_text_guard_updated=(a.suite=='duo'),real_mac_hardware=False),indent=2)+'\n') - raise SystemExit(rc) diff --git a/tests/archive/part9/tests/run.py b/tests/archive/part9/tests/run.py deleted file mode 100644 index 39dd6dc4..00000000 --- a/tests/archive/part9/tests/run.py +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env python3 -import argparse, pathlib, subprocess, tempfile, time, json, sys -p=argparse.ArgumentParser();p.add_argument('--repo',required=True,type=pathlib.Path);p.add_argument('--suite',choices=['regression','frame'],default='regression');a=p.parse_args() -here=pathlib.Path(__file__).resolve().parent.parent;report=here/'validation';report.mkdir(exist_ok=True) -records=[] -def run(cmd): - start=time.monotonic();r=subprocess.run([str(x) for x in cmd],capture_output=True,text=True,timeout=90) - records.append({'argv':[str(x) for x in cmd],'exit_code':r.returncode,'seconds':time.monotonic()-start,'stdout':r.stdout,'stderr':r.stderr}) - (report/(a.suite+'-commands.json')).write_text(json.dumps(records,indent=2,ensure_ascii=False)+'\n') - print(r.stdout,end='');print(r.stderr,end='',file=sys.stderr) - if r.returncode:raise SystemExit(r.returncode) -with tempfile.TemporaryDirectory(prefix='ws2-r9-') as td: - binary=pathlib.Path(td)/'tests';root=a.repo/'prototype' - inputs=[root/'Core/FoldVerifier.swift',root/'Core/WS2FoldCallbackStamp.swift',root/'App/FoldCompletion.swift',here/'tests/RegressionTests.swift'] if a.suite=='regression' else [root/'Effects/EffectFrameAwaiter.swift',here/'tests/FrameTests.swift'] - run(['swiftc','-swift-version','6','-strict-concurrency=complete','-warnings-as-errors',*inputs,'-o',binary]) - run([binary,report/(a.suite+'-results.json')]) diff --git a/tests/archive/part9/tests/test-tools.py b/tests/archive/part9/tests/test-tools.py deleted file mode 100644 index eed00f93..00000000 --- a/tests/archive/part9/tests/test-tools.py +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/env python3 -"""Filesystem refusal tests on tiny fixtures; not product runtime tests.""" -import importlib.util,json,pathlib,tempfile,unittest,hashlib,os -P=pathlib.Path(__file__).resolve().parent.parent -s=importlib.util.spec_from_file_location('stage',P/'tools/stage.py');m=importlib.util.module_from_spec(s);s.loader.exec_module(m) -class Tests(unittest.TestCase): - def setUp(self): - self.t=tempfile.TemporaryDirectory();self.root=pathlib.Path(self.t.name);self.p=self.root/'pack';self.b=self.root/'base';self.o=self.root/'out' - (self.p/'sources').mkdir(parents=True);(self.p/'overlay').mkdir();self.b.mkdir();(self.b/'x').write_text('old');(self.p/'overlay/x').write_text('new');(self.p/'overlay/y').write_text('added') - self.base={'x':m.digest(self.b/'x')};self.man={'changes':[dict(path='x',operation='replace',base_sha256=self.base['x'],sha256=m.digest(self.p/'overlay/x')),dict(path='y',operation='add',base_sha256=None,sha256=m.digest(self.p/'overlay/y'))],'result_file_count':2} - (self.p/'sources/base-files.json').write_text(json.dumps(self.base));self.save() - def tearDown(self):self.t.cleanup() - def save(self):(self.p/'manifest.json').write_text(json.dumps(self.man)) - def apply(self):return m.apply(self.p,self.b,self.o) - def refuses(self): - with self.assertRaises((m.StageError,FileExistsError)):self.apply() - self.assertFalse(self.o.exists()) - def test_success_and_original(self): - r=self.apply();self.assertEqual(r['result_file_count'],2);self.assertEqual((self.o/'x').read_text(),'new');self.assertEqual((self.b/'x').read_text(),'old') - def test_existing_directory(self): - self.o.mkdir();(self.o/'keep').write_text('keep') - with self.assertRaises(m.StageError):self.apply() - self.assertEqual((self.o/'keep').read_text(),'keep') - def test_existing_file(self): - self.o.write_text('keep') - with self.assertRaises(m.StageError):self.apply() - self.assertEqual(self.o.read_text(),'keep') - def test_wrong_base(self):(self.b/'x').write_text('changed');self.refuses() - def test_missing_base(self):(self.b/'x').unlink();self.refuses() - def test_extra_base(self):(self.b/'extra').write_text('new');self.refuses() - def test_bad_overlay(self):(self.p/'overlay/y').write_text('corrupt');self.refuses() - def test_missing_overlay(self):(self.p/'overlay/y').unlink();self.refuses() - def test_extra_overlay(self):(self.p/'overlay/z').write_text('unlisted');self.refuses() - def test_base_symlink(self):(self.b/'link').symlink_to(self.b/'x');self.refuses() - def test_overlay_symlink(self):(self.p/'overlay/x').unlink();(self.p/'overlay/x').symlink_to(self.b/'x');self.refuses() - def test_nested_output(self): - self.o=self.b/'out';self.refuses() - def test_package_output(self): - self.o=self.p/'out';self.refuses() - def test_traversal(self):self.man['changes'][0]['path']='../escape';self.save();self.refuses() - def test_duplicate_manifest_path(self):self.man['changes'].append(self.man['changes'][0]);self.save();self.refuses() - def test_wrong_base_sha(self):self.man['changes'][0]['base_sha256']='0'*64;self.save();self.refuses() - def test_wrong_count(self):self.man['result_file_count']=999;self.save();self.refuses() - def test_symlink_parent(self): - link=self.root/'link';link.symlink_to(self.root,target_is_directory=True);self.o=link/'nested';self.refuses() -class Recorded(unittest.TextTestResult): - def __init__(self,*a,**kw):super().__init__(*a,**kw);self.records=[] - def addSuccess(self,test):super().addSuccess(test);self.records.append({'name':test.id(),'result':'PASS'}) - def addFailure(self,test,err):super().addFailure(test,err);self.records.append({'name':test.id(),'result':'FAIL'}) - def addError(self,test,err):super().addError(test,err);self.records.append({'name':test.id(),'result':'ERROR'}) -if __name__=='__main__': - result=unittest.TextTestRunner(verbosity=2,resultclass=Recorded).run(unittest.defaultTestLoader.loadTestsFromTestCase(Tests)) - (P/'validation/tools-tests.json').write_text(json.dumps(dict(tests_run=result.testsRun,failures=len(result.failures),errors=len(result.errors),cases=result.records),indent=2)+'\n') - raise SystemExit(0 if result.wasSuccessful() else 1) diff --git a/tests/archive/part9/tools/stage.py b/tests/archive/part9/tools/stage.py deleted file mode 100644 index bb91dc60..00000000 --- a/tests/archive/part9/tools/stage.py +++ /dev/null @@ -1,120 +0,0 @@ -#!/usr/bin/env python3 -"""Apply the part9 overlay only to an exact clean v8 candidate. Never edits the input.""" -from __future__ import annotations -import argparse, hashlib, json, os, pathlib, shutil, sys - -class StageError(ValueError): - pass - -def digest(path: pathlib.Path) -> str: - return hashlib.sha256(path.read_bytes()).hexdigest() - -def relative(value: str) -> pathlib.PurePosixPath: - if not isinstance(value, str) or not value or '\\' in value or '\x00' in value: - raise StageError('invalid relative path') - p = pathlib.PurePosixPath(value) - if p.is_absolute() or '..' in p.parts or '.' in p.parts or str(p) != value: - raise StageError('non-canonical relative path: ' + value) - return p - -def reject_symlink_chain(path: pathlib.Path) -> None: - # macOS 的 /var、/tmp、/etc 是 Apple 自己的根级符号链接(Linux 上是真目录); - # 先按系统事实规范化这三个前缀,其余任何一段是符号链接仍然拒绝。 - resolved = str(path) - for link, target in (('/var', '/private/var'), ('/tmp', '/private/tmp'), ('/etc', '/private/etc')): - if resolved == link or resolved.startswith(link + '/'): - resolved = target + resolved[len(link):] - break - for item in [pathlib.Path(resolved), *pathlib.Path(resolved).parents]: - if item.is_symlink(): - raise StageError('symlink in input/output path: ' + str(item)) - -def inventory(root: pathlib.Path) -> dict[str, str]: - reject_symlink_chain(root) - if not root.is_dir(): - raise StageError('not a directory: ' + str(root)) - output = {} - for current, dirs, files in os.walk(root, followlinks=False): - for name in dirs + files: - p = pathlib.Path(current) / name - if p.is_symlink(): - raise StageError('symlink is not admitted: ' + str(p)) - for name in files: - p = pathlib.Path(current) / name - if not p.is_file(): - raise StageError('non-regular input: ' + str(p)) - output[p.relative_to(root).as_posix()] = digest(p) - return output - -def apply(package: pathlib.Path, base: pathlib.Path, out: pathlib.Path) -> dict: - for path in (package, base, out): - reject_symlink_chain(path.absolute()) - # 全用 resolve():macOS 上 /var 是符号链接,混用 absolute() 会让“输出在输入内”的比较失配。 - package, base, out = package.resolve(), base.resolve(), out.resolve() - if out.exists() or out.is_symlink(): - raise StageError('output already exists') - if not out.parent.is_dir(): - raise StageError('output parent must already exist') - for source in (base, package): - if out == source or source in out.parents or out in source.parents: - raise StageError('output overlaps input') - manifest = json.loads((package / 'manifest.json').read_text()) - expected = json.loads((package / 'sources/base-files.json').read_text()) - for key in expected: - relative(key) - if inventory(base) != expected: - raise StageError('base file set or SHA256 differs from v8') - changes = manifest['changes'] - keys = [entry['path'] for entry in changes] - if len(keys) != len(set(keys)): - raise StageError('duplicate change path') - final = dict(expected) - for entry in changes: - path = relative(entry['path']).as_posix() - if entry.get('base_sha256') != expected.get(path): - raise StageError('incorrect per-file base hash: ' + path) - if entry['operation'] not in ('add', 'replace') or (entry['operation'] == 'add') != (path not in expected): - raise StageError('incorrect change operation: ' + path) - source = package / 'overlay' / path - reject_symlink_chain(source) - if not source.is_file() or digest(source) != entry['sha256']: - raise StageError('overlay missing or hash differs: ' + path) - final[path] = entry['sha256'] - if inventory(package / 'overlay') != {x['path']: x['sha256'] for x in changes}: - raise StageError('overlay has unlisted or missing files') - if len(final) != manifest['result_file_count']: - raise StageError('incorrect result count') - # mkdir is an atomic refusal when another caller has already created this output. - # This is a local staging tool, not a sandbox against hostile same-UID file replacement. - out.mkdir(mode=0o700) - try: - shutil.copytree(base, out, dirs_exist_ok=True, copy_function=shutil.copy2) - for entry in changes: - destination = out / entry['path'] - destination.parent.mkdir(parents=True, exist_ok=True) - shutil.copy2(package / 'overlay' / entry['path'], destination) - if inventory(out) != final or inventory(base) != expected: - raise StageError('post-copy integrity check failed') - except Exception: - shutil.rmtree(out) - raise - return {'status': 'STAGED', 'base_file_count': len(expected), 'result_file_count': len(final), - 'replaced': sum(x['operation'] == 'replace' for x in changes), - 'added': sum(x['operation'] == 'add' for x in changes), 'out': str(out), - 'application_build': 'NOT RUN', 'runtime': 'NOT RUN'} - -def main() -> int: - p = argparse.ArgumentParser(description=__doc__) - p.add_argument('--base', required=True, type=pathlib.Path) - p.add_argument('--out', required=True, type=pathlib.Path) - p.add_argument('--package', type=pathlib.Path, default=pathlib.Path(__file__).resolve().parent.parent) - args = p.parse_args() - try: - result = apply(args.package, args.base, args.out) - except (StageError, OSError, ValueError, KeyError, TypeError) as e: - print('REFUSED: ' + str(e), file=sys.stderr) - return 2 - print(json.dumps(result, ensure_ascii=False, indent=2)) - return 0 -if __name__ == '__main__': - raise SystemExit(main()) diff --git a/tests/archive/part9/tools/verify-package.py b/tests/archive/part9/tools/verify-package.py deleted file mode 100644 index cc94d591..00000000 --- a/tests/archive/part9/tools/verify-package.py +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/env python3 -"""Verify the generated ZIP's paths, CRC and SHA256 tree without extracting it. - -This checks integrity against the enclosed manifest, not publisher authenticity. -""" -from __future__ import annotations -import argparse, hashlib, json, pathlib, stat, sys, zipfile - -def verify(path: pathlib.Path) -> dict: - with zipfile.ZipFile(path) as z: - infos=z.infolist() - if len(infos)>50000 or sum(i.file_size for i in infos)>512*1024*1024: - raise ValueError('archive exceeds verification budget') - names=set(); roots=set(); members={} - for i in infos: - p=pathlib.PurePosixPath(i.filename) - if '\\' in i.filename or '\x00' in i.filename or p.is_absolute() or '..' in p.parts: - raise ValueError('unsafe archive path') - if i.filename in names: raise ValueError('duplicate archive entry') - names.add(i.filename) - if stat.S_ISLNK(i.external_attr >> 16): raise ValueError('symlink entry') - if not p.parts or p.as_posix()!=i.filename.rstrip('/'): - raise ValueError('non-canonical archive path') - roots.add(p.parts[0]) - if not i.is_dir(): - if len(p.parts)<2 or i.file_size>128*1024*1024: raise ValueError('invalid member') - members[pathlib.PurePosixPath(*p.parts[1:]).as_posix()]=i - if len(roots)!=1: raise ValueError('expected one package root') - mi=members.get('MANIFEST.sha256.json') - if mi is None or mi.file_size>16*1024*1024: raise ValueError('manifest missing or oversized') - manifest=json.loads(z.read(mi)) - if manifest.get('format')!='sha256-tree-v1' or not isinstance(manifest.get('files'),dict): - raise ValueError('unsupported manifest') - expected=manifest['files'] - if set(expected)!=(set(members)-{'MANIFEST.sha256.json'}): - raise ValueError('manifest file set differs') - bad=z.testzip() - if bad: raise ValueError('CRC failure: '+bad) - for name,want in expected.items(): - digest=hashlib.sha256() - with z.open(members[name]) as f: - for chunk in iter(lambda:f.read(1024*1024),b''): digest.update(chunk) - if digest.hexdigest()!=want: raise ValueError('SHA256 differs: '+name) - return {'archive':path.name,'status':'VERIFIED','files_including_manifest':len(members), - 'manifest_members_verified':len(expected),'crc':'PASS', - 'archive_sha256':hashlib.sha256(path.read_bytes()).hexdigest(), - 'authenticity_or_application_test':False} - -def main()->int: - p=argparse.ArgumentParser(description=__doc__);p.add_argument('archive',type=pathlib.Path);a=p.parse_args() - try: result=verify(a.archive) - except (OSError,ValueError,KeyError,TypeError,zipfile.BadZipFile) as e: - print('REFUSED: '+str(e),file=sys.stderr);return 2 - print(json.dumps(result,ensure_ascii=False,indent=2));return 0 -if __name__=='__main__':raise SystemExit(main()) diff --git a/tests/archive/part9/validation/artifact-tree-check.json b/tests/archive/part9/validation/artifact-tree-check.json deleted file mode 100644 index 3b5216e8..00000000 --- a/tests/archive/part9/validation/artifact-tree-check.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "code_map_files_checked": 26, - "candidate_files": 1168, - "exact_overlay_files": 15, - "no_font_or_bytecode_files": true, - "no_connector_secret_url": true, - "source_build_runtime_distinguished": true, - "candidate_mac_build": "NOT RUN", - "stamp_is_restore_authorization": false -} diff --git a/tests/archive/part9/validation/baseline-reproduction.json b/tests/archive/part9/validation/baseline-reproduction.json deleted file mode 100644 index 73f948f9..00000000 --- a/tests/archive/part9/validation/baseline-reproduction.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "source_sha256": "1147a93b8ab37828e0dd4be225e879ea3a4636283aaa5d7202369b926ec850f5", - "only_source_change": "import Cocoa replaced with import Foundation to compile field-only host", - "commands": [ - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/tmp/ws2-baseline-repro-am653tli/Completion.swift", - "/tmp/ws2-baseline-repro-am653tli/Repro.swift", - "-o", - "/tmp/ws2-baseline-repro-am653tli/repro" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.3762506780001331 - }, - { - "argv": [ - "/tmp/ws2-baseline-repro-am653tli/repro" - ], - "exit_code": 0, - "stdout": "BASELINE_REPLACEMENT_ACK=true\nBASELINE_SUCCESS_BATCH_REENTERED=true\n", - "stderr": "", - "seconds": 0.007368192000058116 - } - ], - "baseline_defects_reproduced": true, - "mac_ui_executed": false, - "meaning": "Two reproduced bookkeeping defects, not two fixed tests or a live window reproduction" -} diff --git a/tests/archive/part9/validation/build-boundary.json b/tests/archive/part9/validation/build-boundary.json deleted file mode 100644 index 91a69151..00000000 --- a/tests/archive/part9/validation/build-boundary.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "foundation_count": 40, - "foundation_sources": [ - "prototype/Core/Contracts.swift", - "prototype/Core/WS2FocusWindowOwnership.swift", - "prototype/Core/WS2DeviceInputGate.swift", - "prototype/Core/PairingAttemptWindow.swift", - "prototype/Core/PairingTLV.swift", - "prototype/Core/CodexWire.swift", - "prototype/Core/WS2CompanionFrame.swift", - "prototype/Core/WS2ApprovalReview.swift", - "prototype/Core/FocusTimer.swift", - "prototype/Core/GamepadMapping.swift", - "prototype/Core/WS2BoundedOutbox.swift", - "prototype/Core/WS2FocusEffectPlan.swift", - "prototype/Core/WS2SemanticInputRouter.swift", - "prototype/Core/WS2DiagnosticTail.swift", - "prototype/Core/WS2OwnedScope.swift", - "prototype/Core/WS2SelectionModel.swift", - "prototype/Core/WS2ConnectionBudget.swift", - "prototype/Core/WS2StrictJSON.swift", - "prototype/Core/WS2OwnedProtocolHost.swift", - "prototype/Core/WS2QuitBarrier.swift", - "prototype/Core/AgentSessions.swift", - "prototype/Core/WS2DeviceActionContracts.swift", - "prototype/Core/WS2VisibleListInput.swift", - "prototype/Core/WS2FoldEvidence.swift", - "prototype/Core/FoldVerifier.swift", - "prototype/Core/WS2FoldCallbackStamp.swift", - "prototype/Support/WS2PeerRepository.swift", - "prototype/Support/WS2PairSetupServer.swift", - "prototype/Support/WS2PairSetupCrypto.swift", - "prototype/Support/WS2FocusEffectExecutor.swift", - "prototype/Support/WS2DuplexProcess.swift", - "prototype/Support/WS2ProjectDirectory.swift", - "prototype/Support/WS2LocalLaunchProfile.swift", - "prototype/Support/WS2VersionProbe.swift", - "prototype/Core/InteractionCoordinator.swift", - "prototype/App/FocusTimerHost.swift", - "prototype/App/WS2OwnedCodexSession.swift", - "prototype/App/WS2OwnedLaunchController.swift", - "prototype/App/WS2DeviceActionHost.swift", - "prototype/Effects/EffectFrameAwaiter.swift" - ], - "syntax_only_count": 43, - "syntax_only_sources": [ - "prototype/App/EventTap.swift", - "prototype/App/FoldCompletion.swift", - "prototype/App/FoldExit.swift", - "prototype/App/FoldTransaction.swift", - "prototype/App/LaunchpadActivities.swift", - "prototype/App/LaunchpadController.swift", - "prototype/App/Notch.swift", - "prototype/App/NotchActivityView.swift", - "prototype/App/NotchLeases.swift", - "prototype/App/Preferences.swift", - "prototype/App/Reconcile.swift", - "prototype/App/ShadeController.swift", - "prototype/App/Updater.swift", - "prototype/App/UpdaterSettings.swift", - "prototype/App/WS2AppRuntime.swift", - "prototype/App/WS2CodexApprovalHost.swift", - "prototype/App/WS2FocusSettings.swift", - "prototype/App/WS2FocusWindowPort.swift", - "prototype/App/WS2FoldCallbackGuard.swift", - "prototype/App/WS2FoldEvidenceAdapter.swift", - "prototype/App/WS2GameControllerBridge.swift", - "prototype/App/WS2OwnedCodexSession+Authorization.swift", - "prototype/App/WS2PrivacyData.swift", - "prototype/App/WS2PrivacyPane.swift", - "prototype/App/WS2SettingsInfo.swift", - "prototype/Core/CodexWire.swift", - "prototype/Core/FoldVerifier.swift", - "prototype/Core/InteractionCoordinator.swift", - "prototype/Core/PairingTLV.swift", - "prototype/Core/WS2FoldCallbackStamp.swift", - "prototype/Effects/DuoSettingsWindow.swift", - "prototype/Effects/EffectFrameAwaiter.swift", - "prototype/Effects/WindowFoldEffects.swift", - "prototype/Support/WS2AtomicConfiguration.swift", - "prototype/Support/WS2DuplexProcess.swift", - "prototype/Support/WS2KeychainPeerStorage.swift", - "prototype/Support/WS2LocalLaunchProfile.swift", - "prototype/Support/WS2ProcessChannel.swift", - "prototype/Support/WS2UnixSocket.swift", - "prototype/Window/AXHelpers.swift", - "prototype/Window/AXWindow.swift", - "prototype/WindowBrowser/WindowBrowserAppDelegate.swift", - "prototype/WindowShade.swift" - ], - "mac_sdk": "NOT RUN", - "environment": "macOS-27.0-arm64-arm-64bit-Mach-O" -} diff --git a/tests/archive/part9/validation/build-commands.json b/tests/archive/part9/validation/build-commands.json deleted file mode 100644 index b8bb3841..00000000 --- a/tests/archive/part9/validation/build-commands.json +++ /dev/null @@ -1,615 +0,0 @@ -[ - { - "argv": [ - "swiftc", - "--version" - ], - "exit_code": 0, - "stdout": "Apple Swift version 6.4 (swiftlang-6.4.0.34.1 clang-2100.3.34.1)\nTarget: arm64-apple-macosx27.0.0\n", - "stderr": "swift-driver version: 1.168.6 ", - "seconds": 0.3026627090002876 - }, - { - "argv": [ - "cc", - "--version" - ], - "exit_code": 0, - "stdout": "Apple clang version 21.0.0 (clang-2100.3.34.2)\nTarget: arm64-apple-darwin27.0.0\nThread model: posix\nInstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin\n", - "stderr": "", - "seconds": 0.033604291995288804 - }, - { - "argv": [ - "uname", - "-a" - ], - "exit_code": 0, - "stdout": "Darwin Aarons-MacBook-Air.local 27.0.0 Darwin Kernel Version 27.0.0: Tue Aug 11 21:02:59 PDT 2026; root:xnu-13432.1.9~1/RELEASE_ARM64_T8142 arm64\n", - "stderr": "", - "seconds": 0.010818750015459955 - }, - { - "argv": [ - "bash", - "-n", - "prototype/build.sh" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.010593416984193027 - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "prototype/Native", - "-typecheck", - "prototype/Core/Contracts.swift", - "prototype/Core/WS2FocusWindowOwnership.swift", - "prototype/Core/WS2DeviceInputGate.swift", - "prototype/Core/PairingAttemptWindow.swift", - "prototype/Core/PairingTLV.swift", - "prototype/Core/CodexWire.swift", - "prototype/Core/WS2CompanionFrame.swift", - "prototype/Core/WS2ApprovalReview.swift", - "prototype/Core/FocusTimer.swift", - "prototype/Core/GamepadMapping.swift", - "prototype/Core/WS2BoundedOutbox.swift", - "prototype/Core/WS2FocusEffectPlan.swift", - "prototype/Core/WS2SemanticInputRouter.swift", - "prototype/Core/WS2DiagnosticTail.swift", - "prototype/Core/WS2OwnedScope.swift", - "prototype/Core/WS2SelectionModel.swift", - "prototype/Core/WS2ConnectionBudget.swift", - "prototype/Core/WS2StrictJSON.swift", - "prototype/Core/WS2OwnedProtocolHost.swift", - "prototype/Core/WS2QuitBarrier.swift", - "prototype/Core/AgentSessions.swift", - "prototype/Core/WS2DeviceActionContracts.swift", - "prototype/Core/WS2VisibleListInput.swift", - "prototype/Core/WS2FoldEvidence.swift", - "prototype/Core/FoldVerifier.swift", - "prototype/Core/WS2FoldCallbackStamp.swift", - "prototype/Support/WS2PeerRepository.swift", - "prototype/Support/WS2PairSetupServer.swift", - "prototype/Support/WS2PairSetupCrypto.swift", - "prototype/Support/WS2FocusEffectExecutor.swift", - "prototype/Support/WS2DuplexProcess.swift", - "prototype/Support/WS2ProjectDirectory.swift", - "prototype/Support/WS2LocalLaunchProfile.swift", - "prototype/Support/WS2VersionProbe.swift", - "prototype/Core/InteractionCoordinator.swift", - "prototype/App/FocusTimerHost.swift", - "prototype/App/WS2OwnedCodexSession.swift", - "prototype/App/WS2OwnedLaunchController.swift", - "prototype/App/WS2DeviceActionHost.swift", - "prototype/Effects/EffectFrameAwaiter.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 16.10417529201368 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/EventTap.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.17764695797814056 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/FoldCompletion.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.15771550001227297 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/FoldExit.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.14125995800714009 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/FoldTransaction.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.12766212501446716 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/LaunchpadActivities.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.14305308301118203 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/LaunchpadController.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.14279625000199303 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/Notch.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.1413902080093976 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/NotchActivityView.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.1574182079930324 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/NotchLeases.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.17373037501238286 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/Preferences.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.19619404201512225 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/Reconcile.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.16985533299157396 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/ShadeController.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.18464791600126773 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/Updater.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.15297774999635294 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/UpdaterSettings.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.16748420801013708 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/WS2AppRuntime.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.20054712501587346 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/WS2CodexApprovalHost.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.15617970799212344 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/WS2FocusSettings.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.14388241700362414 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/WS2FocusWindowPort.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.1959055420011282 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/WS2FoldCallbackGuard.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.16067495799507014 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/WS2FoldEvidenceAdapter.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.1208465000090655 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/WS2GameControllerBridge.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.12038700000266545 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/WS2OwnedCodexSession+Authorization.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.11442724999506027 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/WS2PrivacyData.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.13206179201370105 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/WS2PrivacyPane.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.1962290419905912 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/App/WS2SettingsInfo.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.20395674998871982 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/Core/CodexWire.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.4785307909769472 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/Core/FoldVerifier.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.22145783400628716 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/Core/InteractionCoordinator.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.1419456250150688 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/Core/PairingTLV.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.12716649999492802 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/Core/WS2FoldCallbackStamp.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.12679033301537856 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/Effects/DuoSettingsWindow.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.13724358301260509 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/Effects/EffectFrameAwaiter.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.11715458400431089 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/Effects/WindowFoldEffects.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.1182465830061119 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/Support/WS2AtomicConfiguration.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.11303629202302545 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/Support/WS2DuplexProcess.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.12103754101553932 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/Support/WS2KeychainPeerStorage.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.1264769580157008 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/Support/WS2LocalLaunchProfile.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.10697595801320858 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/Support/WS2ProcessChannel.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.1401547080022283 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/Support/WS2UnixSocket.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.11464987500221469 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/Window/AXHelpers.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.12132333402405493 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/Window/AXWindow.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.11350379200302996 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/WindowBrowser/WindowBrowserAppDelegate.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.11004566701012664 - }, - { - "argv": [ - "swiftc", - "-frontend", - "-parse", - "prototype/WindowShade.swift" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 0.11278808300266974 - } -] diff --git a/tests/archive/part9/validation/development/duo-static-old-signature.json b/tests/archive/part9/validation/development/duo-static-old-signature.json deleted file mode 100644 index e57a339e..00000000 --- a/tests/archive/part9/validation/development/duo-static-old-signature.json +++ /dev/null @@ -1,45 +0,0 @@ -[ - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/prototype/Effects/FoldDriver.swift", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/prototype/Effects/EffectFrameAwaiter.swift", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/prototype/Effects/LatestEffectFrame.swift", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/prototype/Effects/RestoreVerifier.swift", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/prototype/Core/FoldVerifier.swift", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/prototype/Core/MotionTilt.swift", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/prototype/Core/TitlebarTripleClickIntent.swift", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/prototype/Recovery/DurableShadeJournal.swift", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/tests/DuoCoreTests.swift", - "-o", - "/tmp/ws2-r9-regression-e5jfb244/duo-tests" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 1.881887149000022 - }, - { - "argv": [ - "/tmp/ws2-r9-regression-e5jfb244/duo-tests" - ], - "exit_code": 0, - "stdout": "PASS: tilt filter matches the main-thread version bit for bit; sub-pixel hold is bounded\nPASS: angle endpoints, bounded spring, held position, duplicate/reverse transitions, report decoding, latest-only frames, stale producer isolation, injected restore clock, timeout/retry/cancellation, durable restart/write failure\n", - "stderr": "", - "seconds": 0.23734994000005827 - }, - { - "argv": [ - "/opt/pyvenv/bin/python3", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/tests/duo-integration-check.py" - ], - "exit_code": 1, - "stdout": "", - "stderr": "Traceback (most recent call last):\n File \"/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/tests/duo-integration-check.py\", line 12, in \n assert 'completeFold(success: true)' in native, 'Verified native collapse must complete explicitly'\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: Verified native collapse must complete explicitly\n", - "seconds": 0.5487517019998904 - } -] diff --git a/tests/archive/part9/validation/development/duo-swift6-original-isolation.json b/tests/archive/part9/validation/development/duo-swift6-original-isolation.json deleted file mode 100644 index 35fe9846..00000000 --- a/tests/archive/part9/validation/development/duo-swift6-original-isolation.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/prototype/Effects/FoldDriver.swift", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/prototype/Effects/EffectFrameAwaiter.swift", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/prototype/Effects/LatestEffectFrame.swift", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/prototype/Effects/RestoreVerifier.swift", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/prototype/Core/FoldVerifier.swift", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/prototype/Core/MotionTilt.swift", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/prototype/Core/TitlebarTripleClickIntent.swift", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/prototype/Recovery/DurableShadeJournal.swift", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/tests/DuoCoreTests.swift", - "-o", - "/tmp/ws2-r9-regression-g1sqcex4/duo-tests" - ], - "exit_code": 1, - "stdout": "", - "stderr": "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/tests/DuoCoreTests.swift:94:47: error: sending value of non-Sendable type '() -> Double' risks causing data races [#SendingRisksDataRace]\n 92 | precondition(slot.value == nil)\n 93 | var now=0.0, active=true, available:Int?\n 94 | let missing=await EffectFrameAwaiter.first(timeout:0.6,now:{now},isCurrent:{active},latest:{available},pause:{now += 0.01})\n | |- error: sending value of non-Sendable type '() -> Double' risks causing data races [#SendingRisksDataRace]\n | `- note: sending main actor-isolated value of non-Sendable type '() -> Double' to nonisolated static method 'first(timeout:now:isCurrent:latest:pause:)' risks causing races in between main actor-isolated and nonisolated uses\n 95 | precondition(missing==nil && now>=0.6)\n 96 | now=0\n\n/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/tests/DuoCoreTests.swift:94:47: error: sending value of non-Sendable type '() -> Bool' risks causing data races [#SendingRisksDataRace]\n 92 | precondition(slot.value == nil)\n 93 | var now=0.0, active=true, available:Int?\n 94 | let missing=await EffectFrameAwaiter.first(timeout:0.6,now:{now},isCurrent:{active},latest:{available},pause:{now += 0.01})\n | |- error: sending value of non-Sendable type '() -> Bool' risks causing data races [#SendingRisksDataRace]\n | `- note: sending main actor-isolated value of non-Sendable type '() -> Bool' to nonisolated static method 'first(timeout:now:isCurrent:latest:pause:)' risks causing races in between main actor-isolated and nonisolated uses\n 95 | precondition(missing==nil && now>=0.6)\n 96 | now=0\n\n/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/tests/DuoCoreTests.swift:94:47: error: sending value of non-Sendable type '() -> Int?' risks causing data races [#SendingRisksDataRace]\n 92 | precondition(slot.value == nil)\n 93 | var now=0.0, active=true, available:Int?\n 94 | let missing=await EffectFrameAwaiter.first(timeout:0.6,now:{now},isCurrent:{active},latest:{available},pause:{now += 0.01})\n | |- error: sending value of non-Sendable type '() -> Int?' risks causing data races [#SendingRisksDataRace]\n | `- note: sending main actor-isolated value of non-Sendable type '() -> Int?' to nonisolated static method 'first(timeout:now:isCurrent:latest:pause:)' risks causing races in between main actor-isolated and nonisolated uses\n 95 | precondition(missing==nil && now>=0.6)\n 96 | now=0\n\n/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/tests/DuoCoreTests.swift:94:47: error: sending value of non-Sendable type '() async -> ()' risks causing data races [#SendingRisksDataRace]\n 92 | precondition(slot.value == nil)\n 93 | var now=0.0, active=true, available:Int?\n 94 | let missing=await EffectFrameAwaiter.first(timeout:0.6,now:{now},isCurrent:{active},latest:{available},pause:{now += 0.01})\n | |- error: sending value of non-Sendable type '() async -> ()' risks causing data races [#SendingRisksDataRace]\n | `- note: sending main actor-isolated value of non-Sendable type '() async -> ()' to nonisolated static method 'first(timeout:now:isCurrent:latest:pause:)' risks causing races in between main actor-isolated and nonisolated uses\n 95 | precondition(missing==nil && now>=0.6)\n 96 | now=0\n\n/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/tests/DuoCoreTests.swift:97:45: error: sending value of non-Sendable type '() -> Double' risks causing data races [#SendingRisksDataRace]\n 95 | precondition(missing==nil && now>=0.6)\n 96 | now=0\n 97 | let ready=await EffectFrameAwaiter.first(timeout:0.6,now:{now},isCurrent:{active},latest:{available},pause:{now += 0.01;available=7})\n | |- error: sending value of non-Sendable type '() -> Double' risks causing data races [#SendingRisksDataRace]\n | `- note: sending main actor-isolated value of non-Sendable type '() -> Double' to nonisolated static method 'first(timeout:now:isCurrent:latest:pause:)' risks causing races in between main actor-isolated and nonisolated uses\n 98 | precondition(ready==7)\n 99 | now=0;available=nil\n\n/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/tests/DuoCoreTests.swift:97:45: error: sending value of non-Sendable type '() -> Bool' risks causing data races [#SendingRisksDataRace]\n 95 | precondition(missing==nil && now>=0.6)\n 96 | now=0\n 97 | let ready=await EffectFrameAwaiter.first(timeout:0.6,now:{now},isCurrent:{active},latest:{available},pause:{now += 0.01;available=7})\n | |- error: sending value of non-Sendable type '() -> Bool' risks causing data races [#SendingRisksDataRace]\n | `- note: sending main actor-isolated value of non-Sendable type '() -> Bool' to nonisolated static method 'first(timeout:now:isCurrent:latest:pause:)' risks causing races in between main actor-isolated and nonisolated uses\n 98 | precondition(ready==7)\n 99 | now=0;available=nil\n\n/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/tests/DuoCoreTests.swift:97:45: error: sending value of non-Sendable type '() -> Int?' risks causing data races [#SendingRisksDataRace]\n 95 | precondition(missing==nil && now>=0.6)\n 96 | now=0\n 97 | let ready=await EffectFrameAwaiter.first(timeout:0.6,now:{now},isCurrent:{active},latest:{available},pause:{now += 0.01;available=7})\n | |- error: sending value of non-Sendable type '() -> Int?' risks causing data races [#SendingRisksDataRace]\n | `- note: sending main actor-isolated value of non-Sendable type '() -> Int?' to nonisolated static method 'first(timeout:now:isCurrent:latest:pause:)' risks causing races in between main actor-isolated and nonisolated uses\n 98 | precondition(ready==7)\n 99 | now=0;available=nil\n\n/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/tests/DuoCoreTests.swift:97:45: error: sending value of non-Sendable type '() async -> Void' risks causing data races [#SendingRisksDataRace]\n 95 | precondition(missing==nil && now>=0.6)\n 96 | now=0\n 97 | let ready=await EffectFrameAwaiter.first(timeout:0.6,now:{now},isCurrent:{active},latest:{available},pause:{now += 0.01;available=7})\n | |- error: sending value of non-Sendable type '() async -> Void' risks causing data races [#SendingRisksDataRace]\n | `- note: sending main actor-isolated value of non-Sendable type '() async -> Void' to nonisolated static method 'first(timeout:now:isCurrent:latest:pause:)' risks causing races in between main actor-isolated and nonisolated uses\n 98 | precondition(ready==7)\n 99 | now=0;available=nil\n\n/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/tests/DuoCoreTests.swift:100:49: error: sending value of non-Sendable type '() -> Double' risks causing data races [#SendingRisksDataRace]\n 98 | precondition(ready==7)\n 99 | now=0;available=nil\n100 | let cancelled=await EffectFrameAwaiter.first(timeout:0.6,now:{now},isCurrent:{active},latest:{available},pause:{now += 0.01;active=false;available=99})\n | |- error: sending value of non-Sendable type '() -> Double' risks causing data races [#SendingRisksDataRace]\n | `- note: sending main actor-isolated value of non-Sendable type '() -> Double' to nonisolated static method 'first(timeout:now:isCurrent:latest:pause:)' risks causing races in between main actor-isolated and nonisolated uses\n101 | precondition(cancelled==nil && now<0.6)\n102 | try restorationTests()\n\n/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/tests/DuoCoreTests.swift:100:49: error: sending value of non-Sendable type '() -> Bool' risks causing data races [#SendingRisksDataRace]\n 98 | precondition(ready==7)\n 99 | now=0;available=nil\n100 | let cancelled=await EffectFrameAwaiter.first(timeout:0.6,now:{now},isCurrent:{active},latest:{available},pause:{now += 0.01;active=false;available=99})\n | |- error: sending value of non-Sendable type '() -> Bool' risks causing data races [#SendingRisksDataRace]\n | `- note: sending main actor-isolated value of non-Sendable type '() -> Bool' to nonisolated static method 'first(timeout:now:isCurrent:latest:pause:)' risks causing races in between main actor-isolated and nonisolated uses\n101 | precondition(cancelled==nil && now<0.6)\n102 | try restorationTests()\n\n/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/tests/DuoCoreTests.swift:100:49: error: sending value of non-Sendable type '() -> Int?' risks causing data races [#SendingRisksDataRace]\n 98 | precondition(ready==7)\n 99 | now=0;available=nil\n100 | let cancelled=await EffectFrameAwaiter.first(timeout:0.6,now:{now},isCurrent:{active},latest:{available},pause:{now += 0.01;active=false;available=99})\n | |- error: sending value of non-Sendable type '() -> Int?' risks causing data races [#SendingRisksDataRace]\n | `- note: sending main actor-isolated value of non-Sendable type '() -> Int?' to nonisolated static method 'first(timeout:now:isCurrent:latest:pause:)' risks causing races in between main actor-isolated and nonisolated uses\n101 | precondition(cancelled==nil && now<0.6)\n102 | try restorationTests()\n\n/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/tests/DuoCoreTests.swift:100:49: error: sending value of non-Sendable type '() async -> Void' risks causing data races [#SendingRisksDataRace]\n 98 | precondition(ready==7)\n 99 | now=0;available=nil\n100 | let cancelled=await EffectFrameAwaiter.first(timeout:0.6,now:{now},isCurrent:{active},latest:{available},pause:{now += 0.01;active=false;available=99})\n | |- error: sending value of non-Sendable type '() async -> Void' risks causing data races [#SendingRisksDataRace]\n | `- note: sending main actor-isolated value of non-Sendable type '() async -> Void' to nonisolated static method 'first(timeout:now:isCurrent:latest:pause:)' risks causing races in between main actor-isolated and nonisolated uses\n101 | precondition(cancelled==nil && now<0.6)\n102 | try restorationTests()\n\n[#SendingRisksDataRace]: \n", - "seconds": 1.6364707820000604 - } -] diff --git a/tests/archive/part9/validation/development/frame-test-task-result.json b/tests/archive/part9/validation/development/frame-test-task-result.json deleted file mode 100644 index 7f1982ce..00000000 --- a/tests/archive/part9/validation/development/frame-test-task-result.json +++ /dev/null @@ -1,19 +0,0 @@ -[ - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/prototype/Effects/EffectFrameAwaiter.swift", - "/mnt/data/WindowShade2-round2-part9/tests/FrameTests.swift", - "-o", - "/tmp/ws2-r9-t01rulh9/tests" - ], - "exit_code": 1, - "seconds": 0.24218316600013168, - "stdout": "", - "stderr": "/mnt/data/WindowShade2-round2-part9/tests/FrameTests.swift:45:14: error: type 'Frame' does not conform to the 'Sendable' protocol\n 1 | import Foundation\n 2 | final class Frame { let number: Int; init(_ number:Int){self.number=number} }\n | `- note: class 'Frame' does not conform to the 'Sendable' protocol\n 3 | actor FrameOwner {\n 4 | var clock=0.0\n :\n43 | check(\"FRAME11-deadline-does-not-advance\",noProgress == nil)\n44 | var taskRead=false\n45 | let task=Task { @MainActor in await EffectFrameAwaiter.first(timeout:1,now:{0},isCurrent:{true},latest:{taskRead=true;return frame},pause:{}) }\n | `- error: type 'Frame' does not conform to the 'Sendable' protocol\n46 | task.cancel();let value=await task.value\n47 | check(\"FRAME12-task-cancelled\",value == nil && !taskRead)\n\n/mnt/data/WindowShade2-round2-part9/tests/FrameTests.swift:45:14: error: type 'Frame' does not conform to the 'Sendable' protocol\n 1 | import Foundation\n 2 | final class Frame { let number: Int; init(_ number:Int){self.number=number} }\n | `- note: class 'Frame' does not conform to the 'Sendable' protocol\n 3 | actor FrameOwner {\n 4 | var clock=0.0\n :\n43 | check(\"FRAME11-deadline-does-not-advance\",noProgress == nil)\n44 | var taskRead=false\n45 | let task=Task { @MainActor in await EffectFrameAwaiter.first(timeout:1,now:{0},isCurrent:{true},latest:{taskRead=true;return frame},pause:{}) }\n | `- error: type 'Frame' does not conform to the 'Sendable' protocol\n46 | task.cancel();let value=await task.value\n47 | check(\"FRAME12-task-cancelled\",value == nil && !taskRead)\n\n/mnt/data/WindowShade2-round2-part9/tests/FrameTests.swift:45:9: error: type 'Frame' does not conform to the 'Sendable' protocol\n 1 | import Foundation\n 2 | final class Frame { let number: Int; init(_ number:Int){self.number=number} }\n | `- note: class 'Frame' does not conform to the 'Sendable' protocol\n 3 | actor FrameOwner {\n 4 | var clock=0.0\n :\n43 | check(\"FRAME11-deadline-does-not-advance\",noProgress == nil)\n44 | var taskRead=false\n45 | let task=Task { @MainActor in await EffectFrameAwaiter.first(timeout:1,now:{0},isCurrent:{true},latest:{taskRead=true;return frame},pause:{}) }\n | `- error: type 'Frame' does not conform to the 'Sendable' protocol\n46 | task.cancel();let value=await task.value\n47 | check(\"FRAME12-task-cancelled\",value == nil && !taskRead)\n\n/mnt/data/WindowShade2-round2-part9/tests/FrameTests.swift:46:10: error: type 'Frame' does not conform to the 'Sendable' protocol\n 1 | import Foundation\n 2 | final class Frame { let number: Int; init(_ number:Int){self.number=number} }\n | `- note: class 'Frame' does not conform to the 'Sendable' protocol\n 3 | actor FrameOwner {\n 4 | var clock=0.0\n :\n44 | var taskRead=false\n45 | let task=Task { @MainActor in await EffectFrameAwaiter.first(timeout:1,now:{0},isCurrent:{true},latest:{taskRead=true;return frame},pause:{}) }\n46 | task.cancel();let value=await task.value\n | `- error: type 'Frame' does not conform to the 'Sendable' protocol\n47 | check(\"FRAME12-task-cancelled\",value == nil && !taskRead)\n48 | try JSONSerialization.data(withJSONObject:[\"suite\":\"FrameAwaiter\",\"scenarios\":cases.count,\"assertions\":cases.count,\"failures\":failures,\"cases\":cases],options:[.prettyPrinted,.sortedKeys]).write(to:URL(fileURLWithPath:CommandLine.arguments[1]))\n\n/mnt/data/WindowShade2-round2-part9/tests/FrameTests.swift:46:40: error: type 'Frame' does not conform to the 'Sendable' protocol\n 1 | import Foundation\n 2 | final class Frame { let number: Int; init(_ number:Int){self.number=number} }\n | `- note: class 'Frame' does not conform to the 'Sendable' protocol\n 3 | actor FrameOwner {\n 4 | var clock=0.0\n :\n44 | var taskRead=false\n45 | let task=Task { @MainActor in await EffectFrameAwaiter.first(timeout:1,now:{0},isCurrent:{true},latest:{taskRead=true;return frame},pause:{}) }\n46 | task.cancel();let value=await task.value\n | `- error: type 'Frame' does not conform to the 'Sendable' protocol\n47 | check(\"FRAME12-task-cancelled\",value == nil && !taskRead)\n48 | try JSONSerialization.data(withJSONObject:[\"suite\":\"FrameAwaiter\",\"scenarios\":cases.count,\"assertions\":cases.count,\"failures\":failures,\"cases\":cases],options:[.prettyPrinted,.sortedKeys]).write(to:URL(fileURLWithPath:CommandLine.arguments[1]))\n\n/mnt/data/WindowShade2-round2-part9/tests/FrameTests.swift:46:35: error: non-Sendable type 'Task' cannot exit main actor-isolated context in call to nonisolated property 'value'\n 1 | import Foundation\n 2 | final class Frame { let number: Int; init(_ number:Int){self.number=number} }\n | `- note: class 'Frame' does not conform to the 'Sendable' protocol\n 3 | actor FrameOwner {\n 4 | var clock=0.0\n :\n44 | var taskRead=false\n45 | let task=Task { @MainActor in await EffectFrameAwaiter.first(timeout:1,now:{0},isCurrent:{true},latest:{taskRead=true;return frame},pause:{}) }\n46 | task.cancel();let value=await task.value\n | `- error: non-Sendable type 'Task' cannot exit main actor-isolated context in call to nonisolated property 'value'\n47 | check(\"FRAME12-task-cancelled\",value == nil && !taskRead)\n48 | try JSONSerialization.data(withJSONObject:[\"suite\":\"FrameAwaiter\",\"scenarios\":cases.count,\"assertions\":cases.count,\"failures\":failures,\"cases\":cases],options:[.prettyPrinted,.sortedKeys]).write(to:URL(fileURLWithPath:CommandLine.arguments[1]))\n\n/mnt/data/WindowShade2-round2-part9/tests/FrameTests.swift:46:40: error: non-Sendable type 'Frame?' of nonisolated property 'value' cannot be sent to main actor-isolated context\n 1 | import Foundation\n 2 | final class Frame { let number: Int; init(_ number:Int){self.number=number} }\n | `- note: class 'Frame' does not conform to the 'Sendable' protocol\n 3 | actor FrameOwner {\n 4 | var clock=0.0\n :\n44 | var taskRead=false\n45 | let task=Task { @MainActor in await EffectFrameAwaiter.first(timeout:1,now:{0},isCurrent:{true},latest:{taskRead=true;return frame},pause:{}) }\n46 | task.cancel();let value=await task.value\n | `- error: non-Sendable type 'Frame?' of nonisolated property 'value' cannot be sent to main actor-isolated context\n47 | check(\"FRAME12-task-cancelled\",value == nil && !taskRead)\n48 | try JSONSerialization.data(withJSONObject:[\"suite\":\"FrameAwaiter\",\"scenarios\":cases.count,\"assertions\":cases.count,\"failures\":failures,\"cases\":cases],options:[.prettyPrinted,.sortedKeys]).write(to:URL(fileURLWithPath:CommandLine.arguments[1]))\n" - } -] diff --git a/tests/archive/part9/validation/development/weak-delivery-capture-compile.json b/tests/archive/part9/validation/development/weak-delivery-capture-compile.json deleted file mode 100644 index 02e44c16..00000000 --- a/tests/archive/part9/validation/development/weak-delivery-capture-compile.json +++ /dev/null @@ -1,21 +0,0 @@ -[ - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/prototype/Core/FoldVerifier.swift", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/prototype/Core/WS2FoldCallbackStamp.swift", - "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/prototype/App/FoldCompletion.swift", - "/mnt/data/WindowShade2-round2-part9/tests/RegressionTests.swift", - "-o", - "/tmp/ws2-r9-2sol90bo/tests" - ], - "exit_code": 1, - "seconds": 0.3904932010000266, - "stdout": "", - "stderr": "/mnt/data/WindowShade2-round2-handoff-v9/candidate-repo/prototype/App/FoldCompletion.swift:57:54: error: sending 'self' risks causing data races [#SendingRisksDataRace]\n55 | DispatchQueue.main.async { [weak self] in\n56 | for delivery in callbacks {\n57 | let fresh = delivery.stamp.map { self?.foldCallbackIsCurrent($0) == true } ?? false\n | | |- error: sending 'self' risks causing data races [#SendingRisksDataRace]\n | | `- note: 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses\n | `- note: access can happen concurrently\n58 | delivery.callback(success && fresh)\n59 | }\n\n[#SendingRisksDataRace]: \n" - } -] diff --git a/tests/archive/part9/validation/frame-commands.json b/tests/archive/part9/validation/frame-commands.json deleted file mode 100644 index 9d25dc48..00000000 --- a/tests/archive/part9/validation/frame-commands.json +++ /dev/null @@ -1,29 +0,0 @@ -[ - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "prototype/Effects/EffectFrameAwaiter.swift", - "/Users/aaron/Documents/WindowShade/tests/part9/tests/FrameTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-s0kplpir/tests" - ], - "exit_code": 0, - "seconds": 2.930588290997548, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-s0kplpir/tests", - "/Users/aaron/Documents/WindowShade/tests/part9/validation/frame-results.json" - ], - "exit_code": 0, - "seconds": 0.24438716701115482, - "stdout": "PASS FRAME01-main-actor-nonsendable-value\nPASS FRAME02-independent-actor\nPASS FRAME03-unisolated-caller\nPASS FRAME04-replaced-inside-getter\nPASS FRAME05-deadline-inside-getter\nPASS FRAME06-revoked-during-pause\nPASS FRAME07-timeout-zero\nPASS FRAME07-timeout-negative\nPASS FRAME07-timeout-nan\nPASS FRAME07-timeout-infinite\nPASS FRAME08-nonfinite-clock\nPASS FRAME09-clock-goes-backward\nPASS FRAME10-deadline-overflow\nPASS FRAME11-deadline-does-not-advance\nPASS FRAME12-task-cancelled\nSCENARIOS 15 ASSERTIONS 15 FAILURES 0\n", - "stderr": "" - } -] diff --git a/tests/archive/part9/validation/frame-results.json b/tests/archive/part9/validation/frame-results.json deleted file mode 100644 index 65d285f8..00000000 --- a/tests/archive/part9/validation/frame-results.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "assertions" : 15, - "cases" : [ - { - "id" : "FRAME01-main-actor-nonsendable-value", - "passed" : true - }, - { - "id" : "FRAME02-independent-actor", - "passed" : true - }, - { - "id" : "FRAME03-unisolated-caller", - "passed" : true - }, - { - "id" : "FRAME04-replaced-inside-getter", - "passed" : true - }, - { - "id" : "FRAME05-deadline-inside-getter", - "passed" : true - }, - { - "id" : "FRAME06-revoked-during-pause", - "passed" : true - }, - { - "id" : "FRAME07-timeout-zero", - "passed" : true - }, - { - "id" : "FRAME07-timeout-negative", - "passed" : true - }, - { - "id" : "FRAME07-timeout-nan", - "passed" : true - }, - { - "id" : "FRAME07-timeout-infinite", - "passed" : true - }, - { - "id" : "FRAME08-nonfinite-clock", - "passed" : true - }, - { - "id" : "FRAME09-clock-goes-backward", - "passed" : true - }, - { - "id" : "FRAME10-deadline-overflow", - "passed" : true - }, - { - "id" : "FRAME11-deadline-does-not-advance", - "passed" : true - }, - { - "id" : "FRAME12-task-cancelled", - "passed" : true - } - ], - "failures" : 0, - "scenarios" : 15, - "suite" : "FrameAwaiter" -} \ No newline at end of file diff --git a/tests/archive/part9/validation/input-and-stage-integrity.json b/tests/archive/part9/validation/input-and-stage-integrity.json deleted file mode 100644 index 125a5d2c..00000000 --- a/tests/archive/part9/validation/input-and-stage-integrity.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "input_archive": "WindowShade2-round2-handoff-v8.zip", - "archive_file_count": 2163, - "all_original_files_byte_identical": true, - "baseline_files": 1164, - "candidate_files": 1168, - "staged_equals_candidate": true, - "history": { - "part1": { - "files": 173, - "unchanged": true - }, - "part2": { - "files": 233, - "unchanged": true - }, - "part3": { - "files": 109, - "unchanged": true - }, - "part4": { - "files": 89, - "unchanged": true - }, - "part5": { - "files": 96, - "unchanged": true - }, - "part6": { - "files": 95, - "unchanged": true - }, - "part7": { - "files": 92, - "unchanged": true - }, - "part8": { - "files": 108, - "unchanged": true - } - }, - "semantic_application_validation": false -} diff --git a/tests/archive/part9/validation/mac-not-run.json b/tests/archive/part9/validation/mac-not-run.json deleted file mode 100644 index f4ddfc37..00000000 --- a/tests/archive/part9/validation/mac-not-run.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "argv": [ - "bash", - "tests/run-mac-check.sh", - "candidate-repo" - ], - "exit_code": 78, - "stdout": "NOT RUN: requires macOS SDK and Metal tools\n", - "stderr": "", - "meaning": "NOT RUN, not pass", - "workspace_connection": "attempted once; connection failed; endpoint credentials intentionally omitted" -} diff --git a/tests/archive/part9/validation/regression-commands.json b/tests/archive/part9/validation/regression-commands.json deleted file mode 100644 index 77bc6b25..00000000 --- a/tests/archive/part9/validation/regression-commands.json +++ /dev/null @@ -1,31 +0,0 @@ -[ - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "prototype/Core/FoldVerifier.swift", - "prototype/Core/WS2FoldCallbackStamp.swift", - "prototype/App/FoldCompletion.swift", - "/Users/aaron/Documents/WindowShade/tests/part9/tests/RegressionTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-m7jw5gg2/tests" - ], - "exit_code": 0, - "seconds": 8.32266645799973, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-m7jw5gg2/tests", - "/Users/aaron/Documents/WindowShade/tests/part9/validation/regression-results.json" - ], - "exit_code": 0, - "seconds": 0.346111958991969, - "stdout": "SCENARIOS 42 ASSERTIONS 93 FAILURES 0\n", - "stderr": "" - } -] diff --git a/tests/archive/part9/validation/regression-results.json b/tests/archive/part9/validation/regression-results.json deleted file mode 100644 index eadfd544..00000000 --- a/tests/archive/part9/validation/regression-results.json +++ /dev/null @@ -1,221 +0,0 @@ -{ - "assertions" : 93, - "cases" : [ - { - "assertions" : 1, - "failed" : 0, - "id" : "FENCE01-current" - }, - { - "assertions" : 1, - "failed" : 0, - "id" : "FENCE02-replaced-transaction" - }, - { - "assertions" : 2, - "failed" : 0, - "id" : "FENCE03-reused-pid-or-window" - }, - { - "assertions" : 1, - "failed" : 0, - "id" : "FENCE04-strategy-changed" - }, - { - "assertions" : 2, - "failed" : 0, - "id" : "FENCE05-lock-unlock-epoch" - }, - { - "assertions" : 2, - "failed" : 0, - "id" : "FENCE06-boot-and-display" - }, - { - "assertions" : 3, - "failed" : 0, - "id" : "FENCE07-expiry-boundary" - }, - { - "assertions" : 2, - "failed" : 0, - "id" : "FENCE08-clock-regression" - }, - { - "assertions" : 12, - "failed" : 0, - "id" : "FENCE09-nonfinite" - }, - { - "assertions" : 2, - "failed" : 0, - "id" : "FENCE10-invalid-budget" - }, - { - "assertions" : 2, - "failed" : 0, - "id" : "BOOL01-explicit-true-false" - }, - { - "assertions" : 1, - "failed" : 0, - "id" : "BOOL02-absence-not-false" - }, - { - "assertions" : 3, - "failed" : 0, - "id" : "BOOL03-numbers-not-booleans" - }, - { - "assertions" : 2, - "failed" : 0, - "id" : "BOOL04-strings-not-booleans" - }, - { - "assertions" : 3, - "failed" : 0, - "id" : "VERIFY01-hidden" - }, - { - "assertions" : 3, - "failed" : 0, - "id" : "VERIFY02-unknown-then-hidden" - }, - { - "assertions" : 3, - "failed" : 0, - "id" : "VERIFY03-stays-unknown" - }, - { - "assertions" : 3, - "failed" : 0, - "id" : "VERIFY04-visible-then-unknown" - }, - { - "assertions" : 3, - "failed" : 0, - "id" : "VERIFY05-visible-retry-succeeds" - }, - { - "assertions" : 3, - "failed" : 0, - "id" : "VERIFY06-visible-retry-unknown" - }, - { - "assertions" : 3, - "failed" : 0, - "id" : "VERIFY07-visible-retry-visible" - }, - { - "assertions" : 3, - "failed" : 0, - "id" : "VERIFY08-no-cross-strategy-write" - }, - { - "assertions" : 2, - "failed" : 0, - "id" : "VERIFY-cancel-at-0.0" - }, - { - "assertions" : 2, - "failed" : 0, - "id" : "VERIFY-cancel-at-0.2" - }, - { - "assertions" : 2, - "failed" : 0, - "id" : "VERIFY-cancel-at-0.7" - }, - { - "assertions" : 1, - "failed" : 0, - "id" : "VERIFY12-revoke-inside-observe" - }, - { - "assertions" : 1, - "failed" : 0, - "id" : "VERIFY13-revoke-inside-write" - }, - { - "assertions" : 1, - "failed" : 0, - "id" : "VERIFY14-revoke-inside-final-read" - }, - { - "assertions" : 2, - "failed" : 0, - "id" : "VERIFY15-no-fast-screen-shortcut" - }, - { - "assertions" : 4, - "failed" : 0, - "id" : "WAIT01-replacement-keeps-new-waiter" - }, - { - "assertions" : 2, - "failed" : 0, - "id" : "WAIT02-first-settlement-wins" - }, - { - "assertions" : 2, - "failed" : 0, - "id" : "WAIT03-unbound-token-not-acknowledged" - }, - { - "assertions" : 2, - "failed" : 0, - "id" : "WAIT04-rebind-refused" - }, - { - "assertions" : 1, - "failed" : 0, - "id" : "WAIT05-whole-batch-drained-before-callback" - }, - { - "assertions" : 2, - "failed" : 0, - "id" : "WAIT06-reentrant-register-preserved" - }, - { - "assertions" : 2, - "failed" : 0, - "id" : "WAIT07-duplicates-and-wrong-window" - }, - { - "assertions" : 1, - "failed" : 0, - "id" : "WAIT08-deleted-before-bind" - }, - { - "assertions" : 2, - "failed" : 0, - "id" : "WAIT09-many-generations" - }, - { - "assertions" : 1, - "failed" : 0, - "id" : "WAIT10-context-changes-before-delivery" - }, - { - "assertions" : 1, - "failed" : 0, - "id" : "WAIT11-lock-cycle-before-delivery" - }, - { - "assertions" : 1, - "failed" : 0, - "id" : "WAIT12-cross-cancel-after-batch-drained" - }, - { - "assertions" : 1, - "failed" : 0, - "id" : "WAIT13-delivery-deadline" - } - ], - "failures" : [ - - ], - "scenarios" : 42, - "scope" : "Actual Foundation stamp\/verifier and production FoldCompletion extension with explicit field\/current-context host; no AX\/AppKit execution", - "suite" : "part9-regression" -} \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/duo/commands.json b/tests/archive/part9/validation/regressions/duo/commands.json deleted file mode 100644 index 5084910f..00000000 --- a/tests/archive/part9/validation/regressions/duo/commands.json +++ /dev/null @@ -1,45 +0,0 @@ -[ - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "prototype/Effects/FoldDriver.swift", - "prototype/Effects/EffectFrameAwaiter.swift", - "prototype/Effects/LatestEffectFrame.swift", - "prototype/Effects/RestoreVerifier.swift", - "prototype/Core/FoldVerifier.swift", - "prototype/Core/MotionTilt.swift", - "prototype/Core/TitlebarTripleClickIntent.swift", - "prototype/Recovery/DurableShadeJournal.swift", - "tests/DuoCoreTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-3dwztsdx/duo-tests" - ], - "exit_code": 0, - "stdout": "", - "stderr": "", - "seconds": 9.518265124992467 - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-3dwztsdx/duo-tests" - ], - "exit_code": 0, - "stdout": "PASS: tilt filter matches the main-thread version bit for bit; sub-pixel hold is bounded\nPASS: angle endpoints, bounded spring, held position, duplicate/reverse transitions, report decoding, latest-only frames, stale producer isolation, injected restore clock, timeout/retry/cancellation, durable restart/write failure\n", - "stderr": "", - "seconds": 0.8616493750014342 - }, - { - "argv": [ - "/opt/homebrew/opt/python@3.14/bin/python3.14", - "tests/duo-integration-check.py" - ], - "exit_code": 0, - "stdout": "PASS: recovery intent precedes hiding, animation follows verification, synchronous restore contract, session teardown and capture exclusion are wired\n", - "stderr": "", - "seconds": 0.07067474999348633 - } -] diff --git a/tests/archive/part9/validation/regressions/duo/suite.json b/tests/archive/part9/validation/regressions/duo/suite.json deleted file mode 100644 index 7d607dec..00000000 --- a/tests/archive/part9/validation/regressions/duo/suite.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "suite": "duo", - "exit_code": 0, - "original_swift_test_sources_modified": false, - "source_text_guard_updated": true, - "real_mac_hardware": false -} diff --git a/tests/archive/part9/validation/regressions/legacy-foundation/approval-accept.ndjson b/tests/archive/part9/validation/regressions/legacy-foundation/approval-accept.ndjson deleted file mode 100644 index 98da1ca6..00000000 --- a/tests/archive/part9/validation/regressions/legacy-foundation/approval-accept.ndjson +++ /dev/null @@ -1 +0,0 @@ -{"id":7,"result":{"decision":"accept"}} diff --git a/tests/archive/part9/validation/regressions/legacy-foundation/commands.json b/tests/archive/part9/validation/regressions/legacy-foundation/commands.json deleted file mode 100644 index 524c9905..00000000 --- a/tests/archive/part9/validation/regressions/legacy-foundation/commands.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "argv": [ - "/opt/homebrew/opt/python@3.14/bin/python3.14", - "/Users/aaron/Documents/WindowShade/tests/part7/tests/regressions.py", - "--repo", - ".", - "--history", - "docs/handoff/chatgpt-review-2", - "--batch", - "foundation", - "--report-dir", - "/Users/aaron/Documents/WindowShade/tests/part9/validation/regressions/legacy-foundation" - ], - "exit_code": 0, - "stdout": "SCENE ARB01 opened page cannot evict review\nSCENE ARB02 exact opened lease replacement cancels once\nSCENE ARB03 same priority without explicit navigation busy\nSCENE ARB04 stale replacement cannot evict newer page\nSCENE ARB05 authorization preempts opened page\nSCENE ARB06 equal authorization never replaces review\nSCENE ARB07 synchronous disable barrier aborts replacement\nSCENE ARB08 reentrant acquire in cancellation refused\nSCENE ARB09 invalid request does not remove existing page\nSCENE ARB10 clock rollback safety invalidation still works\nSCENE ARB11 display removal during callback aborts replacement\nSCENE ARB12 expired expected handle is not resurrected\nSCENE SCP01 cannot begin before local enable and unlock\nSCENE SCP02 project switch invalidates queued work\nSCENE SCP03 relock and unlock never restores old ticket\nSCENE SCP04 path replacement and connection restart rejected\nSCENE SCP05 backend session validation and epoch binding\nSCENE SCP06 disabled state and explicit clear reject\nSCENE DIR01 actual symlink and directory replacement observations\nSCENE DIR02 containment uses path boundary not string prefix\nSCENE DIR03 non-directory and missing path fail\nSCENE SEL01 stable selection survives reorder\nSCENE SEL02 disabled rows skipped and no wrap\nSCENE SEL03 stale events rejected after snapshot\nSCENE SEL04 activation consumed exactly once\nSCENE SEL05 selection movement invalidates activation\nSCENE SEL06 duplicate snapshot fails closed\nSCENE SEL07 disabled selection chooses enabled row and empty is valid\nSCENE SEL08 revoke invalidates queued activation\nSCENE SEL09 snapshot size and identifier bounds\nSCENE NET01 unauthenticated connections globally bounded\nSCENE NET02 pair setup requires local window and cannot extend deadline\nSCENE NET03 one connection per verified peer\nSCENE NET04 deadline rejects promotion and stale generation\nSCENE NET05 per-connection and aggregate queue bounds\nSCENE NET06 total connection cap includes authenticated sessions\nSCENE NET07 clock rollback halts and clears buffers\nSCENE NET08 close releases allocation and stale handle fails\nSCENE DIAG01 bounded suffix and observed versus retained bytes\nSCENE DIAG02 control sequences cannot act as terminal escapes\nSCENE DIAG03 invalid UTF8 and clear bounded memory\nSCENE DIAG04 large append never retains more than capacity\nRESULT scenarios=42 assertions=95 failures=0\nRESULT scenarios=5 assertions=11 failures=0\nSCENE Q01 atomic batch and FIFO partial write\nSCENE Q02 rejected batch does not keep prefix\nSCENE Q03 expired partial write closes connection\nSCENE Q04 old generation denied\nSCENE Q05 clock and invalid completion checks\nSCENE Q06 zero record and record limit\nSCENE Q07 later earlier-deadline frame poisons whole stream\nSCENE K01 missing snapshot does not create identity\nSCENE K02 durable enroll and reload\nSCENE K03 revoke persists and invalidates old revision\nSCENE K04 write failure is not successful persistent revocation\nSCENE K05 malformed snapshot blocks instead of resetting\nSCENE K06 enrolled identifier never silently overwritten\nSCENE K07 peer cap and attempts marker survive reload\nSCENE K08 read failure does not look like no saved peers\nSCENE P01 M1 through M6 commits before return, no crypto claim\nSCENE P02 cannot pair without local PIN window\nSCENE P03 wrong sequence closes session\nSCENE P04 three failures enforce five minute cooldown across new connections\nSCENE P05 restart incomplete imposes fresh cooldown\nSCENE P06 persistence failure never releases M6\nSCENE P07 concurrent setup not admitted\nSCENE P08 expired M3 closes and clears\nSCENE P09 malformed TLV and invalid PIN\nSCENE P10 cancellation/reopening does not reset failure count\nSCENE F01 phase barrier restores before retucking same window\nSCENE F02 cancelled late tuck compensates before anything new\nSCENE F03 manual user change relinquishes ownership\nSCENE F04 unknown completion blocks future phases\nSCENE F05 locked completion waits for verified unlock\nSCENE F06 duplicate completion cannot mutate new transaction\nSCENE F07 restored revision must advance\nSCENE F08 duplicate window identity is rejected\nSCENE F09 failed restore blocks rest tucks\nSCENE I01 semantic ticket consumed once\nSCENE I02 stale lease cannot dispatch\nSCENE I03 approval domain has no remote confirm\nSCENE I04 final lock recheck\nSCENE I05 interrupt not accepted in desktop\nSCENE I06 forged intent does not reuse reserved press\nRESULT scenarios=40 assertions=97 failures=0\nPASS FOC-01 pending-preset-keeps-current-deadline\nPASS FOC-02 next-start-uses-pending-values\nPASS FOC-03 changing-tuck-does-not-lose-restore\nPASS FOC-04 enabling-tuck-does-not-invent-ownership\nPASS FOC-05-pause-configuration-does-not-resume\nPASS FOC-06-locked-and-manual-pause-independent\nPASS FOC-07-rest-continues-through-lock\nPASS FOC-08-no-automatic-next-focus\nPASS FOC-09-visibility-wake-budget\nPASS FOC-10-progress-uses-active-duration\nPASS FOC-11-backwards-clock-refused\nPASS FOC-12-next-run-retains-daily-count-and-token-sequence\nPASS FRM-01-fragmented-at-every-boundary\nPASS FRM-02-multiple-frames-one-read\nPASS FRM-03-big-endian-length\nPASS FRM-04-oversized-header-terminates\nPASS FRM-05-unknown-type-terminates\nPASS FRM-06-truncated-tag-terminates\nPASS FRM-07-local-payload-limit\nPASS FRM-08-bounded-read-batch\nPASS FRM-09-bounded-frame-count\nPASS FRM-10-data-slice-safe\nPASS NON-01-little-endian-prefix\nPASS NON-02-no-repeat\nPASS NON-03-no-wrap\nPASS NON-04-terminal-close\nPASS APR-01-complete-command-review\nPASS APR-02-wrong-thread\nPASS APR-03-empty-command\nPASS APR-04-relative-cwd\nPASS APR-05-stdin-kind\nPASS APR-06-unknown-field\nPASS APR-07-network-request\nPASS APR-08-policy-upgrade\nPASS APR-09-remote-environment\nPASS APR-10-missing-time\nPASS APR-11-long-command\nPASS APR-12-file-without-diff-not-reviewable\nPASS APR-13-request-id-type-bound\nPASS APR-14-whitespace-in-command-bound\nPASS APR-15-bidi-is-visible-not-silently-dropped\nPASS APR-16-cannot-confirm-before-layout\nPASS APR-17-preheld-input-refused\nPASS APR-18-old-sequence-refused\nPASS APR-19-fresh-confirm-then-grant-still-required\nPASS APR-20-target-change-invalidates-confirmation\nPASS APR-21-duplicate-confirmation-refused\nPASS APR-22-clear-revokes-review\nPASS WIRE-01-accept-once-actual-encoded-response\nPASS WIRE-02-no-duplicate-accept\nPASS WIRE-03-wrong-payload-refused\nPASS WIRE-04-file-not-allowed-by-command-path\nPASS WIRE-05-turn-complete-clears-approval\nPASS WIRE-06-string-id-preserved\nPASS DEV-01-default-disabled\nPASS DEV-02-neutral-required-after-enable\nPASS DEV-03-fresh-press-release-pair\nPASS DEV-04-reconnect-requires-new-consent\nPASS DEV-05-lock-revokes\nPASS DEV-06-review-domain-cannot-begin-control\nPASS DEV-08-domain-change-cancels-and-requires-neutral\nPASS DEV-09-unannounced-domain-change-suspends\nPASS APR-23-visible-context-escapes-bidi\nPASS DEV-07-replay-suspends\nPASS HID-01-exact-device-and-known-usage\nPASS HID-02-unknown-and-nonbinary-pass-through\nPASS OWN-01-only-completed-effects-recorded\nPASS OWN-02-exact-owner-one-use\nPASS OWN-03-manual-change-excludes-window\nPASS OWN-04-live-revision-change-refuses-restore\nPASS OWN-05-pid-reuse-cannot-match\nPASS OWN-06-other-run-cannot-consume\nSCENARIOS=72 ASSERTIONS=188 FAILURES=0\nPASS LEASE01 single global input owner\nPASS LEASE02 privileged owner table\nPASS LEASE03 authorization preempts synchronously\nPASS LEASE04 old key-down never confirms new approval\nPASS LEASE05 obscured reminder not replayed\nPASS LEASE06 lock barrier clears sensitive state\nPASS LEASE07 display removal cancels only owner\nPASS LEASE08 exact expiry and future request\nPASS LEASE09 reminder four seconds and no endless refresh\nPASS LEASE10 backward-time security invalidation\nPASS BLE01 five-second reads are not two-second age timeouts\nPASS BLE02 exact read deadline and stale callbacks\nPASS REMOTE01 discovery never means paired\nPASS REMOTE02 verified capability replay and revocation\nPASS CODEX01 initialize and two-phase handshake\nPASS CODEX02 thread then turn with actual field names\nPASS CODEX03 steer precondition and interrupt does not finish turn\nPASS CODEX04 approval IDs retain number versus string\nPASS CODEX05 unrelated completion and late reply ignored\nPASS CODEX06 every possible single split boundary\nPASS CODEX07 malformed, oversized and EOF safety\nPASS CODEX08 timeout makes outcome uncertain not retry\nPASS part2 core: 22 scenarios, 86 assertions\nCASE T1-01 | 空闲开始 25+5 → 截止时刻 1500 秒,聊天收起一次\nok 空闲不排刷新\nok 开始不是累计 tick\nok 重复开始无重复窗口动作\nCASE T1-02 | 紧凑/展开/隐藏 → 分别排分钟、秒、截止唤醒\nok 紧凑整分钟\nok 展开一秒\nok 隐藏只有到点\nok 18 分原文\nok 最后一分钟秒数\nok 秒显示与截止对齐\nCASE T1-03 | 专注自然到点再休息到点 → 计数一次,不自动下一轮\nok 完整专注才计数\nok 真实到点提示音\nok 休息完空闲\nok 重复 tick 无补发\nCASE T1-04 | 手动暂停叠加锁屏 → 单独继续不解除锁屏暂停\nok 暂停原因独立\nok 暂停不醒来\nok 正确顺延剩余时间\nCASE T1-05 | 睡眠叠加锁屏,先唤醒后解锁 → 最后一个原因解除才计时\nok 唤醒不能解锁\nok 睡眠期间无扣秒\nCASE T1-06 | 休息睡两小时 → 已结束,不补播开始或结束音\nok 休息不因睡眠冻结\nCASE T1-07 | 专注到点同刻锁屏 → 结算次数,但不收全桌面、不响铃\nok 已完成专注仍计数\nok 锁屏先于可见效果\nCASE T1-08 | 专注跳过和主动结束 → 都不增加完成数\nok 跳过不算完成\nok 结束清理\nok 明确结束优先于同刻自然结束\nCASE T1-09 | 休息关掉收起的窗口 → 计时继续,恢复只发一次\nok 只撤销本轮窗口归属\nok 重复关闭无动作\nCASE T1-10 | 旧日期的 deadline 晚到新日期 → 不记到今天,不闪过已过去的休息\nok 晚到不补播\nCASE T1-11 | 50+10,关闭聊天收起 → 3000 秒专注、600 秒休息\nok 关闭选项不收聊天\nok 十分钟休息\nCASE T1-12 | 时间倒流/无效日期/锁屏开始 → 拒绝,不启动第二轮\nok 拒绝倒流\nok 锁着不开始\nok 日期不可伪空\nPASS T1: 12 cases, 32 assertions, 0 failures\nok C-011 flat line with natural wobble is tone 1 → low\nok C-012 rising stroke is tone 2 → medium\nok C-012 raw y-down coordinates are flipped first, so tone 2 stays tone 2\nok C-012 (control) forgetting the flip would swap tones 2 and 4\nok C-013 one rounded valley is tone 3 → high\nok C-014 falling stroke is tone 4 → xhigh, never max\nok C-013 a broken zigzag with several valleys is rejected, not tone 3\nok C-013 a dip below the jitter band is still a flat tone 1, not tone 3\nok C-013 a valley without a real rise afterwards is rejected, not tone 3\nok between tone 1 and tone 2 slopes is rejected, not rounded to the nearest\nok C-015 a small tremor is rejected, not scaled up into a tone\nok contact shorter than the settle period counts as an accidental touch\nok C-016 vertical swipes select no effort\nok C-016 right-to-left strokes are not mirrored into tones\nok C-016 a stroke that doubles back is not a tone\nok C-017 a narrow V reads as both tone 3 and one beat, so it is rejected\nok C-017 three beats drifting right are rejected, not tone 3 and not 3 beats\nok C-018 a full five-beat phrase requests max\nok C-018 after the fourth beat the preview shows 4\nok C-019 a full six-beat phrase requests ultra\nok C-019 after the fifth beat the preview shows 5\nok C-019 lifting in the middle of the sixth beat is rejected, not taken as 5 beats (max)\nok 1 beats request the matching level\nok 2 beats request the matching level\nok 3 beats request the matching level\nok 4 beats request the matching level\nok seven beats are rejected, not clamped to six\nok C-020 a wobble at the bottom of a beat does not count as an extra beat\nok C-020 a drop without a real rebound is not a beat\nok C-021 fast and slow five-beat phrases both request max\nok C-021 beats faster than 150ms apart are rejected\nok C-021 a long pause inside a phrase breaks it instead of counting on\nok C-022 a phrase longer than 6 seconds is dropped\nok a NaN coordinate rejects the whole stroke\nok an out-of-range coordinate rejects the whole stroke\nok time going backwards rejects the whole stroke\nok an empty stroke is safe\nok out-of-range gestures map to no effort\nok no tone ever requests max or ultra\nall conductor gesture tests passed\n", - "stderr": "", - "seconds": 74.01578474999405 - } -] diff --git a/tests/archive/part9/validation/regressions/legacy-foundation/core-results.json b/tests/archive/part9/validation/regressions/legacy-foundation/core-results.json deleted file mode 100644 index 079c9214..00000000 --- a/tests/archive/part9/validation/regressions/legacy-foundation/core-results.json +++ /dev/null @@ -1,367 +0,0 @@ -{ - "assertions" : 188, - "failures" : 0, - "results" : [ - { - "assertions" : 5, - "id" : "FOC-01 pending-preset-keeps-current-deadline", - "passed" : true - }, - { - "assertions" : 3, - "id" : "FOC-02 next-start-uses-pending-values", - "passed" : true - }, - { - "assertions" : 1, - "id" : "FOC-03 changing-tuck-does-not-lose-restore", - "passed" : true - }, - { - "assertions" : 1, - "id" : "FOC-04 enabling-tuck-does-not-invent-ownership", - "passed" : true - }, - { - "assertions" : 3, - "id" : "FOC-05-pause-configuration-does-not-resume", - "passed" : true - }, - { - "assertions" : 3, - "id" : "FOC-06-locked-and-manual-pause-independent", - "passed" : true - }, - { - "assertions" : 2, - "id" : "FOC-07-rest-continues-through-lock", - "passed" : true - }, - { - "assertions" : 4, - "id" : "FOC-08-no-automatic-next-focus", - "passed" : true - }, - { - "assertions" : 3, - "id" : "FOC-09-visibility-wake-budget", - "passed" : true - }, - { - "assertions" : 2, - "id" : "FOC-10-progress-uses-active-duration", - "passed" : true - }, - { - "assertions" : 2, - "id" : "FOC-11-backwards-clock-refused", - "passed" : true - }, - { - "assertions" : 2, - "id" : "FOC-12-next-run-retains-daily-count-and-token-sequence", - "passed" : true - }, - { - "assertions" : 69, - "id" : "FRM-01-fragmented-at-every-boundary", - "passed" : true - }, - { - "assertions" : 1, - "id" : "FRM-02-multiple-frames-one-read", - "passed" : true - }, - { - "assertions" : 1, - "id" : "FRM-03-big-endian-length", - "passed" : true - }, - { - "assertions" : 3, - "id" : "FRM-04-oversized-header-terminates", - "passed" : true - }, - { - "assertions" : 2, - "id" : "FRM-05-unknown-type-terminates", - "passed" : true - }, - { - "assertions" : 2, - "id" : "FRM-06-truncated-tag-terminates", - "passed" : true - }, - { - "assertions" : 2, - "id" : "FRM-07-local-payload-limit", - "passed" : true - }, - { - "assertions" : 1, - "id" : "FRM-08-bounded-read-batch", - "passed" : true - }, - { - "assertions" : 1, - "id" : "FRM-09-bounded-frame-count", - "passed" : true - }, - { - "assertions" : 1, - "id" : "FRM-10-data-slice-safe", - "passed" : true - }, - { - "assertions" : 1, - "id" : "NON-01-little-endian-prefix", - "passed" : true - }, - { - "assertions" : 2, - "id" : "NON-02-no-repeat", - "passed" : true - }, - { - "assertions" : 2, - "id" : "NON-03-no-wrap", - "passed" : true - }, - { - "assertions" : 1, - "id" : "NON-04-terminal-close", - "passed" : true - }, - { - "assertions" : 3, - "id" : "APR-01-complete-command-review", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-02-wrong-thread", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-03-empty-command", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-04-relative-cwd", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-05-stdin-kind", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-06-unknown-field", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-07-network-request", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-08-policy-upgrade", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-09-remote-environment", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-10-missing-time", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-11-long-command", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-12-file-without-diff-not-reviewable", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-13-request-id-type-bound", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-14-whitespace-in-command-bound", - "passed" : true - }, - { - "assertions" : 2, - "id" : "APR-15-bidi-is-visible-not-silently-dropped", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-16-cannot-confirm-before-layout", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-17-preheld-input-refused", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-18-old-sequence-refused", - "passed" : true - }, - { - "assertions" : 3, - "id" : "APR-19-fresh-confirm-then-grant-still-required", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-20-target-change-invalidates-confirmation", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-21-duplicate-confirmation-refused", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-22-clear-revokes-review", - "passed" : true - }, - { - "assertions" : 3, - "id" : "WIRE-01-accept-once-actual-encoded-response", - "passed" : true - }, - { - "assertions" : 1, - "id" : "WIRE-02-no-duplicate-accept", - "passed" : true - }, - { - "assertions" : 2, - "id" : "WIRE-03-wrong-payload-refused", - "passed" : true - }, - { - "assertions" : 1, - "id" : "WIRE-04-file-not-allowed-by-command-path", - "passed" : true - }, - { - "assertions" : 2, - "id" : "WIRE-05-turn-complete-clears-approval", - "passed" : true - }, - { - "assertions" : 1, - "id" : "WIRE-06-string-id-preserved", - "passed" : true - }, - { - "assertions" : 2, - "id" : "DEV-01-default-disabled", - "passed" : true - }, - { - "assertions" : 1, - "id" : "DEV-02-neutral-required-after-enable", - "passed" : true - }, - { - "assertions" : 2, - "id" : "DEV-03-fresh-press-release-pair", - "passed" : true - }, - { - "assertions" : 2, - "id" : "DEV-04-reconnect-requires-new-consent", - "passed" : true - }, - { - "assertions" : 1, - "id" : "DEV-05-lock-revokes", - "passed" : true - }, - { - "assertions" : 1, - "id" : "DEV-06-review-domain-cannot-begin-control", - "passed" : true - }, - { - "assertions" : 4, - "id" : "DEV-08-domain-change-cancels-and-requires-neutral", - "passed" : true - }, - { - "assertions" : 1, - "id" : "DEV-09-unannounced-domain-change-suspends", - "passed" : true - }, - { - "assertions" : 1, - "id" : "APR-23-visible-context-escapes-bidi", - "passed" : true - }, - { - "assertions" : 1, - "id" : "DEV-07-replay-suspends", - "passed" : true - }, - { - "assertions" : 2, - "id" : "HID-01-exact-device-and-known-usage", - "passed" : true - }, - { - "assertions" : 2, - "id" : "HID-02-unknown-and-nonbinary-pass-through", - "passed" : true - }, - { - "assertions" : 2, - "id" : "OWN-01-only-completed-effects-recorded", - "passed" : true - }, - { - "assertions" : 2, - "id" : "OWN-02-exact-owner-one-use", - "passed" : true - }, - { - "assertions" : 1, - "id" : "OWN-03-manual-change-excludes-window", - "passed" : true - }, - { - "assertions" : 2, - "id" : "OWN-04-live-revision-change-refuses-restore", - "passed" : true - }, - { - "assertions" : 2, - "id" : "OWN-05-pid-reuse-cannot-match", - "passed" : true - }, - { - "assertions" : 2, - "id" : "OWN-06-other-run-cannot-consume", - "passed" : true - } - ], - "scenarios" : 72 -} \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/legacy-foundation/regression-part2-outbound.ndjson b/tests/archive/part9/validation/regressions/legacy-foundation/regression-part2-outbound.ndjson deleted file mode 100644 index f750edd4..00000000 --- a/tests/archive/part9/validation/regressions/legacy-foundation/regression-part2-outbound.ndjson +++ /dev/null @@ -1,9 +0,0 @@ -{"id":1,"method":"initialize","params":{"clientInfo":{"name":"windowshade","version":"2-probe"}}} -{"method":"initialized"} -{"id":2,"method":"model/list","params":{"includeHidden":false,"limit":100}} -{"id":3,"method":"thread/start","params":{"approvalPolicy":"on-request","approvalsReviewer":"user","cwd":"/fixture","model":"test-model","sandbox":"read-only"}} -{"id":4,"method":"turn/start","params":{"approvalPolicy":"on-request","approvalsReviewer":"user","effort":"high","input":[{"text":"Hello","text_elements":[],"type":"text"}],"model":"test-model","sandboxPolicy":{"networkAccess":false,"type":"readOnly"},"threadId":"thread-one"}} -{"id":5,"method":"turn/steer","params":{"expectedTurnId":"turn-one","input":[{"text":"x","text_elements":[],"type":"text"}],"threadId":"thread-one"}} -{"id":6,"method":"turn/interrupt","params":{"threadId":"thread-one","turnId":"turn-one"}} -{"id":7,"result":{"decision":"decline"}} -{"id":"7","result":{"decision":"decline"}} diff --git a/tests/archive/part9/validation/regressions/legacy-foundation/regression-part5-core-results.json b/tests/archive/part9/validation/regressions/legacy-foundation/regression-part5-core-results.json deleted file mode 100644 index 241e0465..00000000 --- a/tests/archive/part9/validation/regressions/legacy-foundation/regression-part5-core-results.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "assertions" : 97, - "crypto" : "mock engine: sequencing only", - "failures" : [ - - ], - "scenarios" : 40 -} \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/legacy-foundation/regression-part6-core-results.json b/tests/archive/part9/validation/regressions/legacy-foundation/regression-part6-core-results.json deleted file mode 100644 index 54d0fe16..00000000 --- a/tests/archive/part9/validation/regressions/legacy-foundation/regression-part6-core-results.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "assertions" : 95, - "boundary" : "Foundation reducers and temporary local filesystem; no Mac SDK, network, authorization or AX", - "cases" : [ - "ARB01 opened page cannot evict review", - "ARB02 exact opened lease replacement cancels once", - "ARB03 same priority without explicit navigation busy", - "ARB04 stale replacement cannot evict newer page", - "ARB05 authorization preempts opened page", - "ARB06 equal authorization never replaces review", - "ARB07 synchronous disable barrier aborts replacement", - "ARB08 reentrant acquire in cancellation refused", - "ARB09 invalid request does not remove existing page", - "ARB10 clock rollback safety invalidation still works", - "ARB11 display removal during callback aborts replacement", - "ARB12 expired expected handle is not resurrected", - "SCP01 cannot begin before local enable and unlock", - "SCP02 project switch invalidates queued work", - "SCP03 relock and unlock never restores old ticket", - "SCP04 path replacement and connection restart rejected", - "SCP05 backend session validation and epoch binding", - "SCP06 disabled state and explicit clear reject", - "DIR01 actual symlink and directory replacement observations", - "DIR02 containment uses path boundary not string prefix", - "DIR03 non-directory and missing path fail", - "SEL01 stable selection survives reorder", - "SEL02 disabled rows skipped and no wrap", - "SEL03 stale events rejected after snapshot", - "SEL04 activation consumed exactly once", - "SEL05 selection movement invalidates activation", - "SEL06 duplicate snapshot fails closed", - "SEL07 disabled selection chooses enabled row and empty is valid", - "SEL08 revoke invalidates queued activation", - "SEL09 snapshot size and identifier bounds", - "NET01 unauthenticated connections globally bounded", - "NET02 pair setup requires local window and cannot extend deadline", - "NET03 one connection per verified peer", - "NET04 deadline rejects promotion and stale generation", - "NET05 per-connection and aggregate queue bounds", - "NET06 total connection cap includes authenticated sessions", - "NET07 clock rollback halts and clears buffers", - "NET08 close releases allocation and stale handle fails", - "DIAG01 bounded suffix and observed versus retained bytes", - "DIAG02 control sequences cannot act as terminal escapes", - "DIAG03 invalid UTF8 and clear bounded memory", - "DIAG04 large append never retains more than capacity" - ], - "failures" : [ - - ], - "scenarios" : 42 -} \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/legacy-foundation/regression-part6-wire-outbound.ndjson b/tests/archive/part9/validation/regressions/legacy-foundation/regression-part6-wire-outbound.ndjson deleted file mode 100644 index 73286cb3..00000000 --- a/tests/archive/part9/validation/regressions/legacy-foundation/regression-part6-wire-outbound.ndjson +++ /dev/null @@ -1,4 +0,0 @@ -{"id":3,"method":"thread/start","params":{"approvalPolicy":"on-request","approvalsReviewer":"user","cwd":"/tmp/fixture-project","model":"test-model","sandbox":"read-only"}} -{"id":4,"method":"turn/start","params":{"approvalPolicy":"on-request","approvalsReviewer":"user","effort":"medium","input":[{"text":"Synthetic request","text_elements":[],"type":"text"}],"model":"test-model","sandboxPolicy":{"networkAccess":false,"type":"readOnly"},"threadId":"t"}} -{"id":3,"method":"thread/resume","params":{"approvalPolicy":"on-request","approvalsReviewer":"user","sandbox":"read-only","threadId":"known-thread"}} -{"id":3,"method":"model/list","params":{"cursor":"next","includeHidden":false,"limit":100}} diff --git a/tests/archive/part9/validation/regressions/legacy-foundation/regression-part6-wire-results.json b/tests/archive/part9/validation/regressions/legacy-foundation/regression-part6-wire-results.json deleted file mode 100644 index 077b0dfd..00000000 --- a/tests/archive/part9/validation/regressions/legacy-foundation/regression-part6-wire-results.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "assertions" : 11, - "boundary" : "Synthetic CodexWire fixtures; no real CLI or sandbox enforcement", - "failures" : [ - - ], - "scenarios" : 5 -} \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/legacy-foundation/regressions-foundation.json b/tests/archive/part9/validation/regressions/legacy-foundation/regressions-foundation.json deleted file mode 100644 index a64e48f0..00000000 --- a/tests/archive/part9/validation/regressions/legacy-foundation/regressions-foundation.json +++ /dev/null @@ -1,241 +0,0 @@ -[ - { - "argv": [ - "cc", - "-std=c11", - "-O2", - "-Wall", - "-Wextra", - "-Werror", - "-c", - "/Users/aaron/Documents/WindowShade/prototype/Native/WS2Child.c", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mw7ofa6v/child.o" - ], - "exit_code": 0, - "elapsed_seconds": 0.22541629199986346, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedScope.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2SelectionModel.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2ConnectionBudget.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/InteractionCoordinator.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2ProjectDirectory.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part6/tests/CoreTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mw7ofa6v/part6-core" - ], - "exit_code": 0, - "elapsed_seconds": 11.161524875002215, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mw7ofa6v/part6-core", - "/Users/aaron/Documents/WindowShade/tests/part9/validation/regressions/legacy-foundation/regression-part6-core-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 0.11756008298834786, - "stdout": "SCENE ARB01 opened page cannot evict review\nSCENE ARB02 exact opened lease replacement cancels once\nSCENE ARB03 same priority without explicit navigation busy\nSCENE ARB04 stale replacement cannot evict newer page\nSCENE ARB05 authorization preempts opened page\nSCENE ARB06 equal authorization never replaces review\nSCENE ARB07 synchronous disable barrier aborts replacement\nSCENE ARB08 reentrant acquire in cancellation refused\nSCENE ARB09 invalid request does not remove existing page\nSCENE ARB10 clock rollback safety invalidation still works\nSCENE ARB11 display removal during callback aborts replacement\nSCENE ARB12 expired expected handle is not resurrected\nSCENE SCP01 cannot begin before local enable and unlock\nSCENE SCP02 project switch invalidates queued work\nSCENE SCP03 relock and unlock never restores old ticket\nSCENE SCP04 path replacement and connection restart rejected\nSCENE SCP05 backend session validation and epoch binding\nSCENE SCP06 disabled state and explicit clear reject\nSCENE DIR01 actual symlink and directory replacement observations\nSCENE DIR02 containment uses path boundary not string prefix\nSCENE DIR03 non-directory and missing path fail\nSCENE SEL01 stable selection survives reorder\nSCENE SEL02 disabled rows skipped and no wrap\nSCENE SEL03 stale events rejected after snapshot\nSCENE SEL04 activation consumed exactly once\nSCENE SEL05 selection movement invalidates activation\nSCENE SEL06 duplicate snapshot fails closed\nSCENE SEL07 disabled selection chooses enabled row and empty is valid\nSCENE SEL08 revoke invalidates queued activation\nSCENE SEL09 snapshot size and identifier bounds\nSCENE NET01 unauthenticated connections globally bounded\nSCENE NET02 pair setup requires local window and cannot extend deadline\nSCENE NET03 one connection per verified peer\nSCENE NET04 deadline rejects promotion and stale generation\nSCENE NET05 per-connection and aggregate queue bounds\nSCENE NET06 total connection cap includes authenticated sessions\nSCENE NET07 clock rollback halts and clears buffers\nSCENE NET08 close releases allocation and stale handle fails\nSCENE DIAG01 bounded suffix and observed versus retained bytes\nSCENE DIAG02 control sequences cannot act as terminal escapes\nSCENE DIAG03 invalid UTF8 and clear bounded memory\nSCENE DIAG04 large append never retains more than capacity\nRESULT scenarios=42 assertions=95 failures=0\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part6/tests/WireProfileTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mw7ofa6v/part6-wire" - ], - "exit_code": 0, - "elapsed_seconds": 8.703036207996774, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mw7ofa6v/part6-wire", - "/Users/aaron/Documents/WindowShade/tests/part9/validation/regressions/legacy-foundation/regression-part6-wire-results.json", - "/Users/aaron/Documents/WindowShade/tests/part9/validation/regressions/legacy-foundation/regression-part6-wire-outbound.ndjson" - ], - "exit_code": 0, - "elapsed_seconds": 0.1420670420047827, - "stdout": "RESULT scenarios=5 assertions=11 failures=0\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2FocusWindowOwnership.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DeviceInputGate.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/PairingAttemptWindow.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/PairingTLV.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2FocusEffectPlan.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2SemanticInputRouter.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2PeerRepository.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2PairSetupServer.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part5/tests/CoreTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mw7ofa6v/part5-core" - ], - "exit_code": 0, - "elapsed_seconds": 14.744102500000736, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mw7ofa6v/part5-core", - "/Users/aaron/Documents/WindowShade/tests/part9/validation/regressions/legacy-foundation/regression-part5-core-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 0.0835107080056332, - "stdout": "SCENE Q01 atomic batch and FIFO partial write\nSCENE Q02 rejected batch does not keep prefix\nSCENE Q03 expired partial write closes connection\nSCENE Q04 old generation denied\nSCENE Q05 clock and invalid completion checks\nSCENE Q06 zero record and record limit\nSCENE Q07 later earlier-deadline frame poisons whole stream\nSCENE K01 missing snapshot does not create identity\nSCENE K02 durable enroll and reload\nSCENE K03 revoke persists and invalidates old revision\nSCENE K04 write failure is not successful persistent revocation\nSCENE K05 malformed snapshot blocks instead of resetting\nSCENE K06 enrolled identifier never silently overwritten\nSCENE K07 peer cap and attempts marker survive reload\nSCENE K08 read failure does not look like no saved peers\nSCENE P01 M1 through M6 commits before return, no crypto claim\nSCENE P02 cannot pair without local PIN window\nSCENE P03 wrong sequence closes session\nSCENE P04 three failures enforce five minute cooldown across new connections\nSCENE P05 restart incomplete imposes fresh cooldown\nSCENE P06 persistence failure never releases M6\nSCENE P07 concurrent setup not admitted\nSCENE P08 expired M3 closes and clears\nSCENE P09 malformed TLV and invalid PIN\nSCENE P10 cancellation/reopening does not reset failure count\nSCENE F01 phase barrier restores before retucking same window\nSCENE F02 cancelled late tuck compensates before anything new\nSCENE F03 manual user change relinquishes ownership\nSCENE F04 unknown completion blocks future phases\nSCENE F05 locked completion waits for verified unlock\nSCENE F06 duplicate completion cannot mutate new transaction\nSCENE F07 restored revision must advance\nSCENE F08 duplicate window identity is rejected\nSCENE F09 failed restore blocks rest tucks\nSCENE I01 semantic ticket consumed once\nSCENE I02 stale lease cannot dispatch\nSCENE I03 approval domain has no remote confirm\nSCENE I04 final lock recheck\nSCENE I05 interrupt not accepted in desktop\nSCENE I06 forged intent does not reuse reserved press\nRESULT scenarios=40 assertions=97 failures=0\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/FocusTimer.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2CompanionFrame.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2ApprovalReview.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DeviceInputGate.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2FocusWindowOwnership.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part4/tests/CoreTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mw7ofa6v/part4-core" - ], - "exit_code": 0, - "elapsed_seconds": 15.10573891698732, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mw7ofa6v/part4-core", - "/Users/aaron/Documents/WindowShade/tests/part9/validation/regressions/legacy-foundation" - ], - "exit_code": 0, - "elapsed_seconds": 0.1173968750226777, - "stdout": "PASS FOC-01 pending-preset-keeps-current-deadline\nPASS FOC-02 next-start-uses-pending-values\nPASS FOC-03 changing-tuck-does-not-lose-restore\nPASS FOC-04 enabling-tuck-does-not-invent-ownership\nPASS FOC-05-pause-configuration-does-not-resume\nPASS FOC-06-locked-and-manual-pause-independent\nPASS FOC-07-rest-continues-through-lock\nPASS FOC-08-no-automatic-next-focus\nPASS FOC-09-visibility-wake-budget\nPASS FOC-10-progress-uses-active-duration\nPASS FOC-11-backwards-clock-refused\nPASS FOC-12-next-run-retains-daily-count-and-token-sequence\nPASS FRM-01-fragmented-at-every-boundary\nPASS FRM-02-multiple-frames-one-read\nPASS FRM-03-big-endian-length\nPASS FRM-04-oversized-header-terminates\nPASS FRM-05-unknown-type-terminates\nPASS FRM-06-truncated-tag-terminates\nPASS FRM-07-local-payload-limit\nPASS FRM-08-bounded-read-batch\nPASS FRM-09-bounded-frame-count\nPASS FRM-10-data-slice-safe\nPASS NON-01-little-endian-prefix\nPASS NON-02-no-repeat\nPASS NON-03-no-wrap\nPASS NON-04-terminal-close\nPASS APR-01-complete-command-review\nPASS APR-02-wrong-thread\nPASS APR-03-empty-command\nPASS APR-04-relative-cwd\nPASS APR-05-stdin-kind\nPASS APR-06-unknown-field\nPASS APR-07-network-request\nPASS APR-08-policy-upgrade\nPASS APR-09-remote-environment\nPASS APR-10-missing-time\nPASS APR-11-long-command\nPASS APR-12-file-without-diff-not-reviewable\nPASS APR-13-request-id-type-bound\nPASS APR-14-whitespace-in-command-bound\nPASS APR-15-bidi-is-visible-not-silently-dropped\nPASS APR-16-cannot-confirm-before-layout\nPASS APR-17-preheld-input-refused\nPASS APR-18-old-sequence-refused\nPASS APR-19-fresh-confirm-then-grant-still-required\nPASS APR-20-target-change-invalidates-confirmation\nPASS APR-21-duplicate-confirmation-refused\nPASS APR-22-clear-revokes-review\nPASS WIRE-01-accept-once-actual-encoded-response\nPASS WIRE-02-no-duplicate-accept\nPASS WIRE-03-wrong-payload-refused\nPASS WIRE-04-file-not-allowed-by-command-path\nPASS WIRE-05-turn-complete-clears-approval\nPASS WIRE-06-string-id-preserved\nPASS DEV-01-default-disabled\nPASS DEV-02-neutral-required-after-enable\nPASS DEV-03-fresh-press-release-pair\nPASS DEV-04-reconnect-requires-new-consent\nPASS DEV-05-lock-revokes\nPASS DEV-06-review-domain-cannot-begin-control\nPASS DEV-08-domain-change-cancels-and-requires-neutral\nPASS DEV-09-unannounced-domain-change-suspends\nPASS APR-23-visible-context-escapes-bidi\nPASS DEV-07-replay-suspends\nPASS HID-01-exact-device-and-known-usage\nPASS HID-02-unknown-and-nonbinary-pass-through\nPASS OWN-01-only-completed-effects-recorded\nPASS OWN-02-exact-owner-one-use\nPASS OWN-03-manual-change-excludes-window\nPASS OWN-04-live-revision-change-refuses-restore\nPASS OWN-05-pid-reuse-cannot-match\nPASS OWN-06-other-run-cannot-consume\nSCENARIOS=72 ASSERTIONS=188 FAILURES=0\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/RemoteSessionGate.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/PresenceReadDeadline.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/InteractionCoordinator.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part2/tests/Part2CoreTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mw7ofa6v/part2" - ], - "exit_code": 0, - "elapsed_seconds": 12.184431957983179, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mw7ofa6v/part2", - "/Users/aaron/Documents/WindowShade/tests/part9/validation/regressions/legacy-foundation/regression-part2-outbound.ndjson" - ], - "exit_code": 0, - "elapsed_seconds": 0.2671955409750808, - "stdout": "PASS LEASE01 single global input owner\nPASS LEASE02 privileged owner table\nPASS LEASE03 authorization preempts synchronously\nPASS LEASE04 old key-down never confirms new approval\nPASS LEASE05 obscured reminder not replayed\nPASS LEASE06 lock barrier clears sensitive state\nPASS LEASE07 display removal cancels only owner\nPASS LEASE08 exact expiry and future request\nPASS LEASE09 reminder four seconds and no endless refresh\nPASS LEASE10 backward-time security invalidation\nPASS BLE01 five-second reads are not two-second age timeouts\nPASS BLE02 exact read deadline and stale callbacks\nPASS REMOTE01 discovery never means paired\nPASS REMOTE02 verified capability replay and revocation\nPASS CODEX01 initialize and two-phase handshake\nPASS CODEX02 thread then turn with actual field names\nPASS CODEX03 steer precondition and interrupt does not finish turn\nPASS CODEX04 approval IDs retain number versus string\nPASS CODEX05 unrelated completion and late reply ignored\nPASS CODEX06 every possible single split boundary\nPASS CODEX07 malformed, oversized and EOF safety\nPASS CODEX08 timeout makes outcome uncertain not retry\nPASS part2 core: 22 scenarios, 86 assertions\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-parse-as-library", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/FocusTimer.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part1/tests/support/WS2TestSupport.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part1/packages/T1/tests/FocusTimerTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mw7ofa6v/focus" - ], - "exit_code": 0, - "elapsed_seconds": 7.967554957984248, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mw7ofa6v/focus" - ], - "exit_code": 0, - "elapsed_seconds": 0.0593121669953689, - "stdout": "CASE T1-01 | 空闲开始 25+5 → 截止时刻 1500 秒,聊天收起一次\nok 空闲不排刷新\nok 开始不是累计 tick\nok 重复开始无重复窗口动作\nCASE T1-02 | 紧凑/展开/隐藏 → 分别排分钟、秒、截止唤醒\nok 紧凑整分钟\nok 展开一秒\nok 隐藏只有到点\nok 18 分原文\nok 最后一分钟秒数\nok 秒显示与截止对齐\nCASE T1-03 | 专注自然到点再休息到点 → 计数一次,不自动下一轮\nok 完整专注才计数\nok 真实到点提示音\nok 休息完空闲\nok 重复 tick 无补发\nCASE T1-04 | 手动暂停叠加锁屏 → 单独继续不解除锁屏暂停\nok 暂停原因独立\nok 暂停不醒来\nok 正确顺延剩余时间\nCASE T1-05 | 睡眠叠加锁屏,先唤醒后解锁 → 最后一个原因解除才计时\nok 唤醒不能解锁\nok 睡眠期间无扣秒\nCASE T1-06 | 休息睡两小时 → 已结束,不补播开始或结束音\nok 休息不因睡眠冻结\nCASE T1-07 | 专注到点同刻锁屏 → 结算次数,但不收全桌面、不响铃\nok 已完成专注仍计数\nok 锁屏先于可见效果\nCASE T1-08 | 专注跳过和主动结束 → 都不增加完成数\nok 跳过不算完成\nok 结束清理\nok 明确结束优先于同刻自然结束\nCASE T1-09 | 休息关掉收起的窗口 → 计时继续,恢复只发一次\nok 只撤销本轮窗口归属\nok 重复关闭无动作\nCASE T1-10 | 旧日期的 deadline 晚到新日期 → 不记到今天,不闪过已过去的休息\nok 晚到不补播\nCASE T1-11 | 50+10,关闭聊天收起 → 3000 秒专注、600 秒休息\nok 关闭选项不收聊天\nok 十分钟休息\nCASE T1-12 | 时间倒流/无效日期/锁屏开始 → 拒绝,不启动第二轮\nok 拒绝倒流\nok 锁着不开始\nok 日期不可伪空\nPASS T1: 12 cases, 32 assertions, 0 failures\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-parse-as-library", - "/Users/aaron/Documents/WindowShade/prototype/Core/ConductorGesture.swift", - "/Users/aaron/Documents/WindowShade/tests/ConductorGestureTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mw7ofa6v/gesture" - ], - "exit_code": 0, - "elapsed_seconds": 2.90970854202169, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-mw7ofa6v/gesture" - ], - "exit_code": 0, - "elapsed_seconds": 0.04466458299430087, - "stdout": "ok C-011 flat line with natural wobble is tone 1 → low\nok C-012 rising stroke is tone 2 → medium\nok C-012 raw y-down coordinates are flipped first, so tone 2 stays tone 2\nok C-012 (control) forgetting the flip would swap tones 2 and 4\nok C-013 one rounded valley is tone 3 → high\nok C-014 falling stroke is tone 4 → xhigh, never max\nok C-013 a broken zigzag with several valleys is rejected, not tone 3\nok C-013 a dip below the jitter band is still a flat tone 1, not tone 3\nok C-013 a valley without a real rise afterwards is rejected, not tone 3\nok between tone 1 and tone 2 slopes is rejected, not rounded to the nearest\nok C-015 a small tremor is rejected, not scaled up into a tone\nok contact shorter than the settle period counts as an accidental touch\nok C-016 vertical swipes select no effort\nok C-016 right-to-left strokes are not mirrored into tones\nok C-016 a stroke that doubles back is not a tone\nok C-017 a narrow V reads as both tone 3 and one beat, so it is rejected\nok C-017 three beats drifting right are rejected, not tone 3 and not 3 beats\nok C-018 a full five-beat phrase requests max\nok C-018 after the fourth beat the preview shows 4\nok C-019 a full six-beat phrase requests ultra\nok C-019 after the fifth beat the preview shows 5\nok C-019 lifting in the middle of the sixth beat is rejected, not taken as 5 beats (max)\nok 1 beats request the matching level\nok 2 beats request the matching level\nok 3 beats request the matching level\nok 4 beats request the matching level\nok seven beats are rejected, not clamped to six\nok C-020 a wobble at the bottom of a beat does not count as an extra beat\nok C-020 a drop without a real rebound is not a beat\nok C-021 fast and slow five-beat phrases both request max\nok C-021 beats faster than 150ms apart are rejected\nok C-021 a long pause inside a phrase breaks it instead of counting on\nok C-022 a phrase longer than 6 seconds is dropped\nok a NaN coordinate rejects the whole stroke\nok an out-of-range coordinate rejects the whole stroke\nok time going backwards rejects the whole stroke\nok an empty stroke is safe\nok out-of-range gestures map to no effort\nok no tone ever requests max or ultra\nall conductor gesture tests passed\n", - "stderr": "" - } -] \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/legacy-foundation/suite.json b/tests/archive/part9/validation/regressions/legacy-foundation/suite.json deleted file mode 100644 index 89c66093..00000000 --- a/tests/archive/part9/validation/regressions/legacy-foundation/suite.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "suite": "legacy-foundation", - "exit_code": 0, - "original_swift_test_sources_modified": false, - "source_text_guard_updated": false, - "real_mac_hardware": false -} diff --git a/tests/archive/part9/validation/regressions/legacy-process/commands.json b/tests/archive/part9/validation/regressions/legacy-process/commands.json deleted file mode 100644 index 9abd23c8..00000000 --- a/tests/archive/part9/validation/regressions/legacy-process/commands.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "argv": [ - "/opt/homebrew/opt/python@3.14/bin/python3.14", - "/Users/aaron/Documents/WindowShade/tests/part7/tests/regressions.py", - "--repo", - ".", - "--history", - "docs/handoff/chatgpt-review-2", - "--batch", - "process", - "--report-dir", - "/Users/aaron/Documents/WindowShade/tests/part9/validation/regressions/legacy-process" - ], - "exit_code": 0, - "stdout": "SCENE PROC01 explicit bounded diagnostic tail does not block stdout\nSCENE PROC02 default diagnostics stays disabled\nSCENE PROC03 direct child exit status is separate from protocol outcome\nSCENE PROC05 partial final frame rejected\nSCENE PROC06 coalesced trailing frames retain ordering\nSCENE PROC07 stop closes transport once and waits for independent exit evidence\nSCENE PROC08 diagnostic buffer can be explicitly cleared\nSCENE PROC09 invalid diagnostic limit rejected before spawning\nSCENE PROC10 late scope change blocks an admitted frame\nRESULT scenarios=9 assertions=27 failures=0\nSCENE IO01 split response, simultaneous write, stderr burst\nSCENE IO02 pipe backpressure deadline closes without retry\nSCENE IO03 truncated EOF rejected\nSCENE IO04 EPIPE does not kill parent with SIGPIPE\nSCENE IO05 multiple coalesced lines delivered in order\nSCENE IO06 oversized incoming line rejected\nSCENE IO07 final write gate and stale epoch\nSCENE IO08 per-batch context gate checked after admission\nRESULT scenarios=8 assertions=26 failures=0\nPROC04 OBSERVED_PASS elapsed=0.17186599998967722\n", - "stderr": "", - "seconds": 20.39443008301896 - } -] diff --git a/tests/archive/part9/validation/regressions/legacy-process/regression-PROC04-results.json b/tests/archive/part9/validation/regressions/legacy-process/regression-PROC04-results.json deleted file mode 100644 index 4ee614fd..00000000 --- a/tests/archive/part9/validation/regressions/legacy-process/regression-PROC04-results.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "criterion" : "close before the fixture descendant's 0.8s late write; test tolerance <0.7s", - "directChildExitObserved" : true, - "elapsedSeconds" : 0.17186599998967722, - "notProven" : "Mac behavior; tree cleanup; immediate direct-child exit notification", - "probe" : "PROC04", - "receivedLines" : [ - "{\"parent\":1}" - ], - "status" : "OBSERVED_PASS" -} \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/legacy-process/regression-part5-process-results.json b/tests/archive/part9/validation/regressions/legacy-process/regression-part5-process-results.json deleted file mode 100644 index abd90701..00000000 --- a/tests/archive/part9/validation/regressions/legacy-process/regression-part5-process-results.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "assertions" : 26, - "backend" : "owned Python fixture; no real assistant or network", - "failures" : [ - - ], - "scenarios" : 8 -} \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/legacy-process/regression-part6-process-results.json b/tests/archive/part9/validation/regressions/legacy-process/regression-part6-process-results.json deleted file mode 100644 index b06b07df..00000000 --- a/tests/archive/part9/validation/regressions/legacy-process/regression-part6-process-results.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "assertions" : 27, - "boundary" : "Real Python child\/pipe\/one short-lived fork fixture, no CLI service, Mac SDK, network, or process-tree kill", - "cases" : [ - "PROC01 explicit bounded diagnostic tail does not block stdout", - "PROC02 default diagnostics stays disabled", - "PROC03 direct child exit status is separate from protocol outcome", - "PROC05 partial final frame rejected", - "PROC06 coalesced trailing frames retain ordering", - "PROC07 stop closes transport once and waits for independent exit evidence", - "PROC08 diagnostic buffer can be explicitly cleared", - "PROC09 invalid diagnostic limit rejected before spawning", - "PROC10 late scope change blocks an admitted frame" - ], - "failures" : [ - - ], - "scenarios" : 9 -} \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/legacy-process/regressions-process.json b/tests/archive/part9/validation/regressions/legacy-process/regressions-process.json deleted file mode 100644 index 0143a2c0..00000000 --- a/tests/archive/part9/validation/regressions/legacy-process/regressions-process.json +++ /dev/null @@ -1,119 +0,0 @@ -[ - { - "argv": [ - "cc", - "-std=c11", - "-O2", - "-Wall", - "-Wextra", - "-Werror", - "-c", - "/Users/aaron/Documents/WindowShade/prototype/Native/WS2Child.c", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-jn1n8zh2/child.o" - ], - "exit_code": 0, - "elapsed_seconds": 0.646603375003906, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/Users/aaron/Documents/WindowShade/prototype/Native", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-jn1n8zh2/child.o", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part6/tests/ProcessTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-jn1n8zh2/part6-process" - ], - "exit_code": 0, - "elapsed_seconds": 4.58256291699945, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-jn1n8zh2/part6-process", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part6/tests/child.py", - "/Users/aaron/Documents/WindowShade/tests/part9/validation/regressions/legacy-process/regression-part6-process-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 1.4269136250077281, - "stdout": "SCENE PROC01 explicit bounded diagnostic tail does not block stdout\nSCENE PROC02 default diagnostics stays disabled\nSCENE PROC03 direct child exit status is separate from protocol outcome\nSCENE PROC05 partial final frame rejected\nSCENE PROC06 coalesced trailing frames retain ordering\nSCENE PROC07 stop closes transport once and waits for independent exit evidence\nSCENE PROC08 diagnostic buffer can be explicitly cleared\nSCENE PROC09 invalid diagnostic limit rejected before spawning\nSCENE PROC10 late scope change blocks an admitted frame\nRESULT scenarios=9 assertions=27 failures=0\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/Users/aaron/Documents/WindowShade/prototype/Native", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-jn1n8zh2/child.o", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part5/tests/ProcessTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-jn1n8zh2/part5-process" - ], - "exit_code": 0, - "elapsed_seconds": 4.11344045799342, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-jn1n8zh2/part5-process", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part5/tests/fake-child.py", - "/Users/aaron/Documents/WindowShade/tests/part9/validation/regressions/legacy-process/regression-part5-process-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 3.287668292003218, - "stdout": "SCENE IO01 split response, simultaneous write, stderr burst\nSCENE IO02 pipe backpressure deadline closes without retry\nSCENE IO03 truncated EOF rejected\nSCENE IO04 EPIPE does not kill parent with SIGPIPE\nSCENE IO05 multiple coalesced lines delivered in order\nSCENE IO06 oversized incoming line rejected\nSCENE IO07 final write gate and stale epoch\nSCENE IO08 per-batch context gate checked after admission\nRESULT scenarios=8 assertions=26 failures=0\n", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/Users/aaron/Documents/WindowShade/prototype/Native", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-jn1n8zh2/child.o", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part6/tests/ExitInheritanceProbe.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-jn1n8zh2/PROC04" - ], - "exit_code": 0, - "elapsed_seconds": 4.928840582986595, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-v7-regression-jn1n8zh2/PROC04", - "/Users/aaron/Documents/WindowShade/docs/handoff/chatgpt-review-2/part6/tests/child.py", - "/Users/aaron/Documents/WindowShade/tests/part9/validation/regressions/legacy-process/regression-PROC04-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 1.1716884589986876, - "stdout": "PROC04 OBSERVED_PASS elapsed=0.17186599998967722\n", - "stderr": "" - } -] \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/legacy-process/suite.json b/tests/archive/part9/validation/regressions/legacy-process/suite.json deleted file mode 100644 index f6ed4653..00000000 --- a/tests/archive/part9/validation/regressions/legacy-process/suite.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "suite": "legacy-process", - "exit_code": 0, - "original_swift_test_sources_modified": false, - "source_text_guard_updated": false, - "real_mac_hardware": false -} diff --git a/tests/archive/part9/validation/regressions/part7-core/commands.json b/tests/archive/part9/validation/regressions/part7-core/commands.json deleted file mode 100644 index 5d031684..00000000 --- a/tests/archive/part9/validation/regressions/part7-core/commands.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "argv": [ - "/opt/homebrew/opt/python@3.14/bin/python3.14", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-c_kd4gdl/part7/tests/run.py", - "--repo", - ".", - "--suite", - "core" - ], - "exit_code": 0, - "stdout": "PASS JSON01 empty object [1]\nPASS JSON02 nested [1]\nPASS JSON03 duplicate [1]\nPASS JSON04 escaped duplicate [1]\nPASS JSON05 nested duplicate [1]\nPASS JSON06 surrogate pair [1]\nPASS JSON07 lone high surrogate [1]\nPASS JSON08 lone low surrogate [1]\nPASS JSON09 leading zero [1]\nPASS JSON10 fraction exponent [1]\nPASS JSON11 trailing data [1]\nPASS JSON12 trailing comma [1]\nPASS JSON13 invalid escape [1]\nPASS JSON14 raw control [1]\nPASS JSON15 unicode [1]\nPASS JSON16 incomplete exponent [1]\nPASS JSON17 deep [1]\nPASS JSON18 whitespace [1]\nPASS JSON19 size and node budgets [3]\nPASS URL01 browser scheme and exact host [8]\nPASS WIRE01 duplicate keys close before RPC interpretation [2]\nPASS QUIT01 both owners must settle [3]\nPASS QUIT02 updater alone cannot release child [3]\nPASS WIRE02 ambiguous result/error envelope [2]\nPASS QUIT03 veto and double begin [3]\nPASS PROFILE01 creates private state without overwriting changes [6]\nPASS PROFILE02 project configuration and linked state reject [3]\nTOTAL 27 scenarios, 51 assertions\n", - "stderr": "", - "seconds": 13.707192333007697 - } -] diff --git a/tests/archive/part9/validation/regressions/part7-core/core-commands.json b/tests/archive/part9/validation/regressions/part7-core/core-commands.json deleted file mode 100644 index fed9c0a8..00000000 --- a/tests/archive/part9/validation/regressions/part7-core/core-commands.json +++ /dev/null @@ -1,65 +0,0 @@ -[ - { - "argv": [ - "cc", - "-std=c11", - "-O2", - "-Wall", - "-Wextra", - "-Werror", - "-c", - "/Users/aaron/Documents/WindowShade/prototype/Native/WS2Child.c", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-ssyztzry/child.o" - ], - "exit_code": 0, - "elapsed_seconds": 0.2484780420199968, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/Users/aaron/Documents/WindowShade/prototype/Native", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-ssyztzry/child.o", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2QuitBarrier.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedProtocolHost.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedScope.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/AgentSessions.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2ProjectDirectory.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2LocalLaunchProfile.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2VersionProbe.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedCodexSession.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedLaunchController.swift", - "/private/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-c_kd4gdl/part7/tests/TestSupport.swift", - "/private/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-c_kd4gdl/part7/tests/CoreTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-ssyztzry/suite" - ], - "exit_code": 0, - "elapsed_seconds": 12.927887625002768, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-ssyztzry/suite", - "/private/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-c_kd4gdl/part7/validation/core-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 0.28758145798929036, - "stdout": "PASS JSON01 empty object [1]\nPASS JSON02 nested [1]\nPASS JSON03 duplicate [1]\nPASS JSON04 escaped duplicate [1]\nPASS JSON05 nested duplicate [1]\nPASS JSON06 surrogate pair [1]\nPASS JSON07 lone high surrogate [1]\nPASS JSON08 lone low surrogate [1]\nPASS JSON09 leading zero [1]\nPASS JSON10 fraction exponent [1]\nPASS JSON11 trailing data [1]\nPASS JSON12 trailing comma [1]\nPASS JSON13 invalid escape [1]\nPASS JSON14 raw control [1]\nPASS JSON15 unicode [1]\nPASS JSON16 incomplete exponent [1]\nPASS JSON17 deep [1]\nPASS JSON18 whitespace [1]\nPASS JSON19 size and node budgets [3]\nPASS URL01 browser scheme and exact host [8]\nPASS WIRE01 duplicate keys close before RPC interpretation [2]\nPASS QUIT01 both owners must settle [3]\nPASS QUIT02 updater alone cannot release child [3]\nPASS WIRE02 ambiguous result/error envelope [2]\nPASS QUIT03 veto and double begin [3]\nPASS PROFILE01 creates private state without overwriting changes [6]\nPASS PROFILE02 project configuration and linked state reject [3]\nTOTAL 27 scenarios, 51 assertions\n", - "stderr": "" - } -] \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/part7-core/core-results.json b/tests/archive/part9/validation/regressions/part7-core/core-results.json deleted file mode 100644 index 2f939333..00000000 --- a/tests/archive/part9/validation/regressions/part7-core/core-results.json +++ /dev/null @@ -1,137 +0,0 @@ -[ - { - "assertions" : 1, - "name" : "JSON01 empty object", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON02 nested", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON03 duplicate", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON04 escaped duplicate", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON05 nested duplicate", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON06 surrogate pair", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON07 lone high surrogate", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON08 lone low surrogate", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON09 leading zero", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON10 fraction exponent", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON11 trailing data", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON12 trailing comma", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON13 invalid escape", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON14 raw control", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON15 unicode", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON16 incomplete exponent", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON17 deep", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "JSON18 whitespace", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "JSON19 size and node budgets", - "result" : "PASS" - }, - { - "assertions" : 8, - "name" : "URL01 browser scheme and exact host", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "WIRE01 duplicate keys close before RPC interpretation", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "QUIT01 both owners must settle", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "QUIT02 updater alone cannot release child", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "WIRE02 ambiguous result\/error envelope", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "QUIT03 veto and double begin", - "result" : "PASS" - }, - { - "assertions" : 6, - "name" : "PROFILE01 creates private state without overwriting changes", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "PROFILE02 project configuration and linked state reject", - "result" : "PASS" - } -] \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/part7-core/suite.json b/tests/archive/part9/validation/regressions/part7-core/suite.json deleted file mode 100644 index 4b1834e4..00000000 --- a/tests/archive/part9/validation/regressions/part7-core/suite.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "suite": "part7-core", - "exit_code": 0, - "original_swift_test_sources_modified": false, - "source_text_guard_updated": false, - "real_mac_hardware": false -} diff --git a/tests/archive/part9/validation/regressions/part7-flow/commands.json b/tests/archive/part9/validation/regressions/part7-flow/commands.json deleted file mode 100644 index e3bbf8c7..00000000 --- a/tests/archive/part9/validation/regressions/part7-flow/commands.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "argv": [ - "/opt/homebrew/opt/python@3.14/bin/python3.14", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-gnantti4/part7/tests/run.py", - "--repo", - "/Users/aaron/Documents/WindowShade", - "--suite", - "flow" - ], - "exit_code": 0, - "stdout": "PASS FLOW01 local launch and actual stream completion [21]\nPASS FLOW02 resume only the locally associated project [8]\nPASS FLOW03 different project cannot reuse old thread [6]\nPASS FLOW04 actual login response and exact login ID [10]\nPASS FLOW05 interrupt RPC is not final completion [12]\nPASS FLOW06 elevation always declined by local entry [9]\nPASS FLOW07 failed turn is not successful completion [7]\nPASS FLOW08 mismatched version [7]\nPASS FLOW09 effective config mismatch [7]\nPASS FLOW10 duplicate raw JSON [7]\nPASS FLOW11 reject arbitrary auth URL [7]\nPASS FLOW12 unrelated login completion cannot authenticate [6]\nPASS FLOW13 project replacement invalidates submission [6]\nPASS FLOW14 actual lock invalidation and no automatic restart [6]\nPASS FLOW15 diagnostics are opt-in and clearable [7]\nPASS FLOW16 version-probe cancellation still awaits reaping [6]\nPASS FLOW17 version timeout does not invent a reap receipt [5]\nPASS FLOW18 login cancellation requires fresh account verification [8]\nTOTAL 18 scenarios, 145 assertions\n", - "stderr": "", - "seconds": 27.28631337500019 - } -] diff --git a/tests/archive/part9/validation/regressions/part7-flow/flow-commands.json b/tests/archive/part9/validation/regressions/part7-flow/flow-commands.json deleted file mode 100644 index 10f641b9..00000000 --- a/tests/archive/part9/validation/regressions/part7-flow/flow-commands.json +++ /dev/null @@ -1,68 +0,0 @@ -[ - { - "argv": [ - "cc", - "-std=c11", - "-O2", - "-Wall", - "-Wextra", - "-Werror", - "-c", - "/Users/aaron/Documents/WindowShade/prototype/Native/WS2Child.c", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-o2p0i1ha/child.o" - ], - "exit_code": 0, - "elapsed_seconds": 0.36923045799994725, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/Users/aaron/Documents/WindowShade/prototype/Native", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-o2p0i1ha/child.o", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2QuitBarrier.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedProtocolHost.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedScope.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/AgentSessions.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2ProjectDirectory.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2LocalLaunchProfile.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2VersionProbe.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WireJSON.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/UsageReading.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedCodexSession.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedLaunchController.swift", - "/private/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-gnantti4/part7/tests/TestSupport.swift", - "/private/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-gnantti4/part7/tests/FlowTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-o2p0i1ha/suite" - ], - "exit_code": 0, - "elapsed_seconds": 3.185678416999963, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-o2p0i1ha/suite", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-o2p0i1ha/fake-codex.py", - "/private/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-gnantti4/part7/validation/flow-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 23.693790374999935, - "stdout": "PASS FLOW01 local launch and actual stream completion [21]\nPASS FLOW02 resume only the locally associated project [8]\nPASS FLOW03 different project cannot reuse old thread [6]\nPASS FLOW04 actual login response and exact login ID [10]\nPASS FLOW05 interrupt RPC is not final completion [12]\nPASS FLOW06 elevation always declined by local entry [9]\nPASS FLOW07 failed turn is not successful completion [7]\nPASS FLOW08 mismatched version [7]\nPASS FLOW09 effective config mismatch [7]\nPASS FLOW10 duplicate raw JSON [7]\nPASS FLOW11 reject arbitrary auth URL [7]\nPASS FLOW12 unrelated login completion cannot authenticate [6]\nPASS FLOW13 project replacement invalidates submission [6]\nPASS FLOW14 actual lock invalidation and no automatic restart [6]\nPASS FLOW15 diagnostics are opt-in and clearable [7]\nPASS FLOW16 version-probe cancellation still awaits reaping [6]\nPASS FLOW17 version timeout does not invent a reap receipt [5]\nPASS FLOW18 login cancellation requires fresh account verification [8]\nTOTAL 18 scenarios, 145 assertions\n", - "stderr": "" - } -] \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/part7-flow/flow-outbound.ndjson b/tests/archive/part9/validation/regressions/part7-flow/flow-outbound.ndjson deleted file mode 100644 index 9cdf5353..00000000 --- a/tests/archive/part9/validation/regressions/part7-flow/flow-outbound.ndjson +++ /dev/null @@ -1,92 +0,0 @@ -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-CE6D4648-D944-49B8-9C40-F4C0D63EE56A/approval-9E1493B6-D74B-428F-BEFA-B63823215769/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "thread/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-CE6D4648-D944-49B8-9C40-F4C0D63EE56A/approval-9E1493B6-D74B-428F-BEFA-B63823215769/project", "model": "fixture-a", "sandbox": "read-only"}} -{"id": 6, "method": "turn/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "effort": "medium", "input": [{"text": "\u67e5\u8be2", "text_elements": [], "type": "text"}], "model": "fixture-a", "sandboxPolicy": {"networkAccess": false, "type": "readOnly"}, "threadId": "thread-real-fixture"}} -{"id": "approval-fixture", "result": {"decision": "decline"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-CE6D4648-D944-49B8-9C40-F4C0D63EE56A/login-cancel-CDCCE64E-7B6B-4157-AE46-85E3F0DFD915/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "account/login/start", "params": {"type": "chatgpt"}} -{"id": 6, "method": "account/login/cancel", "params": {"loginId": "login-fixture"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-CE6D4648-D944-49B8-9C40-F4C0D63EE56A/directory-28713FB6-5A19-428E-8AA1-3B9F06A7CE40/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-CE6D4648-D944-49B8-9C40-F4C0D63EE56A/diagnostics-C1D48F37-74C0-41BF-A07A-C6CA21639EBD/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "thread/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-CE6D4648-D944-49B8-9C40-F4C0D63EE56A/diagnostics-C1D48F37-74C0-41BF-A07A-C6CA21639EBD/project", "model": "fixture-a", "sandbox": "read-only"}} -{"id": 6, "method": "turn/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "effort": "medium", "input": [{"text": "\u8bca\u65ad", "text_elements": [], "type": "text"}], "model": "fixture-a", "sandboxPolicy": {"networkAccess": false, "type": "readOnly"}, "threadId": "thread-real-fixture"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-CE6D4648-D944-49B8-9C40-F4C0D63EE56A/lock/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "thread/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-CE6D4648-D944-49B8-9C40-F4C0D63EE56A/lock/project", "model": "fixture-a", "sandbox": "read-only"}} -{"id": 6, "method": "turn/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "effort": "medium", "input": [{"text": "\u9501\u5b9a\u6d4b\u8bd5", "text_elements": [], "type": "text"}], "model": "fixture-a", "sandboxPolicy": {"networkAccess": false, "type": "readOnly"}, "threadId": "thread-real-fixture"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-CE6D4648-D944-49B8-9C40-F4C0D63EE56A/normal-4767ED60-93B7-46D2-B12A-A2A758C48C00/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "thread/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-CE6D4648-D944-49B8-9C40-F4C0D63EE56A/normal-4767ED60-93B7-46D2-B12A-A2A758C48C00/project", "model": "fixture-a", "sandbox": "read-only"}} -{"id": 6, "method": "turn/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "effort": "medium", "input": [{"text": "\u4f60\u597d", "text_elements": [], "type": "text"}], "model": "fixture-a", "sandboxPolicy": {"networkAccess": false, "type": "readOnly"}, "threadId": "thread-real-fixture"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-CE6D4648-D944-49B8-9C40-F4C0D63EE56A/normal-4767ED60-93B7-46D2-B12A-A2A758C48C00/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "thread/resume", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "sandbox": "read-only", "threadId": "thread-real-fixture"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-CE6D4648-D944-49B8-9C40-F4C0D63EE56A/other", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-CE6D4648-D944-49B8-9C40-F4C0D63EE56A/failed-E2463537-A4EF-4EB7-9029-3923F0AD591B/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "thread/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-CE6D4648-D944-49B8-9C40-F4C0D63EE56A/failed-E2463537-A4EF-4EB7-9029-3923F0AD591B/project", "model": "fixture-a", "sandbox": "read-only"}} -{"id": 6, "method": "turn/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "effort": "medium", "input": [{"text": "\u5931\u8d25\u6d4b\u8bd5", "text_elements": [], "type": "text"}], "model": "fixture-a", "sandboxPolicy": {"networkAccess": false, "type": "readOnly"}, "threadId": "thread-real-fixture"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-CE6D4648-D944-49B8-9C40-F4C0D63EE56A/login-2062E7A4-01E3-4443-B79E-F2AD3BD262E7/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "account/login/start", "params": {"type": "chatgpt"}} -{"id": 6, "method": "account/read", "params": {"refreshToken": false}} -{"id": 7, "method": "account/logout"} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-CE6D4648-D944-49B8-9C40-F4C0D63EE56A/url-931EAC1E-F1FD-4412-BC3A-0C45FD6D026F/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "account/login/start", "params": {"type": "chatgpt"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-CE6D4648-D944-49B8-9C40-F4C0D63EE56A/config-DDE7604F-A281-43B0-B982-71B4C77AC78C/project", "includeLayers": true}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-CE6D4648-D944-49B8-9C40-F4C0D63EE56A/hold-5E00C33E-60D7-4802-971F-1BE2E93B6DE8/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "thread/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-CE6D4648-D944-49B8-9C40-F4C0D63EE56A/hold-5E00C33E-60D7-4802-971F-1BE2E93B6DE8/project", "model": "fixture-a", "sandbox": "read-only"}} -{"id": 6, "method": "turn/start", "params": {"approvalPolicy": "on-request", "approvalsReviewer": "user", "effort": "medium", "input": [{"text": "\u505c\u5728\u8fd9\u91cc", "text_elements": [], "type": "text"}], "model": "fixture-a", "sandboxPolicy": {"networkAccess": false, "type": "readOnly"}, "threadId": "thread-real-fixture"}} -{"id": 7, "method": "turn/interrupt", "params": {"threadId": "thread-real-fixture", "turnId": "turn-1"}} -{"id": 1, "method": "initialize", "params": {"clientInfo": {"name": "windowshade", "version": "2-probe"}}} -{"method": "initialized"} -{"id": 2, "method": "model/list", "params": {"includeHidden": false, "limit": 100}} -{"id": 3, "method": "config/read", "params": {"cwd": "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-part7-flow-CE6D4648-D944-49B8-9C40-F4C0D63EE56A/login-wrong-id-73F0E52E-168A-4461-9FF5-C63335333038/project", "includeLayers": true}} -{"id": 4, "method": "account/read", "params": {"refreshToken": false}} -{"id": 5, "method": "account/login/start", "params": {"type": "chatgpt"}} diff --git a/tests/archive/part9/validation/regressions/part7-flow/flow-results.json b/tests/archive/part9/validation/regressions/part7-flow/flow-results.json deleted file mode 100644 index 67078c03..00000000 --- a/tests/archive/part9/validation/regressions/part7-flow/flow-results.json +++ /dev/null @@ -1,92 +0,0 @@ -[ - { - "assertions" : 21, - "name" : "FLOW01 local launch and actual stream completion", - "result" : "PASS" - }, - { - "assertions" : 8, - "name" : "FLOW02 resume only the locally associated project", - "result" : "PASS" - }, - { - "assertions" : 6, - "name" : "FLOW03 different project cannot reuse old thread", - "result" : "PASS" - }, - { - "assertions" : 10, - "name" : "FLOW04 actual login response and exact login ID", - "result" : "PASS" - }, - { - "assertions" : 12, - "name" : "FLOW05 interrupt RPC is not final completion", - "result" : "PASS" - }, - { - "assertions" : 9, - "name" : "FLOW06 elevation always declined by local entry", - "result" : "PASS" - }, - { - "assertions" : 7, - "name" : "FLOW07 failed turn is not successful completion", - "result" : "PASS" - }, - { - "assertions" : 7, - "name" : "FLOW08 mismatched version", - "result" : "PASS" - }, - { - "assertions" : 7, - "name" : "FLOW09 effective config mismatch", - "result" : "PASS" - }, - { - "assertions" : 7, - "name" : "FLOW10 duplicate raw JSON", - "result" : "PASS" - }, - { - "assertions" : 7, - "name" : "FLOW11 reject arbitrary auth URL", - "result" : "PASS" - }, - { - "assertions" : 6, - "name" : "FLOW12 unrelated login completion cannot authenticate", - "result" : "PASS" - }, - { - "assertions" : 6, - "name" : "FLOW13 project replacement invalidates submission", - "result" : "PASS" - }, - { - "assertions" : 6, - "name" : "FLOW14 actual lock invalidation and no automatic restart", - "result" : "PASS" - }, - { - "assertions" : 7, - "name" : "FLOW15 diagnostics are opt-in and clearable", - "result" : "PASS" - }, - { - "assertions" : 6, - "name" : "FLOW16 version-probe cancellation still awaits reaping", - "result" : "PASS" - }, - { - "assertions" : 5, - "name" : "FLOW17 version timeout does not invent a reap receipt", - "result" : "PASS" - }, - { - "assertions" : 8, - "name" : "FLOW18 login cancellation requires fresh account verification", - "result" : "PASS" - } -] \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/part7-flow/suite.json b/tests/archive/part9/validation/regressions/part7-flow/suite.json deleted file mode 100644 index 1868356e..00000000 --- a/tests/archive/part9/validation/regressions/part7-flow/suite.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "suite": "part7-flow", - "exit_code": 0, - "original_swift_test_sources_modified": false, - "source_text_guard_updated": false, - "real_mac_hardware": false -} diff --git a/tests/archive/part9/validation/regressions/part7-native/commands.json b/tests/archive/part9/validation/regressions/part7-native/commands.json deleted file mode 100644 index 9b292183..00000000 --- a/tests/archive/part9/validation/regressions/part7-native/commands.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "argv": [ - "/opt/homebrew/opt/python@3.14/bin/python3.14", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-05tlaqir/part7/tests/run.py", - "--repo", - ".", - "--suite", - "native" - ], - "exit_code": 0, - "stdout": "PASS NATIVE01 direct child ignores TERM then owned group KILL [6]\nPASS NATIVE02 inherited descriptor descendant cannot delay direct exit [5]\nPASS NATIVE03 unrelated descriptors do not reach child [3]\nTOTAL 3 scenarios, 14 assertions\nDIAG exited=true termination=Optional(suite.WS2DuplexProcess.Termination(status: 0, wasSignalled: false)) stopped=true supervision=nil lines=[\"{\\\"parent\\\":1}\"] elapsed=0.1403940000163857\n", - "stderr": "", - "seconds": 14.686697833007202 - } -] diff --git a/tests/archive/part9/validation/regressions/part7-native/native-commands.json b/tests/archive/part9/validation/regressions/part7-native/native-commands.json deleted file mode 100644 index 5068b0d1..00000000 --- a/tests/archive/part9/validation/regressions/part7-native/native-commands.json +++ /dev/null @@ -1,67 +0,0 @@ -[ - { - "argv": [ - "cc", - "-std=c11", - "-O2", - "-Wall", - "-Wextra", - "-Werror", - "-c", - "/Users/aaron/Documents/WindowShade/prototype/Native/WS2Child.c", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-tn8qina1/child.o" - ], - "exit_code": 0, - "elapsed_seconds": 0.15698179198079742, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/Users/aaron/Documents/WindowShade/prototype/Native", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-tn8qina1/child.o", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2QuitBarrier.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedProtocolHost.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedScope.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/AgentSessions.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2ProjectDirectory.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2LocalLaunchProfile.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2VersionProbe.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedCodexSession.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedLaunchController.swift", - "/private/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-05tlaqir/part7/tests/TestSupport.swift", - "/private/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-05tlaqir/part7/tests/NativeTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-tn8qina1/suite" - ], - "exit_code": 0, - "elapsed_seconds": 11.847987625020323, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-build-tn8qina1/suite", - "/private/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-05tlaqir/part7/fixtures/native-child.py", - "/opt/homebrew/bin/python3", - "/private/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-05tlaqir/part7/validation/native-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 2.5435825000167824, - "stdout": "PASS NATIVE01 direct child ignores TERM then owned group KILL [6]\nPASS NATIVE02 inherited descriptor descendant cannot delay direct exit [5]\nPASS NATIVE03 unrelated descriptors do not reach child [3]\nTOTAL 3 scenarios, 14 assertions\n", - "stderr": "DIAG exited=true termination=Optional(suite.WS2DuplexProcess.Termination(status: 0, wasSignalled: false)) stopped=true supervision=nil lines=[\"{\\\"parent\\\":1}\"] elapsed=0.1403940000163857\n" - } -] \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/part7-native/native-results.json b/tests/archive/part9/validation/regressions/part7-native/native-results.json deleted file mode 100644 index e4afbc2b..00000000 --- a/tests/archive/part9/validation/regressions/part7-native/native-results.json +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "assertions" : 6, - "name" : "NATIVE01 direct child ignores TERM then owned group KILL", - "result" : "PASS" - }, - { - "assertions" : 5, - "name" : "NATIVE02 inherited descriptor descendant cannot delay direct exit", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "NATIVE03 unrelated descriptors do not reach child", - "result" : "PASS" - } -] \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/part7-native/suite.json b/tests/archive/part9/validation/regressions/part7-native/suite.json deleted file mode 100644 index 76685762..00000000 --- a/tests/archive/part9/validation/regressions/part7-native/suite.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "suite": "part7-native", - "exit_code": 0, - "original_swift_test_sources_modified": false, - "source_text_guard_updated": false, - "real_mac_hardware": false -} diff --git a/tests/archive/part9/validation/regressions/part8-flow/commands.json b/tests/archive/part9/validation/regressions/part8-flow/commands.json deleted file mode 100644 index 58ed49b0..00000000 --- a/tests/archive/part9/validation/regressions/part8-flow/commands.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "argv": [ - "/opt/homebrew/opt/python@3.14/bin/python3.14", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-2epp28ud/part8/tests/run.py", - "--repo", - ".", - "--suite", - "flow" - ], - "exit_code": 0, - "stdout": "PASS IFLOW01 real pipe catalogue supplies selection rows [7]\nPASS IFLOW02 device chooses model without sending work [3]\nPASS IFLOW03 separate local send uses selected model [6]\nPASS IFLOW04 late release after local capability loss cannot change model [3]\nPASS IFLOW05 reconnect uses a new backend epoch [5]\nPASS IFLOW06 project replacement rejected by actual model selector [3]\nTOTAL 6 scenarios, 27 assertions\n", - "stderr": "", - "seconds": 25.037983041984262 - } -] diff --git a/tests/archive/part9/validation/regressions/part8-flow/flow-commands.json b/tests/archive/part9/validation/regressions/part8-flow/flow-commands.json deleted file mode 100644 index a9aa30ad..00000000 --- a/tests/archive/part9/validation/regressions/part8-flow/flow-commands.json +++ /dev/null @@ -1,74 +0,0 @@ -[ - { - "argv": [ - "cc", - "-std=c11", - "-O2", - "-Wall", - "-Wextra", - "-Werror", - "-c", - "/Users/aaron/Documents/WindowShade/prototype/Native/WS2Child.c", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r8-lcl5pac7/child.o" - ], - "exit_code": 0, - "elapsed_seconds": 1.0093562910042237, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "-I", - "/Users/aaron/Documents/WindowShade/prototype/Native", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r8-lcl5pac7/child.o", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/GamepadMapping.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DeviceInputGate.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2SelectionModel.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2SemanticInputRouter.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DeviceActionContracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2VisibleListInput.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2DeviceActionHost.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2QuitBarrier.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2StrictJSON.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/CodexWire.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedProtocolHost.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2BoundedOutbox.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DiagnosticTail.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2OwnedScope.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/AgentSessions.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2ProjectDirectory.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2LocalLaunchProfile.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2VersionProbe.swift", - "/Users/aaron/Documents/WindowShade/prototype/Support/WS2DuplexProcess.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedCodexSession.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2OwnedLaunchController.swift", - "/private/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-2epp28ud/part8/tests/TestLog.swift", - "/private/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-2epp28ud/part8/tests/InputHarness.swift", - "/private/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-2epp28ud/part8/tests/InputFlowTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r8-lcl5pac7/tests" - ], - "exit_code": 0, - "elapsed_seconds": 20.242613875016104, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r8-lcl5pac7/tests", - "/private/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-2epp28ud/part8/validation/flow-results.json", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r8-lcl5pac7/fake-codex.py" - ], - "exit_code": 0, - "elapsed_seconds": 3.5011692919943016, - "stdout": "PASS IFLOW01 real pipe catalogue supplies selection rows [7]\nPASS IFLOW02 device chooses model without sending work [3]\nPASS IFLOW03 separate local send uses selected model [6]\nPASS IFLOW04 late release after local capability loss cannot change model [3]\nPASS IFLOW05 reconnect uses a new backend epoch [5]\nPASS IFLOW06 project replacement rejected by actual model selector [3]\nTOTAL 6 scenarios, 27 assertions\n", - "stderr": "" - } -] \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/part8-flow/flow-results.json b/tests/archive/part9/validation/regressions/part8-flow/flow-results.json deleted file mode 100644 index 6a1f7909..00000000 --- a/tests/archive/part9/validation/regressions/part8-flow/flow-results.json +++ /dev/null @@ -1,32 +0,0 @@ -[ - { - "assertions" : 7, - "name" : "IFLOW01 real pipe catalogue supplies selection rows", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "IFLOW02 device chooses model without sending work", - "result" : "PASS" - }, - { - "assertions" : 6, - "name" : "IFLOW03 separate local send uses selected model", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "IFLOW04 late release after local capability loss cannot change model", - "result" : "PASS" - }, - { - "assertions" : 5, - "name" : "IFLOW05 reconnect uses a new backend epoch", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "IFLOW06 project replacement rejected by actual model selector", - "result" : "PASS" - } -] \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/part8-flow/suite.json b/tests/archive/part9/validation/regressions/part8-flow/suite.json deleted file mode 100644 index 82d036cb..00000000 --- a/tests/archive/part9/validation/regressions/part8-flow/suite.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "suite": "part8-flow", - "exit_code": 0, - "original_swift_test_sources_modified": false, - "source_text_guard_updated": false, - "real_mac_hardware": false -} diff --git a/tests/archive/part9/validation/regressions/part8-fold/commands.json b/tests/archive/part9/validation/regressions/part8-fold/commands.json deleted file mode 100644 index a105fa36..00000000 --- a/tests/archive/part9/validation/regressions/part8-fold/commands.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "argv": [ - "/opt/homebrew/opt/python@3.14/bin/python3.14", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-xvi__zrm/part8/tests/run.py", - "--repo", - ".", - "--suite", - "fold" - ], - "exit_code": 0, - "stdout": "PASS FOLD01 admission is not evidence [2]\nPASS FOLD02 hidden needs physical attempt and bound transaction [2]\nPASS FOLD03 exactly one ordinary completion [4]\nPASS FOLD04 wrong transaction cannot complete [2]\nPASS FOLD05 deadline before hide proves not started [2]\nPASS FOLD06 deadline after hide remains unknown [2]\nPASS FOLD07 late success is marked separately [2]\nPASS FOLD08 early failure means no hiding attempt [2]\nPASS FOLD09 failure after mutation not called cancelled [2]\nPASS FOLD10 error cannot turn into notStarted after write [2]\nPASS FOLD11 visible observation can later confirm hidden [2]\nPASS FOLD12 repeated unknown is silent [2]\nPASS FOLD13 window-id reuse cannot consume old ticket [2]\nPASS FOLD14 duplicate live window refused [2]\nPASS FOLD15 bounded observer capacity [2]\nPASS FOLD16 bad time and identifiers refused [5]\nPASS FOLD17 exact deadline prevents mutation [3]\nPASS FOLD18 second transaction cannot overwrite binding [3]\nPASS FOLD19 callback after bounded release is inert [2]\nPASS FOLD20 forged ticket cannot use matching request UUID [2]\nPASS FOLD21 backward time cannot start mutation [2]\nTOTAL 21 scenarios, 49 assertions\n", - "stderr": "", - "seconds": 4.115167792013381 - } -] diff --git a/tests/archive/part9/validation/regressions/part8-fold/fold-commands.json b/tests/archive/part9/validation/regressions/part8-fold/fold-commands.json deleted file mode 100644 index b5794b78..00000000 --- a/tests/archive/part9/validation/regressions/part8-fold/fold-commands.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2FoldEvidence.swift", - "/private/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-xvi__zrm/part8/tests/TestLog.swift", - "/private/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-xvi__zrm/part8/tests/FoldTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r8-ru_yncrc/tests" - ], - "exit_code": 0, - "elapsed_seconds": 3.55186804101686, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r8-ru_yncrc/tests", - "/private/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-xvi__zrm/part8/validation/fold-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 0.24505745901842602, - "stdout": "PASS FOLD01 admission is not evidence [2]\nPASS FOLD02 hidden needs physical attempt and bound transaction [2]\nPASS FOLD03 exactly one ordinary completion [4]\nPASS FOLD04 wrong transaction cannot complete [2]\nPASS FOLD05 deadline before hide proves not started [2]\nPASS FOLD06 deadline after hide remains unknown [2]\nPASS FOLD07 late success is marked separately [2]\nPASS FOLD08 early failure means no hiding attempt [2]\nPASS FOLD09 failure after mutation not called cancelled [2]\nPASS FOLD10 error cannot turn into notStarted after write [2]\nPASS FOLD11 visible observation can later confirm hidden [2]\nPASS FOLD12 repeated unknown is silent [2]\nPASS FOLD13 window-id reuse cannot consume old ticket [2]\nPASS FOLD14 duplicate live window refused [2]\nPASS FOLD15 bounded observer capacity [2]\nPASS FOLD16 bad time and identifiers refused [5]\nPASS FOLD17 exact deadline prevents mutation [3]\nPASS FOLD18 second transaction cannot overwrite binding [3]\nPASS FOLD19 callback after bounded release is inert [2]\nPASS FOLD20 forged ticket cannot use matching request UUID [2]\nPASS FOLD21 backward time cannot start mutation [2]\nTOTAL 21 scenarios, 49 assertions\n", - "stderr": "" - } -] \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/part8-fold/fold-results.json b/tests/archive/part9/validation/regressions/part8-fold/fold-results.json deleted file mode 100644 index 3c548fee..00000000 --- a/tests/archive/part9/validation/regressions/part8-fold/fold-results.json +++ /dev/null @@ -1,107 +0,0 @@ -[ - { - "assertions" : 2, - "name" : "FOLD01 admission is not evidence", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD02 hidden needs physical attempt and bound transaction", - "result" : "PASS" - }, - { - "assertions" : 4, - "name" : "FOLD03 exactly one ordinary completion", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD04 wrong transaction cannot complete", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD05 deadline before hide proves not started", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD06 deadline after hide remains unknown", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD07 late success is marked separately", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD08 early failure means no hiding attempt", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD09 failure after mutation not called cancelled", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD10 error cannot turn into notStarted after write", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD11 visible observation can later confirm hidden", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD12 repeated unknown is silent", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD13 window-id reuse cannot consume old ticket", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD14 duplicate live window refused", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD15 bounded observer capacity", - "result" : "PASS" - }, - { - "assertions" : 5, - "name" : "FOLD16 bad time and identifiers refused", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "FOLD17 exact deadline prevents mutation", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "FOLD18 second transaction cannot overwrite binding", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD19 callback after bounded release is inert", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD20 forged ticket cannot use matching request UUID", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "FOLD21 backward time cannot start mutation", - "result" : "PASS" - } -] \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/part8-fold/suite.json b/tests/archive/part9/validation/regressions/part8-fold/suite.json deleted file mode 100644 index 988d0b53..00000000 --- a/tests/archive/part9/validation/regressions/part8-fold/suite.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "suite": "part8-fold", - "exit_code": 0, - "original_swift_test_sources_modified": false, - "source_text_guard_updated": false, - "real_mac_hardware": false -} diff --git a/tests/archive/part9/validation/regressions/part8-input/commands.json b/tests/archive/part9/validation/regressions/part8-input/commands.json deleted file mode 100644 index 072bdac6..00000000 --- a/tests/archive/part9/validation/regressions/part8-input/commands.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "argv": [ - "/opt/homebrew/opt/python@3.14/bin/python3.14", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-m2golo4n/part8/tests/run.py", - "--repo", - ".", - "--suite", - "input" - ], - "exit_code": 0, - "stdout": "PASS INPUT01 discovery does not enable or install [2]\nPASS INPUT02 explicit enable and fresh release [2]\nPASS INPUT03 held A before enable must become neutral [2]\nPASS INPUT04 navigation uses stable item [1]\nPASS INPUT05 previous at beginning is not failure [2]\nPASS INPUT06 next at end is not failure [2]\nPASS INPUT07 hold A then navigate does not activate new row [2]\nPASS INPUT08 mouse change invalidates pending A [1]\nPASS INPUT09 same-row click invalidates pending A [1]\nPASS INPUT10 list reorder revokes context [2]\nPASS INPUT11 page lease change cancels [1]\nPASS INPUT12 backend epoch change cancels [1]\nPASS INPUT13 lock revokes without auto reenabling [1]\nPASS INPUT14 foreground loss revokes [1]\nPASS INPUT15 sink unavailable or IME guard revokes [1]\nPASS INPUT16 approvals cannot reuse list device [2]\nPASS INPUT17 detach invalidates pending target [1]\nPASS INPUT18 identical label is not attachment identity [2]\nPASS INPUT19 enabling second device disables first [3]\nPASS INPUT20 replayed end cannot select twice [1]\nPASS INPUT21 repeated down does not duplicate [1]\nPASS INPUT22 unknown controls cannot activate [1]\nPASS INPUT23 cancel opens no model [1]\nPASS INPUT24 mismatched release control fails closed [1]\nPASS INPUT25 stop releases all resources [2]\nPASS INPUT26 reentrant model action may stop host [1]\nPASS INPUT27 duplicate ids revoke selection [2]\nPASS INPUT28 disabled rows skipped [1]\nPASS INPUT29 absent attachment cannot enable [2]\nPASS INPUT30 cancelled press cannot activate [1]\nPASS INPUT31 armed indication tracks captured target [3]\nPASS INPUT32 reentrant revoke while preparing is safe [1]\nPASS INPUT33 chosen model invalidation during prepare fails closed [1]\nTOTAL 33 scenarios, 49 assertions\n", - "stderr": "", - "seconds": 9.858200957998633 - } -] diff --git a/tests/archive/part9/validation/regressions/part8-input/input-commands.json b/tests/archive/part9/validation/regressions/part8-input/input-commands.json deleted file mode 100644 index 82889317..00000000 --- a/tests/archive/part9/validation/regressions/part8-input/input-commands.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "argv": [ - "swiftc", - "-swift-version", - "6", - "-strict-concurrency=complete", - "-warnings-as-errors", - "/Users/aaron/Documents/WindowShade/prototype/Core/Contracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/GamepadMapping.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DeviceInputGate.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2SelectionModel.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2SemanticInputRouter.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2DeviceActionContracts.swift", - "/Users/aaron/Documents/WindowShade/prototype/Core/WS2VisibleListInput.swift", - "/Users/aaron/Documents/WindowShade/prototype/App/WS2DeviceActionHost.swift", - "/private/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-m2golo4n/part8/tests/TestLog.swift", - "/private/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-m2golo4n/part8/tests/InputHarness.swift", - "/private/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-m2golo4n/part8/tests/InputTests.swift", - "-o", - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r8-5hduk05a/tests" - ], - "exit_code": 0, - "elapsed_seconds": 9.303855167003348, - "stdout": "", - "stderr": "" - }, - { - "argv": [ - "/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r8-5hduk05a/tests", - "/private/var/folders/l6/4_mrt4s51rv4sjb29v6x9n000000gn/T/ws2-r9-regression-m2golo4n/part8/validation/input-results.json" - ], - "exit_code": 0, - "elapsed_seconds": 0.2973667500191368, - "stdout": "PASS INPUT01 discovery does not enable or install [2]\nPASS INPUT02 explicit enable and fresh release [2]\nPASS INPUT03 held A before enable must become neutral [2]\nPASS INPUT04 navigation uses stable item [1]\nPASS INPUT05 previous at beginning is not failure [2]\nPASS INPUT06 next at end is not failure [2]\nPASS INPUT07 hold A then navigate does not activate new row [2]\nPASS INPUT08 mouse change invalidates pending A [1]\nPASS INPUT09 same-row click invalidates pending A [1]\nPASS INPUT10 list reorder revokes context [2]\nPASS INPUT11 page lease change cancels [1]\nPASS INPUT12 backend epoch change cancels [1]\nPASS INPUT13 lock revokes without auto reenabling [1]\nPASS INPUT14 foreground loss revokes [1]\nPASS INPUT15 sink unavailable or IME guard revokes [1]\nPASS INPUT16 approvals cannot reuse list device [2]\nPASS INPUT17 detach invalidates pending target [1]\nPASS INPUT18 identical label is not attachment identity [2]\nPASS INPUT19 enabling second device disables first [3]\nPASS INPUT20 replayed end cannot select twice [1]\nPASS INPUT21 repeated down does not duplicate [1]\nPASS INPUT22 unknown controls cannot activate [1]\nPASS INPUT23 cancel opens no model [1]\nPASS INPUT24 mismatched release control fails closed [1]\nPASS INPUT25 stop releases all resources [2]\nPASS INPUT26 reentrant model action may stop host [1]\nPASS INPUT27 duplicate ids revoke selection [2]\nPASS INPUT28 disabled rows skipped [1]\nPASS INPUT29 absent attachment cannot enable [2]\nPASS INPUT30 cancelled press cannot activate [1]\nPASS INPUT31 armed indication tracks captured target [3]\nPASS INPUT32 reentrant revoke while preparing is safe [1]\nPASS INPUT33 chosen model invalidation during prepare fails closed [1]\nTOTAL 33 scenarios, 49 assertions\n", - "stderr": "" - } -] \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/part8-input/input-results.json b/tests/archive/part9/validation/regressions/part8-input/input-results.json deleted file mode 100644 index fc2c4c0b..00000000 --- a/tests/archive/part9/validation/regressions/part8-input/input-results.json +++ /dev/null @@ -1,167 +0,0 @@ -[ - { - "assertions" : 2, - "name" : "INPUT01 discovery does not enable or install", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT02 explicit enable and fresh release", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT03 held A before enable must become neutral", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT04 navigation uses stable item", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT05 previous at beginning is not failure", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT06 next at end is not failure", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT07 hold A then navigate does not activate new row", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT08 mouse change invalidates pending A", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT09 same-row click invalidates pending A", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT10 list reorder revokes context", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT11 page lease change cancels", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT12 backend epoch change cancels", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT13 lock revokes without auto reenabling", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT14 foreground loss revokes", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT15 sink unavailable or IME guard revokes", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT16 approvals cannot reuse list device", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT17 detach invalidates pending target", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT18 identical label is not attachment identity", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "INPUT19 enabling second device disables first", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT20 replayed end cannot select twice", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT21 repeated down does not duplicate", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT22 unknown controls cannot activate", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT23 cancel opens no model", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT24 mismatched release control fails closed", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT25 stop releases all resources", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT26 reentrant model action may stop host", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT27 duplicate ids revoke selection", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT28 disabled rows skipped", - "result" : "PASS" - }, - { - "assertions" : 2, - "name" : "INPUT29 absent attachment cannot enable", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT30 cancelled press cannot activate", - "result" : "PASS" - }, - { - "assertions" : 3, - "name" : "INPUT31 armed indication tracks captured target", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT32 reentrant revoke while preparing is safe", - "result" : "PASS" - }, - { - "assertions" : 1, - "name" : "INPUT33 chosen model invalidation during prepare fails closed", - "result" : "PASS" - } -] \ No newline at end of file diff --git a/tests/archive/part9/validation/regressions/part8-input/suite.json b/tests/archive/part9/validation/regressions/part8-input/suite.json deleted file mode 100644 index 47d573fa..00000000 --- a/tests/archive/part9/validation/regressions/part8-input/suite.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "suite": "part8-input", - "exit_code": 0, - "original_swift_test_sources_modified": false, - "source_text_guard_updated": false, - "real_mac_hardware": false -} diff --git a/tests/archive/part9/validation/stage-existing-output-refused.json b/tests/archive/part9/validation/stage-existing-output-refused.json deleted file mode 100644 index aa3c8f36..00000000 --- a/tests/archive/part9/validation/stage-existing-output-refused.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "argv": [ - "/opt/pyvenv/bin/python3", - "-B", - "/mnt/data/WindowShade2-round2-part9/tools/stage.py", - "--base", - "/mnt/data/ws2-v8-baseline/WindowShade2-round2-handoff-v8/candidate-repo", - "--out", - "/mnt/data/ws2-r9-stage-validation" - ], - "exit_code": 2, - "stdout": "", - "stderr": "REFUSED: output already exists\n", - "output_unchanged": true -} diff --git a/tests/archive/part9/validation/stage.json b/tests/archive/part9/validation/stage.json deleted file mode 100644 index a9d2fcdd..00000000 --- a/tests/archive/part9/validation/stage.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "argv": [ - "/opt/pyvenv/bin/python3", - "-B", - "/mnt/data/WindowShade2-round2-part9/tools/stage.py", - "--base", - "/mnt/data/ws2-v8-baseline/WindowShade2-round2-handoff-v8/candidate-repo", - "--out", - "/mnt/data/ws2-r9-stage-validation" - ], - "exit_code": 0, - "stdout": "{\n \"status\": \"STAGED\",\n \"base_file_count\": 1164,\n \"result_file_count\": 1168,\n \"replaced\": 11,\n \"added\": 4,\n \"out\": \"/mnt/data/ws2-r9-stage-validation\",\n \"application_build\": \"NOT RUN\",\n \"runtime\": \"NOT RUN\"\n}\n", - "stderr": "", - "seconds": 0.7960685060002106 -} diff --git a/tests/archive/part9/validation/tools-tests.json b/tests/archive/part9/validation/tools-tests.json deleted file mode 100644 index e2dea158..00000000 --- a/tests/archive/part9/validation/tools-tests.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "tests_run": 18, - "failures": 0, - "errors": 0, - "cases": [ - { - "name": "__main__.Tests.test_bad_overlay", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_base_symlink", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_duplicate_manifest_path", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_existing_directory", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_existing_file", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_extra_base", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_extra_overlay", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_missing_base", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_missing_overlay", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_nested_output", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_overlay_symlink", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_package_output", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_success_and_original", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_symlink_parent", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_traversal", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_wrong_base", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_wrong_base_sha", - "result": "PASS" - }, - { - "name": "__main__.Tests.test_wrong_count", - "result": "PASS" - } - ] -} diff --git a/tests/archive/part9/validation/wiring-static.json b/tests/archive/part9/validation/wiring-static.json deleted file mode 100644 index 9071c1f9..00000000 --- a/tests/archive/part9/validation/wiring-static.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "checks": [ - { - "name": "production uses three-state verification", - "passed": true, - "level": "source-level only" - }, - { - "name": "no screen-absence quick success", - "passed": true, - "level": "source-level only" - }, - { - "name": "no cross-strategy rescue", - "passed": true, - "level": "source-level only" - }, - { - "name": "unknown keeps original recovery entry", - "passed": true, - "level": "source-level only" - }, - { - "name": "shared strict Boolean decoding", - "passed": true, - "level": "source-level only" - }, - { - "name": "old id-only success method removed", - "passed": true, - "level": "source-level only" - }, - { - "name": "batch drained before queued callbacks", - "passed": true, - "level": "source-level only" - }, - { - "name": "queued result is revalidated", - "passed": true, - "level": "source-level only" - }, - { - "name": "callback refcon is registration not window ID", - "passed": true, - "level": "source-level only" - }, - { - "name": "callback main runloop premise is guarded", - "passed": true, - "level": "source-level only" - }, - { - "name": "observer registration never wraps", - "passed": true, - "level": "source-level only" - }, - { - "name": "destroyed event requires fresh absence", - "passed": true, - "level": "source-level only" - }, - { - "name": "shown event requires current unhidden app", - "passed": true, - "level": "source-level only" - }, - { - "name": "snapshot carries transaction/context", - "passed": true, - "level": "source-level only" - }, - { - "name": "no shared mutable snapshot accumulator", - "passed": true, - "level": "source-level only" - }, - { - "name": "independent app batch identity checked", - "passed": true, - "level": "source-level only" - }, - { - "name": "onscreen membership not sampled before async batch", - "passed": true, - "level": "source-level only" - }, - { - "name": "ordinary source write has admission check", - "passed": true, - "level": "source-level only" - }, - { - "name": "native path does not pump nested runloop", - "passed": true, - "level": "source-level only" - }, - { - "name": "native and proxy bind request tokens", - "passed": true, - "level": "source-level only" - }, - { - "name": "frame helper inherits caller isolation", - "passed": true, - "level": "source-level only" - }, - { - "name": "no new unchecked Sendable in changed helpers", - "passed": true, - "level": "source-level only" - }, - { - "name": "read-only entry still refuses elevation", - "passed": true, - "level": "source-level only" - }, - { - "name": "old timer window executor still unavailable unless actually connected", - "passed": true, - "level": "source-level only" - } - ], - "checks_count": 24, - "failures": 0, - "sdk_executed": false, - "hardware_executed": false -} diff --git a/tests/vm/run-updater-phase3-1018.sh b/tests/vm/run-updater-phase3-1018.sh deleted file mode 100755 index 26996b7c..00000000 --- a/tests/vm/run-updater-phase3-1018.sh +++ /dev/null @@ -1,126 +0,0 @@ -#!/bin/bash -# 1.0.18 发布关 Phase 3(更新器)在虚拟机里自动验。只在虚拟机里动手,宿主上只起一个临时 HTTP 服务和读文件。 -# 与 1.0.17 那份(run-updater-phase3.sh)的差别:这一版验的是「1.0.17 → 1.0.18 真更新」—— -# 来宾装真 1.0.17(gh release),本地清单喂 1.0.18 条目(url 指向本地、length 是真字节数、 -# edSignature 用一次性测试密钥签真 zip),预期 Sparkle 认出 1.0.18 并**下载**它。 -# 「安装并重新打开」那一下要人点(SUAllowsAutomaticUpdates=false),留 Aaron 清单第 3 条;机器只验到「取了 zip、没报错」。 -# 用法:tests/vm/run-updater-phase3.sh lume@<虚拟机地址> --zip <1.0.18 的 zip> [--app-1017 路径(.app 或 .zip)] [--out 目录] [--port N] -set -euo pipefail -cd "$(dirname "$0")/../.." -repo_root=$PWD -host=${1:?usage: run-updater-phase3-1018.sh lume@ --zip [--app-1017 P] [--out D] [--port N]}; shift || true -zip1018=""; app1017=""; out=".build/release-acceptance-2026-10-18/phase3-updater"; port=18766 -while [ $# -gt 0 ]; do - case "$1" in - --zip) zip1018=${2:?}; shift 2 ;; - --app-1017) app1017=${2:?}; shift 2 ;; - --out) out=${2:?}; shift 2 ;; - --port) port=${2:?}; shift 2 ;; - *) echo "未知参数:$1" >&2; exit 2 ;; - esac -done -[[ "$port" =~ ^[0-9]+$ ]] || { echo "--port 要是整数" >&2; exit 2; } -[ -n "$zip1018" ] && [ -f "$zip1018" ] || { echo "要给 --zip(Phase 0 的 WindowShade-v1.0.18.zip)" >&2; exit 2; } -case "$host" in *@*) addr=${host#*@} ;; *) echo "目标要写成 user@地址" >&2; exit 2 ;; esac -case "$addr" in localhost|127.*|::1|"$(hostname)"|"$(hostname -s)"|"$(hostname).local") echo "拒绝:目标是本机" >&2; exit 2 ;; esac -repo=$(git remote get-url origin | sed -E 's#^(git@github.com:|https?://github.com/)##; s#\.git$##') -ssh_opts=(-o BatchMode=yes -o ConnectTimeout=15) -g() { ssh "${ssh_opts[@]}" "$host" "$@"; } - -tmp=$(mktemp -d); mkdir "$tmp/serve" -http_pid=""; guest_touched=0 -cleanup() { - if [ -n "$http_pid" ]; then kill "$http_pid" 2>/dev/null; wait "$http_pid" 2>/dev/null; fi; true - if [ "${guest_touched:-0}" = 1 ]; then - g "bash /tmp/updater-in-guest.sh cleanup" 2>&1 | sed 's/^/ /' || echo "WARN 来宾清理没跑成,手动:ssh $host 'bash /tmp/updater-in-guest.sh cleanup'" >&2 - fi - rm -rf "$tmp" -} -trap cleanup EXIT - -vm=$(g 'sysctl -n kern.hv_vmm_present' 2>/dev/null || true) -[ "$vm" = 1 ] || { echo "拒绝:$host 不是虚拟机(kern.hv_vmm_present=${vm:-无法连接})" >&2; exit 3; } -gw=$(g "route -n get default 2>/dev/null | awk '/gateway:/{print \$2}'") -[[ "$gw" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]] || { echo "读不到来宾默认网关" >&2; exit 1; } -ifconfig | grep -q "inet $gw " || { echo "拒绝:宿主上没有 $gw 这个地址" >&2; exit 1; } -feed_url="http://$gw:$port/appcast.xml" -zip_name=$(basename "$zip1018"); zip_url="http://$gw:$port/$zip_name" - -sign="swift tests/vm/sparkle-feed-sign.swift" -real_pub=$(/usr/libexec/PlistBuddy -c 'Print SUPublicEDKey' prototype/Info.plist) -$sign verify "$real_pub" site/public/appcast.xml >/dev/null || { echo "自检失败:线上清单验不过真公钥" >&2; exit 1; } -read -r priv pub < <($sign keygen) -cp "$zip1018" "$tmp/serve/$zip_name" -zip_len=$(wc -c < "$tmp/serve/$zip_name" | tr -d ' ') -zip_sig=$($sign sign "$priv" "$tmp/serve/$zip_name") -python3 -I - "$tmp/serve/appcast.xml" "$zip_url" "$zip_len" "$zip_sig" <<'PY' -import re, sys -dest, zip_url, zip_len, zip_sig = sys.argv[1:5] -live = open('site/public/appcast.xml', encoding='utf-8').read() -body = live[:live.index('|.*?', '', item, flags=re.S), 'unfilled TODO left in item' -i = body.index('') -body = body[:i] + item.strip() + '\n ' + body[i:] -open(dest, 'w', encoding='utf-8').write(body) -PY -sig=$($sign sign "$priv" "$tmp/serve/appcast.xml"); len=$(wc -c < "$tmp/serve/appcast.xml" | tr -d ' ') -printf '\n' "$sig" "$len" >> "$tmp/serve/appcast.xml" -$sign verify "$pub" "$tmp/serve/appcast.xml" >/dev/null || { echo "本地清单自验签失败" >&2; exit 1; } -xmllint --noout "$tmp/serve/appcast.xml" 2>/dev/null || python3 -c "import xml.etree.ElementTree,sys; xml.etree.ElementTree.parse('$tmp/serve/appcast.xml')" || { echo "本地清单不是合法 XML" >&2; exit 1; } -echo "INFO 本地清单已生成(1.0.18 条目指向 ${zip_url},length=${zip_len})" - -mkdir -p "$out" -# 1.0.17 的包 -if [ -z "$app1017" ]; then - echo "==> gh release download v1.0.17 --repo $repo" - gh release download v1.0.17 --repo "$repo" -p 'WindowShade-v1.0.17.zip' -D "$tmp" --clobber - app1017="$tmp/WindowShade-v1.0.17.zip" -fi -case "$app1017" in - *.zip) ditto -x -k "$app1017" "$tmp/1017" ;; - *.app) mkdir -p "$tmp/1017" && cp -R "$app1017" "$tmp/1017/" ;; - *) echo "不认识的包:$app1017" >&2; exit 1 ;; -esac -app17="$tmp/1017/WindowShade.app" -[ -d "$app17" ] || { echo "解包后找不到 $app17" >&2; exit 1; } - -(cd "$tmp/serve" && python3 -u -m http.server "$port" --bind "$gw" > "$tmp/http.log" 2>&1) & http_pid=$! -sleep 1 -curl -sf "http://$gw:$port/appcast.xml" >/dev/null || { echo "本地清单服务没起来" >&2; exit 1; } - -scp -q "${ssh_opts[@]}" tests/vm/updater-in-guest.sh "$host:/tmp/updater-in-guest.sh" -g "bash /tmp/updater-in-guest.sh prep" | sed 's/^/ /' -guest_touched=1 -rm -f "$tmp/app1017.tar"; ditto -c -k --keepParent "$app17" "$tmp/app1017.tar" -scp -q "${ssh_opts[@]}" "$tmp/app1017.tar" "$host:/tmp/app1017.zip" -g "cd \$HOME && rm -rf wsqa-p3-1017 && mkdir wsqa-p3-1017 && ditto -x -k /tmp/app1017.zip wsqa-p3-1017" | sed 's/^/ /' -g "bash /tmp/updater-in-guest.sh run p3-1017 \$HOME/wsqa-p3-1017/WindowShade.app $feed_url $pub plist" | tee "$tmp/guest-run.log" | sed 's/^/ /' - -# 证据拷回 -mkdir -p "$out" -cp "$tmp/http.log" "$out/http-access.log" 2>/dev/null || true -g "cat \$HOME/wsqa-p3/logs/* 2>/dev/null" > "$out/guest-logs.txt" || true - -# 判读:清单取到、zip 取到、日志认出 1.0.18、没有下载/安装报错 -feed_hit=$(grep -c "GET /appcast.xml" "$tmp/http.log" || true) -zip_hit=$(grep -c "GET /$zip_name" "$tmp/http.log" || true) -applog=$(g "cat \$HOME/wsqa-p3/logs/p3-1017-app.log 2>/dev/null" || true) -found18=$(printf '%s' "$applog" | grep -c "1\.0\.18" || true) -errors=$(printf '%s' "$applog" | grep -ci "error" || true) -echo "---- 判读 ----" -echo "feed_hit=$feed_hit zip_hit=$zip_hit found18=$found18 error_lines=$errors" -if [ "$feed_hit" -ge 1 ] && [ "$zip_hit" -ge 1 ] && [ "$found18" -ge 1 ]; then - echo "PASS updater-1018:1.0.17 取了清单、下载了 1.0.18 的 zip、日志认出 1.0.18(安装那一下留 Aaron)" - exit 0 -elif [ "$feed_hit" -ge 1 ] && [ "$found18" -ge 1 ]; then - echo "INCONCLUSIVE updater-1018:认出了 1.0.18 但没看到取 zip(Sparkle 可能延后下载)" - exit 0 -else - echo "INCONCLUSIVE updater-1018:清单没被取到或没认出版本(feed_hit=$feed_hit found18=${found18});绝不记 PASS" - exit 0 -fi diff --git a/tools/archive/accessory-probe/README.md b/tools/archive/accessory-probe/README.md deleted file mode 100644 index 9aa8f686..00000000 --- a/tools/archive/accessory-probe/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# 配件探针 - -独立 Foundation + IOBluetooth 诊断,读取已配对设备和当前连接状态,不接主 App。 - -```sh -bash tools/accessory-probe/run.sh --summary -bash tools/accessory-probe/run.sh --list -bash tools/accessory-probe/run.sh --help -``` - -默认仅输出配对、连接、已连接音视频类设备的数量;`--list` 明确选择后输出名称与状态。 -设备名称中的控制字符转义为单行,设备地址不输出。一次只接受一种模式。 -查询不可用报未知并退出 1,不误报为 0 台;成功退出 0。 - -2026-09-30 官方接口已编译运行:本机 11 台配对、3 台连接、其中 1 台音视频类。 -音视频类别不等于 AirPods;名字和连接也不证明是谁佩戴或用户是否在场。 -AirPods 自动切换、入盒会改变连接状态,不能直接拿一次断连触发安全判断。 - -目标 macOS 14.0,输出 `.build/accessory-probe/AccessoryProbe`。 -不扫描、连接/断开、请求 RSSI 或查询 AirTag/查找网络。 diff --git a/tools/archive/accessory-probe/main.swift b/tools/archive/accessory-probe/main.swift deleted file mode 100644 index 4603bade..00000000 --- a/tools/archive/accessory-probe/main.swift +++ /dev/null @@ -1,136 +0,0 @@ -// 独立蓝牙配件探针(macOS 原生诊断)。 -// -// **不是主 App 的一部分**:单独编译、单独运行,只回答一个问题—— -// 这台机器的已配对蓝牙设备里,有多少「音频/视频大类」设备当前处于连接状态。 -// -// 用法(都经 tools/accessory-probe/run.sh): -// run.sh 等价 --summary,只打印计数 -// run.sh --summary 只打印计数:已配对 / 已连接 / 连接中的音视频设备 -// run.sh --list 逐个列出用户可读名称与是否连接、是否音视频大类 -// run.sh --help | -h 用法 -// -// 刻意约束(怕读者误解这份输出的含义): -// - 只用 Foundation + 官方 IOBluetoothDevice.pairedDevices(),不扫蓝牙、不连接/断开、 -// 不请求 RSSI、不碰 UI、不碰 AirTag 相关 API; -// - --summary 只输出计数,**绝不**输出任何设备名称、地址或身份信息; -// - --list 会输出名称(缺名写 unnamed),但**绝不**输出设备地址; -// - 这里的计数**不是**「人在场」「已解锁」之类的认证证明; -// - 配对列表不可用时报告「查询不可用/未知」并退出 1,**不**当成 0 台。 - -import Foundation -import IOBluetooth - -// MARK: - 参数解析 - -private enum Mode { - case summary - case list - case help -} - -private func parseArguments() -> (mode: Mode?, error: String?) { - let args = Array(CommandLine.arguments.dropFirst()) - if args.isEmpty { return (.summary, nil) } - if args.count > 1 { return (nil, "参数过多:只接受 0 或 1 个参数") } - switch args[0] { - case "--summary": return (.summary, nil) - case "--list": return (.list, nil) - case "--help", "-h": return (.help, nil) - default: return (nil, "未知参数:\(args[0])") - } -} - -private let usage = """ -accessory-probe —— 已配对蓝牙配件计数探针(本机诊断,非主 App) - -用法: - run.sh 等价 --summary,只打印计数 - run.sh --summary 只打印计数:已配对 / 已连接 / 连接中的音视频设备 - run.sh --list 逐个列出名称(缺名写 unnamed)与是否连接、是否音视频大类 - run.sh --help, -h 显示本帮助 - -说明: - * --summary 只输出计数,绝不输出名称、地址或身份信息; - * --list 输出名称但绝不输出设备地址; - * 这些计数不是认证证明,不能用来断言「人在场」或「已解锁」; - * 不支持 AirTag / 查找网络相关查询;不扫描、不连接、不断开、不请求 RSSI。 - -退出码:0 成功;1 参数非法或设备查询不可用。 -""" - -// MARK: - 名称转义 - -/// 把名称里的换行与其它控制字符压成一行,保证每条输出只占一行。 -private func escapeToSingleLine(_ raw: String) -> String { - var out = "" - for scalar in raw.unicodeScalars { - switch scalar { - case "\n": out += "\\n" - case "\r": out += "\\r" - case "\t": out += "\\t" - default: - if CharacterSet.controlCharacters.contains(scalar) || scalar.value == 0x2028 || scalar.value == 0x2029 { - out += String(format: "\\u%04X", scalar.value) - } else { - out.unicodeScalars.append(scalar) - } - } - } - let trimmed = out.trimmingCharacters(in: .whitespaces) - return trimmed.isEmpty ? "unnamed" : trimmed -} - -/// 官方 API 返回的蓝牙「大类」编码:0x04 = 音频/视频。 -private func isAudioVideoMajor(_ device: IOBluetoothDevice) -> Bool { - return Int(device.deviceClassMajor) == 4 -} - -// MARK: - 主流程 - -private func run() -> Int32 { - switch parseArguments() { - case (_, let error?): - FileHandle.standardError.write(Data(("accessory-probe: \(error)\n\n\(usage)\n").utf8)) - return 1 - case (.help?, _): - print(usage) - return 0 - case (.summary?, _), (.list?, _): - break - default: - break - } - let mode = parseArguments().mode ?? .summary - - // 唯一可信来源:官方配对列表。返回 nil 就是查询不可用,不当作 0 台。 - guard let devices = IOBluetoothDevice.pairedDevices() as? [IOBluetoothDevice] else { - FileHandle.standardError.write(Data("配件查询不可用:pairedDevices() 返回未知结果。\n".utf8)) - return 1 - } - - let paired = devices.count - let connected = devices.filter { $0.isConnected() } - let connectedAudioVideo = connected.filter { isAudioVideoMajor($0) } - - if mode == .summary { - // 只输出计数,绝不输出名称 / 地址 / 身份信息。 - print("已配对设备数: \(paired)") - print("已连接设备数: \(connected.count)") - print("连接中的音频/视频设备数: \(connectedAudioVideo.count)") - return 0 - } - - print("已配对设备: \(paired)(下面仅列名称与状态,不输出地址)") - if devices.isEmpty { - print("(没有已配对设备)") - } - for device in devices { - let name = escapeToSingleLine(device.name ?? "") - let connectedText = device.isConnected() ? "yes" : "no" - let classText = isAudioVideoMajor(device) ? "音频/视频" : "其它" - print("- \(name) | connected: \(connectedText) | 大类: \(classText)") - } - return 0 -} - -exit(run()) diff --git a/tools/archive/accessory-probe/run.sh b/tools/archive/accessory-probe/run.sh deleted file mode 100644 index 55e35489..00000000 --- a/tools/archive/accessory-probe/run.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash -# -# tools/accessory-probe/run.sh -# -# 独立编译并运行蓝牙配件探针。不接触主 App 工程,只链接 Foundation 与 IOBluetooth。 -# 默认使用 --summary;调用者参数原样透传。 -# 只编译一个普通可执行文件,不做 codesign。 - -set -euo pipefail - -# ---- 从脚本自身位置定位仓库根 ---- -SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -REPO_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)" - -# ---- 编译输出路径 ---- -BUILD_DIR="${REPO_ROOT}/.build/accessory-probe" -BIN="${BUILD_DIR}/AccessoryProbe" -SOURCE="${SCRIPT_DIR}/main.swift" - -if [[ ! -f "${SOURCE}" ]]; then - echo "错误: 找不到源文件 ${SOURCE}" >&2 - exit 1 -fi - -mkdir -p "${BUILD_DIR}" - -# ---- 编译:普通可执行文件,无需签名 ---- -xcrun swiftc \ - -O \ - -target "$(uname -m)-apple-macosx14.0" \ - -framework Foundation \ - -framework IOBluetooth \ - -o "${BIN}" \ - "${SOURCE}" - -# ---- 直接运行 binary,保留 stdout;不用 open ---- -if [[ "$#" -eq 0 ]]; then - set -- --summary -fi - -exec "${BIN}" "$@" diff --git a/tools/archive/activity-source-probe/main.swift b/tools/archive/activity-source-probe/main.swift deleted file mode 100644 index bffca2fa..00000000 --- a/tools/archive/activity-source-probe/main.swift +++ /dev/null @@ -1,26 +0,0 @@ -import Cocoa -_ = NSApplication.shared -MainActor.assumeIsolated { - UserDefaults.standard.setVolatileDomain([NotchActivitySources.musicKey: false], forName: UserDefaults.argumentDomain) - let sources = NotchActivitySources() - var deliveries = 0 - let began = ProcessInfo.processInfo.systemUptime - sources.onSnapshot = { items in - deliveries += 1 - precondition(deliveries == 1, "Duplicate or late delivery after stop") - print("SOURCE CHECK: native snapshot received; kinds=\(items.map { $0.kind.rawValue }); elapsed=\(String(format: "%.3f", ProcessInfo.processInfo.systemUptime - began))s; music permissions not requested; audio not captured") - fflush(nil) - sources.stop() - } - sources.start(); sources.stop(); sources.start() - let deadline = Date().addingTimeInterval(6) - while deliveries == 0 && Date() < deadline { - _ = RunLoop.main.run(mode: .default, before: Date().addingTimeInterval(0.05)) - } - precondition(deliveries == 1, "Native snapshot timed out") - sources.stop() - RunLoop.main.run(until: Date().addingTimeInterval(0.3)) - precondition(deliveries == 1, "Stopped source delivered late") - print("PASS source stop/restart and stopped delivery") - fflush(nil) -} diff --git a/tools/archive/activity-source-probe/run.sh b/tools/archive/activity-source-probe/run.sh deleted file mode 100644 index 9a8c75ec..00000000 --- a/tools/archive/activity-source-probe/run.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -set -euo pipefail -cd "$(dirname "$0")/../.." -mkdir -p .build/activity-source-probe -swiftc -swift-version 6 -target "$(uname -m)-apple-macosx14.0" \ - prototype/Core/NotchActivities.swift prototype/Core/IslandMetrics.swift prototype/App/NotchActivityPollPolicy.swift prototype/App/NotchActivitySources.swift tools/activity-source-probe/main.swift \ - -framework Cocoa -framework Carbon -framework CoreAudio -o .build/activity-source-probe/probe -exec .build/activity-source-probe/probe diff --git a/tools/archive/capture-color/compare-srgb-p3.py b/tools/archive/capture-color/compare-srgb-p3.py deleted file mode 100644 index 2f9b86d3..00000000 --- a/tools/archive/capture-color/compare-srgb-p3.py +++ /dev/null @@ -1,111 +0,0 @@ -#!/usr/bin/env python3 -"""H3: per-pixel dE between an sRGB capture and a displayP3 capture of the same content. - -Usage: python3 -I compare-srgb-p3.py capsule-raw-sRGB.png capsule-raw-displayP3.png - -Two readings are reported (CIEDE2000, D65, pure Python + PIL, no numpy): - tagged P3 pixels decoded as Display P3, converted to sRGB-linear, compared with the sRGB capture. - This is what a colour-managed display layer (AVSampleBufferDisplayLayer) shows. - untagged P3 numbers compared as if they were sRGB numbers. This is what happens when a patch - detected / pasted back with sRGB assumptions meets a P3 frame (the "negative cast"). -""" -import math -import sys -from PIL import Image - -def lin(c): - c /= 255.0 - return c / 12.92 if c <= 0.04045 else ((c + 0.055) / 1.055) ** 2.4 - -# Display P3 (D65) linear -> XYZ ; sRGB linear -> XYZ -M_P3 = ((0.4865709, 0.2656677, 0.1982173), (0.2289746, 0.6917385, 0.0792869), (0.0, 0.0451134, 1.0439444)) -M_S = ((0.4124564, 0.3575761, 0.1804375), (0.2126729, 0.7151522, 0.0721750), (0.0193339, 0.1191920, 0.9503041)) -WP = (0.95047, 1.0, 1.08883) - -def xyz(m, rgb): - r, g, b = (lin(v) for v in rgb) - return tuple(row[0] * r + row[1] * g + row[2] * b for row in m) - -def lab(x): - def f(t): - return t ** (1 / 3) if t > 216 / 24389 else (24389 / 27 * t + 16) / 116 - fx, fy, fz = (f(x[i] / WP[i]) for i in range(3)) - return (116 * fy - 16, 500 * (fx - fy), 200 * (fy - fz)) - -def de2000(a, b): - L1, a1, b1 = a; L2, a2, b2 = b - C1 = math.hypot(a1, b1); C2 = math.hypot(a2, b2) - Cm = (C1 + C2) / 2 - G = 0.5 * (1 - math.sqrt(Cm ** 7 / (Cm ** 7 + 25 ** 7))) - ap1 = (1 + G) * a1; ap2 = (1 + G) * a2 - Cp1 = math.hypot(ap1, b1); Cp2 = math.hypot(ap2, b2) - hp1 = math.degrees(math.atan2(b1, ap1)) % 360 if Cp1 else 0.0 - hp2 = math.degrees(math.atan2(b2, ap2)) % 360 if Cp2 else 0.0 - dL = L2 - L1; dC = Cp2 - Cp1 - if Cp1 * Cp2 == 0: dh = 0.0 - else: - dh = hp2 - hp1 - if dh > 180: dh -= 360 - elif dh < -180: dh += 360 - dH = 2 * math.sqrt(Cp1 * Cp2) * math.sin(math.radians(dh / 2)) - Lm = (L1 + L2) / 2; Cpm = (Cp1 + Cp2) / 2 - if Cp1 * Cp2 == 0: hm = hp1 + hp2 - elif abs(hp1 - hp2) <= 180: hm = (hp1 + hp2) / 2 - else: hm = (hp1 + hp2 + 360) / 2 if hp1 + hp2 < 360 else (hp1 + hp2 - 360) / 2 - T = (1 - 0.17 * math.cos(math.radians(hm - 30)) + 0.24 * math.cos(math.radians(2 * hm)) - + 0.32 * math.cos(math.radians(3 * hm + 6)) - 0.20 * math.cos(math.radians(4 * hm - 63))) - dtheta = 30 * math.exp(-(((hm - 275) / 25) ** 2)) - Rc = 2 * math.sqrt(Cpm ** 7 / (Cpm ** 7 + 25 ** 7)) - Sl = 1 + 0.015 * (Lm - 50) ** 2 / math.sqrt(20 + (Lm - 50) ** 2) - Sc = 1 + 0.045 * Cpm; Sh = 1 + 0.015 * Cpm * T - Rt = -math.sin(math.radians(2 * dtheta)) * Rc - return math.sqrt((dL / Sl) ** 2 + (dC / Sc) ** 2 + (dH / Sh) ** 2 + Rt * (dC / Sc) * (dH / Sh)) - -def stats(name, pairs_count, total): - vals = sorted(pairs_count) # list of (de, n) - mean = sum(d * n for d, n in vals) / total - def pct(p): - k = p * total; acc = 0 - for d, n in vals: - acc += n - if acc >= k: return d - return vals[-1][0] - over = lambda t: sum(n for d, n in vals if d > t) / total * 100 - print(f"{name:9s} mean {mean:6.2f} p50 {pct(.5):6.2f} p95 {pct(.95):6.2f} p99 {pct(.99):6.2f} max {vals[-1][0]:6.2f} >1: {over(1):5.1f}% >2.3: {over(2.3):5.1f}% >5: {over(5):5.1f}%") - -def main(): - sp, pp = sys.argv[1], sys.argv[2] - a = Image.open(sp).convert("RGB"); b = Image.open(pp).convert("RGB") - assert a.size == b.size, (a.size, b.size) - n = a.size[0] * a.size[1] - pa, pb = list(a.tobytes()), list(b.tobytes()) - pa = [tuple(pa[i:i + 3]) for i in range(0, len(pa), 3)] - pb = [tuple(pb[i:i + 3]) for i in range(0, len(pb), 3)] - cache = {} - lab_s, lab_p = {}, {} - hist = {"tagged": {}, "untagged": {}} - for s, p in zip(pa, pb): - k = (s, p) - r = cache.get(k) - if r is None: - ls = lab_s.get(s) or lab_s.setdefault(s, lab(xyz(M_S, s))) - lp_t = lab(xyz(M_P3, p)) # P3 decoded as P3 - lp_u = lab_p.get(p) or lab_p.setdefault(p, lab(xyz(M_S, p))) # P3 numbers read as sRGB - r = cache[k] = (round(de2000(ls, lp_t), 3), round(de2000(ls, lp_u), 3)) - for key, v in zip(("tagged", "untagged"), r): - hist[key][v] = hist[key].get(v, 0) + 1 - print(f"size {a.size}, {n} px, {len(cache)} distinct pairs, CIEDE2000") - ident = sum(1 for s, p in zip(pa, pb) if s == p) / n * 100 - print(f"byte-identical pixels: {ident:.1f}%") - for key in ("tagged", "untagged"): - stats(key, list(hist[key].items()), n) - # The two captures are separate runs; pixels with dE > 5 are content that moved between - # runs (text, caret, animation), not colour space. Report the colour-only remainder too. - for key in ("tagged", "untagged"): - kept = [(d, c) for d, c in hist[key].items() if d <= 5] - stats(key + "<=5", kept, sum(c for _, c in kept)) - moved = sum(c for d, c in hist["tagged"].items() if d > 5) - print(f"content-mismatch pixels (tagged dE>5): {moved} = {moved / n * 100:.2f}%") - -if __name__ == "__main__": - main() diff --git a/tools/archive/design-qa-batch23-29/Batch26CombinedEntry.inputs.json b/tools/archive/design-qa-batch23-29/Batch26CombinedEntry.inputs.json deleted file mode 100644 index 28c11b57..00000000 --- a/tools/archive/design-qa-batch23-29/Batch26CombinedEntry.inputs.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "entry": { - "tools/design-qa/Batch26CombinedEntry.swift": "5022c50015b3ae669bead15c1da6522bd1ceac7367a019fe88673e5999f08fcf" - }, - "inputs": { - "tools/design-qa/NotchRetargetPreview.swift": "82d438ab290b203e328f804eeb73c9403871c84788b9a36a1a1104ea9f42c233", - "tools/design-qa/PrivacyPageCompositionPreview.swift": "03d3e257e94cec06a647c8996ad5ec6932f8643f77dedad6f97b459f0b35bf92", - "tools/design-qa/make-batch26-entry.py": "2a4f7f568649d0145550d9f81533e1ec619855de983271f71b56f2891cd2e703" - } -} diff --git a/tools/archive/design-qa-batch23-29/Batch26CombinedEntry.swift b/tools/archive/design-qa-batch23-29/Batch26CombinedEntry.swift deleted file mode 100644 index 333c1583..00000000 --- a/tools/archive/design-qa-batch23-29/Batch26CombinedEntry.swift +++ /dev/null @@ -1,355 +0,0 @@ -import Cocoa -#if !swift(>=6.0) -#error("Swift6 required") -#endif -enum PrivacyPageCompositionPreview { - final class Host:NSView {override var isFlipped:Bool {true}; override func draw(_ rect:NSRect){NSColor.textBackgroundColor.setFill();rect.fill()}} - final class Mock:NSObject {var actions=0; @objc func pressed(_ sender:Any?){actions += 1}} - enum Failure:Error {case check(String)} - @MainActor static func label(_ text:String,_ offset:CGFloat = 0,_ weight:NSFont.Weight = .regular)->NSTextField { - let f=NSTextField(wrappingLabelWithString:text);f.font=SystemAppearancePolicy.font(relativeToBody:offset,weight:weight);f.maximumNumberOfLines=0;return f - } - // Candidate composition of the existing UI factories; no AppDelegate is created. - @MainActor static func card(_ rows:[NSView])->NSView { - let box=SettingsGroupBox();box.translatesAutoresizingMaskIntoConstraints=false - let stack=NSStackView();stack.orientation = .vertical;stack.alignment = .leading;stack.spacing=0;stack.translatesAutoresizingMaskIntoConstraints=false;box.addSubview(stack) - NSLayoutConstraint.activate([stack.leadingAnchor.constraint(equalTo:box.leadingAnchor,constant:16),stack.trailingAnchor.constraint(equalTo:box.trailingAnchor,constant:-16),stack.topAnchor.constraint(equalTo:box.topAnchor,constant:10),stack.bottomAnchor.constraint(equalTo:box.bottomAnchor,constant:-10)]) - for (i,row) in rows.enumerated(){ - if i>0 {let sep=NSBox();sep.boxType = .separator;sep.translatesAutoresizingMaskIntoConstraints=false;stack.addArrangedSubview(sep);sep.widthAnchor.constraint(equalTo:stack.widthAnchor).isActive=true;sep.heightAnchor.constraint(equalToConstant:0.5).isActive=true} - stack.addArrangedSubview(row);row.widthAnchor.constraint(equalTo:stack.widthAnchor).isActive=true - };return box - } - @MainActor static func note(_ lead:String,_ text:String)->NSView { - let a=label(lead,0,.semibold),b=label(text,-2);b.textColor = .secondaryLabelColor - let s=NSStackView(views:[a,b]);s.orientation = .vertical;s.alignment = .leading;s.spacing=4 - b.widthAnchor.constraint(equalTo:s.widthAnchor).isActive=true;return s - } - @MainActor static func main() async { - _=NSApplication.shared;NSApp.setActivationPolicy(.prohibited) - do { try await run(URL(fileURLWithPath:CommandLine.arguments[1],isDirectory:true)) } - catch { fputs("FAIL \(error)\n",stderr); exit(1) } - } - /// 第26批组合入口调用这个:写到指定子目录(与动效探针输出互不覆盖)。出错就抛,由调用方决定退出码。 - @MainActor static func run(_ out:URL) async throws { - try FileManager.default.createDirectory(at:out,withIntermediateDirectories:true) - var frames=[[String:Any]]() - let visible=WS2PrivacyVisibility.visibleRows(WS2PrivacyData.rows,enabledFeatures:[]) - for appearance in [NSAppearance.Name.aqua,.darkAqua] {for expanded in [false,true] { - let mock=Mock(),root=Host(frame:NSRect(x:0,y:0,width:696,height:600)),doc=Host(frame:NSRect(x:0,y:0,width:696,height:600)) - let scroll=NSScrollView(frame:root.bounds);scroll.hasVerticalScroller=true;scroll.drawsBackground=false;scroll.documentView=doc;root.addSubview(scroll) - let page=NSStackView();page.orientation = .vertical;page.alignment = .leading;page.spacing=16;page.translatesAutoresizingMaskIntoConstraints=false;doc.addSubview(page) - NSLayoutConstraint.activate([page.leadingAnchor.constraint(equalTo:doc.leadingAnchor,constant:28),page.widthAnchor.constraint(equalToConstant:640),page.topAnchor.constraint(equalTo:doc.topAnchor,constant:22)]) - page.addArrangedSubview(WS2SettingsCopy.content(name:nil,subtitle:WS2PrivacyCopy.headerSubtitle(),symbol:WS2SettingsCopy.tableSymbol("lock.shield")).view) - let readAt=label(WS2PrivacyCopy.readAtText(Date(timeIntervalSince1970:0),timeZone:TimeZone(secondsFromGMT:0)!),-2);readAt.textColor = .secondaryLabelColor - let reread=NSButton(title:WS2PrivacyCopy.rereadTitle,target:mock,action:#selector(Mock.pressed(_:)));reread.bezelStyle = .rounded;reread.controlSize = .small - let details=NSButton(checkboxWithTitle:WS2PrivacyCopy.showDetailsTitle,target:mock,action:#selector(Mock.pressed(_:)));details.state=expanded ? .on:.off;details.controlSize = .small - let export=NSButton(title:WS2PrivacyCopy.exportTitle,target:mock,action:#selector(Mock.pressed(_:)));export.bezelStyle = .rounded;export.controlSize = .small - let spacer=NSView();spacer.setContentHuggingPriority(.init(1),for:.horizontal) - let toolbar=NSStackView(views:[readAt,reread,spacer,details,export]);toolbar.spacing=12;toolbar.alignment = .centerY;page.addArrangedSubview(toolbar);toolbar.widthAnchor.constraint(equalTo:page.widthAnchor).isActive=true - var rowViews=[(String,PrivacyRowView)](),groupNames=[String]() - for group in WS2PrivacyData.groups { - let rows=visible.filter{$0.group==group.title};guard !rows.isEmpty || group.title==WS2PrivacyCopy.destinationGroupTitle else {continue} - groupNames.append(group.title) - let heading=label(group.title,-1,.semibold);heading.textColor = .secondaryLabelColor - let caption=label(group.subtitle,-2);caption.textColor = .tertiaryLabelColor - let header=NSStackView(views:group.subtitle.isEmpty ? [heading]:[heading,caption]);header.alignment = .firstBaseline;header.spacing=8;page.addArrangedSubview(header);page.setCustomSpacing(8,after:header) - if group.title==WS2PrivacyCopy.destinationGroupTitle { - let network=WS2PrivacyCopy.networkCard(primaryHost:"updates.example.invalid",fallbackHost:"github.example.invalid") - for n in [note(network.lead,network.body),note(WS2PrivacyCopy.storageCard.lead,WS2PrivacyCopy.storageCard.body)]{let c=card([n]);page.addArrangedSubview(c);c.widthAnchor.constraint(equalTo:page.widthAnchor).isActive=true} - } - if !rows.isEmpty { - let views=rows.map {row -> NSView in - let titles=["activities":"实时活动","calendar":"日程","downloads":"浏览器下载","login":"登录时自动启动","autoUpdate":UpdateCopy.autoCheck,"desktop":"桌面开合","focusQuiet":"专注模式时更安静"] - let spec=row.switchID.flatMap {id in titles[id].map {PrivacySwitchSpec(title:$0,isOn:false,target:mock,action:#selector(Mock.pressed(_:)))}} - let value=row.id=="battery" ? "演示配件 82%":nil - let presentation=WS2PrivacyRowPresentation.make(row:row,value:value,hasValueSource:WS2PrivacyValues.hasValueSource(row.id),permissionGranted:row.permission == nil ? nil:false) - let v=PrivacyRowView(row:row,presentation:presentation,expanded:expanded,showDetails:expanded,switchSpec:spec,grantTarget:mock,grantAction:#selector(Mock.pressed(_:)),onToggle:{mock.actions += 1}) - rowViews.append((row.id,v));return v - };let c=card(views);page.addArrangedSubview(c);c.widthAnchor.constraint(equalTo:page.widthAnchor).isActive=true - } - } - let window=NSWindow(contentRect:root.bounds,styleMask:[.borderless],backing:.buffered,defer:false);window.isReleasedWhenClosed=false;window.alphaValue=0;window.appearance=NSAppearance(named:appearance);window.contentView=root;window.setFrameOrigin(NSPoint(x:-8000,y:-8000)) - root.layoutSubtreeIfNeeded();try await Task.sleep(nanoseconds:100_000_000);root.layoutSubtreeIfNeeded() - let height=ceil(page.frame.height)+44;doc.setFrameSize(NSSize(width:696,height:height));doc.layoutSubtreeIfNeeded() - for position in ["top","middle","bottom"] { - let maxY=max(0,height-scroll.contentView.bounds.height),y=position=="top" ? 0:position=="middle" ? maxY/2:maxY - scroll.contentView.scroll(to:NSPoint(x:0,y:y));scroll.reflectScrolledClipView(scroll.contentView);root.layoutSubtreeIfNeeded() - var records=[[String:Any]](),controls=[[String:Any]]() - for (id,v) in rowViews { - let r=v.convert(v.bounds,to:doc) - var fields=[[String:Any]]() - func visit(_ n:NSView){ - let b=n.convert(n.bounds,to:v) - if let f=n as? NSTextField {fields.append(["role":f.identifier?.rawValue ?? "header","text":f.stringValue,"x":b.minX,"y":b.minY,"width":b.width,"height":b.height,"neededHeight":f.cell?.cellSize(forBounds:NSRect(x:0,y:0,width:f.bounds.width,height:10000)).height ?? 0])} - if let s=n as? NSSwitch {controls.append(["row":id,"kind":"switch","mockTarget":s.target === mock,"width":b.width,"height":b.height,"state":s.state.rawValue])} - if let button=n as? NSButton,button.title==WS2PrivacyCopy.needsGrant {controls.append(["row":id,"kind":"grant","mockTarget":button.target === mock,"width":b.width,"height":b.height])} - n.subviews.forEach(visit) - };visit(v) - records.append(["id":id,"x":r.minX,"y":r.minY,"width":r.width,"height":r.height,"fields":fields]) - } - let name="\(appearance == .aqua ? "light":"dark")-\(expanded ? "expanded":"collapsed")-\(position)" - guard let bitmap=root.bitmapImageRepForCachingDisplay(in:root.bounds) else {throw Failure.check("bitmap")};root.cacheDisplay(in:root.bounds,to:bitmap) - guard let png=bitmap.representation(using:.png,properties:[:]) else {throw Failure.check("png")};try png.write(to:out.appendingPathComponent(name+".png")) - frames.append(["name":name,"expanded":expanded,"position":position,"groups":groupNames,"rows":records,"controls":controls,"contentHeight":height,"scrollY":scroll.contentView.bounds.minY,"maxScrollY":maxY,"pageWidth":page.frame.width,"actions":mock.actions,"visible":window.isVisible,"alpha":window.alphaValue,"active":NSApp.isActive]) - };window.contentView=nil;window.close() - }} - try JSONSerialization.data(withJSONObject:["frames":frames,"candidateOnly":true,"pageInstantiated":false,"sourcesRead":0,"settingsWrites":0,"globalInputEvents":0],options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("frames.json")) - print("PASS \(frames.count) static page composition fixtures") - } -} - -import Cocoa -import QuartzCore - -#if !swift(>=6.0) -#error("NotchRetargetPreview requires render-native-surfaces.sh --swift6") -#endif - -/// 第26批动效探针:同一实际 NotchCanvasView、隐藏自有宿主。逐轴记录接力配置(position.x/y、 -/// bounds.size.width/height、cornerRadius)、呈现轨迹、富内容延迟收形状的实际起点、近零行程 kick、 -/// 取消与过期回调、减少动态效果。配置与隐藏呈现证据,不是帧率/可见合成/真机验收。 -enum NotchRetargetPreview { - enum Failure: Error { case check(String) } - /// 时间点诊断:不把线程本地状态带过 await。 - @MainActor static func mainThreadNow() -> Bool { Thread.isMainThread } - @MainActor static func field(_ object: Any, _ name: String) -> Any? { - guard let value = Mirror(reflecting: object).children.first(where: { $0.label == name })?.value else { return nil } - let mirror = Mirror(reflecting: value) - return mirror.displayStyle == .optional ? mirror.children.first?.value : value - } - @MainActor static func box(_ r: NSRect) -> [String: CGFloat] { ["x":r.minX,"y":r.minY,"width":r.width,"height":r.height] } - /// 带真实内容的岛内容(一排一格,足够的“富内容”触发先退文字的路)。 - @MainActor static func richContent(id: UInt32, count: Int = 2) throws -> NotchCanvasView.Content { - let item = NotchActivity(id: "qa-retarget-\(id)", kind: .download, title: "演示下载", subtitle: "演示材料.zip", - symbol: "arrow.down.circle", startedAt: 0, progress: .count(count, 9), - isPaused: false, sessionPhase: nil) - guard let cell = NotchRow.ongoingCells(from: [item]).first else { throw Failure.check("pure Core projection") } - let ongoing = NotchTile.Ongoing(activityID: cell.activityID, subtitle: cell.subtitle, symbol: cell.symbol, - phase: cell.phase, isPaused: cell.isPaused, quantity: cell.quantity, quantityText: cell.quantityText, - spoken: cell.spoken, action: cell.action, closesRow: cell.closesRow, accessory: cell.accessory, - isStale: cell.isStale, isEnded: cell.isEnded) - return .init(tiles: [NotchTile(id: id, kind: .activity, snapshot: nil, icon: nil, title: cell.title, - waiting: false, ongoing: ongoing)], - dots: 0, dotsChanged: false, dotsY: 0, compact: nil, compactSlots: nil, alert: nil, hint: nil, - notchHeight: 33.5) - } - @MainActor static func emptyContent() -> NotchCanvasView.Content { - .init(tiles: [], dots: 0, dotsChanged: false, dotsY: 0, compact: nil, compactSlots: nil, alert: nil, hint: nil, - notchHeight: 33.5) - } - /// 一根轴上的动画:弹簧记录实际系数与归一化初速度;关键帧记录采样值(kick 路)。 - @MainActor static func animations(_ layer: CALayer) -> [[String: Any]] { - var out = [[String: Any]]() - for key in (layer.animationKeys() ?? []).sorted() { - guard let a = layer.animation(forKey: key) else { continue } - if let s = a as? CASpringAnimation { - var d: [String: Any] = ["key":key,"keyPath":s.keyPath ?? "","class":"CASpringAnimation", - "mass":Double(s.mass),"stiffness":Double(s.stiffness),"damping":Double(s.damping), - "duration":s.duration,"beginTime":s.beginTime,"additive":s.isAdditive, - "velocity":Double(s.initialVelocity)] - if let f = s.fromValue as? NSNumber { d["from"] = f.doubleValue } - out.append(d) - } else if let k = a as? CAKeyframeAnimation { - var d: [String: Any] = ["key":key,"keyPath":k.keyPath ?? "","class":"CAKeyframeAnimation", - "duration":k.duration,"beginTime":k.beginTime,"additive":k.isAdditive] - if let vs = k.values { d["values"] = vs.compactMap { ($0 as? NSNumber)?.doubleValue } } - if let kt = k.keyTimes { d["keyTimes"] = kt.map(\.doubleValue) } - out.append(d) - } - } - return out - } - @MainActor static func main() { - _ = NSApplication.shared; NSApp.setActivationPolicy(.prohibited) - guard Thread.isMainThread, NSApp.delegate == nil else { fatalError("own main-thread entry only") } - let out = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - Task { @MainActor in - do { try await run(out); exit(0) } - catch { - try? String(describing: error).write(to: out.appendingPathComponent("failure.txt"), atomically: true, encoding: .utf8) - print("FAILED retarget probe: \(error)"); exit(1) - } - } - // 只有本入口驱动 Cocoa;没有产品 delegate、监听、控制器、菜单或输入注入。 - NSApp.run() - } - @MainActor static func run(_ out: URL) async throws { - try FileManager.default.createDirectory(at: out, withIntermediateDirectories: true) - let oldOverride = Motion.reducedOverrideForProbe - defer { Motion.reducedOverrideForProbe = oldOverride } - var records = [[String: Any]]() - var trajectory = [[String: Any]]() - var counts = [String: Int]() - for reduced in [false, true] { - Motion.reducedOverrideForProbe = reduced - let mode = reduced ? "reduced" : "regular" - let bounds = NSRect(x:0,y:0,width:800,height:400) - let canvas = NotchCanvasView(frame: bounds) - let window = NSWindow(contentRect: bounds, styleMask: [.borderless], backing: .buffered, defer: false) - window.isReleasedWhenClosed = false; window.alphaValue = 0; window.contentView = canvas - window.setFrame(NSRect(x:-8000,y:-8000,width:800,height:400), display:false) - defer { window.close() } - guard let island = field(canvas,"island") as? CALayer else { throw Failure.check("actual island layer") } - let compact = NSRect(x:307.5,y:366.5,width:185,height:33.5) - let expanded = NSRect(x:247.5,y:180,width:305,height:220) - let wide = NSRect(x:187.5,y:180,width:425,height:220) - let rich = try richContent(id: 900), rich2 = try richContent(id: 901, count: 4) - let empty = emptyContent() - func token(_ shape: Motion.NotchShape) -> NotchCanvasView.Spring { - let value = Motion.notchSpring(for:shape) - return .init(response:value.response,bounce:value.bounce) - } - func tileIDs() -> [[String: UInt32]] { - var ids = [[String: UInt32]]() - guard let current = field(canvas,"current") as? NSView else { return ids } - func visit(_ view:NSView) { - if let tile = view as? NotchTileView, let model = field(tile,"tile") as? NotchTile { - ids.append(["id": model.id]) - } - view.subviews.forEach(visit) - } - visit(current) - return ids - } - func record(_ stage: String) { - let presented = island.presentation() - let current = field(canvas,"current") as? NSView - records.append(["stage":mode+"-"+stage, "mode":mode, "reduced":reduced, "time":CACurrentMediaTime(), - "model":box(island.frame), - "presentation":presented.map{box($0.frame)} as Any? ?? NSNull(), - "presentedRadius":presented?.cornerRadius as Any? ?? NSNull(), - "modelRadius":island.cornerRadius, - "animations":animations(island), - "otherKeys":["clip":(field(canvas,"clip") as? CALayer)?.animationKeys() ?? [], - "keyLine":(field(canvas,"keyLine") as? CALayer)?.animationKeys() ?? [], - "keyMask":(field(canvas,"keyMask") as? CALayer)?.animationKeys() ?? []], - "counts":counts, - "pendingExit":field(canvas,"contentExitPending") as? Bool ?? false, - "currentIdentity":current.map{String(describing:ObjectIdentifier($0))} as Any? ?? NSNull(), - "tileIDs":tileIDs(), - "active":NSApp.isActive, "visible":window.isVisible, "alpha":window.alphaValue, - "mainThread":Thread.isMainThread, "delegateNil":NSApp.delegate == nil, "cacheOnly":true]) - } - func trajectorySample(_ stage: String, _ count: Int, everyMilliseconds ms: UInt64 = 12) async throws { - var samples = [[String: Any]]() - for _ in 0..34 ? 28:12,allCorners:false,fill:.black,border:0.5), - content:content,spring:spring) { counts[key,default:0] += 1 } - } - func sleep(_ ms: UInt64) async throws { try await Task.sleep(nanoseconds: ms*1_000_000) } - - morph("initial", to: compact, content: empty, spring: nil); try await sleep(60); record("initial") - // 一、展开;中途反向;再次改向。每段记 before(旧动画配置)与 new/attach(新配置)。 - record("open-old") - morph("open", to: expanded, content: rich, spring: token(.expanded)) - record("open-new"); try await sleep(12); record("open-attach") - try await sleep(78); record("open-sample") - try await trajectorySample("open-flight", 6) - record("reverse-old") - morph("reverse", to: compact, content: rich, spring: token(.compact)) - record("reverse-new"); try await sleep(12); record("reverse-attach") - try await trajectorySample("reverse-flight", 8); record("reverse-sample") - record("reopen-old") - morph("reopen", to: expanded, content: rich, spring: token(.expanded)) - record("reopen-new"); try await sleep(12); record("reopen-attach") - try await trajectorySample("reopen-flight", 8) - // 二、只改宽度:飞行中把目标换成更宽的(位置/高度/圆角各自的行程独立)。 - record("width-old") - morph("width", to: wide, content: rich, spring: token(.expanded)) - record("width-new"); try await sleep(12); record("width-attach") - try await trajectorySample("width-flight", 6) - try await sleep(700); record("wide-settled") - // 三、停稳后只改宽度回展开:这一跳应当只有宽度轴有动画(其它轴零行程)。 - record("width-reverse-old") - morph("width-reverse", to: expanded, content: rich, spring: token(.expanded)) - record("width-reverse-new"); try await sleep(12); record("width-reverse-attach") - try await sleep(700); record("settled") - morph("pre-compact", to: compact, content: rich2, spring: token(.compact)) - try await sleep(700); record("pre-compact-settled") - if !reduced { - // 四、富内容先退文字:形状收得晚(0.10 淡出 + 0.04 一拍)。期间岛仍在飞, - // 结束时要读那一刻的呈现层——不能用发起时缓存的位置。 - morph("rich-exit-open", to: expanded, content: rich2, spring: token(.expanded)) - try await sleep(90) - record("rich-exit-old") - morph("rich-exit", to: compact, content: empty, spring: token(.compact)) - try await sleep(40); record("rich-exit-fade") - try await trajectorySample("rich-exit-gap", 10) - try await sleep(40); record("rich-exit-new") - try await sleep(500); record("rich-exit-settled") - // 五、近零行程 kick:还在飞时把目标设成此刻的外框(各轴几乎零行程、速度还在)。 - morph("kick-open", to: expanded, content: empty, spring: token(.expanded)) - try await sleep(90) - if let p = island.presentation()?.frame { - let target = NSRect(x: (p.midX*20).rounded()/20 - p.width/2, y: (p.midY*20).rounded()/20 - p.height/2, - width: p.width, height: p.height) - record("kick-old") - morph("kick", to: target, content: empty, spring: token(.expanded)) - record("kick-new"); try await sleep(12); record("kick-attach") - try await trajectorySample("kick-flight", 8) - try await sleep(500); record("kick-settled") - } - // 六、取消:退场淡出还没完又改回展开。旧退场的收尾不能清掉新内容,过期回调不重放。 - morph("cancel-open", to: expanded, content: rich, spring: token(.expanded)) - record("cancel-open-new") - try await sleep(80) - record("cancel-close-old") - morph("cancel-close", to: compact, content: empty, spring: token(.compact)) - record("cancel-close-new"); try await sleep(50); record("cancel-close-fade") - record("cancel-reopen-old") - morph("cancel-reopen", to: expanded, content: rich2, spring: token(.expanded)) - record("cancel-reopen-new") - try await sleep(600); record("cancel-reopen-settled") - morph("final-close", to: compact, content: empty, spring: token(.compact)) - try await sleep(600); record("final-closed") - } else { - // 减少动态效果:形状没有动画,直接到位。 - morph("rm-open", to: expanded, content: rich, spring: token(.expanded)) - record("rm-open-after"); try await sleep(60); record("rm-open-settled") - morph("rm-close", to: compact, content: empty, spring: token(.compact)) - record("rm-close-after"); try await sleep(60); record("rm-close-settled") - } - window.close() - } - Motion.reducedOverrideForProbe = oldOverride - let report: [String: Any] = ["records":records, "trajectory":trajectory, "counts":counts, - "overrideRestored":Motion.reducedOverrideForProbe == oldOverride, "cacheOnly":true, - "compositorAccepted":false, "realSources":0, "globalInputEvents":0, "productEntry":false, - "swiftLanguageVersion":6, "mainThread":mainThreadNow()] - try JSONSerialization.data(withJSONObject:report, options: [.prettyPrinted,.sortedKeys]) - .write(to: out.appendingPathComponent("retarget.json"), options: .atomic) - print("PASS \(records.count) actual retarget records; per-axis config; compositor untested") - } -} - -/// 第26批组合入口:新 @main 自有 NSApp.run,顺序调度隐私组合与动效接力两个套件; -/// 输出互不覆盖(page/ 静帧与登记表、motion/ 接力记录)。由 make-batch26-entry.py 生成。 -@main enum Batch26CombinedEntry { - static func main() { - _ = NSApplication.shared - NSApp.setActivationPolicy(.prohibited) - guard Thread.isMainThread, NSApp.delegate == nil else { fatalError("own main-thread entry only") } - let out = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - Task { @MainActor in - do { - try await PrivacyPageCompositionPreview.run(out.appendingPathComponent("page")) - try await NotchRetargetPreview.run(out.appendingPathComponent("motion")) - exit(0) - } catch { print("FAILED combined entry: \(error)"); exit(1) } - } - NSApp.run() - } -} diff --git a/tools/archive/design-qa-batch23-29/BrowserSettingsPreview.swift b/tools/archive/design-qa-batch23-29/BrowserSettingsPreview.swift deleted file mode 100644 index 40aa111b..00000000 --- a/tools/archive/design-qa-batch23-29/BrowserSettingsPreview.swift +++ /dev/null @@ -1,112 +0,0 @@ -import Cocoa - -// Actual page factory, without app startup, settings actions, or persistent writes. -@main enum BrowserSettingsPreview { - final class Host: NSView { override var isFlipped: Bool { true } } - final class Background: NSView { - override func draw(_ rect: NSRect) { NSColor.textBackgroundColor.setFill(); rect.fill() } - } - enum Failure: Error { case check(String) } - @MainActor static func main() async { - _ = NSApplication.shared - NSApp.setActivationPolicy(.prohibited) - let out = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - let defaults = UserDefaults.standard - let original = defaults.volatileDomain(forName: UserDefaults.argumentDomain) - defer { defaults.setVolatileDomain(original, forName: UserDefaults.argumentDomain) } - do { - try FileManager.default.createDirectory(at: out, withIntermediateDirectories: true) - var frames: [[String: Any]] = [] - for appearance in [NSAppearance.Name.aqua, .darkAqua] { - for trigger in [WindowSwitcherKeys.Trigger.off, .command] { - var domain = original - domain[WindowSwitcherKeys.defaultsKey] = trigger.rawValue - defaults.setVolatileDomain(domain, forName: UserDefaults.argumentDomain) - guard WindowSwitcherKeys.trigger == trigger else { throw Failure.check("volatile trigger") } - let owner = AppDelegate() - let page = owner.makeWindowBrowserSettingsPage() - let root = Background(frame: NSRect(x: 0, y: 0, width: 696, height: 600)) - root.appearance = NSAppearance(named: appearance) - let scroll = NSScrollView(frame: root.bounds) - scroll.drawsBackground = false - scroll.automaticallyAdjustsContentInsets = false - scroll.borderType = .noBorder - scroll.hasVerticalScroller = true - scroll.autohidesScrollers = true - root.addSubview(scroll) - let host = Host() - host.translatesAutoresizingMaskIntoConstraints = false - scroll.documentView = host - host.widthAnchor.constraint(equalTo: scroll.contentView.widthAnchor).isActive = true - host.heightAnchor.constraint(greaterThanOrEqualTo: scroll.contentView.heightAnchor).isActive = true - page.translatesAutoresizingMaskIntoConstraints = false - host.addSubview(page) - let preferred = page.widthAnchor.constraint(equalToConstant: settingsContentWidth) - preferred.priority = .dragThatCannotResizeWindow - NSLayoutConstraint.activate([ - page.centerXAnchor.constraint(equalTo: host.centerXAnchor), - page.leadingAnchor.constraint(greaterThanOrEqualTo: host.leadingAnchor, constant: 28), - page.trailingAnchor.constraint(lessThanOrEqualTo: host.trailingAnchor, constant: -28), - preferred, page.widthAnchor.constraint(lessThanOrEqualToConstant: settingsContentWidth), - page.topAnchor.constraint(equalTo: host.topAnchor, constant: 22), - page.bottomAnchor.constraint(equalTo: host.bottomAnchor, constant: -22) - ]) - let window = NSWindow(contentRect: root.bounds, styleMask: [.borderless], backing: .buffered, defer: false) - window.isReleasedWhenClosed = false - window.alphaValue = 0 - window.contentView = root - window.setFrame(NSRect(x: -8000, y: -8000, width: 696, height: 600), display: false) - root.layoutSubtreeIfNeeded() - try await Task.sleep(nanoseconds: 150_000_000) - root.layoutSubtreeIfNeeded() - var labels: [String] = [] - var toolTips: [String] = [] - var segments: [Int] = [] - var labelBounds: [[String: Any]] = [] - func visit(_ view: NSView) { - if let tip = view.toolTip { toolTips.append(tip) } - if let label = view as? NSTextField, !label.stringValue.isEmpty { - labels.append(label.stringValue) - let frame = label.convert(label.bounds, to: page) - labelBounds.append(["text": label.stringValue, "x": frame.minX, "width": frame.width, - "height": frame.height, "right": frame.maxX]) - } - if let segment = view as? NSSegmentedControl, segment.segmentCount == 3, - segment.label(forSegment: 2) == "⌘Tab" { segments.append(segment.selectedSegment) } - view.subviews.forEach(visit) - } - visit(page) - guard !window.isVisible, !NSApp.isActive, window.alphaValue == 0, - NSScreen.screens.allSatisfy({ !window.frame.intersects($0.frame) }), - page.bounds.width > 600, host.bounds.height > 600, - segments == [trigger == .off ? 0 : 2] else { throw Failure.check("host/selection") } - for position in ["top", "bottom"] { - scroll.contentView.scroll(to: NSPoint(x: 0, y: position == "top" ? 0 : max(0, host.bounds.height - scroll.contentView.bounds.height))) - scroll.reflectScrolledClipView(scroll.contentView) - root.layoutSubtreeIfNeeded() - let parent = appearance == .aqua ? "light" : "dark" - let name = "\(parent)-\(trigger.rawValue)-\(position)" - guard let bitmap = root.bitmapImageRepForCachingDisplay(in: root.bounds) else { throw Failure.check("bitmap") } - root.cacheDisplay(in: root.bounds, to: bitmap) - guard let data = bitmap.representation(using: .png, properties: [:]) else { throw Failure.check("png") } - try data.write(to: out.appendingPathComponent(name + ".png")) - frames.append(["name": name, "trigger": trigger.rawValue, "selected": segments[0], - "pageWidth": page.bounds.width, "pageHeight": page.bounds.height, - "hostHeight": host.bounds.height, "scrollY": scroll.contentView.bounds.minY, - "labels": labels, "toolTips": toolTips, "labelBounds": labelBounds, "visible": window.isVisible, - "active": NSApp.isActive, "alpha": window.alphaValue]) - } - window.contentView = nil - window.close() - withExtendedLifetime(owner) {} - } - } - defaults.setVolatileDomain(original, forName: UserDefaults.argumentDomain) - let report: [String: Any] = ["frames": frames, "actionsInvoked": 0, "persistentWrites": 0, - "permissionQueries": "AXIsProcessTrusted/CGPreflightScreenCaptureAccess only; no requests", - "argumentDomainRestored": defaults.volatileDomain(forName: UserDefaults.argumentDomain) as NSDictionary == original as NSDictionary] - try JSONSerialization.data(withJSONObject: report, options: [.prettyPrinted, .sortedKeys]).write(to: out.appendingPathComponent("frames.json")) - print("PASS 8 production browser settings frames; no actions; volatile domain restored") - } catch { fputs("FAIL \(error)\n", stderr); exit(1) } - } -} diff --git a/tools/archive/design-qa-batch23-29/CalendarCardPreview.swift b/tools/archive/design-qa-batch23-29/CalendarCardPreview.swift deleted file mode 100644 index 300e3447..00000000 --- a/tools/archive/design-qa-batch23-29/CalendarCardPreview.swift +++ /dev/null @@ -1,50 +0,0 @@ -import Cocoa - -/// 自造日程输入走生产呈现纯核;不读 EventKit,不开产品或会议链接。 -@main enum CalendarCardPreview { - @MainActor static func main() throws { - _ = NSApplication.shared - let output = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - try FileManager.default.createDirectory(at: output, withIntermediateDirectories: true) - let now = Date(timeIntervalSince1970: 1_790_000_000) - var calendar = Calendar(identifier: .gregorian) - calendar.timeZone = TimeZone(secondsFromGMT: 0)! - var frames: [[String: Any]] = [] - for appearance in [NSAppearance.Name.aqua, .darkAqua] { - for state in ["normal", "long-title", "no-location", "sharing", "started", "others"] { - let event = CalendarEventInput(id: "fixture", title: state == "long-title" ? "跨团队产品设计评审与下季度计划确认" : "设计评审", - start: now.addingTimeInterval(state == "started" ? -30 : 240), end: now.addingTimeInterval(1800), - url: "https://zoom.us/j/123456789", location: state == "no-location" ? nil : "3 号会议室", colorRGB: 0x0A84FF) - let other = CalendarEventInput(id: "other", title: "项目周会", start: now.addingTimeInterval(280), end: now.addingTimeInterval(2000)) - let selection = CalendarActivity.select(from: state == "others" || state == "sharing" ? [event, other] : [event], now: now)! - let text = CalendarCardText.make(selection, sharing: state == "sharing", calendar: calendar) - let card = CalendarCard(frame: .zero) - card.appearance = NSAppearance(named: appearance) - card.render(text, colorRGB: event.colorRGB, spoken: text.title + "," + text.big + text.small) - card.frame = NSRect(origin: .zero, size: card.interactionSize) - let container = NSView(frame: card.frame) - container.wantsLayer = true; container.layer?.backgroundColor = NSColor.black.cgColor - container.addSubview(card) - let window = NSWindow(contentRect: container.frame, styleMask: .borderless, backing: .buffered, defer: false) - window.isReleasedWhenClosed = false; window.contentView = container; window.appearance = card.appearance - container.layoutSubtreeIfNeeded() - let name = "\(appearance == .aqua ? "light" : "dark")-\(state)" - guard let rep = container.bitmapImageRepForCachingDisplay(in: container.bounds) else { - throw NSError(domain: "CalendarPreview", code: 1) - } - container.cacheDisplay(in: container.bounds, to: rep) - guard let data = rep.representation(using: .png, properties: [:]) else { - throw NSError(domain: "CalendarPreview", code: 2) - } - try data.write(to: output.appendingPathComponent(name + ".png")) - frames.append(["image": name + ".png", "width": card.bounds.width, "height": card.bounds.height, - "cornerRadius": card.interactionCornerRadius, "visibleWindow": window.isVisible, - "title": text.title, "location": text.location, "others": text.others ?? ""]) - window.close() - } - } - try JSONSerialization.data(withJSONObject: frames, options: [.prettyPrinted, .sortedKeys]) - .write(to: output.appendingPathComponent("frames.json")) - print("Rendered 12 production calendar card frames; no EventKit or visible window.") - } -} diff --git a/tools/archive/design-qa-batch23-29/ConductorSurfacePreview.swift b/tools/archive/design-qa-batch23-29/ConductorSurfacePreview.swift deleted file mode 100644 index d9a321bf..00000000 --- a/tools/archive/design-qa-batch23-29/ConductorSurfacePreview.swift +++ /dev/null @@ -1,64 +0,0 @@ -import Cocoa - -/// 只渲染生产视图;自造输入,不连助手、不读项目、不录音、不批准动作。 -@main enum ConductorSurfacePreview { - @MainActor static func main() throws { - _ = NSApplication.shared - NSApp.setActivationPolicy(.prohibited) - let output = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - try FileManager.default.createDirectory(at: output, withIntermediateDirectories: true) - var frames: [[String: Any]] = [] - for appearance in [NSAppearance.Name.aqua, .darkAqua] { - let states: [(String, ConductorNotch)] = [ - ("connected", .connected(project: "设计工作间", provider: .codex, effort: "high")), - ("models", .models(["Codex · high", "Claude Code · medium", "Codex · low"], selected: 0)), - ("listening", .listening(source: "iPhone")), - ("draft", .draft("请检查计时器的比例,再告诉我发现的问题。", header: "草稿 · 给 设计工作间 · Codex · high", uncertain: [3..<6])), - ("completed", .completed("已完成计时器检查。\n尺寸和层次已对齐。")), - ("disconnected", .disconnected)] - for (name, state) in states { - let view = WS2ConductorView(frame: .zero) - view.hostScreenWidth = 1440 - view.inputIsCurrent = { true } - _ = view.render(.connected(project: "设计工作间", provider: .codex, effort: "high")) - guard view.render(state) else { throw NSError(domain: "NativePreview", code: 1) } - if name == "listening" { view.updateAudio([0.03, 0.08, 0.18, 0.35, 0.12, 0.04]) } - try capture(view, size: view.interactionSize, name: name, appearance: appearance, output: output, frames: &frames) - view.revoke() - } - // 构造器只赋值;不调用项目选择、启动、登录、发消息或文件操作。 - let controller = WS2OwnedLaunchController(profileRoot: output.appendingPathComponent("unused-profile"), mayUse: { false }) - let view = WS2OwnedSessionView(controller: controller) - try capture(view, size: view.interactionSize, name: "owned-session-idle", appearance: appearance, output: output, frames: &frames) - view.revoke() - } - try JSONSerialization.data(withJSONObject: frames, options: [.prettyPrinted, .sortedKeys]) - .write(to: output.appendingPathComponent("frames.json")) - print("Rendered 14 actual production surfaces; all windows invisible, no runtime or external action.") - } - - @MainActor private static func capture(_ view: NSView, size: NSSize, name: String, appearance: NSAppearance.Name, - output: URL, frames: inout [[String: Any]]) throws { - view.frame = NSRect(origin: .zero, size: size) - // 采用生产黑底根的外观;这里仅拍卡片内容,完整宿主几何由 HostSurfacePreview 验证。 - let container = NotchCanvasView(frame: view.frame) - container.wantsLayer = true; container.layer?.backgroundColor = NSColor.black.cgColor - container.addSubview(view) - let window = NSWindow(contentRect: container.frame, styleMask: .borderless, backing: .buffered, defer: false) - window.isReleasedWhenClosed = false; window.contentView = container - window.appearance = NSAppearance(named: appearance) - container.layoutSubtreeIfNeeded() - let file = "\(appearance == .aqua ? "light" : "dark")-\(name).png" - guard let rep = container.bitmapImageRepForCachingDisplay(in: container.bounds) else { - throw NSError(domain: "NativePreview", code: 2) - } - container.cacheDisplay(in: container.bounds, to: rep) - guard let data = rep.representation(using: .png, properties: [:]) else { - throw NSError(domain: "NativePreview", code: 3) - } - try data.write(to: output.appendingPathComponent(file)) - frames.append(["image": file, "width": size.width, "height": size.height, "visibleWindow": window.isVisible, - "spoken": view.accessibilityLabel() ?? ""]) - window.close() - } -} diff --git a/tools/archive/design-qa-batch23-29/CountdownTimerCardPreview.swift b/tools/archive/design-qa-batch23-29/CountdownTimerCardPreview.swift deleted file mode 100644 index bae295d0..00000000 --- a/tools/archive/design-qa-batch23-29/CountdownTimerCardPreview.swift +++ /dev/null @@ -1,51 +0,0 @@ -import Cocoa - -/// 只渲染生产计时器卡片,不安装运行时、不响铃、不动用户窗口。 -@main enum CountdownTimerCardPreview { - @MainActor static func main() throws { - _ = NSApplication.shared - let output = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - try FileManager.default.createDirectory(at: output, withIntermediateDirectories: true) - CountdownTimerSettings.store = UserDefaults(suiteName: "WindowShade.DesignPreview.Countdown")! - var frames: [[String: Any]] = [] - for appearanceName in [NSAppearance.Name.aqua, .darkAqua] { - for state in ["picker", "running", "paused", "done", "alert"] { - let mode: CountdownTimerCard.Mode = state == "picker" ? .picker : state == "alert" ? .alert : .running - let card = CountdownTimerCard(mode: mode, minutes: 10) - var model = CountdownTimer() - _ = model.handle(.start(minutes: 10), at: .zero) - let now = WS2.Instant(seconds: state == "done" || state == "alert" ? 642 : 60)! - if state == "paused" { _ = model.handle(.pause, at: now) } - if state == "done" || state == "alert" { _ = model.handle(.tick, at: now) } - card.appearance = NSAppearance(named: appearanceName) - card.render(model, at: now) - card.frame = NSRect(origin: .zero, size: card.interactionSize) - let container = NSView(frame: card.frame) - container.wantsLayer = true - container.layer?.backgroundColor = NSColor.black.cgColor - container.addSubview(card) - let window = NSWindow(contentRect: container.frame, styleMask: .borderless, backing: .buffered, defer: false) - window.isReleasedWhenClosed = false - window.contentView = container - window.appearance = card.appearance - container.layoutSubtreeIfNeeded() - let name = "\(appearanceName == .aqua ? "light" : "dark")-\(state)" - guard let rep = container.bitmapImageRepForCachingDisplay(in: container.bounds) else { - throw NSError(domain: "CountdownPreview", code: 1) - } - container.cacheDisplay(in: container.bounds, to: rep) - guard let png = rep.representation(using: .png, properties: [:]) else { - throw NSError(domain: "CountdownPreview", code: 2) - } - try png.write(to: output.appendingPathComponent(name + ".png")) - frames.append(["image": name + ".png", "width": card.bounds.width, "height": card.bounds.height, - "minimumHeight": card.interactionMinimumHeight, "cornerRadius": card.interactionCornerRadius, - "spoken": card.accessibilityLabel() ?? "", "visibleWindow": window.isVisible]) - window.close() - } - } - try JSONSerialization.data(withJSONObject: frames, options: [.prettyPrinted, .sortedKeys]) - .write(to: output.appendingPathComponent("frames.json")) - print("Rendered 10 production timer card frames; no window shown and no timer host started.") - } -} diff --git a/tools/archive/design-qa-batch23-29/FeedbackPreview.swift b/tools/archive/design-qa-batch23-29/FeedbackPreview.swift deleted file mode 100644 index effee232..00000000 --- a/tools/archive/design-qa-batch23-29/FeedbackPreview.swift +++ /dev/null @@ -1,619 +0,0 @@ -import Cocoa -import CryptoKit - -/// 实际 owned 会话样件:用真实 `WS2OwnedLaunchController` 驱动 -/// `tests/fixtures/conductor-backend.py` 合成 stdio 后端,在离屏 NotchPanel 里 -/// 捕获各阶段画面。不运行真实 codex、真实项目、账号、网络、浏览器或产品 main。 -/// -/// 适用约束(docs/handoff/START-HERE-deepseek.md 总则): -/// - 「不假装成功」:每一步失败即停止,绝不盲重试;结果只记录实际观测。 -/// - 不合成键盘/鼠标事件:只派发本地诊断按钮action,不点击发送/登录/授权。 -/// - 自造项目放系统临时目录的独有目录,避开真实祖先配置;错误路径保留证据、不删输出。 -/// - `NSApp` activationPolicy = .prohibited;所有面板置 x = -8000 并验证不与其 -/// 它任何屏幕相交;只允许宿主自身把面板 orderFront 到屏幕外,不激活、不抢焦点。 -enum FeedbackOwnedPreview { - enum Failure: Error { case check(String) } - - @MainActor static func render(_ output: URL) async throws { - _ = NSApplication.shared - NSApp.setActivationPolicy(.prohibited) - try FileManager.default.createDirectory(at: output, withIntermediateDirectories: true) - let repo = URL(fileURLWithPath: FileManager.default.currentDirectoryPath, isDirectory: true) - let fixture = repo.appendingPathComponent("tests/fixtures/conductor-backend.py") - let fixtureSHA = try sha256(fixture) - - // 生产门禁拒绝祖先 .codex/.agents;不能把样件项目放在用户仓库或 HOME 下。 - let buildRoot = FileManager.default.temporaryDirectory.resolvingSymlinksInPath().standardizedFileURL - let tempRoot = buildRoot.appendingPathComponent("owned-phase-preview-" + UUID().uuidString, isDirectory: true) - .resolvingSymlinksInPath().standardizedFileURL - try FileManager.default.createDirectory(at: tempRoot, withIntermediateDirectories: true, attributes: [.posixPermissions: 0o700]) - - // 复制已有 backend 再 chmod,绝不改动原 fixture。 - let backend = tempRoot.appendingPathComponent("synthetic-codex.py") - let original=try String(contentsOf:fixture,encoding:.utf8) - let anchor=" emit({\"method\": \"turn/started\", \"params\": {\"threadId\": thread, \"turn\": {\"id\": turn}}})" - guard original.components(separatedBy:anchor).count==2 else { throw Failure.check("synthetic backend delta anchor") } - let extraDelta="\n if text.endswith('native-preview'):\n emit({'method': 'item/agentMessage/delta', 'params': {'threadId': thread, 'turnId': turn, 'delta': '合成后端回复 · 仅供界面检查\\n' + ('这段长回复用于检查换行、滚动和输入区域,不代表真实助手结果。\\n' * 12)}})" - let augmented=original.replacingOccurrences(of:anchor,with:anchor+extraDelta) - try Data(augmented.utf8).write(to:backend) - try Data(augmented.utf8).write(to:output.appendingPathComponent("synthetic-preview-backend.py")) - try FileManager.default.setAttributes([.posixPermissions: 0o700], ofItemAtPath: backend.path) - let backendSHA = try sha256(backend) - - var frames: [[String: Any]] = [] - var controllers: [WS2OwnedLaunchController] = [] - var report: [String: Any] = [ - "synthetic": true, "noRealAssistant": true, - "fixtureSource": "tests/fixtures/conductor-backend.py", - "fixtureSHA256": fixtureSHA, "backendCopySHA256": backendSHA, - "backendCopy": backend.path, "temporaryRoot": tempRoot.path, - "activationPolicy": "prohibited", - "note": "真实 WS2OwnedLaunchController + 合成 stdio 后端;未联系真实助手、账号、网络或浏览器。"] - - do { - // 产品运行时也只有一份 owned 控制器;换外观不新建第二个会话所有者。 - let controller = WS2OwnedLaunchController(profileRoot: tempRoot.appendingPathComponent("profile"), mayUse: { true }) - controllers.append(controller) - for appearance in [NSAppearance.Name.aqua, .darkAqua] { - let label = appearance == .aqua ? "light" : "dark" - let runRoot = tempRoot.appendingPathComponent(label, isDirectory: true) - let project = runRoot.appendingPathComponent(String(repeating:"long-project-",count:16)+"native-preview", isDirectory: true) - try FileManager.default.createDirectory(at: project, withIntermediateDirectories: true) - - // 受控渲染:允许视图认为输入有效,但绝不 performClick,也绝不触发用户动作。 - var owned = WS2OwnedSessionView(controller: controller) - owned.inputIsCurrent = { true } - owned.onCancel = {} - owned.openModelPicker = {} - owned.openConductorPage = {} - - // 第一轮为idle,第二轮为stopped;记录实际相位,不伪造回到初始状态。 - try capture(name: "before-launch", appearance: appearance, label: label, view: owned, - controller: controller, output: output, frames: &frames) - owned.revoke() - - guard controller.selectProject(project) else { throw Failure.check("selectProject status=\(controller.status) notice=\(controller.notice)") } - guard controller.selectExecutable(backend) else { throw Failure.check("selectExecutable") } - guard controller.launch(consent: true) else { - throw Failure.check("launch status=\(controller.status) notice=\(controller.notice) project=\(controller.projectURL?.path ?? "nil") executable=\(controller.executableURL?.path ?? "nil")") - } - try await until("phase == .ready") { controller.phase == .ready } - - owned = WS2OwnedSessionView(controller: controller) - owned.inputIsCurrent = { true } - owned.onCancel = {} - owned.openModelPicker = {} - owned.openConductorPage = {} - - // ready:模型来自合成后端的 model/list,不是伪造的 controller 字段。 - guard controller.chooseModel("fixture-a") else { throw Failure.check("chooseModel fixture-a") } - guard controller.chooseEffort("medium") else { throw Failure.check("chooseEffort medium") } - guard controller.model == "fixture-a", controller.effort == "medium" else { throw Failure.check("ready model/effort projection") } - - // 在既有 14 帧流程之前,对同一张实际视图做有界输入投影检查。 - try await inputChecks(appearance: appearance, label: label, controller: controller, output: output) - - let picker = WS2ModelPickerView(controller: controller) - picker.hostScreenWidth = 1440 - picker.renderDevices([]) - picker.sync() - picker.inputIsCurrent = { true } - let pickerRows = controller.models.keys.sorted() - guard !pickerRows.isEmpty else { throw Failure.check("synthetic backend models present") } - try capture(name: "ready", appearance: appearance, label: label, view: owned, - controller: controller, output: output, frames: &frames) - try capture(name: "ready-model-picker", appearance: appearance, label: label, view: picker, - controller: controller, output: output, frames: &frames, extra: ["pickerWidth": 1440, "pickerModels": pickerRows]) - picker.revoke() - owned.revoke() - - owned = WS2OwnedSessionView(controller: controller) - owned.inputIsCurrent = { true } - owned.onCancel = {} - owned.openModelPicker = {} - owned.openConductorPage = {} - - // draft:合成草稿文字,不发任何 RPC。 - guard controller.editDraft("设计样件草稿 native-preview") else { throw Failure.check("editDraft") } - try capture(name: "draft", appearance: appearance, label: label, view: owned, - controller: controller, output: output, frames: &frames) - - // running:只向这个 mock 发送 hold native-preview,后端不结算这一轮。 - guard controller.send("hold native-preview", hasMarkedText: false) else { throw Failure.check("send hold") } - try await until("phase running and synthetic reply") { controller.phase == .running && controller.text.contains("合成后端回复") } - try capture(name: "running", appearance: appearance, label: label, view: owned, - controller: controller, output: output, frames: &frames) - owned.revoke() - - // completed:只对这个 mock 的当前轮 interrupt,等 turn/completed 通知; - // 真实后端把 interrupted 结算成 .ready(status 助手已停止),如实记录后, - // 再用一次显式回合抵达实际 .completed 相位。 - guard let runningTarget = controller.conductorTarget, let runningTurn = controller.conductorTurn else { throw Failure.check("running target/turn") } - guard controller.interruptConductor(target: runningTarget, turn: runningTurn) else { throw Failure.check("interruptConductor") } - try await until("interrupt acknowledged") { controller.phase == .ready && controller.canSend } - let interruptPhase = String(describing: controller.phase) - let interruptStatus = controller.status - - guard controller.canSend else { throw Failure.check("canSend after interrupt settlement") } - guard controller.editDraft("finish native-preview") else { throw Failure.check("editDraft finish") } - guard controller.send("finish native-preview", hasMarkedText: false) else { throw Failure.check("send finish") } - try await until("phase == .completed") { controller.phase == .completed } - let done = WS2OwnedSessionView(controller: controller) - done.inputIsCurrent = { true } - done.onCancel = {} - done.openModelPicker = {} - done.openConductorPage = {} - try capture(name: "completed", appearance: appearance, label: label, view: done, - controller: controller, output: output, frames: &frames, - extra: ["interruptPhase": interruptPhase, "interruptStatus": interruptStatus]) - done.revoke() - - // stopped:stop(clearPrivate:true) 后等 !isBusy,再看子进程回收结果。 - let before = controller.observedReaps - controller.stop(clearPrivate: true) - try await until("!isBusy after stop") { !controller.isBusy } - let stopped = WS2OwnedSessionView(controller: controller) - stopped.inputIsCurrent = { true } - stopped.onCancel = {} - stopped.openModelPicker = {} - stopped.openConductorPage = {} - try capture(name: "stopped", appearance: appearance, label: label, view: stopped, - controller: controller, output: output, frames: &frames, - extra: ["reapsObserved": controller.observedReaps - before]) - stopped.revoke() - } - } catch { - report["failureControllers"] = controllers.map { ["phase": String(describing: $0.phase), "status": $0.status, - "notice": $0.notice, "busy": $0.isBusy, "reaps": $0.observedReaps] as [String: Any] } - // 错误路径也必须停子进程,并保留失败证据(不删临时目录、不删输出)。 - for controller in controllers { controller.stop(clearPrivate: true) } - for controller in controllers { - let deadline = ProcessInfo.processInfo.systemUptime + 8 - while controller.isBusy, ProcessInfo.processInfo.systemUptime < deadline { - try? await Task.sleep(nanoseconds: 10_000_000) - } - } - report["failure"] = String(describing: error) - report["childReaped"] = controllers.allSatisfy { !$0.isBusy } - report["temporaryRemoved"] = false - report["temporaryPreserved"] = true - try write(report: report, frames: frames, to: output) - print("FAILED owned phase preview: \(error); child stopped, evidence preserved at \(tempRoot.path)") - exit(1) - } - - // 成功路径:全部子进程已回收后,只删自己造的临时目录;输出保留。 - let reaped = controllers.allSatisfy { !$0.isBusy } - var removed = false - if reaped, tempRoot.deletingLastPathComponent() == buildRoot { - do { try FileManager.default.removeItem(at: tempRoot); removed = true } catch { removed = false } - } - report["childReaped"] = reaped - report["controllerCount"] = controllers.count - report["temporaryRemoved"] = removed - report["temporaryPathStillOnDisk"] = FileManager.default.fileExists(atPath: tempRoot.path) - report["frames"] = frames.map { ["phase": $0["phase"] ?? "", "parentAppearance": $0["parentAppearance"] ?? "", "image": $0["image"] ?? ""] } - try write(report: report, frames: frames, to: output) - print("Rendered \(frames.count) actual owned-phase frames with a synthetic stdio backend; child reaped: \(reaped); temp removed: \(removed).") - if !reaped || !removed { exit(1) } - } - - // MARK: - 有界输入投影检查 - // 对 controller ready 且 fixture-a/medium 已选时挂载的同一张实际 owned 视图做 - // 输入投影检查。仅设置视图状态与文档文本,只派发本地导航/诊断action,不点提交/激活面板/ - // 连接真实助手或网络。任一断言失败即抛 Failure.check 并记录首个错误。 - - @MainActor private static func inputChecks(appearance: NSAppearance.Name, label: String, - controller: WS2OwnedLaunchController, output: URL) async throws { - var checks: [[String: Any]] = [] - var firstError: String? - func record(_ name: String, _ expected: String, _ actual: String, _ passed: Bool) { - var entry: [String: Any] = ["name": name, "expected": expected, "actual": actual, "passed": passed] - if !passed, firstError == nil { firstError = "\(name): expected \(expected), actual \(actual)" } - if !passed { entry["firstError"] = firstError ?? "" } - checks.append(entry) - } - func flush() throws { - var document: [String: Any] = ["label": label, "parentAppearance": appearance.rawValue, - "checks": checks, "synthetic": true, "noRealAssistant": true, - "performedSubmissionClick":false,"localDiagnosticActionDispatches":2,"localNavigationActionDispatches":12,"activated":NSApp.isActive, - "note": "实际输入投影与本地诊断action派发;没有发送/登录点击,没有真实助手或网络;逐帧另验屏幕外位置。"] - if let error = firstError { document["firstError"] = error; document["passed"] = false } else { document["passed"] = true } - let data=try JSONSerialization.data(withJSONObject:document,options:[.prettyPrinted,.sortedKeys]) - try data.write(to:output.appendingPathComponent("\(label)-input-checks.json")) - } - - let view = WS2OwnedSessionView(controller: controller) - view.inputIsCurrent = { true } - view.onCancel = {} - var pickerVisits=0,conductorVisits=0 - view.openModelPicker = { pickerVisits += 1 } - view.openConductorPage = { conductorVisits += 1 } - view.render() - guard let pickerButton=findButton(titled:"选择模型…",in:view), - let conductorButton=findButton(titled:"指挥模式",in:view), - let pickerAction=pickerButton.action,let conductorAction=conductorButton.action else { - throw Failure.check("navigation controls/actions missing") - } - func dispatchNavigation() { - _=NSApp.sendAction(pickerAction,to:pickerButton.target,from:pickerButton) - _=NSApp.sendAction(conductorAction,to:conductorButton.target,from:conductorButton) - } - guard let editable = editableTextView(in: view) else { - record("editable-textview-present", "1", "0", false); try flush() - throw Failure.check("input checks: editable NSTextView not found") - } - guard let sendButton = findButton(titled: "发送", in: view) else { - record("send-button-present", "1", "0", false); try flush() - throw Failure.check("input checks: send NSButton(\"发送\") not found") - } - let prepared = controller.model == "fixture-a" && controller.effort == "medium" && controller.canSend - record("precondition-ready-fixture-a-medium", "true", prepared.description, prepared) - - // 1) 外部草稿更新 / 清空同步。 - _ = controller.editDraft("外部草稿 native-input-check") - view.render() - record("external-draft-update-syncs", "外部草稿 native-input-check", editable.string, editable.string == "外部草稿 native-input-check") - _ = controller.editDraft("") - view.render() - record("external-draft-clear-syncs", "", editable.string, editable.string.isEmpty) - - // 2) 空白草稿禁用发送。 - editable.string = " \n\t " - view.textDidChange(Notification(name: NSText.didChangeNotification, object: editable)) - record("blank-draft-disables-send", "disabled", enabledWord(sendButton.isEnabled), !sendButton.isEnabled) - - // 3) 有效草稿启用发送。 - editable.string = "有效草稿 native-input-check" - view.textDidChange(Notification(name: NSText.didChangeNotification, object: editable)) - record("valid-draft-enables-send", "enabled", enabledWord(sendButton.isEnabled), sendButton.isEnabled) - record("valid-draft-adopted-by-controller", "有效草稿 native-input-check", controller.draft, controller.draft == "有效草稿 native-input-check") - - record("valid-draft-enables-navigation","true",(pickerButton.isEnabled && conductorButton.isEnabled).description,pickerButton.isEnabled && conductorButton.isEnabled) - dispatchNavigation() - record("valid-navigation-delivers-once","1/1","\(pickerVisits)/\(conductorVisits)",pickerVisits==1 && conductorVisits==1) - record("valid-navigation-keeps-controller-draft","有效草稿 native-input-check",controller.draft,controller.draft==editable.string) - - // Exact UTF8 limit is valid; one multibyte character crosses it. - editable.string=String(repeating:"a",count:65_536) - view.textDidChange(Notification(name:NSText.didChangeNotification,object:editable)) - record("exact-byte-limit-enables-navigation","true",(pickerButton.isEnabled && conductorButton.isEnabled).description,pickerButton.isEnabled && conductorButton.isEnabled) - editable.string += "中" - view.textDidChange(Notification(name:NSText.didChangeNotification,object:editable)) - record("multibyte-over-limit-disables-navigation","false",(pickerButton.isEnabled || conductorButton.isEnabled).description,!pickerButton.isEnabled && !conductorButton.isEnabled) - dispatchNavigation() - record("over-limit-action-guards-navigation","1/1","\(pickerVisits)/\(conductorVisits)",pickerVisits==1 && conductorVisits==1) - record("over-limit-navigation-keeps-local-draft","65539","\(editable.string.utf8.count)",editable.string.utf8.count==65_539) - record("over-limit-navigation-keeps-last-accepted-draft","65536","\(controller.draft.utf8.count)",controller.draft.utf8.count==65_536) - - // 4) 超过 65536 UTF8 字节禁用,且后续 render 保留被拒草稿。 - let tooLong = String(repeating: "a", count: 65_537) - editable.string = tooLong - view.textDidChange(Notification(name: NSText.didChangeNotification, object: editable)) - record("over-limit-draft-disables-send", "disabled", enabledWord(sendButton.isEnabled), !sendButton.isEnabled) - view.render() - record("over-limit-render-keeps-rejected-text", "65537", "\(editable.string.utf8.count)", editable.string.utf8.count == 65_537) - record("over-limit-render-keeps-send-disabled", "disabled", enabledWord(sendButton.isEnabled), !sendButton.isEnabled) - - // Isolate composition from the previous size failure: valid and enabled first. - editable.string="组合输入 native-input-check" - view.textDidChange(Notification(name:NSText.didChangeNotification,object:editable)) - record("before-marking-send-enabled","enabled",enabledWord(sendButton.isEnabled),sendButton.isEnabled) - // 5) 真实组合输入能力:setMarkedText 期间禁用,unmarkText 后恢复。 - editable.setMarkedText("zhong", selectedRange: NSRange(location: 0, length: 5), replacementRange: NSRange(location: 0, length: 0)) - view.render() - let markedActive = editable.hasMarkedText() - record("marked-text-active", "true", markedActive.description, markedActive) - record("marked-text-disables-send", "disabled", enabledWord(sendButton.isEnabled), !sendButton.isEnabled) - record("marked-text-disables-navigation","false",(pickerButton.isEnabled || conductorButton.isEnabled).description,!pickerButton.isEnabled && !conductorButton.isEnabled) - let markedDraft=editable.string,acceptedDraft=controller.draft - dispatchNavigation() - record("marked-action-guards-navigation","1/1","\(pickerVisits)/\(conductorVisits)",pickerVisits==1 && conductorVisits==1) - record("marked-navigation-keeps-composition","true",editable.hasMarkedText().description,editable.hasMarkedText() && editable.string==markedDraft && controller.draft==acceptedDraft) - editable.string = "组合完成 native-input-check" - editable.unmarkText() - view.textDidChange(Notification(name: NSText.didChangeNotification, object: editable)) - record("unmark-clears-marked-text", "false", editable.hasMarkedText().description, !editable.hasMarkedText()) - record("unmark-restores-send", "enabled", enabledWord(sendButton.isEnabled), sendButton.isEnabled) - record("unmark-restores-navigation","true",(pickerButton.isEnabled && conductorButton.isEnabled).description,pickerButton.isEnabled && conductorButton.isEnabled) - dispatchNavigation() - record("unmark-navigation-delivers-once","2/2","\(pickerVisits)/\(conductorVisits)",pickerVisits==2 && conductorVisits==2) - view.openModelPicker=nil;view.openConductorPage=nil;view.render() - record("missing-destination-disables-navigation","false",(pickerButton.isEnabled || conductorButton.isEnabled).description,!pickerButton.isEnabled && !conductorButton.isEnabled) - view.openModelPicker={pickerVisits += 1};view.openConductorPage={conductorVisits += 1};view.render() - - let panel=NotchPanel(notch:NSRect(x:-8000,y:866.5,width:185,height:33.5),virtual:false) - panel.isReleasedWhenClosed=false;panel.appearance=NSAppearance(named:appearance) - panel.alphaValue=0;panel.level=NSWindow.Level(rawValue:Int(CGWindowLevelForKey(.desktopWindow))-1) - defer { panel.setInteraction(nil,animated:false);panel.close() } - panel.setInteraction(view,animated:false);view.render() - let collapsed=view.interactionSize.height - let originalFrame=panel.frame - if let diagnostic=findButton(titled:"查看诊断",in:view),let action=diagnostic.action { - let dispatched=NSApp.sendAction(action,to:diagnostic.target,from:diagnostic) - record("diagnostic-action-dispatched","true",dispatched.description,dispatched) - view.render() - record("same-owner-expands-for-diagnostics","larger","\(view.interactionSize.height)",view.interactionSize.height>collapsed) - let grew=await waitForFrame { panel.frame.height>originalFrame.height+50 } - record("actual-panel-frame-expands","larger",NSStringFromRect(panel.frame),grew) - _=NSApp.sendAction(action,to:diagnostic.target,from:diagnostic);view.render() - record("same-owner-restores-content-height","\(collapsed)","\(view.interactionSize.height)",abs(view.interactionSize.height-collapsed)<1) - let restored=await waitForFrame { abs(panel.frame.height-originalFrame.height)<1.5 } - record("actual-panel-frame-restores","\(originalFrame.height)",NSStringFromRect(panel.frame),restored) - } else { record("diagnostic-button-present","true","false",false) } - let offscreen = !NSScreen.screens.contains{$0.frame.intersects(panel.frame)} - record("same-owner-resize-offscreen","true",NSStringFromRect(panel.frame),offscreen) - record("same-owner-resize-inactive","false",NSApp.isActive.description,!NSApp.isActive) - // 6) inputIsCurrent=false 后 render 禁用按钮(不点击提交)。 - view.inputIsCurrent = { false } - view.render() - record("stale-input-disables-send", "disabled", enabledWord(sendButton.isEnabled), !sendButton.isEnabled) - record("stale-input-disables-navigation","false",(pickerButton.isEnabled || conductorButton.isEnabled).description,!pickerButton.isEnabled && !conductorButton.isEnabled) - dispatchNavigation() - record("stale-action-guards-navigation","2/2","\(pickerVisits)/\(conductorVisits)",pickerVisits==2 && conductorVisits==2) - - // 7) revoke 后旧按钮必须 disabled;若生产未禁用则记录失败,不修改生产。 - view.revoke() - record("revoked-send-disabled", "disabled", enabledWord(sendButton.isEnabled), !sendButton.isEnabled) - dispatchNavigation() - record("revoked-action-guards-navigation","2/2","\(pickerVisits)/\(conductorVisits)",pickerVisits==2 && conductorVisits==2) - let revokedConductor=findButton(titled:"指挥模式",in:view) - record("conductor-button-present","true",(revokedConductor != nil).description,revokedConductor != nil) - let revokedConductorEnabled = revokedConductor?.isEnabled ?? true - record("revoked-open-conductor-disabled", "disabled", enabledWord(revokedConductorEnabled), - !revokedConductorEnabled) - - // 8) 恢复 controller.editDraft("") 及其后的原流程。 - _ = controller.editDraft("") - record("controller-draft-restored-empty", "0", "\(controller.draft.utf8.count)", controller.draft.isEmpty) - - try flush() - if let error = firstError { throw Failure.check("input checks first failure: \(error)") } - } - - @MainActor private static func waitForFrame(_ predicate:()->Bool) async -> Bool { - let deadline=ProcessInfo.processInfo.systemUptime+2 - while !predicate(),ProcessInfo.processInfo.systemUptime NSTextView? { - if let text = view as? NSTextView, text.isEditable { return text } - for child in view.subviews { - if let found = editableTextView(in: child) { return found } - } - return nil - } - - /// 递归查找指定标题的 NSButton。 - @MainActor private static func findButton(titled title: String, in view: NSView) -> NSButton? { - if let button = view as? NSButton, button.title == title { return button } - for child in view.subviews { - if let found = findButton(titled: title, in: child) { return found } - } - return nil - } - - @MainActor private static func enabledWord(_ value: Bool) -> String { value ? "enabled" : "disabled" } - - // MARK: - 捕获 - - @MainActor private static func capture(name: String, appearance: NSAppearance.Name, label: String, - view originalView: NSView & WS2LeaseContent, controller: WS2OwnedLaunchController, - output: URL, frames: inout [[String: Any]], - extra: [String: Any] = [:]) throws { - let view: NSView & WS2LeaseContent - if let picker = originalView as? WS2ModelPickerView { - picker.inputIsCurrent = { true }; picker.sync(); view = picker - } else { - // 每帧读当前控制器;不能复用已经 revoke 的卡,也不能拿旧草稿/按钮冒充新相位。 - let owned = WS2OwnedSessionView(controller: controller) - owned.inputIsCurrent = { true }; owned.openModelPicker = {}; owned.openConductorPage = {} - owned.render(); view = owned - } - let panel = NotchPanel(notch: NSRect(x: -8000, y: 866.5, width: 185, height: 33.5), virtual: false) - panel.isReleasedWhenClosed = false - panel.alphaValue=0 - panel.appearance = NSAppearance(named: appearance) - defer { view.revoke(); panel.setInteraction(nil, animated: false); panel.close() } - panel.setInteraction(view, animated: false) - if let owned=view as? WS2OwnedSessionView { owned.render() } - guard let canvas = panel.contentView else { throw Failure.check("panel contentView") } - canvas.layoutSubtreeIfNeeded() - let intersects = NSScreen.screens.contains { $0.frame.intersects(panel.frame) } - guard !intersects && !NSApp.isActive else { throw Failure.check("panel offscreen/nonactive for \(name)") } - - let file = "\(label)-\(name).png" - guard let rep = canvas.bitmapImageRepForCachingDisplay(in: canvas.bounds) else { throw Failure.check("bitmap for \(name)") } - canvas.cacheDisplay(in: canvas.bounds, to: rep) - guard let data = rep.representation(using: .png, properties: [:]) else { throw Failure.check("png for \(name)") } - try data.write(to: output.appendingPathComponent(file)) - - var frame: [String: Any] = [ - "phase": String(describing: controller.phase), - "status": controller.status, - "notice": controller.notice, - "draft": controller.draft,"replyText":controller.text, - "model": controller.model ?? "", "effort": controller.effort ?? "", - "isBusy": controller.isBusy, "parentAppearance": appearance.rawValue, - "image": file, "offscreenX": -8000, - "width": canvas.bounds.width, "height": canvas.bounds.height, - "contentWidth": view.bounds.width, "contentHeight": view.bounds.height, - "visibleWindow":panel.isVisible,"panelAlpha":panel.alphaValue, "intersectsScreen": intersects, "activeApplication": NSApp.isActive, - "synthetic": true, "noRealAssistant": true, - "buttons": buttons(in: view), "visibleLabels":visibleLabels(in:view)] - for (key, value) in extra { frame[key] = value } - frames.append(frame) - - } - - @MainActor private static func visibleLabels(in view:NSView) -> [[String:Any]] { - var result:[[String:Any]]=[] - func walk(_ node:NSView) { - if let label=node as? NSTextField,!label.isHiddenOrHasHiddenAncestor { - let rect=label.convert(label.bounds,to:view) - result.append(["text":label.stringValue,"withinContent":view.bounds.contains(rect), - "x":rect.minX,"y":rect.minY,"width":rect.width,"height":rect.height]) - } - node.subviews.forEach(walk) - } - walk(view);return result - } - - @MainActor private static func buttons(in view: NSView) -> [[String: Any]] { - var result: [[String: Any]] = [] - func walk(_ node: NSView) { - if let popup = node as? NSPopUpButton { - result.append(["title": popup.titleOfSelectedItem ?? popup.title, "enabled": popup.isEnabled, "hidden": popup.isHiddenOrHasHiddenAncestor]) - } else if let button = node as? NSButton { - result.append(["title": button.title, "enabled": button.isEnabled, "hidden": button.isHiddenOrHasHiddenAncestor]) - } - node.subviews.forEach(walk) - } - walk(view) - return result - } - - // MARK: - 工具 - - @MainActor private static func until(_ label: String, _ predicate: () -> Bool) async throws { - let deadline = ProcessInfo.processInfo.systemUptime + 8 - while !predicate(), ProcessInfo.processInfo.systemUptime < deadline { - try await Task.sleep(nanoseconds: 10_000_000) - } - guard predicate() else { throw Failure.check("timed out waiting for \(label)") } - } - - private static func sha256(_ url: URL) throws -> String { - let data = try Data(contentsOf: url) - return SHA256.hash(data: data).map { String(format: "%02x", $0) }.joined() - } - - private static func write(report: [String: Any], frames: [[String: Any]], to output: URL) throws { - try JSONSerialization.data(withJSONObject: report, options: [.prettyPrinted, .sortedKeys]) - .write(to: output.appendingPathComponent("owned-phases.json")) - try JSONSerialization.data(withJSONObject: ["frames": frames], options: [.prettyPrinted, .sortedKeys]) - .write(to: output.appendingPathComponent("frames.json")) - } -} - -import Cocoa - -/// Actual production media card with synthetic data and local callback recordings only. -enum MediaFeedbackPreview { - enum Failure:Error { case check(String) } - @MainActor static func main() async { - let out=URL(fileURLWithPath:CommandLine.arguments[1],isDirectory:true) - do { try await render(out) } catch { - let failure:[String:Any]=["passed":false,"complete":false,"error":String(describing:error)] - try? JSONSerialization.data(withJSONObject:failure,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("failure.json")) - print("FAILED synthetic media preview: \(error)") - exit(1) - } - } - @MainActor static func render(_ out:URL) async throws { - _=NSApplication.shared;NSApp.setActivationPolicy(.prohibited) - try FileManager.default.createDirectory(at:out,withIntermediateDirectories:true) - var frames:[[String:Any]]=[],checks:[[String:Any]]=[] - for appearance in [NSAppearance.Name.aqua,.darkAqua] { - let parent=appearance == .aqua ? "light":"dark" - for state in ["playing","paused","live","long-title","empty-routes","routes"] { - let panel=NotchPanel(notch:NSRect(x:-8000,y:866.5,width:185,height:33.5),virtual:false) - panel.isReleasedWhenClosed=false;panel.alphaValue=0;panel.appearance=NSAppearance(named:appearance) - let card=NowPlayingCard(geometry:.init(width:185,height:33.5,virtual:false)) - defer { card.revoke();panel.setInteraction(nil,animated:false);panel.close() } - var current=true,commands=0,routeReads=0,devicesAvailable=false - card.inputIsCurrent={current};card.clock={1000} - card.onCommand={_ in commands += 1};card.onSeek={_ in};card.onSelectRoute={_ in} - card.onSizeChange={ [weak panel] opening in panel?.interactionSizeChanged(opening:opening) } - var syntheticRoutes:[AudioOutputRoute]=[] - for index in 0..<5 { - let kind:AudioOutputKind=index==0 ? .mac:.headphones - let name=index==0 ? "样件 Mac":"样件耳机 \(index)" - let route=AudioOutputRoute(id:UInt32(index+1),uid:"synthetic-\(index)",name:name,kind:kind,isCurrent:index==0) - syntheticRoutes.append(route) - } - card.loadRoutes={ - routeReads += 1 - return state == "routes" || devicesAvailable ? syntheticRoutes:[] - } - let live=state == "live",paused=state == "paused" - let title=state == "long-title" ? String(repeating:"很长的样件歌名 · ",count:18):"样件音乐" - card.update(.init(title:title,artist:"合成资料 · 未连接播放器",isPaused:paused,bundleID:"design.synthetic",timeline:.init(duration:live ? nil:240,elapsed:65,stamp:1000,rate:paused ? 0:1),seekable:!live),artwork:nil) - panel.setInteraction(card,animated:false) - if state == "empty-routes" || state == "routes" { card.openList() } - // Wait for actual content fade and host resize endpoints; no animation quality claim. - try await Task.sleep(nanoseconds:900_000_000) - guard let canvas=panel.contentView else { throw Failure.check("canvas") } - canvas.layoutSubtreeIfNeeded() - let outside=NSScreen.screens.allSatisfy{!$0.frame.intersects(panel.frame)} - guard outside,!NSApp.isActive else { throw Failure.check("fixture escaped bounds") } - let isList=state == "routes" || state == "empty-routes" - guard card.listOpen==isList,card.routes.count==(state == "routes" ? 5:0) else { throw Failure.check("synthetic routes") } - let size=card.interactionSize - let expectedWindow=NSRect(x:-7907.5-size.width/2,y:900-33.5-size.height,width:size.width,height:33.5+size.height).integral - let deadline=ProcessInfo.processInfo.systemUptime+3 - while (abs(canvas.bounds.width-expectedWindow.width)>0.1 || abs(canvas.bounds.height-expectedWindow.height)>0.1),ProcessInfo.processInfo.systemUptimeNSTextField? { - if let field=node as? NSTextField,field.stringValue=="暂未找到设备" {return field} - return node.subviews.compactMap{emptyLabel($0)}.first - } - guard let empty=emptyLabel(card) else {throw Failure.check("empty label missing")} - let labelRect=empty.convert(empty.bounds,to:card) - let image="\(parent)-\(state).png" - guard let rep=canvas.bitmapImageRepForCachingDisplay(in:canvas.bounds) else { throw Failure.check("bitmap") } - canvas.cacheDisplay(in:canvas.bounds,to:rep) - guard let png=rep.representation(using:.png,properties:[:]) else { throw Failure.check("png") } - try png.write(to:out.appendingPathComponent(image)) - frames.append(["image":image,"state":state,"parentAppearance":appearance.rawValue,"synthetic":true,"width":canvas.bounds.width,"height":canvas.bounds.height,"contentWidth":card.bounds.width,"contentHeight":card.bounds.height,"requestedWidth":size.width,"requestedHeight":size.height,"panelAlpha":panel.alphaValue,"intersectsScreen":!outside,"activeApplication":NSApp.isActive,"title":title,"listOpen":card.listOpen,"routeCount":card.routes.count,"routeReads":routeReads,"emptyText":empty.stringValue,"emptyVisible":!empty.isHiddenOrHasHiddenAncestor,"emptyBounds":[labelRect.minX,labelRect.minY,labelRect.width,labelRect.height]]) - try JSONSerialization.data(withJSONObject:frames,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("frames.json")) - if state == "empty-routes" { - guard !empty.isHiddenOrHasHiddenAncestor,card.bounds.contains(labelRect),routeReads==1 else {throw Failure.check("empty feedback")} - card.closeList() - try await Task.sleep(nanoseconds:400_000_000) - guard !card.listOpen,empty.isHiddenOrHasHiddenAncestor else {throw Failure.check("return from empty")} - devicesAvailable=true;card.openList() - try await Task.sleep(nanoseconds:400_000_000) - guard card.listOpen,card.routes.count==5,empty.isHiddenOrHasHiddenAncestor,routeReads==2 else {throw Failure.check("retry routes")} - card.closeList();current=false;card.openList() - guard !card.listOpen,routeReads==2 else {throw Failure.check("stale query")} - card.revoke();card.openList() - guard !card.listOpen,routeReads==2,card.pendingTimerCount==0 else {throw Failure.check("revoked query")} - checks.append(["parent":parent,"kind":"empty-feedback","returned":true,"retryDeviceCount":5,"totalRouteReads":routeReads,"pendingTimersAfterRevoke":card.pendingTimerCount,"passed":true]) - } - if state == "playing" { - func find(_ node:NSView)->NSButton? { - if let b=node as? NSButton,b.action==NSSelectorFromString("playAction") {return b} - return node.subviews.compactMap{find($0)}.first - } - guard let button=find(card),let action=button.action else {throw Failure.check("play control")} - let delivered=NSApp.sendAction(action,to:button.target,from:button) - guard delivered,commands==1 else {throw Failure.check("local play callback")} - current=false;_=NSApp.sendAction(action,to:button.target,from:button) - guard commands==1 else {throw Failure.check("stale command")} - card.revoke();_=NSApp.sendAction(action,to:button.target,from:button) - guard commands==1,card.pendingTimerCount==0 else {throw Failure.check("revoke/timers")} - checks.append(["parent":parent,"kind":"play-guard","localPlayCallbacks":commands,"staleAndRevokedCallbacks":commands-1,"pendingTimersAfterRevoke":card.pendingTimerCount,"passed":true]) - } - } - } - for (name,value) in [("frames.json",frames),("checks.json",checks)] { - try JSONSerialization.data(withJSONObject:value,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent(name)) - } - print("Rendered \(frames.count) synthetic media frames; \(checks.count) real control guard checks; no media/system commands.") - } -} - - -@main enum FeedbackPreview { - @MainActor static func main() async throws { - let root=URL(fileURLWithPath:CommandLine.arguments[1],isDirectory:true) - try await FeedbackOwnedPreview.render(root.appendingPathComponent("owned")) - try await MediaFeedbackPreview.render(root.appendingPathComponent("media")) - } -} diff --git a/tools/archive/design-qa-batch23-29/FileNameChecks.swift b/tools/archive/design-qa-batch23-29/FileNameChecks.swift deleted file mode 100644 index ee376541..00000000 --- a/tools/archive/design-qa-batch23-29/FileNameChecks.swift +++ /dev/null @@ -1,23 +0,0 @@ -import Cocoa - -@main enum NameChecks { - @MainActor static func main() throws { - let font=NSFont.systemFont(ofSize:11) - let names=["样件文件7.txt",String(repeating:"long-file-name-",count:10)+".txt",String(repeating:"W",count:80)+".pdf",String(repeating:"字👨‍👩‍👧‍👦",count:8)+".txt",String(repeating:"很长的文件名",count:12)+".pages",String(repeating:"MMMMMM",count:15),".gitignore", "a\nb.txt"] - var records:[[String:Any]]=[] - for maxLines in [1,2] { - for name in names { - let lines=FileShelfNameLayout.lines(name,width:68,font:font,maxLines:maxLines) - let widths=lines.map{NSAttributedString(string:$0,attributes:[.font:font]).size().width} - let joined=lines.joined() - let dot=name.lastIndex(of:".") - let ext=dot.flatMap{$0 != name.startIndex && name.distance(from:$0,to:name.endIndex)<=6 ? String(name[$0...]):nil} - let preserved=ext.map{lines.last?.hasSuffix($0)==true} ?? true - let passed=lines.count<=maxLines && widths.allSatisfy{$0<=68} && preserved && joined.filter{$0=="…"}.count<=1 && !joined.contains("\n") - records.append(["name":name,"maxLines":maxLines,"lines":lines,"widths":widths,"extensionPreserved":preserved,"passed":passed]) - guard passed else {print("FAIL \(records.last!)");exit(1)} - } - } - let data=try JSONSerialization.data(withJSONObject:records,options:[.prettyPrinted,.sortedKeys]);try data.write(to:URL(fileURLWithPath:CommandLine.arguments[1]));print("PASS \(records.count) actual-font boundary cases") - } -} diff --git a/tools/archive/design-qa-batch23-29/FileShelfStatePreview.swift b/tools/archive/design-qa-batch23-29/FileShelfStatePreview.swift deleted file mode 100644 index c9f8ce5c..00000000 --- a/tools/archive/design-qa-batch23-29/FileShelfStatePreview.swift +++ /dev/null @@ -1,128 +0,0 @@ -import Cocoa - -/// Production file shelf, type icons only, process-local switch and self-created files. -@main enum FileShelfStatePreview { - enum Failure: Error { case check(String) } - @MainActor static func main() async { - do {try await render()} catch { - let out=URL(fileURLWithPath:CommandLine.arguments[1],isDirectory:true) - try? JSONSerialization.data(withJSONObject:["passed":false,"error":String(describing:error)],options:[.prettyPrinted]).write(to:out.appendingPathComponent("failure.json")) - print("FAILED FileShelf surface: \(error)");exit(1) - } - } - @MainActor static func render() async throws { - _=NSApplication.shared;NSApp.setActivationPolicy(.prohibited) - let out=URL(fileURLWithPath:CommandLine.arguments[1],isDirectory:true) - try FileManager.default.createDirectory(at:out,withIntermediateDirectories:true) - let defaults=UserDefaults.standard - let argumentDomain=defaults.volatileDomain(forName:UserDefaults.argumentDomain) - let enabledBefore=FileShelf.enabled - var local=argumentDomain;local[FileShelf.enabledKey]=true - defaults.setVolatileDomain(local,forName:UserDefaults.argumentDomain) - defer {defaults.setVolatileDomain(argumentDomain,forName:UserDefaults.argumentDomain)} - guard FileShelf.enabled else {throw Failure.check("local switch")} - var frames:[[String:Any]]=[] - for appearance in [NSAppearance.Name.aqua,.darkAqua] { - let parent=appearance == .aqua ? "light":"dark" - for state in ["empty","one","many","long-name","wide-name","unicode-name","missing","cleared","restored"] { - let temp=FileManager.default.temporaryDirectory.appendingPathComponent("fileshelf-surface-"+UUID().uuidString,isDirectory:true) - try FileManager.default.createDirectory(at:temp,withIntermediateDirectories:true) - let store=FileShelfStore(root:temp.appendingPathComponent("shelf"),isEnabled:{true}) - let controller=FileShelfController(store:store) - let panel=NotchPanel(notch:NSRect(x:-8000,y:866.5,width:185,height:33.5),virtual:false) - panel.isReleasedWhenClosed=false;panel.alphaValue=0;panel.appearance=NSAppearance(named:appearance) - let card=FileShelfView(controller:controller,hasNotch:true,strip:33.5) - defer {card.revoke();panel.setInteraction(nil,animated:false);panel.close();controller.undo();store.clearAll();store.flush();store.observe(nil);store.stop();store.flush();try? FileManager.default.removeItem(at:temp)} - controller.start() - let count=state == "empty" ? 0:state == "many" ? 7:1 - var ownFiles:[URL]=[] - for index in 0..[FileShelfTileView] { - (node as? FileShelfTileView).map{[$0]} ?? node.subviews.flatMap{tiles($0)} - } - let measured=tiles(card).sorted{$0.frame.minX<$1.frame.minX} - let capturedCount=controller.rows.count - guard measured.count==capturedCount else {throw Failure.check("tiles")} - let measuredLines=measured.map{tile->[String:Any] in - let lines=tile.nameLines - return ["lines":lines,"widths":lines.map{NSAttributedString(string:$0,attributes:[.font:NSFont.systemFont(ofSize:11)]).size().width},"joined":lines.joined(separator:"\n"),"availability":String(describing:tile.row.availability)] - } - func labels(_ node:NSView)->[String] { - if node.isHiddenOrHasHiddenAncestor {return []} - return (node as? NSTextField).map{[$0.stringValue]} ?? node.subviews.flatMap{labels($0)} - } - frames.append(["image":image,"state":state,"synthetic":true,"count":capturedCount,"width":canvas.bounds.width,"height":canvas.bounds.height,"contentWidth":card.bounds.width,"contentHeight":card.bounds.height,"panelAlpha":panel.alphaValue,"intersectsScreen":!outside,"activeApplication":NSApp.isActive,"names":controller.rows.map{$0.entry.name},"tileRects":measured.map{[$0.frame.minX,$0.frame.minY,$0.frame.width,$0.frame.height]},"scrollWidth":card.scrollFrame.width,"scrollHeight":card.scrollFrame.height,"typeIconsOnly":true,"nameLines":measuredLines,"clearPending":controller.clear.isPending(at:controller.now),"visibleLabels":labels(card)]) - try JSONSerialization.data(withJSONObject:frames,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("frames.json")) - if state == "one",let tile=measured.first { - guard tile.removeButton.accessibilityPerformPress() else {throw Failure.check("fresh remove action")} - store.flush();try await waitRows(0) - guard FileManager.default.fileExists(atPath:ownFiles[0].path) else {throw Failure.check("remove moved original")} - controller.undo();store.flush();try await waitRows(1) - card.inputIsCurrent={false};_=tile.removeButton.accessibilityPerformPress();store.flush() - try await Task.sleep(nanoseconds:50_000_000) - guard controller.rows.count==1 else {throw Failure.check("stale remove")} - card.revoke();_=tile.removeButton.accessibilityPerformPress();store.flush() - try await Task.sleep(nanoseconds:50_000_000) - guard controller.rows.count==1 else {throw Failure.check("revoked remove")} - let check:[String:Any]=["passed":true,"freshRemoveAndUndo":true,"originalOwnFileStillExists":true,"staleRemovalBlocked":true,"revokedRemovalBlocked":true] - try JSONSerialization.data(withJSONObject:check,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent(parent+"-action-check.json")) - } - card.revoke();panel.setInteraction(nil,animated:false);panel.close() - controller.undo();store.clearAll();store.flush() - guard !controller.clear.isPending(at:controller.now) else {throw Failure.check("pending clear cleanup")} - store.observe(nil);store.stop();store.flush() - try FileManager.default.removeItem(at:temp) - guard !FileManager.default.fileExists(atPath:temp.path) else {throw Failure.check("cleanup")} - } - } - defaults.setVolatileDomain(argumentDomain,forName:UserDefaults.argumentDomain) - guard FileShelf.enabled==enabledBefore else {throw Failure.check("switch restore")} - try JSONSerialization.data(withJSONObject:frames,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("frames.json")) - try JSONSerialization.data(withJSONObject:["temporaryDirectoriesRemoved":true,"volatileDomainRestored":true,"realUserFileActions":false,"syntheticFrames":frames.count],options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("cleanup.json")) - print("Rendered \(frames.count) production file shelf frames; own files removed, local switch restored, no user file actions.") - } -} diff --git a/tools/archive/design-qa-batch23-29/FileShelfSurfacePreview.swift b/tools/archive/design-qa-batch23-29/FileShelfSurfacePreview.swift deleted file mode 100644 index c9f6bae4..00000000 --- a/tools/archive/design-qa-batch23-29/FileShelfSurfacePreview.swift +++ /dev/null @@ -1,78 +0,0 @@ -import Cocoa - -/// Production file shelf, type icons only, process-local switch and self-created files. -@main enum FileShelfSurfacePreview { - enum Failure: Error { case check(String) } - @MainActor static func main() async { - do {try await render()} catch { - let out=URL(fileURLWithPath:CommandLine.arguments[1],isDirectory:true) - try? JSONSerialization.data(withJSONObject:["passed":false,"error":String(describing:error)],options:[.prettyPrinted]).write(to:out.appendingPathComponent("failure.json")) - print("FAILED FileShelf surface: \(error)");exit(1) - } - } - @MainActor static func render() async throws { - _=NSApplication.shared;NSApp.setActivationPolicy(.prohibited) - let out=URL(fileURLWithPath:CommandLine.arguments[1],isDirectory:true) - try FileManager.default.createDirectory(at:out,withIntermediateDirectories:true) - let defaults=UserDefaults.standard - let argumentDomain=defaults.volatileDomain(forName:UserDefaults.argumentDomain) - let enabledBefore=FileShelf.enabled - var local=argumentDomain;local[FileShelf.enabledKey]=true - defaults.setVolatileDomain(local,forName:UserDefaults.argumentDomain) - defer {defaults.setVolatileDomain(argumentDomain,forName:UserDefaults.argumentDomain)} - guard FileShelf.enabled else {throw Failure.check("local switch")} - var frames:[[String:Any]]=[] - for appearance in [NSAppearance.Name.aqua,.darkAqua] { - let parent=appearance == .aqua ? "light":"dark" - for state in ["empty","one","many","long-name"] { - let temp=FileManager.default.temporaryDirectory.appendingPathComponent("fileshelf-surface-"+UUID().uuidString,isDirectory:true) - try FileManager.default.createDirectory(at:temp,withIntermediateDirectories:true) - let store=FileShelfStore(root:temp.appendingPathComponent("shelf"),isEnabled:{true}) - let controller=FileShelfController(store:store) - let panel=NotchPanel(notch:NSRect(x:-8000,y:866.5,width:185,height:33.5),virtual:false) - panel.isReleasedWhenClosed=false;panel.alphaValue=0;panel.appearance=NSAppearance(named:appearance) - let card=FileShelfView(controller:controller,hasNotch:true,strip:33.5) - defer {card.revoke();panel.setInteraction(nil,animated:false);panel.close();store.observe(nil);store.stop();store.flush();try? FileManager.default.removeItem(at:temp)} - controller.start() - let count=state == "empty" ? 0:state == "many" ? 7:1 - for index in 0..[FileShelfTileView] { - (node as? FileShelfTileView).map{[$0]} ?? node.subviews.flatMap{tiles($0)} - } - let measured=tiles(card).sorted{$0.frame.minX<$1.frame.minX} - guard measured.count==count else {throw Failure.check("tiles")} - frames.append(["image":image,"state":state,"synthetic":true,"count":count,"width":canvas.bounds.width,"height":canvas.bounds.height,"contentWidth":card.bounds.width,"contentHeight":card.bounds.height,"panelAlpha":panel.alphaValue,"intersectsScreen":!outside,"activeApplication":NSApp.isActive,"names":controller.rows.map{$0.entry.name},"tileRects":measured.map{[$0.frame.minX,$0.frame.minY,$0.frame.width,$0.frame.height]},"scrollWidth":card.scrollFrame.width,"scrollHeight":card.scrollFrame.height,"typeIconsOnly":true]) - try JSONSerialization.data(withJSONObject:frames,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("frames.json")) - card.revoke();panel.setInteraction(nil,animated:false);panel.close() - store.observe(nil);store.stop();store.flush() - try FileManager.default.removeItem(at:temp) - guard !FileManager.default.fileExists(atPath:temp.path) else {throw Failure.check("cleanup")} - } - } - defaults.setVolatileDomain(argumentDomain,forName:UserDefaults.argumentDomain) - guard FileShelf.enabled==enabledBefore else {throw Failure.check("switch restore")} - try JSONSerialization.data(withJSONObject:frames,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("frames.json")) - try JSONSerialization.data(withJSONObject:["temporaryDirectoriesRemoved":true,"volatileDomainRestored":true,"realUserFileActions":false,"syntheticFrames":frames.count],options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("cleanup.json")) - print("Rendered \(frames.count) production file shelf frames; own files removed, local switch restored, no user file actions.") - } -} diff --git a/tools/archive/design-qa-batch23-29/FocusTimerCardPreview.swift b/tools/archive/design-qa-batch23-29/FocusTimerCardPreview.swift deleted file mode 100644 index 31d8157a..00000000 --- a/tools/archive/design-qa-batch23-29/FocusTimerCardPreview.swift +++ /dev/null @@ -1,54 +0,0 @@ -import Cocoa - -/// 离屏画面样件:真实 FocusTimer / Host / Card,不开启刘海、不动窗口、不执行计时效果。 -@main enum FocusTimerCardPreview { - struct Clock: WS2Clock { func now() -> WS2.Instant { .zero } } - - @MainActor static func main() throws { - _ = NSApplication.shared - let output = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - try FileManager.default.createDirectory(at: output, withIntermediateDirectories: true) - let calendar = FocusTimer.CalendarSample(today: "2026-10-11", deadlineDay: "2026-10-11") - var metadata: [[String: Any]] = [] - for appearanceName in [NSAppearance.Name.aqua, .darkAqua] { - for state in ["idle", "focus", "paused", "rest"] { - var model = FocusTimer(bootID: UUID(), tuckChatEnabled: false) - if state != "idle" { _ = model.handle(.start, at: .zero, calendar: calendar) } - if state == "paused" { _ = model.handle(.pause, at: WS2.Instant(seconds: 378)!, calendar: calendar) } - if state == "rest" { _ = model.handle(.tick, at: WS2.Instant(seconds: 1500)!, calendar: calendar) } - let now = WS2.Instant(seconds: state == "rest" ? 1560 : 378)! - let host = FocusTimerHost(model: model, clock: Clock(), calendarSample: { _, _ in calendar }, effects: { _ in }) - let card = FocusTimerCard(host: host) - card.appearance = NSAppearance(named: appearanceName) - card.render(model, at: now) - card.frame = NSRect(origin: .zero, size: card.interactionSize) - let container = NSView(frame: card.frame) - container.wantsLayer = true - container.layer?.backgroundColor = NSColor.black.cgColor - container.addSubview(card) - // 不 orderFront;窗口仅提供 AppKit 布局/绘制上下文,不出现在用户桌面。 - let window = NSWindow(contentRect: container.frame, styleMask: .borderless, backing: .buffered, defer: false) - window.isReleasedWhenClosed = false - window.appearance = card.appearance - window.contentView = container - container.layoutSubtreeIfNeeded() - let name = "\(appearanceName == .aqua ? "light" : "dark")-\(state)" - guard let rep = container.bitmapImageRepForCachingDisplay(in: container.bounds) else { - throw NSError(domain: "FocusPreview", code: 1) - } - container.cacheDisplay(in: container.bounds, to: rep) - guard let png = rep.representation(using: .png, properties: [:]) else { - throw NSError(domain: "FocusPreview", code: 2) - } - try png.write(to: output.appendingPathComponent(name + ".png")) - metadata.append(["image": name + ".png", "width": card.bounds.width, "height": card.bounds.height, - "spoken": card.accessibilityLabel() ?? "", "visibleWindow": window.isVisible]) - host.stop() - window.close() - } - } - let data = try JSONSerialization.data(withJSONObject: metadata, options: [.prettyPrinted, .sortedKeys]) - try data.write(to: output.appendingPathComponent("frames.json")) - print("Rendered 8 native card frames; no window was shown. This is not a live notch acceptance test.") - } -} diff --git a/tools/archive/design-qa-batch23-29/HostSurfacePreview.swift b/tools/archive/design-qa-batch23-29/HostSurfacePreview.swift deleted file mode 100644 index d7b2ebdf..00000000 --- a/tools/archive/design-qa-batch23-29/HostSurfacePreview.swift +++ /dev/null @@ -1,125 +0,0 @@ -import Cocoa - -/// 实际刘海宿主与生产视图;面板位于屏幕外,不激活应用、不连接助手或访问用户文件。 -@main enum HostSurfacePreview { - @MainActor static func main() throws { - _ = NSApplication.shared - NSApp.setActivationPolicy(.prohibited) - let output = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - try FileManager.default.createDirectory(at: output, withIntermediateDirectories: true) - var frames: [[String: Any]] = [] - var checks: [[String: Any]] = [] - for appearance in [NSAppearance.Name.aqua, .darkAqua] { - for name in ["model-picker-idle", "conductor-page-idle", "sessions-empty", "sessions-mixed", "sessions-long", "conductor-connected", "owned-session-idle"] { - let controller = WS2OwnedLaunchController(profileRoot: output.appendingPathComponent("unused-profile"), mayUse: { false }) - let view: NSView & WS2LeaseContent - switch name { - case "model-picker-idle": - let picker = WS2ModelPickerView(controller: controller) - picker.hostScreenWidth = 1440 - picker.renderDevices([]) - view = picker - case "conductor-page-idle": - let page = WS2ConductorPageView(controller: controller) - page.renderDevices([]) - view = page - case "conductor-connected": - let card = WS2ConductorView(frame: .zero) - card.hostScreenWidth = 1440 - _ = card.render(.connected(project: "设计工作间", provider: .codex, effort: "high")) - view = card - case "owned-session-idle": - view = WS2OwnedSessionView(controller: controller) - default: - let list = WS2AgentSessionView(frame: .zero) - list.render(name == "sessions-empty" ? [] : sessions(long: name == "sessions-long")) - view = list - } - let panel = NotchPanel(notch: NSRect(x: -8000, y: 866.5, width: 185, height: 33.5), virtual: false) - panel.isReleasedWhenClosed = false - panel.appearance = NSAppearance(named: appearance) - panel.setInteraction(view, animated: false) - guard let canvas = panel.contentView else { throw NSError(domain: "HostPreview", code: 1) } - canvas.layoutSubtreeIfNeeded() - guard NSScreen.screens.allSatisfy({ !$0.frame.intersects(panel.frame) }) else { - panel.close() - throw NSError(domain: "HostPreview", code: 4) - } - let inheritedDark = view.effectiveAppearance.bestMatch(from: [.aqua, .darkAqua]) == .darkAqua - checks.append(["state": name, "parent": appearance.rawValue, "darkContent": inheritedDark]) - let file = "\(appearance == .aqua ? "light" : "dark")-\(name).png" - guard let rep = canvas.bitmapImageRepForCachingDisplay(in: canvas.bounds) else { throw NSError(domain: "HostPreview", code: 2) } - canvas.cacheDisplay(in: canvas.bounds, to: rep) - guard let data = rep.representation(using: .png, properties: [:]) else { throw NSError(domain: "HostPreview", code: 3) } - try data.write(to: output.appendingPathComponent(file)) - frames.append(["image": file, "width": canvas.bounds.width, "height": canvas.bounds.height, - "contentWidth": view.bounds.width, "contentHeight": view.bounds.height, - "visibleWindow": panel.isVisible, "intersectsScreen": false, "activeApplication": NSApp.isActive, - "darkContent": inheritedDark]) - view.revoke() - panel.setInteraction(nil, animated: false) - panel.close() - } - } - for (file, value) in [("frames.json", frames), ("appearance-checks.json", checks)] { - try JSONSerialization.data(withJSONObject: value, options: [.prettyPrinted, .sortedKeys]) - .write(to: output.appendingPathComponent(file)) - } - let behavior = verifySessionActions() - try JSONSerialization.data(withJSONObject: behavior, options: [.prettyPrinted, .sortedKeys]) - .write(to: output.appendingPathComponent("session-action-checks.json")) - print("Rendered \(frames.count) actual hosted production views; dark content: \(checks.filter { $0["darkContent"] as? Bool == true }.count)/\(checks.count).") - print("Session action checks: \(behavior.filter { $0["pass"] as? Bool == true }.count)/\(behavior.count).") - if behavior.contains(where: { $0["pass"] as? Bool != true }) { exit(1) } - if ProcessInfo.processInfo.environment["WINDOWSHADE_PREVIEW_REQUIRE_DARK"] == "1", - checks.contains(where: { $0["darkContent"] as? Bool != true }) { exit(1) } - } - - @MainActor private static func verifySessionActions() -> [[String: Any]] { - var checks: [[String: Any]] = [] - func check(_ name: String, _ value: Bool) { checks.append(["name": name, "pass": value]) } - func buttons(_ view: NSView) -> [NSButton] { - (view as? NSButton).map { [$0] } ?? view.subviews.flatMap { buttons($0) } - } - let list = WS2AgentSessionView(frame: .zero) - var fresh = false - var opened: [WS2.Context] = [], stopped: [WS2.Context] = [] - list.inputIsCurrent = { fresh } - list.open = { opened.append($0) }; list.stop = { stopped.append($0) } - let values = sessions(long: false) - list.render(values) - let actions = buttons(list) - check("four opens; only owned running can stop", actions.filter { $0.title == "打开" }.count == 4 && actions.filter { $0.title == "停止" }.count == 1) - let open = actions.first { $0.title == "打开" }! - let stop = actions.first { $0.title == "停止" }! - open.performClick(nil); stop.performClick(nil) - check("revoked input cannot invoke actions", opened.isEmpty && stopped.isEmpty) - fresh = true - open.performClick(nil); stop.performClick(nil) - check("open carries exact observed context", opened == [values[0].context]) - check("stop carries exact owned running context", stopped == [values[1].context]) - list.render([]) - open.performClick(nil) - check("old removed row cannot act", opened.count == 1 && buttons(list).isEmpty) - list.render(Array(repeating: values, count: 20).flatMap { $0 }) - check("list bounded at 64 rows", buttons(list).filter { $0.title == "打开" }.count == 64) - let old = buttons(list).first! - list.revoke(); old.performClick(nil) - check("revoke clears bindings and visible actions", opened.count == 1 && stopped.count == 1 && buttons(list).isEmpty) - return checks - } - - private static func sessions(long: Bool) -> [AgentSessions.Session] { - let states: [(WS2.Provider, AgentSessions.Control, AgentSessions.Status, String)] = [ - (.codex, .observed, .running, "正在检查计时器的比例"), - (.claudeCode, .owned, .running, "正在整理项目里的图片"), - (.codex, .observed, .waiting, "等待你确认联网操作"), - (.claudeCode, .owned, .completed, "已完成界面检查")] - return states.enumerated().map { index, value in - let context = WS2.Context(peerID: "fixture", projectID: "设计工作间", session: .init(provider: value.0, id: "fixture-\(index)"), epoch: 1) - return .init(context: context, control: value.1, status: value.2, - summary: long ? String(repeating: "这是一句用于检查换行与动作位置的自造文字。", count: 16) : value.3, - turnID: nil, tools: [], lastUpdate: .init(nanoseconds: 0)) - } - } -} diff --git a/tools/archive/design-qa-batch23-29/MediaArtworkPreview.swift b/tools/archive/design-qa-batch23-29/MediaArtworkPreview.swift deleted file mode 100644 index 04f2bde0..00000000 --- a/tools/archive/design-qa-batch23-29/MediaArtworkPreview.swift +++ /dev/null @@ -1,87 +0,0 @@ -import Cocoa -import ImageIO - -/// Real decoder/palette/card, diagnostic pixels and routes only; no music/system commands. -enum MediaArtworkPreview { - enum Failure:Error {case check(String)} - static func artwork(_ kind:String,track:String,out:URL) throws -> NowPlayingArtworkImage { - let side=128 - var pixels=[UInt8]();pixels.reserveCapacity(side*side*4) - for _ in 0..[NSTextField] {(view as? NSTextField).map{[$0]} ?? view.subviews.flatMap{fields($0)}} - let artist=fields(card).first{$0.stringValue==content.artist} - let actual=artist?.textColor?.usingColorSpace(.sRGB) - let expected=state=="removed" ? ArtworkPalette.neutral:image.palette - func capture(_ suffix:String) throws { - let name=parent+"-"+suffix+".png" - guard let rep=canvas.bitmapImageRepForCachingDisplay(in:canvas.bounds) else {throw Failure.check("bitmap")} - canvas.cacheDisplay(in:canvas.bounds,to:rep) - guard let png=rep.representation(using:.png,properties:[:]) else {throw Failure.check("png")} - try png.write(to:out.appendingPathComponent(name)) - frames.append(["image":name,"state":suffix,"synthetic":true,"width":canvas.bounds.width,"height":canvas.bounds.height,"contentWidth":card.bounds.width,"contentHeight":card.bounds.height,"panelAlpha":panel.alphaValue,"intersectsScreen":!outside,"activeApplication":NSApp.isActive,"routeReads":reads,"routeCount":card.routes.count,"listOpen":card.listOpen,"hasDecodedColor":image.palette.hasColor,"expectedTextRGB":[expected.text.r,expected.text.g,expected.text.b],"actualArtistRGB":actual.map{[$0.redComponent,$0.greenComponent,$0.blueComponent]} ?? [],"artist":content.artist,"artworkRemoved":state=="removed","decodedRGBABytes":image.rgba.count]) - try JSONSerialization.data(withJSONObject:frames,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("frames.json")) - } - try capture(state) - if state=="routes-eight" { - func scrolls(_ view:NSView)->[NSScrollView] {(view as? NSScrollView).map{[$0]} ?? view.subviews.flatMap{scrolls($0)}} - guard let scroll=scrolls(card).first,let document=scroll.documentView else {throw Failure.check("route scroll")} - let offset=max(0,document.bounds.height-scroll.contentView.bounds.height) - scroll.contentView.scroll(to:NSPoint(x:0,y:offset));scroll.reflectScrolledClipView(scroll.contentView) - guard offset>0,abs(scroll.contentView.bounds.minY-offset) < 0.1 else {throw Failure.check("scroll endpoint")} - try await Task.sleep(nanoseconds:100_000_000) - try capture("routes-last") - } - } - } - print("Rendered \(frames.count) production colored media/scroll endpoint frames; synthetic inputs only.") - } -} diff --git a/tools/archive/design-qa-batch23-29/MediaFeedbackPreview.swift b/tools/archive/design-qa-batch23-29/MediaFeedbackPreview.swift deleted file mode 100644 index f65b5217..00000000 --- a/tools/archive/design-qa-batch23-29/MediaFeedbackPreview.swift +++ /dev/null @@ -1,110 +0,0 @@ -import Cocoa - -/// Actual production media card with synthetic data and local callback recordings only. -enum MediaFeedbackPreview { - enum Failure:Error { case check(String) } - @MainActor static func main() async { - let out=URL(fileURLWithPath:CommandLine.arguments[1],isDirectory:true) - do { try await render(out) } catch { - let failure:[String:Any]=["passed":false,"complete":false,"error":String(describing:error)] - try? JSONSerialization.data(withJSONObject:failure,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("failure.json")) - print("FAILED synthetic media preview: \(error)") - exit(1) - } - } - @MainActor static func render(_ out:URL) async throws { - _=NSApplication.shared;NSApp.setActivationPolicy(.prohibited) - try FileManager.default.createDirectory(at:out,withIntermediateDirectories:true) - var frames:[[String:Any]]=[],checks:[[String:Any]]=[] - for appearance in [NSAppearance.Name.aqua,.darkAqua] { - let parent=appearance == .aqua ? "light":"dark" - for state in ["playing","paused","live","long-title","empty-routes","routes"] { - let panel=NotchPanel(notch:NSRect(x:-8000,y:866.5,width:185,height:33.5),virtual:false) - panel.isReleasedWhenClosed=false;panel.alphaValue=0;panel.appearance=NSAppearance(named:appearance) - let card=NowPlayingCard(geometry:.init(width:185,height:33.5,virtual:false)) - defer { card.revoke();panel.setInteraction(nil,animated:false);panel.close() } - var current=true,commands=0,routeReads=0,devicesAvailable=false - card.inputIsCurrent={current};card.clock={1000} - card.onCommand={_ in commands += 1};card.onSeek={_ in};card.onSelectRoute={_ in} - card.onSizeChange={ [weak panel] opening in panel?.interactionSizeChanged(opening:opening) } - var syntheticRoutes:[AudioOutputRoute]=[] - for index in 0..<5 { - let kind:AudioOutputKind=index==0 ? .mac:.headphones - let name=index==0 ? "样件 Mac":"样件耳机 \(index)" - let route=AudioOutputRoute(id:UInt32(index+1),uid:"synthetic-\(index)",name:name,kind:kind,isCurrent:index==0) - syntheticRoutes.append(route) - } - card.loadRoutes={ - routeReads += 1 - return state == "routes" || devicesAvailable ? syntheticRoutes:[] - } - let live=state == "live",paused=state == "paused" - let title=state == "long-title" ? String(repeating:"很长的样件歌名 · ",count:18):"样件音乐" - card.update(.init(title:title,artist:"合成资料 · 未连接播放器",isPaused:paused,bundleID:"design.synthetic",timeline:.init(duration:live ? nil:240,elapsed:65,stamp:1000,rate:paused ? 0:1),seekable:!live),artwork:nil) - panel.setInteraction(card,animated:false) - if state == "empty-routes" || state == "routes" { card.openList() } - // Wait for actual content fade and host resize endpoints; no animation quality claim. - try await Task.sleep(nanoseconds:900_000_000) - guard let canvas=panel.contentView else { throw Failure.check("canvas") } - canvas.layoutSubtreeIfNeeded() - let outside=NSScreen.screens.allSatisfy{!$0.frame.intersects(panel.frame)} - guard outside,!NSApp.isActive else { throw Failure.check("fixture escaped bounds") } - let isList=state == "routes" || state == "empty-routes" - guard card.listOpen==isList,card.routes.count==(state == "routes" ? 5:0) else { throw Failure.check("synthetic routes") } - let size=card.interactionSize - let expectedWindow=NSRect(x:-7907.5-size.width/2,y:900-33.5-size.height,width:size.width,height:33.5+size.height).integral - let deadline=ProcessInfo.processInfo.systemUptime+3 - while (abs(canvas.bounds.width-expectedWindow.width)>0.1 || abs(canvas.bounds.height-expectedWindow.height)>0.1),ProcessInfo.processInfo.systemUptimeNSTextField? { - if let field=node as? NSTextField,field.stringValue=="暂未找到设备" {return field} - return node.subviews.compactMap{emptyLabel($0)}.first - } - guard let empty=emptyLabel(card) else {throw Failure.check("empty label missing")} - let labelRect=empty.convert(empty.bounds,to:card) - let image="\(parent)-\(state).png" - guard let rep=canvas.bitmapImageRepForCachingDisplay(in:canvas.bounds) else { throw Failure.check("bitmap") } - canvas.cacheDisplay(in:canvas.bounds,to:rep) - guard let png=rep.representation(using:.png,properties:[:]) else { throw Failure.check("png") } - try png.write(to:out.appendingPathComponent(image)) - frames.append(["image":image,"state":state,"parentAppearance":appearance.rawValue,"synthetic":true,"width":canvas.bounds.width,"height":canvas.bounds.height,"contentWidth":card.bounds.width,"contentHeight":card.bounds.height,"requestedWidth":size.width,"requestedHeight":size.height,"panelAlpha":panel.alphaValue,"intersectsScreen":!outside,"activeApplication":NSApp.isActive,"title":title,"listOpen":card.listOpen,"routeCount":card.routes.count,"routeReads":routeReads,"emptyText":empty.stringValue,"emptyVisible":!empty.isHiddenOrHasHiddenAncestor,"emptyBounds":[labelRect.minX,labelRect.minY,labelRect.width,labelRect.height]]) - try JSONSerialization.data(withJSONObject:frames,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("frames.json")) - if state == "empty-routes" { - guard !empty.isHiddenOrHasHiddenAncestor,card.bounds.contains(labelRect),routeReads==1 else {throw Failure.check("empty feedback")} - card.closeList() - try await Task.sleep(nanoseconds:400_000_000) - guard !card.listOpen,empty.isHiddenOrHasHiddenAncestor else {throw Failure.check("return from empty")} - devicesAvailable=true;card.openList() - try await Task.sleep(nanoseconds:400_000_000) - guard card.listOpen,card.routes.count==5,empty.isHiddenOrHasHiddenAncestor,routeReads==2 else {throw Failure.check("retry routes")} - card.closeList();current=false;card.openList() - guard !card.listOpen,routeReads==2 else {throw Failure.check("stale query")} - card.revoke();card.openList() - guard !card.listOpen,routeReads==2,card.pendingTimerCount==0 else {throw Failure.check("revoked query")} - checks.append(["parent":parent,"kind":"empty-feedback","returned":true,"retryDeviceCount":5,"totalRouteReads":routeReads,"pendingTimersAfterRevoke":card.pendingTimerCount,"passed":true]) - } - if state == "playing" { - func find(_ node:NSView)->NSButton? { - if let b=node as? NSButton,b.action==NSSelectorFromString("playAction") {return b} - return node.subviews.compactMap{find($0)}.first - } - guard let button=find(card),let action=button.action else {throw Failure.check("play control")} - let delivered=NSApp.sendAction(action,to:button.target,from:button) - guard delivered,commands==1 else {throw Failure.check("local play callback")} - current=false;_=NSApp.sendAction(action,to:button.target,from:button) - guard commands==1 else {throw Failure.check("stale command")} - card.revoke();_=NSApp.sendAction(action,to:button.target,from:button) - guard commands==1,card.pendingTimerCount==0 else {throw Failure.check("revoke/timers")} - checks.append(["parent":parent,"kind":"play-guard","localPlayCallbacks":commands,"staleAndRevokedCallbacks":commands-1,"pendingTimersAfterRevoke":card.pendingTimerCount,"passed":true]) - } - } - } - for (name,value) in [("frames.json",frames),("checks.json",checks)] { - try JSONSerialization.data(withJSONObject:value,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent(name)) - } - print("Rendered \(frames.count) synthetic media frames; \(checks.count) real control guard checks; no media/system commands.") - } -} diff --git a/tools/archive/design-qa-batch23-29/MediaOwnedStatePreview.swift b/tools/archive/design-qa-batch23-29/MediaOwnedStatePreview.swift deleted file mode 100644 index 10aa7151..00000000 --- a/tools/archive/design-qa-batch23-29/MediaOwnedStatePreview.swift +++ /dev/null @@ -1,192 +0,0 @@ -import Cocoa -import ImageIO - -/// Real decoder/palette/card, diagnostic pixels and routes only; no music/system commands. -enum MediaArtworkPreview { - enum Failure:Error {case check(String)} - static func artwork(_ kind:String,track:String,out:URL) throws -> NowPlayingArtworkImage { - let side=128 - var pixels=[UInt8]();pixels.reserveCapacity(side*side*4) - for _ in 0..[NSTextField] {(view as? NSTextField).map{[$0]} ?? view.subviews.flatMap{fields($0)}} - let artist=fields(card).first{$0.stringValue==content.artist} - let actual=artist?.textColor?.usingColorSpace(.sRGB) - let expected=state=="removed" ? ArtworkPalette.neutral:image.palette - func capture(_ suffix:String) throws { - let name=parent+"-"+suffix+".png" - guard let rep=canvas.bitmapImageRepForCachingDisplay(in:canvas.bounds) else {throw Failure.check("bitmap")} - canvas.cacheDisplay(in:canvas.bounds,to:rep) - guard let png=rep.representation(using:.png,properties:[:]) else {throw Failure.check("png")} - try png.write(to:out.appendingPathComponent(name)) - frames.append(["image":name,"state":suffix,"synthetic":true,"width":canvas.bounds.width,"height":canvas.bounds.height,"contentWidth":card.bounds.width,"contentHeight":card.bounds.height,"panelAlpha":panel.alphaValue,"intersectsScreen":!outside,"activeApplication":NSApp.isActive,"routeReads":reads,"routeCount":card.routes.count,"listOpen":card.listOpen,"hasDecodedColor":image.palette.hasColor,"expectedTextRGB":[expected.text.r,expected.text.g,expected.text.b],"actualArtistRGB":actual.map{[$0.redComponent,$0.greenComponent,$0.blueComponent]} ?? [],"artist":content.artist,"artworkRemoved":state=="removed","decodedRGBABytes":image.rgba.count]) - try JSONSerialization.data(withJSONObject:frames,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("frames.json")) - } - try capture(state) - if state=="routes-eight" { - func scrolls(_ view:NSView)->[NSScrollView] {(view as? NSScrollView).map{[$0]} ?? view.subviews.flatMap{scrolls($0)}} - guard let scroll=scrolls(card).first,let document=scroll.documentView else {throw Failure.check("route scroll")} - let offset=max(0,document.bounds.height-scroll.contentView.bounds.height) - scroll.contentView.scroll(to:NSPoint(x:0,y:offset));scroll.reflectScrolledClipView(scroll.contentView) - guard offset>0,abs(scroll.contentView.bounds.minY-offset) < 0.1 else {throw Failure.check("scroll endpoint")} - try await Task.sleep(nanoseconds:100_000_000) - try capture("routes-last") - } - } - } - print("Rendered \(frames.count) production colored media/scroll endpoint frames; synthetic inputs only.") - } -} - -import Cocoa - -/// Production owned views driven by isolated synthetic stdio states; no login/browser/user projects. -enum OwnedStatePreview { - enum Failure:Error {case check(String)} - @MainActor static func until(_ label:String,_ predicate:()->Bool) async throws { - let end=ProcessInfo.processInfo.systemUptime+10 - while !predicate(),ProcessInfo.processInfo.systemUptime[NSView] {[view]+view.subviews.flatMap{nodes($0)}} - let visible=nodes(content).filter{!$0.isHiddenOrHasHiddenAncestor} - let labels=visible.compactMap{$0 as? NSTextField}.map{field->[String:Any] in - let r=field.convert(field.bounds,to:content) - return ["text":field.stringValue,"x":r.minX,"y":r.minY,"width":r.width,"height":r.height] - } - let buttons=visible.compactMap{$0 as? NSButton}.map{button->[String:Any] in - let r=button.convert(button.bounds,to:content) - return ["title":button.title,"enabled":button.isEnabled,"x":r.minX,"y":r.minY,"width":r.width,"height":r.height] - } - let name=parent+"-"+state+".png" - guard let rep=canvas.bitmapImageRepForCachingDisplay(in:canvas.bounds) else {throw Failure.check("bitmap")} - canvas.cacheDisplay(in:canvas.bounds,to:rep) - guard let png=rep.representation(using:.png,properties:[:]) else {throw Failure.check("png")} - try png.write(to:out.appendingPathComponent(name)) - frames.append(["image":name,"state":state,"synthetic":true,"phase":String(describing:controller.phase),"status":controller.status,"notice":controller.notice,"canSend":controller.canSend,"canChooseModel":controller.canChooseModel,"selectedModel":controller.model as Any? ?? NSNull(),"width":canvas.bounds.width,"height":canvas.bounds.height,"contentWidth":content.bounds.width,"contentHeight":content.bounds.height,"panelAlpha":panel.alphaValue,"intersectsScreen":!outside,"activeApplication":NSApp.isActive,"labels":labels,"buttons":buttons]) - try JSONSerialization.data(withJSONObject:frames,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("frames.json")) - } -} - -@main enum MediaOwnedStatePreview { - @MainActor static func main() async { - let root=URL(fileURLWithPath:CommandLine.arguments[1],isDirectory:true) - do { - try await MediaArtworkPreview.render(root.appendingPathComponent("media")) - try await OwnedStatePreview.render(root.appendingPathComponent("owned")) - } catch { - try? JSONSerialization.data(withJSONObject:["passed":false,"error":String(describing:error)],options:[.prettyPrinted]).write(to:root.appendingPathComponent("failure.json")) - print("FAILED state preview: \(error)");exit(1) - } - } -} diff --git a/tools/archive/design-qa-batch23-29/MediaSurfacePreview.swift b/tools/archive/design-qa-batch23-29/MediaSurfacePreview.swift deleted file mode 100644 index 133c8d38..00000000 --- a/tools/archive/design-qa-batch23-29/MediaSurfacePreview.swift +++ /dev/null @@ -1,90 +0,0 @@ -import Cocoa - -/// Actual production media card with synthetic data and local callback recordings only. -@main enum MediaSurfacePreview { - enum Failure:Error { case check(String) } - @MainActor static func main() async { - let out=URL(fileURLWithPath:CommandLine.arguments[1],isDirectory:true) - do { try await render(out) } catch { - let failure:[String:Any]=["passed":false,"complete":false,"error":String(describing:error)] - try? JSONSerialization.data(withJSONObject:failure,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("failure.json")) - print("FAILED synthetic media preview: \(error)") - exit(1) - } - } - @MainActor static func render(_ out:URL) async throws { - _=NSApplication.shared;NSApp.setActivationPolicy(.prohibited) - try FileManager.default.createDirectory(at:out,withIntermediateDirectories:true) - var frames:[[String:Any]]=[],checks:[[String:Any]]=[] - for appearance in [NSAppearance.Name.aqua,.darkAqua] { - let parent=appearance == .aqua ? "light":"dark" - for state in ["playing","paused","live","long-title","empty-routes","routes"] { - let panel=NotchPanel(notch:NSRect(x:-8000,y:866.5,width:185,height:33.5),virtual:false) - panel.isReleasedWhenClosed=false;panel.alphaValue=0;panel.appearance=NSAppearance(named:appearance) - let card=NowPlayingCard(geometry:.init(width:185,height:33.5,virtual:false)) - defer { card.revoke();panel.setInteraction(nil,animated:false);panel.close() } - var current=true,commands=0,routeReads=0 - card.inputIsCurrent={current};card.clock={1000} - card.onCommand={_ in commands += 1};card.onSeek={_ in};card.onSelectRoute={_ in} - card.onSizeChange={ [weak panel] opening in panel?.interactionSizeChanged(opening:opening) } - var syntheticRoutes:[AudioOutputRoute]=[] - for index in 0..<5 { - let kind:AudioOutputKind=index==0 ? .mac:.headphones - let name=index==0 ? "样件 Mac":"样件耳机 \(index)" - let route=AudioOutputRoute(id:UInt32(index+1),uid:"synthetic-\(index)",name:name,kind:kind,isCurrent:index==0) - syntheticRoutes.append(route) - } - card.loadRoutes={ - routeReads += 1 - return state == "routes" ? syntheticRoutes:[] - } - let live=state == "live",paused=state == "paused" - let title=state == "long-title" ? String(repeating:"很长的样件歌名 · ",count:18):"样件音乐" - card.update(.init(title:title,artist:"合成资料 · 未连接播放器",isPaused:paused,bundleID:"design.synthetic",timeline:.init(duration:live ? nil:240,elapsed:65,stamp:1000,rate:paused ? 0:1),seekable:!live),artwork:nil) - panel.setInteraction(card,animated:false) - if state == "empty-routes" || state == "routes" { card.openList() } - // Wait for actual content fade and host resize endpoints; no animation quality claim. - try await Task.sleep(nanoseconds:900_000_000) - guard let canvas=panel.contentView else { throw Failure.check("canvas") } - canvas.layoutSubtreeIfNeeded() - let outside=NSScreen.screens.allSatisfy{!$0.frame.intersects(panel.frame)} - guard outside,!NSApp.isActive else { throw Failure.check("fixture escaped bounds") } - let isList=state == "routes" - guard card.listOpen==isList,card.routes.count==(isList ? 5:0) else { throw Failure.check("synthetic routes") } - let size=card.interactionSize - let expectedWindow=NSRect(x:-7907.5-size.width/2,y:900-33.5-size.height,width:size.width,height:33.5+size.height).integral - let deadline=ProcessInfo.processInfo.systemUptime+3 - while (abs(canvas.bounds.width-expectedWindow.width)>0.1 || abs(canvas.bounds.height-expectedWindow.height)>0.1),ProcessInfo.processInfo.systemUptimeNSButton? { - if let b=node as? NSButton,b.action==NSSelectorFromString("playAction") {return b} - return node.subviews.compactMap{find($0)}.first - } - guard let button=find(card),let action=button.action else {throw Failure.check("play control")} - let delivered=NSApp.sendAction(action,to:button.target,from:button) - guard delivered,commands==1 else {throw Failure.check("local play callback")} - current=false;_=NSApp.sendAction(action,to:button.target,from:button) - guard commands==1 else {throw Failure.check("stale command")} - card.revoke();_=NSApp.sendAction(action,to:button.target,from:button) - guard commands==1,card.pendingTimerCount==0 else {throw Failure.check("revoke/timers")} - checks.append(["parent":parent,"localPlayCallbacks":commands,"staleAndRevokedCallbacks":commands-1,"pendingTimersAfterRevoke":card.pendingTimerCount,"passed":true]) - } - } - } - for (name,value) in [("frames.json",frames),("checks.json",checks)] { - try JSONSerialization.data(withJSONObject:value,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent(name)) - } - print("Rendered \(frames.count) synthetic media frames; \(checks.count) real control guard checks; no media/system commands.") - } -} diff --git a/tools/archive/design-qa-batch23-29/MergedRowPreview.swift b/tools/archive/design-qa-batch23-29/MergedRowPreview.swift deleted file mode 100644 index e2f5dc4b..00000000 --- a/tools/archive/design-qa-batch23-29/MergedRowPreview.swift +++ /dev/null @@ -1,96 +0,0 @@ -import Cocoa - -/// Production M11 canvas/content, without any source/controller/window operation. -@main enum MergedRowPreview { - enum Failure: Error { case check(String) } - static func rect(_ r: NSRect) -> [String: Double] { ["x": r.minX, "y": r.minY, "width": r.width, "height": r.height] } - @MainActor static func main() async { - _ = NSApplication.shared; NSApp.setActivationPolicy(.prohibited) - let out = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - do { - try FileManager.default.createDirectory(at: out, withIntermediateDirectories: true) - var frames: [[String: Any]] = [] - for parent in [NSAppearance.Name.aqua, .darkAqua] { - for sample in ["windows", "activities", "mixed", "long", "unknown", "stale-ended"] { - let windows = sample == "activities" ? 0 : 2 - let ongoing = sample == "windows" ? 0 : 3 - var tiles: [NotchTile] = (0..=6.0) -#error("Swift6 required") -#endif - -/// 第26批独立数学核对:只链接 `Core/FlickMotion.swift`(纯计算,不碰 CALayer)。 -/// 用四阶 Runge–Kutta 数值积分同一条 ODE 与解析解对照;逐项验证反向符号、零行程、下界削减。 -/// 这是数学层的独立核对,不冒充真机动画或可见合成验收。 -@main enum MorphRetargetMathPreview { - enum Failure: Error { case check(String) } - - /// RK4 积分 m=1 的 x'' = −2ζω·x' − ω²·x,从 (x, v) 走到时刻 end。 - static func integrate(zeta: Double, omega: Double, x: Double, v: Double, - until end: Double, step: Double = 1.0 / 4000) -> (x: Double, v: Double) { - var x = x, v = v, now = 0.0 - func acceleration(_ position: Double, _ velocity: Double) -> Double { - -2 * zeta * omega * velocity - omega * omega * position - } - while now < end { - let h = min(step, end - now) - let k1x = v, k1v = acceleration(x, v) - let k2x = v + h / 2 * k1v, k2v = acceleration(x + h / 2 * k1x, v + h / 2 * k1v) - let k3x = v + h / 2 * k2v, k3v = acceleration(x + h / 2 * k2x, v + h / 2 * k2v) - let k4x = v + h * k3v, k4v = acceleration(x + h * k3x, v + h * k3v) - x += h / 6 * (k1x + 2 * k2x + 2 * k3x + k4x) - v += h / 6 * (k1v + 2 * k2v + 2 * k3v + k4v) - now += h - } - return (x, v) - } - - static func main() { - let out = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - do { - try FileManager.default.createDirectory(at: out, withIntermediateDirectories: true) - var checks = [[String: Any]]() - func record(_ name: String, _ value: [String: Any]) { - checks.append(["name": name].merging(value) { a, _ in a }) - } - - // 1) 解析解 vs RK4:欠阻尼(ζ=0.92、0.5)、临界(ζ=1);朝目标、背离目标、零行程踢,各时刻对照。 - for (name, zeta, response) in [("underdamped-0.92", 0.92, 0.4), ("underdamped-0.5", 0.5, 0.34), ("critical", 1.0, 0.34)] { - let omega = 2 * Double.pi / response - let spring = FlickSpring(dampingRatio: zeta, response: response) - for (caseName, x0, v0) in [("toward", 100.0, -200.0), ("away", 100.0, 200.0), - ("kick", 0.0, 700.0), ("kick-away", 0.0, -700.0)] { - for at in [0.02, 0.05, 0.1, 0.2, 0.4] { - let analytic = spring.state(displacement: x0, velocity: v0, at: at) - let numeric = integrate(zeta: zeta, omega: omega, x: x0, v: v0, until: at) - let dx = abs(analytic.x - numeric.x), dv = abs(analytic.v - numeric.v) - guard dx < 1e-4 * max(1, abs(x0)), dv < 1e-3 * max(1, abs(x0)) else { - throw Failure.check("analytic-vs-rk4 \(name)/\(caseName)/t=\(at): dx=\(dx) dv=\(dv)") - } - record("analytic-\(name)-\(caseName)", ["t": at, "xError": dx, "vError": dv]) - } - } - } - - // 2) liveVelocity:CASpring 实际系数(25 批记录 mass=1 stiffness=246.7401 damping=28.9027) - // 换算成 (ζ, response) 后与直接构造的解析解一致;nv 反号 → 物理速度反号,符号=朝目标。 - let stiffness = 246.740_110_027_233_95, damping = 28.902_652_413_026_097 - let w0 = stiffness.squareRoot() - let zeta = damping / (2 * w0) - let direct = FlickSpring(dampingRatio: zeta, response: 2 * Double.pi / w0) - for nv in [1.0, -1.0] { - let fromActual = MorphRetarget.liveVelocity( - of: .init(mass: 1, stiffness: stiffness, damping: damping, - from: -100, normalizedVelocity: nv, beginTime: 0, duration: 1), at: 0.1)! - let fromDirect = direct.state(displacement: -100, velocity: -nv * -100, at: 0.1).v - guard abs(fromActual - fromDirect) < 1e-9 else { throw Failure.check("liveVelocity mismatch nv=\(nv)") } - // 符号在 t≈0 检查(ζω·|x0| 的加速度毫秒内就能改写速度):t=1e-4 时解析速度 ≈ v0, - // 误差 ~ω²·|x0|·t ≈ 2.5%。物理初速 v0 = −nv·from;from=−100 时 nv=+1 → v0=+100(朝目标)。 - let initial = MorphRetarget.liveVelocity( - of: .init(mass: 1, stiffness: stiffness, damping: damping, - from: -100, normalizedVelocity: nv, beginTime: 0, duration: 1), at: 0.0001)! - let expectedV0 = -nv * -100 - guard initial * expectedV0 > 0, abs(initial - expectedV0) < abs(expectedV0) * 0.15 else { - throw Failure.check("liveVelocity sign nv=\(nv): \(initial) vs v0=\(expectedV0)") - } - record("live-velocity", ["nv": nv, "velocity@0.1": fromActual, "velocity@0.002": initial]) - } - - // 3) handoff 弹簧路径:nv = v/Δ 带符号;物理初速(nv × Δ)恒等于 v,速度连续。 - for (caseName, v, delta) in [("continue", 200.0, 50.0), ("reverse", 200.0, -50.0), - ("reverse-opposite", -200.0, 50.0), ("continue-opposite", -200.0, -50.0)] { - let axis = MorphRetarget.handoff(remainingTravel: delta, liveVelocity: v, fallbackVelocity: 0, - response: 0.4, dampingRatio: 0.92, floor: nil)! - guard axis.kick == nil, abs(axis.initialVelocity - v / delta) < 1e-12 else { - throw Failure.check("handoff \(caseName): \(axis)") - } - let physical = axis.initialVelocity * delta - guard abs(physical - v) < 1e-9 else { throw Failure.check("handoff physical \(caseName): \(physical)") } - record("handoff-\(caseName)", ["v": v, "delta": delta, "nv": axis.initialVelocity]) - } - - // 4) fallback:旧动画不在飞 → 保留调用者初速度,不覆盖甩动手感。 - let fallback = MorphRetarget.handoff(remainingTravel: 90, liveVelocity: nil, fallbackVelocity: -3.5, - response: 0.4, dampingRatio: 1, floor: nil)! - guard fallback.kick == nil, fallback.initialVelocity == -3.5 else { throw Failure.check("fallback \(fallback)") } - - // 5) 零行程:没有速度 → 不动;有速度 → kick。首值 0、收尾回 0、时长有限、单调时间。 - guard MorphRetarget.handoff(remainingTravel: 0, liveVelocity: nil, fallbackVelocity: 0, - response: 0.4, dampingRatio: 1, floor: nil) == nil else { - throw Failure.check("zero-travel at rest should be nil") - } - for (caseName, v) in [("kick", 700.0), ("kick-away", -700.0)] { - let axis = MorphRetarget.handoff(remainingTravel: 0, liveVelocity: v, fallbackVelocity: 0, - response: 0.4, dampingRatio: 1, floor: nil)! - guard let kick = axis.kick, axis.initialVelocity == 0 else { throw Failure.check("zero-travel \(caseName)") } - guard kick.values.first == 0, abs(kick.values.last!) < 1e-9 else { throw Failure.check("kick endpoints \(caseName)") } - guard kick.times.first == 0, let duration = kick.times.last, duration > 0, duration <= 1.3 else { - throw Failure.check("kick duration \(caseName)") - } - let peak = kick.values.map(abs).max()! - // 临界 kick 峰值 = v·response/(2π)/e:700×0.0637/2.718 ≈ 16.4 点,有界。 - let bound = 700 * (0.4 / (2 * Double.pi)) / exp(1) * 1.05 - guard peak < bound, peak > 0 else { throw Failure.check("kick bound \(caseName): \(peak) vs \(bound)") } - guard kick.times == kick.times.sorted(), Set(kick.times).count == kick.times.count else { - throw Failure.check("kick times monotonic \(caseName)") - } - record("zero-\(caseName)", ["peak": peak, "duration": kick.times.last!, "samples": kick.values.count]) - } - - // 6) 下界:宽度 target=33.5、floor=−33.5,向内 2000 点/秒会把未削减的 kick 推到 −23: - // 削幅值保方向,min(values) ≥ floor,仍有负位移(方向没丢),收尾回 0。 - let floored = MorphRetarget.kickKeyframes(velocity: -2000, response: 0.34, dampingRatio: 1, floor: -33.5)! - guard let clipped = floored.values.min(), clipped >= -33.5 else { throw Failure.check("floor \(String(describing: floored.values.min()))") } - guard floored.values.contains(where: { $0 < 0 }) else { throw Failure.check("floor direction kept") } - guard floored.values.first == 0, abs(floored.values.last!) < 1e-9 else { throw Failure.check("floor endpoints") } - let unclipped = MorphRetarget.kickKeyframes(velocity: -2000, response: 0.34, dampingRatio: 1, floor: nil)! - guard let rawMin = unclipped.values.min(), rawMin < -33.5 else { throw Failure.check("floor was binding: \(String(describing: unclipped.values.min()))") } - record("floor-width", ["clipped": clipped, "unclipped": rawMin]) - - // 7) 极小行程(0.4 ≤ 0.5 阈值)带速度走 kick;极端速度有上限截断。 - let tiny = MorphRetarget.handoff(remainingTravel: 0.4, liveVelocity: 300, fallbackVelocity: 0, - response: 0.4, dampingRatio: 1, floor: nil)! - guard tiny.kick != nil else { throw Failure.check("tiny travel should kick") } - let capped = MorphRetarget.kickKeyframes(velocity: 50000, response: 0.4, dampingRatio: 1, floor: nil)! - guard let cappedPeak = capped.values.map(abs).max(), - cappedPeak < 5000 * (0.4 / (2 * Double.pi)) / exp(1) * 1.05 else { - throw Failure.check("maxVelocity cap: \(String(describing: capped.values.map(abs).max()))") - } - - let payload: [String: Any] = [ - "checks": checks, - "kind": "pure-math-ode-and-handoff", - "compositorAccepted": false, - "realSources": 0, - "globalInputEvents": 0, - "productEntry": false, - "mainThread": Thread.isMainThread, - ] - try JSONSerialization.data(withJSONObject: payload, options: [.prettyPrinted, .sortedKeys]) - .write(to: out.appendingPathComponent("math.json")) - print("PASS analytic/RK4, live-velocity, handoff sign, zero-travel kick, floor clipping") - } catch { - try? String(describing: error).write(to: out.appendingPathComponent("failure.txt"), atomically: true, encoding: .utf8) - print("FAIL math probe: \(error)") - exit(1) - } - } -} diff --git a/tools/archive/design-qa-batch23-29/NotchMotionPreview.swift b/tools/archive/design-qa-batch23-29/NotchMotionPreview.swift deleted file mode 100644 index 10bb1139..00000000 --- a/tools/archive/design-qa-batch23-29/NotchMotionPreview.swift +++ /dev/null @@ -1,143 +0,0 @@ -import Cocoa -import QuartzCore - -#if !swift(>=6.0) -#error("NotchMotionPreview requires render-native-surfaces.sh --swift6") -#endif - -@main enum NotchMotionPreview { - enum Failure: Error { case check(String) } - /// Point-in-time diagnostic; no thread-local state is carried across an await. - @MainActor static func mainThreadNow() -> Bool { Thread.isMainThread } - @MainActor static func field(_ object: Any, _ name: String) -> Any? { - guard let value = Mirror(reflecting: object).children.first(where: { $0.label == name })?.value else { return nil } - let mirror = Mirror(reflecting: value) - return mirror.displayStyle == .optional ? mirror.children.first?.value : value - } - @MainActor static func box(_ r: NSRect) -> [String: CGFloat] { ["x":r.minX,"y":r.minY,"width":r.width,"height":r.height] } - @MainActor static func content(id: UInt32?, count: Int = 2) throws -> NotchCanvasView.Content { - var tiles = [NotchTile]() - if let id { - let item = NotchActivity(id: "qa-motion-\(id)", kind: .download, title: "演示下载", subtitle: "演示材料.zip", symbol: "arrow.down.circle", startedAt: 0, progress: .count(count,9), isPaused: false, sessionPhase: nil) - guard let cell = NotchRow.ongoingCells(from: [item]).first else { throw Failure.check("pure Core projection") } - let ongoing = NotchTile.Ongoing(activityID: cell.activityID, subtitle: cell.subtitle, symbol: cell.symbol, - phase: cell.phase, isPaused: cell.isPaused, quantity: cell.quantity, quantityText: cell.quantityText, - spoken: cell.spoken, action: cell.action, closesRow: cell.closesRow, accessory: cell.accessory, - isStale: cell.isStale, isEnded: cell.isEnded) - tiles.append(NotchTile(id: id, kind: .activity, snapshot: nil, icon: nil, title: cell.title, waiting: false, ongoing: ongoing)) - } - return .init(tiles: tiles, dots: 0, dotsChanged: false, dotsY: 0, compact: nil, compactSlots: nil, alert: nil, hint: nil, notchHeight: 33.5) - } - @MainActor static func main() { - _ = NSApplication.shared; NSApp.setActivationPolicy(.prohibited) - guard Thread.isMainThread, NSApp.delegate == nil else { fatalError("own main-thread entry only") } - let out = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - Task { @MainActor in - do { try await run(out); exit(0) } - catch { - try? String(describing: error).write(to: out.appendingPathComponent("failure.txt"), atomically: true, encoding: .utf8) - print("FAILED motion probe: \(error)"); exit(1) - } - } - // Only our entry pumps Cocoa; no product delegate, listener, controller, menu or input injection. - NSApp.run() - } - @MainActor static func run(_ out: URL) async throws { - try FileManager.default.createDirectory(at: out, withIntermediateDirectories: true) - let oldOverride = Motion.reducedOverrideForProbe - defer { Motion.reducedOverrideForProbe = oldOverride } - var frames = [[String: Any]](), callbacks = [[String: Any]]() - var counts = [String: Int]() - var report: [String: Any] = ["swiftLanguageVersion":6,"productEntry":false,"realSources":0,"globalInputEvents":0,"windowActions":0,"mainThread":mainThreadNow()] - func flush() throws { - report["frames"] = frames; report["callbacks"] = callbacks; report["counts"] = counts - try JSONSerialization.data(withJSONObject: report, options: [.prettyPrinted,.sortedKeys]).write(to: out.appendingPathComponent("frames.json"), options: .atomic) - } - for reduced in [false,true] { - Motion.reducedOverrideForProbe = reduced - let mode = reduced ? "reduced" : "regular" - let bounds = NSRect(x:0,y:0,width:800,height:400) - let canvas = NotchCanvasView(frame: bounds) - let window = NSWindow(contentRect: bounds, styleMask: [.borderless], backing: .buffered, defer: false) - window.isReleasedWhenClosed = false; window.alphaValue = 0; window.contentView = canvas - window.setFrame(NSRect(x:-8000,y:-8000,width:800,height:400),display:false) - defer { window.close() } - guard let island = field(canvas,"island") as? CALayer else { throw Failure.check("actual island layer") } - let empty = try content(id:nil), first = try content(id:900), updated = try content(id:900,count:3), replacement = try content(id:901,count:4) - let compact = NSRect(x:(800-185)/2,y:400-33.5,width:185,height:33.5) - let expandedHeight = 33.5 + NotchIsland.peninsulaContentHeight(142) - let expanded = NSRect(x:(800-305)/2,y:400-expandedHeight,width:305,height:expandedHeight) - func token(_ shape: Motion.NotchShape) -> NotchCanvasView.Spring { - let value = Motion.notchSpring(for:shape) - return .init(response:value.response,bounce:value.bounce) - } - func morph(_ name: String, to rect: NSRect, content: NotchCanvasView.Content, spring: NotchCanvasView.Spring?) { - let key = mode + "-" + name - canvas.morph(to:rect,style:.init(cornerRadius:rect.height>34 ? 28:12,allCorners:false,fill:.black,border:0.5),content:content,spring:spring) { - counts[key,default:0] += 1 - callbacks.append(["name":key,"mainThread":Thread.isMainThread,"time":CACurrentMediaTime()]) - try? flush() - } - } - func snapshot(_ stage: String) throws { - guard !window.isVisible, !NSApp.isActive, Thread.isMainThread, NSApp.delegate == nil, - !NSScreen.screens.contains(where:{$0.frame.intersects(window.frame)}) else { throw Failure.check("own hidden main-thread host") } - canvas.layoutSubtreeIfNeeded() - let current = field(canvas,"current") as? NSView - var ids = [UInt32](), identities = [String](), quantities = [[String:Int]]() - func visit(_ view:NSView) { - if let tile = view as? NotchTileView, let model = field(tile,"tile") as? NotchTile { - ids.append(model.id); identities.append(String(describing:ObjectIdentifier(tile))) - if case let .count(k,n) = model.ongoing?.quantity ?? .unknown { quantities.append(["completed":k,"total":n]) } - } - view.subviews.forEach(visit) - } - if let current { visit(current) } - let name = mode + "-" + stage - guard let bitmap=canvas.bitmapImageRepForCachingDisplay(in:bounds) else {throw Failure.check("bitmap")} - canvas.cacheDisplay(in:bounds,to:bitmap) - guard let png=bitmap.representation(using:.png,properties:[:]) else {throw Failure.check("PNG")} - try png.write(to:out.appendingPathComponent(name+".png")) - let keys=island.animationKeys() ?? [] - var animations=[[String:Any]]() - for key in keys { if let a=island.animation(forKey:key) { animations.append(["key":key,"duration":a.duration,"class":String(describing:type(of:a))]) } } - frames.append(["name":name,"stage":stage,"reduced":reduced,"time":CACurrentMediaTime(),"model":box(island.frame), - "presentation":island.presentation().map{box($0.frame)} as Any? ?? NSNull(),"animations":animations, - "pendingExit":field(canvas,"contentExitPending") as? Bool ?? false,"tileIDs":ids,"tileIdentities":identities,"tileQuantities":quantities, - "currentIdentity":current.map{String(describing:ObjectIdentifier($0))} as Any? ?? NSNull(), - "active":NSApp.isActive,"visible":window.isVisible,"alpha":window.alphaValue,"mainThread":Thread.isMainThread, - "cacheOnly":true]) - try flush() - } - func wait(_ key: String) async throws { - let animationTime = (island.animationKeys() ?? []).compactMap { island.animation(forKey:$0)?.duration }.max() ?? 0 - let deadline=ProcessInfo.processInfo.systemUptime+max(4,animationTime+1) - while counts[mode+"-"+key,default:0]==0, ProcessInfo.processInfo.systemUptime=6.0) -#error("NotchRetargetPreview requires render-native-surfaces.sh --swift6") -#endif - -/// 第26批动效探针:同一实际 NotchCanvasView、隐藏自有宿主。逐轴记录接力配置(position.x/y、 -/// bounds.size.width/height、cornerRadius)、呈现轨迹、富内容延迟收形状的实际起点、近零行程 kick、 -/// 取消与过期回调、减少动态效果。配置与隐藏呈现证据,不是帧率/可见合成/真机验收。 -@main enum NotchRetargetPreview { - enum Failure: Error { case check(String) } - /// 时间点诊断:不把线程本地状态带过 await。 - @MainActor static func mainThreadNow() -> Bool { Thread.isMainThread } - @MainActor static func field(_ object: Any, _ name: String) -> Any? { - guard let value = Mirror(reflecting: object).children.first(where: { $0.label == name })?.value else { return nil } - let mirror = Mirror(reflecting: value) - return mirror.displayStyle == .optional ? mirror.children.first?.value : value - } - @MainActor static func box(_ r: NSRect) -> [String: CGFloat] { ["x":r.minX,"y":r.minY,"width":r.width,"height":r.height] } - /// 带真实内容的岛内容(一排一格,足够的“富内容”触发先退文字的路)。 - @MainActor static func richContent(id: UInt32, count: Int = 2) throws -> NotchCanvasView.Content { - let item = NotchActivity(id: "qa-retarget-\(id)", kind: .download, title: "演示下载", subtitle: "演示材料.zip", - symbol: "arrow.down.circle", startedAt: 0, progress: .count(count, 9), - isPaused: false, sessionPhase: nil) - guard let cell = NotchRow.ongoingCells(from: [item]).first else { throw Failure.check("pure Core projection") } - let ongoing = NotchTile.Ongoing(activityID: cell.activityID, subtitle: cell.subtitle, symbol: cell.symbol, - phase: cell.phase, isPaused: cell.isPaused, quantity: cell.quantity, quantityText: cell.quantityText, - spoken: cell.spoken, action: cell.action, closesRow: cell.closesRow, accessory: cell.accessory, - isStale: cell.isStale, isEnded: cell.isEnded) - return .init(tiles: [NotchTile(id: id, kind: .activity, snapshot: nil, icon: nil, title: cell.title, - waiting: false, ongoing: ongoing)], - dots: 0, dotsChanged: false, dotsY: 0, compact: nil, compactSlots: nil, alert: nil, hint: nil, - notchHeight: 33.5) - } - @MainActor static func emptyContent() -> NotchCanvasView.Content { - .init(tiles: [], dots: 0, dotsChanged: false, dotsY: 0, compact: nil, compactSlots: nil, alert: nil, hint: nil, - notchHeight: 33.5) - } - /// 一根轴上的动画:弹簧记录实际系数与归一化初速度;关键帧记录采样值(kick 路)。 - @MainActor static func animations(_ layer: CALayer) -> [[String: Any]] { - var out = [[String: Any]]() - for key in (layer.animationKeys() ?? []).sorted() { - guard let a = layer.animation(forKey: key) else { continue } - if let s = a as? CASpringAnimation { - var d: [String: Any] = ["key":key,"keyPath":s.keyPath ?? "","class":"CASpringAnimation", - "mass":Double(s.mass),"stiffness":Double(s.stiffness),"damping":Double(s.damping), - "duration":s.duration,"beginTime":s.beginTime,"additive":s.isAdditive, - "velocity":Double(s.initialVelocity)] - if let f = s.fromValue as? NSNumber { d["from"] = f.doubleValue } - out.append(d) - } else if let k = a as? CAKeyframeAnimation { - var d: [String: Any] = ["key":key,"keyPath":k.keyPath ?? "","class":"CAKeyframeAnimation", - "duration":k.duration,"beginTime":k.beginTime,"additive":k.isAdditive] - if let vs = k.values { d["values"] = vs.compactMap { ($0 as? NSNumber)?.doubleValue } } - if let kt = k.keyTimes { d["keyTimes"] = kt.map(\.doubleValue) } - out.append(d) - } - } - return out - } - @MainActor static func main() { - _ = NSApplication.shared; NSApp.setActivationPolicy(.prohibited) - guard Thread.isMainThread, NSApp.delegate == nil else { fatalError("own main-thread entry only") } - let out = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - Task { @MainActor in - do { try await run(out); exit(0) } - catch { - try? String(describing: error).write(to: out.appendingPathComponent("failure.txt"), atomically: true, encoding: .utf8) - print("FAILED retarget probe: \(error)"); exit(1) - } - } - // 只有本入口驱动 Cocoa;没有产品 delegate、监听、控制器、菜单或输入注入。 - NSApp.run() - } - @MainActor static func run(_ out: URL) async throws { - try FileManager.default.createDirectory(at: out, withIntermediateDirectories: true) - let oldOverride = Motion.reducedOverrideForProbe - defer { Motion.reducedOverrideForProbe = oldOverride } - var records = [[String: Any]]() - var trajectory = [[String: Any]]() - var counts = [String: Int]() - for reduced in [false, true] { - Motion.reducedOverrideForProbe = reduced - let mode = reduced ? "reduced" : "regular" - let bounds = NSRect(x:0,y:0,width:800,height:400) - let canvas = NotchCanvasView(frame: bounds) - let window = NSWindow(contentRect: bounds, styleMask: [.borderless], backing: .buffered, defer: false) - window.isReleasedWhenClosed = false; window.alphaValue = 0; window.contentView = canvas - window.setFrame(NSRect(x:-8000,y:-8000,width:800,height:400), display:false) - defer { window.close() } - guard let island = field(canvas,"island") as? CALayer else { throw Failure.check("actual island layer") } - let compact = NSRect(x:307.5,y:366.5,width:185,height:33.5) - let expanded = NSRect(x:247.5,y:180,width:305,height:220) - let wide = NSRect(x:187.5,y:180,width:425,height:220) - let rich = try richContent(id: 900), rich2 = try richContent(id: 901, count: 4) - let empty = emptyContent() - func token(_ shape: Motion.NotchShape) -> NotchCanvasView.Spring { - let value = Motion.notchSpring(for:shape) - return .init(response:value.response,bounce:value.bounce) - } - func tileIDs() -> [[String: UInt32]] { - var ids = [[String: UInt32]]() - guard let current = field(canvas,"current") as? NSView else { return ids } - func visit(_ view:NSView) { - if let tile = view as? NotchTileView, let model = field(tile,"tile") as? NotchTile { - ids.append(["id": model.id]) - } - view.subviews.forEach(visit) - } - visit(current) - return ids - } - func record(_ stage: String) { - let presented = island.presentation() - let current = field(canvas,"current") as? NSView - records.append(["stage":mode+"-"+stage, "mode":mode, "reduced":reduced, "time":CACurrentMediaTime(), - "model":box(island.frame), - "presentation":presented.map{box($0.frame)} as Any? ?? NSNull(), - "presentedRadius":presented?.cornerRadius as Any? ?? NSNull(), - "modelRadius":island.cornerRadius, - "animations":animations(island), - "otherKeys":["clip":(field(canvas,"clip") as? CALayer)?.animationKeys() ?? [], - "keyLine":(field(canvas,"keyLine") as? CALayer)?.animationKeys() ?? [], - "keyMask":(field(canvas,"keyMask") as? CALayer)?.animationKeys() ?? []], - "counts":counts, - "pendingExit":field(canvas,"contentExitPending") as? Bool ?? false, - "currentIdentity":current.map{String(describing:ObjectIdentifier($0))} as Any? ?? NSNull(), - "tileIDs":tileIDs(), - "active":NSApp.isActive, "visible":window.isVisible, "alpha":window.alphaValue, - "mainThread":Thread.isMainThread, "delegateNil":NSApp.delegate == nil, "cacheOnly":true]) - } - func trajectorySample(_ stage: String, _ count: Int, everyMilliseconds ms: UInt64 = 12) async throws { - var samples = [[String: Any]]() - for _ in 0..34 ? 28:12,allCorners:false,fill:.black,border:0.5), - content:content,spring:spring) { counts[key,default:0] += 1 } - } - func sleep(_ ms: UInt64) async throws { try await Task.sleep(nanoseconds: ms*1_000_000) } - - morph("initial", to: compact, content: empty, spring: nil); try await sleep(60); record("initial") - // 一、展开;中途反向;再次改向。每段记 before(旧动画配置)与 new/attach(新配置)。 - record("open-old") - morph("open", to: expanded, content: rich, spring: token(.expanded)) - record("open-new"); try await sleep(12); record("open-attach") - try await sleep(78); record("open-sample") - try await trajectorySample("open-flight", 6) - record("reverse-old") - morph("reverse", to: compact, content: rich, spring: token(.compact)) - record("reverse-new"); try await sleep(12); record("reverse-attach") - try await trajectorySample("reverse-flight", 8); record("reverse-sample") - record("reopen-old") - morph("reopen", to: expanded, content: rich, spring: token(.expanded)) - record("reopen-new"); try await sleep(12); record("reopen-attach") - try await trajectorySample("reopen-flight", 8) - // 二、只改宽度:飞行中把目标换成更宽的(位置/高度/圆角各自的行程独立)。 - record("width-old") - morph("width", to: wide, content: rich, spring: token(.expanded)) - record("width-new"); try await sleep(12); record("width-attach") - try await trajectorySample("width-flight", 6) - try await sleep(700); record("wide-settled") - // 三、停稳后只改宽度回展开:这一跳应当只有宽度轴有动画(其它轴零行程)。 - record("width-reverse-old") - morph("width-reverse", to: expanded, content: rich, spring: token(.expanded)) - record("width-reverse-new"); try await sleep(12); record("width-reverse-attach") - try await sleep(700); record("settled") - morph("pre-compact", to: compact, content: rich2, spring: token(.compact)) - try await sleep(700); record("pre-compact-settled") - if !reduced { - // 四、富内容先退文字:形状收得晚(0.10 淡出 + 0.04 一拍)。期间岛仍在飞, - // 结束时要读那一刻的呈现层——不能用发起时缓存的位置。 - morph("rich-exit-open", to: expanded, content: rich2, spring: token(.expanded)) - try await sleep(90) - record("rich-exit-old") - morph("rich-exit", to: compact, content: empty, spring: token(.compact)) - try await sleep(40); record("rich-exit-fade") - try await trajectorySample("rich-exit-gap", 10) - try await sleep(40); record("rich-exit-new") - try await sleep(500); record("rich-exit-settled") - // 五、近零行程 kick:还在飞时把目标设成此刻的外框(各轴几乎零行程、速度还在)。 - morph("kick-open", to: expanded, content: empty, spring: token(.expanded)) - try await sleep(90) - if let p = island.presentation()?.frame { - let target = NSRect(x: (p.midX*20).rounded()/20 - p.width/2, y: (p.midY*20).rounded()/20 - p.height/2, - width: p.width, height: p.height) - record("kick-old") - morph("kick", to: target, content: empty, spring: token(.expanded)) - record("kick-new"); try await sleep(12); record("kick-attach") - try await trajectorySample("kick-flight", 8) - try await sleep(500); record("kick-settled") - } - // 六、取消:退场淡出还没完又改回展开。旧退场的收尾不能清掉新内容,过期回调不重放。 - morph("cancel-open", to: expanded, content: rich, spring: token(.expanded)) - record("cancel-open-new") - try await sleep(80) - record("cancel-close-old") - morph("cancel-close", to: compact, content: empty, spring: token(.compact)) - record("cancel-close-new"); try await sleep(50); record("cancel-close-fade") - record("cancel-reopen-old") - morph("cancel-reopen", to: expanded, content: rich2, spring: token(.expanded)) - record("cancel-reopen-new") - try await sleep(600); record("cancel-reopen-settled") - morph("final-close", to: compact, content: empty, spring: token(.compact)) - try await sleep(600); record("final-closed") - } else { - // 减少动态效果:形状没有动画,直接到位。 - morph("rm-open", to: expanded, content: rich, spring: token(.expanded)) - record("rm-open-after"); try await sleep(60); record("rm-open-settled") - morph("rm-close", to: compact, content: empty, spring: token(.compact)) - record("rm-close-after"); try await sleep(60); record("rm-close-settled") - } - window.close() - } - Motion.reducedOverrideForProbe = oldOverride - let report: [String: Any] = ["records":records, "trajectory":trajectory, "counts":counts, - "overrideRestored":Motion.reducedOverrideForProbe == oldOverride, "cacheOnly":true, - "compositorAccepted":false, "realSources":0, "globalInputEvents":0, "productEntry":false, - "swiftLanguageVersion":6, "mainThread":mainThreadNow()] - try JSONSerialization.data(withJSONObject:report, options: [.prettyPrinted,.sortedKeys]) - .write(to: out.appendingPathComponent("retarget.json"), options: .atomic) - print("PASS \(records.count) actual retarget records; per-axis config; compositor untested") - } -} diff --git a/tools/archive/design-qa-batch23-29/OwnedErrorFlowChecks.swift b/tools/archive/design-qa-batch23-29/OwnedErrorFlowChecks.swift deleted file mode 100644 index 8f396c4a..00000000 --- a/tools/archive/design-qa-batch23-29/OwnedErrorFlowChecks.swift +++ /dev/null @@ -1,58 +0,0 @@ -import Foundation -import CryptoKit - -@main enum OwnedErrorFlowChecks { - enum Failure: Error { case check(String) } - @MainActor static func until(_ label:String,_ predicate:()->Bool) async throws { - let end=ProcessInfo.processInfo.systemUptime+10 - while !predicate(),ProcessInfo.processInfo.systemUptimebefore} - if mode == "config-rejected" || mode == "malformed-account" { - let retained=mode == "config-rejected" ? (controller.status.contains("配置") || controller.status.contains("设置")):(controller.status.contains("状态不完整") || controller.status.contains("信息不完整")) - records.append(["mode":mode,"passed":retained,"status":controller.status,"notice":controller.notice,"reaped":true,"canSend":controller.canSend]) - } else if mode == "manual-stop" { - records.append(["mode":mode,"passed":controller.status=="已断开","status":controller.status,"reaped":true]) - } - } - } catch {failure=String(describing:error)} - controller.stop(clearPrivate:true) - do {try await until("final cleanup"){!controller.isBusy}} catch {failure="cleanup: "+String(describing:error)} - let reaped = !controller.isBusy - if reaped {try? FileManager.default.removeItem(at:temp)} - let removed = !FileManager.default.fileExists(atPath:temp.path) - let result:[String:Any]=["records":records,"failure":failure as Any? ?? NSNull(),"passed":failure==nil && records.count==4 && records.allSatisfy{$0["passed"] as? Bool == true} && reaped && removed,"cleanup":["reaped":reaped,"temporaryRemoved":removed],"synthetic":true] - try? JSONSerialization.data(withJSONObject:result,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("checks.json")) - for record in records {print("\(record["mode"]!): \(record["status"]!), passed=\(record["passed"]!)")} - exit(result["passed"] as? Bool == true ? 0:1) - } -} diff --git a/tools/archive/design-qa-batch23-29/OwnedPhasePreview.swift b/tools/archive/design-qa-batch23-29/OwnedPhasePreview.swift deleted file mode 100644 index c10c7748..00000000 --- a/tools/archive/design-qa-batch23-29/OwnedPhasePreview.swift +++ /dev/null @@ -1,500 +0,0 @@ -import Cocoa -import CryptoKit - -/// 实际 owned 会话样件:用真实 `WS2OwnedLaunchController` 驱动 -/// `tests/fixtures/conductor-backend.py` 合成 stdio 后端,在离屏 NotchPanel 里 -/// 捕获各阶段画面。不运行真实 codex、真实项目、账号、网络、浏览器或产品 main。 -/// -/// 适用约束(docs/handoff/START-HERE-deepseek.md 总则): -/// - 「不假装成功」:每一步失败即停止,绝不盲重试;结果只记录实际观测。 -/// - 不合成键盘/鼠标事件:只派发本地诊断按钮action,不点击发送/登录/授权。 -/// - 自造项目放系统临时目录的独有目录,避开真实祖先配置;错误路径保留证据、不删输出。 -/// - `NSApp` activationPolicy = .prohibited;所有面板置 x = -8000 并验证不与其 -/// 它任何屏幕相交;只允许宿主自身把面板 orderFront 到屏幕外,不激活、不抢焦点。 -@main enum OwnedPhasePreview { - enum Failure: Error { case check(String) } - - @MainActor static func main() async throws { - _ = NSApplication.shared - NSApp.setActivationPolicy(.prohibited) - let output = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - try FileManager.default.createDirectory(at: output, withIntermediateDirectories: true) - let repo = URL(fileURLWithPath: FileManager.default.currentDirectoryPath, isDirectory: true) - let fixture = repo.appendingPathComponent("tests/fixtures/conductor-backend.py") - let fixtureSHA = try sha256(fixture) - - // 生产门禁拒绝祖先 .codex/.agents;不能把样件项目放在用户仓库或 HOME 下。 - let buildRoot = FileManager.default.temporaryDirectory.resolvingSymlinksInPath().standardizedFileURL - let tempRoot = buildRoot.appendingPathComponent("owned-phase-preview-" + UUID().uuidString, isDirectory: true) - .resolvingSymlinksInPath().standardizedFileURL - try FileManager.default.createDirectory(at: tempRoot, withIntermediateDirectories: true, attributes: [.posixPermissions: 0o700]) - - // 复制已有 backend 再 chmod,绝不改动原 fixture。 - let backend = tempRoot.appendingPathComponent("synthetic-codex.py") - let original=try String(contentsOf:fixture,encoding:.utf8) - let anchor=" emit({\"method\": \"turn/started\", \"params\": {\"threadId\": thread, \"turn\": {\"id\": turn}}})" - guard original.components(separatedBy:anchor).count==2 else { throw Failure.check("synthetic backend delta anchor") } - let extraDelta="\n if text.endswith('native-preview'):\n emit({'method': 'item/agentMessage/delta', 'params': {'threadId': thread, 'turnId': turn, 'delta': '合成后端回复 · 仅供界面检查\\n' + ('这段长回复用于检查换行、滚动和输入区域,不代表真实助手结果。\\n' * 12)}})" - let augmented=original.replacingOccurrences(of:anchor,with:anchor+extraDelta) - try Data(augmented.utf8).write(to:backend) - try Data(augmented.utf8).write(to:output.appendingPathComponent("synthetic-preview-backend.py")) - try FileManager.default.setAttributes([.posixPermissions: 0o700], ofItemAtPath: backend.path) - let backendSHA = try sha256(backend) - - var frames: [[String: Any]] = [] - var controllers: [WS2OwnedLaunchController] = [] - var report: [String: Any] = [ - "synthetic": true, "noRealAssistant": true, - "fixtureSource": "tests/fixtures/conductor-backend.py", - "fixtureSHA256": fixtureSHA, "backendCopySHA256": backendSHA, - "backendCopy": backend.path, "temporaryRoot": tempRoot.path, - "activationPolicy": "prohibited", - "note": "真实 WS2OwnedLaunchController + 合成 stdio 后端;未联系真实助手、账号、网络或浏览器。"] - - do { - // 产品运行时也只有一份 owned 控制器;换外观不新建第二个会话所有者。 - let controller = WS2OwnedLaunchController(profileRoot: tempRoot.appendingPathComponent("profile"), mayUse: { true }) - controllers.append(controller) - for appearance in [NSAppearance.Name.aqua, .darkAqua] { - let label = appearance == .aqua ? "light" : "dark" - let runRoot = tempRoot.appendingPathComponent(label, isDirectory: true) - let project = runRoot.appendingPathComponent(String(repeating:"long-project-",count:16)+"native-preview", isDirectory: true) - try FileManager.default.createDirectory(at: project, withIntermediateDirectories: true) - - // 受控渲染:允许视图认为输入有效,但绝不 performClick,也绝不触发用户动作。 - var owned = WS2OwnedSessionView(controller: controller) - owned.inputIsCurrent = { true } - owned.onCancel = {} - owned.openModelPicker = {} - owned.openConductorPage = {} - - // 第一轮为idle,第二轮为stopped;记录实际相位,不伪造回到初始状态。 - try capture(name: "before-launch", appearance: appearance, label: label, view: owned, - controller: controller, output: output, frames: &frames) - owned.revoke() - - guard controller.selectProject(project) else { throw Failure.check("selectProject status=\(controller.status) notice=\(controller.notice)") } - guard controller.selectExecutable(backend) else { throw Failure.check("selectExecutable") } - guard controller.launch(consent: true) else { - throw Failure.check("launch status=\(controller.status) notice=\(controller.notice) project=\(controller.projectURL?.path ?? "nil") executable=\(controller.executableURL?.path ?? "nil")") - } - try await until("phase == .ready") { controller.phase == .ready } - - owned = WS2OwnedSessionView(controller: controller) - owned.inputIsCurrent = { true } - owned.onCancel = {} - owned.openModelPicker = {} - owned.openConductorPage = {} - - // ready:模型来自合成后端的 model/list,不是伪造的 controller 字段。 - guard controller.chooseModel("fixture-a") else { throw Failure.check("chooseModel fixture-a") } - guard controller.chooseEffort("medium") else { throw Failure.check("chooseEffort medium") } - guard controller.model == "fixture-a", controller.effort == "medium" else { throw Failure.check("ready model/effort projection") } - - // 在既有 14 帧流程之前,对同一张实际视图做有界输入投影检查。 - try await inputChecks(appearance: appearance, label: label, controller: controller, output: output) - - let picker = WS2ModelPickerView(controller: controller) - picker.hostScreenWidth = 1440 - picker.renderDevices([]) - picker.sync() - picker.inputIsCurrent = { true } - let pickerRows = controller.models.keys.sorted() - guard !pickerRows.isEmpty else { throw Failure.check("synthetic backend models present") } - try capture(name: "ready", appearance: appearance, label: label, view: owned, - controller: controller, output: output, frames: &frames) - try capture(name: "ready-model-picker", appearance: appearance, label: label, view: picker, - controller: controller, output: output, frames: &frames, extra: ["pickerWidth": 1440, "pickerModels": pickerRows]) - picker.revoke() - owned.revoke() - - owned = WS2OwnedSessionView(controller: controller) - owned.inputIsCurrent = { true } - owned.onCancel = {} - owned.openModelPicker = {} - owned.openConductorPage = {} - - // draft:合成草稿文字,不发任何 RPC。 - guard controller.editDraft("设计样件草稿 native-preview") else { throw Failure.check("editDraft") } - try capture(name: "draft", appearance: appearance, label: label, view: owned, - controller: controller, output: output, frames: &frames) - - // running:只向这个 mock 发送 hold native-preview,后端不结算这一轮。 - guard controller.send("hold native-preview", hasMarkedText: false) else { throw Failure.check("send hold") } - try await until("phase running and synthetic reply") { controller.phase == .running && controller.text.contains("合成后端回复") } - try capture(name: "running", appearance: appearance, label: label, view: owned, - controller: controller, output: output, frames: &frames) - owned.revoke() - - // completed:只对这个 mock 的当前轮 interrupt,等 turn/completed 通知; - // 真实后端把 interrupted 结算成 .ready(status 助手已停止),如实记录后, - // 再用一次显式回合抵达实际 .completed 相位。 - guard let runningTarget = controller.conductorTarget, let runningTurn = controller.conductorTurn else { throw Failure.check("running target/turn") } - guard controller.interruptConductor(target: runningTarget, turn: runningTurn) else { throw Failure.check("interruptConductor") } - try await until("interrupt acknowledged") { controller.phase == .ready && controller.canSend } - let interruptPhase = String(describing: controller.phase) - let interruptStatus = controller.status - - guard controller.canSend else { throw Failure.check("canSend after interrupt settlement") } - guard controller.editDraft("finish native-preview") else { throw Failure.check("editDraft finish") } - guard controller.send("finish native-preview", hasMarkedText: false) else { throw Failure.check("send finish") } - try await until("phase == .completed") { controller.phase == .completed } - let done = WS2OwnedSessionView(controller: controller) - done.inputIsCurrent = { true } - done.onCancel = {} - done.openModelPicker = {} - done.openConductorPage = {} - try capture(name: "completed", appearance: appearance, label: label, view: done, - controller: controller, output: output, frames: &frames, - extra: ["interruptPhase": interruptPhase, "interruptStatus": interruptStatus]) - done.revoke() - - // stopped:stop(clearPrivate:true) 后等 !isBusy,再看子进程回收结果。 - let before = controller.observedReaps - controller.stop(clearPrivate: true) - try await until("!isBusy after stop") { !controller.isBusy } - let stopped = WS2OwnedSessionView(controller: controller) - stopped.inputIsCurrent = { true } - stopped.onCancel = {} - stopped.openModelPicker = {} - stopped.openConductorPage = {} - try capture(name: "stopped", appearance: appearance, label: label, view: stopped, - controller: controller, output: output, frames: &frames, - extra: ["reapsObserved": controller.observedReaps - before]) - stopped.revoke() - } - } catch { - report["failureControllers"] = controllers.map { ["phase": String(describing: $0.phase), "status": $0.status, - "notice": $0.notice, "busy": $0.isBusy, "reaps": $0.observedReaps] as [String: Any] } - // 错误路径也必须停子进程,并保留失败证据(不删临时目录、不删输出)。 - for controller in controllers { controller.stop(clearPrivate: true) } - for controller in controllers { - let deadline = ProcessInfo.processInfo.systemUptime + 8 - while controller.isBusy, ProcessInfo.processInfo.systemUptime < deadline { - try? await Task.sleep(nanoseconds: 10_000_000) - } - } - report["failure"] = String(describing: error) - report["childReaped"] = controllers.allSatisfy { !$0.isBusy } - report["temporaryRemoved"] = false - report["temporaryPreserved"] = true - try write(report: report, frames: frames, to: output) - print("FAILED owned phase preview: \(error); child stopped, evidence preserved at \(tempRoot.path)") - exit(1) - } - - // 成功路径:全部子进程已回收后,只删自己造的临时目录;输出保留。 - let reaped = controllers.allSatisfy { !$0.isBusy } - var removed = false - if reaped, tempRoot.deletingLastPathComponent() == buildRoot { - do { try FileManager.default.removeItem(at: tempRoot); removed = true } catch { removed = false } - } - report["childReaped"] = reaped - report["controllerCount"] = controllers.count - report["temporaryRemoved"] = removed - report["temporaryPathStillOnDisk"] = FileManager.default.fileExists(atPath: tempRoot.path) - report["frames"] = frames.map { ["phase": $0["phase"] ?? "", "parentAppearance": $0["parentAppearance"] ?? "", "image": $0["image"] ?? ""] } - try write(report: report, frames: frames, to: output) - print("Rendered \(frames.count) actual owned-phase frames with a synthetic stdio backend; child reaped: \(reaped); temp removed: \(removed).") - if !reaped || !removed { exit(1) } - } - - // MARK: - 有界输入投影检查 - // 对 controller ready 且 fixture-a/medium 已选时挂载的同一张实际 owned 视图做 - // 输入投影检查。仅设置视图状态与文档文本,只派发本地导航/诊断action,不点提交/激活面板/ - // 连接真实助手或网络。任一断言失败即抛 Failure.check 并记录首个错误。 - - @MainActor private static func inputChecks(appearance: NSAppearance.Name, label: String, - controller: WS2OwnedLaunchController, output: URL) async throws { - var checks: [[String: Any]] = [] - var firstError: String? - func record(_ name: String, _ expected: String, _ actual: String, _ passed: Bool) { - var entry: [String: Any] = ["name": name, "expected": expected, "actual": actual, "passed": passed] - if !passed, firstError == nil { firstError = "\(name): expected \(expected), actual \(actual)" } - if !passed { entry["firstError"] = firstError ?? "" } - checks.append(entry) - } - func flush() throws { - var document: [String: Any] = ["label": label, "parentAppearance": appearance.rawValue, - "checks": checks, "synthetic": true, "noRealAssistant": true, - "performedSubmissionClick":false,"localDiagnosticActionDispatches":2,"localNavigationActionDispatches":12,"activated":NSApp.isActive, - "note": "实际输入投影与本地诊断action派发;没有发送/登录点击,没有真实助手或网络;逐帧另验屏幕外位置。"] - if let error = firstError { document["firstError"] = error; document["passed"] = false } else { document["passed"] = true } - let data=try JSONSerialization.data(withJSONObject:document,options:[.prettyPrinted,.sortedKeys]) - try data.write(to:output.appendingPathComponent("\(label)-input-checks.json")) - } - - let view = WS2OwnedSessionView(controller: controller) - view.inputIsCurrent = { true } - view.onCancel = {} - var pickerVisits=0,conductorVisits=0 - view.openModelPicker = { pickerVisits += 1 } - view.openConductorPage = { conductorVisits += 1 } - view.render() - guard let pickerButton=findButton(titled:"选择模型…",in:view), - let conductorButton=findButton(titled:"指挥模式",in:view), - let pickerAction=pickerButton.action,let conductorAction=conductorButton.action else { - throw Failure.check("navigation controls/actions missing") - } - func dispatchNavigation() { - _=NSApp.sendAction(pickerAction,to:pickerButton.target,from:pickerButton) - _=NSApp.sendAction(conductorAction,to:conductorButton.target,from:conductorButton) - } - guard let editable = editableTextView(in: view) else { - record("editable-textview-present", "1", "0", false); try flush() - throw Failure.check("input checks: editable NSTextView not found") - } - guard let sendButton = findButton(titled: "发送", in: view) else { - record("send-button-present", "1", "0", false); try flush() - throw Failure.check("input checks: send NSButton(\"发送\") not found") - } - let prepared = controller.model == "fixture-a" && controller.effort == "medium" && controller.canSend - record("precondition-ready-fixture-a-medium", "true", prepared.description, prepared) - - // 1) 外部草稿更新 / 清空同步。 - _ = controller.editDraft("外部草稿 native-input-check") - view.render() - record("external-draft-update-syncs", "外部草稿 native-input-check", editable.string, editable.string == "外部草稿 native-input-check") - _ = controller.editDraft("") - view.render() - record("external-draft-clear-syncs", "", editable.string, editable.string.isEmpty) - - // 2) 空白草稿禁用发送。 - editable.string = " \n\t " - view.textDidChange(Notification(name: NSText.didChangeNotification, object: editable)) - record("blank-draft-disables-send", "disabled", enabledWord(sendButton.isEnabled), !sendButton.isEnabled) - - // 3) 有效草稿启用发送。 - editable.string = "有效草稿 native-input-check" - view.textDidChange(Notification(name: NSText.didChangeNotification, object: editable)) - record("valid-draft-enables-send", "enabled", enabledWord(sendButton.isEnabled), sendButton.isEnabled) - record("valid-draft-adopted-by-controller", "有效草稿 native-input-check", controller.draft, controller.draft == "有效草稿 native-input-check") - - record("valid-draft-enables-navigation","true",(pickerButton.isEnabled && conductorButton.isEnabled).description,pickerButton.isEnabled && conductorButton.isEnabled) - dispatchNavigation() - record("valid-navigation-delivers-once","1/1","\(pickerVisits)/\(conductorVisits)",pickerVisits==1 && conductorVisits==1) - record("valid-navigation-keeps-controller-draft","有效草稿 native-input-check",controller.draft,controller.draft==editable.string) - - // Exact UTF8 limit is valid; one multibyte character crosses it. - editable.string=String(repeating:"a",count:65_536) - view.textDidChange(Notification(name:NSText.didChangeNotification,object:editable)) - record("exact-byte-limit-enables-navigation","true",(pickerButton.isEnabled && conductorButton.isEnabled).description,pickerButton.isEnabled && conductorButton.isEnabled) - editable.string += "中" - view.textDidChange(Notification(name:NSText.didChangeNotification,object:editable)) - record("multibyte-over-limit-disables-navigation","false",(pickerButton.isEnabled || conductorButton.isEnabled).description,!pickerButton.isEnabled && !conductorButton.isEnabled) - dispatchNavigation() - record("over-limit-action-guards-navigation","1/1","\(pickerVisits)/\(conductorVisits)",pickerVisits==1 && conductorVisits==1) - record("over-limit-navigation-keeps-local-draft","65539","\(editable.string.utf8.count)",editable.string.utf8.count==65_539) - record("over-limit-navigation-keeps-last-accepted-draft","65536","\(controller.draft.utf8.count)",controller.draft.utf8.count==65_536) - - // 4) 超过 65536 UTF8 字节禁用,且后续 render 保留被拒草稿。 - let tooLong = String(repeating: "a", count: 65_537) - editable.string = tooLong - view.textDidChange(Notification(name: NSText.didChangeNotification, object: editable)) - record("over-limit-draft-disables-send", "disabled", enabledWord(sendButton.isEnabled), !sendButton.isEnabled) - view.render() - record("over-limit-render-keeps-rejected-text", "65537", "\(editable.string.utf8.count)", editable.string.utf8.count == 65_537) - record("over-limit-render-keeps-send-disabled", "disabled", enabledWord(sendButton.isEnabled), !sendButton.isEnabled) - - // Isolate composition from the previous size failure: valid and enabled first. - editable.string="组合输入 native-input-check" - view.textDidChange(Notification(name:NSText.didChangeNotification,object:editable)) - record("before-marking-send-enabled","enabled",enabledWord(sendButton.isEnabled),sendButton.isEnabled) - // 5) 真实组合输入能力:setMarkedText 期间禁用,unmarkText 后恢复。 - editable.setMarkedText("zhong", selectedRange: NSRange(location: 0, length: 5), replacementRange: NSRange(location: 0, length: 0)) - view.render() - let markedActive = editable.hasMarkedText() - record("marked-text-active", "true", markedActive.description, markedActive) - record("marked-text-disables-send", "disabled", enabledWord(sendButton.isEnabled), !sendButton.isEnabled) - record("marked-text-disables-navigation","false",(pickerButton.isEnabled || conductorButton.isEnabled).description,!pickerButton.isEnabled && !conductorButton.isEnabled) - let markedDraft=editable.string,acceptedDraft=controller.draft - dispatchNavigation() - record("marked-action-guards-navigation","1/1","\(pickerVisits)/\(conductorVisits)",pickerVisits==1 && conductorVisits==1) - record("marked-navigation-keeps-composition","true",editable.hasMarkedText().description,editable.hasMarkedText() && editable.string==markedDraft && controller.draft==acceptedDraft) - editable.string = "组合完成 native-input-check" - editable.unmarkText() - view.textDidChange(Notification(name: NSText.didChangeNotification, object: editable)) - record("unmark-clears-marked-text", "false", editable.hasMarkedText().description, !editable.hasMarkedText()) - record("unmark-restores-send", "enabled", enabledWord(sendButton.isEnabled), sendButton.isEnabled) - record("unmark-restores-navigation","true",(pickerButton.isEnabled && conductorButton.isEnabled).description,pickerButton.isEnabled && conductorButton.isEnabled) - dispatchNavigation() - record("unmark-navigation-delivers-once","2/2","\(pickerVisits)/\(conductorVisits)",pickerVisits==2 && conductorVisits==2) - view.openModelPicker=nil;view.openConductorPage=nil;view.render() - record("missing-destination-disables-navigation","false",(pickerButton.isEnabled || conductorButton.isEnabled).description,!pickerButton.isEnabled && !conductorButton.isEnabled) - view.openModelPicker={pickerVisits += 1};view.openConductorPage={conductorVisits += 1};view.render() - - let panel=NotchPanel(notch:NSRect(x:-8000,y:866.5,width:185,height:33.5),virtual:false) - panel.isReleasedWhenClosed=false;panel.appearance=NSAppearance(named:appearance) - panel.alphaValue=0;panel.level=NSWindow.Level(rawValue:Int(CGWindowLevelForKey(.desktopWindow))-1) - defer { panel.setInteraction(nil,animated:false);panel.close() } - panel.setInteraction(view,animated:false);view.render() - let collapsed=view.interactionSize.height - let originalFrame=panel.frame - if let diagnostic=findButton(titled:"查看诊断",in:view),let action=diagnostic.action { - let dispatched=NSApp.sendAction(action,to:diagnostic.target,from:diagnostic) - record("diagnostic-action-dispatched","true",dispatched.description,dispatched) - view.render() - record("same-owner-expands-for-diagnostics","larger","\(view.interactionSize.height)",view.interactionSize.height>collapsed) - let grew=await waitForFrame { panel.frame.height>originalFrame.height+50 } - record("actual-panel-frame-expands","larger",NSStringFromRect(panel.frame),grew) - _=NSApp.sendAction(action,to:diagnostic.target,from:diagnostic);view.render() - record("same-owner-restores-content-height","\(collapsed)","\(view.interactionSize.height)",abs(view.interactionSize.height-collapsed)<1) - let restored=await waitForFrame { abs(panel.frame.height-originalFrame.height)<1.5 } - record("actual-panel-frame-restores","\(originalFrame.height)",NSStringFromRect(panel.frame),restored) - } else { record("diagnostic-button-present","true","false",false) } - let offscreen = !NSScreen.screens.contains{$0.frame.intersects(panel.frame)} - record("same-owner-resize-offscreen","true",NSStringFromRect(panel.frame),offscreen) - record("same-owner-resize-inactive","false",NSApp.isActive.description,!NSApp.isActive) - // 6) inputIsCurrent=false 后 render 禁用按钮(不点击提交)。 - view.inputIsCurrent = { false } - view.render() - record("stale-input-disables-send", "disabled", enabledWord(sendButton.isEnabled), !sendButton.isEnabled) - record("stale-input-disables-navigation","false",(pickerButton.isEnabled || conductorButton.isEnabled).description,!pickerButton.isEnabled && !conductorButton.isEnabled) - dispatchNavigation() - record("stale-action-guards-navigation","2/2","\(pickerVisits)/\(conductorVisits)",pickerVisits==2 && conductorVisits==2) - - // 7) revoke 后旧按钮必须 disabled;若生产未禁用则记录失败,不修改生产。 - view.revoke() - record("revoked-send-disabled", "disabled", enabledWord(sendButton.isEnabled), !sendButton.isEnabled) - dispatchNavigation() - record("revoked-action-guards-navigation","2/2","\(pickerVisits)/\(conductorVisits)",pickerVisits==2 && conductorVisits==2) - let revokedConductor=findButton(titled:"指挥模式",in:view) - record("conductor-button-present","true",(revokedConductor != nil).description,revokedConductor != nil) - let revokedConductorEnabled = revokedConductor?.isEnabled ?? true - record("revoked-open-conductor-disabled", "disabled", enabledWord(revokedConductorEnabled), - !revokedConductorEnabled) - - // 8) 恢复 controller.editDraft("") 及其后的原流程。 - _ = controller.editDraft("") - record("controller-draft-restored-empty", "0", "\(controller.draft.utf8.count)", controller.draft.isEmpty) - - try flush() - if let error = firstError { throw Failure.check("input checks first failure: \(error)") } - } - - @MainActor private static func waitForFrame(_ predicate:()->Bool) async -> Bool { - let deadline=ProcessInfo.processInfo.systemUptime+2 - while !predicate(),ProcessInfo.processInfo.systemUptime NSTextView? { - if let text = view as? NSTextView, text.isEditable { return text } - for child in view.subviews { - if let found = editableTextView(in: child) { return found } - } - return nil - } - - /// 递归查找指定标题的 NSButton。 - @MainActor private static func findButton(titled title: String, in view: NSView) -> NSButton? { - if let button = view as? NSButton, button.title == title { return button } - for child in view.subviews { - if let found = findButton(titled: title, in: child) { return found } - } - return nil - } - - @MainActor private static func enabledWord(_ value: Bool) -> String { value ? "enabled" : "disabled" } - - // MARK: - 捕获 - - @MainActor private static func capture(name: String, appearance: NSAppearance.Name, label: String, - view originalView: NSView & WS2LeaseContent, controller: WS2OwnedLaunchController, - output: URL, frames: inout [[String: Any]], - extra: [String: Any] = [:]) throws { - let view: NSView & WS2LeaseContent - if let picker = originalView as? WS2ModelPickerView { - picker.inputIsCurrent = { true }; picker.sync(); view = picker - } else { - // 每帧读当前控制器;不能复用已经 revoke 的卡,也不能拿旧草稿/按钮冒充新相位。 - let owned = WS2OwnedSessionView(controller: controller) - owned.inputIsCurrent = { true }; owned.openModelPicker = {}; owned.openConductorPage = {} - owned.render(); view = owned - } - let panel = NotchPanel(notch: NSRect(x: -8000, y: 866.5, width: 185, height: 33.5), virtual: false) - panel.isReleasedWhenClosed = false - panel.alphaValue=0 - panel.appearance = NSAppearance(named: appearance) - defer { view.revoke(); panel.setInteraction(nil, animated: false); panel.close() } - panel.setInteraction(view, animated: false) - if let owned=view as? WS2OwnedSessionView { owned.render() } - guard let canvas = panel.contentView else { throw Failure.check("panel contentView") } - canvas.layoutSubtreeIfNeeded() - let intersects = NSScreen.screens.contains { $0.frame.intersects(panel.frame) } - guard !intersects && !NSApp.isActive else { throw Failure.check("panel offscreen/nonactive for \(name)") } - - let file = "\(label)-\(name).png" - guard let rep = canvas.bitmapImageRepForCachingDisplay(in: canvas.bounds) else { throw Failure.check("bitmap for \(name)") } - canvas.cacheDisplay(in: canvas.bounds, to: rep) - guard let data = rep.representation(using: .png, properties: [:]) else { throw Failure.check("png for \(name)") } - try data.write(to: output.appendingPathComponent(file)) - - var frame: [String: Any] = [ - "phase": String(describing: controller.phase), - "status": controller.status, - "notice": controller.notice, - "draft": controller.draft,"replyText":controller.text, - "model": controller.model ?? "", "effort": controller.effort ?? "", - "isBusy": controller.isBusy, "parentAppearance": appearance.rawValue, - "image": file, "offscreenX": -8000, - "width": canvas.bounds.width, "height": canvas.bounds.height, - "contentWidth": view.bounds.width, "contentHeight": view.bounds.height, - "visibleWindow":panel.isVisible,"panelAlpha":panel.alphaValue, "intersectsScreen": intersects, "activeApplication": NSApp.isActive, - "synthetic": true, "noRealAssistant": true, - "buttons": buttons(in: view), "visibleLabels":visibleLabels(in:view)] - for (key, value) in extra { frame[key] = value } - frames.append(frame) - - } - - @MainActor private static func visibleLabels(in view:NSView) -> [[String:Any]] { - var result:[[String:Any]]=[] - func walk(_ node:NSView) { - if let label=node as? NSTextField,!label.isHiddenOrHasHiddenAncestor { - let rect=label.convert(label.bounds,to:view) - result.append(["text":label.stringValue,"withinContent":view.bounds.contains(rect), - "x":rect.minX,"y":rect.minY,"width":rect.width,"height":rect.height]) - } - node.subviews.forEach(walk) - } - walk(view);return result - } - - @MainActor private static func buttons(in view: NSView) -> [[String: Any]] { - var result: [[String: Any]] = [] - func walk(_ node: NSView) { - if let popup = node as? NSPopUpButton { - result.append(["title": popup.titleOfSelectedItem ?? popup.title, "enabled": popup.isEnabled, "hidden": popup.isHiddenOrHasHiddenAncestor]) - } else if let button = node as? NSButton { - result.append(["title": button.title, "enabled": button.isEnabled, "hidden": button.isHiddenOrHasHiddenAncestor]) - } - node.subviews.forEach(walk) - } - walk(view) - return result - } - - // MARK: - 工具 - - @MainActor private static func until(_ label: String, _ predicate: () -> Bool) async throws { - let deadline = ProcessInfo.processInfo.systemUptime + 8 - while !predicate(), ProcessInfo.processInfo.systemUptime < deadline { - try await Task.sleep(nanoseconds: 10_000_000) - } - guard predicate() else { throw Failure.check("timed out waiting for \(label)") } - } - - private static func sha256(_ url: URL) throws -> String { - let data = try Data(contentsOf: url) - return SHA256.hash(data: data).map { String(format: "%02x", $0) }.joined() - } - - private static func write(report: [String: Any], frames: [[String: Any]], to output: URL) throws { - try JSONSerialization.data(withJSONObject: report, options: [.prettyPrinted, .sortedKeys]) - .write(to: output.appendingPathComponent("owned-phases.json")) - try JSONSerialization.data(withJSONObject: ["frames": frames], options: [.prettyPrinted, .sortedKeys]) - .write(to: output.appendingPathComponent("frames.json")) - } -} diff --git a/tools/archive/design-qa-batch23-29/OwnedScrollPreview.swift b/tools/archive/design-qa-batch23-29/OwnedScrollPreview.swift deleted file mode 100644 index f69a1036..00000000 --- a/tools/archive/design-qa-batch23-29/OwnedScrollPreview.swift +++ /dev/null @@ -1,140 +0,0 @@ -import Cocoa - -/// Only our temporary fixture child and an alpha-zero, unshown Canvas. No product entry or sources. -@main enum OwnedScrollPreview { - enum Failure: Error { case check(String) } - @MainActor static func until(_ name: String, _ test: () -> Bool) async throws { - let deadline = ProcessInfo.processInfo.systemUptime + 8 - while !test(), ProcessInfo.processInfo.systemUptime < deadline { try await Task.sleep(nanoseconds: 10_000_000) } - guard test() else { throw Failure.check(name) } - } - @MainActor static func texts(_ view: NSView) -> [NSTextView] { - (view as? NSTextView).map { [$0] } ?? view.subviews.flatMap { texts($0) } - } - @MainActor static func main() async throws { - _ = NSApplication.shared; NSApp.setActivationPolicy(.prohibited) - let out = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - try FileManager.default.createDirectory(at: out, withIntermediateDirectories: true) - let tempBase = FileManager.default.temporaryDirectory.resolvingSymlinksInPath() - let temp = tempBase.appendingPathComponent("owned-scroll-" + UUID().uuidString, isDirectory: true) - try FileManager.default.createDirectory(at: temp, withIntermediateDirectories: true, attributes: [.posixPermissions: 0o700]) - let backend = temp.appendingPathComponent("synthetic-codex.py") - let original = try String(contentsOfFile: "tests/fixtures/conductor-backend.py", encoding: .utf8) - let anchor = " emit({\"method\": \"turn/started\", \"params\": {\"threadId\": thread, \"turn\": {\"id\": turn}}})" - guard original.components(separatedBy: anchor).count == 2 else { throw Failure.check("fixture anchor") } - let delta = """ - - if text == 'hold scroll-preview': - import threading - def stream(own_thread, own_turn): - last = 0 - signal = pathlib.Path(__file__).parent / 'stage.txt' - while last < 5: - try: - stage = int(signal.read_text()) - except (FileNotFoundError, ValueError): - stage = 0 - if stage > last: - last += 1 - value = ''.join(f'第 {last} 段 · 第 {i:02d} 行:回看前文时应留在这里,新的内容继续接在末尾。\\n' for i in range(1, 41)) + f'结束标记-{last}\\n' - emit({'method': 'item/agentMessage/delta', 'params': {'threadId': own_thread, 'turnId': own_turn, 'delta': value}}) - time.sleep(0.01) - threading.Thread(target=stream, args=(thread, turn), daemon=True).start() -""" - let augmented = original.replacingOccurrences(of: anchor, with: anchor + delta) - try augmented.write(to: backend, atomically: true, encoding: .utf8) - try augmented.write(to: out.appendingPathComponent("synthetic-backend.py"), atomically: true, encoding: .utf8) - try FileManager.default.setAttributes([.posixPermissions: 0o700], ofItemAtPath: backend.path) - var frames = [[String: Any]](); var children = [WS2OwnedLaunchController](); var windows = [NSWindow]() - var report: [String: Any] = ["synthetic": true, "actionsOnRealSources": 0, "temporaryRoot": temp.path] - func write() throws { - report["frames"] = frames - try JSONSerialization.data(withJSONObject: report, options: [.prettyPrinted, .sortedKeys]).write(to: out.appendingPathComponent("frames.json")) - } - do { - for parent in [NSAppearance.Name.aqua, .darkAqua] { - let label = parent == .aqua ? "light" : "dark" - try "0".write(to: temp.appendingPathComponent("stage.txt"), atomically: true, encoding: .utf8) - let project = temp.appendingPathComponent(label + "-project", isDirectory: true) - try FileManager.default.createDirectory(at: project, withIntermediateDirectories: true) - let controller = WS2OwnedLaunchController(profileRoot: temp.appendingPathComponent(label + "-profile"), mayUse: { true }) - children.append(controller) - guard controller.selectProject(project), controller.selectExecutable(backend), controller.launch(consent: true) else { throw Failure.check("synthetic launch") } - try await until("ready") { controller.phase == .ready } - guard controller.chooseModel("fixture-a"), controller.chooseEffort("medium") else { throw Failure.check("fixture model") } - let view = WS2OwnedSessionView(controller: controller) - view.inputIsCurrent = { true }; view.onCancel = {}; view.openModelPicker = {}; view.openConductorPage = {} - controller.onChange = { [weak view] in view?.scheduleRender() } - let canvas = NotchCanvasView(frame: NSRect(x: 0, y: 0, width: 620, height: 513.5)) - let window = NSWindow(contentRect: canvas.bounds, styleMask: [.borderless], backing: .buffered, defer: false) - windows.append(window); window.isReleasedWhenClosed = false; window.alphaValue = 0 - window.appearance = NSAppearance(named: parent); window.contentView = canvas - window.setFrame(NSRect(x: -8000, y: -8000, width: 620, height: 513.5), display: false) - canvas.setAuthentication(view) - func layout() { - let height = min(480, view.interactionSize.height) - let box = NSRect(x: 0, y: 0, width: 620, height: height + 33.5) - canvas.frame = box - let content = NotchCanvasView.Content(tiles: [], dots: 0, dotsChanged: false, dotsY: 0, compact: nil, compactSlots: nil, alert: nil, hint: nil, notchHeight: 33.5) - canvas.morph(to: box, style: .init(cornerRadius: 24, allCorners: false, fill: .black, border: 0.5), content: content, spring: nil) {} - canvas.placeAuthentication(in: NSRect(x: 0, y: 0, width: 620, height: height)) - canvas.layoutSubtreeIfNeeded() - } - view.render(); layout() - guard let text = texts(view).first(where: { !$0.isEditable }), let scroll = text.enclosingScrollView else { throw Failure.check("real reply text/scroll") } - func position() -> [String: Any] { - let clip = scroll.contentView.bounds - return ["origin": clip.minY, "visibleHeight": clip.height, "documentHeight": text.bounds.height, "gap": text.bounds.maxY - clip.maxY, "characters": text.string.count, "textWidth": text.bounds.width, "containerWidth": text.textContainer?.containerSize.width ?? -1, "lineHeight": text.font.map { text.layoutManager?.defaultLineHeight(for: $0) ?? -1 } ?? -1] - } - func capture(_ stage: String, before: [String: Any] = [:]) throws { - let name = label + "-" + stage - guard !window.isVisible, !NSApp.isActive, !NSScreen.screens.contains(where: { $0.frame.intersects(window.frame) }) else { throw Failure.check("hidden offscreen") } - guard let rep = canvas.bitmapImageRepForCachingDisplay(in: canvas.bounds) else { throw Failure.check("bitmap") } - canvas.cacheDisplay(in: canvas.bounds, to: rep) - guard let data = rep.representation(using: .png, properties: [:]) else { throw Failure.check("png") } - try data.write(to: out.appendingPathComponent(name + ".png")) - guard let input = texts(view).first(where: { $0.isEditable }), let inputScroll = input.enclosingScrollView else { throw Failure.check("own composer") } - let draftMetrics: [String: Any] = ["matchesController": input.string == controller.draft, "characters": input.string.count, "fontSize": input.font?.pointSize ?? -1, "height": inputScroll.bounds.height, "radius": inputScroll.layer?.cornerRadius ?? -1, "border": inputScroll.borderType.rawValue, "paddingX": input.textContainerInset.width, "paddingY": input.textContainerInset.height, "linePadding": input.textContainer?.lineFragmentPadding ?? -1, "background": input.drawsBackground, "replyBackground": text.drawsBackground, "replyBorder": scroll.borderType.rawValue, "replyHeight": scroll.bounds.height] - frames.append(["draft": draftMetrics, "name": name, "stage": stage, "before": before, "after": position(), "sameView": true, "parent": label, "visible": window.isVisible, "active": NSApp.isActive, "alpha": window.alphaValue, "height": canvas.bounds.height, "dark": canvas.effectiveAppearance.bestMatch(from: [.aqua, .darkAqua]) == .darkAqua, "outputHidden": scroll.isHiddenOrHasHiddenAncestor, "phase": String(describing: controller.phase)]) - } - guard controller.send("hold scroll-preview", hasMarkedText: false) else { throw Failure.check("send fixture") } - try await until("running") { controller.phase == .running } - try await Task.sleep(nanoseconds: 100_000_000); layout(); try capture("empty") - let ownDraft="等这一轮完成后,请先检查长标题。\n保留回看位置,再整理可复现步骤。\n这是本机样件草稿,尚未发送。" - guard controller.editDraft(ownDraft) else { throw Failure.check("own draft") } - try await until("draft render") { texts(view).contains { $0.string == ownDraft } } - for stage in 1...5 { - switch stage { - case 2: text.scrollToEndOfDocument(nil) - case 3: scroll.contentView.scroll(to: NSPoint(x: 0, y: 0)); scroll.reflectScrolledClipView(scroll.contentView) - case 4, 5: - let gap: CGFloat = stage == 4 ? 30 : 20 - scroll.contentView.scroll(to: NSPoint(x: 0, y: max(0, text.bounds.maxY - scroll.contentView.bounds.height - gap))) - scroll.reflectScrolledClipView(scroll.contentView) - default: break - } - let before = position() - try String(stage).write(to: temp.appendingPathComponent("stage.txt"), atomically: true, encoding: .utf8) - try await until("delta \(stage)") { controller.text.contains("结束标记-\(stage)") } - try await until("view scheduled render \(stage)") { text.string == controller.text } - try await Task.sleep(nanoseconds: 80_000_000); layout() - try capture(["", "initial", "bottom", "top", "outside-threshold", "inside-threshold"][stage], before: before) - } - view.revoke(); controller.onChange = nil; canvas.setAuthentication(nil); window.close() - controller.stop(clearPrivate: true) - try await until("child reaped") { !controller.isBusy } - } - report["childrenReaped"] = children.allSatisfy { !$0.isBusy } - guard temp.deletingLastPathComponent() == tempBase else { throw Failure.check("cleanup boundary") } - try FileManager.default.removeItem(at: temp) - report["temporaryRemoved"] = true; try write() - print("PASS \(frames.count) real same-view streaming reply captures; child reaped; own temporary root removed") - } catch { - for c in children { c.onChange = nil; c.stop(clearPrivate: true) } - for c in children { try? await until("failure reap") { !c.isBusy } } - windows.forEach { $0.close() } - report["failure"] = String(describing: error); report["childrenReaped"] = children.allSatisfy { !$0.isBusy }; report["temporaryRemoved"] = false - try write(); print("FAILED: \(error); own temporary data preserved"); exit(1) - } - } -} diff --git a/tools/archive/design-qa-batch23-29/OwnedStatePreview.swift b/tools/archive/design-qa-batch23-29/OwnedStatePreview.swift deleted file mode 100644 index bfdb9ee6..00000000 --- a/tools/archive/design-qa-batch23-29/OwnedStatePreview.swift +++ /dev/null @@ -1,91 +0,0 @@ -import Cocoa - -/// Production owned views driven by isolated synthetic stdio states; no login/browser/user projects. -enum OwnedStatePreview { - enum Failure:Error {case check(String)} - @MainActor static func until(_ label:String,_ predicate:()->Bool) async throws { - let end=ProcessInfo.processInfo.systemUptime+10 - while !predicate(),ProcessInfo.processInfo.systemUptime[NSView] {[view]+view.subviews.flatMap{nodes($0)}} - let visible=nodes(content).filter{!$0.isHiddenOrHasHiddenAncestor} - let labels=visible.compactMap{$0 as? NSTextField}.map{field->[String:Any] in - let r=field.convert(field.bounds,to:content) - return ["text":field.stringValue,"x":r.minX,"y":r.minY,"width":r.width,"height":r.height] - } - let buttons=visible.compactMap{$0 as? NSButton}.map{button->[String:Any] in - let r=button.convert(button.bounds,to:content) - return ["title":button.title,"enabled":button.isEnabled,"x":r.minX,"y":r.minY,"width":r.width,"height":r.height] - } - let name=parent+"-"+state+".png" - guard let rep=canvas.bitmapImageRepForCachingDisplay(in:canvas.bounds) else {throw Failure.check("bitmap")} - canvas.cacheDisplay(in:canvas.bounds,to:rep) - guard let png=rep.representation(using:.png,properties:[:]) else {throw Failure.check("png")} - try png.write(to:out.appendingPathComponent(name)) - frames.append(["image":name,"state":state,"synthetic":true,"phase":String(describing:controller.phase),"status":controller.status,"notice":controller.notice,"canSend":controller.canSend,"canChooseModel":controller.canChooseModel,"selectedModel":controller.model as Any? ?? NSNull(),"width":canvas.bounds.width,"height":canvas.bounds.height,"contentWidth":content.bounds.width,"contentHeight":content.bounds.height,"panelAlpha":panel.alphaValue,"intersectsScreen":!outside,"activeApplication":NSApp.isActive,"labels":labels,"buttons":buttons]) - try JSONSerialization.data(withJSONObject:frames,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("frames.json")) - } -} diff --git a/tools/archive/design-qa-batch23-29/PowerEarPreview.swift b/tools/archive/design-qa-batch23-29/PowerEarPreview.swift deleted file mode 100644 index ee1e4458..00000000 --- a/tools/archive/design-qa-batch23-29/PowerEarPreview.swift +++ /dev/null @@ -1,71 +0,0 @@ -import Cocoa - -/// Production compact drawing only: synthetic flash, no battery source/AX announcements/timer policy. -@main enum PowerEarPreview { - enum Failure:Error {case check(String)} - @MainActor static func main() async { - _=NSApplication.shared;NSApp.setActivationPolicy(.prohibited) - let out=URL(fileURLWithPath:CommandLine.arguments[1],isDirectory:true) - do { - try FileManager.default.createDirectory(at:out,withIntermediateDirectories:true) - var frames:[[String:Any]]=[] - for appearance in [NSAppearance.Name.aqua,.darkAqua] { - let parent=appearance == .aqua ? "light":"dark" - for (state,kind,percent,tone) in [ - ("plug-zero",PowerFlashKind.plug,0,PowerFlashTone.red), - ("plug-five",.plug,5,.red),("plug-twenty",.plug,20,.red), - ("plug-twenty-one",.plug,21,.green),("plug-eighty-two",.plug,82,.green), - ("plug-hundred",.plug,100,.green),("full",.full,100,.green), - ("low-power",.lowPowerMode,82,.yellow) - ] { - let panel=NotchPanel(notch:NSRect(x:-8000,y:866.5,width:185,height:33.5),virtual:false) - panel.isReleasedWhenClosed=false;panel.alphaValue=0;panel.appearance=NSAppearance(named:appearance) - defer {panel.setCompact(nil,room:nil);panel.close()} - var policy=PowerFlashPolicy() - func reading(_ value:Int,charging:ChargingState = .notCharging,charged:Bool=false,mode:Bool=false)->BatteryReading { - BatteryReading(deviceID:InternalBattery.deviceID,component:.main,provider:InternalBattery.providerName,providerEpoch:1,percent:value,charging:charging,sourceObservedAt:nil,receivedAt:0,isCharged:charged,lowPowerMode:mode) - } - let flash:PowerFlash - if kind == .plug { - _=policy.observe(reading(percent),now:0) - guard let generated=policy.observe(reading(percent,charging:.charging),now:1).flash else {throw Failure.check("synthetic plug policy")};flash=generated - } else if kind == .full { - _=policy.observe(reading(82,charging:.charging),now:0) - guard let generated=policy.observe(reading(100,charged:true),now:1).flash else {throw Failure.check("synthetic full policy")};flash=generated - } else { - _=policy.observe(reading(percent),now:0) - guard let generated=policy.observe(reading(percent,mode:true),now:1).flash else {throw Failure.check("synthetic low power policy")};flash=generated - } - guard flash.kind==kind,flash.tone==tone,NSImage(systemSymbolName:flash.symbol,accessibilityDescription:nil) != nil else {throw Failure.check("actual policy payload/symbol")} - panel.setCompact(.init(count:0,changed:false,leading:flash.spoken,trailing:flash.trailing,flash:flash),room:.init(leading:34,trailing:34)) - try await Task.sleep(nanoseconds:800_000_000) - guard let canvas=panel.contentView else {throw Failure.check("canvas")} - canvas.layoutSubtreeIfNeeded() - func nodes(_ v:NSView)->[NSView] {[v]+v.subviews.flatMap{nodes($0)}} - guard let compact=nodes(canvas).compactMap({$0 as? NotchCompactView}).first, - let slots=Mirror(reflecting:compact).children.first(where:{$0.label=="slots"})?.value as? (leading:NSRect,trailing:NSRect) else {throw Failure.check("actual compact slots")} - let actual=Mirror(reflecting:compact).children.first(where:{$0.label=="compact"})?.value as? NotchPanel.Compact - guard actual?.flash==flash else {throw Failure.check("actual compact payload")} - let outside=NSScreen.screens.allSatisfy{!$0.frame.intersects(panel.frame)} - guard outside,!NSApp.isActive,panel.alphaValue==0 else {throw Failure.check("escaped")} - let color=NotchCompactView.flashColor(tone).usingColorSpace(.sRGB)! - let layout=NotchCompactView.flashPercentageLayout(flash,in:slots.trailing,color:color) - guard layout.frame.minX>=slots.trailing.minX+2,layout.frame.maxX<=slots.trailing.maxX-2, - layout.frame.minY>=slots.trailing.minY,layout.frame.maxY<=slots.trailing.maxY else {throw Failure.check("percentage clipped")} - if state=="plug-zero" {for value in 0...100 { - let sample=PowerFlash(kind:.plug,percent:value,tone:.green,symbol:"bolt.fill",trailing:"\(value)%",spoken:"") - let box=NotchCompactView.flashPercentageLayout(sample,in:slots.trailing,color:color).frame - guard box.minX>=slots.trailing.minX+2,box.maxX<=slots.trailing.maxX-2 else {throw Failure.check("percentage font boundary \(value)")} - }} - guard let rep=canvas.bitmapImageRepForCachingDisplay(in:canvas.bounds) else {throw Failure.check("bitmap")} - canvas.cacheDisplay(in:canvas.bounds,to:rep) - guard let png=rep.representation(using:.png,properties:[:]) else {throw Failure.check("png")} - let name=parent+"-"+state+".png";try png.write(to:out.appendingPathComponent(name)) - frames.append(["image":name,"state":state,"width":canvas.bounds.width,"height":canvas.bounds.height,"compactWidth":compact.bounds.width,"compactHeight":compact.bounds.height,"trailing":actual!.flash!.trailing,"textWidth":layout.frame.width,"availableTextWidth":slots.trailing.width-4,"fontPointSize":(layout.text.attribute(.font,at:0,effectiveRange:nil) as? NSFont)?.pointSize ?? 0,"wholeRangeFontFits":101,"symbol":actual!.flash!.symbol,"tone":tone.rawValue,"colorRGB":[color.redComponent,color.greenComponent,color.blueComponent],"leadingSlot":[slots.leading.minX,slots.leading.minY,slots.leading.width,slots.leading.height],"trailingSlot":[slots.trailing.minX,slots.trailing.minY,slots.trailing.width,slots.trailing.height],"alpha":panel.alphaValue,"activeApplication":NSApp.isActive,"intersectsScreen":!outside,"synthetic":true,"realBatterySource":false,"powerFlashAPIOrAXUsed":false]) - try JSONSerialization.data(withJSONObject:frames,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("frames.json")) - } - } - print("Rendered \(frames.count) actual compact flash payload frames; no real sources/persistent settings/announcement API.") - } catch {print("FAILED power ears: \(error)");exit(1)} - } -} diff --git a/tools/archive/design-qa-batch23-29/PrivacyDetailColumnDraftPreview.swift b/tools/archive/design-qa-batch23-29/PrivacyDetailColumnDraftPreview.swift deleted file mode 100644 index 7c655cd4..00000000 --- a/tools/archive/design-qa-batch23-29/PrivacyDetailColumnDraftPreview.swift +++ /dev/null @@ -1,91 +0,0 @@ -import Cocoa - -@MainActor private final class DetailColumnDraft: NSView { - let stack=NSStackView() - var fields=[(key:String,role:String,view:NSTextField)]() - init(lines:[(String,String)],width:CGFloat) { - super.init(frame:.zero) - stack.orientation = .vertical;stack.alignment = .leading;stack.spacing=4 - stack.translatesAutoresizingMaskIntoConstraints=false;addSubview(stack) - NSLayoutConstraint.activate([stack.leadingAnchor.constraint(equalTo:leadingAnchor),stack.topAnchor.constraint(equalTo:topAnchor),stack.widthAnchor.constraint(equalToConstant:width),stack.bottomAnchor.constraint(equalTo:bottomAnchor)]) - let font=NSFont.systemFont(ofSize:12),column=font.pointSize*4.4 - for (key,value) in lines { - func label(_ text:String,_ role:String,_ width:CGFloat)->NSTextField { - let field=NSTextField(wrappingLabelWithString:text);field.font=font - field.textColor = role == "label" ? .secondaryLabelColor : .labelColor - field.maximumNumberOfLines=0;field.lineBreakMode = .byWordWrapping - field.preferredMaxLayoutWidth=width;field.toolTip = role == "label" ? key : text - field.widthAnchor.constraint(equalToConstant:width).isActive=true - field.setContentCompressionResistancePriority(.required,for:.vertical) - fields.append((key,role,field));return field - } - let title=key == "什么时候读" ? "什么时候" : key == "合起来能看出什么" ? "合起来看" : key - let row=NSStackView(views:[label(title,"label",column),label(value,"body",width-column-10)]) - row.orientation = .horizontal;row.alignment = .firstBaseline;row.spacing=10 - row.widthAnchor.constraint(equalToConstant:width).isActive=true - stack.addArrangedSubview(row) - } - } - required init?(coder:NSCoder) {nil} - override var intrinsicContentSize:NSSize {stack.fittingSize} -} - -@main enum PrivacyDetailColumnDraftPreview { - enum Failure:Error {case check(String)} - final class Background:NSView {override func draw(_ rect:NSRect) {NSColor.textBackgroundColor.setFill();rect.fill()}} - @MainActor static func onMain()->Bool {Thread.isMainThread} - static func box(_ r:NSRect)->[String:CGFloat] { ["x":r.minX,"y":r.minY,"width":r.width,"height":r.height] } - @MainActor static func main() async { - _=NSApplication.shared;NSApp.setActivationPolicy(.prohibited) - guard NSApp.delegate == nil else {fatalError("own entry only")} - do { - let out=URL(fileURLWithPath:CommandLine.arguments[1],isDirectory:true) - let registry=URL(fileURLWithPath:CommandLine.arguments[2]) - let data=try Data(contentsOf:registry) - guard let json=try JSONSerialization.jsonObject(with:data) as? [String:Any],let signals=json["signals"] as? [[String:Any]],let sites=json["sites"] as? [[String:Any]] else {throw Failure.check("registry")} - try FileManager.default.createDirectory(at:out,withIntermediateDirectories:true) - var frames=[[String:Any]]() - for appearance in [NSAppearance.Name.aqua,.darkAqua] { - for width:CGFloat in [640,448,300] { - for id in ["window-ax","battery","face-identity"] { - guard let source=signals.first(where:{$0["id"] as? String == id}) else {throw Failure.check("signal")} - for technical in [false,true] { - let keys=[("读到的","reads"),("为什么","purpose"),("去了哪里","destination"),("什么时候读","activation"),("开关","toggle"),("合起来能看出什么","combined")] - var lines=keys.compactMap { (label,key)->(String,String)? in guard let text=source[key] as? String,!text.isEmpty else {return nil};return (label,text) } - let interfaces=Array(Set(sites.filter{$0["signal"] as? String == id}.compactMap{$0["symbol"] as? String})).sorted() - if technical,!interfaces.isEmpty {lines.append(("接口",interfaces.joined(separator:"、")))} - let view=DetailColumnDraft(lines:lines,width:width) - let host=Background(frame:NSRect(x:0,y:0,width:width+32,height:700));host.widthAnchor.constraint(equalToConstant:width+32).isActive=true - view.translatesAutoresizingMaskIntoConstraints=false;host.addSubview(view) - NSLayoutConstraint.activate([view.leadingAnchor.constraint(equalTo:host.leadingAnchor,constant:16),view.topAnchor.constraint(equalTo:host.topAnchor,constant:16),view.widthAnchor.constraint(equalToConstant:width)]) - let window=NSWindow(contentRect:host.bounds,styleMask:[.borderless],backing:.buffered,defer:false) - window.isReleasedWhenClosed=false;window.alphaValue=0;window.appearance=NSAppearance(named:appearance);window.contentView=host - window.setFrame(NSRect(x:-8000,y:-8000,width:width+32,height:700),display:false) - host.layoutSubtreeIfNeeded();try await Task.sleep(nanoseconds:100_000_000);host.layoutSubtreeIfNeeded() - host.setFrameSize(NSSize(width:width+32,height:ceil(view.fittingSize.height)+32));host.layoutSubtreeIfNeeded() - var fields=[[String:Any]]() - for field in view.fields { - var components=[CGFloat]() - field.view.effectiveAppearance.performAsCurrentDrawingAppearance { - let color=field.view.textColor!.usingColorSpace(.sRGB)! - components=[color.redComponent,color.greenComponent,color.blueComponent,color.alphaComponent] - } - fields.append(["key":field.key,"role":field.role,"text":field.view.stringValue,"tooltip":field.view.toolTip ?? "","frame":box(field.view.convert(field.view.bounds,to:view)),"font":field.view.font!.pointSize,"wraps":field.view.cell?.wraps ?? false,"maxLines":field.view.maximumNumberOfLines,"editable":field.view.isEditable,"selectable":field.view.isSelectable,"color":components]) - } - let name="\(appearance == .aqua ? "light" : "dark")-\(Int(width))-\(id)-\(technical ? "technical" : "plain")" - guard let bitmap=host.bitmapImageRepForCachingDisplay(in:host.bounds) else {throw Failure.check("bitmap")} - host.cacheDisplay(in:host.bounds,to:bitmap) - guard let png=bitmap.representation(using:.png,properties:[:]) else {throw Failure.check("png")} - try png.write(to:out.appendingPathComponent(name+".png")) - frames.append(["name":name,"id":id,"status":source["status"] as? String ?? "","technical":technical,"width":width,"actualWidth":view.bounds.width,"height":view.bounds.height,"hostSize":box(host.bounds),"fields":fields,"interfaces":interfaces,"visible":window.isVisible,"active":NSApp.isActive,"alpha":window.alphaValue,"mainThread":onMain()]) - window.contentView=nil;window.close() - } - } - } - } - let report:[String:Any]=["candidateOnly":true,"productionIntegration":false,"plannedFixtureOnly":true,"frames":frames,"realSources":0,"actions":0,"networkReads":0,"globalInputEvents":0,"preferencesWrites":0] - try JSONSerialization.data(withJSONObject:report,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("frames.json")) - print("PASS \(frames.count) own native column candidates; registry text only; no integration/source/actions") - } catch {fputs("FAIL \(error)\n",stderr);exit(1)} - } -} diff --git a/tools/archive/design-qa-batch23-29/PrivacyPageCompositionPreview.swift b/tools/archive/design-qa-batch23-29/PrivacyPageCompositionPreview.swift deleted file mode 100644 index 94bdfa9c..00000000 --- a/tools/archive/design-qa-batch23-29/PrivacyPageCompositionPreview.swift +++ /dev/null @@ -1,99 +0,0 @@ -import Cocoa -#if !swift(>=6.0) -#error("Swift6 required") -#endif -@main enum PrivacyPageCompositionPreview { - final class Host:NSView {override var isFlipped:Bool {true}; override func draw(_ rect:NSRect){NSColor.textBackgroundColor.setFill();rect.fill()}} - final class Mock:NSObject {var actions=0; @objc func pressed(_ sender:Any?){actions += 1}} - enum Failure:Error {case check(String)} - @MainActor static func label(_ text:String,_ offset:CGFloat = 0,_ weight:NSFont.Weight = .regular)->NSTextField { - let f=NSTextField(wrappingLabelWithString:text);f.font=SystemAppearancePolicy.font(relativeToBody:offset,weight:weight);f.maximumNumberOfLines=0;return f - } - // Candidate composition of the existing UI factories; no AppDelegate is created. - @MainActor static func card(_ rows:[NSView])->NSView { - let box=SettingsGroupBox();box.translatesAutoresizingMaskIntoConstraints=false - let stack=NSStackView();stack.orientation = .vertical;stack.alignment = .leading;stack.spacing=0;stack.translatesAutoresizingMaskIntoConstraints=false;box.addSubview(stack) - NSLayoutConstraint.activate([stack.leadingAnchor.constraint(equalTo:box.leadingAnchor,constant:16),stack.trailingAnchor.constraint(equalTo:box.trailingAnchor,constant:-16),stack.topAnchor.constraint(equalTo:box.topAnchor,constant:10),stack.bottomAnchor.constraint(equalTo:box.bottomAnchor,constant:-10)]) - for (i,row) in rows.enumerated(){ - if i>0 {let sep=NSBox();sep.boxType = .separator;sep.translatesAutoresizingMaskIntoConstraints=false;stack.addArrangedSubview(sep);sep.widthAnchor.constraint(equalTo:stack.widthAnchor).isActive=true;sep.heightAnchor.constraint(equalToConstant:0.5).isActive=true} - stack.addArrangedSubview(row);row.widthAnchor.constraint(equalTo:stack.widthAnchor).isActive=true - };return box - } - @MainActor static func note(_ lead:String,_ text:String)->NSView { - let a=label(lead,0,.semibold),b=label(text,-2);b.textColor = .secondaryLabelColor - let s=NSStackView(views:[a,b]);s.orientation = .vertical;s.alignment = .leading;s.spacing=4 - b.widthAnchor.constraint(equalTo:s.widthAnchor).isActive=true;return s - } - @MainActor static func main() async { - _=NSApplication.shared;NSApp.setActivationPolicy(.prohibited) - do { try await run(URL(fileURLWithPath:CommandLine.arguments[1],isDirectory:true)) } - catch { fputs("FAIL \(error)\n",stderr); exit(1) } - } - /// 第26批组合入口调用这个:写到指定子目录(与动效探针输出互不覆盖)。出错就抛,由调用方决定退出码。 - @MainActor static func run(_ out:URL) async throws { - try FileManager.default.createDirectory(at:out,withIntermediateDirectories:true) - var frames=[[String:Any]]() - let visible=WS2PrivacyVisibility.visibleRows(WS2PrivacyData.rows,enabledFeatures:[]) - for appearance in [NSAppearance.Name.aqua,.darkAqua] {for expanded in [false,true] { - let mock=Mock(),root=Host(frame:NSRect(x:0,y:0,width:696,height:600)),doc=Host(frame:NSRect(x:0,y:0,width:696,height:600)) - let scroll=NSScrollView(frame:root.bounds);scroll.hasVerticalScroller=true;scroll.drawsBackground=false;scroll.documentView=doc;root.addSubview(scroll) - let page=NSStackView();page.orientation = .vertical;page.alignment = .leading;page.spacing=16;page.translatesAutoresizingMaskIntoConstraints=false;doc.addSubview(page) - NSLayoutConstraint.activate([page.leadingAnchor.constraint(equalTo:doc.leadingAnchor,constant:28),page.widthAnchor.constraint(equalToConstant:640),page.topAnchor.constraint(equalTo:doc.topAnchor,constant:22)]) - page.addArrangedSubview(WS2SettingsCopy.content(name:nil,subtitle:WS2PrivacyCopy.headerSubtitle(),symbol:WS2SettingsCopy.tableSymbol("lock.shield")).view) - let readAt=label(WS2PrivacyCopy.readAtText(Date(timeIntervalSince1970:0),timeZone:TimeZone(secondsFromGMT:0)!),-2);readAt.textColor = .secondaryLabelColor - let reread=NSButton(title:WS2PrivacyCopy.rereadTitle,target:mock,action:#selector(Mock.pressed(_:)));reread.bezelStyle = .rounded;reread.controlSize = .small - let details=NSButton(checkboxWithTitle:WS2PrivacyCopy.showDetailsTitle,target:mock,action:#selector(Mock.pressed(_:)));details.state=expanded ? .on:.off;details.controlSize = .small - let export=NSButton(title:WS2PrivacyCopy.exportTitle,target:mock,action:#selector(Mock.pressed(_:)));export.bezelStyle = .rounded;export.controlSize = .small - let spacer=NSView();spacer.setContentHuggingPriority(.init(1),for:.horizontal) - let toolbar=NSStackView(views:[readAt,reread,spacer,details,export]);toolbar.spacing=12;toolbar.alignment = .centerY;page.addArrangedSubview(toolbar);toolbar.widthAnchor.constraint(equalTo:page.widthAnchor).isActive=true - var rowViews=[(String,PrivacyRowView)](),groupNames=[String]() - for group in WS2PrivacyData.groups { - let rows=visible.filter{$0.group==group.title};guard !rows.isEmpty || group.title==WS2PrivacyCopy.destinationGroupTitle else {continue} - groupNames.append(group.title) - let heading=label(group.title,-1,.semibold);heading.textColor = .secondaryLabelColor - let caption=label(group.subtitle,-2);caption.textColor = .tertiaryLabelColor - let header=NSStackView(views:group.subtitle.isEmpty ? [heading]:[heading,caption]);header.alignment = .firstBaseline;header.spacing=8;page.addArrangedSubview(header);page.setCustomSpacing(8,after:header) - if group.title==WS2PrivacyCopy.destinationGroupTitle { - let network=WS2PrivacyCopy.networkCard(primaryHost:"updates.example.invalid",fallbackHost:"github.example.invalid") - for n in [note(network.lead,network.body),note(WS2PrivacyCopy.storageCard.lead,WS2PrivacyCopy.storageCard.body)]{let c=card([n]);page.addArrangedSubview(c);c.widthAnchor.constraint(equalTo:page.widthAnchor).isActive=true} - } - if !rows.isEmpty { - let views=rows.map {row -> NSView in - let titles=["activities":"实时活动","calendar":"日程","downloads":"浏览器下载","login":"登录时自动启动","autoUpdate":UpdateCopy.autoCheck,"desktop":"桌面开合","focusQuiet":"专注模式时更安静"] - let spec=row.switchID.flatMap {id in titles[id].map {PrivacySwitchSpec(title:$0,isOn:false,target:mock,action:#selector(Mock.pressed(_:)))}} - let value=row.id=="battery" ? "演示配件 82%":nil - let presentation=WS2PrivacyRowPresentation.make(row:row,value:value,hasValueSource:WS2PrivacyValues.hasValueSource(row.id),permissionGranted:row.permission == nil ? nil:false) - let v=PrivacyRowView(row:row,presentation:presentation,expanded:expanded,showDetails:expanded,switchSpec:spec,grantTarget:mock,grantAction:#selector(Mock.pressed(_:)),onToggle:{mock.actions += 1}) - rowViews.append((row.id,v));return v - };let c=card(views);page.addArrangedSubview(c);c.widthAnchor.constraint(equalTo:page.widthAnchor).isActive=true - } - } - let window=NSWindow(contentRect:root.bounds,styleMask:[.borderless],backing:.buffered,defer:false);window.isReleasedWhenClosed=false;window.alphaValue=0;window.appearance=NSAppearance(named:appearance);window.contentView=root;window.setFrameOrigin(NSPoint(x:-8000,y:-8000)) - root.layoutSubtreeIfNeeded();try await Task.sleep(nanoseconds:100_000_000);root.layoutSubtreeIfNeeded() - let height=ceil(page.frame.height)+44;doc.setFrameSize(NSSize(width:696,height:height));doc.layoutSubtreeIfNeeded() - for position in ["top","middle","bottom"] { - let maxY=max(0,height-scroll.contentView.bounds.height),y=position=="top" ? 0:position=="middle" ? maxY/2:maxY - scroll.contentView.scroll(to:NSPoint(x:0,y:y));scroll.reflectScrolledClipView(scroll.contentView);root.layoutSubtreeIfNeeded() - var records=[[String:Any]](),controls=[[String:Any]]() - for (id,v) in rowViews { - let r=v.convert(v.bounds,to:doc) - var fields=[[String:Any]]() - func visit(_ n:NSView){ - let b=n.convert(n.bounds,to:v) - if let f=n as? NSTextField {fields.append(["role":f.identifier?.rawValue ?? "header","text":f.stringValue,"x":b.minX,"y":b.minY,"width":b.width,"height":b.height,"neededHeight":f.cell?.cellSize(forBounds:NSRect(x:0,y:0,width:f.bounds.width,height:10000)).height ?? 0])} - if let s=n as? NSSwitch {controls.append(["row":id,"kind":"switch","mockTarget":s.target === mock,"width":b.width,"height":b.height,"state":s.state.rawValue])} - if let button=n as? NSButton,button.title==WS2PrivacyCopy.needsGrant {controls.append(["row":id,"kind":"grant","mockTarget":button.target === mock,"width":b.width,"height":b.height])} - n.subviews.forEach(visit) - };visit(v) - records.append(["id":id,"x":r.minX,"y":r.minY,"width":r.width,"height":r.height,"fields":fields]) - } - let name="\(appearance == .aqua ? "light":"dark")-\(expanded ? "expanded":"collapsed")-\(position)" - guard let bitmap=root.bitmapImageRepForCachingDisplay(in:root.bounds) else {throw Failure.check("bitmap")};root.cacheDisplay(in:root.bounds,to:bitmap) - guard let png=bitmap.representation(using:.png,properties:[:]) else {throw Failure.check("png")};try png.write(to:out.appendingPathComponent(name+".png")) - frames.append(["name":name,"expanded":expanded,"position":position,"groups":groupNames,"rows":records,"controls":controls,"contentHeight":height,"scrollY":scroll.contentView.bounds.minY,"maxScrollY":maxY,"pageWidth":page.frame.width,"actions":mock.actions,"visible":window.isVisible,"alpha":window.alphaValue,"active":NSApp.isActive]) - };window.contentView=nil;window.close() - }} - try JSONSerialization.data(withJSONObject:["frames":frames,"candidateOnly":true,"pageInstantiated":false,"sourcesRead":0,"settingsWrites":0,"globalInputEvents":0],options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("frames.json")) - print("PASS \(frames.count) static page composition fixtures") - } -} diff --git a/tools/archive/design-qa-batch23-29/PrivacyRowPreview.swift b/tools/archive/design-qa-batch23-29/PrivacyRowPreview.swift deleted file mode 100644 index caf4e80f..00000000 --- a/tools/archive/design-qa-batch23-29/PrivacyRowPreview.swift +++ /dev/null @@ -1,67 +0,0 @@ -import Cocoa -#if !swift(>=6.0) -#error("PrivacyRowPreview requires Swift6") -#endif -@main enum PrivacyRowPreview { - final class Background:NSView { override func draw(_ rect:NSRect) {NSColor.textBackgroundColor.setFill();rect.fill()} } - enum Failure:Error {case check(String)} - @MainActor static func onMain()->Bool {Thread.isMainThread} - @MainActor static func main() async { - _ = NSApplication.shared;NSApp.setActivationPolicy(.prohibited) - let out=URL(fileURLWithPath:CommandLine.arguments[1],isDirectory:true) - do { - try FileManager.default.createDirectory(at:out,withIntermediateDirectories:true) - var frames=[[String:Any]]() - for parent in [NSAppearance.Name.aqua,.darkAqua] { - for width:CGFloat in [640,448,300] { - for sample in ["battery","missing","denied","granted","long-value","expanded","technical","planned"] { - let id = ["denied","granted","expanded","technical"].contains(sample) ? "window-ax" : sample == "planned" ? "face-identity" : "battery" - guard let row=WS2PrivacyData.rows.first(where:{$0.id==id}) else {throw Failure.check("registered row")} - let value:String? = sample == "battery" ? "妙控鼠标 82%" : sample == "long-value" ? "演示配件 — "+String(repeating:"名字很长的键盘",count:8)+" 82%" : nil - let granted:Bool?=sample == "denied" ? false : ["granted","expanded","technical"].contains(sample) ? true : nil - let presentation=WS2PrivacyRowPresentation.make(row:row,value:value,hasValueSource:true,permissionGranted:granted) - let expanded=["expanded","technical","planned"].contains(sample) - var toggles=0 - let view=PrivacyRowView(row:row,presentation:presentation,expanded:expanded,showDetails:sample == "technical",switchSpec:nil,grantTarget:nil,grantAction:nil,onToggle:{toggles += 1}) - let host=Background(frame:NSRect(x:0,y:0,width:width+32,height:640)) - host.widthAnchor.constraint(equalToConstant:width+32).isActive=true - host.addSubview(view) - NSLayoutConstraint.activate([view.leadingAnchor.constraint(equalTo:host.leadingAnchor,constant:16),view.trailingAnchor.constraint(equalTo:host.trailingAnchor,constant:-16),view.topAnchor.constraint(equalTo:host.topAnchor,constant:16)]) - let window=NSWindow(contentRect:host.bounds,styleMask:[.borderless],backing:.buffered,defer:false) - window.isReleasedWhenClosed=false;window.alphaValue=0;window.appearance=NSAppearance(named:parent);window.contentView=host - window.setFrame(NSRect(x:-8000,y:-8000,width:host.bounds.width,height:host.bounds.height),display:false) - host.layoutSubtreeIfNeeded();try await Task.sleep(nanoseconds:100_000_000);host.layoutSubtreeIfNeeded() - let height=ceil(view.frame.height)+32 - host.setFrameSize(NSSize(width:width+32,height:height));host.layoutSubtreeIfNeeded() - var labels=[[String:Any]]();var buttons=[[String:Any]]() - func visit(_ v:NSView) { - let rect=v.convert(v.bounds,to:view) - let box:[String:CGFloat]=["x":rect.minX,"y":rect.minY,"width":rect.width,"height":rect.height] - if let text=v as? NSTextField { - var components=[CGFloat]() - text.effectiveAppearance.performAsCurrentDrawingAppearance { - if let c=text.textColor?.usingColorSpace(.sRGB) {components=[c.redComponent,c.greenComponent,c.blueComponent,c.alphaComponent]} - } - let needed=text.cell?.cellSize(forBounds:NSRect(x:0,y:0,width:text.bounds.width,height:10000)).height ?? 0 - labels.append(["role":text.identifier?.rawValue ?? "header","color":components,"cellFittingHeight":needed,"editable":text.isEditable,"selectable":text.isSelectable,"text":text.stringValue,"tooltip":text.toolTip ?? "","frame":box,"font":text.font?.pointSize ?? 0,"naturalWidth":NSAttributedString(string:text.stringValue,attributes:[.font:text.font ?? NSFont.systemFont(ofSize:13)]).size().width,"wraps":text.cell?.wraps ?? false,"maxLines":text.maximumNumberOfLines,"breakMode":text.lineBreakMode.rawValue]) - } - if let b=v as? NSButton {buttons.append(["title":b.title,"frame":box,"accessibilityLabel":b.accessibilityLabel() ?? "","isGrant":b.title==WS2PrivacyCopy.needsGrant])} - v.subviews.forEach(visit) - } - visit(view) - let name="\(parent == .aqua ? "light" : "dark")-\(Int(width))-\(sample)" - guard let bitmap=host.bitmapImageRepForCachingDisplay(in:host.bounds) else {throw Failure.check("bitmap")} - host.cacheDisplay(in:host.bounds,to:bitmap) - guard let png=bitmap.representation(using:.png,properties:[:]) else {throw Failure.check("png")} - try png.write(to:out.appendingPathComponent(name+".png")) - frames.append(["name":name,"sample":sample,"rowID":row.id,"registeredStatus":row.status,"expanded":expanded,"width":width,"actualRowWidth":view.frame.width,"hostWidth":host.bounds.width,"height":view.frame.height,"labels":labels,"buttons":buttons,"visible":window.isVisible,"active":NSApp.isActive,"alpha":window.alphaValue,"mainThread":onMain(),"toggles":toggles]) - window.contentView=nil;window.close() - } - } - } - let report:[String:Any]=["frames":frames,"pageInstantiated":false,"sourcesRead":0,"grantActions":0,"exports":0,"settingsWrites":0,"globalInputEvents":0,"plannedFixtureOnly":true] - try JSONSerialization.data(withJSONObject:report,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("frames.json")) - print("PASS \(frames.count) actual privacy row native fixtures; no source/page/actions") - } catch {fputs("FAIL \(error)\n",stderr);exit(1)} - } -} diff --git a/tools/archive/design-qa-batch23-29/ProgressQuantityPreview.swift b/tools/archive/design-qa-batch23-29/ProgressQuantityPreview.swift deleted file mode 100644 index 11590c6e..00000000 --- a/tools/archive/design-qa-batch23-29/ProgressQuantityPreview.swift +++ /dev/null @@ -1,119 +0,0 @@ -import Cocoa -import QuartzCore - -#if !swift(>=6.0) -#error("ProgressQuantityPreview requires --swift6") -#endif - -/// Production M11 canvas/content, without any source/controller/window operation. -@main enum ProgressQuantityPreview { - enum Failure: Error { case check(String) } - static func rect(_ r: NSRect) -> [String: Double] { ["x": r.minX, "y": r.minY, "width": r.width, "height": r.height] } - @MainActor static func main() async { - _ = NSApplication.shared; NSApp.setActivationPolicy(.prohibited) - let out = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - do { - try FileManager.default.createDirectory(at: out, withIntermediateDirectories: true) - var frames: [[String: Any]] = [] - for parent in [NSAppearance.Name.aqua, .darkAqua] { - for sample in ["zero", "percent", "complete-value", "count", "large-count", "huge-count", "indeterminate", "unknown", "paused", "ended", "stale", "long", "three"] { - let windows = 0 - let ongoing = sample == "three" ? 3 : 1 - var tiles = [NotchTile]() - for index in 0.. [String:Any] in - var entry: [String:Any] = ["hidden":layer.isHidden,"animations":layer.animationKeys() ?? []] - if let shape=layer as? CAShapeLayer {entry["strokeEnd"]=shape.strokeEnd} - return entry - } - } - } - actual.append(record) - } - view.subviews.forEach(visit) - } - visit(canvas) - guard actual.count == tiles.count, completions == 1, !window.isVisible, !NSApp.isActive, - window.alphaValue == 0, NSScreen.screens.allSatisfy({ !window.frame.intersects($0.frame) }) else { throw Failure.check("actual tiles/host") } - let name = "\(parent == .aqua ? "light" : "dark")-\(sample)" - guard let bitmap = canvas.bitmapImageRepForCachingDisplay(in: canvas.bounds) else { throw Failure.check("bitmap") } - canvas.cacheDisplay(in: canvas.bounds, to: bitmap) - guard let png = bitmap.representation(using: .png, properties: [:]) else { throw Failure.check("png") } - try png.write(to: out.appendingPathComponent(name + ".png")) - frames.append(["name": name, "sample": sample, "windows": windows, "ongoing": ongoing, - "width": width, "height": height, "tiles": actual, "completions": completions, - "canvasDark": canvas.effectiveAppearance.bestMatch(from: [.aqua, .darkAqua]) == .darkAqua, - "visible": window.isVisible, "active": NSApp.isActive, "alpha": window.alphaValue]) - window.contentView = nil; window.close() - } - } - try JSONSerialization.data(withJSONObject: ["frames": frames, "sourceControllers": 0, "actions": 0], options: [.prettyPrinted, .sortedKeys]).write(to: out.appendingPathComponent("frames.json")) - print("PASS \(frames.count) actual progress quantity static frames; no source/controllers/actions") - } catch { fputs("FAIL \(error)\n", stderr); exit(1) } - } -} diff --git a/tools/archive/design-qa-batch23-29/README.md b/tools/archive/design-qa-batch23-29/README.md deleted file mode 100644 index 9fe2533a..00000000 --- a/tools/archive/design-qa-batch23-29/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# design-qa(1.0.16 第 23–29 批设计质检,已归档) - -这是 1.0.16 第 23–29 批设计稿交付时用的质检脚本与产物,现已定稿,不再维护。 -其中的 `check-*.py` 把源文件数写死为 518,而现在的源码数早已不同,直接跑会误报。 -各脚本还假设自己位于旧路径 `tools/design-qa/`,搬到这里之后不能原样运行。 -仓库里没有任何活跃脚本、测试或文档引用它;只在需要回看当时的验收口径时翻阅。 diff --git a/tools/archive/design-qa-batch23-29/SettingsShadeLanguagePreview.swift b/tools/archive/design-qa-batch23-29/SettingsShadeLanguagePreview.swift deleted file mode 100644 index 2a67f510..00000000 --- a/tools/archive/design-qa-batch23-29/SettingsShadeLanguagePreview.swift +++ /dev/null @@ -1,298 +0,0 @@ -import Cocoa - -/// 第27批:设置「卷帘」页 + 「高级」页(含语言行)+ 窗口外壳的中英渲染夹具。 -/// 用真实生产页面(AppDelegate.makeShadeSettingsPage / DuoSettingsWindow),隐藏窗口离屏渲染; -/// 只直接设 WSL10n.language 与 englishBundle,不写任何持久偏好、不触发权限弹窗。 -/// 同进程 zh→en→zh:直接发语言变更通知(见 InterfaceLanguagePreference.didChangeNotification, -/// 这里用原始名以便同一份夹具也能编译到改动前的旧树跑基线)。 -@main enum SettingsShadeLanguagePreview { - enum Failure: Error { case check(String) } - - static let languageDidChange = Notification.Name("WindowShade.InterfaceLanguage.didChange") - - final class Host: NSView { override var isFlipped: Bool { true } } - final class Background: NSView { - override func draw(_ rect: NSRect) { NSColor.textBackgroundColor.setFill(); rect.fill() } - } - - @MainActor static func main() async { - _ = NSApplication.shared - NSApp.setActivationPolicy(.prohibited) - let out = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - let stringsDir = ProcessInfo.processInfo.environment["WS2_LOCALIZATION_DIR"] - let enBundle = stringsDir.flatMap { Bundle(url: URL(fileURLWithPath: $0).appendingPathComponent("en.lproj")) } - do { - try FileManager.default.createDirectory(at: out, withIntermediateDirectories: true) - var frames: [[String: Any]] = [] - - let appearances: [(String, NSAppearance.Name)] = [("aqua", .aqua), ("darkAqua", .darkAqua)] - var combos: [(language: String, appearance: NSAppearance.Name, width: CGFloat)] = [] - for (_, appearanceValue) in appearances { - for language in ["zh", "en"] { combos.append((language, appearanceValue, 696)) } - combos.append(("zh", appearanceValue, 560)) - } - for combo in combos { - let language = combo.language - let appearance = combo.appearance - let width = combo.width - if let enBundle, language == "en" { WSL10n.englishBundle = enBundle } else { WSL10n.englishBundle = nil } - WSL10n.language = language == "en" ? .en : .zh - - let owner = AppDelegate() - let page = owner.makeShadeSettingsPage() - // 产品路径对齐:真设置窗口 showPage 前会走 allowHorizontalExpansion - // (页内所有 NSStackView 横向 hugging 降 low),直接建页绕过了它,布局 - // 环境就和产品不一致(门0 实测:产品窗稳定落"控件自然宽右对齐"形态, - // 未对齐的夹具在 696 宽会落到"控件被拉宽"形态)。这里复刻同一处理; - // 复刻后滑杆行仍在两种形态间漂(门0 后复跑实测),再按产品实测形态钉住 - // labels 的 hugging(见 pinShadeRowForm)。 - expandStacks(page) - pinShadeRowForm(page) - let root = Background(frame: NSRect(x: 0, y: 0, width: width, height: 720)) - root.appearance = NSAppearance(named: appearance) - let scroll = NSScrollView(frame: root.bounds) - scroll.drawsBackground = false - scroll.automaticallyAdjustsContentInsets = false - scroll.borderType = .noBorder - scroll.hasVerticalScroller = true - scroll.autohidesScrollers = true - root.addSubview(scroll) - let host = Host() - host.translatesAutoresizingMaskIntoConstraints = false - scroll.documentView = host - host.widthAnchor.constraint(equalTo: scroll.contentView.widthAnchor).isActive = true - host.heightAnchor.constraint(greaterThanOrEqualTo: scroll.contentView.heightAnchor).isActive = true - page.translatesAutoresizingMaskIntoConstraints = false - host.addSubview(page) - let preferred = page.widthAnchor.constraint(equalToConstant: settingsContentWidth) - preferred.priority = .dragThatCannotResizeWindow - NSLayoutConstraint.activate([ - page.centerXAnchor.constraint(equalTo: host.centerXAnchor), - page.leadingAnchor.constraint(greaterThanOrEqualTo: host.leadingAnchor, constant: 28), - page.trailingAnchor.constraint(lessThanOrEqualTo: host.trailingAnchor, constant: -28), - preferred, page.widthAnchor.constraint(lessThanOrEqualToConstant: settingsContentWidth), - page.topAnchor.constraint(equalTo: host.topAnchor, constant: 22), - ]) - let window = NSWindow(contentRect: root.bounds, styleMask: [.borderless], backing: .buffered, defer: false) - window.isReleasedWhenClosed = false - window.alphaValue = 0 - window.contentView = root - window.setFrame(NSRect(x: -8000, y: -8000, width: width, height: 720), display: false) - root.layoutSubtreeIfNeeded() - try await Task.sleep(nanoseconds: 150_000_000) - root.layoutSubtreeIfNeeded() - for _ in 3...6 { - root.layoutSubtreeIfNeeded() - } - guard !window.isVisible, !NSApp.isActive, window.alphaValue == 0, - NSScreen.screens.allSatisfy({ !$0.frame.intersects(window.frame) }) else { - throw Failure.check("fixture window escaped") - } - let name = "\(language)-\(appearanceName(appearance))-\(Int(width))-shade" - frames.append(frame(named: name, language: language, surface: "shade", - dumped: dump(page, relativeTo: page), width: width)) - try writePNG(root, to: out.appendingPathComponent("\(name).png")) - window.contentView = nil - window.close() - } - - // 门0:产品真实形态帧——真 DuoSettingsWindow 走产品自己的 select(.shade) - // (含 allowHorizontalExpansion 把页内 NSStackView hugging 降为 low), - // 探针读产品路径下 sliderGroup 落在哪一个布局形态(L=自然宽右对齐 / C=被拉宽)。 - // controller 要挂 owner,卷帘页才会在 rebuildAllPages 里建出来(同切换测试写法)。 - WSL10n.language = .zh - WSL10n.englishBundle = nil - let productOwner = AppDelegate() - let productController = productOwner.duoController - productController.owner = productOwner - productController.isDesignPreview = true - productController.persistsSettings = false - let productWindow = DuoSettingsWindow(controller: productController) - productController.settingsWindow = productWindow - productWindow.select(section: .shade) - try? await Task.sleep(nanoseconds: 300_000_000) - if let productContent = productWindow.window?.contentView { - productContent.layoutSubtreeIfNeeded() - let dumpProduct = dump(productContent, relativeTo: productContent) - frames.append(frame(named: "product-zh-aqua-900-shade", language: "zh", surface: "shade-product", - dumped: dumpProduct, width: 900, - windowTitle: productWindow.window?.title ?? "", - windowSubtitle: productWindow.window?.subtitle ?? "")) - try writePNG(productContent, to: out.appendingPathComponent("product-zh-aqua-900-shade.png")) - } - - // 「高级」页 + 窗口外壳:真 DuoSettingsWindow,选到高级,同一个窗口做 zh→en→zh 重建。 - if let enBundle { - WSL10n.englishBundle = enBundle - } - WSL10n.language = .zh - let controller = DuoController() - controller.isDesignPreview = true - let settings = DuoSettingsWindow(controller: controller) - settings.select(section: .advanced) - try? await Task.sleep(nanoseconds: 300_000_000) - var advancedFrames: [[String: Any]] = [] - if let content = settings.window?.contentView { - let dump0 = dump(content, relativeTo: content) - let title = settings.window?.title ?? "" - let subtitle = settings.window?.subtitle ?? "" - advancedFrames.append(frame(named: "zh-aqua-900-advanced", language: "zh", surface: "advanced", - dumped: dump0, width: 900, windowTitle: title, windowSubtitle: subtitle)) - try writePNG(content, to: out.appendingPathComponent("zh-aqua-900-advanced.png")) - // 同进程切 en:直接改进程语言 + 发通知,走真实观察者重建(不写偏好)。 - WSL10n.language = .en - NotificationCenter.default.post(name: languageDidChange, object: nil) - try? await Task.sleep(nanoseconds: 400_000_000) - if let contentEn = settings.window?.contentView { - advancedFrames.append(frame(named: "rebuild-en-advanced", language: "en", surface: "advanced", - dumped: dump(contentEn, relativeTo: contentEn), width: 900, - windowTitle: settings.window?.title ?? "", - windowSubtitle: settings.window?.subtitle ?? "")) - try writePNG(contentEn, to: out.appendingPathComponent("rebuild-en-advanced.png")) - } - // 切回 zh:重建后应与原来的 zh 完全一致。 - WSL10n.language = .zh - NotificationCenter.default.post(name: languageDidChange, object: nil) - try? await Task.sleep(nanoseconds: 400_000_000) - if let contentZh = settings.window?.contentView { - advancedFrames.append(frame(named: "rebuild-zh-advanced", language: "zh", surface: "advanced", - dumped: dump(contentZh, relativeTo: contentZh), width: 900, - windowTitle: settings.window?.title ?? "", - windowSubtitle: settings.window?.subtitle ?? "")) - try writePNG(contentZh, to: out.appendingPathComponent("rebuild-zh-advanced.png")) - } - } - frames.append(contentsOf: advancedFrames) - - let report: [String: Any] = [ - "frames": frames, - "preferencesWritten": false, - "persistentDefaultsTouched": false, - "permissionPrompts": 0, - "permissionReads": systemState(), - "fixture": "SettingsShadeLanguagePreview", - ] - try JSONSerialization.data(withJSONObject: report, options: [.prettyPrinted, .sortedKeys]) - .write(to: out.appendingPathComponent("frames.json")) - print("PASS settings-shade-language preview: \(frames.count) frames (zh/en × light/dark × widths + rebuild)") - } catch { - try? String(describing: error).write(to: out.appendingPathComponent("failure.txt"), atomically: true, encoding: .utf8) - print("FAIL settings-shade-language preview: \(error)") - exit(1) - } - } - - static func appearanceName(_ name: NSAppearance.Name) -> String { - name == .darkAqua ? "dark" : "light" - } - - /// 复刻 DuoSettingsWindow.allowHorizontalExpansion:页内所有 NSStackView 横向 hugging 降 low。 - /// 夹具在卷帘页布局上必须和产品同一环境,否则滑杆组会在两种形态间漂(第27批卡点 B)。 - static func expandStacks(_ view: NSView) { - if let stack = view as? NSStackView { - stack.setHuggingPriority(.defaultLow, for: .horizontal) - } - view.subviews.forEach(expandStacks) - } - - /// 把滑杆行钉到产品实测形态(门0:真窗口 select(.shade) 稳定落"labels 拉伸、 - /// 控件自然宽右对齐")。labels 与 sliderGroup 的 hugging 同为 defaultLow 时求解器 - /// 在不同环境下二选一漂移;把 labels 再压一档(249 < 250),"谁被拉伸"就有了唯一解: - /// labels 拉满、sliderGroup 自然宽、读数贴行右缘。只动夹具,不改生产行几何。 - static func pinShadeRowForm(_ view: NSView) { - if let group = view as? NSStackView, group.arrangedSubviews.count == 2, - group.arrangedSubviews.first is NSSlider, let row = group.superview as? NSStackView, - let labels = row.arrangedSubviews.first { - labels.setContentHuggingPriority(NSLayoutConstraint.Priority(249), for: .horizontal) - } - view.subviews.forEach(pinShadeRowForm) - } - - /// 只记录系统状态的读值(都不弹窗):辅助功能、屏幕录制预检、日历读权限。 - @MainActor static func systemState() -> [String: Any] { - [ - "accessibilityTrusted": AXIsProcessTrusted(), - "screenRecordingPreflight": CGPreflightScreenCaptureAccess(), - "calendarAccess": CalendarSource.access() == .granted, - ] - } - - @MainActor static func frame(named name: String, language: String, surface: String, - dumped: [String: Any], width: CGFloat, - windowTitle: String? = nil, windowSubtitle: String? = nil) -> [String: Any] { - var out: [String: Any] = ["name": name, "language": language, "surface": surface, - "width": width, "preferencesWritten": false] - for (key, value) in dumped { out[key] = value } - if let windowTitle { out["windowTitle"] = windowTitle } - if let windowSubtitle { out["windowSubtitle"] = windowSubtitle } - return out - } - - /// 采集一棵视图树里的可见文字、控件与提示(坐标换成 root 的坐标系)。 - @MainActor static func dump(_ view: NSView, relativeTo root: NSView) -> [String: Any] { - var labels: [[String: Any]] = [] - var buttons: [[String: Any]] = [] - var toggles: [[String: Any]] = [] - var popups: [[String: Any]] = [] - var segments: [[String: Any]] = [] - var tooltips: [String] = [] - var axLabels: [String] = [] - func box(_ v: NSView) -> [String: Any] { - let f = v.convert(v.bounds, to: root) - return ["x": Double(f.minX.rounded(toPlaces: 2)), "y": Double(f.minY.rounded(toPlaces: 2)), - "width": Double(f.width.rounded(toPlaces: 2)), "height": Double(f.height.rounded(toPlaces: 2))] - } - func visit(_ v: NSView) { - if let tip = v.toolTip, !tip.isEmpty { tooltips.append(tip) } - if let ax = v.accessibilityLabel(), !ax.isEmpty { axLabels.append(ax) } - if let field = v as? NSTextField, !field.stringValue.isEmpty { - var entry = box(v) - entry["text"] = field.stringValue - labels.append(entry) - } - if let button = v as? NSButton, !(v is NSSwitch), !button.title.isEmpty { - var entry = box(v) - entry["title"] = button.title - buttons.append(entry) - } - if let toggle = v as? NSSwitch { - var entry = box(v) - entry["on"] = toggle.state == .on - entry["enabled"] = toggle.isEnabled - toggles.append(entry) - } - if let popup = v as? NSPopUpButton { - var entry = box(v) - entry["items"] = popup.itemArray.map { $0.title } - entry["selected"] = popup.selectedItem?.title ?? "" - popups.append(entry) - } - let segment = (v as? NSSegmentedControl).map { $0 } ?? (v.superview as? NSSegmentedControl) - if let segment, segment.superview === v.superview || v is NSSegmentedControl { - var entry = box(segment) - entry["labels"] = (0.. CGFloat { - let scale = pow(10.0, CGFloat(places)) - return (self * scale).rounded() / scale - } -} diff --git a/tools/archive/design-qa-batch23-29/SilentPageLanguagePreview.swift b/tools/archive/design-qa-batch23-29/SilentPageLanguagePreview.swift deleted file mode 100644 index 247f15a4..00000000 --- a/tools/archive/design-qa-batch23-29/SilentPageLanguagePreview.swift +++ /dev/null @@ -1,97 +0,0 @@ -import Cocoa - -/// 第28批:静音页(WS2SilentPageView + IslandChip)中英渲染夹具(轻量档)。 -/// 真生产视图离屏渲染,只直接设 WSL10n.language 与 englishBundle,不写偏好、不碰相机/输入。 -/// 帧:zh 初始页(芯片 + 标题 + 确认块)、en 同页、zh 结果句帧(note 状态行)、en 结果句帧。 -@main enum SilentPageLanguagePreview { - enum Failure: Error { case check(String) } - - final class Background: NSView { - override func draw(_ rect: NSRect) { NSColor.black.setFill(); rect.fill() } - } - - @MainActor static func main() async { - _ = NSApplication.shared - NSApp.setActivationPolicy(.prohibited) - let out = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - let stringsDir = ProcessInfo.processInfo.environment["WS2_LOCALIZATION_DIR"] - let enBundle = stringsDir.flatMap { Bundle(url: URL(fileURLWithPath: $0).appendingPathComponent("en.lproj")) } - do { - try FileManager.default.createDirectory(at: out, withIntermediateDirectories: true) - var frames: [[String: Any]] = [] - - // 宿主要活着(页面弱引用它);探针不 attach runtime,只是静态渲染。 - let silentHost = WS2SilentHost() - func makePage() -> NSView { - // 静音页是 NSView 子类,宿主只需黑底。IslandChip 的玻璃样式按黑底画。 - let host = WS2SilentPageView(host: silentHost) - host.frame = NSRect(x: 14, y: 10, width: 344, height: 168) - let root = Background(frame: NSRect(x: 0, y: 0, width: 372, height: 196)) - root.wantsLayer = true - root.layer?.cornerRadius = 18 - root.layer?.cornerCurve = .continuous - root.addSubview(host) - return root - } - - let combos: [(String, WSLanguage)] = [("zh", .zh), ("en", .en)] - for (lang, wslang) in combos { - if let enBundle, wslang == .en { WSL10n.englishBundle = enBundle } else { WSL10n.englishBundle = nil } - WSL10n.language = wslang - let root = makePage() - let window = NSWindow(contentRect: root.bounds, styleMask: [.borderless], backing: .buffered, defer: false) - window.isReleasedWhenClosed = false - window.alphaValue = 0 - window.contentView = root - window.setFrame(NSRect(x: -8000, y: -8000, width: 372, height: 196), display: false) - root.layoutSubtreeIfNeeded() - guard !window.isVisible, NSScreen.screens.allSatisfy({ !$0.frame.intersects(window.frame) }) else { - throw Failure.check("fixture window escaped") - } - var texts: [String] = [] - collect(root, into: &texts) - frames.append(["name": "\(lang)-silent-initial", "language": lang, "surface": "silent", - "labels": texts, "preferencesWritten": false]) - try writePNG(root, to: out.appendingPathComponent("\(lang)-silent-initial.png")) - // 结果句帧:走生产 note 路径写一行状态。 - if let page = root.subviews.first as? WS2SilentPageView { - page.note(WS2SilentCopy.saying("notDone")) - root.layoutSubtreeIfNeeded() - var texts2: [String] = [] - collect(root, into: &texts2) - frames.append(["name": "\(lang)-silent-notdone", "language": lang, "surface": "silent", - "labels": texts2, "preferencesWritten": false]) - try writePNG(root, to: out.appendingPathComponent("\(lang)-silent-notdone.png")) - } - window.contentView = nil - window.close() - } - - let report: [String: Any] = [ - "frames": frames, - "preferencesWritten": false, - "fixture": "SilentPageLanguagePreview", - ] - try JSONSerialization.data(withJSONObject: report, options: [.prettyPrinted, .sortedKeys]) - .write(to: out.appendingPathComponent("frames.json")) - print("PASS silent-page language preview: \(frames.count) frames") - } catch { - try? String(describing: error).write(to: out.appendingPathComponent("failure.txt"), atomically: true, encoding: .utf8) - print("FAIL silent-page language preview: \(error)") - exit(1) - } - } - - @MainActor static func collect(_ view: NSView, into out: inout [String]) { - if let button = view as? NSButton, !button.title.isEmpty { out.append(button.title) } - if let field = view as? NSTextField, !field.stringValue.isEmpty { out.append(field.stringValue) } - view.subviews.forEach { collect($0, into: &out) } - } - - @MainActor static func writePNG(_ view: NSView, to url: URL) throws { - guard let rep = view.bitmapImageRepForCachingDisplay(in: view.bounds) else { throw Failure.check("bitmap") } - view.cacheDisplay(in: view.bounds, to: rep) - guard let png = rep.representation(using: .png, properties: [:]) else { throw Failure.check("png") } - try png.write(to: url) - } -} diff --git a/tools/archive/design-qa-batch23-29/SpringVelocityUnitsPreview.swift b/tools/archive/design-qa-batch23-29/SpringVelocityUnitsPreview.swift deleted file mode 100644 index 7de17f89..00000000 --- a/tools/archive/design-qa-batch23-29/SpringVelocityUnitsPreview.swift +++ /dev/null @@ -1,32 +0,0 @@ -import Cocoa -import QuartzCore -@main enum SpringVelocityUnitsPreview { - @MainActor static func mainThreadNow()->Bool {Thread.isMainThread} - @MainActor static func main(){ - _=NSApplication.shared;NSApp.setActivationPolicy(.prohibited) - Task { @MainActor in - do {try await run(URL(fileURLWithPath:CommandLine.arguments[1],isDirectory:true));exit(0)}catch{print(error);exit(1)} - };NSApp.run() - } - @MainActor static func run(_ out:URL) async throws { - try FileManager.default.createDirectory(at:out,withIntermediateDirectories:true) - let host=NSView(frame:NSRect(x:0,y:0,width:600,height:200));host.wantsLayer=true - let w=NSWindow(contentRect:host.bounds,styleMask:[.borderless],backing:.buffered,defer:false);w.isReleasedWhenClosed=false;w.contentView=host;w.alphaValue=0;w.setFrameOrigin(NSPoint(x:-8000,y:-8000));defer{w.close()} - var layers=[(Double,Double,CALayer)]() - CATransaction.begin();CATransaction.setDisableActions(true) - for distance in [100.0,200.0] {for speed in [-1.0,0.0,1.0] {let l=CALayer();l.bounds=CGRect(x:0,y:0,width:1,height:1);l.position=CGPoint(x:distance,y:0);host.layer!.addSublayer(l);layers.append((distance,speed,l))}} - CATransaction.commit();CATransaction.flush() - let start=CACurrentMediaTime() - CATransaction.begin();CATransaction.setDisableActions(true) - for (distance,speed,l) in layers {let a=CASpringAnimation(keyPath:"position.x");a.mass=1;a.stiffness=100;a.damping=10;a.initialVelocity=speed;a.fromValue = -distance;a.toValue=0;a.isAdditive=true;a.beginTime=l.convertTime(start,from:nil);a.duration=1;l.add(a,forKey:"probe")} - CATransaction.commit();CATransaction.flush() - var records=[[String:Any]]() - for _ in 0..<30 { - let now=CACurrentMediaTime() - for (d,v,l) in layers {records.append(["time":now-start,"distance":d,"initialVelocity":v,"presentationX":l.presentation()?.position.x as Any? ?? NSNull(),"modelX":l.position.x])} - try await Task.sleep(nanoseconds:10_000_000) - } - try JSONSerialization.data(withJSONObject:["records":records,"visible":w.isVisible,"alpha":w.alphaValue,"active":NSApp.isActive,"mainThread":mainThreadNow(),"delegateNil":NSApp.delegate==nil,"productEntry":false,"globalInputEvents":0],options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("samples.json")) - print("PASS own Cocoa spring API sampling; not compositor acceptance") - } -} diff --git a/tools/archive/design-qa-batch23-29/UsageDetailDraftPreview.swift b/tools/archive/design-qa-batch23-29/UsageDetailDraftPreview.swift deleted file mode 100644 index 9c542cbf..00000000 --- a/tools/archive/design-qa-batch23-29/UsageDetailDraftPreview.swift +++ /dev/null @@ -1,170 +0,0 @@ -import Cocoa - -#if !swift(>=6.0) -#error("UsageDetailDraftPreview requires --swift6") -#endif - -@MainActor private final class UsageModelLabel: NSTextView { - let fullText: String - init(_ text: String) { - fullText=text - let container=NSTextContainer(containerSize:NSSize(width:484,height:32)) - container.lineFragmentPadding=0;container.maximumNumberOfLines=2;container.lineBreakMode = .byTruncatingTail - let manager=NSLayoutManager();manager.addTextContainer(container) - let storage=NSTextStorage(string:text,attributes:[.font:NSFont.systemFont(ofSize:13),.foregroundColor:NSColor.white.withAlphaComponent(0.92)]) - storage.addLayoutManager(manager) - super.init(frame:.zero,textContainer:container) - isEditable=false;isSelectable=false;drawsBackground=false;textContainerInset = .zero - toolTip=text;setAccessibilityLabel(text) - manager.ensureLayout(for:container) - } - required init?(coder:NSCoder) {nil} - override var intrinsicContentSize:NSSize { - NSSize(width:484,height:ceil(layoutManager!.usedRect(for:textContainer!).height)) - } - var truncated:Bool { - let manager=layoutManager!;let range=manager.glyphRange(for:textContainer!) - guard range.length>0 else {return false} - return manager.truncatedGlyphRange(inLineFragmentForGlyphAt:NSMaxRange(range)-1).location != NSNotFound - } -} - -/// Design-only candidate. Its inputs are explicit synthetic facts, never a source/controller. -@MainActor private final class UsageDetailDraftView: NSView, WS2LeaseContent { - var onCancel: (() -> Void)? - var inputIsCurrent: () -> Bool = { false } - var interactionSize: NSSize { NSSize(width:520,height:ceil(body.fittingSize.height)+36) } - private let body=NSStackView() - private(set) var fields=[String:NSView]() - private(set) var windows=[[String:Any]]() - let modelName: String - let shared: Bool - init(reading: UsageReading?, contextUsed: Double?, model: String, shared: Bool, now: Double, calendar: Calendar) { - self.modelName=model;self.shared=shared - super.init(frame:NSRect(x:0,y:0,width:520,height:480)) - body.orientation = .vertical;body.alignment = .leading;body.spacing=12 - body.translatesAutoresizingMaskIntoConstraints=false;addSubview(body) - NSLayoutConstraint.activate([body.leadingAnchor.constraint(equalTo:leadingAnchor,constant:18),body.topAnchor.constraint(equalTo:topAnchor,constant:18),body.widthAnchor.constraint(equalToConstant:484)]) - func field(_ key:String,_ text:String,_ size:CGFloat=13,_ weight:NSFont.Weight = .regular,_ secondary:Bool=false,_ wrap:Bool=false) -> NSTextField { - let view=wrap ? NSTextField(wrappingLabelWithString:text) : NSTextField(labelWithString:text) - view.font = .systemFont(ofSize:size,weight:weight) - view.textColor = NSColor.white.withAlphaComponent(secondary ? 0.6 : 0.92) - view.toolTip=text;view.identifier=NSUserInterfaceItemIdentifier(key) - if wrap {view.maximumNumberOfLines=2;view.lineBreakMode = .byWordWrapping;view.preferredMaxLayoutWidth=484} - else {view.lineBreakMode = .byTruncatingTail} - view.setContentCompressionResistancePriority(.required,for:.vertical) - fields[key]=view;return view - } - func add(_ view:NSView) {body.addArrangedSubview(view);view.widthAnchor.constraint(equalToConstant:484).isActive=true} - add(field("title","用量",18,.semibold)) - add(field("source",shared ? "会话信息已隐藏" : "Codex · 演示账户",12,.regular,true)) - add(field("account-heading","账户额度",12,.semibold,true)) - let shown = shared ? [] : reading?.windows ?? [] - if shown.isEmpty {add(field("account-empty",shared ? "用量已隐藏" : "暂未读到用量",13,.regular,true))} - for (index,window) in shown.enumerated() { - guard let usage=UsageReading(windows:[window]).sessionUsage(now:now,calendar:calendar) else {continue} - let name: String - switch window.windowMinutes { - case 300?: name="五小时额度" - case 10080?: name="七天额度" - case let minutes?: name="账户额度 · \(minutes) 分钟" - case nil: name="账户额度" - } - let text=NSStackView();text.orientation = .vertical;text.alignment = .leading;text.spacing=3 - text.addArrangedSubview(field("window-\(index)-name",name,13,.medium)) - if let recovery=usage.recoveryDetail {text.addArrangedSubview(field("window-\(index)-recovery",recovery,12,.regular,true))} - let amount=field("window-\(index)-amount","剩 \(usage.leftPercent)%",22,.semibold) - amount.font = .monospacedDigitSystemFont(ofSize:22,weight:.semibold) - if usage.isLow {amount.textColor = .systemOrange} - amount.setContentCompressionResistancePriority(.required,for:.horizontal) - amount.setContentHuggingPriority(.required,for:.horizontal) - let spacer=NSView();spacer.setContentHuggingPriority(.init(1),for:.horizontal) - let row=NSStackView(views:[text,spacer,amount]);row.orientation = .horizontal;row.alignment = .centerY;row.spacing=16 - add(row) - windows.append(["name":name,"leftPercent":usage.leftPercent,"recovery":usage.recoveryDetail as Any? ?? NSNull(),"windowMinutes":window.windowMinutes as Any? ?? NSNull()]) - } - let line=NSView();line.wantsLayer=true;line.layer?.backgroundColor=NSColor.white.withAlphaComponent(0.14).cgColor - line.heightAnchor.constraint(equalToConstant:0.5).isActive=true;add(line) - add(field("session-heading","当前会话",12,.semibold,true)) - add(field("project",shared ? "编程会话" : "设计工作间",15,.medium)) - if !shared { - let label=UsageModelLabel(model);fields["model"]=label;add(label) - add(field("effort","思考:深入",12,.regular,true)) - // This is a synthetic context value for the candidate, not a newly qualified wire channel. - let snapshot=WS2SilentUsageSnapshot(selectedContext:contextUsed.map(WS2SilentUsageValue.provided) ?? .notProvided) - let number=WS2SilentUsageRead.writtenNumber(snapshot.value(for:.selectedContext)) - let context=number.map {"上下文占用 \(Int($0))%"} ?? "暂未读到上下文" - add(field("context",context,12,.regular,true)) - } - } - required init?(coder:NSCoder) {nil} - func revoke() {inputIsCurrent={false};body.removeFromSuperview();fields.removeAll()} -} - -@main enum UsageDetailDraftPreview { - enum Failure:Error {case check(String)} - @MainActor static func mainThreadNow()->Bool {Thread.isMainThread} - static func box(_ rect:NSRect)->[String:CGFloat] {["x":rect.minX,"y":rect.minY,"width":rect.width,"height":rect.height]} - @MainActor static func main() async { - _ = NSApplication.shared;NSApp.setActivationPolicy(.prohibited) - let out=URL(fileURLWithPath:CommandLine.arguments[1],isDirectory:true) - var ownWindows=[NSWindow]() - defer {ownWindows.forEach {$0.close()}} - do { - try FileManager.default.createDirectory(at:out,withIntermediateDirectories:true) - let now=1_800_000_000.0 - var calendar=Calendar(identifier:.gregorian);calendar.timeZone=TimeZone(secondsFromGMT:0)! - let normal=#"{"rateLimits":{"primary":{"usedPercent":5,"windowDurationMins":300,"resetsAt":1800003600},"secondary":{"usedPercent":93,"windowDurationMins":10080,"resetsAt":1800400000}}}"# - let expired=#"{"rateLimits":{"primary":{"usedPercent":95,"windowDurationMins":300,"resetsAt":1799999995},"secondary":{"usedPercent":60,"windowDurationMins":10080,"resetsAt":1800400000}}}"# - let unknownWindow=#"{"rateLimits":{"primary":{"usedPercent":12}}}"# - let zero=#"{"rateLimits":{"primary":{"usedPercent":100,"windowDurationMins":300,"resetsAt":1800003600}}}"# - var frames=[[String:Any]]() - for parent in [NSAppearance.Name.aqua,.darkAqua] { - for sample in ["normal","unknown","context-only","expired","long-model","unknown-window","zero","shared"] { - let raw=sample == "expired" ? expired : sample == "unknown-window" ? unknownWindow : sample == "zero" ? zero : normal - let wire=try JSONDecoder().decode(WireJSON.self,from:Data(raw.utf8)) - let reading=["unknown","context-only"].contains(sample) ? nil : UsageReading.parse(wire) - let model=sample == "long-model" ? "演示模型 — "+String(repeating:"跨领域推理与图像分析",count:12) : "演示模型" - let context:Double?=sample == "unknown" ? nil : 25 - let view=UsageDetailDraftView(reading:reading,contextUsed:context,model:model,shared:sample == "shared",now:now,calendar:calendar) - let size=view.interactionSize;guard size.height<=480,size.height>=68 else {throw Failure.check("candidate height")} - let bounds=NSRect(x:0,y:0,width:520,height:size.height+33.5) - let canvas=NotchCanvasView(frame:bounds) - let window=NSWindow(contentRect:bounds,styleMask:[.borderless],backing:.buffered,defer:false) - ownWindows.append(window);window.isReleasedWhenClosed=false;window.alphaValue=0 - window.appearance=NSAppearance(named:parent);window.contentView=canvas - window.setFrame(NSRect(x:-8000,y:-8000,width:bounds.width,height:bounds.height),display:false) - canvas.setAuthentication(view) - var completions=0 - let content=NotchCanvasView.Content(tiles:[],dots:0,dotsChanged:false,dotsY:0,compact:nil,compactSlots:nil,alert:nil,hint:nil,notchHeight:33.5) - canvas.morph(to:bounds,style:.init(cornerRadius:24,allCorners:false,fill:.black,border:0.5),content:content,spring:nil){completions += 1} - canvas.placeAuthentication(in:NSRect(origin:.zero,size:size));canvas.layoutSubtreeIfNeeded() - try await Task.sleep(nanoseconds:150_000_000);canvas.layoutSubtreeIfNeeded() - var fields=[[String:Any]]() - for (key,label) in view.fields.sorted(by:{$0.key<$1.key}) { - var item:[String:Any]=["id":key,"tooltip":label.toolTip as Any? ?? NSNull(),"frame":box(label.convert(label.bounds,to:view)),"dark":label.effectiveAppearance.bestMatch(from:[.aqua,.darkAqua]) == .darkAqua] - if let text=label as? NSTextField { - item["text"]=text.stringValue;item["font"]=text.font?.pointSize ?? 0 - item["maximumNumberOfLines"]=text.maximumNumberOfLines;item["wraps"]=(text.cell as? NSTextFieldCell)?.wraps ?? false - } else if let text=label as? UsageModelLabel { - item["text"]=text.fullText;item["font"]=13;item["maximumNumberOfLines"]=text.textContainer!.maximumNumberOfLines - item["renderer"]="TextKit";item["truncated"]=text.truncated - item["editable"]=text.isEditable;item["selectable"]=text.isSelectable - } - fields.append(item) - } - let name="\(parent == .aqua ? "light" : "dark")-\(sample)" - guard let bitmap=canvas.bitmapImageRepForCachingDisplay(in:bounds) else {throw Failure.check("bitmap")} - canvas.cacheDisplay(in:bounds,to:bitmap) - guard let png=bitmap.representation(using:.png,properties:[:]) else {throw Failure.check("png")} - try png.write(to:out.appendingPathComponent(name+".png")) - frames.append(["name":name,"sample":sample,"candidateOnly":true,"windows":view.windows,"fields":fields,"pageSize":["width":size.width,"height":size.height],"canvasSize":["width":bounds.width,"height":bounds.height],"visible":window.isVisible,"active":NSApp.isActive,"alpha":window.alphaValue,"completions":completions,"mainThread":mainThreadNow()]) - view.revoke();canvas.setAuthentication(nil);window.close() - } - } - let report:[String:Any]=["frames":frames,"candidateOnly":true,"productionIntegration":false,"sourceControllers":0,"actions":0,"networkReads":0,"globalInputEvents":0,"contextSourceQualified":false] - try JSONSerialization.data(withJSONObject:report,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("frames.json")) - print("PASS \(frames.count) own native usage detail candidates; no production integration/source/actions") - } catch {fputs("FAIL \(error)\n",stderr);exit(1)} - } -} diff --git a/tools/archive/design-qa-batch23-29/UsageQuantityPreview.swift b/tools/archive/design-qa-batch23-29/UsageQuantityPreview.swift deleted file mode 100644 index e3882ca7..00000000 --- a/tools/archive/design-qa-batch23-29/UsageQuantityPreview.swift +++ /dev/null @@ -1,140 +0,0 @@ -import Cocoa -import QuartzCore - -#if !swift(>=6.0) -#error("UsageQuantityPreview requires --swift6") -#endif - -/// Production M11 canvas/content, without any source/controller/window operation. -@main enum UsageQuantityPreview { - enum Failure: Error { case check(String) } - static func rect(_ r: NSRect) -> [String: Double] { ["x": r.minX, "y": r.minY, "width": r.width, "height": r.height] } - @MainActor static func main() async { - _ = NSApplication.shared; NSApp.setActivationPolicy(.prohibited) - let out = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - do { - try FileManager.default.createDirectory(at: out, withIntermediateDirectories: true) - var frames: [[String: Any]] = [] - for parent in [NSAppearance.Name.aqua, .darkAqua] { - for sample in ["normal", "low", "low-updated", "zero", "unknown", "expired", "weekly", "long-model", "waiting", "shared"] { - let windows = 0, ongoing = 1 - let now = 1_800_000_000.0 - let used = sample == "low-updated" ? 96 : (sample == "zero" ? 100 : (["low", "expired", "waiting"].contains(sample) ? 95 : 76)) - let reset = sample == "expired" ? Int(now)-5 : Int(now)+3600 - let payload: String = sample == "weekly" - ? #"{"rateLimits":{"primary":{"usedPercent":5,"windowDurationMins":300,"resetsAt":1800003600},"secondary":{"usedPercent":93,"windowDurationMins":10080,"resetsAt":1800400000}}}"# - : #"{"rateLimits":{"primary":{"usedPercent":\#(used),"windowDurationMins":300,"resetsAt":\#(reset)}}}"# - let json = try JSONDecoder().decode(WireJSON.self,from:Data(payload.utf8)) - let reading = sample == "unknown" ? nil : UsageReading.parse(json) - var calendar = Calendar(identifier:.gregorian); calendar.timeZone = TimeZone(secondsFromGMT:0)! - let model = sample == "long-model" ? "演示模型-" + String(repeating:"跨领域思考与图像分析",count:7) : "演示模型" - let usage = reading?.sessionUsage(now:now,model:model,effort:"深入",calendar:calendar) - var sessions = CodingSessionActivities() - sessions.apply(.init(id:"qa-usage",project:"设计工作间",cwd:"/qa/usage",assistant:"Codex",status:sample == "waiting" ? .waiting : .running),now:1) - let bloom = sessions.applyUsage(usage) - guard let spec = sessions.liveSpec else {throw Failure.check("actual session spec")} - let item = NotchActivity(id:"qa-usage",kind:.session,title:spec.title,subtitle:spec.subtitle,symbol:spec.symbol,startedAt:0,trailing:spec.trailing,sessionPhase:spec.phase) - guard let cell = NotchRow.ongoingCells(from:[item]).first else {throw Failure.check("actual row projection")} - let value = NotchTile.Ongoing(activityID:cell.activityID,subtitle:cell.subtitle,symbol:cell.symbol,phase:cell.phase,isPaused:cell.isPaused,quantity:cell.quantity,quantityText:cell.quantityText,spoken:cell.spoken,action:cell.action,closesRow:cell.closesRow,accessory:cell.accessory,isStale:cell.isStale,isEnded:cell.isEnded) - var tiles = [NotchTile(id:950,kind:.session,snapshot:nil,icon:nil,title:cell.title,waiting:cell.waiting,ongoing:value)] - if sample == "shared" {tiles[0] = tiles[0].sessionRedacted()} - var usageRecord: [String:Any] = ["leftPercent":usage?.leftPercent as Any? ?? NSNull(),"compactText":usage?.compactText as Any? ?? NSNull(),"recovery":usage?.recovery as Any? ?? NSNull(),"detail":usage?.detailText as Any? ?? NSNull(),"chosenWindowMinutes":reading?.tightest?.windowMinutes as Any? ?? NSNull(),"readingWindowCount":reading?.windows.count ?? 0,"phase":String(describing:spec.phase),"trailing":spec.trailing,"subtitle":spec.subtitle,"bloomDetail":bloom?.detail as Any? ?? NSNull()] - var presentedTiles = tiles - if sample == "low-updated" { - var priorSessions = sessions - let priorUsage = UsageReading(windows:[.init(usedPercent:95,windowMinutes:300,resetsAt:now+3600)]).sessionUsage(now:now,model:model,effort:"深入",calendar:calendar) - _ = priorSessions.applyUsage(priorUsage) - guard let priorSpec = priorSessions.liveSpec else {throw Failure.check("prior usage spec")} - let priorItem = NotchActivity(id:"qa-usage",kind:.session,title:priorSpec.title,subtitle:priorSpec.subtitle,symbol:priorSpec.symbol,startedAt:0,trailing:priorSpec.trailing,sessionPhase:priorSpec.phase) - guard let priorCell=NotchRow.ongoingCells(from:[priorItem]).first else {throw Failure.check("prior cell")} - presentedTiles[0].ongoing?.quantityText = priorCell.quantityText - usageRecord["samePhaseSignature"] = presentedTiles[0].ongoingSignature == tiles[0].ongoingSignature - } - let layout = NotchRow.layout(windows: windows, ongoing: ongoing) - let width = max(185 + 120, layout.islandWidth(minimum: 0)) - let height = 33.5 + NotchIsland.peninsulaContentHeight(142) - let bounds = NSRect(x: 0, y: 0, width: width, height: height) - let canvas = NotchCanvasView(frame: bounds) - let window = NSWindow(contentRect: bounds, styleMask: [.borderless], backing: .buffered, defer: false) - window.isReleasedWhenClosed = false; window.alphaValue = 0 - window.appearance = NSAppearance(named: parent); window.contentView = canvas - window.setFrame(NSRect(x: -8000, y: -8000, width: width, height: height), display: false) - let content = NotchCanvasView.Content(tiles: presentedTiles, dots: 0, dotsChanged: false, dotsY: 0, - compact: nil, compactSlots: nil, alert: nil, hint: nil, notchHeight: 33.5) - var completions = 0 - canvas.morph(to: bounds, style: .init(cornerRadius: 28, allCorners: false, fill: .black, border: 1), - content: content, spring: nil) { completions += 1 } - canvas.layoutSubtreeIfNeeded(); try await Task.sleep(nanoseconds: 150_000_000); canvas.layoutSubtreeIfNeeded() - if sample == "low-updated" { - func find(_ v: NSView) -> NotchTileView? { - if let tile=v as? NotchTileView {return tile} - return v.subviews.compactMap {find($0)}.first - } - guard let mounted=find(canvas) else {throw Failure.check("mounted usage")} - let identity=ObjectIdentifier(mounted) - usageRecord["beforeUpdateValue"] = mounted.accessibilityValue() as Any? ?? NSNull() - canvas.updateOngoingQuantity(id:950,quantity:value.quantity,text:value.quantityText) - usageRecord["retainedTileIdentity"] = find(canvas).map {ObjectIdentifier($0)==identity} ?? false - usageRecord["afterUpdateValue"] = mounted.accessibilityValue() as Any? ?? NSNull() - canvas.layoutSubtreeIfNeeded() - } - var actual: [[String: Any]] = [] - func visit(_ view: NSView) { - if let tile = view as? NotchTileView, !tile.isHiddenOrHasHiddenAncestor { - guard let payload = Mirror(reflecting: tile).children.first(where: { $0.label == "tile" })?.value as? NotchTile else { return } - var record: [String: Any] = ["id": tile.tileID, "frame": rect(tile.convert(tile.bounds, to: canvas)), - "title": payload.title, "kind": String(describing: payload.kind), "dark": tile.effectiveAppearance.bestMatch(from: [.aqua, .darkAqua]) == .darkAqua, - "accessibility": tile.accessibilityLabel() ?? ""] - if let value = payload.ongoing { - record["subtitle"] = value.subtitle; record["quantity"] = String(describing: value.quantity) - record["quantityText"] = value.quantityText as Any? ?? NSNull() - record["stale"] = value.isStale; record["ended"] = value.isEnded - record["shelf"] = value.shelfCount as Any? ?? NSNull() - record["drawing"] = String(describing:value.quantity.drawing) - record["paused"] = value.isPaused - record["accessibilityValue"] = tile.accessibilityValue() as Any? ?? NSNull() - record["tooltip"] = tile.toolTip as Any? ?? NSNull() - let font = NSFont.monospacedDigitSystemFont(ofSize:10.5,weight:.semibold) - let rounded = font.fontDescriptor.withDesign(.rounded).flatMap {NSFont(descriptor:$0,size:font.pointSize)} ?? font - record["naturalQuantityWidth"] = NSAttributedString(string:value.quantityText ?? "",attributes:[.font:rounded]).size().width - let reserve: CGFloat = value.quantity.drawing == .ring || value.quantity.drawing == .spinningArc ? CGFloat(NotchProgressPart.ringDiameter + NotchProgressPart.textGap) : 0 - let available = tile.bounds.width - 20 - reserve - let rendered = NotchTileView.quantityLabel(value.quantity,text:value.quantityText ?? "",font:rounded,availableWidth:available) - record["renderedQuantityText"] = rendered.string - record["renderedQuantityWidth"] = rendered.size().width - record["quantityAvailableWidth"] = available - if let part = Mirror(reflecting:tile).children.first(where:{$0.label == "part"})?.value as? NotchProgressPartLayers { - record["partHidden"] = part.root.isHidden - record["partFrame"] = rect(part.root.frame) - record["partQuantity"] = String(describing:part.model.quantity) - record["layerChildren"] = (part.root.sublayers ?? []).map {layer -> [String:Any] in - var entry: [String:Any] = ["hidden":layer.isHidden,"animations":layer.animationKeys() ?? []] - if let shape=layer as? CAShapeLayer {entry["strokeEnd"]=shape.strokeEnd} - return entry - } - } - } - actual.append(record) - } - view.subviews.forEach(visit) - } - visit(canvas) - guard actual.count == tiles.count, completions == 1, !window.isVisible, !NSApp.isActive, - window.alphaValue == 0, NSScreen.screens.allSatisfy({ !window.frame.intersects($0.frame) }) else { throw Failure.check("actual tiles/host") } - let name = "\(parent == .aqua ? "light" : "dark")-\(sample)" - guard let bitmap = canvas.bitmapImageRepForCachingDisplay(in: canvas.bounds) else { throw Failure.check("bitmap") } - canvas.cacheDisplay(in: canvas.bounds, to: bitmap) - guard let png = bitmap.representation(using: .png, properties: [:]) else { throw Failure.check("png") } - try png.write(to: out.appendingPathComponent(name + ".png")) - frames.append(["name": name, "sample": sample, "windows": windows, "ongoing": ongoing, - "width": width, "height": height, "tiles": actual, "usage":usageRecord,"completions": completions, - "canvasDark": canvas.effectiveAppearance.bestMatch(from: [.aqua, .darkAqua]) == .darkAqua, - "visible": window.isVisible, "active": NSApp.isActive, "alpha": window.alphaValue]) - window.contentView = nil; window.close() - } - } - try JSONSerialization.data(withJSONObject: ["frames": frames, "sourceControllers": 0, "actions": 0], options: [.prettyPrinted, .sortedKeys]).write(to: out.appendingPathComponent("frames.json")) - print("PASS \(frames.count) actual usage quantity static frames; no source/controllers/actions") - } catch { fputs("FAIL \(error)\n", stderr); exit(1) } - } -} diff --git a/tools/archive/design-qa-batch23-29/WelcomeStatePreview.swift b/tools/archive/design-qa-batch23-29/WelcomeStatePreview.swift deleted file mode 100644 index 673cb1a7..00000000 --- a/tools/archive/design-qa-batch23-29/WelcomeStatePreview.swift +++ /dev/null @@ -1,59 +0,0 @@ -import Cocoa - -/// Static production WelcomeView first two pages. No permission queries or preference writes. -@main enum WelcomeStatePreview { - enum Failure:Error {case check(String)} - @MainActor static func main() async { - _=NSApplication.shared;NSApp.setActivationPolicy(.prohibited) - let out=URL(fileURLWithPath:CommandLine.arguments[1],isDirectory:true) - do { - try FileManager.default.createDirectory(at:out,withIntermediateDirectories:true) - let before=UserDefaults.standard.object(forKey:SwitcherOrigin.defaultsKey) as? String - var frames:[[String:Any]]=[] - for appearance in [NSAppearance.Name.aqua,.darkAqua] { - let parent=appearance == .aqua ? "light":"dark" - let samples:[(String,Int,WelcomePreview)]=[ - ("intro-stuck",0,.init(moment:0.2,origin:.unanswered,notched:true)), - ("intro-hint",0,.init(moment:0.5,origin:.unanswered,notched:true)), - ("intro-no-notch",0,.init(moment:0.5,origin:.unanswered,notched:false)), - ("origin-unanswered",1,.init(moment:0,origin:.unanswered,notched:true)), - ("origin-windows",1,.init(moment:0,origin:.windows,notched:true)), - ("origin-ipad",1,.init(moment:0,origin:.ipad,notched:true)), - ("origin-mac",1,.init(moment:0,origin:.mac,notched:true))] - for (state,page,preview) in samples { - let window=NSWindow(contentRect:NSRect(x:-8000,y:-8000,width:WelcomeView.size.width,height:WelcomeView.size.height),styleMask:[.titled,.closable,.fullSizeContentView],backing:.buffered,defer:false) - window.isReleasedWhenClosed=false;window.alphaValue=0;window.appearance=NSAppearance(named:appearance) - window.setFrame(NSRect(origin:NSPoint(x:-8000,y:-8000),size:window.frame.size),display:false) - window.titleVisibility = .hidden;window.titlebarAppearsTransparent=true;window.tabbingMode = .disallowed - let view=WelcomeView(frame:NSRect(origin:.zero,size:WelcomeView.size)) - let background=NSVisualEffectView(frame:NSRect(origin:.zero,size:WelcomeView.size)) - background.material=SystemAppearancePolicy.usesOpaqueFallback(SystemAppearanceCapabilities.current) ? .contentBackground:.underPageBackground - background.blendingMode = .withinWindow - view.autoresizingMask=[.width,.height];background.addSubview(view) - window.contentView=background - defer {window.contentView=nil;window.close()} - var permissionQueries=0 - view.permissionsGranted={permissionQueries += 1;return false};view.show(page,preview:preview);view.refreshButtons() - view.layoutSubtreeIfNeeded() - try await Task.sleep(nanoseconds:200_000_000) - let outside=NSScreen.screens.allSatisfy({!$0.frame.intersects(window.frame)}) - guard !window.isVisible,!NSApp.isActive,window.alphaValue==0,outside,permissionQueries==0 else { - try JSONSerialization.data(withJSONObject:["state":state,"windowFrame":NSStringFromRect(window.frame),"visible":window.isVisible,"active":NSApp.isActive,"outside":outside,"permissionQueries":permissionQueries],options:[.prettyPrinted]).write(to:out.appendingPathComponent("failure.json")) - throw Failure.check("escaped or permission queried") - } - func nodes(_ v:NSView)->[NSView] {[v]+v.subviews.flatMap{nodes($0)}} - let visible=nodes(view).filter{!$0.isHiddenOrHasHiddenAncestor} - let labels=visible.compactMap{$0 as? NSTextField}.map{v->[String:Any] in let r=v.convert(v.bounds,to:view);return ["text":v.stringValue,"x":r.minX,"y":r.minY,"width":r.width,"height":r.height]} - guard let rep=background.bitmapImageRepForCachingDisplay(in:background.bounds) else {throw Failure.check("bitmap")} - background.cacheDisplay(in:background.bounds,to:rep) - guard let png=rep.representation(using:.png,properties:[:]) else {throw Failure.check("png")} - let name=parent+"-"+state+".png";try png.write(to:out.appendingPathComponent(name)) - frames.append(["image":name,"state":state,"page":view.index,"width":view.bounds.width,"height":view.bounds.height,"nextEnabled":view.next.isEnabled,"labels":labels,"visibleWindow":window.isVisible,"activeApplication":NSApp.isActive,"alpha":window.alphaValue,"syntheticStage":true,"preferencesWritten":false,"permissionQueries":permissionQueries]) - try JSONSerialization.data(withJSONObject:frames,options:[.prettyPrinted,.sortedKeys]).write(to:out.appendingPathComponent("frames.json")) - } - } - guard (UserDefaults.standard.object(forKey:SwitcherOrigin.defaultsKey) as? String)==before else {throw Failure.check("origin changed")} - print("Rendered \(frames.count) actual WelcomeView first-two-page static frames; origin unchanged, no permission calls.") - } catch {print("FAILED welcome preview: \(error)");exit(1)} - } -} diff --git a/tools/archive/design-qa-batch23-29/WindowBrowserGridTitlePreview.swift b/tools/archive/design-qa-batch23-29/WindowBrowserGridTitlePreview.swift deleted file mode 100644 index f93423b0..00000000 --- a/tools/archive/design-qa-batch23-29/WindowBrowserGridTitlePreview.swift +++ /dev/null @@ -1,78 +0,0 @@ -import Cocoa - -@main enum WindowBrowserGridTitlePreview { - enum Failure: Error { case check(String) } - @MainActor static func main() async { - _ = NSApplication.shared; NSApp.setActivationPolicy(.prohibited) - let out = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - do { - try FileManager.default.createDirectory(at: out, withIntermediateDirectories: true) - let pid = pid_t(Int32.max) - guard NSRunningApplication(processIdentifier: pid) == nil else { throw Failure.check("synthetic pid") } - let titles = [("short", "季度报告"), ("cjk", "季度报告 — " + String(repeating: "项目讨论与修改记录", count: 12)), - ("ascii", String(repeating: "QuarterlyReport_Review_", count: 12)), - ("emoji", "周末 — " + String(repeating: "👩🏽‍💻🇹🇼👨‍👩‍👧‍👦", count: 12))] - var frames: [[String: Any]] = [] - for parent in [NSAppearance.Name.aqua, .darkAqua] { - for style in [WindowBrowserAppearanceStyle.paper, .system] { - for derived in [false, true] { - for (sample, title) in titles { - let record = WindowRecord(key: .init(application: .init(pid: pid, generation: 1), originalWindowID: 1, windowGeneration: 1), - bundleIdentifier: "qa.synthetic.grid-title", appName: "样件应用", title: title, logicalFrame: nil, - placementSource: .liveDiscovery, systemVisibility: .onScreen, shadeState: .normal, pinState: .none, - capabilities: .discoveredWindow, confidence: .confirmed, metadataRevision: 1, - isMinimized: false, isOnScreen: true, isFoldedOffscreen: false, isManaged: false) - let bounds = NSRect(x: 0, y: 0, width: 320, height: 280) - let view = WindowBrowserContentView(frame: bounds) - view.appearance = NSAppearance(named: parent) - #if WINDOWSHADE_SDK_HAS_GLASS - let supportsGlass = true - #else - let supportsGlass = false - #endif - view.materialOverride = (style, .init(supportsGlass: supportsGlass, reduceTransparency: false, increaseContrast: false, reduceMotion: true)) - if derived { - view.params = WindowBrowserGeometry.derivedParams(base: .standard, titles: [title], - hasStatus: false, anyCardStatus: false, mode: .dock, windowCount: 1, dockEdge: .bottom) - } - let window = NSWindow(contentRect: bounds, styleMask: [.borderless], backing: .buffered, defer: false) - window.isReleasedWhenClosed = false; window.alphaValue = 0; window.contentView = view - window.setFrame(NSRect(x: -8000, y: -8000, width: 320, height: 280), display: false) - view.update(mode: .dock, records: [record], selection: record.key, style: .grid, busyKeys: [], status: "") - view.layoutSubtreeIfNeeded(); try await Task.sleep(nanoseconds: 150_000_000); view.layoutSubtreeIfNeeded() - var titleField: NSTextField? - var cardView: WindowBrowserCardView? - func visit(_ v: NSView) { - if let card = v as? WindowBrowserCardView, card.titleForTesting == title { - cardView = card - titleField = card.subviews.compactMap { $0 as? NSTextField }.first { $0.stringValue == title } - } - v.subviews.forEach(visit) - } - visit(view) - guard let label = titleField, let card = cardView, let font = label.font, - !window.isVisible, !NSApp.isActive, window.alphaValue == 0, - NSScreen.screens.allSatisfy({ !window.frame.intersects($0.frame) }) else { throw Failure.check("card/host") } - let name = "\(parent == .aqua ? "light" : "dark")-\(style.rawValue)-\(sample)\(derived ? "-derived" : "")" - guard let bitmap = view.bitmapImageRepForCachingDisplay(in: bounds) else { throw Failure.check("bitmap") } - view.cacheDisplay(in: bounds, to: bitmap) - guard let png = bitmap.representation(using: .png, properties: [:]) else { throw Failure.check("png") } - try png.write(to: out.appendingPathComponent(name + ".png")) - frames.append(["name": name, "sample": sample, "derivedParams": derived, "title": label.stringValue, "tooltip": label.toolTip ?? "", - "wraps": label.cell?.wraps ?? false, "maxLines": label.maximumNumberOfLines, - "lastLineTruncates": label.cell?.truncatesLastVisibleLine ?? false, "breakMode": label.lineBreakMode.rawValue, - "font": font.pointSize, "lineHeight": WindowBrowserTypography.lineHeight(font), - "titleFrame": ["x": label.frame.minX, "y": label.frame.minY, "width": label.frame.width, "height": label.frame.height], - "cardBounds": ["width": card.bounds.width, "height": card.bounds.height], - "material": view.materialKind.rawValue, "insideGlass": view.contentIsInsideGlassForDiagnostics, - "visible": window.isVisible, "active": NSApp.isActive, "alpha": window.alphaValue]) - window.contentView = nil; window.close() - } - } - } - } - try JSONSerialization.data(withJSONObject: ["frames": frames, "controllerStarted": false, "actions": 0], options: [.prettyPrinted, .sortedKeys]).write(to: out.appendingPathComponent("frames.json")) - print("PASS 32 actual grid title frames, 4 inputs/default+derived params, no controller or actions") - } catch { fputs("FAIL \(error)\n", stderr); exit(1) } - } -} diff --git a/tools/archive/design-qa-batch23-29/WindowBrowserImagePreview.swift b/tools/archive/design-qa-batch23-29/WindowBrowserImagePreview.swift deleted file mode 100644 index 4f3b6f0e..00000000 --- a/tools/archive/design-qa-batch23-29/WindowBrowserImagePreview.swift +++ /dev/null @@ -1,126 +0,0 @@ -import Cocoa -import ImageIO - -/// Actual thumbnail consumer; only owned diagnostic PNGs, no real window discovery or capture. -@main enum WindowBrowserImagePreview { - enum Failure: Error { case check(String) } - @MainActor static func box(_ r: NSRect) -> [String: CGFloat] { ["x":r.minX,"y":r.minY,"width":r.width,"height":r.height] } - @MainActor static func main() async throws { - _ = NSApplication.shared; NSApp.setActivationPolicy(.prohibited) - let out = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - let fixtureRoot = URL(fileURLWithPath: FileManager.default.currentDirectoryPath).appendingPathComponent(".build/design-window-images/image-fixtures", isDirectory: true) - try FileManager.default.createDirectory(at: out, withIntermediateDirectories: true) - guard let manifest = try JSONSerialization.jsonObject(with: Data(contentsOf: fixtureRoot.appendingPathComponent("manifest.json"))) as? [String: Any], - let entries = manifest["images"] as? [[String: Any]], entries.count == 5 else { throw Failure.check("own image manifest") } - let pid = pid_t(Int32.max) - guard NSRunningApplication(processIdentifier: pid) == nil else { throw Failure.check("synthetic pid") } - var frames = [[String: Any]]() - for entry in entries { - guard let name = entry["name"] as? String, let file = entry["file"] as? String, - file == URL(fileURLWithPath: file).lastPathComponent, - let w = entry["width"] as? Int, let h = entry["height"] as? Int, - let source = CGImageSourceCreateWithURL(fixtureRoot.appendingPathComponent(file) as CFURL, nil), - let image = CGImageSourceCreateImageAtIndex(source, 0, nil), image.width == w, image.height == h else { throw Failure.check("owned ImageIO decode") } - for parent in [NSAppearance.Name.aqua, .darkAqua] { - for material in [WindowBrowserAppearanceStyle.paper, .system] { - for hovered in [false, true] { - for busy in [false, true] { - let title = "设计评审 — " + String(repeating: "当前窗口的长标题与图像比例", count: 8) - let record = WindowRecord(key: .init(application: .init(pid: pid, generation: 17), originalWindowID: 17, windowGeneration: 1), - bundleIdentifier: "qa.synthetic.images", appName: "样件应用", title: title, logicalFrame: nil, - placementSource: .liveDiscovery, systemVisibility: .onScreen, shadeState: .normal, pinState: .none, - capabilities: .discoveredWindow, confidence: .confirmed, metadataRevision: 1, isMinimized: false, isOnScreen: true, isFoldedOffscreen: false, isManaged: false) - let bounds = NSRect(x: 0, y: 0, width: 320, height: 280) - let view = WindowBrowserContentView(frame: bounds) - view.appearance = NSAppearance(named: parent) - #if WINDOWSHADE_SDK_HAS_GLASS - let supportsGlass = true - #else - let supportsGlass = false - #endif - view.materialOverride = (material, .init(supportsGlass: supportsGlass, reduceTransparency: false, increaseContrast: false, reduceMotion: true)) - view.params = WindowBrowserGeometry.derivedParams(base: .standard, titles: [title], hasStatus: false, anyCardStatus: false, mode: .dock, windowCount: 1, dockEdge: .bottom) - let window = NSWindow(contentRect: bounds, styleMask: [.borderless], backing: .buffered, defer: false) - window.isReleasedWhenClosed = false; window.alphaValue = 0; window.contentView = view - window.setFrame(NSRect(x: -8000, y: -8000, width: 320, height: 280), display: false) - view.update(mode: .dock, records: [record], selection: nil, style: .grid, busyKeys: busy ? [record.key] : [], status: "") - view.applyThumbnail(image, for: record.key, note: "自造比例诊断图") - view.layoutSubtreeIfNeeded(); try await Task.sleep(nanoseconds: 300_000_000); view.layoutSubtreeIfNeeded() - var card: WindowBrowserCardView? - func visit(_ v: NSView) { - if let found = v as? WindowBrowserCardView, found.windowKey == record.key { card = found } - v.subviews.forEach(visit) - } - visit(view) - guard let card, let geometry = view.debugFirstCardFrames(), view.hasThumbnailImage(for: record.key), - let bar = card.subviews.first(where: { $0 is WindowBrowserActionBar }) as? WindowBrowserActionBar, - let titleField = card.subviews.compactMap({ $0 as? NSTextField }).first(where: { $0.stringValue == title }), - !NSApp.isActive, !window.isVisible, NSScreen.screens.allSatisfy({ !window.frame.intersects($0.frame) }) else { throw Failure.check("actual image card / safe host") } - var imageViews = [NSImageView]() - func images(_ v: NSView) { if let imageView = v as? NSImageView { imageViews.append(imageView) }; v.subviews.forEach(images) } - images(card.thumbnailHost) - guard let thumbnail = imageViews.first(where: { $0.image != nil }) else { throw Failure.check("actual native image") } - var measurements = geometry - var localHoverCallbacks = 0 - view.onHoverChanged = { key, state in - if key == record.key && state { localHoverCallbacks += 1 } - } - if hovered { - guard let event = NSEvent.enterExitEvent(with: .mouseEntered, location: .zero, modifierFlags: [], timestamp: 0, windowNumber: 0, context: nil, eventNumber: 0, trackingNumber: 0, userData: nil) else { throw Failure.check("local hover event") } - card.mouseEntered(with: event) // Receiver only: never posted to NSApp or the system. - view.layoutSubtreeIfNeeded(); try await Task.sleep(nanoseconds: 150_000_000) - measurements = view.debugFirstCardFrames() ?? geometry - } - let label = "\(parent == .aqua ? "light" : "dark")-\(material.rawValue)-\(name)-\(hovered ? "hovered" : "plain")" + (busy ? "-busy" : "") - guard let bitmap = view.bitmapImageRepForCachingDisplay(in: bounds) else { throw Failure.check("bitmap") } - view.cacheDisplay(in: bounds, to: bitmap) - guard let png = bitmap.representation(using: .png, properties: [:]) else { throw Failure.check("PNG") } - try png.write(to: out.appendingPathComponent(label + ".png")) - func currentButtons() -> [[String: Any]] { bar.subviews.compactMap { child in - guard let button = child as? NSButton else { return nil } - return ["id":button.identifier?.rawValue ?? "", "hidden":button.isHidden, "enabled":button.isEnabled, "frame":box(button.frame), "more":button.toolTip?.hasPrefix("更多操作") ?? false] - } - } - let buttonStates = currentButtons() - frames.append(["busy":bar.isBusy, "expectedBusy":busy, "buttons":buttonStates, "name": label, "sample": name, "file": file, "imageWidth": w, "imageHeight": h, "selected": card.isSelected, - "expectedHovered": hovered, "hovered": card.isHovering, "localHoverCallbacks": localHoverCallbacks, "globalInputEvents": 0, "material": material.rawValue, "parent": parent.rawValue, "actions": 0, - "visible": window.isVisible, "active": NSApp.isActive, "alpha": window.alphaValue, - "card": box(measurements.bounds), "picture": box(measurements.thumbnailHostFrame), "title": box(measurements.titleFrame), "bar": box(measurements.actionFrame), - "barHidden": bar.isHiddenOrHasHiddenAncestor, "barRequiredWidth": bar.requiredWidth, - "titleText": titleField.stringValue, "tooltip": titleField.toolTip ?? "", "wraps": titleField.cell?.wraps ?? false, - "thumbnailBounds": box(thumbnail.bounds), "thumbnailFrame": box(thumbnail.frame), "imageScaling": thumbnail.imageScaling.rawValue, - "imagePresent": thumbnail.image != nil, "materialHost": view.materialKind.rawValue, "width": bounds.width, "height": bounds.height]) - if name == "portrait9x16", parent == .aqua, material == .paper, hovered, !busy { - let identity = view.cardInstanceIdentifier(for: record.key) - for target in ["landscape16x9", "portrait9x16"] { - guard let item = entries.first(where: { $0["name"] as? String == target }), let path = item["file"] as? String, - let src = CGImageSourceCreateWithURL(fixtureRoot.appendingPathComponent(path) as CFURL, nil), - let replacement = CGImageSourceCreateImageAtIndex(src, 0, nil) else { throw Failure.check("own reuse image") } - view.applyThumbnail(replacement, for: record.key, note: "自造比例诊断图") - view.layoutSubtreeIfNeeded(); try await Task.sleep(nanoseconds: 150_000_000) - guard identity == view.cardInstanceIdentifier(for: record.key), let m = view.debugFirstCardFrames(), - view.cachedThumbnailImage(for: record.key)?.width == replacement.width else { throw Failure.check("same card image change") } - let reuseName = "light-paper-reuse-" + target - guard let rep = view.bitmapImageRepForCachingDisplay(in: bounds) else { throw Failure.check("reuse bitmap") } - view.cacheDisplay(in: bounds, to: rep) - guard let bytes = rep.representation(using: .png, properties: [:]) else { throw Failure.check("reuse PNG") } - try bytes.write(to: out.appendingPathComponent(reuseName + ".png")) - var f = frames.last! // Fields below are re-read from the same actual card after image change. - f["name"] = reuseName; f["sample"] = target; f["file"] = path; f["reuseStage"] = target; f["sameCard"] = true - f["imageWidth"] = replacement.width; f["imageHeight"] = replacement.height - f["card"] = box(m.bounds); f["picture"] = box(m.thumbnailHostFrame); f["title"] = box(m.titleFrame); f["bar"] = box(m.actionFrame) - f["barRequiredWidth"] = bar.requiredWidth; f["buttons"] = currentButtons() - f["thumbnailBounds"] = box(thumbnail.bounds); f["thumbnailFrame"] = box(thumbnail.frame) - frames.append(f) - } - } - window.close() - } - } - } - } - } - try JSONSerialization.data(withJSONObject: ["frames":frames,"realSources":0,"syntheticImages":5], options:[.prettyPrinted,.sortedKeys]).write(to: out.appendingPathComponent("frames.json")) - print("PASS \(frames.count) actual ImageIO/ContentView thumbnail frames; synthetic pixels only, actions0") - } -} diff --git a/tools/archive/design-qa-batch23-29/WindowBrowserStatePreview.swift b/tools/archive/design-qa-batch23-29/WindowBrowserStatePreview.swift deleted file mode 100644 index ca67370f..00000000 --- a/tools/archive/design-qa-batch23-29/WindowBrowserStatePreview.swift +++ /dev/null @@ -1,113 +0,0 @@ -import Cocoa - -/// Production content/material hosts with value-only records. No controller or panel startup. -@main enum WindowBrowserStatePreview { - enum Failure: Error { case check(String) } - struct Sample { let name: String; let mode: WindowBrowserPanelMode; let style: WindowBrowserDisplayStyle - let width: CGFloat; let height: CGFloat; let count: Int; let busy: Bool; let permission: Bool } - static func rect(_ r: NSRect) -> [String: Double] { - ["x": r.minX, "y": r.minY, "width": r.width, "height": r.height] - } - @MainActor static func main() async { - _ = NSApplication.shared; NSApp.setActivationPolicy(.prohibited) - let out = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - do { - try FileManager.default.createDirectory(at: out, withIntermediateDirectories: true) - let pid = pid_t(Int32.max) - guard NSRunningApplication(processIdentifier: pid) == nil else { throw Failure.check("synthetic PID occupied") } - let samples: [Sample] = [ - .init(name: "empty", mode: .keyboard, style: .list, width: 456, height: 300, count: 0, busy: false, permission: true), - .init(name: "no-match", mode: .keyboard, style: .list, width: 456, height: 300, count: 0, busy: false, permission: true), - .init(name: "one", mode: .dock, style: .grid, width: 320, height: 278, count: 1, busy: false, permission: true), - .init(name: "many", mode: .dock, style: .grid, width: 660, height: 480, count: 6, busy: false, permission: true), - .init(name: "long-list", mode: .keyboard, style: .list, width: 540, height: 420, count: 7, busy: false, permission: true), - .init(name: "busy-list", mode: .keyboard, style: .list, width: 540, height: 420, count: 7, busy: true, permission: true), - .init(name: "narrow-list", mode: .keyboard, style: .list, width: 320, height: 360, count: 3, busy: false, permission: true), - .init(name: "busy-unknown", mode: .keyboard, style: .grid, width: 660, height: 430, count: 3, busy: true, permission: true), - .init(name: "no-permission", mode: .keyboard, style: .list, width: 540, height: 420, count: 3, busy: false, permission: false) - ] - var frames: [[String: Any]] = [] - for parent in [NSAppearance.Name.aqua, .darkAqua] { - for material in [WindowBrowserAppearanceStyle.paper, .system] { - for sample in samples { - let records: [WindowRecord] = (0.. 20, (f["name"], r["id"], "height")) - if previous is not None: - check(r["y"] >= previous - 0.5, (f["name"], r["id"], "y")) - previous = r["y"] + r["height"] - body = [x for x in r["fields"] if x["role"] == "privacy-detail-body"] - check(bool(body) == f["expanded"], (f["name"], r["id"], "body presence")) - for b in body: - check(b["height"] + 1 >= b["neededHeight"], (f["name"], r["id"], "body height")) - check(b["x"] >= 0 and b["x"] + b["width"] <= r["width"] + 2.1, (f["name"], r["id"], "body bounds")) - # 登记列对齐:每个登记行的标题/副题列同 x(focus-preferences 不再多 38 点) - label_x = [] - for r in f["rows"]: - heads = [x["x"] for x in r["fields"] if x["role"] == "header"] - check(heads, (f["name"], r["id"], "header fields")) - if heads: - label_x.append(min(heads)) - spread = max(label_x) - min(label_x) - check(spread < 0.5, (f["name"], "header x spread", spread)) - if f["expanded"]: - details = [b["x"] for r in f["rows"] for b in r["fields"] if b["role"] == "privacy-detail-body"] - check(details and max(details) - min(details) < 0.5, (f["name"], "detail x spread", - (max(details) - min(details)) if details else None)) - switches = [c for c in f["controls"] if c["kind"] == "switch"] - check(len(switches) == 9, (f["name"], "switches", len(switches))) - check(all(c["mockTarget"] for c in f["controls"]), (f["name"], "mock targets")) - else: - check(not any(c["kind"] == "switch" for c in f["controls"]), (f["name"], "collapsed switches")) - check(any(c["kind"] == "grant" for c in f["controls"]), (f["name"], "grant control")) - -# ---------- 动效:结构 ---------- -records = {r["stage"]: r for r in MOTION["records"]} -check(MOTION["overrideRestored"] and MOTION["cacheOnly"] and not MOTION["compositorAccepted"], "motion flags") -check(MOTION["realSources"] == 0 and MOTION["globalInputEvents"] == 0 and not MOTION["productEntry"], "motion isolation") -check(MOTION["swiftLanguageVersion"] == 6 and MOTION["mainThread"], "motion swift6") -for r in MOTION["records"]: - check(r["mainThread"] and r["delegateNil"] and not r["visible"] and not r["active"] and r["alpha"] == 0, - (r["stage"], "host")) - check(r["cacheOnly"], (r["stage"], "cacheOnly")) - -AXES = {"position.x", "position.y", "bounds.size.width", "bounds.size.height", "cornerRadius"} -composite = {"position", "bounds.size"} - - -def anims(stage, kind=None): - out = [] - for a in records[stage]["animations"]: - if kind and a["class"] != kind: - continue - out.append(a) - return out - - -def by_axis(stage, cls="CASpringAnimation"): - return {a["keyPath"]: a for a in anims(stage, cls) if a["keyPath"] in AXES} - - -def rk4_state(m, k, c, x0, v0, t, step=1.0 / 4000): - """独立数值积分 m·x'' + c·x' + k·x = 0。""" - def accel(x, v): - return (-c * v - k * x) / m - x, v, now = x0, v0, 0.0 - while now < t: - h = min(step, t - now) - k1x, k1v = v, accel(x, v) - k2x, k2v = v + h / 2 * k1v, accel(x + h / 2 * k1x, v + h / 2 * k1v) - k3x, k3v = v + h / 2 * k2v, accel(x + h / 2 * k2x, v + h / 2 * k2v) - k4x, k4v = v + h * k3v, accel(x + h * k3x, v + h * k3v) - x += h / 6 * (k1x + 2 * k2x + 2 * k3x + k4x) - v += h / 6 * (k1v + 2 * k2v + 2 * k3v + k4v) - now += h - return x, v - - -def axis_value(box, axis, radius): - if axis == "position.x": - return box["x"] + box["width"] / 2 - if axis == "position.y": - return box["y"] + box["height"] / 2 - if axis == "bounds.size.width": - return box["width"] - if axis == "bounds.size.height": - return box["height"] - return radius - - -CONTINUITY = [ - ("open-old", "open-new"), - ("reverse-old", "reverse-new"), - ("reopen-old", "reopen-new"), - ("width-old", "width-new"), - ("width-reverse-old", "width-reverse-new"), - ("rich-exit-old", "rich-exit-new"), - ("cancel-reopen-old", "cancel-reopen-new"), - ("kick-old", "kick-new"), -] -for mode in ["regular"]: - for old_stage, new_stage in CONTINUITY: - old_key, new_key = f"{mode}-{old_stage}", f"{mode}-{new_stage}" - if old_key not in records or new_key not in records: - check(False, f"missing stage {old_key} or {new_key}") - continue - old_springs = {a["keyPath"]: a for a in records[old_key]["animations"] if a["keyPath"] in AXES} - new_all = {a["keyPath"]: a for a in records[new_key]["animations"] if a["keyPath"] in AXES} - check(not any(a["keyPath"] in composite for a in records[new_key]["animations"]), - (new_key, "composite keyPath")) - for axis, new in new_all.items(): - old = old_springs.get(axis) - if old is None or old["class"] != "CASpringAnimation": - continue - elapsed = new["beginTime"] - old["beginTime"] - check(0 < elapsed < old["duration"], (new_key, axis, "elapsed", round(elapsed, 4), old["duration"])) - if not (0 < elapsed < old["duration"]): - continue - x_t, v_t = rk4_state(old["mass"], old["stiffness"], old["damping"], - old["from"], -old["velocity"] * old["from"], elapsed) - if new["class"] == "CASpringAnimation": - f_new, nv_new = new["from"], new["velocity"] - v_new = -nv_new * f_new - tol_v = max(2.0, abs(v_t) * 0.05) - check(abs(v_new - v_t) <= tol_v, (new_key, axis, "velocity continuity", - round(v_new, 3), round(v_t, 3))) - old_box, new_box = records[old_key]["model"], records[new_key]["model"] - old_r, new_r = records[old_key]["modelRadius"], records[new_key]["modelRadius"] - expected_from = x_t + (axis_value(old_box, axis, old_r) - axis_value(new_box, axis, new_r)) - # 起点由呈现层读数换算:读位置到 beginTime 生效之间有约 4ms 的读取-挂载偏差 - # (实测 diff/|v_t| ≤ 4.0ms),所以容差随该轴瞬时速度放宽;差一个量级即真实缺陷。 - tol_f = max(0.75, abs(v_t) * 0.006) - check(abs(f_new - expected_from) <= tol_f, (new_key, axis, "position continuity", - round(f_new, 3), round(expected_from, 3))) - check(v_new == 0 or v_t == 0 or (v_new * v_t > 0), (new_key, axis, "direction sign")) - else: - values = new.get("values") - times = new.get("keyTimes") - check(isinstance(values, list) and isinstance(times, list) and len(values) == len(times), - (new_key, axis, "kick keyframes")) - if isinstance(values, list) and isinstance(times, list) and len(values) >= 2: - check(times == sorted(times) and abs(times[0]) < 1e-9 and abs(times[-1] - 1) < 1e-9, - (new_key, axis, "kick times")) - # 起点就是这跳的起点位移(目标取整到 0.05 点,所以接近 0),收尾钉回 0。 - check(abs(values[0]) <= 0.1, (new_key, axis, "kick start", values[0])) - check(abs(values[-1]) < 1e-6, (new_key, axis, "kick end")) - check(all(math.isfinite(v) for v in values), (new_key, axis, "kick finite")) - check(new["duration"] <= 1.3, (new_key, axis, "kick duration")) - # 惯性延续:kick 是同一物理弹簧从(此刻位移, 旧弹簧此刻速度)积分出来的 - # 解析采样,抽稀后首段斜率不再等于瞬时速度(段长 2/120s),所以做全程曲线对照。 - # 新弹簧系数取同一条 morph 里仍是 CASpringAnimation 的轴(同参数); - # 只有在没有弹簧轴可比时才退回旧弹簧系数(同一 token 时参数相同)。 - ref = next((a for a in records[new_key]["animations"] - if a["keyPath"] in AXES and a["class"] == "CASpringAnimation"), None) - if ref is None and old is not None: - ref = old - check(ref is not None, (new_key, axis, "kick reference spring")) - if ref is not None: - worst = 0.0 - for kt, kv in zip(times, values): - num, _ = rk4_state(ref["mass"], ref["stiffness"], ref["damping"], - values[0], v_t, kt * new["duration"]) - worst = max(worst, abs(num - kv)) - scale = max(1.0, max(abs(v) for v in values)) - check(worst <= max(0.5, 0.03 * scale), (new_key, axis, "kick curve RK4", round(worst, 4))) - check((values[1] - values[0]) * v_t > 0, (new_key, axis, "kick first direction", - round(values[1] - values[0], 4), round(v_t, 3))) - target = axis_value(records[new_key]["model"], axis, records[new_key]["modelRadius"]) - if axis in ("bounds.size.width", "bounds.size.height", "cornerRadius"): - check(min(values) + target >= -0.01, (new_key, axis, "kick floor")) - -# 停稳后再起跳:没有活跃旧动画 → 归一化初速度为调用者的(0),不复用幽灵速度。 -wr_new = by_axis("regular-width-reverse-new") -check(wr_new, "width-reverse springs") -for axis, a in wr_new.items(): - check(a["velocity"] == 0, ("settled retarget keeps caller velocity", axis, a["velocity"])) - -# 反向:配置的物理速度方向必须接着旧的走(25 批的缺陷就是这里取错号) -rev_old = by_axis("regular-reverse-old") -rev_new = by_axis("regular-reverse-new") -check("position.y" in rev_old and "position.y" in rev_new, "reverse position.y springs") -if "position.y" in rev_old and "position.y" in rev_new: - o, n = rev_old["position.y"], rev_new["position.y"] - elapsed = n["beginTime"] - o["beginTime"] - _, v_t = rk4_state(o["mass"], o["stiffness"], o["damping"], o["from"], -o["velocity"] * o["from"], elapsed) - v_new = -n["velocity"] * n["from"] - check(v_t < 0 and v_new < 0, ("reverse continues toward expanded", round(v_t, 3), round(v_new, 3))) - check(n["velocity"] < 0, ("reverse normalized velocity negative", n["velocity"])) - -# 各轴使用自己的剩余行程:只改宽度的那一跳里,宽度轴的余程与其它轴不成比例,归一化速度 -# 必须跟着不同(position.y/height/radius 余程同比例,三者相同是数学必然;宽度单独一个值 -# 才证明逐轴换算)。(反向那一跳四轴 excursion 同比例,四值相同是正确结果,不检查差异。) -w_new = by_axis("regular-width-new") -check(all(a in w_new for a in ["position.y", "bounds.size.width", "bounds.size.height", "cornerRadius"]), - ("width retarget four axes", sorted(w_new))) -if "bounds.size.width" in w_new and "position.y" in w_new: - nv_w = w_new["bounds.size.width"]["velocity"] - nv_y = w_new["position.y"]["velocity"] - check(abs(nv_w - nv_y) > 1.0, ("width axis own travel", nv_w, nv_y)) - -# kick:近零行程只剩惯性 → 关键帧;轴取到 keyframe 才算走对路 -kick_springs = by_axis("regular-kick-new") -kick_frames = {a["keyPath"]: a for a in anims("regular-kick-new", "CAKeyframeAnimation") if a["keyPath"] in AXES} -check(bool(kick_frames), ("kick uses keyframes", sorted(kick_frames))) -check("bounds.size.width" in kick_frames or "bounds.size.height" in kick_frames, - ("kick on a size axis", sorted(kick_frames))) - -# 减少动态效果:全无形状动画 -for r in MOTION["records"]: - if r["reduced"]: - check(not r["animations"], (r["stage"], "reduced animations")) - -# 取消:旧退场的回调不重放;新内容不被清掉。回调用聚合计数核对——完成回调在动画落定后才 -# 触发,单条记录的 counts 快照可能早于落定(regular-final-closed 记录时还没到)。 -final = MOTION["counts"] -check(final.get("regular-cancel-close", 0) == 0, ("expired cancel-close callback", final.get("regular-cancel-close"))) -expected_one_counts = ["regular-initial", "regular-open", "regular-reverse", "regular-reopen", "regular-width", - "regular-width-reverse", "regular-pre-compact", "regular-rich-exit-open", "regular-rich-exit", - "regular-kick-open", "regular-kick", "regular-cancel-open", "regular-cancel-reopen", - "regular-final-close", "reduced-rm-open", "reduced-rm-close"] -for key in expected_one_counts: - check(final.get(key, 0) == 1, ("callback count", key, final.get(key))) -check(all(v <= 1 for v in final.values()), ("no double callbacks", final)) -reopen_new = records["regular-cancel-reopen-new"] -reopen_settled = records["regular-cancel-reopen-settled"] -check(reopen_new["currentIdentity"] != None and reopen_new["currentIdentity"] == reopen_settled["currentIdentity"], - "cancel keeps new content") -check(reopen_settled["tileIDs"] == [{"id": 901}], ("reopen tiles", reopen_settled["tileIDs"])) -check(reopen_settled["pendingExit"] is False, "pendingExit cleared") - -# 富内容延迟:形状实际开始比呼叫晚一拍(0.10 淡出 + 0.04) -rich_call = records["regular-rich-exit-old"]["time"] -rich_new = records["regular-rich-exit-new"] -starts = [a["beginTime"] for a in rich_new["animations"] if a["keyPath"] in AXES] -check(starts and min(starts) - rich_call > 0.12, ("rich delayed start", (min(starts) - rich_call) if starts else None)) - -# 轨迹:分段解析预测对照实测呈现层。目标切换前按旧弹簧解、切换后按新动画解(弹簧积分解 -# 或 kick 关键帧插值),逐样本比对中点高度。这是位置/速度连续(含反向、再次改向、富内容 -# 延迟起点、kick 惯性)的直接实机证据:任何方向跳变都会让预测与实测分离。 -FLIGHTS = [ - ("regular-open-flight", "regular-open-old", "regular-open-new"), - ("regular-reverse-flight", "regular-reverse-old", "regular-reverse-new"), - ("regular-reopen-flight", "regular-reopen-old", "regular-reopen-new"), - ("regular-width-flight", "regular-width-old", "regular-width-new"), - ("regular-rich-exit-gap", "regular-rich-exit-old", "regular-rich-exit-new"), - ("regular-kick-flight", "regular-kick-old", "regular-kick-new"), -] - - -def keyframe_value(a, t): - vals, kt, dur = a["values"], a["keyTimes"], a["duration"] - if t <= 0: - return vals[0] - if t >= dur: - return vals[-1] - f = t / dur - for i in range(len(kt) - 1): - if f <= kt[i + 1]: - span = kt[i + 1] - kt[i] - u = 0.0 if span <= 0 else (f - kt[i]) / span - return vals[i] + (vals[i + 1] - vals[i]) * u - return vals[-1] - - -traj_by_stage = {t["stage"]: t for t in MOTION["trajectory"]} -for stage, old_stage, new_stage in FLIGHTS: - tr = traj_by_stage.get(stage) - check(tr is not None, ("missing trajectory", stage)) - if tr is None: - continue - old_spring = by_axis(old_stage).get("position.y") - new_spring = by_axis(new_stage).get("position.y") - new_frames = {a["keyPath"]: a for a in anims(new_stage, "CAKeyframeAnimation") - if a["keyPath"] in AXES}.get("position.y") - samples = [s for s in tr["samples"] if s.get("presentation")] - check(len(samples) >= 4, (stage, "samples", len(samples))) - worst = 0.0 - for s in samples: - model = s["model"] - model_mid = model["y"] + model["height"] / 2 - t = s["t"] - if new_frames is not None and t >= new_frames["beginTime"]: - x = keyframe_value(new_frames, t - new_frames["beginTime"]) - elif new_spring is not None and t >= new_spring["beginTime"]: - x, _ = rk4_state(new_spring["mass"], new_spring["stiffness"], new_spring["damping"], - new_spring["from"], -new_spring["velocity"] * new_spring["from"], - t - new_spring["beginTime"]) - elif old_spring is not None: - x, _ = rk4_state(old_spring["mass"], old_spring["stiffness"], old_spring["damping"], - old_spring["from"], -old_spring["velocity"] * old_spring["from"], - t - old_spring["beginTime"]) - else: - check(False, (stage, "no animation to predict from")) - continue - worst = max(worst, abs(model_mid + x - s["midY"])) - check(worst <= 1.0, (stage, "piecewise prediction", round(worst, 4))) - -# 减少动态效果:形状不动,呈现层恒等于模型(trajectory 的 reduced 段)。 -for t in MOTION["trajectory"]: - if not t.get("reduced"): - continue - if "samples" not in t: - continue - for s in t["samples"]: - if not s.get("presentation"): - continue - model = s["model"] - check(abs(s["midY"] - (model["y"] + model["height"] / 2)) <= 1e-9, - (t["stage"], "reduced presentation == model")) - -if FAILURES: - print(f"FAIL {len(FAILURES)} checks:") - for f in FAILURES[:40]: - print(" -", f) - sys.exit(1) -print("PASS privacy 12 frames/41 rows/9 switches aligned; motion per-axis continuity via RK4; " - "kick keyframes bounded; cancel/stale callbacks; reduced no animation; 518 current inputs") diff --git a/tools/archive/design-qa-batch23-29/check-browser-settings-preview.py b/tools/archive/design-qa-batch23-29/check-browser-settings-preview.py deleted file mode 100644 index 16ec9ed6..00000000 --- a/tools/archive/design-qa-batch23-29/check-browser-settings-preview.py +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env python3 -"""Consume the actual production-page fixture, including source identity.""" -import hashlib -import json -import sys -from pathlib import Path - -output = Path(sys.argv[1]).resolve() -phase = sys.argv[2] -root = Path(__file__).resolve().parents[2] -report = json.loads((output / 'frames.json').read_text()) -frames = report['frames'] -assert len(frames) == 8 -assert report['argumentDomainRestored'] is True -assert report['actionsInvoked'] == report['persistentWrites'] == 0 -assert len({f['name'] for f in frames}) == 8 -for frame in frames: - assert frame['selected'] == (0 if frame['trigger'] == 'off' else 2) - assert 600 < frame['pageWidth'] <= 640 - assert frame['pageHeight'] > 600 - assert frame['visible'] is False and frame['active'] is False and frame['alpha'] == 0 - assert (output / (frame['name'] + '.png')).stat().st_size > 1000 - labels = frame['labels'] - assert '按窗口切换' in labels and '辅助功能' in labels and '屏幕录制' in labels - has_false_promise = any('不接管原生 Command-Tab' in text for text in labels) - assert has_false_promise == (phase == 'before') - if phase == 'after': - assert any('选 ⌘Tab 会换掉系统的 App 切换' in tip for tip in frame['toolTips']) - for label in frame['labelBounds']: - assert label['width'] > 0 and label['height'] > 0, label - # Native label alignment frames can extend into the page's 28pt - # host margin. Check actual viewport containment, not page origin. - margin = (696 - frame['pageWidth']) / 2 - assert label['x'] + margin >= 0 and label['right'] + margin <= 696, label -for parent in ['light', 'dark']: - for trigger in ['off', 'command']: - top = next(f for f in frames if f['name'] == f'{parent}-{trigger}-top') - bottom = next(f for f in frames if f['name'] == f'{parent}-{trigger}-bottom') - assert top['scrollY'] == 0 and bottom['scrollY'] > 0 -for name, digest in json.loads((output / 'sources.json').read_text()).items(): - path = Path(name) if Path(name).is_absolute() else root / name - assert hashlib.sha256(path.read_bytes()).hexdigest() == digest, name -print(f'PASS {phase}: 8 actual settings frames, 2 trigger states, top/bottom, source hashes') diff --git a/tools/archive/design-qa-batch23-29/check-english-bundle-path.swift b/tools/archive/design-qa-batch23-29/check-english-bundle-path.swift deleted file mode 100644 index 547c1f09..00000000 --- a/tools/archive/design-qa-batch23-29/check-english-bundle-path.swift +++ /dev/null @@ -1,76 +0,0 @@ -import Foundation - -/// 第27批:打包资源路径实测。把 xcstringstool 编出的 en.lproj 当成包里 -/// Contents/Resources/Localization/en.lproj(WSL10n.englishBundle 的真实取用方式)加载, -/// 确认新键命中、占位符按语义替换、缺键回退中文、中文一路不读 bundle。 -/// 用法:check-english-bundle-path ;目录下须有 en.lproj/Localizable.strings。 -@main enum CheckEnglishBundlePath { - static func main() { - let stringsDir = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - let enDir = stringsDir.appendingPathComponent("en.lproj", isDirectory: true) - guard let bundle = Bundle(url: enDir) else { - print("FAIL cannot open en.lproj at \(enDir.path)") - exit(1) - } - guard let table = NSDictionary(contentsOf: enDir.appendingPathComponent("Localizable.strings")) - as? [String: String] else { - print("FAIL cannot read compiled Localizable.strings") - exit(1) - } - var failures = 0 - func check(_ condition: Bool, _ label: String) { - if condition { - print("ok \(label)") - } else { - failures += 1 - print("FAIL \(label)") - } - } - - // 中文一路:不设 bundle 时原样返回源句;设了 bundle 也一样(zh 不看译文)。 - WSL10n.language = .zh - check(WSL10n.text("settings.shade.glance.name", zh: "看一眼") == "看一眼", - "zh returns the source sentence verbatim") - check(WSL10n.text("settings.info.label", zh: "%@的说明", "看一眼") == "看一眼的说明", - "zh template still formats its arguments") - - // 英文经真实 Bundle 路径:batch-27 新键命中编好的译文。 - WSL10n.englishBundle = bundle - WSL10n.language = .en - check(WSL10n.text("settings.shade.glance.name", zh: "看一眼") == "Glance", - "en bundle resolves settings.shade.glance.name") - check(WSL10n.text("settings.shade.tuckNotch.name", zh: "收进刘海") == "Tuck into the notch", - "en bundle resolves settings.shade.tuckNotch.name") - check(WSL10n.text("settings.window.title", zh: "WindowShade 设置") == "WindowShade Settings", - "en bundle resolves the window title") - check(WSL10n.text("settings.shade.sub", - zh: "设置怎么收起窗口、收起后什么样、要不要提示音。") - == "How windows roll up, how a rolled-up window looks, and whether to play a sound.", - "en bundle resolves the long shade subtitle") - check(WSL10n.text("settings.info.label", zh: "%@的说明", "Glance") == "Notes on Glance", - "en template formats its arguments") - let missing = WSL10n.text("batch27.key.not.in.catalog", zh: "缺失键回退") - check(missing == "缺失键回退", "missing key falls back to the zh source sentence") - let tableValue = table["settings.shade.tuckNotch.name"] - check(tableValue == "Tuck into the notch", - "compiled artifact carries the batch-27 key (strings table agree)") - check(table.count >= 371, "compiled artifact has the full catalog (\(table.count) keys)") - - // 切回中文:语言改写后同一键回到源句,说明 bundle 只在 en 时参与。 - WSL10n.language = .zh - check(WSL10n.text("settings.shade.tuckNotch.name", zh: "收进刘海") == "收进刘海", - "switching back to zh ignores the bundle") - - WSL10n.englishBundle = nil - WSL10n.language = .en - check(WSL10n.text("settings.shade.tuckNotch.name", zh: "收进刘海") == "收进刘海", - "en without a bundle degrades to the zh sentence") - - if failures == 0 { - print("PASS: english bundle path — new keys resolve through the packaged en.lproj, zh untouched") - } else { - print("FAILED \(failures)") - exit(1) - } - } -} diff --git a/tools/archive/design-qa-batch23-29/check-feedback-preview.py b/tools/archive/design-qa-batch23-29/check-feedback-preview.py deleted file mode 100644 index bdfc448e..00000000 --- a/tools/archive/design-qa-batch23-29/check-feedback-preview.py +++ /dev/null @@ -1,59 +0,0 @@ -#!/usr/bin/env python3 -"""Independent consumer for the production empty-route and disconnect repair.""" -import hashlib -import json -from pathlib import Path -import subprocess -import sys -root = Path(__file__).resolve().parents[2] -out = Path(sys.argv[1]).resolve() -try: - sources = json.loads((out / 'sources.json').read_text()) - for name, digest in sources.items(): - path = (root / name).resolve() - assert path.is_relative_to(root) and hashlib.sha256(path.read_bytes()).hexdigest() == digest, name - owned = out / 'owned' - # Both entries run in the same immutable production binary; this is its input manifest. - assert json.loads((owned / 'sources.json').read_text()) == sources - subprocess.run([sys.executable, str(root / 'tools/design-qa/check-owned-navigation.py'), str(owned)], check=True) - owned_frames = json.loads((owned / 'frames.json').read_text())['frames'] - for frame in owned_frames: - if frame['phase'] == 'stopped': - assert frame['status'] == '已断开', frame['status'] - media = out / 'media' - frames = json.loads((media / 'frames.json').read_text()) - checks = json.loads((media / 'checks.json').read_text()) - assert len(frames) == 12 and len(checks) == 4 - states = {'playing', 'paused', 'live', 'long-title', 'empty-routes', 'routes'} - for parent in ['light', 'dark']: - subset = [f for f in frames if f['image'].startswith(parent + '-')] - assert len(subset) == 6 and {f['state'] for f in subset} == states - for frame in subset: - empty = frame['state'] == 'empty-routes' - routes = frame['state'] == 'routes' - height = 120.5 if empty else 256.5 if routes else 142 - host_height = 154 if empty else 290 if routes else 176 - assert frame['synthetic'] and frame['panelAlpha'] == 0 - assert not frame['intersectsScreen'] and not frame['activeApplication'] - assert abs(frame['width'] - 421) < .1 and abs(frame['height'] - host_height) < .1 - assert abs(frame['contentWidth'] - 420) < .1 and abs(frame['contentHeight'] - height) < .1 - assert frame['listOpen'] == (empty or routes) - assert frame['routeReads'] == (1 if empty or routes else 0) - assert frame['routeCount'] == (5 if routes else 0) - assert frame['emptyVisible'] == empty - assert frame['emptyText'] == '暂未找到设备' - if empty: - x, y, w, h = frame['emptyBounds'] - assert x >= 0 and y >= 0 and x+w <= 420 and y+h <= height - assert (media / frame['image']).read_bytes().startswith(b'\x89PNG\r\n\x1a\n') - play = next(c for c in checks if c['parent'] == parent and c['kind'] == 'play-guard') - assert play['passed'] and play['localPlayCallbacks'] == 1 and play['staleAndRevokedCallbacks'] == 0 - empty = next(c for c in checks if c['parent'] == parent and c['kind'] == 'empty-feedback') - assert empty['passed'] and empty['returned'] and empty['retryDeviceCount'] == 5 and empty['totalRouteReads'] == 2 - assert play['pendingTimersAfterRevoke'] == empty['pendingTimersAfterRevoke'] == 0 - for state in states: - assert hashlib.sha256((media/f'light-{state}.png').read_bytes()).digest() == hashlib.sha256((media/f'dark-{state}.png').read_bytes()).digest() - print(json.dumps({'passed': True, 'owned_frames': len(owned_frames), 'media_frames': len(frames), 'media_guard_reports': len(checks), 'current_inputs': len(sources), 'real_media_or_hardware': 'not_run'})) -except (AssertionError, OSError, KeyError, ValueError, StopIteration, subprocess.CalledProcessError) as error: - print('Feedback preview FAILED: ' + str(error), file=sys.stderr) - sys.exit(1) diff --git a/tools/archive/design-qa-batch23-29/check-fileshelf-preview.py b/tools/archive/design-qa-batch23-29/check-fileshelf-preview.py deleted file mode 100644 index ebbf9a44..00000000 --- a/tools/archive/design-qa-batch23-29/check-fileshelf-preview.py +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env python3 -"""Consume measured production file shelf frames with own-file cleanup proof.""" -import hashlib -import json -from pathlib import Path -import sys -root = Path(__file__).resolve().parents[2] -out = Path(sys.argv[1]).resolve() -try: - frames = json.loads((out/'frames.json').read_text()) - cleanup = json.loads((out/'cleanup.json').read_text()) - assert len(frames) == 8 and cleanup['syntheticFrames'] == 8 - assert cleanup['temporaryDirectoriesRemoved'] and cleanup['volatileDomainRestored'] - assert not cleanup['realUserFileActions'] - for parent in ['light', 'dark']: - subset = [f for f in frames if f['image'].startswith(parent+'-')] - assert len(subset) == 4 and {f['state'] for f in subset} == {'empty','one','many','long-name'} - for f in subset: - count = 0 if f['state']=='empty' else 7 if f['state']=='many' else 1 - assert f['synthetic'] and f['typeIconsOnly'] and f['count']==count - assert f['panelAlpha']==0 and not f['intersectsScreen'] and not f['activeApplication'] - assert abs(f['width']-561)<.1 and abs(f['height']-160)<.1 - assert abs(f['contentWidth']-560)<.1 and abs(f['contentHeight']-126.5)<.1 - assert abs(f['scrollWidth']-560)<.1 and abs(f['scrollHeight']-104)<.1 - assert len(f['names'])==count and len(f['tileRects'])==count - for i,(x,y,w,h) in enumerate(f['tileRects']): - assert abs(x-(14+84*i))<.1 and y==0 and w==76 and h==104 - if f['state']=='long-name': assert len(f['names'][0])>100 - assert (out/f['image']).read_bytes().startswith(b'\x89PNG\r\n\x1a\n') - sources = json.loads((out/'sources.json').read_text()) - for name,digest in sources.items(): - p=(root/name).resolve() - assert p.is_relative_to(root) and hashlib.sha256(p.read_bytes()).hexdigest()==digest,name - pairs={s:hashlib.sha256((out/f'light-{s}.png').read_bytes()).digest()==hashlib.sha256((out/f'dark-{s}.png').read_bytes()).digest() for s in ['empty','one','many','long-name']} - print(json.dumps({'passed':True,'frames':len(frames),'current_inputs':len(sources),'parent_pairs_identical':pairs,'file_actions_thumbnails_and_hardware':'not_run'})) -except (AssertionError,OSError,KeyError,ValueError) as error: - print('FileShelf preview FAILED: '+str(error),file=sys.stderr);sys.exit(1) diff --git a/tools/archive/design-qa-batch23-29/check-fileshelf-state-preview.py b/tools/archive/design-qa-batch23-29/check-fileshelf-state-preview.py deleted file mode 100644 index 73e956ff..00000000 --- a/tools/archive/design-qa-batch23-29/check-fileshelf-state-preview.py +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/env python3 -"""Independent consumer of current production tile text and controlled shelf states.""" -import hashlib -import json -from pathlib import Path -import sys -root = Path(__file__).resolve().parents[2] -out = Path(sys.argv[1]).resolve() -try: - frames = json.loads((out/'frames.json').read_text()) - cleanup = json.loads((out/'cleanup.json').read_text()) - states = {'empty','one','many','long-name','wide-name','unicode-name','missing','cleared','restored'} - assert len(frames) == 18 and cleanup['syntheticFrames'] == 18 - assert cleanup['temporaryDirectoriesRemoved'] and cleanup['volatileDomainRestored'] - assert not cleanup['realUserFileActions'] - for parent in ['light','dark']: - subset = [f for f in frames if f['image'].startswith(parent+'-')] - assert len(subset)==9 and {f['state'] for f in subset}==states - for f in subset: - state=f['state'] - count=0 if state in {'empty','cleared'} else 7 if state=='many' else 2 if state=='missing' else 1 - assert f['count']==count and f['synthetic'] and f['typeIconsOnly'] - assert f['panelAlpha']==0 and not f['intersectsScreen'] and not f['activeApplication'] - assert abs(f['width']-561)<.1 and abs(f['height']-160)<.1 - assert abs(f['contentWidth']-560)<.1 and abs(f['contentHeight']-126.5)<.1 - assert len(f['names'])==len(f['tileRects'])==len(f['nameLines'])==count - assert f['clearPending']==(state=='cleared') - assert ('文件架空了' in f['visibleLabels'])==(state=='cleared') - for i,(x,y,w,h) in enumerate(f['tileRects']): - assert abs(x-(14+84*i))<.1 and y==0 and w==76 and h==104 - for name, rendered in zip(f['names'],f['nameLines']): - lines=rendered['lines'];widths=rendered['widths'] - assert 1<=len(lines)<=2 and len(lines)==len(widths) and all(w<=68 for w in widths) - assert rendered['joined']=='\n'.join(lines) - assert ''.join(lines).count('…')<=1 - if state=='missing' and rendered['availability']=='missing': - assert len(lines)==2 and lines[1]=='找不到了' and lines[0].endswith('.txt') - elif state!='missing': - ext=Path(name).suffix - if ext: assert lines[-1].endswith(ext), (state,lines,ext) - if state=='unicode-name': - # A family grapheme remains whole; no detached surrogate/component introduced by clipping. - assert '👨‍👩‍👧‍👦' in ''.join(f['nameLines'][0]['lines']) - if state=='missing':assert sum(r['availability']=='missing' for r in f['nameLines'])==1 - assert (out/f['image']).read_bytes().startswith(b'\x89PNG\r\n\x1a\n') - check=json.loads((out/(parent+'-action-check.json')).read_text()) - assert all(check[k] for k in ['passed','freshRemoveAndUndo','originalOwnFileStillExists','staleRemovalBlocked','revokedRemovalBlocked']) - sources=json.loads((out/'sources.json').read_text()) - for name,digest in sources.items(): - p=(root/name).resolve() - assert p.is_relative_to(root) and hashlib.sha256(p.read_bytes()).hexdigest()==digest,name - pairs={s:hashlib.sha256((out/f'light-{s}.png').read_bytes()).digest()==hashlib.sha256((out/f'dark-{s}.png').read_bytes()).digest() for s in states} - assert all(pairs.values()),pairs - print(json.dumps({'passed':True,'frames':len(frames),'action_reports':2,'current_inputs':len(sources),'parent_pairs_identical':9,'real_hardware_file_actions_and_thumbnails':'not_run'})) -except (AssertionError,OSError,ValueError,KeyError) as error: - print('FileShelf states FAILED: '+str(error),file=sys.stderr);sys.exit(1) diff --git a/tools/archive/design-qa-batch23-29/check-grid-title-preview.py b/tools/archive/design-qa-batch23-29/check-grid-title-preview.py deleted file mode 100644 index 394a0752..00000000 --- a/tools/archive/design-qa-batch23-29/check-grid-title-preview.py +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env python3 -"""Read the real grid title cell and bounds, not a recreated title algorithm.""" -import hashlib -import json -import sys -from pathlib import Path - -output = Path(sys.argv[1]).resolve() -phase = sys.argv[2] -root = Path(__file__).resolve().parents[2] -data = json.loads((output / 'frames.json').read_text()) -frames = data['frames'] -count = 32 if phase == 'after' else 16 -assert len(frames) == count and len({f['name'] for f in frames}) == count -assert data['actions'] == 0 and not data['controllerStarted'] -for frame in frames: - assert frame['wraps'] == (phase == 'after') - assert frame['breakMode'] == (0 if phase == 'after' else 4) - assert frame['maxLines'] == 2 and frame['lastLineTruncates'] - assert frame['tooltip'] == frame['title'] - assert frame['visible'] is False and frame['active'] is False and frame['alpha'] == 0 - assert (output / (frame['name'] + '.png')).stat().st_size > 1000 - box, card = frame['titleFrame'], frame['cardBounds'] - assert box['width'] > 0 and box['height'] >= frame['lineHeight'] - if frame['sample'] != 'short': - assert box['height'] >= 2 * frame['lineHeight'] - assert box['x'] >= 0 and box['y'] >= 0 - assert box['x'] + box['width'] <= card['width'] - assert box['y'] + box['height'] <= card['height'] - if frame['material'] == 'glass': - assert frame['insideGlass'] -if phase == 'after': - before = {f['name']: f for f in json.loads((Path(sys.argv[3]) / 'frames.json').read_text())['frames']} - for frame in frames: - if frame.get('derivedParams', False): - continue - for key in ['titleFrame', 'cardBounds', 'font', 'lineHeight', 'tooltip']: - assert frame[key] == before[frame['name']][key], (frame['name'], key) -for name, digest in json.loads((output / 'sources.json').read_text()).items(): - path = Path(name) if Path(name).is_absolute() else root / name - assert hashlib.sha256(path.read_bytes()).hexdigest() == digest, name -print(f'PASS {phase}: {count} actual grid title cells/bounds, complete tooltips; static only') diff --git a/tools/archive/design-qa-batch23-29/check-media-owned-state-preview.py b/tools/archive/design-qa-batch23-29/check-media-owned-state-preview.py deleted file mode 100644 index 9e46fd30..00000000 --- a/tools/archive/design-qa-batch23-29/check-media-owned-state-preview.py +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env python3 -"""Consume actual production-native frames, colors, geometry and cleanup.""" -from pathlib import Path -import hashlib,json,sys -root=Path(__file__).resolve().parents[2] -out=Path(sys.argv[1]).resolve() -try: - media=json.loads((out/'media/frames.json').read_text()) - owned=json.loads((out/'owned/frames.json').read_text()) - assert len(media)==16 and len(owned)==10 - for group,frames,states in [('media',media,{'warm','cool','neutral','paused','removed','routes-eight','routes-last','no-artist'}),('owned',owned,{'signed-out','config-rejected','malformed-account','long-models','long-model-picker'})]: - for parent in ['light','dark']: - subset=[f for f in frames if f['image'].startswith(parent+'-')] - assert {f['state'] for f in subset}==states and len(subset)==len(states) - for f in frames: - assert f['synthetic'] and f['panelAlpha']==0 and not f['intersectsScreen'] and not f['activeApplication'] - assert (out/group/f['image']).read_bytes().startswith(b'\x89PNG\r\n\x1a\n') - if group=='media': - assert f['decodedRGBABytes']==65536 - if f['artist']: - assert len(f['actualArtistRGB'])==3 and all(abs(a-b)<.0001 for a,b in zip(f['actualArtistRGB'],f['expectedTextRGB'])),f - assert f['hasDecodedColor']==(f['state']!='neutral') - routes=f['state'] in {'routes-eight','routes-last'} - assert f['listOpen']==routes and f['routeReads']==int(routes) and f['routeCount']==(8 if routes else 0) - else: - if f['state']=='signed-out':assert not f['canSend'] and not f['canChooseModel'] and f['phase']=='signedOut' - if f['state']=='config-rejected':assert f['status']=='助手设置与当前权限不符,已断开。' and not f['canSend'] and f['phase']=='stopped' - if f['state']=='malformed-account':assert f['status']=='助手返回的信息不完整,已断开。' and f['notice']=='请重新启动助手。' and not f['canSend'] and f['phase']=='stopped' - if f['state']=='long-models': - assert len(f['selectedModel'])==295 and f['phase']=='ready' - for b in f['buttons']: - assert b['width']>0,(f['image'],b,'collapsed action') - minimum={'medium':60,'选择模型…':24,'指挥模式':64}.get(b['title'],0) - assert b['width']>=minimum,(f['image'],b,'unreadable action') - assert b['x']>=-1 and b['x']+b['width']<=f['contentWidth']+1,(f['image'],b,'horizontal overflow') - cleanup=json.loads((out/'owned/cleanup.json').read_text()) - assert cleanup['childReaped'] and cleanup['temporaryRemoved'] and cleanup['browserRequests']==0 - sources=json.loads((out/'sources.json').read_text()) - for name,digest in sources.items(): - p=(root/name).resolve();assert p.is_relative_to(root) and hashlib.sha256(p.read_bytes()).hexdigest()==digest,name - pairs={s:hashlib.sha256((out/f'media/light-{s}.png').read_bytes()).digest()==hashlib.sha256((out/f'media/dark-{s}.png').read_bytes()).digest() for s in {f['state'] for f in media}} - assert all(pairs.values()),pairs - print(json.dumps({'passed':True,'media_frames':16,'owned_frames':10,'current_inputs':len(sources),'media_parent_pairs_identical':8,'real_hardware_media_login_focus_motion':'not_run'})) -except (AssertionError,OSError,ValueError,KeyError) as e: - print('State preview FAILED: '+str(e),file=sys.stderr);sys.exit(1) diff --git a/tools/archive/design-qa-batch23-29/check-media-preview.py b/tools/archive/design-qa-batch23-29/check-media-preview.py deleted file mode 100644 index 3d45e991..00000000 --- a/tools/archive/design-qa-batch23-29/check-media-preview.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python3 -"""Verify a complete synthetic media preview against current production inputs.""" -import hashlib -import json -from pathlib import Path -import sys - -root = Path(__file__).resolve().parents[2] -out = Path(sys.argv[1]).resolve() -try: - frames = json.loads((out / 'frames.json').read_text()) - checks = json.loads((out / 'checks.json').read_text()) - assert len(frames) == 12 and len(checks) == 2, 'incomplete media receipts' - expected = {'playing', 'paused', 'live', 'long-title', 'empty-routes', 'routes'} - for parent in ['light', 'dark']: - subset = [f for f in frames if f['image'].startswith(parent + '-')] - assert {f['state'] for f in subset} == expected and len(subset) == 6 - for frame in subset: - is_list = frame['state'] == 'routes' - assert frame['synthetic'] and not frame['intersectsScreen'] and not frame['activeApplication'] - assert frame['panelAlpha'] == 0 and abs(frame['width'] - 421) < 0.1 - assert abs(frame['height'] - (290 if is_list else 176)) < 0.1 - assert abs(frame['contentWidth'] - 420) < 0.1 - assert abs(frame['contentHeight'] - (256.5 if is_list else 142)) < 0.1 - assert frame['listOpen'] == is_list and frame['routeCount'] == (5 if is_list else 0) - assert frame['routeReads'] == (1 if frame['state'] in ['routes', 'empty-routes'] else 0) - png = (out / frame['image']).read_bytes() - assert png.startswith(b'\x89PNG\r\n\x1a\n') - check = next(c for c in checks if c['parent'] == parent) - assert check['passed'] and check['localPlayCallbacks'] == 1 - assert check['staleAndRevokedCallbacks'] == 0 and check['pendingTimersAfterRevoke'] == 0 - sources = json.loads((out / 'sources.json').read_text()) - for path, digest in sources.items(): - file = (root / path).resolve() - assert path.startswith(('prototype/', 'tools/design-qa/')) and '..' not in Path(path).parts - assert file.is_relative_to(root) and hashlib.sha256(file.read_bytes()).hexdigest() == digest, path - print(json.dumps({'passed': True, 'synthetic_frames': len(frames), 'control_guard_reports': len(checks), - 'current_inputs': len(sources), 'real_media_or_hardware': 'not_run'})) -except (AssertionError, OSError, KeyError, ValueError, StopIteration) as error: - print('Media preview verification FAILED: ' + str(error), file=sys.stderr) - sys.exit(1) diff --git a/tools/archive/design-qa-batch23-29/check-merged-row-preview.py b/tools/archive/design-qa-batch23-29/check-merged-row-preview.py deleted file mode 100644 index 8be66085..00000000 --- a/tools/archive/design-qa-batch23-29/check-merged-row-preview.py +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/env python3 -"""Consume actual canvas descendants and source identities; static rendering only.""" -import hashlib -import json -import sys -from pathlib import Path - -output = Path(sys.argv[1]).resolve() -root = Path(__file__).resolve().parents[2] -data = json.loads((output / 'frames.json').read_text()) -frames = data['frames'] -assert len(frames) == 12 and len({f['name'] for f in frames}) == 12 -assert data['sourceControllers'] == data['actions'] == 0 -for frame in frames: - assert frame['visible'] is False and frame['active'] is False and frame['alpha'] == 0 - assert frame['canvasDark'] and frame['completions'] == 1 - tiles = frame['tiles'] - assert len(tiles) == frame['windows'] + frame['ongoing'] - assert len({t['id'] for t in tiles}) == len(tiles) - assert (output / (frame['name'] + '.png')).stat().st_size > 1000 - previous_right = 0 - for tile in tiles: - assert tile['dark'] - box = tile['frame'] - assert box['width'] == 124 and box['height'] > 0 - assert box['x'] >= previous_right and box['y'] >= 0 - assert box['x'] + box['width'] <= frame['width'] - assert box['y'] + box['height'] <= frame['height'] - previous_right = box['x'] + box['width'] - if tile['kind'] != 'tucked': - assert tile['shelf'] is None - if tile['kind'] == 'session': - assert tile['quantity'] == 'unknown' and tile['quantityText'] is None - if tile['kind'] == 'playing': - assert tile['quantityText'] is None - if frame['sample'] == 'unknown': - assert tile['quantity'] == 'unknown' - assert [t['kind'] for t in tiles[:frame['windows']]] == ['tucked'] * frame['windows'] - assert all(t['kind'] in ['session', 'playing', 'activity'] for t in tiles[frame['windows']:]) - if frame['windows'] and frame['ongoing']: - left, right = tiles[frame['windows'] - 1]['frame'], tiles[frame['windows']]['frame'] - assert right['x'] - left['x'] - left['width'] == 17 - if frame['sample'] == 'stale-ended': - assert tiles[frame['windows']]['stale'] - assert tiles[-1]['ended'] -for name, digest in json.loads((output / 'sources.json').read_text()).items(): - path = Path(name) if Path(name).is_absolute() else root / name - assert hashlib.sha256(path.read_bytes()).hexdigest() == digest, name -pairs = [] -for sample in ['windows', 'activities', 'mixed', 'long', 'unknown', 'stale-ended']: - a = (output / f'light-{sample}.png').read_bytes() - b = (output / f'dark-{sample}.png').read_bytes() - pairs.append({'sample': sample, 'identical': a == b}) -print(json.dumps({'status': 'pass', 'actual_frames': 12, 'static_only': True, 'parent_pairs': pairs})) diff --git a/tools/archive/design-qa-batch23-29/check-notch-motion-preview.py b/tools/archive/design-qa-batch23-29/check-notch-motion-preview.py deleted file mode 100644 index 1688956a..00000000 --- a/tools/archive/design-qa-batch23-29/check-notch-motion-preview.py +++ /dev/null @@ -1,259 +0,0 @@ -#!/usr/bin/env python3 -"""Consumer for render-native-surfaces.sh --swift6 output of NotchMotionPreview.swift. - -Reads ONLY ABS_OUTPUT/frames.json, sources.json, renderer.json plus the local -sources named by sources.json (for SHA256). It never touches UI, product code, -the network, permissions or any other source. - -What this proves: control-path structure in emitted JSON (stage ordering, model -geometry/tile identity/quantity bookkeeping, callback counts, main-thread flags) -plus the fact that frames.json/sources.json/renderer.json are internally -consistent with current on-disk sources. What it cannot prove: that any animation -actually ran, that the visual compositor produced motion, or anything about real -hardware, presentation timing or product lifecycle. `presentation` and `cacheOnly` -are recorded data, not evidence of real motion. File existence and a clean -ast.parse of this script are NOT behavioural evidence. -""" -import ast, hashlib, json, math, sys -from pathlib import Path - -STAGES = ["initial", "open-start", "open-settled", "same-id", "replace-id", - "close-before-interrupt", "reopened", "closed"] -TRANSITION_STAGES = {"open-start", "close-before-interrupt"} -# stage -> exact per-mode callback completion key that must occur -EXPECT_ONE = {"initial", "open", "same-id", "replace-id", "reopen", "close-final"} -# stage -> callback key that must NOT fire in regular mode -EXPECT_ZERO_REGULAR_ONLY = {"close-interrupted"} - -MODES = {"regular": False, "reduced": True} -COMPACT = (185, 33.5) -EXPANDED_W = 305 -EXPANDED_H = 175.5 -CENTER_X = 400 -TOP_Y = 400 - - -def finite_nonnegative(value, label): - assert isinstance(value, (int, float)) and not isinstance(value, bool), f"{label}: not a number: {value!r}" - assert math.isfinite(value), f"{label}: not finite: {value!r}" - assert value >= 0, f"{label}: negative: {value!r}" - return value - - -def finite(value, label): - assert isinstance(value, (int, float)) and not isinstance(value, bool), f"{label}: not a number: {value!r}" - assert math.isfinite(value), f"{label}: not finite: {value!r}" - return value - - -def check_frame_common(frame, mode, stage): - label = f"{mode}-{stage}" - for key, expected in (("active", False), ("visible", False), ("mainThread", True), ("cacheOnly", True)): - assert frame.get(key) is expected, f"{label}: {key} expected {expected!r} got {frame.get(key)!r}" - assert frame.get("alpha") == 0, f"{label}: alpha expected 0 got {frame.get('alpha')!r}" - assert frame.get("model") is not None and isinstance(frame["model"], dict), f"{label}: missing model box" - for dim in ("x", "y", "width", "height"): - assert dim in frame["model"], f"{label}: model missing {dim}" - finite(frame["model"][dim], f"{label}.model.{dim}") - assert "presentation" in frame, f"{label}: missing presentation field" - assert isinstance(frame.get("animations"), list), f"{label}: animations must be a list" - for anim in frame["animations"]: - assert set(("key", "duration", "class")) <= set(anim), f"{label}: animation missing keys: {anim!r}" - assert isinstance(anim["key"], str) and anim["class"], f"{label}: bad animation id: {anim!r}" - finite_nonnegative(anim["duration"], f"{label}.animations[{anim['key']}].duration") - assert isinstance(frame.get("pendingExit"), bool), f"{label}: pendingExit must be bool" - for key, kind in (("tileIDs", list), ("tileIdentities", list), ("tileQuantities", list)): - assert isinstance(frame.get(key), kind), f"{label}: {key} must be a list" - assert len(frame["tileIDs"]) == len(frame["tileIdentities"]) == len(frame["tileQuantities"]), \ - f"{label}: tile arrays length mismatch" - for tid in frame["tileIDs"]: - assert isinstance(tid, int) and not isinstance(tid, bool), f"{label}: tile id not an int: {tid!r}" - for ident in frame["tileIdentities"]: - assert isinstance(ident, str) and ident, f"{label}: tile identity not a string: {ident!r}" - for q in frame["tileQuantities"]: - assert set(q) == {"completed", "total"}, f"{label}: tile quantity shape: {q!r}" - finite_nonnegative(q["completed"], f"{label}.quantity.completed") - finite_nonnegative(q["total"], f"{label}.quantity.total") - assert "currentIdentity" in frame, f"{label}: missing currentIdentity" - - -def check_model_rect(frame, mode, stage, width, height): - label = f"{mode}-{stage}" - model = frame["model"] - assert model["width"] == width, f"{label}: model width expected {width} got {model['width']}" - assert model["height"] == height, f"{label}: model height expected {height} got {model['height']}" - cx = model["x"] + model["width"] / 2 - assert cx == CENTER_X, f"{label}: model centre x expected {CENTER_X} got {cx}" - assert model["y"] + model["height"] == TOP_Y, f"{label}: model top edge expected {TOP_Y} got {model['y'] + model['height']}" - - -def main(): - assert len(sys.argv) == 2, "usage: check-notch-motion-preview.py ABS_OUTPUT" - out = Path(sys.argv[1]).resolve() - root = Path(__file__).resolve().parents[2] - - frames_path = out / "frames.json" - sources_path = out / "sources.json" - renderer_path = out / "renderer.json" - for required in (frames_path, sources_path, renderer_path): - assert required.is_file(), f"missing required output: {required.name}" - - report = json.loads(frames_path.read_text()) - frames = report.get("frames") - callbacks = report.get("callbacks") - counts = report.get("counts") - assert isinstance(frames, list), "frames must be a list" - assert isinstance(callbacks, list), "callbacks must be a list" - assert isinstance(counts, dict), "counts must be a dict" - - # --- report-level schema ------------------------------------------------- - assert report.get("swiftLanguageVersion") == 6, "swiftLanguageVersion must be 6" - assert report.get("productEntry") is False, "productEntry must be false" - for key in ("realSources", "globalInputEvents", "windowActions"): - assert report.get(key) == 0, f"{key} must be 0 got {report.get(key)!r}" - assert report.get("mainThread") is True, "report mainThread must be true" - assert report.get("status") == "completed_callbacks_static_cache_only", \ - f"status must be completed_callbacks_static_cache_only got {report.get('status')!r}" - - assert report.get("overrideRestored") is True, "process-local reduced override not restored" - - # --- frames: 16 total, 8 per mode, one per stage, ordered --------------- - assert len(frames) == 16, f"expected 16 frames got {len(frames)}" - by_mode = {} - for frame in frames: - name = frame.get("name") - assert isinstance(name, str) and "-" in name, f"bad frame name: {name!r}" - mode, stage = name.split("-", 1) - assert mode in MODES, f"unexpected mode in frame name: {name!r}" - assert frame.get("stage") == stage, f"{name}: stage field mismatch" - assert frame.get("reduced") is MODES[mode], f"{name}: reduced flag mismatch" - by_mode.setdefault(mode, []).append(frame) - for mode in MODES: - mode_frames = by_mode.get(mode, []) - assert len(mode_frames) == 8, f"{mode}: expected 8 frames got {len(mode_frames)}" - assert [f["stage"] for f in mode_frames] == STAGES, \ - f"{mode}: stage order/sequence mismatch: {[f['stage'] for f in mode_frames]}" - - # --- per-frame checks ---------------------------------------------------- - for mode in MODES: - for frame in by_mode[mode]: - stage = frame["stage"] - check_frame_common(frame, mode, stage) - if stage in ("initial", "closed") or (mode == "reduced" and stage == "close-before-interrupt"): - check_model_rect(frame, mode, stage, *COMPACT) - else: - check_model_rect(frame, mode, stage, EXPANDED_W, EXPANDED_H) - - # tile identity / quantity expectations - exp = { - "initial": (set(), []), - "open-start": (None, None), # transition: presentation/tiles not asserted - "open-settled": ({900}, [{"completed": 2, "total": 9}]), - "same-id": ({900}, [{"completed": 3, "total": 9}]), - "replace-id": ({901}, [{"completed": 4, "total": 9}]), - "reopened": ({901}, [{"completed": 4, "total": 9}]), - "closed": (set(), []), - } - for frame in by_mode[mode]: - stage = frame["stage"] - if stage in ("open-start", "close-before-interrupt"): - # transition stages: do not assert tile visibility or presentation - assert "presentation" in frame, f"{mode}-{stage}: presentation field must exist" - continue - expected_ids, expected_q = exp[stage] - assert set(frame["tileIDs"]) == expected_ids, \ - f"{mode}-{stage}: tile ids expected {sorted(expected_ids)} got {sorted(frame['tileIDs'])}" - assert frame["tileQuantities"] == expected_q, \ - f"{mode}-{stage}: quantities expected {expected_q} got {frame['tileQuantities']}" - if expected_ids: - assert frame["currentIdentity"] not in (None,), f"{mode}-{stage}: currentIdentity null with tiles present" - - # same-id: the retained tile must reuse the same TileIdentity object - same = next(f for f in by_mode[mode] if f["stage"] == "same-id") - opened = next(f for f in by_mode[mode] if f["stage"] == "open-settled") - assert len(same["tileIdentities"]) == 1 and len(opened["tileIdentities"]) == 1, \ - f"{mode}: expected exactly one tile identity for same-id comparison" - assert same["tileIdentities"][0] == opened["tileIdentities"][0], \ - f"{mode}-same-id: TileIdentity changed across same-id update" - assert same["currentIdentity"] == opened["currentIdentity"], \ - f"{mode}-same-id: currentIdentity changed across same-id update" - - # replace-id / reopened: identity content must switch to 901 - repl = next(f for f in by_mode[mode] if f["stage"] == "replace-id") - reop = next(f for f in by_mode[mode] if f["stage"] == "reopened") - assert repl["tileIDs"] == [901] and reop["tileIDs"] == [901], f"{mode}: replace/reopen must show id 901" - - # close-before-interrupt must reflect the interruption contract exactly - before = next(f for f in by_mode[mode] if f["stage"] == "close-before-interrupt") - if mode == "regular": - check_model_rect(before, mode, "close-before-interrupt", EXPANDED_W, EXPANDED_H) - assert before["pendingExit"] is True, "regular close-before-interrupt: pendingExit must stay true" - else: - check_model_rect(before, mode, "close-before-interrupt", *COMPACT) - assert before["pendingExit"] is False, "reduced close-before-interrupt: pendingExit must be false" - - # final stage must have no pending exit - closed = next(f for f in by_mode[mode] if f["stage"] == "closed") - assert closed["pendingExit"] is False, f"{mode}-closed: pendingExit must be false" - - # --- counts: exact completions ------------------------------------------ - for mode in MODES: - for key in EXPECT_ONE: - k = f"{mode}-{key}" - assert k in counts, f"missing callback count: {k}" - assert counts[k] == 1, f"{k}: completion count expected 1 got {counts.get(k)!r}" - for key in EXPECT_ZERO_REGULAR_ONLY: - k = f"{mode}-{key}" - if mode == "regular": - assert counts.get(k, 0) == 0, f"{k}: regular interrupted close must not complete (got {counts.get(k)!r})" - else: - assert counts.get(k, 0) in (0, 1), f"{k}: reduced must be 0 or 1 (got {counts.get(k)!r})" - # no count may exceed one - for k, v in counts.items(): - if k.startswith(mode + "-"): - assert v <= 1, f"count for {k} exceeds 1: {v!r}" - - # --- callbacks: all main-thread, consistent with counts ----------------- - callback_tally = {} - for cb in callbacks: - assert set(("name", "mainThread", "time")) <= set(cb), f"callback missing keys: {cb!r}" - assert cb["mainThread"] is True, f"callback {cb['name']} not on main thread" - finite_nonnegative(cb["time"], f"callback {cb['name']}.time") - callback_tally[cb["name"]] = callback_tally.get(cb["name"], 0) + 1 - assert callback_tally == counts, f"callbacks tally {callback_tally} != counts {counts}" - - # --- renderer.json ------------------------------------------------------- - renderer = json.loads(renderer_path.read_text()) - assert renderer.get("swiftLanguageVersion") == 6, "renderer swiftLanguageVersion must be 6" - assert renderer.get("strictConcurrency") is True, "renderer strictConcurrency must be true" - assert renderer.get("warningsAsErrors") is True, "renderer warningsAsErrors must be true" - assert renderer.get("optimized") is False, "renderer optimized must be false" - - # --- sources.json: 518 entries, each SHA256 matches current source ------ - sources = json.loads(sources_path.read_text()) - assert isinstance(sources, dict) and len(sources) == 518, \ - f"sources.json must contain 518 entries got {len(sources)}" - for name, digest in sources.items(): - local = root / name - assert local.is_file(), f"missing local source: {name}" - actual = hashlib.sha256(local.read_bytes()).hexdigest() - assert actual == digest, f"source drift for {name}: {actual} != {digest}" - - print(json.dumps({ - "status": "pass_control_path_visual_inconclusive", - "frames": len(frames), - "callbacks": len(callbacks), - "sources_sha256": len(sources), - "geometry_state_control_path": "checked", - "presentation_real_motion": "inconclusive", - "cache_only_real_motion": "inconclusive", - "visual_compositor": "untested", - "hardware": "untested", - "product_lifecycle": "untested", - })) - - -# Prove this file parses as valid Python before trusting it as a consumer. -# This check does not exercise the code paths above. -ast.parse(Path(__file__).read_text()) -main() diff --git a/tools/archive/design-qa-batch23-29/check-notch-retarget-preview.py b/tools/archive/design-qa-batch23-29/check-notch-retarget-preview.py deleted file mode 100644 index 54fe75c3..00000000 --- a/tools/archive/design-qa-batch23-29/check-notch-retarget-preview.py +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env python3 -"""Actual layer/configuration baseline; reports direction evidence, never certifies FPS/compositor.""" -import json,sys,hashlib -from pathlib import Path -root=Path(__file__).resolve().parents[2];out=Path(sys.argv[1]);x=json.loads((out/'retarget.json').read_text());records=x['records'] -assert x['overrideRestored'] and x['cacheOnly'] and not x['compositorAccepted'] and not x['productEntry'] -assert x['realSources']==x['globalInputEvents']==0 -assert len(records)==30 -for r in records: - assert r['mainThread'] and r['delegateNil'] and not r['visible'] and not r['active'] and r['alpha']==0 - assert r['model']['width']>0 and r['model']['height']>0 - if r['reduced']:assert not r['animations'],r['stage'] - for a in r['animations']:assert a['mass']>0 and a['stiffness']>0 and a['damping']>=0 and a['duration']>0 and a['additive'] -reg={r['stage']:r for r in records if not r['reduced']} -a,b=reg['open-after'],reg['open-sample'];reverse=reg['reverse-after'] -def mid_y(rect):return rect['y']+rect['height']/2 -analysis={'kind':'configuration_and_hidden_presentation_only','compositor_pass':False,'instantaneous_velocity_measured':False} -if a['presentation'] is not None and b['presentation'] is not None: - incoming=mid_y(b['presentation'])-mid_y(a['presentation']) - remaining=mid_y(reverse['model'])-mid_y(b['presentation']) - springs=[v for v in reverse['animations'] if v['key']=='morph.position'] - analysis.update(incoming_mid_y_delta=incoming,new_target_mid_y_delta=remaining,retarget_initial_velocity=[v['velocity'] for v in springs]) - old_live=any(v['key']=='morph.position' for v in b['animations']) - if old_live and abs(incoming)>0.5 and abs(remaining)>0.5 and incoming*remaining<0 and springs: - analysis['direction_configuration']='opposite_incoming_requires_negative' - analysis['configured_direction_matches']=all(v['velocity']<0 for v in springs) - elif not old_live and springs and abs(mid_y(b['presentation'])-mid_y(b['model']))<.1: - analysis['direction_configuration']='old_animation_settled_requires_zero' - analysis['configured_direction_matches']=all(abs(v['velocity'])<.001 for v in springs) - else:analysis['direction_configuration']='inconclusive' -else:analysis['direction_configuration']='presentation_unavailable' -sources=json.loads((out/'sources.json').read_text());assert len(sources)==518 -for rel,h in sources.items():assert hashlib.sha256((root/rel).read_bytes()).hexdigest()==h,rel -(out/'analysis.json').write_text(json.dumps(analysis,indent=2)+'\n') -print('PASS actual baseline structure/518 current inputs; dynamic direction result:',analysis) diff --git a/tools/archive/design-qa-batch23-29/check-owned-navigation.py b/tools/archive/design-qa-batch23-29/check-owned-navigation.py deleted file mode 100644 index e0048d45..00000000 --- a/tools/archive/design-qa-batch23-29/check-owned-navigation.py +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env python3 -"""Consume actual native navigation receipts, then the existing phase contract.""" -import json -from pathlib import Path -import subprocess -import sys - -output = Path(sys.argv[1]).resolve() -required = { - 'valid-navigation-delivers-once', 'exact-byte-limit-enables-navigation', - 'multibyte-over-limit-disables-navigation', 'over-limit-action-guards-navigation', - 'over-limit-navigation-keeps-local-draft', 'over-limit-navigation-keeps-last-accepted-draft', - 'marked-action-guards-navigation', 'marked-navigation-keeps-composition', - 'unmark-navigation-delivers-once', 'missing-destination-disables-navigation', - 'stale-action-guards-navigation', 'revoked-action-guards-navigation', -} -try: - for parent in ['light', 'dark']: - report = json.loads((output / (parent + '-input-checks.json')).read_text()) - checks = {item['name']: item for item in report['checks']} - if not required <= checks.keys(): - raise ValueError(parent + ' missing navigation boundary receipts') - if not all(checks[name]['passed'] for name in required): - raise ValueError(parent + ' navigation boundary failed') - frames = json.loads((output / 'frames.json').read_text())['frames'] - for parent in ['light', 'dark']: - frame = next(f for f in frames if f['image'] == parent + '-draft.png') - if not any(label['text'].startswith('long-project-') and len(label['text']) > 200 - and label['withinContent'] for label in frame['visibleLabels']): - raise ValueError(parent + ' missing bounded long project title') - if frame['panelAlpha'] != 0: - raise ValueError('fixture must stay transparent') - subprocess.run([sys.executable, str(Path(__file__).with_name('check-owned-preview.py')), - str(output)], check=True) - print('Navigation callbacks, UTF8/IME preservation, stale/revoke and long title: passed.') -except (OSError, ValueError, KeyError, StopIteration, subprocess.CalledProcessError) as error: - print('Owned navigation verification FAILED: ' + str(error), file=sys.stderr) - sys.exit(1) diff --git a/tools/archive/design-qa-batch23-29/check-owned-preview.py b/tools/archive/design-qa-batch23-29/check-owned-preview.py deleted file mode 100644 index ee6365aa..00000000 --- a/tools/archive/design-qa-batch23-29/check-owned-preview.py +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env python3 -"""Check a completed owned-session fixture; exit zero alone is insufficient.""" -import hashlib -import json -from pathlib import Path -import sys - -root = Path(__file__).resolve().parents[2] -output = Path(sys.argv[1]).resolve() -def read(name): - return json.loads((output / name).read_text()) -def require(condition, message): - if not condition: - raise ValueError(message) -def digest(path): - return hashlib.sha256(path.read_bytes()).hexdigest() - -try: - report = read('owned-phases.json') - frames = read('frames.json')['frames'] - require(report['childReaped'] and report['temporaryRemoved'], 'child/temp cleanup incomplete') - require(not Path(report['temporaryRoot']).exists(), 'temporary directory still exists') - require(report['controllerCount'] == 1, 'unexpected controller ownership') - require(report['fixtureSHA256'] == digest(root / 'tests/fixtures/conductor-backend.py'), 'fixture changed') - require(report['backendCopySHA256'] == digest(output / 'synthetic-preview-backend.py'), 'generated backend identity mismatch') - require(len(frames) == 14, 'expected fourteen final phase captures') - expected = ['before-launch', 'ready', 'ready-model-picker', 'draft', 'running', 'completed', 'stopped'] - check_count = 0 - for parent in ['light', 'dark']: - checks = read(parent + '-input-checks.json') - require(checks['passed'] and all(c['passed'] for c in checks['checks']), parent + ' input/resize checks failed') - names = {c['name'] for c in checks['checks']} - require({'before-marking-send-enabled', 'marked-text-disables-send', 'actual-panel-frame-expands', 'actual-panel-frame-restores', 'same-owner-resize-offscreen', 'revoked-send-disabled'} <= names, parent + ' missing boundary checks') - check_count += len(checks['checks']) - for state in expected: - name = parent + '-' + state + '.png' - matches = [f for f in frames if f['image'] == name] - require(len(matches) == 1 and (output / name).is_file(), 'missing/duplicate frame: ' + name) - frame = matches[0] - require(not frame['intersectsScreen'] and not frame['activeApplication'], 'fixture escaped screen/activity bounds: ' + name) - require(all(label['withinContent'] for label in frame['visibleLabels']), 'visible label exceeds content: ' + name) - phase = ('idle' if parent == 'light' else 'stopped') if state == 'before-launch' else ('ready' if state in ['ready', 'ready-model-picker', 'draft'] else state) - require(frame['phase'] == phase, 'incorrect actual phase: ' + name) - if state in ['running', 'completed']: - require('合成后端回复' in frame['replyText'], 'missing real synthetic reply: ' + name) - if state != 'ready-model-picker': - send = next(b for b in frame['buttons'] if b['title'] == '发送') - require(send['enabled'] == (state == 'draft'), 'incorrect send projection: ' + name) - if state == 'stopped': - require(frame['reapsObserved'] >= 1, 'no observed reap: ' + name) - sources = read('sources.json') - for name, value in sources.items(): - require(name.startswith(('prototype/', 'tools/design-qa/')) and '..' not in Path(name).parts and (root / name).resolve().is_relative_to(root), 'unexpected source path') - require(digest(root / name) == value, 'source changed: ' + name) - print(json.dumps({'passed': True, 'frames': len(frames), 'input_and_resize_checks': check_count, 'current_inputs': len(sources), 'cleanup': True, 'scope': 'synthetic fixture only; real hardware/input/animation quality not proven'}, ensure_ascii=False)) -except (OSError, KeyError, ValueError, StopIteration) as error: - print('Owned preview verification FAILED: ' + str(error), file=sys.stderr) - sys.exit(1) diff --git a/tools/archive/design-qa-batch23-29/check-owned-scroll-preview.py b/tools/archive/design-qa-batch23-29/check-owned-scroll-preview.py deleted file mode 100644 index d8b432ce..00000000 --- a/tools/archive/design-qa-batch23-29/check-owned-scroll-preview.py +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env python3 -"""Verify actual same-view AppKit scroll coordinates, not an implementation mirror.""" -import hashlib -import json -import sys -from pathlib import Path - -out = Path(sys.argv[1]).resolve() -root = Path(__file__).resolve().parents[2] -data = json.loads((out / 'frames.json').read_text()) -assert data['synthetic'] and data['actionsOnRealSources'] == 0 -assert data.get('childrenReaped') and data.get('temporaryRemoved') and 'failure' not in data -assert not Path(data['temporaryRoot']).exists() -frames = data['frames'] -assert len(frames) == 12 and len({f['name'] for f in frames}) == 12 -failures = [] -for f in frames: - assert f['sameView'] and f['dark'] and not f['visible'] and not f['active'] and f['alpha'] == 0 - assert (out / (f['name'] + '.png')).stat().st_size > 1000 - a, b, stage = f['after'], f['before'], f['stage'] - if 'draft' in f: - d = f['draft'] - assert d['matchesController'] and d['fontSize'] == 12 - assert d['height'] == 72 and d['replyHeight'] == 100 - assert d['radius'] == 12 and d['border'] == d['replyBorder'] == 0 - assert d['paddingX'] == 10 and d['paddingY'] == 8 and d['linePadding'] == 0 - assert not d['background'] and not d['replyBackground'] - if stage != 'empty': - assert d['characters'] > 0 - assert 68 <= f['height'] <= 513.5 - if stage == 'empty': - assert f['outputHidden'] and a['characters'] == 0 - continue - assert a['textWidth'] > 0 and a['lineHeight'] > 0 - assert not f['outputHidden'] and a['documentHeight'] > a['visibleHeight'] and a['characters'] > b['characters'] - if stage in ['initial', 'bottom', 'inside-threshold'] and abs(a['gap']) > 1: - failures.append({'name': f['name'], 'expected': 'follow end within 1pt', 'actual': a}) - if stage in ['top', 'outside-threshold'] and abs(a['origin'] - b['origin']) > 1: - failures.append({'name': f['name'], 'expected': 'preserve origin within 1pt', 'before': b, 'actual': a}) - if stage == 'outside-threshold': - assert abs(b['gap'] - 30) <= 1 - if stage == 'inside-threshold': - assert abs(b['gap'] - 20) <= 1 -sources = json.loads((out / 'sources.json').read_text()) -assert len(sources) == 518 -for p, sha in sources.items(): - assert hashlib.sha256((root / p).read_bytes()).hexdigest() == sha, p -print(json.dumps({'status': 'fail' if failures else 'pass', 'frames': len(frames), 'failures': failures}, ensure_ascii=False)) -sys.exit(bool(failures)) diff --git a/tools/archive/design-qa-batch23-29/check-power-ear-preview.py b/tools/archive/design-qa-batch23-29/check-power-ear-preview.py deleted file mode 100644 index 8f54378c..00000000 --- a/tools/archive/design-qa-batch23-29/check-power-ear-preview.py +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env python3 -"""Actual compact payload/slots and production percentage font-layout consumer.""" -import json,hashlib,sys -from pathlib import Path -root=Path(__file__).resolve().parents[2];out=Path(sys.argv[1]).resolve() -try: - frames=json.loads((out/'frames.json').read_text()) - expected={'plug-zero':('0%','red','bolt.fill'),'plug-five':('5%','red','bolt.fill'),'plug-twenty':('20%','red','bolt.fill'),'plug-twenty-one':('21%','green','bolt.fill'),'plug-eighty-two':('82%','green','bolt.fill'),'plug-hundred':('100%','green','bolt.fill'),'full':('100%','green','battery.100'),'low-power':('82%','yellow','battery.25')} - assert len(frames)==16 - for parent in ['light','dark']: - subset=[f for f in frames if f['image'].startswith(parent+'-')] - assert len(subset)==8 and {f['state'] for f in subset}==set(expected) - for f in subset: - assert f['synthetic'] and not f['realBatterySource'] and not f['powerFlashAPIOrAXUsed'] - assert f['alpha']==0 and not f['activeApplication'] and not f['intersectsScreen'] - assert (f['trailing'],f['tone'],f['symbol'])==expected[f['state']] - assert f['compactWidth']==253 and f['compactHeight']==33.5 - assert f['leadingSlot']==[0,0,34,33.5] and f['trailingSlot']==[219,0,34,33.5] - assert f['wholeRangeFontFits']==101 and f['fontPointSize']==10 and f['textWidth']<=f['availableTextWidth']==30 - assert (out/f['image']).read_bytes().startswith(b'\x89PNG\r\n\x1a\n') - sources=json.loads((out/'sources.json').read_text()) - for name,digest in sources.items():assert hashlib.sha256((root/name).read_bytes()).hexdigest()==digest,name - pairs={s:hashlib.sha256((out/f'light-{s}.png').read_bytes()).digest()==hashlib.sha256((out/f'dark-{s}.png').read_bytes()).digest() for s in expected} - assert all(pairs.values()),pairs - print(json.dumps({'passed':True,'frames':16,'current_inputs':len(sources),'parent_pairs_identical':8,'whole_valid_percentage_range_font_fits':101,'hardware_source_announcements_real_timer_arbitration':'not_run'})) -except (AssertionError,KeyError,OSError,ValueError) as e: - print('Power ears FAILED: '+str(e),file=sys.stderr);sys.exit(1) diff --git a/tools/archive/design-qa-batch23-29/check-privacy-column-draft.py b/tools/archive/design-qa-batch23-29/check-privacy-column-draft.py deleted file mode 100644 index e6755aa8..00000000 --- a/tools/archive/design-qa-batch23-29/check-privacy-column-draft.py +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env python3 -"""Actual native draft output, original registry text and layout; no product acceptance.""" -import hashlib,json,math,sys -from pathlib import Path -root=Path(__file__).resolve().parents[2];work=Path(sys.argv[1]);r=json.loads((work/'final/frames.json').read_text()) -registry=json.loads((root/'tools/privacy/registry.json').read_text());signals={x['id']:x for x in registry['signals']} -keys=[('读到的','reads'),('为什么','purpose'),('去了哪里','destination'),('什么时候读','activation'),('开关','toggle'),('合起来能看出什么','combined')] -assert r['candidateOnly'] and not r['productionIntegration'] and r['plannedFixtureOnly'] -assert all(r[k]==0 for k in ['realSources','actions','networkReads','globalInputEvents','preferencesWrites']) -assert len(r['frames'])==36 -for parent in ['light','dark']: - for width in [640,448,300]: - for id in ['window-ax','battery','face-identity']: - for technical in [False,True]: - name=f"{parent}-{width}-{id}-{'technical' if technical else 'plain'}" - f=next(x for x in r['frames'] if x['name']==name);source=signals[id] - assert f['width']==width and abs(f['actualWidth']-width)<0.1 and f['status']==source['status'],name - assert not f['visible'] and not f['active'] and f['alpha']==0 and f['mainThread'],name - assert abs(f['hostSize']['width']-(width+32))<0.1 and abs(f['hostSize']['height']-(f['height']+32))<0.1,name - interfaces=sorted(set(s['symbol'] for s in registry['sites'] if s['signal']==id));assert f['interfaces']==interfaces,name - expect=[(k,source[v]) for k,v in keys if source.get(v)] - if technical and interfaces:expect.append(('接口','、'.join(interfaces))) - assert len(f['fields'])==len(expect)*2,name - previous_bottom=None - for i,(key,text) in enumerate(expect): - label,body=f['fields'][i*2:i*2+2] - assert label['role']=='label' and body['role']=='body' and label['key']==body['key']==key,name - assert body['text']==text and body['tooltip']==text,name - assert label['text']=={'什么时候读':'什么时候','合起来能看出什么':'合起来看'}.get(key,key) and label['tooltip']==key,name - for field in [label,body]: - b=field['frame'];assert field['font']==12 and field['wraps'] and field['maxLines']==0 and not field['editable'],name - assert all(math.isfinite(v) for v in b.values()),name - assert b['x']>=-2.1 and b['x']+b['width']<=width+2.1 and b['y']>=-0.1 and b['y']+b['height']<=f['height']+0.1 and b['height']>0,(name,key,b) - a=label['frame'];b=body['frame'];assert abs(a['width']-(12*4.4+4))<=0.5,name - assert b['x']-(a['x']+a['width'])>=5.5,name # control borders extend two points around glyph alignment - top=max(a['y']+a['height'],b['y']+b['height']);bottom=min(a['y'],b['y']) - assert abs((a['y']+a['height'])-(b['y']+b['height']))<0.1,name - assert a['height']<=15.1,name # shortened visible label stays one line at original4.4em - if previous_bottom is not None:assert previous_bottom-top>=3.9,name - previous_bottom=bottom - assert body['color'][3]>label['color'][3],name -for path,digest in json.loads((work/'sources.json').read_text()).items():assert hashlib.sha256((root/path).read_bytes()).hexdigest()==digest,path -renderer=json.loads((work/'renderer.json').read_text());assert renderer['swiftLanguageVersion']==6 and renderer['strictConcurrency'] and renderer['warningsAsErrors'] and renderer['cocoaOnly'] -assert hashlib.sha256((work/'draft').read_bytes()).hexdigest()==renderer['sha256'] -print(json.dumps({'status':'candidate_static_pass','frames':36,'registry_text':'exact including real site interface aggregation','font':12,'label_column':'4.4em; four-character visible aliases, full tooltip','product/source/actions/readscreen/motion/hardware':'not_run'},ensure_ascii=False)) diff --git a/tools/archive/design-qa-batch23-29/check-privacy-column-production.py b/tools/archive/design-qa-batch23-29/check-privacy-column-production.py deleted file mode 100644 index 95663ab0..00000000 --- a/tools/archive/design-qa-batch23-29/check-privacy-column-production.py +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/env python3 -"""Read actual production Row fixture output, not independent candidate JSON.""" -import hashlib,json,math,sys -from pathlib import Path -root=Path(__file__).resolve().parents[2];out=Path(sys.argv[1]);r=json.loads((out/'frames.json').read_text());registry=json.loads((root/'tools/privacy/registry.json').read_text()) -signals={s['id']:s for s in registry['signals']} -assert not r['pageInstantiated'] and r['plannedFixtureOnly'] -assert all(r[k]==0 for k in ['sourcesRead','grantActions','exports','settingsWrites','globalInputEvents']) -samples=['battery','missing','denied','granted','long-value','expanded','technical','planned'] -assert len(r['frames'])==48 -for parent in ['light','dark']: - for width in [640,448,300]: - batch=[f for f in r['frames'] if f['name'].startswith(f'{parent}-{width}-')];assert [f['sample'] for f in batch]==samples - for f in batch: - name=f['name'];sample=f['sample'];labels=f['labels'];src=signals[f['rowID']] - assert not f['visible'] and not f['active'] and f['alpha']==0 and f['mainThread'] and f['toggles']==0,name - assert abs(f['actualRowWidth']-width)<0.1 and abs(f['hostWidth']-(width+32))<0.1,name - for field in labels: - b=field['frame'];assert all(math.isfinite(v) for v in b.values()),name - assert b['x']>=-2.1 and b['x']+b['width']<=width+2.1 and b['y']>=-2.1 and b['y']+b['height']<=f['height']+2.1,(name,field['text'][:18],b) - assert not field['editable'] and b['height']>0,name - title,subtitle,value=labels[:3] - assert title['tooltip']==title['text'] and subtitle['tooltip']==subtitle['text'],name - assert value['frame']['x']>=max(x['frame']['x']+x['frame']['width'] for x in [title,subtitle])+5.5,name - if sample=='long-value':assert value['breakMode']==5 and value['tooltip']==value['text'] and value['frame']['width']<=width*0.4+4.1,name - if sample=='missing':assert value['text']=='没读到',name - if sample=='denied':assert value['text']=='去授权' and not any(b['isGrant'] for b in f['buttons']),name - if sample in ['granted','expanded','technical']:assert value['text']=='已授权',name - if sample=='planned':assert value['text']=='还没读' and f['registeredStatus']=='planned',name - details=[x for x in labels if x['role'].startswith('privacy-detail-')] - if not f['expanded']:assert not details,name;continue - expected=[(key,src[column]) for key,column in [('读到的','reads'),('为什么','purpose'),('去了哪里','destination'),('什么时候读','activation'),('开关','toggle'),('合起来能看出什么','combined')] if src.get(column)] - interfaces=sorted(set(s['symbol'] for s in registry['sites'] if s['signal']==f['rowID'])) - if sample=='technical' and interfaces:expected.append(('接口','、'.join(interfaces))) - assert len(details)==len(expected)*2,name - prev=None;expected_font=max(10,title['font']-1) - for i,(key,text) in enumerate(expected): - label,body=details[i*2:i*2+2] - assert label['role']=='privacy-detail-label' and body['role']=='privacy-detail-body',name - assert label['text']=={'什么时候读':'什么时候','合起来能看出什么':'合起来看'}.get(key,key) and label['tooltip']==key,name - assert body['text']==text and body['tooltip']==text,name - for field in [label,body]: - assert field['font']==expected_font and field['wraps'] and field['maxLines']==0 and field['selectable'],name - assert field['frame']['height']+1>=field['cellFittingHeight'],(name,key,'cell text clipped',field['frame'],field['cellFittingHeight']) - a=label['frame'];b=body['frame'];assert abs(a['width']-(expected_font*4.4+4))<=0.5,name - assert b['x']-(a['x']+a['width'])>=5.5,name - assert abs(a['y']+a['height']-b['y']-b['height'])<0.1,name - top=max(a['y']+a['height'],b['y']+b['height']);bottom=min(a['y'],b['y']) - if prev is not None:assert prev-top>=3.9,name - prev=bottom;assert body['color'][3]>label['color'][3],name -sources=json.loads((out/'sources.json').read_text());assert len(sources)==518 -for p,h in sources.items():assert hashlib.sha256((root/p).read_bytes()).hexdigest()==h,p -renderer=json.loads((out/'renderer.json').read_text());assert renderer['swiftLanguageVersion']==6 and renderer['strictConcurrency'] and renderer['warningsAsErrors'] and not renderer['optimized'] -print(json.dumps({'status':'production_row_static_pass','frames':48,'sources':518,'font':'actual body-1; one current system setting only','content':'exact registry; all actual cell fitting height contained','page/source/actions/VO/privacy/motion/hardware':'not_run'},ensure_ascii=False)) diff --git a/tools/archive/design-qa-batch23-29/check-privacy-page-composition.py b/tools/archive/design-qa-batch23-29/check-privacy-page-composition.py deleted file mode 100644 index 704ea048..00000000 --- a/tools/archive/design-qa-batch23-29/check-privacy-page-composition.py +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env python3 -import json,sys,hashlib -from pathlib import Path -root=Path(__file__).resolve().parents[2];out=Path(sys.argv[1]);data=json.loads((out/'frames.json').read_text());registry=json.loads((root/'tools/privacy/registry.json').read_text()) -rows=[s for s in registry['signals'] if s.get('status')!='planned' and not s.get('appearsWith')] -expected=[s['id'] for g in registry['groups'] for s in rows if s['group']==(g['title'] if isinstance(g,dict) else g)] -groups=[g['title'] if isinstance(g,dict) else g for g in registry['groups']] -assert data['candidateOnly'] and not data['pageInstantiated'] -for key in ['sourcesRead','settingsWrites','globalInputEvents']:assert data[key]==0 -assert len(data['frames'])==12 -for f in data['frames']: - assert f['groups']==groups,(f['name'],'groups') - assert [r['id'] for r in f['rows']]==expected,(f['name'],'rows') - assert not f['visible'] and f['alpha']==0 and f['actions']==0 - assert abs(f['pageWidth']-640)<.1 - assert 0<=f['scrollY']<=f['maxScrollY']+.1 - if f['position']=='top':assert f['scrollY']==0 - if f['position']=='bottom':assert abs(f['scrollY']-f['maxScrollY'])<.1 - previous=None - for r in f['rows']: - assert abs(r['width']-608)<.5,(f['name'],r['id'],r['width']) - assert r['height']>20 - if previous is not None:assert r['y']>=previous-.5 - previous=r['y']+r['height'] - body=[x for x in r['fields'] if x['role']=='privacy-detail-body'] - assert bool(body)==f['expanded'] - for b in body: - assert b['height']+1>=b['neededHeight'],(f['name'],r['id'],'height',b) - assert b['x']>=0 and b['x']+b['width']<=r['width']+2.1 - for c in f['controls']: - assert c['mockTarget'] and c['width']>=20 and c['height']>10 - if f['expanded']: - known={'activities','calendar','downloads','login','autoUpdate','desktop','focusQuiet'} - switches=[c['row'] for c in f['controls'] if c['kind']=='switch'] - assert switches==[r['id'] for g in groups for r in rows if r['group']==g and r.get('switch') in known] - else:assert not any(c['kind']=='switch' for c in f['controls']) - assert any(c['kind']=='grant' for c in f['controls']) -sources=json.loads((out/'sources.json').read_text());assert len(sources)==518 -for rel,sha in sources.items():assert hashlib.sha256((root/rel).read_bytes()).hexdigest()==sha,rel -print('PASS 12 actual-component static composition frames; registry order, row geometry, mock controls, bounded scroll, current 518 inputs') diff --git a/tools/archive/design-qa-batch23-29/check-privacy-row-preview.py b/tools/archive/design-qa-batch23-29/check-privacy-row-preview.py deleted file mode 100644 index 50d3ac39..00000000 --- a/tools/archive/design-qa-batch23-29/check-privacy-row-preview.py +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env python3 -"""Actual native privacy row geometry only; no live privacy assurance.""" -import hashlib,json,math,sys -from pathlib import Path -root=Path(__file__).resolve().parents[2];out=Path(sys.argv[1]);r=json.loads((out/'frames.json').read_text()) -assert not r['pageInstantiated'] and r['plannedFixtureOnly'] -assert all(r[k]==0 for k in ['sourcesRead','grantActions','exports','settingsWrites','globalInputEvents']) -samples=['battery','missing','denied','granted','long-value','expanded','technical','planned'] -final='actualRowWidth' in r['frames'][0] -widths=[640,448,300] if final else [448,300] -assert len(r['frames'])==len(widths)*16 -for parent in ['light','dark']: - for width in widths: - frames=[f for f in r['frames'] if f['name'].startswith(f'{parent}-{width}-')] - assert [f['sample'] for f in frames]==samples - for f in frames: - name=f['name'];s=f['sample'];labels=f['labels'] - assert not f['visible'] and not f['active'] and f['alpha']==0 and f['mainThread'] and f['toggles']==0,name - if final:assert abs(f['actualRowWidth']-width)<0.1 and abs(f['hostWidth']-(width+32))<0.1,name - for l in labels: - b=l['frame'];assert all(math.isfinite(v) for v in b.values()),name - # AppKit text field control borders extend two points beyond text alignment rectangles. - assert b['x']>=-2.1 and b['x']+b['width']<=width+2.1,(name,l['text'][:20],b) - assert b['width']>0 and b['height']>0,name - assert b['y']>=-2.1 and b['y']+b['height']<=f['height']+2.1,(name,l['text'][:20],b) - title=labels[0];subtitle=labels[1];value=labels[2] - if final:assert title['tooltip']==title['text'],name - assert subtitle['tooltip']==subtitle['text'],name - assert value['frame']['x']>=max(title['frame']['x']+title['frame']['width'],subtitle['frame']['x']+subtitle['frame']['width'])+5.5,name - if s=='battery':assert value['text']=='妙控鼠标 82%',name - if s=='missing':assert value['text']=='没读到',name - if s=='denied':assert value['text']=='去授权' and not any(b['isGrant'] for b in f['buttons']),name - if s in ['granted','expanded','technical']:assert value['text']=='已授权',name - if s=='long-value': - if final:assert value['breakMode']==5,name # actual AppKit middle truncation retains suffix - assert value['tooltip']==value['text'] and value['frame']['width']<=width*0.4+4.1,name - assert value['naturalWidth']>value['frame']['width'],name - if f['expanded']: - for prefix in ['读到的:','为什么:','去了哪里:','什么时候读:','开关:','合起来能看出什么:']: - assert any(l['text'].startswith(prefix) for l in labels),name - assert all(l['wraps'] and l['maxLines']==0 for l in labels[3:]),name - if s=='technical':assert any(l['text'].startswith('接口:') for l in labels),name - if s=='planned':assert value['text']=='还没读' and f['registeredStatus']=='planned',name -renderer=json.loads((out/'renderer.json').read_text());assert renderer['swiftLanguageVersion']==6 and renderer['strictConcurrency'] and renderer['warningsAsErrors'] and not renderer['optimized'] -sources=json.loads((out/'sources.json').read_text());assert len(sources)==518 -for p,h in sources.items():assert hashlib.sha256((root/p).read_bytes()).hexdigest()==h,p -print(json.dumps({'status':'actual_row_static_pass','frames':len(r['frames']),'sources':518,'page/live values/actions/privacy network assurance':'not_run','motion/hardware/readscreen':'not_run'},ensure_ascii=False)) diff --git a/tools/archive/design-qa-batch23-29/check-progress-quantity-preview.py b/tools/archive/design-qa-batch23-29/check-progress-quantity-preview.py deleted file mode 100644 index 2d01fe5c..00000000 --- a/tools/archive/design-qa-batch23-29/check-progress-quantity-preview.py +++ /dev/null @@ -1,382 +0,0 @@ -#!/usr/bin/env python3 -"""Consumer for render-native-surfaces.sh --swift6 output of ProgressQuantityPreview.swift. - -Reads ONLY ABS_OUTPUT/frames.json, sources.json, renderer.json plus the local -source files NAMED BY sources.json (for SHA256). It never touches UI, product -code, the network, permissions, or rewrites any other file. - -What this proves: the emitted static frame JSON is internally consistent with -the current on-disk sources and with the ProgressQuantityPreview.swift -control-path schema (26 frames = 2 appearances x 13 samples, exact real -quantities, identical corresponding actual quantity/geometry/core labels across -both parent appearances, hidden window/host flags, one completion, zero -windows/controllers/actions, and finite contained tile/picture root frames). -What it cannot prove: that anything was actually drawn, composited, or -presented. The consumer runs no drawing, no compositor, no GPU and no hardware -path, so visual/compositor/motion claims stay `not_run`. A clean ast.parse of -this script is NOT behavioural evidence. - -Design-review boundary: naturalQuantityWidth vs available tile width minus 20 -(and minus ring diameter when a ring is shown) is only ever REPORTED. It is not -failed here. If an overflow is observed the script records the issue and exits -with `status: design_review_required` instead of pass, because the main design -owns the decision. This consumer does NOT claim the draw amount means the task -is done, and it does NOT copy any product algorithm or alternative -activity/motion model. -""" -import ast, hashlib, json, math, sys -from pathlib import Path - -# 13 samples in the exact order emitted by ProgressQuantityPreview.swift. -SAMPLES = ["zero", "percent", "complete-value", "count", "large-count", - "huge-count", "indeterminate", "unknown", "paused", "ended", - "stale", "long", "three"] -# parent appearance name -> canvasDark expectation. -APPEARANCES = {"light": True, "dark": True} - -# Exact real quantity strings (String(describing:) of NotchActivity.Quantity). -QUANTITY = { - "zero": "fraction(0.0)", - "percent": "fraction(0.42)", - "complete-value": "fraction(1.0)", - "count": "count(2, 9)", - "large-count": "count(999, 1000)", - "huge-count": "count(999999, 1000000)", - "indeterminate": "indeterminate", - "unknown": "unknown", - "paused": "fraction(0.42)", - "ended": "fraction(1.0)", - "stale": "fraction(0.42)", - "long": "fraction(0.42)", - "three": None, # per-tile: fraction(0.42) | count(2, 9) | indeterminate -} -THREE_QUANTITIES = ["fraction(0.42)", "count(2, 9)", "indeterminate"] - -# Samples that are .count(...) with a parseable (completed, total) pair. -COUNT_PAIRS = {"count": (2, 9), "large-count": (999, 1000), - "huge-count": (999999, 1000000)} -# Samples whose quantity is indeterminate / unknown. -NON_NUMERIC = {"indeterminate", "unknown"} - -# Real, distinct per-sample flags emitted by the entry. -PAUSED = {"paused"} -ENDED = {"ended"} # item.endedAt = 1 -> isEnded true -STALE = {"stale"} -COMPLETE = {"complete-value"} # fraction(1) value ends the quantity, not the row - -TILES = "tiles" -WINDOWS = 0 -ACTIONS = 0 -SOURCE_CONTROLLERS = 0 -SOURCE_COUNT = 518 -RING_DIAMETER = 0.0 # text gap reserved for the ring when a ring layer is shown - - -def finite(value, label): - assert isinstance(value, (int, float)) and not isinstance(value, bool), \ - f"{label}: not a number: {value!r}" - assert math.isfinite(value), f"{label}: not finite: {value!r}" - return value - - -def finite_nonnegative(value, label): - value = finite(value, label) - assert value >= 0, f"{label}: negative: {value!r}" - return value - - -def parse_count(qtext): - """Parse 'count(completed, total)' -> (completed, total) or None.""" - if not isinstance(qtext, str) or not qtext.startswith("count(") or not qtext.endswith(")"): - return None - inner = qtext[len("count("):-1] - parts = [p.strip() for p in inner.split(",")] - if len(parts) != 2: - return None - try: - return int(parts[0]), int(parts[1]) - except ValueError: - return None - - -def has_ring(tile): - """True when the optional progress part shows a ring (shape layer w/ stroke).""" - for layer in tile.get("layerChildren") or []: - if isinstance(layer, dict) and "strokeEnd" in layer: - return True - return False - - -def check_part(tile, label, expect_hidden=None, expect_indeterminate=None): - """Validate the optional part model mirrors the tile quantity and geometry.""" - assert "partQuantity" in tile, f"{label}: missing actual progress part" - assert tile.get("partHidden") in (True, False), f"{label}: partHidden must be bool" - if expect_hidden is not None: - assert tile["partHidden"] is expect_hidden, \ - f"{label}: partHidden expected {expect_hidden} got {tile['partHidden']!r}" - assert tile["partQuantity"] == tile.get("quantity"), \ - f"{label}: part.model.quantity {tile['partQuantity']!r} != tile quantity {tile.get('quantity')!r}" - assert isinstance(tile.get("layerChildren"), list), f"{label}: layerChildren must be a list" - indeterminate_shown = any( - isinstance(layer, dict) and layer.get("hidden") is False - for layer in tile["layerChildren"]) - if expect_indeterminate is not None: - assert indeterminate_shown is expect_indeterminate, \ - f"{label}: indeterminate layer shown expected {expect_indeterminate} got {indeterminate_shown}" - return indeterminate_shown - - -def check_tile_common(tile, label, frame_w, frame_h): - # finite + contained tile frame. - assert isinstance(tile.get("frame"), dict), f"{label}: missing frame" - fx, fy = finite(tile["frame"].get("x"), f"{label}.frame.x"), finite(tile["frame"].get("y"), f"{label}.frame.y") - fw = finite_nonnegative(tile["frame"].get("width"), f"{label}.frame.width") - fh = finite_nonnegative(tile["frame"].get("height"), f"{label}.frame.height") - assert fx >= 0 and fy >= 0 and fx + fw <= frame_w and fy + fh <= frame_h, \ - f"{label}: tile frame {tile['frame']!r} not contained in {frame_w}x{frame_h}" - - # optional part root frame must also be finite and contained, and the - # optional part must not touch real UI (no window/controller/action fields). - if "partFrame" in tile: - pf = tile["partFrame"] - px, py = finite(pf.get("x"), f"{label}.partFrame.x"), finite(pf.get("y"), f"{label}.partFrame.y") - pw = finite_nonnegative(pf.get("width"), f"{label}.partFrame.width") - ph = finite_nonnegative(pf.get("height"), f"{label}.partFrame.height") - assert tile.get("partHidden") is True or (px >= 0 and py >= 0 and px + pw <= fw and py + ph <= fh), \ - f"{label}: part root frame {pf!r} not contained in {frame_w}x{frame_h}" - for forbidden in ("window", "controller", "action", "actions", "windowActions"): - assert forbidden not in tile, f"{label}: optional part touched real UI via {forbidden!r}" - - # AX value must equal quantityText. - assert tile.get("accessibilityValue") == tile.get("quantityText"), \ - f"{label}: accessibilityValue {tile.get('accessibilityValue')!r} != quantityText {tile.get('quantityText')!r}" - # tooltip must include the full subtitle. - subtitle = tile.get("subtitle") - tooltip = tile.get("tooltip") - assert isinstance(tooltip, str) and isinstance(subtitle, str), f"{label}: tooltip/subtitle must be strings" - assert subtitle in tooltip, f"{label}: tooltip {tooltip!r} does not include full subtitle {subtitle!r}" - return fw - - -def check_tile(tile, label, sample, index, frame_w, frame_h): - # identity / core labels. - assert isinstance(tile.get("id"), int) and not isinstance(tile["id"], bool), f"{label}: bad tile id" - assert isinstance(tile.get("title"), str) and tile["title"], f"{label}: bad title" - assert isinstance(tile.get("subtitle"), str), f"{label}: bad subtitle" - assert tile.get("dark") is True, f"{label}: hardware host must stay dark" - assert isinstance(tile.get("accessibility"), str) and tile["accessibility"], f"{label}: bad accessibility label" - - # exact real quantity. - expected_q = THREE_QUANTITIES[index] if sample == "three" else QUANTITY[sample] - assert tile.get("quantity") == expected_q, \ - f"{label}: quantity expected {expected_q!r} got {tile.get('quantity')!r}" - - # quantityText presence: indeterminate/unknown have no numeric text. - qtext = tile.get("quantityText") - if expected_q in NON_NUMERIC: - assert qtext is None, f"{label}: quantityText should be null for {sample} got {qtext!r}" - else: - assert isinstance(qtext, str) and qtext, f"{label}: quantityText required for {sample}" - - # count parses to the exact real (completed, total) and stays consistent. - if sample in COUNT_PAIRS: - pair = parse_count(tile["quantity"]) - assert pair == COUNT_PAIRS[sample], f"{label}: count pair {pair!r} != {COUNT_PAIRS[sample]!r}" - assert pair[0] <= pair[1], f"{label}: count pair ordering invalid: {pair!r}" - elif sample == "three" and expected_q.startswith("count("): - assert parse_count(expected_q) == (2, 9), f"{label}: three[1] count mismatch" - - # paused / ended / stale flags are exactly per sample. - assert tile.get("paused") is (sample in PAUSED), f"{label}: paused flag mismatch" - assert tile.get("ended") is (sample in ENDED), f"{label}: ended flag mismatch" - assert tile.get("stale") is (sample in STALE), f"{label}: stale flag mismatch" - - # percent value 1 is NOT ended; ended comes from the separate ended flag. - if sample in COMPLETE: - assert tile.get("quantity") == "fraction(1.0)", f"{label}: complete-value must be fraction(1.0)" - assert tile.get("ended") is False, f"{label}: fraction(1) value must not imply ended" - # do NOT assert draw amount means task done; only the explicit ended flag says so. - if sample == "ended": - assert tile.get("ended") is True, f"{label}: ended flag must be true" - - fw = check_tile_common(tile, label, frame_w, frame_h) - - # part model must match the tile quantity exactly. - expect_hidden = expected_q.startswith("count(") or expected_q == "unknown" - expect_ind = True if expected_q == "indeterminate" else None - check_part(tile, label, expect_hidden=expect_hidden, expect_indeterminate=expect_ind) - - layers = tile["layerChildren"] - assert len(layers) == 3, f"{label}: expected actual track/fill/arc layers" - if expected_q.startswith("fraction("): - value = float(expected_q[len("fraction("):-1]) - assert layers[0]["hidden"] is False and layers[2]["hidden"] is True, f"{label}: wrong ring layers" - assert layers[1]["hidden"] is (value == 0), f"{label}: zero must not leave round-cap dot" - assert abs(layers[1]["strokeEnd"] - value) < 0.00001, f"{label}: actual fill end differs" - elif expected_q == "indeterminate": - assert [x["hidden"] for x in layers] == [True, True, False], f"{label}: wrong indeterminate layers" - else: - assert all(x["hidden"] for x in layers), f"{label}: count/unknown must not paint invented ring" - - # Natural width vs available tile width minus 20 (and ring diameter when shown). - natural = finite_nonnegative(tile.get("naturalQuantityWidth"), f"{label}.naturalQuantityWidth") - available = fw - 20.0 - (tile["partFrame"]["width"] + 4 if tile["drawing"] in ("ring", "spinningArc") else 0.0) - rendered = tile.get("renderedQuantityText", qtext or "") - width = finite_nonnegative(tile.get("renderedQuantityWidth", natural), f"{label}.renderedQuantityWidth") - if "renderedQuantityText" in tile: - expected = "999999/1000000" if sample == "huge-count" else (qtext or "") - assert rendered == expected, f"{label}: rendered exact quantity {rendered!r} != {expected!r}" - assert abs(tile["quantityAvailableWidth"] - available) < 0.01, f"{label}: available glyph width differs" - return { - "renderedText": rendered, "renderedWidth": width, - "label": label, - "quantity": tile.get("quantity"), - "quantityText": qtext, - "naturalWidth": natural, - "availableWidth": available, - "overflow": width > available, - } - - -def main(): - assert len(sys.argv) == 2, "usage: check-progress-quantity-preview.py ABS_OUTPUT" - out = Path(sys.argv[1]).resolve() - root = Path(__file__).resolve().parents[2] - - frames_path = out / "frames.json" - sources_path = out / "sources.json" - renderer_path = out / "renderer.json" - for required in (frames_path, sources_path, renderer_path): - assert required.is_file(), f"missing required output: {required.name}" - - report = json.loads(frames_path.read_text()) - frames = report.get("frames") - assert isinstance(frames, list), "frames must be a list" - - # --- report-level schema / identity ------------------------------------ - assert report.get("sourceControllers") == SOURCE_CONTROLLERS, \ - f"sourceControllers must be {SOURCE_CONTROLLERS} got {report.get('sourceControllers')!r}" - assert report.get("actions") == ACTIONS, \ - f"actions must be {ACTIONS} got {report.get('actions')!r}" - - # --- 26 frames: aqua/dark x 13 samples --------------------------------- - assert len(frames) == 26, f"expected 26 frames got {len(frames)}" - by_appearance = {} - for frame in frames: - name = frame.get("name") - assert isinstance(name, str) and "-" in name, f"bad frame name: {name!r}" - appearance, sample = name.split("-", 1) - assert appearance in APPEARANCES, f"unexpected appearance in frame name: {name!r}" - assert frame.get("sample") == sample, f"{name}: sample field mismatch" - assert sample in SAMPLES, f"{name}: unexpected sample {sample!r}" - assert frame.get("windows") == WINDOWS, f"{name}: windows must be {WINDOWS} got {frame.get('windows')!r}" - assert frame.get("completions") == 1, f"{name}: completions must be 1 got {frame.get('completions')!r}" - assert frame.get("canvasDark") is APPEARANCES[appearance], \ - f"{name}: canvasDark mismatch" - # hidden window alpha0 activefalse. - assert frame.get("alpha") == 0, f"{name}: alpha must be 0 got {frame.get('alpha')!r}" - assert frame.get("visible") is False, f"{name}: visible must be false" - assert frame.get("active") is False, f"{name}: active must be false" - by_appearance.setdefault(appearance, []).append(frame) - - for appearance in APPEARANCES: - names = [f["sample"] for f in by_appearance.get(appearance, [])] - assert names == SAMPLES, f"{appearance}: sample order/sequence mismatch: {names}" - - # --- per-frame checks --------------------------------------------------- - observed = [] - issues = [] - for appearance in APPEARANCES: - for frame in by_appearance[appearance]: - sample = frame["sample"] - label = frame["name"] - width = finite_nonnegative(frame.get("width"), f"{label}.width") - height = finite_nonnegative(frame.get("height"), f"{label}.height") - tiles = frame.get(TILES) - assert isinstance(tiles, list), f"{label}: tiles must be a list" - - expected_tiles = 3 if sample == "three" else 1 - assert len(tiles) == expected_tiles, \ - f"{label}: expected {expected_tiles} tiles got {len(tiles)}" - - for index, tile in enumerate(tiles): - tl = f"{label}[{index}]" - obs = check_tile(tile, tl, sample, index, width, height) - observed.append((appearance, obs)) - if obs["overflow"]: - issues.append( - f"{label}[{index}]: naturalQuantityWidth {obs['naturalWidth']:.2f} " - f"exceeds available {obs['availableWidth']:.2f}") - - # --- identical corresponding actual quantity/geometry/core labels ------ - light = {f["sample"]: f for f in by_appearance["light"]} - dark = {f["sample"]: f for f in by_appearance["dark"]} - for sample in SAMPLES: - lt, dt = light[sample]["tiles"], dark[sample]["tiles"] - assert len(lt) == len(dt), f"{sample}: tile count differs across appearances" - for index, (a, b) in enumerate(zip(lt, dt)): - for key in ("id", "title", "kind", "subtitle", "quantity", "quantityText", - "stale", "ended", "shelf", "drawing", "paused", - "accessibility", "accessibilityValue", "tooltip", - "naturalQuantityWidth", "partHidden", "partQuantity", - "layerChildren", "renderedQuantityText", "renderedQuantityWidth", "quantityAvailableWidth"): - if key in a or key in b: - assert a.get(key) == b.get(key), \ - f"{sample}[{index}]: {key} differs across appearances: {a.get(key)!r} != {b.get(key)!r}" - assert a.get("frame") == b.get("frame"), \ - f"{sample}[{index}]: tile geometry differs across appearances" - - # --- renderer.json ------------------------------------------------------ - renderer = json.loads(renderer_path.read_text()) - assert renderer.get("swiftLanguageVersion") == 6, "renderer swiftLanguageVersion must be 6" - assert renderer.get("strictConcurrency") is True, "renderer strictConcurrency must be true" - assert renderer.get("warningsAsErrors") is True, "renderer warningsAsErrors must be true" - assert renderer.get("optimized") is False, "renderer optimized must be false" - - # --- sources.json: exactly 518 entries, SHA256 matches current disk ---- - sources = json.loads(sources_path.read_text()) - assert isinstance(sources, dict) and len(sources) == SOURCE_COUNT, \ - f"sources.json must contain {SOURCE_COUNT} entries got {len(sources)}" - for name, digest in sources.items(): - local = root / name - assert local.is_file(), f"missing local source: {name}" - actual = hashlib.sha256(local.read_bytes()).hexdigest() - assert actual == digest, f"source drift for {name}: {actual} != {digest}" - - # --- report per-state observations; overflow is an issue, not a pass ---- - for appearance, obs in observed: - print(json.dumps({ - "frame": obs["label"], - "observation": ("renderedWidth_exceeds_available" if obs["overflow"] - else "renderedWidth_within_available"), - "renderedText": obs["renderedText"], "renderedWidth": obs["renderedWidth"], - "naturalWidth": obs["naturalWidth"], - "availableWidth": obs["availableWidth"], - "quantity": obs["quantity"], - "quantityText": obs["quantityText"], - "cache_static_only": "schema_checked_visual_by_main", - "hardware": "not_run", - "compositor": "not_run", - }, sort_keys=True)) - - status = "design_review_required" if issues else "pass_static_schema_visual_inconclusive" - print(json.dumps({ - "status": status, - "frames": len(frames), - "tiles_observed": len(observed), - "sources_sha256": len(sources), - "schema_identity_containment": "checked", - "renderedWidth_overflow_issues": issues, - "quantity_meaning_draw_amount": "not_asserted", - "cache_static_only": "schema_checked_visual_by_main", - "hardware": "not_run", - "compositor": "not_run", - "renderedWidth_overflow_is_issue": True, - "main_decision": "rendered glyph overflow is reported for design review, not failed here", - }, sort_keys=True)) - - -# Prove this file parses as valid Python before trusting it as a consumer. -# This check does not exercise the code paths above. -ast.parse(Path(__file__).read_text()) -main() diff --git a/tools/archive/design-qa-batch23-29/check-settings-shade-language-preview.py b/tools/archive/design-qa-batch23-29/check-settings-shade-language-preview.py deleted file mode 100644 index 7a651240..00000000 --- a/tools/archive/design-qa-batch23-29/check-settings-shade-language-preview.py +++ /dev/null @@ -1,234 +0,0 @@ -#!/usr/bin/env python3 -"""第27批消费者:设置「卷帘」页/「高级」页/外壳的中英夹具。 -输入:AFTER 输出目录;可选 --baseline BEFORE 输出目录(改动前同夹具跑出的 zh 基线)。 -断言(只覆盖夹具能证明的范围;真机可见效果不在此列): - 1. 帧齐全:zh/en × 浅/深 × 696/560 卷帘页 + 高级页 zh / 同进程重建 en / 重建回 zh。 - 2. zh 回归:改动后的 zh 帧包含改动前 zh 帧的每一处文字(标题/控件/提示/读屏标签), - 标签几何(x/宽/高)逐项一致(卷帘页连 y 一并核对);多出来的文字只允许语言行白名单。 - 3. en 无汉字(白名单只有语言名“简体中文”),并含关键英文锚点;外壳侧栏、语言行都在。 - 4. 同进程重建:en 后含语言行英文;切回 zh 后与初始 zh 完全一致(立即生效的组件级证据)。 - 5. 夹具声明零持久偏好写、零权限弹窗;读到的系统状态原样记录。 - 6. 输入身份当前:sources.json 每项 SHA 与磁盘一致;renderer.json 是 Swift6 严格未优化。 -""" -import hashlib -import json -import re -import sys -from pathlib import Path - -ROOT = Path(__file__).resolve().parents[2] -AFTER = Path(sys.argv[1]).resolve() -BASELINE = None -if "--baseline" in sys.argv: - BASELINE = Path(sys.argv[sys.argv.index("--baseline") + 1]).resolve() - -FAILURES = [] -HAN = re.compile(r"[\u4e00-\u9fff]") -LANGUAGE_ROW_ALLOWLIST = {"语言", "界面语言", "切换后立即生效", "跟随系统", "简体中文", "English"} -EN_HAN_ALLOWLIST = {"简体中文"} - - -def check(ok, label): - if not ok: - FAILURES.append(label) - - -def frame_map(out): - data = json.loads((out / "frames.json").read_text()) - return data, {f["name"]: f for f in data["frames"]} - - -def texts(frame): - out = set() - for key in ("labels",): - for item in frame.get(key, []): - out.add(item["text"]) - for item in frame.get("buttons", []): - out.add(item["title"]) - for item in frame.get("segments", []): - out.update(item.get("labels", [])) - for item in frame.get("popups", []): - out.update(item.get("items", [])) - out.update(frame.get("tooltips", [])) - return out - - -def ax_texts(frame): - return set(frame.get("axLabels", [])) - - -def label_geometry(frame): - return {item["text"]: (item["x"], item["y"], item["width"], item["height"]) - for item in frame.get("labels", [])} - - -after_data, after = frame_map(AFTER) -required = [ - "zh-light-696-shade", "zh-dark-696-shade", "zh-light-560-shade", "zh-dark-560-shade", - "en-light-696-shade", "en-dark-696-shade", - "zh-aqua-900-advanced", "rebuild-en-advanced", "rebuild-zh-advanced", -] -for name in required: - check(name in after, f"missing frame {name}") - -check(after_data.get("preferencesWritten") is False, "after fixture must not write preferences") -check(after_data.get("persistentDefaultsTouched") is False, "after fixture must not touch persistent defaults") -check(after_data.get("permissionPrompts") == 0, "after fixture must not prompt for permissions") -check(isinstance(after_data.get("permissionReads"), dict) and after_data["permissionReads"], - "after fixture must record the non-prompting permission reads") - -if BASELINE is not None: - before_data, before = frame_map(BASELINE) - check(before_data.get("preferencesWritten") is False, "baseline fixture must not write preferences") - for name in ["zh-light-696-shade", "zh-dark-696-shade", "zh-light-560-shade", "zh-dark-560-shade", - "zh-aqua-900-advanced"]: - check(name in before and name in after, f"baseline frame {name}") - if name not in before or name not in after: - continue - b, a = before[name], after[name] - extra = texts(a) - texts(b) - allowed = set() if b["surface"] == "shade" else LANGUAGE_ROW_ALLOWLIST - check(extra <= allowed, (name, "unexpected new text", sorted(extra - allowed)[:6])) - missing = texts(b) - texts(a) - # 逐条放宽(护栏要求:逐条、写理由、留证据)——本批唯一一条"文案被替换"的豁免: - # #39(2026-10-12)给「双击标题栏收起窗口」的副标题追加了修饰键出口 - # ("…;按住 Option 双击不收起"),是产品有意变更,不是漏译/回归。 - # 旧文案整句被新文案取代,故按“超集”判据必然报 text lost;这里逐条列出映射, - # 只豁免这三条(系统双击动作的三种分支各一条),其余任何 missing 仍然失败。 - # 证据:docs/releases/v1.0.16-acceptance/issue39-evidence.md(截图+文案对照)。 - SUBTITLE_SUPERSEDED = { - "三击标题栏会缩放窗口": "三击标题栏会缩放窗口;按住 Option 双击不收起", - "三击标题栏会最小化窗口": "三击标题栏会最小化窗口;按住 Option 双击不收起", - "在任意窗口的标题栏上双击": "在任意窗口的标题栏上双击;按住 Option 双击不收起", - } - allowed_missing = {old for old, new in SUBTITLE_SUPERSEDED.items() if new in texts(a)} - missing = missing - allowed_missing - check(not missing, (name, "text lost vs baseline", sorted(missing)[:6])) - ax_extra = ax_texts(a) - ax_texts(b) - check(ax_extra <= allowed, (name, "unexpected new a11y text", sorted(ax_extra - allowed)[:6])) - ax_missing = ax_texts(b) - ax_texts(a) - check(not ax_missing, (name, "a11y text lost vs baseline", sorted(ax_missing)[:6])) - bg, ag = label_geometry(b), label_geometry(a) - # 逐条放宽(护栏要求:逐条、写理由、留证据)——这两条是 wrappingLabel 的折行/ - # 自然宽歧义,改动前就存在且基线自身不稳定,不是本批改动: - # - "需要已绑定身份的蓝牙读回来源"(WS2SupplementPane 四条 gate 注记之一, - # wrappingLabel):before 基线同一 run 里 x 在 82/484.5/348.5 之间漂(dark-696 - # 四条注记三条在行中位、一条在行首),after 四帧全部稳定 82;两树该文件几何 - # 代码同构。证据:.statem/history-design-twentyseventh-round/qa/gate2-geometry-drift.md - # - "名单里还没有 App"(PrivateAppListSettings/WS2FocusSettings 的 wrappingLabel - # 空态行):before 基线 dark-560 宽 94、light-560 宽 476(同一 run 内不一致), - # after 四帧全部稳定;固有宽度歧义同上。 - WRAP_AMBIGUOUS = {"需要已绑定身份的蓝牙读回来源", "名单里还没有 App"} - for text, (bx, by, bw, bh) in bg.items(): - if text not in ag: - continue - x, y, w, h = ag[text] - if text in WRAP_AMBIGUOUS: - continue - check(abs(x - bx) <= 0.5 and abs(w - bw) <= 0.5, (name, "geometry x/w drift", text, bx, x, bw, w)) - if b["surface"] == "shade": - check(abs(y - by) <= 0.5 and abs(h - bh) <= 0.5, (name, "geometry y/h drift", text, by, y, bh, h)) - -for name in ["en-light-696-shade", "en-dark-696-shade", "rebuild-en-advanced"]: - frame = after.get(name) - if frame is None: - continue - all_text = texts(frame) | ax_texts(frame) - han = sorted(t for t in all_text if HAN.search(t) and t not in EN_HAN_ALLOWLIST) - check(not han, (name, "Han text in English frame", han[:6])) - -en_shade = after.get("en-light-696-shade", {}) -anchors = ["Glance", "Tuck into the notch", "File shelf", "Gap between windows", - "Play a sound on roll up and unroll", "Triggers", "Experiments", "Silent phrases", - "Focus & input", "Volume & brightness"] -missing_anchors = [a for a in anchors if a not in texts(en_shade)] -check(not missing_anchors, ("en shade anchors", missing_anchors)) - -en_advanced = after.get("rebuild-en-advanced", {}) -en_advanced_anchors = ["Advanced", "Language", "Interface language", "Reset defaults", - "Diagnostics log", "Accessibility"] -missing_advanced = [a for a in en_advanced_anchors if a not in texts(en_advanced)] -check(not missing_advanced, ("en advanced anchors", missing_advanced)) -check(en_advanced.get("windowTitle") == "WindowShade Settings", - ("en window title", en_advanced.get("windowTitle"))) -popup_items = {item for popup in en_advanced.get("popups", []) for item in popup.get("items", [])} -for item in ["Follow the system", "简体中文", "English"]: - check(item in popup_items, ("language popup item", item)) -for item in ["Roll up", "Mouse & trackpad", "Window browsing"]: - check(item in texts(en_advanced), ("en sidebar title", item)) - -zh_advanced = after.get("zh-aqua-900-advanced", {}) -zh_rebuild = after.get("rebuild-zh-advanced", {}) -check(texts(zh_advanced) == texts(zh_rebuild), "zh rebuild must match the initial zh window") -check(zh_advanced.get("windowTitle") == zh_rebuild.get("windowTitle") == "WindowShade 设置", - "zh window title across rebuild") -check(label_geometry(zh_advanced) == label_geometry(zh_rebuild), "zh rebuild geometry must match") - -# 门0 判据(卡点 B):夹具卷帘页的滑杆行必须落在产品真实形态上(labels 拉伸、控件 -# 自然宽右对齐,读数右缘贴行右缘)。实测:产品真窗口(走 allowHorizontalExpansion) -# 行宽 608 时 span=612(labels.leadingAnchor=行左缘,读数右缘有 4pt 视图内边距); -# 560 宽档行宽 472,span 相应为 476。C 形态(控件被拉宽、右侧留空段)readout.x≈299, -# span≈283,两种期望都覆盖不到。 -EXPECTED_SPANS = {"zh-light-696-shade": 612, "zh-dark-696-shade": 612, - "zh-light-560-shade": 476, "zh-dark-560-shade": 476} - -def readout_span(frame): - name_x = next((item["x"] for item in frame.get("labels", []) - if item["text"] in ("卷帘条半透明", "缩略图半透明")), None) - readout = next((item for item in frame.get("labels", []) if item["text"].endswith("%") - and len(item["text"]) <= 4), None) - if name_x is None or readout is None: - return None - return name_x, readout["x"] + readout["width"] - -product = after.get("product-zh-aqua-900-shade") -check(product is not None, "missing frame product-zh-aqua-900-shade") -if product: - span = readout_span(product) - check(span is not None, "product frame missing slider row labels") - if span: - check(abs((span[1] - span[0]) - 612) <= 0.5, - ("product frame must be in the natural-width form", - "span", span[1] - span[0], "expected", 612)) - for name, expected in EXPECTED_SPANS.items(): - frame = after.get(name) - if frame is None: - continue - span = readout_span(frame) - check(span is not None, (name, "missing slider row labels")) - if span: - check(abs((span[1] - span[0]) - expected) <= 0.5, - (name, "fixture shade layout must match product form", - "span", span[1] - span[0], "expected", expected)) - -for name in required: - png = AFTER / f"{name}.png" - check(png.is_file() and png.read_bytes()[:8] == b"\x89PNG\r\n\x1a\n", f"png {name}") - -renderer = json.loads((AFTER / "renderer.json").read_text()) -check(renderer["swiftLanguageVersion"] == 6 and renderer["strictConcurrency"] and renderer["warningsAsErrors"], - "renderer must be Swift 6 strict warnings-as-errors") -check(renderer["optimized"] is False, "renderer must be unoptimized") -sources = json.loads((AFTER / "sources.json").read_text()) -check(len(sources) > 500, f"sources count {len(sources)}") -for rel, sha in sources.items(): - path = ROOT / rel - if not path.is_file(): - check(False, f"missing source {rel}") - continue - check(hashlib.sha256(path.read_bytes()).hexdigest() == sha, f"source drift {rel}") - -if FAILURES: - print(f"FAIL {len(FAILURES)} checks:") - for item in FAILURES[:40]: - print(" -", item) - sys.exit(1) -print(json.dumps({ - "passed": True, - "after_frames": len(after), - "zh_regression_vs_baseline": BASELINE is not None, - "en_frames_checked": 3, - "same_process_rebuild": "zh→en→zh labels equal", - "permission_reads": after_data.get("permissionReads"), - "current_inputs": len(sources), -}, ensure_ascii=False)) diff --git a/tools/archive/design-qa-batch23-29/check-spring-velocity-units.py b/tools/archive/design-qa-batch23-29/check-spring-velocity-units.py deleted file mode 100644 index 14e83f61..00000000 --- a/tools/archive/design-qa-batch23-29/check-spring-velocity-units.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python3 -import json,sys,hashlib -from pathlib import Path -root=Path(__file__).resolve().parents[2];out=Path(sys.argv[1]);x=json.loads((out/'samples.json').read_text());r=x['records'] -assert x['mainThread'] and x['delegateNil'] and not x['visible'] and not x['active'] and x['alpha']==0 and not x['productEntry'] and x['globalInputEvents']==0 -assert len(r)==180 -usable=0;maximum_error=0 -for offset in range(0,len(r),6): - group=r[offset:offset+6];assert len({s['time'] for s in group})==1 - values={(s['distance'],s['initialVelocity']):s['presentationX'] for s in group} - assert all(v is not None for v in values.values()) - for speed in [-1,1]: - small=values[(100,speed)]-values[(100,0)];large=values[(200,speed)]-values[(200,0)] - if abs(small)>.1: - error=abs(large-2*small);maximum_error=max(maximum_error,error);assert error<.03 - assert abs(large-small)>.05 - usable+=1 -assert usable>=3,usable -inputs=json.loads((out/'inputs.json').read_text());assert len(inputs)==1 -for f,h in inputs.items():assert hashlib.sha256((root/f).read_bytes()).hexdigest()==h -analysis={'actual_api':'CASpringAnimation','evidence':'speed perturbation doubles when travel doubles','normalized_velocity_supported':True,'eligible_comparisons':usable,'maximum_double_scale_error':maximum_error,'compositor_accepted':False,'instantaneous_velocity_measured':False,'source_count':1} -(out/'analysis.json').write_text(json.dumps(analysis,indent=2)+'\n');print('PASS actual Cocoa API normalized velocity:',analysis) diff --git a/tools/archive/design-qa-batch23-29/check-usage-detail-preview.py b/tools/archive/design-qa-batch23-29/check-usage-detail-preview.py deleted file mode 100644 index 529f6fbd..00000000 --- a/tools/archive/design-qa-batch23-29/check-usage-detail-preview.py +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env python3 -"""Consume actual AppKit candidate outputs; no product integration acceptance.""" -import hashlib,json,math,sys -from pathlib import Path -root=Path(__file__).resolve().parents[2];out=Path(sys.argv[1]) -r=json.loads((out/'frames.json').read_text()) -assert r['candidateOnly'] and not r['productionIntegration'] and not r['contextSourceQualified'] -assert all(r[k]==0 for k in ['sourceControllers','actions','networkReads','globalInputEvents']) -samples=['normal','unknown','context-only','expired','long-model','unknown-window','zero','shared'] -assert len(r['frames'])==16 -for parent in ['light','dark']: - fs=[f for f in r['frames'] if f['name'].startswith(parent+'-')] - assert [f['sample'] for f in fs]==samples - for f in fs: - name=f['name'];s=f['sample'];fields={v['id']:v for v in f['fields']};w=f['windows'];page=f['pageSize'] - assert not f['visible'] and not f['active'] and f['alpha']==0 and f['mainThread'] and f['completions']==1,name - assert page['width']==520 and 68<=page['height']<=480,name - for v in fields.values(): - b=v['frame'];assert all(math.isfinite(x) for x in b.values()),name - assert b['x']>=0 and b['y']>=0 and b['x']+b['width']<=520 and b['y']+b['height']<=page['height']+0.1,(name,v['id'],b) - assert v['dark'] and v['tooltip']==v['text'],(name,v['id']) - expected=[] if s in ['unknown','context-only','shared'] else [5,40] if s=='expired' else [88] if s=='unknown-window' else [0] if s=='zero' else [95,7] - assert [v['leftPercent'] for v in w]==expected,name - if len(w)==2: - assert [v['name'] for v in w]==['五小时额度','七天额度'],name - assert [v['windowMinutes'] for v in w]==[300,10080],name - for i,v in enumerate(w): - assert fields[f'window-{i}-amount']['text']==f"剩 {v['leftPercent']}%",name - assert fields[f'window-{i}-amount']['font']==22,name - if v['recovery'] is not None:assert fields[f'window-{i}-recovery']['text']==v['recovery'],name - if s=='expired':assert w[0]['recovery']=='等待用量更新',name - if s=='unknown-window':assert w[0]['name']=='账户额度' and w[0]['recovery'] is None,name - if s=='shared': - assert 'model' not in fields and 'context' not in fields and fields['project']['text']=='编程会话',name - assert fields['account-empty']['text']=='用量已隐藏',name - else: - m=fields['model'];assert m['renderer']=='TextKit' and m['maximumNumberOfLines']==2 and not m['editable'] and not m['selectable'],name - assert m['truncated']==(s=='long-model'),name - assert m['frame']['height']<=32 and m['frame']['height']>0,name - assert fields['context']['text']==('暂未读到上下文' if s=='unknown' else '上下文占用 25%'),name - # Actual sibling rectangles: columns don't overlap and account content precedes session. - for i in range(len(w)): - a=fields[f'window-{i}-amount']['frame'];b=fields[f'window-{i}-name']['frame'] - assert b['x']+b['width']+16<=a['x']+0.1,name - assert fields['account-heading']['frame']['y']>fields['session-heading']['frame']['y'],name -for s in samples: - a=next(f for f in r['frames'] if f['name']=='light-'+s);b=next(f for f in r['frames'] if f['name']=='dark-'+s) - assert a['fields']==b['fields'] and a['windows']==b['windows'],s -renderer=json.loads((out/'renderer.json').read_text());assert renderer['swiftLanguageVersion']==6 and renderer['strictConcurrency'] and renderer['warningsAsErrors'] and not renderer['optimized'] -sources=json.loads((out/'sources.json').read_text());assert len(sources)==518 -for p,h in sources.items():assert hashlib.sha256((root/p).read_bytes()).hexdigest()==h,p -print(json.dumps({'status':'candidate_static_pass','frames':16,'sources':518,'integration':'not_run','context_source':'unqualified_synthetic','motion_hardware':'not_run'},ensure_ascii=False)) diff --git a/tools/archive/design-qa-batch23-29/check-usage-quantity-preview.py b/tools/archive/design-qa-batch23-29/check-usage-quantity-preview.py deleted file mode 100644 index b950e44b..00000000 --- a/tools/archive/design-qa-batch23-29/check-usage-quantity-preview.py +++ /dev/null @@ -1,60 +0,0 @@ -#!/usr/bin/env python3 -"""Consume actual hidden native usage output. JSON/finite/model identity checks -and AppKit glyph measurements are control/static evidence, not actual account, -VoiceOver, compositor, signed product lifecycle or hardware acceptance. -""" -import hashlib,json,math,sys -from pathlib import Path -root=Path(__file__).resolve().parents[2] -out=Path(sys.argv[1]).resolve() -report=json.loads((out/'frames.json').read_text()) -assert report['sourceControllers']==0 and report['actions']==0 -frames=report['frames'] -samples=['normal','low','low-updated','zero','unknown','expired','weekly','long-model','waiting','shared'] -assert len(frames)==20 -expect={'normal':24,'low':5,'low-updated':4,'zero':0,'unknown':None,'expired':5,'weekly':7,'long-model':24,'waiting':5,'shared':24} -for parent in ['light','dark']: - batch=[f for f in frames if f['name'].startswith(parent+'-')] - assert [f['sample'] for f in batch]==samples - for f in batch: - name=f['name'];sample=f['sample'];u=f['usage'];tile=f['tiles'][0] - assert len(f['tiles'])==1 and f['windows']==0 and f['ongoing']==1 and f['completions']==1,name - assert f['visible'] is False and f['active'] is False and f['alpha']==0 and f['canvasDark'] is True,name - assert tile['dark'] is True and tile['id']==950 and tile['quantity']=='unknown',name - assert u['leftPercent']==expect[sample],name - amount=None if sample in ['unknown','waiting','shared'] else f"剩 {expect[sample]}%" - assert tile['quantityText']==amount, f'{name}: quota amount absent/stale: {tile["quantityText"]!r} != {amount!r}' - assert tile['accessibilityValue']==amount,name - assert tile['renderedQuantityText']==(amount or ''),name - assert tile['renderedQuantityWidth']<=tile['quantityAvailableWidth'],name - assert tile['partHidden'] is True and all(x['hidden'] for x in tile['layerChildren']),name - b=tile['frame'] - assert all(isinstance(v,(int,float)) and math.isfinite(v) for v in b.values()),name - assert b['x']>=0 and b['y']>=0 and b['x']+b['width']<=f['width'] and b['y']+b['height']<=f['height'],name - assert tile['subtitle'] in tile['tooltip'],name - if sample=='low-updated': - assert u['beforeUpdateValue']=='剩 5%' and u['afterUpdateValue']=='剩 4%' and u['retainedTileIdentity'] is True,name - assert u['samePhaseSignature'] is True,name # actual controller chooses quantity-only route - if sample=='shared': - assert tile['title']=='编程会话' and tile['subtitle']=='',name - assert '演示模型' not in tile['tooltip'] and '剩' not in tile['accessibility'],name - if sample=='expired': - assert u['recovery'] is None and '等待用量更新' in u['detail'],name - assert '马上恢复' not in u['subtitle'],name - assert u['compactText']=='剩 5%',name # clock cannot refill real quota - if sample=='unknown': - assert u['phase']=='running' and u['trailing']=='' and u['readingWindowCount']==0,name - if sample=='waiting': - assert u['phase']=='waiting' and u['trailing']=='等你',name - if sample=='weekly': - assert u['chosenWindowMinutes']==10080 and u['readingWindowCount']==2,name -for sample in samples: - a=next(f for f in frames if f['name']=='light-'+sample) - b=next(f for f in frames if f['name']=='dark-'+sample) - assert a['tiles']==b['tiles'] and a['usage']==b['usage'],sample -renderer=json.loads((out/'renderer.json').read_text()) -assert renderer['swiftLanguageVersion']==6 and renderer['strictConcurrency'] is True and renderer['warningsAsErrors'] is True and renderer['optimized'] is False -sources=json.loads((out/'sources.json').read_text());assert len(sources)==518 -for name,digest in sources.items(): - assert hashlib.sha256((root/name).read_bytes()).hexdigest()==digest,'source drift: '+name -print(json.dumps({'status':'pass_scoped_static_visual_motion_inconclusive','frames':len(frames),'source_count':len(sources),'quotas':'remaining actual projected glyph/AX; missing data no number; waiting wins','expiry':'waiting for new reading, clock does not refill','account/network/real source':'not_run','compositor/motion/hardware':'not_run'},ensure_ascii=False)) diff --git a/tools/archive/design-qa-batch23-29/check-welcome-state-preview.py b/tools/archive/design-qa-batch23-29/check-welcome-state-preview.py deleted file mode 100644 index 798054c3..00000000 --- a/tools/archive/design-qa-batch23-29/check-welcome-state-preview.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env python3 -"""Geometry/state consumer; layer z-order, live materials/focus and motion remain inconclusive.""" -import hashlib,json,sys -from pathlib import Path -root=Path(__file__).resolve().parents[2];out=Path(sys.argv[1]).resolve() -try: - frames=json.loads((out/'frames.json').read_text()) - states={'intro-stuck','intro-hint','intro-no-notch','origin-unanswered','origin-windows','origin-ipad','origin-mac'} - assert len(frames)==14 - for parent in ['light','dark']: - subset=[f for f in frames if f['image'].startswith(parent+'-')] - assert len(subset)==7 and {f['state'] for f in subset}==states - for f in subset: - assert f['width']==720 and f['height']==594 - assert f['syntheticStage'] and not f['visibleWindow'] and not f['activeApplication'] and f['alpha']==0 - assert not f['preferencesWritten'] and f['permissionQueries']==0 - assert f['nextEnabled']==(f['state']!='origin-unanswered') - title='刚换 Mac?从刘海开始。' if f['page']==0 else '你之前常用哪个?' - assert title in {v['text'] for v in f['labels']} - for label in f['labels']: - assert label['x']>=0 and label['y']>=0 and label['x']+label['width']<=720 and label['y']+label['height']<=594,label - assert (out/f['image']).read_bytes().startswith(b'\x89PNG\r\n\x1a\n') - sources=json.loads((out/'sources.json').read_text()) - for name,digest in sources.items():assert hashlib.sha256((root/name).read_bytes()).hexdigest()==digest,name - distinct={s:hashlib.sha256((out/f'light-{s}.png').read_bytes()).digest()!=hashlib.sha256((out/f'dark-{s}.png').read_bytes()).digest() for s in states} - assert all(distinct.values()),distinct - print(json.dumps({'passed':True,'geometry_state_frames':14,'current_inputs':len(sources),'system_appearance_pairs_distinct':7,'stage_z_order_live_material_focus_motion':'inconclusive','permission_functionality':'not_run'})) -except (AssertionError,ValueError,OSError,KeyError) as e: - print('Welcome geometry/state FAILED: '+str(e),file=sys.stderr);sys.exit(1) diff --git a/tools/archive/design-qa-batch23-29/check-window-browser-preview.py b/tools/archive/design-qa-batch23-29/check-window-browser-preview.py deleted file mode 100644 index 96496e2a..00000000 --- a/tools/archive/design-qa-batch23-29/check-window-browser-preview.py +++ /dev/null @@ -1,67 +0,0 @@ -#!/usr/bin/env python3 -"""Actual content-view state/layout checks; no compositor or real-window claims.""" -import hashlib -import json -import math -import sys -from pathlib import Path - -output = Path(sys.argv[1]).resolve() -root = Path(__file__).resolve().parents[2] -data = json.loads((output / 'frames.json').read_text()) -frames = data['frames'] -assert len(frames) == 36 and len({f['name'] for f in frames}) == 36 -assert data['controllerStarted'] is False and data['actions'] == 0 -expected = {'empty': 0, 'no-match': 0, 'one': 1, 'many': 6, - 'long-list': 7, 'busy-list': 7, 'narrow-list': 3, 'busy-unknown': 3, 'no-permission': 3} -for frame in frames: - assert frame['records'] == expected[frame['sample']] - assert frame['visible'] is False and frame['active'] is False and frame['alpha'] == 0 - assert frame['actions'] == frame['cachedThumbnails'] == 0 - assert (output / (frame['name'] + '.png')).stat().st_size > 1000 - assert frame['searchVisible'] == (frame['sample'] not in ['one', 'many']) - if frame['sample'] == 'empty': - assert '没有可显示的窗口' in frame['labels'] - if frame['sample'] == 'no-match': - assert '没有匹配的窗口' in frame['labels'] - if frame['sample'] == 'no-permission': - assert any('打开' in b['title'] and '屏幕录制' in b['title'] for b in frame['buttons']) - if frame['records']: - assert any(text.startswith('季度报告 — ') and len(text) > 100 for text in frame['labels']) - assert frame['visibleKeys'] - if frame['sample'] in ['one', 'many', 'busy-unknown']: - assert 'firstCard' in frame - for row in frame['rows']: - title, actions = row['title'], row['actions'] - assert title['x'] + title['width'] + 8 <= actions['x'] + 0.5, (frame['name'], row) - assert actions['width'] == row['requiredWidth'] - assert row['titleTooltip'] in frame['labels'] - for status in row['status']: - if status['text']: - box = status['frame'] - assert box['x'] + box['width'] + 8 <= actions['x'] + 0.5 - if frame['requestedMaterial'] == 'paper': - assert frame['material'] == 'paper' and not frame['insideGlass'] - if frame['material'] == 'glass': - assert frame['insideGlass'] - assert frame['corner'] == 13 - for key in ['list', 'search', 'header', 'footer']: - assert all(math.isfinite(v) for v in frame[key].values()) - for key in ['list'] + (['search'] if frame['searchVisible'] else []): - box = frame[key] - assert box['width'] > 0 and box['height'] > 0 - assert box['x'] >= -0.5 and box['y'] >= -0.5 - assert box['x'] + box['width'] <= frame['width'] + 0.5 - assert box['y'] + box['height'] <= frame['height'] + 0.5 - if 'firstCard' in frame: - card = frame['firstCard'] - for key in ['title']: - box = card[key] - assert box['width'] > 0 and box['height'] > 0 - assert box['x'] >= -0.5 and box['y'] >= -0.5 - assert box['x'] + box['width'] <= card['bounds']['width'] + 0.5 - assert box['y'] + box['height'] <= card['bounds']['height'] + 0.5 -for name, digest in json.loads((output / 'sources.json').read_text()).items(): - path = Path(name) if Path(name).is_absolute() else root / name - assert hashlib.sha256(path.read_bytes()).hexdigest() == digest, name -print('PASS 36 actual browser states, native layout, text/action separation, material host, source hashes; static only') diff --git a/tools/archive/design-qa-batch23-29/check-window-image-fixtures.py b/tools/archive/design-qa-batch23-29/check-window-image-fixtures.py deleted file mode 100644 index f48b6ba1..00000000 --- a/tools/archive/design-qa-batch23-29/check-window-image-fixtures.py +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env python3 -"""Independently decode PNG chunk CRC/filter0 bytes and inspect diagnostic boundaries.""" -import hashlib -import json -import struct -import sys -import zlib -from pathlib import Path - -out = Path(sys.argv[1]); manifest = json.loads((out / 'manifest.json').read_text()) -expected = {(640, 360), (480, 360), (360, 360), (360, 640), (900, 300)} -assert len(manifest['images']) == 5 -failures = [] -for item in manifest['images']: - raw = (out / item['file']).read_bytes() - assert hashlib.sha256(raw).hexdigest() == item['sha256'] and raw[:8] == b'\x89PNG\r\n\x1a\n' - offset, compressed, dims = 8, bytearray(), None - while offset < len(raw): - size = struct.unpack_from('>I', raw, offset)[0]; tag = raw[offset + 4:offset + 8] - payload = raw[offset + 8:offset + 8 + size] - crc = struct.unpack_from('>I', raw, offset + 8 + size)[0] - assert zlib.crc32(tag + payload) & 0xffffffff == crc - if tag == b'IHDR': - width, height, depth, color, compression, filtering, interlace = struct.unpack('>IIBBBBB', payload) - assert (depth, color, compression, filtering, interlace) == (8, 6, 0, 0, 0) - dims = width, height - if tag == b'IDAT': compressed.extend(payload) - offset += 12 + size - if tag == b'IEND': break - assert offset == len(raw) and dims in expected - expected.remove(dims) - assert dims == (item['width'], item['height']) - data = zlib.decompress(compressed); stride = width * 4 + 1 - assert len(data) == height * stride and all(data[y * stride] == 0 for y in range(height)) - def pixel(x, y): - start = y * stride + 1 + x * 4 - return list(data[start:start + 4]) - assert all(data[y * stride + 1 + x * 4 + 3] == 255 for y in range(height) for x in range(width)) - nonwhite = sum(pixel(x, y) != [255]*4 for y in range(height) for x in range(width) if min(x, y, width-1-x, height-1-y) < 8) - if nonwhite: failures.append({'file': item['file'], 'nonwhite_border_pixels': nonwhite}) - for corner, sample in item['cornerBlocks'].items(): - point = sample['center'] - expected_color = {'top_left':[255,0,0,255], 'top_right':[0,255,0,255], 'bottom_left':[0,0,255,255], 'bottom_right':[255,255,0,255]}[corner] - assert pixel(point['x'], point['y']) == sample['rgba'] == expected_color - assert pixel(width//2, height//2) == [200,200,200,255] - print(item['file'], width, height, 'border:', 'fail' if nonwhite else 'pass') -assert not expected -print(json.dumps({'status': 'fail' if failures else 'pass', 'images': 5, 'failures': failures})) -sys.exit(bool(failures)) diff --git a/tools/archive/design-qa-batch23-29/check-window-image-preview.py b/tools/archive/design-qa-batch23-29/check-window-image-preview.py deleted file mode 100644 index 8a8e6202..00000000 --- a/tools/archive/design-qa-batch23-29/check-window-image-preview.py +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env python3 -"""Consume actual AppKit image/card rectangles and source identities.""" -import hashlib -import json -import sys -from pathlib import Path - -out = Path(sys.argv[1]).resolve(); root = Path(__file__).resolve().parents[2] -data = json.loads((out / 'frames.json').read_text()); frames = data['frames'] -assert data['realSources'] == 0 and data['syntheticImages'] == 5 -assert len(frames) == 82 and len({f['name'] for f in frames}) == 82 -failures, narrow = [], [] -def contained(a, b): - return a['x'] >= b.get('x', 0)-0.01 and a['y'] >= b.get('y', 0)-0.01 and a['x']+a['width'] <= b.get('x',0)+b['width']+0.01 and a['y']+a['height'] <= b.get('y',0)+b['height']+0.01 -for f in frames: - assert not f['visible'] and not f['active'] and f['alpha'] == 0 and f['actions'] == 0 - assert not f['selected'] and f['hovered'] == f['expectedHovered'] and f['barHidden'] != (f['hovered'] or f['busy']) - assert f['globalInputEvents'] == 0 and f['localHoverCallbacks'] == int(f['hovered']) - assert f['busy'] == f['expectedBusy'] - buttons = f['buttons']; assert len(buttons) == 4 and len({b['id'] for b in buttons}) == 4 - assert sum(b['more'] and not b['hidden'] for b in buttons) == 1 - for button in buttons: - if not button['hidden']: - assert button['frame']['width'] == button['frame']['height'] == 28 - assert f['imagePresent'] and f['titleText'] == f['tooltip'] and f['wraps'] - assert (out / (f['name'] + '.png')).stat().st_size > 1000 - picture, title, bar, card = (f[k] for k in ['picture', 'title', 'bar', 'card']) - assert all(v['width'] > 0 and v['height'] > 0 for v in [picture, title, bar, card]) - assert contained(picture, card) and contained(title, card) and contained(bar, card) - assert title['y'] + title['height'] <= picture['y'] + 0.01 - assert bar['y'] >= title['y'] + title['height'] - ratio_error = abs(picture['width']/picture['height'] - f['imageWidth']/f['imageHeight']) - if ratio_error > 1/min(picture['width'], picture['height']): - failures.append({'name':f['name'],'aspect_error':ratio_error}) - assert f['thumbnailBounds']['width'] == picture['width'] and f['thumbnailBounds']['height'] == picture['height'] - assert f['thumbnailFrame']['width'] == picture['width'] and f['thumbnailFrame']['height'] == picture['height'] - assert abs(bar['width'] - f['barRequiredWidth']) < 0.01 - for button in buttons: - if not button['hidden']: - assert contained(button['frame'], {'width':bar['width'],'height':bar['height']}) - if (f['hovered'] or f['busy']) and picture['width'] >= 44 and not contained(bar, picture): - failures.append({'name':f['name'],'expected':'toolbar inside picture','bar':bar,'picture':picture}) - if f['hovered'] and bar['x'] < picture['x']: - narrow.append({'name':f['name'],'toolbar_left_overhang':picture['x']-bar['x'],'picture_width':picture['width']}) -reuse = [f for f in frames if 'reuseStage' in f] -assert len(reuse) == 2 and all(f['sameCard'] for f in reuse) -assert [f['barRequiredWidth'] for f in reuse] == [128, 64] -assert [sum(not b['hidden'] for b in f['buttons']) for f in reuse] == [4, 2] -sources = json.loads((out / 'sources.json').read_text()); assert len(sources) == 518 -for p,h in sources.items(): assert hashlib.sha256((root/p).read_bytes()).hexdigest() == h,p -print(json.dumps({'status':'fail' if failures else 'pass','actual_frames':len(frames),'failures':failures,'narrow_toolbar_facts':narrow})) -sys.exit(bool(failures)) diff --git a/tools/archive/design-qa-batch23-29/make-batch26-entry.py b/tools/archive/design-qa-batch23-29/make-batch26-entry.py deleted file mode 100644 index 27c46951..00000000 --- a/tools/archive/design-qa-batch23-29/make-batch26-entry.py +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/env python3 -"""第26批组合 QA 入口:把两个已有 QA enum(隐私组合、动效接力)去掉 @main, -由新 @main 在自己的 NSApp.run 里顺序调度;输出互不覆盖(page/ 与 motion/)。 -记录组合前源文件身份与生成入口身份,供证据绑定。""" -import hashlib -import json -import sys -from pathlib import Path - -ROOT = Path(__file__).resolve().parents[2] -QA = ROOT / "tools/design-qa" -PRIVACY = QA / "PrivacyPageCompositionPreview.swift" -MOTION = QA / "NotchRetargetPreview.swift" -ENTRY = QA / "Batch26CombinedEntry.swift" -MANIFEST = QA / "Batch26CombinedEntry.inputs.json" - -DISPATCHER = ''' -/// 第26批组合入口:新 @main 自有 NSApp.run,顺序调度隐私组合与动效接力两个套件; -/// 输出互不覆盖(page/ 静帧与登记表、motion/ 接力记录)。由 make-batch26-entry.py 生成。 -@main enum Batch26CombinedEntry { - static func main() { - _ = NSApplication.shared - NSApp.setActivationPolicy(.prohibited) - guard Thread.isMainThread, NSApp.delegate == nil else { fatalError("own main-thread entry only") } - let out = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true) - Task { @MainActor in - do { - try await PrivacyPageCompositionPreview.run(out.appendingPathComponent("page")) - try await NotchRetargetPreview.run(out.appendingPathComponent("motion")) - exit(0) - } catch { print("FAILED combined entry: \\(error)"); exit(1) } - } - NSApp.run() - } -} -''' - - -def sha256(path: Path) -> str: - return hashlib.sha256(path.read_bytes()).hexdigest() - - -def strip_main(text: str, name: str) -> str: - if text.count("@main ") != 1: - raise SystemExit(f"expect exactly one @main in {name}, got {text.count('@main ')}") - return text.replace("@main ", "", 1) - - -def main() -> None: - combined = strip_main(PRIVACY.read_text(), PRIVACY.name) + "\n" + \ - strip_main(MOTION.read_text(), MOTION.name) + DISPATCHER - ENTRY.write_text(combined) - manifest = { - "inputs": {str(p.relative_to(ROOT)): sha256(p) for p in (PRIVACY, MOTION, Path(__file__))}, - "entry": {str(ENTRY.relative_to(ROOT)): sha256(ENTRY)}, - } - MANIFEST.write_text(json.dumps(manifest, indent=2, sort_keys=True) + "\n") - print(json.dumps(manifest, indent=2, sort_keys=True)) - print(f"wrote {ENTRY}", file=sys.stderr) - - -if __name__ == "__main__": - main() diff --git a/tools/archive/design-qa-batch23-29/make-window-image-fixtures.py b/tools/archive/design-qa-batch23-29/make-window-image-fixtures.py deleted file mode 100644 index 6693a54e..00000000 --- a/tools/archive/design-qa-batch23-29/make-window-image-fixtures.py +++ /dev/null @@ -1,218 +0,0 @@ -#!/usr/bin/env python3 -"""Generate synthetic RGBA8 PNG aspect-ratio fixtures for design QA. - -Usage: - python3 tools/design-qa/make-window-image-fixtures.py ABS_OUTPUT - -Writes five opaque RGBA8 PNG files plus manifest.json into ABS_OUTPUT. -No UI frameworks, no CGImage, no screenshots, no permissions: pure stdlib. -""" - -from __future__ import annotations - -import hashlib -import json -import struct -import sys -import zlib -from pathlib import Path - -# ---------------------------------------------------------------- spec table - -SPECS = [ - ("landscape16x9", 640, 360), - ("landscape4x3", 480, 360), - ("square360x360", 360, 360), - ("portrait9x16", 360, 640), - ("ultrawide3x1", 900, 300), -] - -# Neutral dark grey background. -BG = (32, 32, 32, 255) -# White outer border thickness in pixels. -BORDER = 8 -BORDER_RGBA = (255, 255, 255, 255) -# Central light grey cross. -CROSS_RGBA = (200, 200, 200, 255) -CROSS_ARM = 4 # half-thickness of each cross arm in pixels - -# Corner blocks: fraction of the smaller image dimension, kept inside border. -CORNER_FRACTION = 0.12 -CORNERS = { - "top_left": (255, 0, 0, 255), # red - "top_right": (0, 255, 0, 255), # green - "bottom_left": (0, 0, 255, 255), # blue - "bottom_right": (255, 255, 0, 255) # yellow -} - - -def corner_size(width: int, height: int) -> int: - """Size (px, square) of each corner block, expressed from the short side.""" - shorter = min(width, height) - size = int(round(shorter * CORNER_FRACTION)) - return max(size, 1) - - -def build_pixels(width: int, height: int) -> bytearray: - """Build a raw top-down RGBA8 pixel buffer (no PNG framing).""" - # Start with the neutral background everywhere. - pixels = bytearray() - for _ in range(height): - pixels.extend(bytes(BG) * width) - - def put(x: int, y: int, rgba) -> None: - if 0 <= x < width and 0 <= y < height: - off = (y * width + x) * 4 - pixels[off:off + 4] = bytes(rgba) - - # 8px white border, fully inside the image on every side. - b = min(BORDER, width // 2, height // 2) - for y in range(height): - for x in range(width): - if x < b or x >= width - b or y < b or y >= height - b: - put(x, y, BORDER_RGBA) - - # Corner blocks, placed inside the border so they never clip it. - cs = corner_size(width, height) - cs = min(cs, width - 2 * b if width - 2 * b > 0 else cs) - cs = min(cs, height - 2 * b if height - 2 * b > 0 else cs) - cs = max(cs, 1) - positions = { - "top_left": (b, b), - "top_right": (width - b - cs, b), - "bottom_left": (b, height - b - cs), - "bottom_right": (width - b - cs, height - b - cs), - } - for name, (bx, by) in positions.items(): - rgba = CORNERS[name] - for dy in range(cs): - for dx in range(cs): - put(bx + dx, by + dy, rgba) - - # Light grey cross through the centre. - cx = width // 2 - cy = height // 2 - for y in range(b, height - b): - for x in range(b, width - b): - if abs(x - cx) <= CROSS_ARM or abs(y - cy) <= CROSS_ARM: - put(x, y, CROSS_RGBA) - - assert len(pixels) == width * height * 4, "raw RGBA buffer size mismatch" - return pixels - - -# ------------------------------------------------------------------ PNG bits - -def png_chunk(tag: bytes, payload: bytes) -> bytes: - assert len(tag) == 4, "chunk tag must be 4 bytes" - crc = zlib.crc32(tag + payload) & 0xFFFFFFFF - return ( - struct.pack(">I", len(payload)) - + tag - + payload - + struct.pack(">I", crc) - ) - - -def encode_png(width: int, height: int, pixels: bytes) -> bytes: - """Encode top-down RGBA8 into a PNG using filter type 0 everywhere.""" - assert len(pixels) == width * height * 4, "raw RGBA buffer size mismatch" - - stride = width * 4 - raw = bytearray() - for y in range(height): - raw.append(0) # filter type 0 (None) - raw.extend(pixels[y * stride:(y + 1) * stride]) - assert len(raw) == height * (stride + 1), "scanline buffer size mismatch" - - ihdr = struct.pack( - ">IIBBBBB", - width, - height, - 8, # bit depth - 6, # color type: RGBA - 0, # compression - 0, # filter - 0, # interlace - ) - - return ( - b"\x89PNG\r\n\x1a\n" - + png_chunk(b"IHDR", ihdr) - + png_chunk(b"IDAT", zlib.compress(bytes(raw), 9)) - + png_chunk(b"IEND", b"") - ) - - -# ---------------------------------------------------------------- manifest - -def sample_rgba(pixels: bytes, width: int, x: int, y: int) -> list: - off = (y * width + x) * 4 - return list(pixels[off:off + 4]) - - -def corner_centers(width: int, height: int) -> dict: - cs = corner_size(width, height) - b = min(BORDER, width // 2, height // 2) - cs = max(min(cs, max(width - 2 * b, 1), max(height - 2 * b, 1)), 1) - half = cs // 2 - return { - "top_left": (b + half, b + half), - "top_right": (width - b - cs + half, b + half), - "bottom_left": (b + half, height - b - cs + half), - "bottom_right": (width - b - cs + half, height - b - cs + half), - } - - -def main(argv: list) -> int: - if len(argv) != 2: - print("usage: make-window-image-fixtures.py ABS_OUTPUT", file=sys.stderr) - return 2 - - out_dir = Path(argv[1]) - out_dir.mkdir(parents=True, exist_ok=True) - - manifest = { - "generator": "tools/design-qa/make-window-image-fixtures.py", - "colorType": "RGBA8", - "images": [], - } - - for name, width, height in SPECS: - pixels = build_pixels(width, height) - png_bytes = encode_png(width, height, bytes(pixels)) - - file_name = f"{name}_{width}x{height}.png" - path = out_dir / file_name - path.write_bytes(png_bytes) - - centers = corner_centers(width, height) - corners = {} - for corner_name, (cx, cy) in centers.items(): - corners[corner_name] = { - "center": {"x": cx, "y": cy, "coordinateOrigin": "top-left"}, - "rgba": sample_rgba(bytes(pixels), width, cx, cy), - } - - manifest["images"].append( - { - "name": name, - "file": file_name, - "width": width, - "height": height, - "sha256": hashlib.sha256(png_bytes).hexdigest(), - "cornerBlocks": corners, - } - ) - - manifest_path = out_dir / "manifest.json" - manifest_path.write_text(json.dumps(manifest, indent=2) + "\n", encoding="utf-8") - - for image in manifest["images"]: - print(f"{image['file']}: {image['width']}x{image['height']} sha256={image['sha256'][:16]}...") - print(f"manifest: {manifest_path}") - return 0 - - -if __name__ == "__main__": - raise SystemExit(main(sys.argv)) diff --git a/tools/archive/design-qa-batch23-29/media-boundary-review.md b/tools/archive/design-qa-batch23-29/media-boundary-review.md deleted file mode 100644 index 4a5e106b..00000000 --- a/tools/archive/design-qa-batch23-29/media-boundary-review.md +++ /dev/null @@ -1,16 +0,0 @@ -# 播放器与文件架:下一批样件的输入边界 - -状态:准备记录,未验视觉或交互。DeepSeek 提供初稿;主模型复核后删除未证实的“差异”,纠正其把同一已授权文件的未读取段落称为“范围外”的说法。原稿和 SHA 保留在本轮证据。此文件不能作为产品缺陷清单或验收通过声明。 - -播放器的实际入口是 `NowPlayingCard.init(geometry:)`(App/NowPlayingCard.swift:275)和 `update(_:artwork:)`(:393)。用合成 `NowPlayingCardContent`,固定 `clock`,在任何输出设备动作前将 `loadRoutes` 替换为合成设备;默认值会读实际音频设备(:192)。`onCommand`、`onSeek`、`onSelectRoute` 只能记录本地回调,不能接真实媒体命令。第一组画面应覆盖播放、暂停、无封面、长歌名、无时长及空输出设备列表。播放器封面类型的构造器尚未复核。 - -文件架实际入口是 `FileShelfView.init(controller:hasNotch:strip:)`(App/FileShelfView.swift:828),控制器必须显式传 `FileShelfStore(root:undoDelay:isEnabled:)`(App/FileShelfStore.swift:91)。默认目录为用户真实文件架,默认开关读取 UserDefaults;样件必须使用独有系统临时目录和固定开关闭包。控制器行数据由 store 更新,并非可直接赋值;controller.start() 与 apply(_:) 另外读取 FileShelf.enabled(App/FileShelfView.swift:118、140),所以只注入 store 的 isEnabled 还不够。不能调用 controller.setEnabled(_:) 为样件改用户持久偏好;后续需采用进程内 volatile domain,并验证独有 store 的异步启动/清理。`image(for:)`(App/FileShelfView.swift:164)可退到类型图标,但启动过程可能生成 QuickLook 缩略图,不能假定只传假路径就不会读磁盘。只能使用自造资料,不能点击打开、显示位置、系统预览、隔空投送或剪贴板动作。第一组画面应覆盖空架、一项、多项、长文件名、失效项及移出后撤销。 - -目前没有认定新的生产缺陷: - -- 歌手取色已实际接在 `setArtwork` 中(App/NowPlayingCard.swift:429),初稿所述“取色缺口”撤销。 -- `isSeekable` 的流健康限制是源码明确的运行约束(Core/NowPlayingCardLogic.swift:198),不能因静态稿省略这层条件就称为设计偏差。 -- 无歌手的判据只裁 `.whitespaces`(同文件:195),换行字符边界可作为后续数据用例;目前没有播放器实际样本,不称为用户已遇到的缺陷。 -- 空设备列表高度、失效项按钮和清空撤销还需实际控件及原生画面,不能用源码猜测代替结果。 - -设计依据为 docs/design-drafts/正在播放.html、文件架.html;稿是画面约束,不嵌进工程。本批不改播放器或文件架产品代码,不动真实媒体和用户文件。 diff --git a/tools/archive/design-qa-batch23-29/merge-batch27-catalog.py b/tools/archive/design-qa-batch23-29/merge-batch27-catalog.py deleted file mode 100644 index b6615b0b..00000000 --- a/tools/archive/design-qa-batch23-29/merge-batch27-catalog.py +++ /dev/null @@ -1,257 +0,0 @@ -#!/usr/bin/env python3 -"""第27批:把设置「卷帘」页/外壳/高级页/语言行的新键并入 Localizable.xcstrings。 -中文源句必须与代码里的 zh: 字面量逐字一致(check-localizable.py 会核对)。""" -import json -from pathlib import Path - -PATH = Path("prototype/Resources/Localizable.xcstrings") - -NEW = [ - # ---- 设置窗口外壳 ---- - ("settings.window.title", "WindowShade 设置", "WindowShade Settings"), - ("settings.section.effects", "效果", "Effects"), - ("settings.section.shade", "卷帘", "Roll up"), - ("settings.section.browser", "窗口浏览", "Window browsing"), - ("settings.section.shortcuts", "快捷键", "Shortcuts"), - ("settings.section.permissions", "隐私", "Privacy"), - ("settings.section.advanced", "高级", "Advanced"), - ("settings.section.pointer", "鼠标与触控板", "Mouse & trackpad"), - ("settings.section.remote", "遥控器", "Remote"), - ("settings.section.conductor", "指挥模式", "Conductor"), - # ---- 行内说明按钮 ---- - ("settings.info.caption", "说明", "Notes"), - ("settings.info.label", "%@的说明", "Notes on %@"), - # ---- 卷帘页:页头与分组 ---- - ("settings.shade.sub", "设置怎么收起窗口、收起后什么样、要不要提示音。", - "How windows roll up, how a rolled-up window looks, and whether to play a sound."), - ("settings.shade.group.trigger", "触发", "Triggers"), - ("settings.shade.group.notch", "刘海", "Notch"), - ("settings.shade.group.arrange", "排布", "Arranging"), - ("settings.shade.group.appearance", "外观", "Appearance"), - ("settings.shade.group.sound", "声音", "Sound"), - ("settings.shade.group.experiments", "实验", "Experiments"), - ("settings.shade.group.silentPhrase", "静音口令", "Silent phrases"), - # ---- 触发 ---- - ("settings.shade.doubleClick.name", "双击标题栏收起窗口", "Double-click a title bar to roll up"), - ("settings.shade.doubleClick.sub", "在任意窗口的标题栏上双击", "Double-click any window's title bar"), - ("settings.shade.doubleClick.subZoom", "三击标题栏会缩放窗口", "A triple-click zooms the window"), - ("settings.shade.doubleClick.subMinimize", "三击标题栏会最小化窗口", "A triple-click minimizes the window"), - ("settings.shade.glance.name", "看一眼", "Glance"), - ("settings.shade.glance.sub", "指针停在卷帘条上,窗口在原处出现,移开就收回", - "Rest the pointer on the bar to see the window in place; move away and it rolls back"), - ("settings.shade.trackpad.name", "标题栏手势", "Title bar gestures"), - ("settings.shade.trackpad.sub", "在标题栏上两指滑动、滚动滚轮或拖着甩一下:往上收起,往下铺满", - "Two-finger swipe, scroll, or flick on a title bar: up to roll up, down to fill"), - ("settings.shade.trackpad.subSwish", "Swish 正在运行,标题栏上的手势交给它;在卷帘条上往下滑仍可展开", - "Swish is running and takes the title-bar gestures; swiping down on the bar still unrolls"), - # ---- 刘海 ---- - ("settings.shade.tuckNotch.name", "收进刘海", "Tuck into the notch"), - ("settings.shade.tuckNotch.sub", "朝刘海甩一下标题栏,窗口就收进刘海;指针停在刘海上,点一下放回", - "Flick a title bar toward the notch to tuck the window; rest on the notch and click to bring it back"), - ("settings.shade.notchAlerts.name", "有变化时提醒", "Tell me when things change"), - ("settings.shade.notchAlerts.sub", "收起的窗口标题变了,比如编译完成,刘海会短暂展开告诉你", - "When a rolled-up window's title changes — a build finishing, say — the notch opens briefly"), - ("settings.shade.awaySummary.name", "回来时说一下离开期间的事", "Catch me up after I'm away"), - ("settings.shade.awaySummary.sub", "锁屏或睡眠时有变化才说", "Only when something changed while locked or asleep"), - ("settings.shade.activities.name", "实时活动", "Live activities"), - ("settings.shade.activities.sub", "在刘海和启动台负一屏查看音乐、耳机、隔空投送与路线", - "Music, accessories, AirDrop and routes at the notch and the launchpad's left page"), - ("settings.shade.nowPlaying.name", "正在播放", "Now playing"), - ("settings.shade.nowPlaying.sub", "歌名和封面显示在刘海上", "Track name and artwork at the notch"), - ("settings.shade.followSound.name", "跟着声音跳", "Bounce with the sound"), - ("settings.shade.followSound.sub", "刘海右边的小点随歌起伏", "The dots on the notch's right ear follow the music"), - ("settings.shade.followSound.subDenied", "没有允许系统音频录制", "System audio recording isn't allowed"), - ("settings.shade.timerChime.name", "计时器到时间响一声", "Chime when a timer ends"), - ("settings.shade.timerChime.sub", "响一次系统提示音,不循环;系统静音时不响", - "One system alert, no repeat; silent when the system is muted"), - ("settings.shade.downloads.name", "浏览器下载", "Browser downloads"), - ("settings.shade.downloads.sub", "读取「下载」文件夹,看有没有没下完的文件", - "Read the Downloads folder for unfinished downloads"), - ("settings.shade.mergedRow.name", "合成一排", "One merged row"), - ("settings.shade.mergedRow.sub", "窗口和正在进行的事排在同一排", "Windows and live activities in a single row"), - ("settings.shade.fileShelf.name", "文件架", "File shelf"), - ("settings.shade.fileShelf.sub", "拖到刘海暂存的文件放在这里;关掉后清空", - "Files you drop on the notch wait here; turning it off clears it"), - ("settings.shade.origin.name", "之前常用", "Used before"), - ("settings.shade.origin.sub", "卡住时,刘海按你原来的习惯提示 Mac 上怎么做", - "When stuck, the notch shows the Mac way based on what you used before"), - ("settings.shade.origin.mac", "一直用 Mac", "Always used a Mac"), - # ---- 排布 ---- - ("settings.shade.gap.name", "窗口之间留缝", "Gap between windows"), - ("settings.shade.gap.sub", "半屏、四角、网格、魔法平铺、卷轴排好的窗口之间和屏幕边留一道缝", - "A gap between arranged windows and the screen edges"), - ("settings.shade.gap.none", "不留", "None"), - ("settings.shade.gap.narrow", "窄", "Narrow"), - ("settings.shade.gap.wide", "宽", "Wide"), - ("settings.shade.splitHandle.name", "分屏把手", "Split handle"), - ("settings.shade.splitHandle.sub", "两扇窗口拼满一块屏时,中间出现一根小竖条:拖它两扇一起变,推到屏幕边那一扇进侧拉", - "When two windows fill a screen, drag the bar between them to resize both; push it to the edge to send one into Slide Over"), - ("settings.shade.dropSplit.name", "拖到窗口上并排", "Drop onto a window to split"), - ("settings.shade.dropSplit.sub", "把窗口拖到另一扇上,两扇并排", "Drag a window onto another; they sit side by side"), - ("settings.shade.centering.name", "走到一列时", "When you reach a column"), - ("settings.shade.centering.sub", "贴边:挪得最少。居中:永远在正中", - "Keep near: least moving. Center: always in the middle"), - ("settings.shade.centering.edge", "贴边", "Keep near"), - ("settings.shade.centering.center", "居中", "Center"), - ("settings.shade.centering.fits", "放不下才居中", "Center when it doesn't fit"), - ("settings.shade.centerWhenFits.name", "放得下就居中", "Center when it fits"), - ("settings.shade.centerWhenFits.sub", "列加起来不到一屏时,整组放在正中", - "When the columns fit on one screen, center the group"), - # ---- 外观 ---- - ("settings.shade.appearance.name", "收起后的样子", "What a rolled-up window looks like"), - ("settings.shade.collapse.sub", "卷帘条跟原来一样或用统一标题栏,也可以在原处缩成缩略图", - "Keep the bar as-is, use one consistent title bar, or shrink to a thumbnail in place"), - ("settings.shade.collapse.native", "跟原来一样", "Keep as-is"), - ("settings.shade.collapse.proxy", "统一标题栏", "One consistent bar"), - ("settings.shade.collapse.thumbnail", "缩略图", "Thumbnail"), - ("settings.shade.thumbnailTranslucent", "缩略图半透明", "Translucent thumbnail"), - ("settings.shade.barTranslucent", "卷帘条半透明", "Translucent bar"), - ("settings.shade.translucent.sub", "让它更透一些,能看到后面的内容", "More see-through, so what's behind shows"), - ("settings.shade.floating.name", "浮在其他窗口上面", "Float above other windows"), - ("settings.shade.floating.sub", "收起的窗口也不会被别的窗口挡住", "A rolled-up window stays uncovered"), - # ---- 声音 ---- - ("settings.shade.sound.name", "收起和展开时播放音效", "Play a sound on roll up and unroll"), - ("settings.shade.foldSound.name", "收起音效", "Roll-up sound"), - ("settings.shade.unfoldSound.name", "展开音效", "Unroll sound"), - ("settings.shade.sound.purr", "柔和(Purr)", "Soft (Purr)"), - ("settings.shade.sound.submarine", "低调(Submarine)", "Muted (Submarine)"), - ("settings.shade.sound.blow", "轻吹(Blow)", "Airy (Blow)"), - ("settings.shade.sound.tink", "细微轻响(Tink)", "Faint (Tink)"), - ("settings.shade.sound.glass", "玻璃(Glass)", "Glassy (Glass)"), - ("settings.shade.sound.pop", "弹开(Pop)", "Pops open (Pop)"), - # ---- 实验 ---- - ("settings.shade.copyProgress.name", "拷贝进度", "Copy progress"), - ("settings.shade.copyProgress.sub", "Finder 拷贝时在刘海上显示拷到哪了", - "Show copy progress at the notch while Finder copies"), - ("settings.shade.originGuess.name", "猜你从哪来", "Guess where you came from"), - ("settings.shade.originGuess.sub", "按出别的系统的习惯时问一次", - "Asked once when you use another system's habits"), - ("settings.shade.carplay.name", "把 iPhone 的画面放到整块屏", "iPhone screen on the full display"), - ("settings.shade.carplay.sub", "长按刘海进入全屏;再长按或按 Esc 回到桌面", - "Long-press the notch for full screen; long-press again or press Esc to leave"), - ("settings.shade.carplayEndpoint.name", "接收器地址", "Receiver address"), - ("settings.shade.carplayEndpoint.sub", "ws:// 开头并带令牌;不填时全屏只显示示意画面", - "Starts with ws:// and carries a token; empty shows a placeholder only"), - ("settings.shade.deviceBattery.name", "设备的电量", "Device batteries"), - ("settings.shade.deviceBattery.sub", "耳机、手机这些设备连上或电量低时,刘海说一声", - "The notch says when headphones or phones connect or run low"), - # ---- 静音口令 ---- - ("settings.shade.silentPhrase.name", "方言", "Dialect"), - ("settings.shade.silentPhrase.mandarin", "普通话", "Mandarin"), - ("settings.shade.silentPhrase.cantonese", "粤语", "Cantonese"), - ("settings.shade.silentPhrase.wu", "吴语", "Wu"), - ("settings.shade.silentPhrase.placeholder", "给这条配一个词", "Give this one a word"), - # ---- 番茄钟行 ---- - ("settings.shade.focus.name", "番茄钟", "Focus timer"), - ("settings.shade.focus.preset25", "25 分钟 / 5 分钟", "25 min / 5 min"), - ("settings.shade.focus.preset50", "50 分钟 / 10 分钟", "50 min / 10 min"), - ("settings.shade.focus.tuck", "专注时把聊天收进刘海", "Tuck chats into the notch while focusing"), - ("settings.shade.focus.presetTooltip", "新的时长从下一轮开始生效。正在进行的一轮保持原时长。", - "New lengths apply from the next round; the running one keeps its length."), - ("settings.shade.focus.tuckTooltip", "只收私人 App 名单里的窗口;名单为空或这项还没开放时不可用,也不会拿“收起全部窗口”顶替。", - "Only windows from the private app list; unavailable when the list is empty or this isn't ready, and never replaced by rolling up everything."), - ("settings.shade.focus.noteCounting", "现在只计时,还不会收起窗口。", "For now it only counts time; windows aren't tucked yet."), - ("settings.shade.focus.noteNoApps", "名单里还没有 App", "No apps on the list yet"), - # ---- 日程行 ---- - ("settings.shade.calendar.name", "日程", "Calendar"), - ("settings.shade.calendar.subDenied", "没有权限,点一下去系统设置", "No access; click to open System Settings"), - ("settings.shade.calendar.subNotAsked", "快开会时在刘海里倒数;打开时系统会问你一次", - "Counts down at the notch before meetings; macOS asks once when you turn it on"), - ("settings.shade.calendar.subGranted", "快开会时在刘海里倒数,有会议链接时可以加入", - "Counts down at the notch; join when a meeting link is there"), - ("settings.shade.calendar.lead", "提前 %d 分钟", "%d minutes before"), - ("settings.shade.calendar.leadA11y", "日程提前量", "Calendar lead time"), - ("settings.shade.calendar.openSettings", "打开系统设置", "Open System Settings"), - # ---- 音量与亮度行 ---- - ("settings.shade.levelKeys.name", "音量和亮度", "Volume & brightness"), - ("settings.shade.levelKeys.sub", "按音量、亮度键时显示", "Shows while you press the volume or brightness keys"), - ("settings.shade.levelKeys.subMissing", "系统的提示也会出现", "macOS's own overlay shows too"), - ("settings.shade.levelKeys.info", "按音量、亮度、键盘灯键时,刘海两边显示一条,系统自己的提示藏起来。锁屏和调度中心里仍是系统的提示。", - "Press volume, brightness or keyboard-light keys and the notch shows a bar on each side while macOS's overlay stays hidden. On the lock screen and in Mission Control, macOS's overlay still shows."), - ("settings.shade.levelKeys.infoMissing", "在“辅助功能”里打开 WindowShade,系统自己的提示就会藏起来。", - "Turn on WindowShade in Accessibility to hide macOS's overlay."), - ("settings.shade.levelKeys.infoUnverified", "这个 macOS 版本还没核对过,系统的提示会一起出现。", - "This macOS version isn't verified yet, so macOS's overlay shows as well."), - ("settings.shade.levelKeys.allow", "允许…", "Allow…"), - ("settings.shade.levelKeys.allowA11y", "允许辅助功能,让%@生效", "Allow Accessibility so %@ works"), - # ---- 补充面板 ---- - ("settings.shade.supplement.heading", "专注与输入", "Focus & input"), - ("settings.shade.supplement.focus", "开始番茄钟", "Start a focus timer"), - ("settings.shade.supplement.focusTip", "打开番茄钟。快捷键可在快捷键设置中录制。", - "Open the focus timer. Record a shortcut in Shortcuts."), - ("settings.shade.supplement.coding", "编程会话…", "Coding sessions…"), - ("settings.shade.supplement.codingTip", "本地选择项目和 Codex,登录后进行只读查询。打开页面不会启动程序。", - "Pick a project and Codex locally; after sign-in it queries read-only. Opening the page starts nothing."), - ("settings.shade.supplement.silent", "静音操作…", "Silent commands…"), - ("settings.shade.supplement.silentTip", "在刘海里看清再确认。采用草稿不会发送。", - "Everything is read at the notch before you confirm. Using a draft never sends."), - ("settings.shade.supplement.conductor", "指挥…", "Conductor…"), - ("settings.shade.supplement.conductorTip", "看当前会话、模型和草稿。不会发送,也不会连接遥控器。", - "See the current session, model and drafts. It never sends and never connects the remote."), - ("settings.shade.supplement.gateConductor", "指挥模式", "Conductor mode"), - ("settings.shade.supplement.gateConductorWhy", "需要已核准的输入设备和助手连接", - "Needs an approved input device and an assistant connection"), - ("settings.shade.supplement.gateScroll", "平滑滚动", "Smooth scrolling"), - ("settings.shade.supplement.gateScrollWhy", "需要确认每条事件的设备来源", - "Needs device-origin confirmation for every event"), - ("settings.shade.supplement.gateRemote", "Siri 遥控器", "Siri Remote"), - ("settings.shade.supplement.gateRemoteWhy", "需要通过当前设备的按钮与触点探针", - "Needs button and touch probes for the current device"), - ("settings.shade.supplement.gatePresence", "在场检测", "Presence detection"), - ("settings.shade.supplement.gatePresenceWhy", "需要已绑定身份的蓝牙读回来源", - "Needs a bound-identity Bluetooth source"), - ("settings.shade.supplement.activities", "打开实时活动", "Open live activities"), - ("settings.shade.supplement.lockOverlay", "锁屏开合效果", "Lock-screen fold effect"), - ("settings.shade.supplement.welcome", "欢迎使用 WindowShade…", "Welcome to WindowShade…"), - # ---- 高级页 ---- - ("settings.advanced.title", "高级", "Advanced"), - ("settings.advanced.sub", "恢复默认值,或打开诊断日志排查问题。", - "Reset defaults, or open the diagnostics log to troubleshoot."), - ("settings.advanced.section.actions", "操作", "Actions"), - ("settings.advanced.reset.button", "恢复默认值", "Reset defaults"), - ("settings.advanced.reset.name", "恢复动态效果默认值", "Reset effect defaults"), - ("settings.advanced.reset.sub", "把桌面、窗口和样式都恢复默认。", "Reset the desktop, windows and style."), - ("settings.advanced.diagnostics.button", "打开诊断日志", "Open diagnostics log"), - ("settings.advanced.diagnostics.name", "诊断日志", "Diagnostics log"), - ("settings.advanced.diagnostics.sub", "打开运行记录排查问题。", "Open the run log to find problems."), - ("settings.advanced.reduceMotionOn", "系统已开启“减少动态效果”,连续动画会自动暂停。", - "\u201cReduce motion\u201d is on, so continuous animation pauses."), - ("settings.advanced.reduceMotionHint", "可在系统设置的辅助功能选项中开启“减少动态效果”。", - "You can turn on \u201cReduce motion\u201d in System Settings' Accessibility."), - ("settings.advanced.reduceMotionA11y", "减少动态效果提示", "Reduce motion note"), - ("settings.advanced.reduceMotionLink", "打开“减少动态效果”设置…", "Open \u201cReduce motion\u201d settings…"), - ("settings.advanced.reduceMotionLinkHelp", "在系统设置的辅助功能中配置减少动态效果", - "Configure Reduce motion in System Settings' Accessibility"), - ("settings.advanced.section.accessibility", "辅助功能", "Accessibility"), - # ---- 语言行 ---- - ("settings.language.section", "语言", "Language"), - ("settings.language.name", "界面语言", "Interface language"), - ("settings.language.sub", "切换后立即生效", "Takes effect immediately"), - ("settings.language.system", "跟随系统", "Follow the system"), -] - - -def main(): - data = json.loads(PATH.read_text()) - strings = data["strings"] - added = 0 - for key, zh, en in NEW: - if key in strings: - entry = strings[key] - entry["localizations"]["zh-Hans"]["stringUnit"]["value"] = zh - entry["localizations"]["en"]["stringUnit"]["value"] = en - else: - strings[key] = { - "extractionState": "manual", - "localizations": { - "zh-Hans": {"stringUnit": {"state": "translated", "value": zh}}, - "en": {"stringUnit": {"state": "translated", "value": en}}, - }, - } - added += 1 - PATH.write_text(json.dumps(data, ensure_ascii=False, indent=2, sort_keys=True) + "\n") - print(f"catalog: +{added} keys, total {len(strings)}") - - -if __name__ == "__main__": - main() diff --git a/tools/archive/design-qa-batch23-29/power-flash-check.md b/tools/archive/design-qa-batch23-29/power-flash-check.md deleted file mode 100644 index 8222e3cd..00000000 --- a/tools/archive/design-qa-batch23-29/power-flash-check.md +++ /dev/null @@ -1,3 +0,0 @@ -现有纯逻辑检查 `bash tests/run-power-flash-tests.sh` 的桥接 revision 0 实际退出0,末尾为 `PASS: power flash and device alert copy`。DeepSeek 在读取阶段达到上下文上限,is_error/incomplete 均为true,没有写报告或改文件;主模型核对原始回执后接手本收据,没有重跑检查。 - -实际输出覆盖插电红/绿/低电量模式黄、IsCharged与优化充电区别、充满只闪一次、首次读数只作基线、unknown不编造数字、busy丢弃且不进入防抖、内置电池限定,以及AirPods已有读数的文案。这是Core/Copy纯逻辑,不能证明真实电池来源、系统AX、刘海渲染、实际定时与仲裁或硬件。六输入SHA另见pure-inputs.json;没有编造检查数量或工人完成结论。 diff --git a/tools/archive/design-qa-batch23-29/render-calendar-card.sh b/tools/archive/design-qa-batch23-29/render-calendar-card.sh deleted file mode 100644 index 54bc8c5e..00000000 --- a/tools/archive/design-qa-batch23-29/render-calendar-card.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail -ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" -OUTPUT="${1:?Pass an absolute output directory}" -CARD="${2:-$ROOT/prototype/App/CalendarPresenter.swift}" -WORK="$(mktemp -d "$ROOT/.build/calendar-preview.XXXXXX")" -trap 'rm -rf "$WORK"' EXIT -python3 - "$ROOT" "$WORK" "$CARD" "$OUTPUT" <<'PY' -from pathlib import Path -import sys, hashlib, json -root, work, card, output = map(Path, sys.argv[1:]) -auth = root / 'prototype/App/NotchAuthentication.swift' -lease = root / 'prototype/App/NotchLeases.swift' -protocol = next(line for line in auth.read_text().splitlines() if line.startswith('@MainActor protocol NotchInteractiveContent:')) -content = lease.read_text().split('/// 刘海唯一的展示仲裁')[0] -(work / 'ContentProtocols.swift').write_text('import Cocoa\n' + protocol + '\n' + content) -(work / 'CalendarPresenter.swift').write_text('import Cocoa\nimport QuartzCore\n' + card.read_text().split('// MARK: - 图\n')[1].split('// MARK: - 接线')[0]) -sources = [card, auth, lease, root/'prototype/Core/CalendarActivity.swift', root/'prototype/Core/CalendarPresentation.swift', root/'tools/design-qa/CalendarCardPreview.swift', - root/'tools/design-qa/render-calendar-card.sh'] -output.mkdir(parents=True, exist_ok=True) -(output/'sources.json').write_text(json.dumps({str(p.relative_to(root)) if p.is_relative_to(root) else str(p): - hashlib.sha256(p.read_bytes()).hexdigest() for p in sources}, indent=2) + '\n') -PY -swiftc -swift-version 6 -strict-concurrency=complete -warnings-as-errors -parse-as-library \ - "$ROOT/prototype/Core/CalendarActivity.swift" "$ROOT/prototype/Core/CalendarPresentation.swift" \ - "$WORK/ContentProtocols.swift" "$WORK/CalendarPresenter.swift" \ - "$ROOT/tools/design-qa/CalendarCardPreview.swift" -o "$WORK/render" -"$WORK/render" "$OUTPUT" diff --git a/tools/archive/design-qa-batch23-29/render-countdown-card.sh b/tools/archive/design-qa-batch23-29/render-countdown-card.sh deleted file mode 100644 index c53d3f29..00000000 --- a/tools/archive/design-qa-batch23-29/render-countdown-card.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail -ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" -OUTPUT="${1:?Pass an absolute output directory}" -CARD="${2:-$ROOT/prototype/App/CountdownTimerCard.swift}" -WORK="$(mktemp -d "$ROOT/.build/countdown-preview.XXXXXX")" -trap 'rm -rf "$WORK"' EXIT -python3 - "$ROOT" "$WORK" "$CARD" "$OUTPUT" <<'PY' -from pathlib import Path -import sys, hashlib, json -root, work, card, output = map(Path, sys.argv[1:]) -auth = root / 'prototype/App/NotchAuthentication.swift' -lease = root / 'prototype/App/NotchLeases.swift' -protocol = next(line for line in auth.read_text().splitlines() if line.startswith('@MainActor protocol NotchInteractiveContent:')) -content = lease.read_text().split('/// 刘海唯一的展示仲裁')[0] -(work / 'ContentProtocols.swift').write_text('import Cocoa\n' + protocol + '\n' + content) -(work / 'CountdownTimerCard.swift').write_text(card.read_text().split('/// 把计时器宿主、刘海的展示租约和卡片接在一起。')[0]) -sources = [card, auth, lease, root/'prototype/Core/Contracts.swift', root/'prototype/Core/CountdownTimer.swift', - root/'prototype/App/CountdownTimerHost.swift', root/'tools/design-qa/CountdownTimerCardPreview.swift', - root/'tools/design-qa/render-countdown-card.sh'] -output.mkdir(parents=True, exist_ok=True) -(output/'sources.json').write_text(json.dumps({str(p.relative_to(root)) if p.is_relative_to(root) else str(p): - hashlib.sha256(p.read_bytes()).hexdigest() for p in sources}, indent=2) + '\n') -PY -swiftc -swift-version 6 -strict-concurrency=complete -warnings-as-errors -parse-as-library \ - "$ROOT/prototype/Core/Contracts.swift" "$ROOT/prototype/Core/CountdownTimer.swift" \ - "$ROOT/prototype/App/CountdownTimerHost.swift" "$WORK/ContentProtocols.swift" "$WORK/CountdownTimerCard.swift" \ - "$ROOT/tools/design-qa/CountdownTimerCardPreview.swift" -o "$WORK/render" -"$WORK/render" "$OUTPUT" diff --git a/tools/archive/design-qa-batch23-29/render-focus-card.sh b/tools/archive/design-qa-batch23-29/render-focus-card.sh deleted file mode 100644 index 74bcb717..00000000 --- a/tools/archive/design-qa-batch23-29/render-focus-card.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail -ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" -OUTPUT="${1:?Pass an absolute output directory}" -CARD="${2:-$ROOT/prototype/App/FocusTimerCard.swift}" -WORK="$(mktemp -d "$ROOT/.build/focus-preview.XXXXXX")" -trap 'rm -rf "$WORK"' EXIT -# Extract the actual production protocols, without compiling their host implementation. -# Rendering proves this card only; build.sh --check separately verifies the full app. -python3 - "$ROOT" "$WORK" "$CARD" "$OUTPUT" <<'PY' -from pathlib import Path -import sys, hashlib, json -root, work, card, output = map(Path, sys.argv[1:]) -auth = root / 'prototype/App/NotchAuthentication.swift' -lease = root / 'prototype/App/NotchLeases.swift' -protocol = next(line for line in auth.read_text().splitlines() if line.startswith('@MainActor protocol NotchInteractiveContent:')) -content = lease.read_text().split('/// 刘海唯一的展示仲裁')[0] -(work / 'ContentProtocols.swift').write_text('import Cocoa\n' + protocol + '\n' + content) -sources = [card, auth, lease, root/'prototype/Core/Contracts.swift', root/'prototype/Core/FocusTimer.swift', - root/'prototype/App/FocusTimerHost.swift', root/'tools/design-qa/FocusTimerCardPreview.swift', - root/'tools/design-qa/render-focus-card.sh'] -output.mkdir(parents=True, exist_ok=True) -(output/'sources.json').write_text(json.dumps({str(p.relative_to(root)) if p.is_relative_to(root) else str(p): - hashlib.sha256(p.read_bytes()).hexdigest() for p in sources}, indent=2) + '\n') -PY -swiftc -swift-version 6 -strict-concurrency=complete -warnings-as-errors -parse-as-library \ - "$ROOT/prototype/Core/Contracts.swift" "$ROOT/prototype/Core/FocusTimer.swift" \ - "$ROOT/prototype/App/FocusTimerHost.swift" "$WORK/ContentProtocols.swift" "$CARD" \ - "$ROOT/tools/design-qa/FocusTimerCardPreview.swift" -o "$WORK/render" -"$WORK/render" "$OUTPUT" diff --git a/tools/archive/design-qa-batch23-29/render-native-surfaces.sh b/tools/archive/design-qa-batch23-29/render-native-surfaces.sh deleted file mode 100644 index 655204d5..00000000 --- a/tools/archive/design-qa-batch23-29/render-native-surfaces.sh +++ /dev/null @@ -1,119 +0,0 @@ -#!/usr/bin/env bash -# Standalone QA fixture: builds a native production-view preview from the full -# production Swift sources plus one caller-supplied @main render entry, then runs -# ONLY that entry. It never launches a product main. Visual sign-off is done by -# the controller independently. -set -euo pipefail -ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" -SELF="${BASH_SOURCE[0]}" -SELF="$(cd "$(dirname "$SELF")" && pwd)/$(basename "$SELF")" -cd "$ROOT" - -OUTPUT="${1:-}" -ENTRY="${2:-}" -if [ -z "$OUTPUT" ]; then - echo "usage: render-native-surfaces.sh ABS_OUTPUT_DIR ABS_SWIFT_ENTRY [--swift6]" >&2 - exit 2 -fi -if [ -z "$ENTRY" ]; then - echo "usage: render-native-surfaces.sh ABS_OUTPUT_DIR ABS_SWIFT_ENTRY [--swift6]" >&2 - exit 2 -fi -case "$OUTPUT" in - /*) ;; - *) echo "output dir must be absolute: $OUTPUT" >&2; exit 2 ;; -esac - -LANGUAGE_VERSION=5 -LANGUAGE_FLAGS=(-swift-version 5) -case "${3:-}" in - "") ;; - --swift6) - LANGUAGE_VERSION=6 - LANGUAGE_FLAGS=(-swift-version 6 -strict-concurrency=complete -warnings-as-errors) - ;; - *) echo "unknown render mode: $3" >&2; exit 2 ;; -esac -case "$ENTRY" in - /*) ;; - *) echo "swift entry must be absolute: $ENTRY" >&2; exit 2 ;; -esac -if [ ! -f "$ENTRY" ]; then - echo "swift entry is missing or not a file: $ENTRY" >&2 - exit 2 -fi -case "${ENTRY##*/}" in - main.swift) echo "refusing main.swift as render entry: $ENTRY" >&2; exit 2 ;; -esac - -mkdir -p "$ROOT/.build" -WORK="$(mktemp -d "$ROOT/.build/native-surfaces.XXXXXX")" -trap 'rm -rf "$WORK"' EXIT - -# Native process-supervision port: compile the C source into a WORK-local object. -NATIVE_DIR="$WORK/native" -mkdir -p "$NATIVE_DIR" -cp "$ROOT/prototype/Native/WS2Child.c" "$ROOT/prototype/Native/WS2Child.h" "$ROOT/prototype/Native/module.modulemap" "$NATIVE_DIR/" -cc -std=c11 -O2 -Wall -Wextra -Werror -mmacosx-version-min=14.0 -c "$NATIVE_DIR/WS2Child.c" -o "$NATIVE_DIR/WS2Child.o" - -# Snapshot every production Swift source except product mains and app bundles. -SOURCES=() -while IFS= read -r source; do - mkdir -p "$WORK/$(dirname "$source")" - cp "$source" "$WORK/$source" - SOURCES+=("$WORK/$source") -done < <(rg --files prototype -g '*.swift' -g '!main.swift' -g '!*.app/**' | sort) - -# Copy the caller's standalone @main render entry into WORK. -ENTRY_COPY="$WORK/$(basename "$ENTRY")" -cp "$ENTRY" "$ENTRY_COPY" - -# Immutable compiler inputs recorded by SHA256 before any build step. -python3 - "$ROOT" "$OUTPUT" "$WORK" "$ENTRY" "$SELF" "$ENTRY_COPY" "$NATIVE_DIR/WS2Child.c" "$NATIVE_DIR/WS2Child.h" "$NATIVE_DIR/module.modulemap" "${SOURCES[@]}" <<'PY' -from pathlib import Path -import sys, hashlib, json -root, output, work, entry = map(Path, sys.argv[1:5]) -tracked = [Path(p) for p in sys.argv[5:]] -def key(p: Path) -> str: - if p == work / entry.name: - p = entry - elif p.is_relative_to(work / 'native'): - p = root / 'prototype/Native' / p.name - elif p.is_relative_to(work): - p = root / p.relative_to(work) - return str(p.relative_to(root)) if p.is_absolute() and p.is_relative_to(root) else str(p) -def sha(p: Path) -> str: - return hashlib.sha256(p.read_bytes()).hexdigest() -output.mkdir(parents=True, exist_ok=True) -(output / 'sources.json').write_text(json.dumps({key(p): sha(p) for p in tracked}, indent=2) + '\n') -PY - -# GLASS_DEFINE detection is intentional and identical to tests/run-appkit-tests.sh. -GLASS_DEFINE=() -if [ -f "$(xcrun --show-sdk-path --sdk macosx)/System/Library/Frameworks/AppKit.framework/Headers/NSGlassEffectView.h" ]; then - GLASS_DEFINE=(-DWINDOWSHADE_SDK_HAS_GLASS) -fi - -# Unoptimized production library. Default Swift 5; opt into the production Swift 6 strictness for runtime probes. -swiftc "${LANGUAGE_FLAGS[@]}" -module-cache-path "$ROOT/.build/module-cache" -whole-module-optimization -target "$(uname -m)-apple-macosx14.0" ${GLASS_DEFINE[@]+"${GLASS_DEFINE[@]}"} \ - -I "$NATIVE_DIR" "$NATIVE_DIR/WS2Child.o" \ - "${SOURCES[@]}" "$ENTRY_COPY" \ - -framework Cocoa -framework Carbon -framework ApplicationServices -framework LocalAuthentication -framework LocalAuthenticationEmbeddedUI \ - -framework ScreenCaptureKit -framework QuartzCore -framework CoreText \ - -framework AVFoundation -framework Vision -framework ServiceManagement -framework Metal \ - -framework CoreAudio -framework MapKit -framework MetalKit -framework IOKit -framework CoreImage -framework VideoToolbox \ - -o "$WORK/render" - -python3 - "$OUTPUT" "$WORK/render" "$LANGUAGE_VERSION" <<'PY' -from pathlib import Path -import sys, hashlib, json -output = Path(sys.argv[1]); binary = Path(sys.argv[2]) -output.mkdir(parents=True, exist_ok=True) -(output / 'renderer.json').write_text(json.dumps( - {"renderer": str(binary), "sha256": hashlib.sha256(binary.read_bytes()).hexdigest(), - "swiftLanguageVersion": int(sys.argv[3]), "strictConcurrency": int(sys.argv[3]) == 6, - "warningsAsErrors": int(sys.argv[3]) == 6, "optimized": False}, indent=2) + '\n') -PY - -# Execute ONLY the caller entry; it owns its self-contained data and window capture. -"$WORK/render" "$OUTPUT" diff --git a/tools/archive/design-qa-batch23-29/run-batch27-before-tree.sh b/tools/archive/design-qa-batch23-29/run-batch27-before-tree.sh deleted file mode 100644 index 673cf5a3..00000000 --- a/tools/archive/design-qa-batch23-29/run-batch27-before-tree.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash -# 第27批 before 树基线重建:检出第27批入库提交(2003e53)的父提交——它就是改动前快照 -#(.statem/history-design-twentyseventh-round/source 的 15 个文件与其逐字节一致,2026-10-12 核对)—— -# 到 BUILD_DIR(默认 /tmp/batch27-before),配上当前夹具,编出 render 并跑出 zh 基线帧。 -# -# 与 tools/design-qa/run-settings-shade-language-preview.sh 同构,差别只在 SOURCE 指向父提交检出; -# 夹具用仓库里当前这一份(含诊断探针),所以 **基线和新帧必须用同一版夹具重跑**,否则几何对比无意义。 -# 基线只需要 zh 帧:不编也不发 WS2_LOCALIZATION_DIR(en 帧会回退中文,不用于对比)。 -# -# 用法:bash tools/design-qa/run-batch27-before-tree.sh [BUILD_DIR] [OUT_DIR] -# BUILD_DIR 默认 /tmp/batch27-before;OUT_DIR 默认 BUILD_DIR/out。 -# BEFORE_COMMIT 默认 2003e53^(第23–27批入库提交的父提交)。 -# 耗时约 15–25 分钟(未优化整模块编译,和 after 一致)。 -set -euo pipefail -ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" -SNAP="${BEFORE_COMMIT:-2003e53^}" -BUILD="${1:-/tmp/batch27-before}" -OUT="${2:-$BUILD/out}" -ENTRY="$ROOT/tools/design-qa/SettingsShadeLanguagePreview.swift" - -rm -rf "$BUILD" -mkdir -p "$BUILD" -# 完整源码树从 git 检出(历史重写后 2003e53^ 仍是有效对象;旧 SHA 对照表在 -# .statem/history-design-twentyseventh-round/qa/commit-map-final-2026-10-12.txt)。 -git -C "$ROOT" archive "$SNAP" prototype | tar -x -C "$BUILD" -# Native 的 C 端口连同 modulemap 一起检出,后面就地编译;modulemap 和 header 要放进 -I 指向的目录。 -mkdir -p "$BUILD/native" -cp "$BUILD/prototype/Native/module.modulemap" "$BUILD/prototype/Native/WS2Child.h" "$BUILD/native/" -cc -std=c11 -O2 -Wall -Wextra -Werror -mmacosx-version-min=14.0 \ - -c "$BUILD/prototype/Native/WS2Child.c" -o "$BUILD/native/WS2Child.o" - -# 与 render-native-surfaces.sh 相同的生产源快照方式:去掉产品 main,避免顶格代码。 -WORK="$BUILD/work" -rm -rf "$WORK" -mkdir -p "$WORK" -SOURCES=() -while IFS= read -r source; do - mkdir -p "$WORK/$(dirname "$source")" - cp "$BUILD/$source" "$WORK/$source" - SOURCES+=("$WORK/$source") -done < <(cd "$BUILD" && rg --files prototype -g '*.swift' -g '!main.swift' -g '!*.app/**' | sort) -cp "$ENTRY" "$WORK/SettingsShadeLanguagePreview.swift" - -GLASS_DEFINE=() -if [ -f "$(xcrun --show-sdk-path --sdk macosx)/System/Library/Frameworks/AppKit.framework/Headers/NSGlassEffectView.h" ]; then - GLASS_DEFINE=(-DWINDOWSHADE_SDK_HAS_GLASS) -fi -mkdir -p "$BUILD/mc" -swiftc -swift-version 6 -strict-concurrency=complete -warnings-as-errors \ - -module-cache-path "$BUILD/mc" -whole-module-optimization -target "$(uname -m)-apple-macosx14.0" \ - ${GLASS_DEFINE[@]+"${GLASS_DEFINE[@]}"} \ - -I "$BUILD/native" "$BUILD/native/WS2Child.o" \ - "${SOURCES[@]}" "$WORK/SettingsShadeLanguagePreview.swift" \ - -framework Cocoa -framework Carbon -framework ApplicationServices -framework LocalAuthentication -framework LocalAuthenticationEmbeddedUI \ - -framework ScreenCaptureKit -framework QuartzCore -framework CoreText \ - -framework AVFoundation -framework Vision -framework ServiceManagement -framework Metal \ - -framework CoreAudio -framework MapKit -framework MetalKit -framework IOKit -framework CoreImage -framework VideoToolbox \ - -o "$BUILD/render" - -mkdir -p "$OUT" -"$BUILD/render" "$OUT" diff --git a/tools/archive/design-qa-batch23-29/run-file-name-checks.py b/tools/archive/design-qa-batch23-29/run-file-name-checks.py deleted file mode 100644 index de0288db..00000000 --- a/tools/archive/design-qa-batch23-29/run-file-name-checks.py +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env python3 -"""Compile the exact current production font-layout helper with independent cases.""" -import hashlib -import json -from pathlib import Path -import subprocess -import sys -import tempfile -root=Path(__file__).resolve().parents[2] -out=Path(sys.argv[1]).resolve();out.mkdir(parents=True,exist_ok=True) -source=root/'prototype/App/FileShelfView.swift' -text=source.read_text() -start=text.index('@MainActor\nenum FileShelfNameLayout') -end=text.index('/// 一格:76',start) -helper=text[start:end] -entry=(root/'tools/design-qa/FileNameChecks.swift').read_text() -with tempfile.TemporaryDirectory(prefix='fileshelf-font-check-') as work: - work=Path(work);combined=work/'Checks.swift';binary=work/'checks' - combined.write_text('import Cocoa\n'+helper+entry.removeprefix('import Cocoa\n')) - subprocess.run(['swiftc','-swift-version','6','-strict-concurrency=complete','-warnings-as-errors','-parse-as-library',str(combined),'-framework','Cocoa','-o',str(binary)],check=True) - subprocess.run([str(binary),str(out/'name-checks.json')],check=True) - (out/'compiled-check-source.swift').write_bytes(combined.read_bytes()) -receipt={'exit_code':0,'exact_product_helper_extracted':True,'helper_sha256':hashlib.sha256(helper.encode()).hexdigest(),'product_source_sha256':hashlib.sha256(source.read_bytes()).hexdigest(),'cases':len(json.loads((out/'name-checks.json').read_text())),'scope':'actual font widths and same production helper; not app runtime or live hardware'} -(out/'name-checks-exit.json').write_text(json.dumps(receipt,indent=2)+'\n') diff --git a/tools/archive/design-qa-batch23-29/run-owned-error-flow.sh b/tools/archive/design-qa-batch23-29/run-owned-error-flow.sh deleted file mode 100644 index 72073740..00000000 --- a/tools/archive/design-qa-batch23-29/run-owned-error-flow.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail -ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" -OUT="${1:?absolute result directory required}" -mkdir -p "$OUT/module-cache" -cc -std=c11 -O2 -Wall -Wextra -Werror -mmacosx-version-min=14.0 -c "$ROOT/prototype/Native/WS2Child.c" -o "$OUT/WS2Child.o" -swiftc -module-cache-path "$OUT/module-cache" -swift-version 6 -strict-concurrency=complete -warnings-as-errors -parse-as-library \ - -I "$ROOT/prototype/Native" "$OUT/WS2Child.o" \ - "$ROOT"/prototype/Core/{Contracts,WireJSON,WS2QuitBarrier,WS2StrictJSON,CodexWire,WS2OwnedProtocolHost,WS2BoundedOutbox,WS2DiagnosticTail,WS2OwnedScope,AgentSessions,UsageReading,NotchActivities,ReleaseDefaults}.swift \ - "$ROOT"/prototype/Support/{WS2ProjectDirectory,WS2LocalLaunchProfile,WS2VersionProbe,WS2DuplexProcess}.swift \ - "$ROOT"/prototype/App/{WS2OwnedCodexSession,WS2OwnedLaunchController}.swift \ - "$ROOT/tools/design-qa/OwnedErrorFlowChecks.swift" -o "$OUT/conductor-owned-flow" -"$OUT/conductor-owned-flow" "$OUT" diff --git a/tools/archive/design-qa-batch23-29/run-settings-shade-language-preview.sh b/tools/archive/design-qa-batch23-29/run-settings-shade-language-preview.sh deleted file mode 100644 index 19ea00f2..00000000 --- a/tools/archive/design-qa-batch23-29/run-settings-shade-language-preview.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# 第27批:设置卷帘/高级页中英夹具。先编译目录表(en.lproj),再编整套生产源 + 夹具入口, -# 在隐藏窗口里离屏渲染;夹具只直接设 WSL10n.language,不写偏好、不触发权限。 -# 用法:bash tools/design-qa/run-settings-shade-language-preview.sh [ABS_OUTPUT] -set -euo pipefail -ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" -OUT="${1:-$ROOT/.build/design-qa/settings-shade-language}" -ENTRY="$ROOT/tools/design-qa/SettingsShadeLanguagePreview.swift" -mkdir -p "$OUT" -xcrun xcstringstool compile "$ROOT/prototype/Resources/Localizable.xcstrings" -o "$OUT/strings" -WS2_LOCALIZATION_DIR="$OUT/strings" bash "$ROOT/tools/design-qa/render-native-surfaces.sh" "$OUT" "$ENTRY" --swift6 diff --git a/tools/archive/design-qa-batch23-29/run-silent-page-language-preview.sh b/tools/archive/design-qa-batch23-29/run-silent-page-language-preview.sh deleted file mode 100644 index 4f384aa4..00000000 --- a/tools/archive/design-qa-batch23-29/run-silent-page-language-preview.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# 第28批:静音页中英夹具(轻量档)。先编译目录表(en.lproj),再编整套生产源 + 夹具入口, -# 隐藏窗口离屏渲染;夹具只直接设 WSL10n.language,不写偏好、不碰相机。 -# 用法:bash tools/design-qa/run-silent-page-language-preview.sh [ABS_OUTPUT] -set -euo pipefail -ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" -OUT="${1:-$ROOT/.build/design-qa/silent-page-language}" -ENTRY="$ROOT/tools/design-qa/SilentPageLanguagePreview.swift" -mkdir -p "$OUT" -xcrun xcstringstool compile "$ROOT/prototype/Resources/Localizable.xcstrings" -o "$OUT/strings" -WS2_LOCALIZATION_DIR="$OUT/strings" bash "$ROOT/tools/design-qa/render-native-surfaces.sh" "$OUT" "$ENTRY" --swift6 diff --git a/tools/archive/power-context-probe/README.md b/tools/archive/power-context-probe/README.md deleted file mode 100644 index c678833f..00000000 --- a/tools/archive/power-context-probe/README.md +++ /dev/null @@ -1,41 +0,0 @@ -# power-context-probe(macOS 电源上下文诊断) - -只读诊断工具:查看当前**供电来源类型**,以及公开 API 是否能返回电源适配器详情。 - -## 用法 - -```sh -tools/power-context-probe/run.sh # 默认:电源类型 + 详情可用性 -tools/power-context-probe/run.sh --keys # 仅输出排序后的字典键名 -tools/power-context-probe/run.sh --help # 帮助 -``` - -无参数 / `--keys` / `--help`;其它或多参数会报错并退出码 1。 -正常查询即使结果为 unknown 也退出码 0。 - -## 实际输出的数据 - -- 供电来源类型(AC / Battery / UPS / unknown) -- 适配器详情是否可用(yes / unknown) -- 可用时且仅限公开可选键: - - `Watts` = 系统报告的适配器瓦数(非实时功耗,也不保证等于外壳额定最大值) - - `Current` = 系统报告的适配器电流 mA(非电池电流) - - `FamilyCode` = 家族编码(非品牌名) -- 缺失或类型不符一律记为 unknown,绝不写成 0 或 false。 - -`--keys` 模式**只**打印排序后的键名,用于研究字典形状,不输出任何取值。 - -## 缺失的溯源信息(本工具无法提供) - -- 品牌 / 型号 / 物理 USB 端口映射:本工具不作推测;可选序列号字段不输出。 -- `IOPSCopyExternalPowerAdapterDetails()` 返回 NULL 既可能是“无适配器”,也可能是查询错误; - 两者无法区分,因此保持为 **unknown**,不当作确定缺失。不输出 AdapterID/SerialNumber,也不 dump 字典。 - -本工具**不**声称能提供安全身份标识,也**不**声称能给出物理 USB 端口映射。 - -`run.sh` 使用 `set -euo pipefail`,从脚本路径推导根目录,在 -`.build/power-context-probe/` 下用 `swiftc -O` 编译并 `exec` 运行。 -仅链接 Foundation 与 IOKit;仅用官方 `IOKit.ps` 公开调用,无 IORegistry 私有调用、不启动传感器、不修改任何设备设置。 - -本机实际运行:AC 供电,系统报告 94 W、4700 mA、FamilyCode -536854518。 -公开字典未给出本工具可核定的品牌或左右端口映射;数值只代表当次系统报告。 diff --git a/tools/archive/power-context-probe/main.swift b/tools/archive/power-context-probe/main.swift deleted file mode 100644 index 74e864e1..00000000 --- a/tools/archive/power-context-probe/main.swift +++ /dev/null @@ -1,149 +0,0 @@ -// power-context-probe -// -// Standalone macOS diagnostic: reports the *type* of the currently providing -// power source and whether public adapter details are available. -// -// API surface is deliberately limited to the official public IOKit.ps calls: -// - IOPSCopyPowerSourcesInfo() -// - IOPSGetProvidingPowerSourceType(info) -// - IOPSCopyExternalPowerAdapterDetails() -// -// No IORegistry private calls, no sensor start, no device settings changed. -// This tool only *reads* public power-source metadata. - -import Foundation -import IOKit.ps - -// MARK: - Output helpers - -/// Maps a power source type constant (or nil/unexpected value) to a stable, -/// human-readable label. Unknown values are reported as "unknown" rather than -/// being coerced to a false/zero value. -func describePowerSourceType(_ raw: CFString?) -> String { - guard let raw = raw else { return "unknown" } - switch raw as String { - case kIOPSACPowerValue: - return "AC" - case kIOPSBatteryPowerValue: - return "Battery" - case "UPSPower": - return "UPS" - default: - return "unknown(\(raw as String))" - } -} - -/// Resolves an optional numeric public key from the adapter details dictionary. -/// -/// The dictionary values are typed as CFNumber; anything else (absent, wrong -/// type, non-numeric) is reported as "unknown" — never as 0. -func optionalNumericKey(_ dictionary: [String: Any], key: CFString) -> String { - guard let value = dictionary[key as String] else { return "unknown" } - guard let number = value as? NSNumber else { return "unknown" } - return number.stringValue -} - -// MARK: - Query - -/// Collects and prints the power-source summary. -/// -/// Always prints the power source type. Adapter details are reported as -/// available/unavailable; when available, only the documented optional public -/// keys are read. Absence of any *public* detail is reported as unknown because -/// this generic API cannot distinguish "no adapter" from "query error". -func runDefaultReport() { - // NOTE on ambiguity: IOPSCopyExternalPowerAdapterDetails() returns a - // retained CFDictionary on success and NULL when there is no adapter OR on - // error. We must keep that ambiguity intact and never claim a definite - // absence from a NULL result. - let snapshot = IOPSCopyPowerSourcesInfo()?.takeRetainedValue() - - let providingType: CFString? = snapshot.flatMap { - IOPSGetProvidingPowerSourceType($0)?.takeUnretainedValue() - } - - print("Power source type: \(describePowerSourceType(providingType))") - - let adapterDetails = IOPSCopyExternalPowerAdapterDetails()?.takeRetainedValue() - - guard let details = adapterDetails as? [String: Any] else { - // NULL: cannot distinguish "no adapter" from a query error. - print("Adapter details available: unknown") - print("Watts: unknown") - print("Current: unknown") - print("FamilyCode: unknown") - return - } - - print("Adapter details available: yes") - - // Public fields report adapter wattage/current, not measured outlet draw or battery amperage. - // They may reflect the negotiated supply; don't assume the adapter's printed maximum rating. - // kIOPSPowerAdapterFamilyKey - // is a family code, not a brand name. - print("Watts: \(optionalNumericKey(details, key: kIOPSPowerAdapterWattsKey as CFString))") - print("Current: \(optionalNumericKey(details, key: kIOPSPowerAdapterCurrentKey as CFString))") - print("FamilyCode: \(optionalNumericKey(details, key: kIOPSPowerAdapterFamilyKey as CFString))") - - // Brand/model and physical USB port mapping are not obtainable from this - // generic public API. We do not guess them. - print("Brand: unavailable from this generic public API") - print("Physical port mapping: unavailable from this generic public API") -} - -/// Prints only the sorted key names of the adapter details dictionary. -/// -/// This mode is for studying the *shape* of the dictionary. It never prints any -/// values (no names, model, serial, AdapterID) and never dumps the dictionary. -func runKeysReport() { - let adapterDetails = IOPSCopyExternalPowerAdapterDetails()?.takeRetainedValue() - - guard let details = adapterDetails as? [String: Any] else { - // NULL: cannot distinguish "no adapter" from a query error. - print("Adapter details available: unknown") - return - } - - print("Adapter details available: yes") - for key in details.keys.sorted() { - print(key) - } -} - -// MARK: - Entry point - -let arguments = Array(CommandLine.arguments.dropFirst()) - -switch arguments { -case []: - runDefaultReport() - // Normal query: even when type/details are unknown, absence is reported - // as unknown and this is a successful diagnostic. - exit(0) - -case ["--keys"]: - runKeysReport() - exit(0) - -case ["--help"]: - print(""" - Usage: power-context-probe [--keys | --help] - - (no args) Print the providing power source type and whether public - adapter details are available; when available, the optional - public keys Watts (reported adapter wattage), Current (reported - adapter current, mA) and FamilyCode (family code). - --keys Print ONLY the sorted key names present in the public adapter - details dictionary, to study its shape. No values are shown. - --help Show this message. - """) - exit(0) - -default: - // Reject unknown or multiple arguments. - FileHandle.standardError.write( - Data("power-context-probe: unexpected arguments: \(arguments.joined(separator: " "))\n".utf8)) - FileHandle.standardError.write( - Data("usage: power-context-probe [--keys | --help]\n".utf8)) - exit(1) -} diff --git a/tools/archive/power-context-probe/run.sh b/tools/archive/power-context-probe/run.sh deleted file mode 100644 index 0d3a106c..00000000 --- a/tools/archive/power-context-probe/run.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -# Resolve repository root from this script's location. -SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)" - -REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)" -BUILD_DIR="$REPO_ROOT/.build/power-context-probe" -mkdir -p "$BUILD_DIR" - -# Target the host architecture on macOS 14.0. -ARCH="$(uname -m)" -BIN="$BUILD_DIR/power-context-probe" - -swiftc -O \ - -target "${ARCH}-apple-macosx14.0" \ - -framework Foundation \ - -framework IOKit \ - -o "$BIN" \ - "$SCRIPT_DIR/main.swift" - -exec "$BIN" "$@" diff --git a/tools/archive/user-switch-probe/REPORT.md b/tools/archive/user-switch-probe/REPORT.md deleted file mode 100644 index c44a9b93..00000000 --- a/tools/archive/user-switch-probe/REPORT.md +++ /dev/null @@ -1,40 +0,0 @@ -# 实验 2:认出另一个 macOS 账号的主人后切换到那个账号(2026-10-31,macOS 27.0.1) - -## 结论 - -**有限可行(带前提)。** 在 A 账号里“请求切到 B、让 B 的锁屏出现”只能靠私有 `login.framework` 函数,没有公开 API;老路 `CGSession -switchToUserID` 在 macOS 27 **已不存在**。B 已登录时,B 自己的 WindowShade 实例能在 B 的会话成为前台后做刷脸解锁(和普通锁屏同一条路)。B **没登录**时不可行:没有 B 的会话,我们的 App 没在跑,面前是登录窗口(本机还开着 FileVault)。 - -## 证据(`tools/user-switch-probe/run.sh`,只读,从不调用切换/锁屏函数) -``` -path .../Menu Extras/User.menu/Contents/Resources/CGSession missing -path .../Menu Extras/User.menu missing -login!SACSwitchToUser present(not called) -login!SACSwitchToLoginWindow present(not called) -login!SACLockScreenImmediate present(not called) -login!SACScreenSaverStartNow / SACScreenSaverIsRunning / SACShieldWindowShowing present -login!SACSwitchToUserID absent -CGSCopySessionList / CGSSessionCopyAllSessionProperties present (CoreGraphics, private) -session kCGSSessionOnConsoleKey {true} kCGSSessionUserIDKey {501} (用户名已脱敏) -accounts(uid>=500): 2 console_sessions: 1 filevault: FileVault is On. -``` -- 本机 `man CGSession` 无手册;`Menu Extras` 目录里没有 `User.menu`。 -- `CGSessionCopyCurrentDictionary`(公开)只描述**当前**会话;要列别的会话需要私有的 `CGSCopySessionList`。 -- `SACSwitchToUser` 的参数签名我**没有验证**(没调用、没反汇编),不要凭印象写调用。 - -## 回答被问到的几点 -- **A 能否请求“切到 B”?** 只有私有 `SACSwitchToUser`(与系统“快速用户切换”菜单同源)或界面脚本去点控制中心;公开 API 没有。是否需要特殊授权未测(测它就要真的切换,被禁止)。属于**待 Aaron 在场时的受控实测**。 -- **B 的锁屏如何出现?** 由 `loginwindow` 管。切换后 A 的会话挂起,B 的会话(若在)变前台并显示 B 的锁屏/密码框;密码框由 loginwindow 画,不属于任何 App。 -- **B 自己的 WindowShade 能否刷脸?** 能,前提:B 已登录且 App 在 B 会话里运行(登录项)、B 授权过相机、B 录过脸。B 的实例用公开的 `NSWorkspace.sessionDidBecomeActiveNotification` 知道自己成了前台,再走现有“锁屏上认你→代填密码”流程。A 不能替 B 认脸:两个账号的相机权限、人脸数据、钥匙串都互相隔离(设计上也应保持)。 -- **B 没登录?** 没有会话、没有进程,只能是登录窗口;FileVault 开着时重启后第一次登录必须输密码(这是系统要求,不是我们能放行的)。结论:**不做**,交回系统。(Touch ID 在重启后首次登录不可用属 Apple 公开行为,本轮没有重新查证。) -- **A→B 的触发**:要先在 A 里认出“这是 B 的脸”。这需要在 A 的会话里存 B 的人脸模板——违反“只认本机账户的主人”的硬要求和账户隔离,需要 Aaron 明确定是否允许。 - -## 隐私与安全 -- 在 A 里替 B 识别身份,等于 A 账号的进程持有 B 的生物特征:建议**不做**;改为“A 里只做‘切到登录窗口/锁屏’的便利,不认人”。 -- 私有 API 调用可能随系统更新改签名;本机 macOS 27 上符号都在,但没有验证行为。 - -## 需要 Aaron 做的事 -1. 决定是否允许 A 保存 B 的脸模板(建议否)。 -2. 如要实测 `SACSwitchToUser`:在你在场、B 已登录、已存好工作的情况下,我写一个带 `--confirm-i-am-present` 的单次调用探针;那会真的切换会话,所以需要你点头,我这轮没做。 - -## 编译检查 -`clang UserSwitchProbe.c -o OUT -w -framework CoreFoundation -framework ApplicationServices` exit 0;`bash -n run.sh` exit 0。 diff --git a/tools/archive/user-switch-probe/UserSwitchProbe.c b/tools/archive/user-switch-probe/UserSwitchProbe.c deleted file mode 100644 index 6589ac4f..00000000 --- a/tools/archive/user-switch-probe/UserSwitchProbe.c +++ /dev/null @@ -1,33 +0,0 @@ -// READ-ONLY inventory of the fast-user-switching surface on this Mac. It never calls a switching, locking -// or logout function: private symbols are only looked up with dlsym, not invoked. User names are redacted. -#include -#include -#include -#include -#include -extern CFDictionaryRef CGSessionCopyCurrentDictionary(void); // public, read-only -int main(void) { - struct stat st; - const char *paths[] = { - "/System/Library/CoreServices/Menu Extras/User.menu/Contents/Resources/CGSession", - "/System/Library/CoreServices/Menu Extras/User.menu", - "/System/Library/CoreServices/loginwindow.app", 0 }; - for (int i = 0; paths[i]; i++) printf("path %-84s %s\n", paths[i], stat(paths[i], &st) == 0 ? "exists" : "missing"); - void *h = dlopen("/System/Library/PrivateFrameworks/login.framework/login", RTLD_NOW); - printf("login.framework dlopen %s\n", h ? "ok" : "failed"); - const char *syms[] = { "SACSwitchToUser", "SACSwitchToLoginWindow", "SACLockScreenImmediate", "SACScreenSaverStartNow", - "SACScreenSaverIsRunning", "SACShieldWindowShowing", "SACSwitchToUserID", 0 }; - for (int i = 0; h && syms[i]; i++) printf("login!%-26s %s\n", syms[i], dlsym(h, syms[i]) ? "present(not called)" : "absent"); - CFDictionaryRef d = CGSessionCopyCurrentDictionary(); - if (d) { - CFIndex n = CFDictionaryGetCount(d); const void *k[64], *v[64]; - if (n > 64) n = 64; CFDictionaryGetKeysAndValues(d, k, v); - for (CFIndex i = 0; i < n; i++) { - char kb[128], vb[160]; CFStringGetCString(k[i], kb, sizeof kb, kCFStringEncodingUTF8); - if (strstr(kb, "UserName") || strstr(kb, "UniqueSessionUUID")) { printf("session %-34s \n", kb); continue; } - CFStringRef s = CFCopyDescription(v[i]); CFStringGetCString(s, vb, sizeof vb, kCFStringEncodingUTF8); CFRelease(s); - char *b = strstr(vb, "{"); printf("session %-34s %s\n", kb, b ? b : vb); - } - } - return 0; -} diff --git a/tools/archive/user-switch-probe/run.sh b/tools/archive/user-switch-probe/run.sh deleted file mode 100755 index 77517c7d..00000000 --- a/tools/archive/user-switch-probe/run.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -# Compile and run the read-only probe. Usage: run.sh -set -euo pipefail -cd "$(dirname "$0")"; out="${TMPDIR:-/tmp}/UserSwitchProbe" -clang UserSwitchProbe.c -o "$out" -w -framework CoreFoundation -framework ApplicationServices -"$out" -echo "accounts(uid>=500): $(dscl . -list /Users UniqueID | awk '$2>=500' | wc -l | tr -d ' ') console_sessions: $(who | grep -c console) filevault: $(fdesetup status | head -1)" diff --git a/tools/archive/window-snapshot-check/main.swift b/tools/archive/window-snapshot-check/main.swift deleted file mode 100644 index cd9824da..00000000 --- a/tools/archive/window-snapshot-check/main.swift +++ /dev/null @@ -1,159 +0,0 @@ -// 窗口快照检查:开着、最小化、退到屏外三种状态下窗口画面还拿不拿得到。 -// -// 自己开一扇小窗口当靶子(纯色 + 变化的帧号),不激活自己、不切桌面、不碰别的 App 的窗口。 -// 隐藏要走激活语义,用不了:第三段改成 deminiaturize 再 orderOut,等价于“不在屏上”。 - -import Cocoa - -/// 变化的帧号,让窗口画面不是一张不变的图。 -@MainActor -private final class FrameNumber { - var value = 0 -} - -@MainActor -private let frameNumber = FrameNumber() - -@MainActor -private final class SnapshotCheck { - let window: NSWindow - private var ticker: Timer? - private(set) var failures = 0 - - init() { - window = NSWindow(contentRect: NSRect(x: 0, y: 0, width: 400, height: 300), - styleMask: [.titled], - backing: .buffered, - defer: false) - window.isReleasedWhenClosed = false - window.title = "WindowSnapshot 检查" - window.backgroundColor = .systemGreen - window.contentView = ContentView(text: "0") - window.center() - window.orderFrontRegardless() - ticker = Timer.scheduledTimer(withTimeInterval: 0.2, repeats: true) { [weak self] _ in - Task { @MainActor in self?.bump() } - } - } - - private func bump() { - frameNumber.value += 1 - (window.contentView as? ContentView)?.text = "\(frameNumber.value)" - window.displayIfNeeded() - } - - private var id: CGWindowID { CGWindowID(window.windowNumber) } - - private func sample(_ state: String) { - for quality in [WindowSnapshot.Quality.thumbnail, .full] { - let began = Date() - let image = WindowSnapshot.image(id, quality: quality) - let ms = Int((Date().timeIntervalSince(began) * 1000).rounded()) - if let image { - let name = quality == .full ? "full" : "thumbnail" - print("PASS snapshot \(state) \(name): \(image.width)x\(image.height) in \(ms)ms") - } else { - failures += 1 - let name = quality == .full ? "full" : "thumbnail" - print("FAIL snapshot \(state) \(name): nil in \(ms)ms") - } - } - } - - func run() { - wait(1.0) // 等窗口真的拿到窗口号并被合成 - sample("onscreen") - - window.miniaturize(nil) - wait(1.2) - sample("minimized") - - // 缩图:最长边缩到 320,比例不变。 - if let full = WindowSnapshot.image(id, quality: .full), let small = WindowSnapshot.downscaled(full, maxPixel: 320) { - let ok = max(small.width, small.height) == 320 - && abs(Double(small.width) / Double(small.height) - Double(full.width) / Double(full.height)) < 0.02 - if !ok { failures += 1 } - print("\(ok ? "PASS" : "FAIL") snapshot downscale: \(full.width)x\(full.height) → \(small.width)x\(small.height)") - } else { - failures += 1 - print("FAIL snapshot downscale: no picture to shrink") - } - - window.deminiaturize(nil) - window.orderOut(nil) - wait(0.5) - sample("offscreen") - - ticker?.invalidate() - ticker = nil - window.close() - // 不在这里 terminate:那样进程以 0 退出,失败数就丢了(由 main 按失败数退出)。 - } - - /// 让主循环转起来,窗口状态才会真的变过去。 - private func wait(_ seconds: TimeInterval) { - let deadline = Date().addingTimeInterval(seconds) - while Date() < deadline { - RunLoop.current.run(mode: .default, before: min(deadline, Date().addingTimeInterval(0.02))) - } - } -} - -/// 纯色背景 + 一行帧号。 -@MainActor -private final class ContentView: NSView { - var text: String - private let label: NSTextField - - init(text: String) { - self.text = text - label = NSTextField(labelWithString: text) - super.init(frame: NSRect(x: 0, y: 0, width: 400, height: 300)) - wantsLayer = true - layer?.backgroundColor = NSColor.systemGreen.cgColor - label.textColor = .black - label.font = .systemFont(ofSize: 64, weight: .bold) - addSubview(label) - } - - @available(*, unavailable) - required init?(coder: NSCoder) { fatalError("unused") } - - override func layout() { - super.layout() - label.sizeToFit() - label.frame.origin = NSPoint(x: (bounds.width - label.frame.width) / 2, - y: (bounds.height - label.frame.height) / 2) - } - - override func draw(_ dirtyRect: NSRect) { - NSColor.systemGreen.setFill() - dirtyRect.fill() - label.stringValue = text - label.displayIfNeeded() - } -} - -@main -@MainActor -private struct Main { - static func main() { - let app = NSApplication.shared - app.setActivationPolicy(.accessory) // 绝不激活自己 - guard CGPreflightScreenCaptureAccess() else { - print("SKIP no screen-recording permission") - exit(0) - } - guard WindowSnapshot.isAvailable else { - print("SKIP WindowSnapshot unavailable") - exit(0) - } - var failures = 0 - MainActor.assumeIsolated { - let check = SnapshotCheck() - check.run() - failures = check.failures - } - exit(failures == 0 ? 0 : 1) - } -} diff --git a/tools/archive/window-snapshot-check/run.sh b/tools/archive/window-snapshot-check/run.sh deleted file mode 100644 index 91262e6d..00000000 --- a/tools/archive/window-snapshot-check/run.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash -# -# tools/window-snapshot-check/run.sh -# -# 编译并运行窗口快照检查:自己开一扇小窗口,分别在屏上、最小化后、退到屏外三种状态下 -# 用 WindowSnapshot 截它,看画面拿不拿得到。不接触主 App 工程。 -# 只编译一个普通可执行文件,不做 codesign。 - -set -euo pipefail - -# 从仓库根运行,保证源文件路径固定。 -cd "$(dirname "$0")/../.." - -BUILD_DIR=".build/window-snapshot-check" -mkdir -p "${BUILD_DIR}" - -swiftc -O -swift-version 6 -parse-as-library \ - prototype/Capture/WindowSnapshot.swift \ - tools/window-snapshot-check/main.swift \ - -o "${BUILD_DIR}/check" - -exec "${BUILD_DIR}/check" From 5437bd006d3e765f5bff4ac7b0a12808e9fbf857 Mon Sep 17 00:00:00 2001 From: Aaron <12213433+surfine@users.noreply.github.com> Date: Wed, 2 Dec 2026 15:46:04 +0800 Subject: [PATCH 8/9] =?UTF-8?q?refactor:=20=E5=87=8F=E5=B0=91=E9=98=B2?= =?UTF-8?q?=E5=BE=A1=E6=80=A7=E4=BB=A3=E7=A0=81=EF=BC=8C=E5=88=A0=E6=8E=89?= =?UTF-8?q?=E6=B0=B8=E8=BF=9C=E8=B5=B0=E4=B8=8D=E5=88=B0=E7=9A=84=E5=88=86?= =?UTF-8?q?=E6=94=AF=E5=92=8C=E5=A4=9A=E4=BD=99=E5=A4=B9=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删掉值永远不变的开关:FileDragSensor.shelfEnabled、 WS2HookConfigPreview.writesUserHome、IdentityEvidenceBar.requireCalibratedThreshold、 ScreenCaptureBridge.deliverMain、ActionBar.showsMoreButton、NotchLevelControl.wantsKeyboardLight - 删掉没人接的回调与功能:加速度计设置页状态刷新、WS2FocusEffectExecutor.onBlocked、 FoldRenderer.motionX/Y、手柄扳机阻力反馈 - 去掉调用方已保证的夹值与空检查:网格列数 max(1,…)、p95 下标、音量二次夹值、 ArrangeController 的 ?? 兜底、NotchRow 负宽度、缩略图尺寸 isFinite 等 - 测试同步删掉只验证这些兜底的断言 Co-Authored-By: Claude Opus 5.5 --- prototype/App/ArrangeController.swift | 15 ++++----- prototype/App/CalendarPresenter.swift | 13 +++----- prototype/App/CountdownTimerCard.swift | 2 +- prototype/App/FaceObservationSource.swift | 4 +-- prototype/App/FileDragSensor.swift | 2 -- prototype/App/Launchpad.swift | 2 +- prototype/App/LaunchpadView.swift | 2 +- prototype/App/Notch/NotchContentView.swift | 1 - prototype/App/Notch/NotchController.swift | 2 +- prototype/App/NotchLevelControl.swift | 3 -- prototype/App/WS2ConductorSettingsCore.swift | 5 ++- prototype/App/WS2GameControllerBridge.swift | 22 ++----------- prototype/App/WS2GestureRows.swift | 2 +- prototype/App/WS2RemoteEffects.swift | 4 +-- prototype/Capture/PreviewRenderer.swift | 4 +-- prototype/Core/AwaySummary.swift | 2 +- prototype/Core/ConductorSession.swift | 2 +- prototype/Core/IdentityEvidence.swift | 3 +- prototype/Core/NotchRow.swift | 8 ++--- prototype/Core/WS2HookConfigPreview.swift | 4 --- prototype/Effects/AppleSPUAccelerometer.swift | 25 +++------------ prototype/Effects/EffectFrameSource.swift | 2 +- prototype/Effects/EffectSoakProbe.swift | 2 +- prototype/Effects/FoldRenderer.swift | 9 ++---- prototype/Resources/Localizable.xcstrings | 23 ------------- prototype/ScreenCaptureBridge.swift | 8 ++--- .../Support/WS2FocusEffectExecutor.swift | 5 ++- .../WindowBrowserActionBar.swift | 32 ++++++++----------- .../WindowBrowserActionPresentation.swift | 3 -- .../WindowBrowser/WindowBrowserGeometry.swift | 20 ++++++------ .../WindowThumbnailService.swift | 7 +--- tests/FileDragSensorTests.swift | 2 -- tests/NotchRowMergeTests.swift | 1 - tests/SilentPrepTests.swift | 2 -- tests/StripNotchExchangeTests.swift | 1 - 35 files changed, 74 insertions(+), 170 deletions(-) diff --git a/prototype/App/ArrangeController.swift b/prototype/App/ArrangeController.swift index 2288575c..008a8ad6 100644 --- a/prototype/App/ArrangeController.swift +++ b/prototype/App/ArrangeController.swift @@ -40,7 +40,7 @@ extension AppDelegate { for (proxy, handler) in savedHandlers { proxy.onResize = handler } return } - let duration = moves.map { $0.window.animationResizeTime($0.frame) }.max() ?? 0.2 + let duration = moves.map { $0.window.animationResizeTime($0.frame) }.max()! NSAnimationContext.runAnimationGroup { context in context.duration = duration for move in moves { move.window.animator().setFrame(move.frame, display: true) } @@ -140,7 +140,7 @@ extension AppDelegate { height: visibleFrame.height) let widgets = widgetFrames.filter { screen.frame.intersects($0) && lane.intersects($0) } guard !widgets.isEmpty else { return nil } - let widgetBottom = widgets.map(\.minY).min() ?? visibleFrame.maxY + let widgetBottom = widgets.map(\.minY).min()! let gap = max(18, proxyTitleBarHeight * 0.6) return max(visibleFrame.minY, widgetBottom - gap) } @@ -154,8 +154,8 @@ extension AppDelegate { height: visibleFrame.height) let widgets = widgetFrames.filter { screen.frame.intersects($0) && lane.intersects($0) } guard !widgets.isEmpty else { return nil } - let minX = widgets.map(\.minX).min() ?? visibleFrame.minX - let width = max(240, widgets.map(\.width).max() ?? NativeProxyTitleContentView.arrangedColumnFallbackWidth) + let minX = widgets.map(\.minX).min()! + let width = max(240, widgets.map(\.width).max()!) return NSRect(x: minX, y: visibleFrame.minY, width: width, height: visibleFrame.height) } @@ -229,7 +229,6 @@ extension AppDelegate { let overlay = state.overlay else { return nil } return (id, state, overlay) } - guard !entries.isEmpty else { return } arrangeShadedEntries(entries, reason: "focus") } @@ -267,8 +266,8 @@ extension AppDelegate { let verticalGap: CGFloat = 14 let widestExisting = group.map { arrangedDisplayWidth(for: $0.1, overlay: $0.2, visibleFrame: visible) - }.max() ?? visible.width - let tallestBar = max(1, group.map { $0.2.frame.height }.max() ?? proxyTitleBarHeight) + }.max()! + let tallestBar = max(1, group.map { $0.2.frame.height }.max()!) let stepY = tallestBar + verticalGap let startTop: CGFloat if usesOriginalHousekeepingColumnLayout { @@ -304,7 +303,7 @@ extension AppDelegate { let stairDepthCap = 4 stairStepX = group.map { arrangedStairStepWidth(for: $0.1, visibleFrame: visible) - }.max() ?? max(10, ProxyTitleLayoutMetrics.trafficLightDiameter * 0.95) + }.max()! let maxStairOffset = CGFloat(stairDepthCap) * stairStepX columnWidth = widestExisting columnStep = min(max(widestExisting + maxStairOffset + columnGap, diff --git a/prototype/App/CalendarPresenter.swift b/prototype/App/CalendarPresenter.swift index 1280bdbf..525f0b42 100644 --- a/prototype/App/CalendarPresenter.swift +++ b/prototype/App/CalendarPresenter.swift @@ -57,14 +57,11 @@ enum CalendarEarImage { track.lineWidth = 2.4 NSColor.white.withAlphaComponent(0.18).setStroke() track.stroke() - let value = CGFloat(min(1, max(0, fraction))) - if value > 0 { - let arc = NSBezierPath() - arc.appendArc(withCenter: center, radius: radius, startAngle: 90, endAngle: 90 - 360 * value, clockwise: true) - arc.lineWidth = 2.4; arc.lineCapStyle = .round - color(colorRGB).setStroke() - arc.stroke() - } + let arc = NSBezierPath() + arc.appendArc(withCenter: center, radius: radius, startAngle: 90, endAngle: 90 - 360 * CGFloat(fraction), clockwise: true) + arc.lineWidth = 2.4; arc.lineCapStyle = .round + color(colorRGB).setStroke() + arc.stroke() if let glyph = NSImage(systemSymbolName: "calendar", accessibilityDescription: nil)? .withSymbolConfiguration(.init(pointSize: side * 0.4, weight: .semibold).applying(.init(paletteColors: [.white]))) { let g = glyph.size diff --git a/prototype/App/CountdownTimerCard.swift b/prototype/App/CountdownTimerCard.swift index 5c87b42a..57f58ebe 100644 --- a/prototype/App/CountdownTimerCard.swift +++ b/prototype/App/CountdownTimerCard.swift @@ -158,7 +158,7 @@ final class CountdownTimerCard: NSView, WS2LeaseContent { big.textColor = (done ? Self.orange : NSColor.white).withAlphaComponent(alpha) let remainingFraction = timer.total > 0 ? Double(timer.remaining(at: now)) / Double(timer.total) : 0 CATransaction.begin(); CATransaction.setDisableActions(true) - fill.strokeEnd = CGFloat(done ? 1 : min(1, max(0, remainingFraction))) + fill.strokeEnd = CGFloat(done ? 1 : min(1, remainingFraction)) fill.opacity = Float(alpha); track.opacity = Float(alpha) CATransaction.commit() pause.image = NSImage(systemSymbolName: paused ? "play.fill" : "pause.fill", accessibilityDescription: nil)? diff --git a/prototype/App/FaceObservationSource.swift b/prototype/App/FaceObservationSource.swift index c9b03438..07397ecc 100644 --- a/prototype/App/FaceObservationSource.swift +++ b/prototype/App/FaceObservationSource.swift @@ -882,8 +882,8 @@ enum FaceEyeGeometry { } } guard longest >= 6 else { return nil } let perpendicular = pixels.map { -$0.x * axis.y + $0.y * axis.x } - let ratio = ((perpendicular.max() ?? 0) - (perpendicular.min() ?? 0)) / longest - return ratio.isFinite ? min(1, max(0, ratio)) : nil + let ratio = (perpendicular.max()! - perpendicular.min()!) / longest + return ratio.isFinite ? min(1, ratio) : nil } } diff --git a/prototype/App/FileDragSensor.swift b/prototype/App/FileDragSensor.swift index fb6d05b0..b110ee56 100644 --- a/prototype/App/FileDragSensor.swift +++ b/prototype/App/FileDragSensor.swift @@ -108,7 +108,6 @@ enum FileDropCell: Int, CaseIterable, Sendable { /// 现在的事实:文件架开没开、满没满,隔空投送能不能用、是不是正忙。 struct FileDropEnvironment: Equatable, Sendable { - var shelfEnabled = true var shelfFull = false var airDropAvailable = true var airDropBusy = false @@ -142,7 +141,6 @@ enum FileDropPlan { static func state(of cell: FileDropCell, kind: FileDragKind, env: FileDropEnvironment) -> FileDropCellState { switch cell { case .stage: - if !env.shelfEnabled { return FileDropCellState(enabled: false, reason: WSL10n.text("fileDrag.reason.shelfOff", zh: "文件架没开")) } if env.shelfFull { return FileDropCellState(enabled: false, reason: WSL10n.text("fileDrag.reason.shelfFull", zh: "文件架满了")) } return FileDropCellState(enabled: true, reason: nil) case .airDrop: diff --git a/prototype/App/Launchpad.swift b/prototype/App/Launchpad.swift index e3515a1d..f5e80307 100644 --- a/prototype/App/Launchpad.swift +++ b/prototype/App/Launchpad.swift @@ -593,7 +593,7 @@ final class LaunchpadPager { /// 仅主屏幕允许负一屏;文件夹仍从零开始。 var minimumPage = 0 var count = 1 { - didSet { if page > count - 1 { page = max(count - 1, 0) } } + didSet { if page > count - 1 { page = count - 1 } } } private(set) var page = 0 /// 拖出去多少页(往左拖为正)。 diff --git a/prototype/App/LaunchpadView.swift b/prototype/App/LaunchpadView.swift index cb8552ff..a56fee9f 100644 --- a/prototype/App/LaunchpadView.swift +++ b/prototype/App/LaunchpadView.swift @@ -578,7 +578,7 @@ final class LaunchpadView: NSView, NSTextFieldDelegate { field.animator().frame = fieldFrame } } else { pill.frame = frame; glyph.frame = glyphFrame; field.frame = fieldFrame } - let width = CGFloat(pageCount) * 7 + CGFloat(max(0, pageCount - 1)) * 12 + let width = CGFloat(pageCount) * 7 + CGFloat(pageCount - 1) * 12 // 页码点压在搜索胶囊上面(iPhone / iPad 的排法),资料库那页照旧。 let dotsY = pillAtTop ? min(bounds.height * 0.88, usableArea().maxY - 24) : frame.minY - 16 dots.frame = CGRect(x: bounds.midX - width / 2, y: dotsY, width: width, height: 7) diff --git a/prototype/App/Notch/NotchContentView.swift b/prototype/App/Notch/NotchContentView.swift index 4d3792e8..3fddd1a3 100644 --- a/prototype/App/Notch/NotchContentView.swift +++ b/prototype/App/Notch/NotchContentView.swift @@ -246,7 +246,6 @@ final class NotchContentView: NSView { /// 格子先全透明,再按序号一格一格淡入:第 i 格在形状开始后 0.09 + 0.04 × i 秒起。 func staggerTiles(fade: TimeInterval) { - guard tileViews.count > 0 else { return } for view in tileViews where !view.isHidden { view.alphaValue = 0 } for (index, view) in tileViews.enumerated() where !view.isHidden { DispatchQueue.main.asyncAfter(deadline: .now() + NotchSmallBehaviour.tileFadeDelay(index: index)) { [weak view] in diff --git a/prototype/App/Notch/NotchController.swift b/prototype/App/Notch/NotchController.swift index 39247ce4..4e8231b2 100644 --- a/prototype/App/Notch/NotchController.swift +++ b/prototype/App/Notch/NotchController.swift @@ -804,7 +804,7 @@ final class NotchController { fileDragKind = kind fileDragSuppressed = false fileDragAirDropAsked = false - fileDragEnv = FileDropEnvironment(shelfEnabled: true, shelfFull: false, airDropAvailable: true, + fileDragEnv = FileDropEnvironment(shelfFull: false, airDropAvailable: true, airDropBusy: activities.isSharing) cancelDrag() for panel in panels.values where !panel.yieldsToSystem { panel.beginFileDrop(kind: kind, env: fileDragEnv) } diff --git a/prototype/App/NotchLevelControl.swift b/prototype/App/NotchLevelControl.swift index 978738d3..1f5ec8e7 100644 --- a/prototype/App/NotchLevelControl.swift +++ b/prototype/App/NotchLevelControl.swift @@ -201,8 +201,6 @@ final class NotchLevelControl { private var deviceCache: [AudioObjectID: (volume: Bool, mute: Bool)] = [:] private var keyboard: (client: NSObject, id: UInt64)? private var keyboardProbed = false - /// 只在有画面接键盘灯时才去探它(LV3 之前没有,不碰那个私有桥)。 - var wantsKeyboardLight = false init() { let handle = dlopen("/System/Library/PrivateFrameworks/DisplayServices.framework/DisplayServices", RTLD_LAZY) @@ -234,7 +232,6 @@ final class NotchLevelControl { if setBrightness != nil, let display = Self.builtInDisplay(), readBrightness(display) != nil { caps.brightness = true } - if wantsKeyboardLight { caps.keyboardLight = keyboardClient().flatMap { readKeyboard($0) } != nil } return caps } diff --git a/prototype/App/WS2ConductorSettingsCore.swift b/prototype/App/WS2ConductorSettingsCore.swift index 0ae2c53f..7337df1e 100644 --- a/prototype/App/WS2ConductorSettingsCore.swift +++ b/prototype/App/WS2ConductorSettingsCore.swift @@ -11,10 +11,9 @@ enum WS2ConductorSettings { static var hookHelperPath: String { Bundle.main.bundleURL.appendingPathComponent("Contents/Helpers/WindowShadeHook").path } - /// 只生成给用户自己粘贴的配置,不写 ~/.claude(WS2HookConfigPreview.writesUserHome 永远是 false)。 + /// 只生成给用户自己粘贴的配置,不写 ~/.claude。 static func hookConfiguration(helper: String = hookHelperPath) -> String? { - guard WS2HookConfigPreview.writesUserHome == false, - let preview = try? WS2HookConfiguration.preview(original: Data("{}".utf8), executable: helper, connected: true) + guard let preview = try? WS2HookConfiguration.preview(original: Data("{}".utf8), executable: helper, connected: true) else { return nil } return String(data: preview.replacement, encoding: .utf8) } diff --git a/prototype/App/WS2GameControllerBridge.swift b/prototype/App/WS2GameControllerBridge.swift index bb95fa89..f8a63e82 100644 --- a/prototype/App/WS2GameControllerBridge.swift +++ b/prototype/App/WS2GameControllerBridge.swift @@ -30,7 +30,7 @@ import Cocoa var gate = WS2DeviceInputGate(), mapping = GamepadMapping(), sequence: UInt64 = 0 var buttons: [(String, GCControllerButtonInput)] = [] var last: [String:Bool] = [:], domain: WS2DeviceInputGate.Domain? - var neutralSticks = false, ownsFeedback = false + var neutralSticks = false var movement: Task? var ownsHandler = false var previousQueue: DispatchQueue? @@ -90,7 +90,7 @@ import Cocoa if e.domain != env.domain { emit(.cancel(attachment:e.id,presses:e.gate.changeDomain(to:env.domain))) e.domain = env.domain; e.last.removeAll(); e.neutralSticks = false - e.movement?.cancel(); e.movement = nil; clearFeedback(e) + e.movement?.cancel(); e.movement = nil } sample(e) } @@ -174,24 +174,8 @@ import Cocoa } } } } - // Optional physical feedback, never a proxy for identity. No caller enables it in this patch. - @discardableResult func feedback(attachment:UUID,start:Float,strength:Float) -> Bool { - let env=environment() - guard start.isFinite,strength.isFinite,(0...1).contains(start),(0...0.25).contains(strength), - env.unlocked,env.sinkReady,!env.gameOrUnknownInFront,env.domain == .conductor, - let e=entries.values.first(where:{$0.id == attachment}),e.gate.enabled, - let pad=e.controller.extendedGamepad as? GCDualSenseGamepad else{return false} - if strength == 0 { clearFeedback(e);return true } - // SDK 27 里这个方法没有 NS_SWIFT_NAME,Swift 侧名字是 setModeFeedbackWithStartPosition(_:resistiveStrength:)。 - pad.leftTrigger.setModeFeedbackWithStartPosition(start, resistiveStrength: strength) - pad.rightTrigger.setModeFeedbackWithStartPosition(start, resistiveStrength: strength);e.ownsFeedback=true;return true - } - private func clearFeedback(_ e:Entry) { - guard e.ownsFeedback else{return};e.ownsFeedback=false - if let pad=e.controller.extendedGamepad as? GCDualSenseGamepad { pad.leftTrigger.setModeOff();pad.rightTrigger.setModeOff() } - } private func suspend(_ e:Entry) { - let active=e.gate.suspend();e.movement?.cancel();e.movement=nil;_ = e.mapping.disconnect();clearFeedback(e) + let active=e.gate.suspend();e.movement?.cancel();e.movement=nil;_ = e.mapping.disconnect() releaseHandler(e) e.last.removeAll();e.neutralSticks=false if !active.isEmpty { emit(.cancel(attachment:e.id,presses:active)) } diff --git a/prototype/App/WS2GestureRows.swift b/prototype/App/WS2GestureRows.swift index df864598..dfb825fb 100644 --- a/prototype/App/WS2GestureRows.swift +++ b/prototype/App/WS2GestureRows.swift @@ -69,7 +69,7 @@ final class GestureSegments: NSObject { /// 把分段控件和各段的卡片接到页的栈里(接在讲解带下面)。 static func install(_ groups: [(title: String, card: NSView)], in stack: NSStackView, band: SettingsExplainerBand?) { guard !groups.isEmpty else { return } - selected = min(max(selected, 0), groups.count - 1) + selected = min(selected, groups.count - 1) let control = NSSegmentedControl(labels: groups.map(\.title), trackingMode: .selectOne, target: nil, action: nil) control.segmentDistribution = .fillEqually control.selectedSegment = selected diff --git a/prototype/App/WS2RemoteEffects.swift b/prototype/App/WS2RemoteEffects.swift index 3ac1877b..0b3cc5b4 100644 --- a/prototype/App/WS2RemoteEffects.swift +++ b/prototype/App/WS2RemoteEffects.swift @@ -408,14 +408,14 @@ extension WS2RemoteEffectPort { var address = address var settable: DarwinBoolean = false guard AudioObjectIsPropertySettable(device, &address, &settable) == noErr, settable.boolValue else { return nil } - var value = min(1, max(0, target)) + var value = target guard AudioObjectSetPropertyData(device, &address, 0, nil, UInt32(MemoryLayout.size), &value) == noErr else { return nil } return value } /// 音量按 1/16 一格走:先对齐到最近的一格,再加减;不出 0…1。 nonisolated static func steppedVolume(from value: Float32, step: Int) -> Float32 { - let notch = (min(1, max(0, value)) * 16).rounded() + Float32(step) + let notch = (value * 16).rounded() + Float32(step) return min(1, max(0, notch / 16)) } } diff --git a/prototype/Capture/PreviewRenderer.swift b/prototype/Capture/PreviewRenderer.swift index 6d7f374c..4a8a1bee 100644 --- a/prototype/Capture/PreviewRenderer.swift +++ b/prototype/Capture/PreviewRenderer.swift @@ -180,8 +180,8 @@ func nativeTitleStripLooksBroken(_ image: CGImage, logicalHeight: CGFloat) -> (B guard samples > 0 else { return (false, "empty-sample") } let opaqueRatio = CGFloat(opaque) / CGFloat(samples) let strongRows = rowCoverages.filter { $0 >= 0.78 }.count - let strongRowRatio = rowCoverages.isEmpty ? CGFloat(0) : CGFloat(strongRows) / CGFloat(rowCoverages.count) - let medianRowCoverage = rowCoverages.sorted()[max(0, rowCoverages.count / 2)] + let strongRowRatio = CGFloat(strongRows) / CGFloat(rowCoverages.count) + let medianRowCoverage = rowCoverages.sorted()[rowCoverages.count / 2] func materialCoverage(xRange: Range, yRange: Range) -> CGFloat { var material = 0 diff --git a/prototype/Core/AwaySummary.swift b/prototype/Core/AwaySummary.swift index 5dc7deb8..b73e5976 100644 --- a/prototype/Core/AwaySummary.swift +++ b/prototype/Core/AwaySummary.swift @@ -328,7 +328,7 @@ struct AwayList: Equatable, Sendable { init?(_ summary: AwaySummary.Summary) { guard !summary.items.isEmpty else { return nil } cells = summary.items.enumerated().map { Cell(id: Self.idBase + UInt32($0.offset), item: $0.element) } - omitted = max(0, summary.omitted) + omitted = summary.omitted } var isEmpty: Bool { cells.isEmpty } diff --git a/prototype/Core/ConductorSession.swift b/prototype/Core/ConductorSession.swift index aba432bc..5284436f 100644 --- a/prototype/Core/ConductorSession.swift +++ b/prototype/Core/ConductorSession.swift @@ -832,7 +832,7 @@ struct ConductorPresentation: Equatable, Sendable { p.beatDots = ConductorBeatDots.lit(forBeats: beats) case .staged(let label): // “三声 · high 下一轮” → 标题“三声 · high”,副句写给谁。 - let head = label.components(separatedBy: "\u{3000}").first ?? label + let head = label.components(separatedBy: "\u{3000}")[0] p.title = head.isEmpty ? label : head; p.subtitle = target?.text ?? "" case .cost(let label): p.title = label; p.subtitle = WSL10n.text("conductor.propose.tapToConfirm", zh: "点一下确认") diff --git a/prototype/Core/IdentityEvidence.swift b/prototype/Core/IdentityEvidence.swift index 64c96a6d..132a58f8 100644 --- a/prototype/Core/IdentityEvidence.swift +++ b/prototype/Core/IdentityEvidence.swift @@ -34,12 +34,11 @@ struct IdentityEvidence: Equatable, Sendable { /// 某个用途要证据时,证据至少要满足什么。字段只会让门槛更高,默认值就是最严的那一档。 struct IdentityEvidenceBar: Equatable, Sendable { var cameraClasses: Set = [.builtIn] - var requireCalibratedThreshold = true var cues: Set = [.turnChallenge] func admits(_ evidence: IdentityEvidence) -> Bool { evidence.isWellFormed && cameraClasses.contains(evidence.cameraClass) - && (!requireCalibratedThreshold || evidence.thresholdCalibrated) + && evidence.thresholdCalibrated && cues.isSubset(of: evidence.cues) } } diff --git a/prototype/Core/NotchRow.swift b/prototype/Core/NotchRow.swift index 82508244..48c9e5de 100644 --- a/prototype/Core/NotchRow.swift +++ b/prototype/Core/NotchRow.swift @@ -106,8 +106,8 @@ enum NotchRow { /// /// `tail`:右段末尾多一格文件架(FS-04)。它不算进“最多 3 件”(多放一格)。 static func fit(windows: Int, ongoing: Int, tail: Bool = false, away: Int = 0, awayNarrow: Bool = false) -> Layout { - Layout(away: max(0, away), awayNarrow: away > 0 && awayNarrow, - windows: min(max(0, windows), windowLimit), ongoing: min(max(0, ongoing), ongoingLimit + (tail ? 1 : 0))) + Layout(away: away, awayNarrow: away > 0 && awayNarrow, + windows: min(windows, windowLimit), ongoing: min(ongoing, ongoingLimit + (tail ? 1 : 0))) } // MARK: 滚动 @@ -586,9 +586,9 @@ extension NotchRow { /// 左段放什么:收着的窗口排前面,停在屏幕外的卷轴列排它们后面;总数不超过左段上限。 /// 只在这一排展开时才有卷轴列的格子;紧凑的两耳不画卷轴。 static func leftSegment(tucked: Int, parked: Int, expanded: Bool) -> (tucked: Int, parked: Int) { - let t = min(max(0, tucked), windowLimit) + let t = min(tucked, windowLimit) guard expanded else { return (t, 0) } - return (t, min(max(0, parked), windowLimit - t)) + return (t, min(parked, windowLimit - t)) } /// 左段的一格能不能拖出来放回卷轴:只有收着的窗口能;右段正在进行的事和停在屏幕外的卷轴列(点一下是滑进来)都不能。 diff --git a/prototype/Core/WS2HookConfigPreview.swift b/prototype/Core/WS2HookConfigPreview.swift index bdb67e38..e83a5d44 100644 --- a/prototype/Core/WS2HookConfigPreview.swift +++ b/prototype/Core/WS2HookConfigPreview.swift @@ -8,11 +8,7 @@ struct WS2HookConfigPreview: Equatable, Sendable { case refuseWrite } - /// 写用户 home 必须另一次明确同意。这里永远是关。 - static let writesUserHome = false - static func compare(current: String?, proposed: String?) -> Decision { - guard writesUserHome == false else { return .refuseWrite } guard let proposed else { return .refuseWrite } if current == proposed { return .unchanged } return .wouldReplace diff --git a/prototype/Effects/AppleSPUAccelerometer.swift b/prototype/Effects/AppleSPUAccelerometer.swift index 673a2e61..fa66a497 100644 --- a/prototype/Effects/AppleSPUAccelerometer.swift +++ b/prototype/Effects/AppleSPUAccelerometer.swift @@ -11,8 +11,8 @@ import QuartzCore /// https://github.com/olvvier/apple-silicon-accelerometer. /// The feature is deliberately optional: failure to open the device never /// affects the existing hinge sensor or desktop effect. -/// @unchecked Sendable:wanted、epoch、published、statusTicks 在 `lock` 里;HID 管理器、滤波和计时只在 `queue` 上动; -/// `onStatus` / `onStatusTick` 在主线程设好,也只在主线程调用。 +/// @unchecked Sendable:wanted、epoch、published 在 `lock` 里;HID 管理器、滤波和计时只在 `queue` 上动; +/// `onStatus` 在主线程设好,也只在主线程调用。 final class AppleSPUAccelerometer: @unchecked Sendable { enum Status { case searching @@ -43,13 +43,12 @@ final class AppleSPUAccelerometer: @unchecked Sendable { private static let reportIntervalMicroseconds = 16000 private let queue = DispatchQueue(label: "WindowShade.accelerometer", qos: .userInteractive) - /// 保护 wanted、epoch、published、statusTicks。 + /// 保护 wanted、epoch、published。 private let lock = NSLock() private var wanted = false private var epoch = EffectEpoch() /// 最新的倾斜偏移,桌面效果每帧来读。停下时当场清零。 private var published = SIMD2.zero - private var statusTicks = false // 以下只在 queue 上用。 private var manager: IOHIDManager? /// Activate 成功过才为真。Activate 和 Cancel 是一对:没激活就 Cancel,或激活了不 Cancel 就 Close, @@ -67,13 +66,8 @@ final class AppleSPUAccelerometer: @unchecked Sendable { /// 别的程序可能把它调到 1000 µs(800 次/秒),这里每秒最多收 120 份,多出来的直接丢。 private static let forwardInterval: CFTimeInterval = 1.0 / 120 private var lastForward: CFTimeInterval = 0 - /// 设置窗口开着时,状态字每秒最多跟着刷新四次(原来由每份读数顺带触发)。 - private static let statusTickInterval: CFTimeInterval = 0.25 - private var lastStatusTick: CFTimeInterval = 0 var onStatus: ((Status) -> Void)? - /// 只在 setStatusTicks(true) 期间、在主线程上调用。 - var onStatusTick: (() -> Void)? /// 当前倾斜偏移(已低通、已减去基线、已限幅)。任意线程可读,不跨线程排队。 var tilt: SIMD2 { lock.withLock { published } } @@ -251,19 +245,11 @@ final class AppleSPUAccelerometer: @unchecked Sendable { lastForward = now let token = connection let next = filter.update(vector, at: now) - let ticks = lock.withLock { () -> Bool in - guard wanted, epoch.accepts(token) else { return false } + lock.withLock { + guard wanted, epoch.accepts(token) else { return } if let next { published = next } - return statusTicks } if firstReading { deliver(.connected, token: token) } - if ticks, now - lastStatusTick >= Self.statusTickInterval { - lastStatusTick = now - DispatchQueue.main.async { [weak self] in - guard let self, current(token) else { return } - onStatusTick?() - } - } } private func deliver(_ status: Status, token: UInt64) { @@ -284,7 +270,6 @@ final class AppleSPUAccelerometer: @unchecked Sendable { activated = false hasReading = false lastForward = 0 - lastStatusTick = 0 filter = MotionTiltFilter() } } diff --git a/prototype/Effects/EffectFrameSource.swift b/prototype/Effects/EffectFrameSource.swift index df121968..3d482094 100644 --- a/prototype/Effects/EffectFrameSource.swift +++ b/prototype/Effects/EffectFrameSource.swift @@ -75,7 +75,7 @@ final class EffectFrameSource: NSObject, SCStreamOutput, SCStreamDelegate, @unch let fps: Double? = (delivered >= 2 && span > 0) ? Double(delivered - 1) / span : nil let sorted = deliveredIntervals.sorted() let p95: Double? = - sorted.isEmpty ? nil : sorted[min(sorted.count - 1, Int(Double(sorted.count) * 0.95))] + sorted.isEmpty ? nil : sorted[Int(Double(sorted.count) * 0.95)] return [ "deliveredFrames": Double(delivered), "sourceFPS": fps, diff --git a/prototype/Effects/EffectSoakProbe.swift b/prototype/Effects/EffectSoakProbe.swift index 459e8d51..ec41b3ba 100644 --- a/prototype/Effects/EffectSoakProbe.swift +++ b/prototype/Effects/EffectSoakProbe.swift @@ -151,7 +151,7 @@ final class EffectSoakProbe { var row: [String: Any] = [ "elapsed": now - started, "residentBytes": Self.residentBytes(), "sensorReadings": readings, "sensorReadP95ms": times.isEmpty - ? 0 : times[min(times.count - 1, Int(Double(times.count) * 0.95))], + ? 0 : times[Int(Double(times.count) * 0.95)], "displayTicks": ticks, "capturedFrames": session?.source.frame()?.id ?? 0, "phase": script.phase(at: now - started)?.rawValue ?? "none", "renderFields": Self.jsonFields(session?.renderer.metricFields() ?? [:]), diff --git a/prototype/Effects/FoldRenderer.swift b/prototype/Effects/FoldRenderer.swift index c55d5b3f..4a0db204 100644 --- a/prototype/Effects/FoldRenderer.swift +++ b/prototype/Effects/FoldRenderer.swift @@ -10,8 +10,6 @@ import MetalKit var titleFraction: Float = 0 var windowMode = false var opacity: Float = 1 - var motionX: Float = 0 - var motionY: Float = 0 var preset: DuoPreset = .shade } let view: MTKView @@ -324,7 +322,7 @@ import MetalKit func metricFields() -> [String: Double?] { func p95(_ values: [Double]) -> Double? { let a = values.sorted() - return a.isEmpty ? nil : a[min(a.count - 1, Int(Double(a.count) * 0.95))] + return a.isEmpty ? nil : a[Int(Double(a.count) * 0.95)] } func rate(_ count: Int, _ values: [Double]) -> Double? { guard count >= 2 else { return nil } @@ -385,7 +383,7 @@ import MetalKit parameters.progress, parameters.titleFraction, parameters.windowMode ? 1 : 0, parameters.opacity), SIMD4(o.focal, o.defocus, o.dim, o.baseBlur), - SIMD4(o.angle, parameters.motionX, parameters.motionY, 0), + SIMD4(o.angle, 0, 0, 0), SIMD4(Float(rect.minX), Float(rect.minY), Float(rect.width), Float(rect.height)), SIMD4(Float(drawable.texture.width), Float(drawable.texture.height), 0, 0), ] @@ -407,10 +405,9 @@ import MetalKit onFailure?(EffectError.unavailable(WSL10n.text("fold.err.opticalTexture", zh: "光学纹理分配失败"))) return } - let hasMotion = hypot(parameters.motionX, parameters.motionY) > 0.0001 // 这一帧自己重建的 page 键;完成回调只确认它。 var rebuiltPageKey: FoldPageKey? - if parameters.progress > 0 || hasMotion { + if parameters.progress > 0 { // The page pyramid carries the defocus: one base level plus generated mips, so the // wide part of the blur is a filtered fetch instead of a disk of taps. // PERF-06:page 与 mipmap 只在源内容或采样范围真的变了时才重建。progress/标题比例/ diff --git a/prototype/Resources/Localizable.xcstrings b/prototype/Resources/Localizable.xcstrings index c1b2f5c5..e905e2e0 100644 --- a/prototype/Resources/Localizable.xcstrings +++ b/prototype/Resources/Localizable.xcstrings @@ -14744,29 +14744,6 @@ } } }, - "fileDrag.reason.shelfOff": { - "extractionState": "manual", - "localizations": { - "en": { - "stringUnit": { - "state": "translated", - "value": "The file shelf is off" - } - }, - "zh-Hans": { - "stringUnit": { - "state": "translated", - "value": "文件架没开" - } - }, - "zh-Hant": { - "stringUnit": { - "state": "translated", - "value": "檔案架沒開" - } - } - } - }, "fileDrag.reason.textNoApp": { "extractionState": "manual", "localizations": { diff --git a/prototype/ScreenCaptureBridge.swift b/prototype/ScreenCaptureBridge.swift index 579f7f53..04bf921e 100644 --- a/prototype/ScreenCaptureBridge.swift +++ b/prototype/ScreenCaptureBridge.swift @@ -510,22 +510,20 @@ final class WindowStreamCapture: NSObject, SCStreamDelegate, SCStreamOutput, @un // 主画面按源流帧率全量投递(15/30fps 已由流本身自适应);镜像层取 // 约 8~10fps 的子集:15fps 源隔帧投(≈8fps),30fps 源每 3 帧投(10fps)。 let mirrorDivisor: UInt32 = fps >= 30 ? 3 : (fps >= 15 ? 2 : 1) - let deliverMain = true // 除数为 1(低于 15fps 的源,如低电量档的 10fps)时每帧都投:x % 1 恒为 0,不能再和 1 比。 let deliverMirror = mirrorLayer != nil && (mirrorDivisor == 1 || mirrorFrameIndex % mirrorDivisor == 1) - guard deliverMain || deliverMirror else { return } let carriesPixels = CMSampleBufferGetImageBuffer(sampleBuffer) != nil stateLock.lock() _deliveredFrameCount &+= 1 if carriesPixels { _pixelFrameCount &+= 1 } if deliverMirror { _mirroredFrameCount &+= 1 } stateLock.unlock() - deliver(sampleBuffer, main: deliverMain, mirror: deliverMirror) + deliver(sampleBuffer, mirror: deliverMirror) } // sampleBufferRenderer.enqueue 线程安全,直接在帧队列上投递。 - private func deliver(_ sampleBuffer: CMSampleBuffer, main: Bool, mirror: Bool) { - if main { videoLayer.sampleBufferRenderer.enqueue(sampleBuffer) } + private func deliver(_ sampleBuffer: CMSampleBuffer, mirror: Bool) { + videoLayer.sampleBufferRenderer.enqueue(sampleBuffer) if mirror, let mirrorLayer { mirrorLayer.sampleBufferRenderer.enqueue(sampleBuffer) } } diff --git a/prototype/Support/WS2FocusEffectExecutor.swift b/prototype/Support/WS2FocusEffectExecutor.swift index 9a842871..1a4fbb75 100644 --- a/prototype/Support/WS2FocusEffectExecutor.swift +++ b/prototype/Support/WS2FocusEffectExecutor.swift @@ -11,7 +11,6 @@ import Foundation private(set) var plan = WS2FocusEffectPlan() private let port: any WS2FocusMutationPort private var worker: Task? - var onBlocked: (() -> Void)? init(port: any WS2FocusMutationPort) { self.port = port } func transition(run: WS2.Token?, windows: [WS2FocusEffectPlan.Window]) throws { try plan.transition(run: run, windows: windows); pump() @@ -25,8 +24,8 @@ import Foundation worker = Task { [self] in while let operation = plan.next() { let outcome = await port.perform(operation, mayCommit: { [weak self] in self?.plan.mayCommit(operation) == true }) - do { try plan.complete(operation, outcome) } catch { onBlocked?(); break } - if plan.blocked { onBlocked?(); break } + do { try plan.complete(operation, outcome) } catch { break } + if plan.blocked { break } } worker = nil } diff --git a/prototype/WindowBrowser/WindowBrowserActionBar.swift b/prototype/WindowBrowser/WindowBrowserActionBar.swift index 4e631b9b..921d3208 100644 --- a/prototype/WindowBrowser/WindowBrowserActionBar.swift +++ b/prototype/WindowBrowser/WindowBrowserActionBar.swift @@ -106,9 +106,6 @@ final class WindowBrowserActionBar: NSView { /// 紧凑操作条末尾固定的“更多操作”入口:不随动作数量变化,始终可在 /// 悬停/选中状态的一条里发现(右键菜单仍然是同一份菜单)。 - var showsMoreButton = true { - didSet { fittedWidth = nil } - } private var fittedWidth: CGFloat? private(set) var moreButtonIdentifier = "window-browser-more" @@ -147,21 +144,19 @@ final class WindowBrowserActionBar: NSView { buttons.append(button) } // 溢出入口:始终放在末尾,像系统工具栏一样靠右。 - if showsMoreButton { - let more = WindowBrowserActionButton(title: "", target: target, action: action) - more.isBordered = false - more.bezelStyle = .regularSquare - more.imagePosition = .imageOnly - more.image = WindowBrowserSymbol.image(named: "ellipsis", - accessibilityDescription: WSL10n.text("browser.more.actions", zh: "更多操作"), - pointSize: buttonPointSize) - if more.image == nil { more.title = WSL10n.text("say.more", zh: "更多") } - more.toolTip = WSL10n.text("browser.more.tooltip", zh: "更多操作(与右键菜单相同)") - more.setAccessibilityLabel(WSL10n.text("browser.more.actions", zh: "更多操作")) - more.identifier = NSUserInterfaceItemIdentifier(moreButtonIdentifier) - addSubview(more) - buttons.append(more) - } + let more = WindowBrowserActionButton(title: "", target: target, action: action) + more.isBordered = false + more.bezelStyle = .regularSquare + more.imagePosition = .imageOnly + more.image = WindowBrowserSymbol.image(named: "ellipsis", + accessibilityDescription: WSL10n.text("browser.more.actions", zh: "更多操作"), + pointSize: buttonPointSize) + if more.image == nil { more.title = WSL10n.text("say.more", zh: "更多") } + more.toolTip = WSL10n.text("browser.more.tooltip", zh: "更多操作(与右键菜单相同)") + more.setAccessibilityLabel(WSL10n.text("browser.more.actions", zh: "更多操作")) + more.identifier = NSUserInterfaceItemIdentifier(moreButtonIdentifier) + addSubview(more) + buttons.append(more) } func reset() { @@ -210,7 +205,6 @@ final class WindowBrowserActionBar: NSView { guard fittedWidth != availableWidth else { return } fittedWidth = availableWidth for button in buttons { button.isHidden = false } - guard showsMoreButton else { return } while requiredWidth > max(0, availableWidth), let trailing = buttons.dropLast().last(where: { !$0.isHidden }) { trailing.isHidden = true diff --git a/prototype/WindowBrowser/WindowBrowserActionPresentation.swift b/prototype/WindowBrowser/WindowBrowserActionPresentation.swift index 71a799a0..6c066ab0 100644 --- a/prototype/WindowBrowser/WindowBrowserActionPresentation.swift +++ b/prototype/WindowBrowser/WindowBrowserActionPresentation.swift @@ -263,9 +263,6 @@ enum WindowBrowserStatusPresentationFactory { return WindowBrowserStatusPresentation( text: WSL10n.text("browser.status.offScreen", zh: "屏幕外"), symbolName: "rectangle.dashed", isWarning: false, isSnapshot: false) - case (_, _, .unknown): - return WindowBrowserStatusPresentation( - text: "", symbolName: nil, isWarning: false, isSnapshot: false) default: // 普通窗口只展示标题,不重复写“打开”。 return WindowBrowserStatusPresentation( diff --git a/prototype/WindowBrowser/WindowBrowserGeometry.swift b/prototype/WindowBrowser/WindowBrowserGeometry.swift index dff7d16b..070a16fc 100644 --- a/prototype/WindowBrowser/WindowBrowserGeometry.swift +++ b/prototype/WindowBrowser/WindowBrowserGeometry.swift @@ -238,8 +238,8 @@ struct WindowBrowserContentPlan { y: CGFloat(index) * (cellSize.height + spacing), width: bounds.width, height: cellSize.height) } - let column = index % max(1, columns) - let row = index / max(1, columns) + let column = index % columns + let row = index / columns return NSRect(x: CGFloat(column) * (cellSize.width + spacing), y: CGFloat(row) * (cellSize.height + spacing), width: cellSize.width, @@ -267,17 +267,17 @@ struct WindowBrowserContentPlan { switch direction { case .left: guard style == .grid else { return nil } - return clamped % max(1, columns) == 0 ? nil : clamped - 1 + return clamped % columns == 0 ? nil : clamped - 1 case .right: guard style == .grid else { return nil } let candidate = clamped + 1 if candidate >= itemCount { return nil } - return candidate % max(1, columns) == 0 ? nil : candidate + return candidate % columns == 0 ? nil : candidate case .up: - let candidate = style == .grid ? clamped - max(1, columns) : clamped - 1 + let candidate = style == .grid ? clamped - columns : clamped - 1 return candidate >= 0 ? candidate : nil case .down: - let candidate = style == .grid ? clamped + max(1, columns) : clamped + 1 + let candidate = style == .grid ? clamped + columns : clamped + 1 return candidate < itemCount ? candidate : nil case .home: return 0 @@ -397,7 +397,7 @@ enum WindowBrowserGeometry { let naturalContentWidth: CGFloat if resolvedStyle == .grid { naturalContentWidth = CGFloat(columns) * params.cardWidth - + CGFloat(max(0, columns - 1)) * params.cardSpacing + + CGFloat(columns - 1) * params.cardSpacing } else { naturalContentWidth = min(params.listNaturalWidth, max(220, available.width - params.panelPadding * 2)) @@ -615,14 +615,14 @@ enum WindowBrowserGeometry { static func columnCellWidth(contentWidth: CGFloat, columns: Int, params: WindowBrowserLayoutParams) -> CGFloat { - let usable = max(80, contentWidth - CGFloat(max(0, columns - 1)) * params.cardSpacing) - return floor(usable / CGFloat(max(1, columns))) + let usable = max(80, contentWidth - CGFloat(columns - 1) * params.cardSpacing) + return floor(usable / CGFloat(columns)) } static func gridDocumentHeight(columns: Int, count: Int, params: WindowBrowserLayoutParams) -> CGFloat { guard count > 0 else { return params.cardHeight } - let rows = Int(ceil(Double(count) / Double(max(1, columns)))) + let rows = Int(ceil(Double(count) / Double(columns))) return CGFloat(rows) * params.cardHeight + CGFloat(max(0, rows - 1)) * params.cardSpacing } diff --git a/prototype/WindowBrowser/WindowThumbnailService.swift b/prototype/WindowBrowser/WindowThumbnailService.swift index 6511cf69..d4d21423 100644 --- a/prototype/WindowBrowser/WindowThumbnailService.swift +++ b/prototype/WindowBrowser/WindowThumbnailService.swift @@ -715,15 +715,10 @@ final class WindowThumbnailService { /// 输出分配预算:防止无穷值、负数、溢出与异常超大分配。 static func isValidOutputSize(_ size: CGSize) -> Bool { - guard size.width.isFinite, size.height.isFinite else { return false } guard size.width > 0, size.height > 0 else { return false } guard size.width <= 8192, size.height <= 8192 else { return false } let pixels = (size.width * size.height).rounded(.up) - guard pixels.isFinite, pixels <= 33_554_432 else { return false } + guard pixels <= 33_554_432 else { return false } return true } - - private static func isValid(size: CGSize) -> Bool { - isValidSourceSize(size) && isValidOutputSize(size) - } } diff --git a/tests/FileDragSensorTests.swift b/tests/FileDragSensorTests.swift index 4a830c78..4dceca36 100644 --- a/tests/FileDragSensorTests.swift +++ b/tests/FileDragSensorTests.swift @@ -83,8 +83,6 @@ struct FileDragSensorTests { expect(FileDropPlan.state(of: .openWith, kind: .text, env: env) == FileDropCellState(enabled: false, reason: "文字挑不了 App"), "文字挑不了 App") expect(!FileDropPlan.state(of: .openWith, kind: .image, env: env).enabled, "图片也挑不了 App") expect(FileDropPlan.state(of: .openWith, kind: .link, env: env).enabled, "链接能用 App 打开(只亮浏览器)") - var off = env; off.shelfEnabled = false - expect(!FileDropPlan.state(of: .stage, kind: files, env: off).enabled, "文件架没开:暂存灰着") var busy = env; busy.airDropBusy = true expect(FileDropPlan.state(of: .airDrop, kind: files, env: busy).reason == "正在隔空投送", "上一次隔空投送还没完") diff --git a/tests/NotchRowMergeTests.swift b/tests/NotchRowMergeTests.swift index cd492bd3..d472d4fa 100644 --- a/tests/NotchRowMergeTests.swift +++ b/tests/NotchRowMergeTests.swift @@ -49,7 +49,6 @@ struct NotchRowMergeTests { t.expect(NotchRow.fit(windows: 8, ongoing: 3) == NotchRow.Layout(windows: 8, ongoing: 3), "8+3 都放,不让右段只占一半") t.expect(NotchRow.fit(windows: 1, ongoing: 1) == NotchRow.Layout(windows: 1, ongoing: 1), "1+1") t.expect(NotchRow.fit(windows: 0, ongoing: 0) == NotchRow.Layout(windows: 0, ongoing: 0), "空的一排") - t.expect(NotchRow.fit(windows: -3, ongoing: -1) == NotchRow.Layout(windows: 0, ongoing: 0), "负数当 0") t.section("M11-04b", "滚动:刘海屏岛宽固定 408(2026-11-05《两耳的岛》,IslandMetrics),视口 380,放不下滚、放得下居中,边缘淡出,键盘焦点滚进视口") t.expect(NotchRow.islandWidth == 408 && NotchRow.viewportWidth == 380, "岛 408,视口 = 408 − 2 × 14") diff --git a/tests/SilentPrepTests.swift b/tests/SilentPrepTests.swift index fe6d289b..2dc39459 100644 --- a/tests/SilentPrepTests.swift +++ b/tests/SilentPrepTests.swift @@ -1347,8 +1347,6 @@ struct SilentPrepTests { "a different hook preview only describes the replacement") expect(WS2HookConfigPreview.compare(current: "a", proposed: nil) == .refuseWrite, "a missing hook proposal is refused") - expect(WS2HookConfigPreview.writesUserHome == false, - "hook preview does not write the user home") expect(WS2Posture.eyesPhrase == "离屏幕近了" && WS2Posture.posturePhrase == "头低久了", "posture lines stay the short candidates and are not a hardware pass") for command in WS2SilentCatalog.commands { diff --git a/tests/StripNotchExchangeTests.swift b/tests/StripNotchExchangeTests.swift index 2cb0dfc4..ad608e21 100644 --- a/tests/StripNotchExchangeTests.swift +++ b/tests/StripNotchExchangeTests.swift @@ -204,7 +204,6 @@ struct StripNotchExchangeTests { expect(NotchRow.leftSegment(tucked: 7, parked: 5, expanded: true) == (7, 1), "总数不超过左段上限 8:卷轴列让位给收着的窗口") expect(NotchRow.leftSegment(tucked: 12, parked: 5, expanded: true) == (8, 0), "收着的窗口多到占满:卷轴列放不下") expect(NotchRow.leftSegment(tucked: 0, parked: 3, expanded: true) == (0, 3), "没有收着的窗口:只有卷轴列") - expect(NotchRow.leftSegment(tucked: -1, parked: -2, expanded: true) == (0, 0), "负数当 0") expect(NotchRow.canDragOut(cellID: 40, parkedCellIDs: [41, 42]), "收着的窗口能拖出来") expect(!NotchRow.canDragOut(cellID: 41, parkedCellIDs: [41, 42]), "卷轴列的格子点一下是滑进来,不能拖") expect(!NotchRow.canDragOut(cellID: NotchRow.ongoingIDBase + 1, parkedCellIDs: []), "右段正在进行的事不能拖进卷轴") From 268d65758248f41112add3fe143dd566d7823718 Mon Sep 17 00:00:00 2001 From: Aaron <12213433+surfine@users.noreply.github.com> Date: Wed, 2 Dec 2026 16:00:25 +0800 Subject: [PATCH 9/9] =?UTF-8?q?refactor(focus):=20=E5=88=A0=E6=8E=89?= =?UTF-8?q?=E4=B8=A4=E9=81=93=E5=86=99=E6=AD=BB=E7=9A=84=E5=87=86=E5=85=A5?= =?UTF-8?q?=E9=97=B8=E4=B8=8E=E4=BC=91=E6=81=AF=E6=97=B6=E6=95=B4=E5=B1=8F?= =?UTF-8?q?=E6=94=B6=E8=B5=B7=E7=9A=84=E6=AD=BB=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit restTuckAdmitted 恒为 false,休息时整屏收起与任意键放回的全局监听从未运行: .tuckAll 改为直接跳过,删掉 FocusRestReturnMonitor 及其测试与隐私登记。 admitted 恒为 true,删掉两处永远通过的检查。行为不变。 Co-Authored-By: Claude Opus 5.5 --- prototype/App/FocusRestReturnMonitor.swift | 44 ---------------------- prototype/App/FocusTimerCard.swift | 2 +- prototype/App/WS2AppRuntime.swift | 18 ++------- prototype/App/WS2FocusWindowPort.swift | 9 +---- tests/FocusSurfaceTests.swift | 32 ---------------- tests/run-focus-surface-tests.sh | 6 +-- tools/privacy/registry.json | 7 ---- 7 files changed, 7 insertions(+), 111 deletions(-) delete mode 100644 prototype/App/FocusRestReturnMonitor.swift delete mode 100644 tests/FocusSurfaceTests.swift diff --git a/prototype/App/FocusRestReturnMonitor.swift b/prototype/App/FocusRestReturnMonitor.swift deleted file mode 100644 index 0eb0cc4d..00000000 --- a/prototype/App/FocusRestReturnMonitor.swift +++ /dev/null @@ -1,44 +0,0 @@ -import Cocoa - -/// 休息时窗口被收着的这段时间里,按任意键、点屏幕任意处就把窗口放回来(休息照走)。 -/// 只在这段时间装一个全局监听(keyDown、leftMouseDown),不读按了什么键,也不读点在哪;结束就卸。 -@MainActor final class FocusRestReturnMonitor { - static let shared = FocusRestReturnMonitor() - /// 装监听的缝:测试里换成假的,生产里是 NSEvent 全局监听。 - typealias Install = @MainActor (_ fire: @escaping @Sendable () -> Void) -> Any? - typealias Remove = @MainActor (Any) -> Void - private let install: Install - private let remove: Remove - private var token: Any? - private var onReturn: (() -> Void)? - var isInstalled: Bool { token != nil } - - init(install: @escaping Install = { FocusRestReturnMonitor.liveInstall($0) }, - remove: @escaping Remove = { NSEvent.removeMonitor($0) }) { - self.install = install; self.remove = remove - } - - /// 已经装着就不重复装。 - func start(onReturn: @escaping () -> Void) { - self.onReturn = onReturn - guard token == nil else { return } - token = install { [weak self] in - DispatchQueue.main.async { MainActor.assumeIsolated { self?.fire() } } - } - } - - func stop() { - if let token { remove(token) } - token = nil; onReturn = nil - } - - private func fire() { - guard token != nil, let callback = onReturn else { return } - stop() - callback() - } - - static func liveInstall(_ fire: @escaping @Sendable () -> Void) -> Any? { - NSEvent.addGlobalMonitorForEvents(matching: [.keyDown, .leftMouseDown]) { _ in fire() } - } -} diff --git a/prototype/App/FocusTimerCard.swift b/prototype/App/FocusTimerCard.swift index 6d5ca980..e14b8f23 100644 --- a/prototype/App/FocusTimerCard.swift +++ b/prototype/App/FocusTimerCard.swift @@ -75,7 +75,7 @@ import QuartzCore restSkip.frame = CGRect(x:bounds.width - restSkip.frame.width - 10,y:bounds.height - restSkip.frame.height - 8, width:restSkip.frame.width,height:restSkip.frame.height) } - /// 休息时点卡片也回来(屏幕上别处的点由 FocusRestReturnMonitor 接)。 + /// 休息时点卡片也回来。 override func mouseDown(with event: NSEvent) { guard resting, inputIsCurrent() else { super.mouseDown(with:event); return } host.handle(.dismissRestWindows) diff --git a/prototype/App/WS2AppRuntime.swift b/prototype/App/WS2AppRuntime.swift index 3c461f9f..f02e3110 100644 --- a/prototype/App/WS2AppRuntime.swift +++ b/prototype/App/WS2AppRuntime.swift @@ -666,18 +666,10 @@ import Cocoa private func handleFocusEffects(_ effects: [FocusTimer.Effect]) { for effect in effects { switch effect { - case .tuckAll(let token): - guard WS2FocusWindowPort.restTuckAdmitted else { - wlog("focus: window effects not admitted yet; counting only") - continue - } - do { - try focusEffects.transition(run: token, windows: focusTargets()) - // 窗口收着的这段时间,任意键或点一下把它们放回来;休息照走。 - FocusRestReturnMonitor.shared.start { [weak self] in self?.focus.handle(.dismissRestWindows) } - } catch { wlog("focus: plan rejected the tuck phase") } + case .tuckAll: + // 休息时整屏收起没有放开(拍板第 21 条只放开收聊天):只计数,不动窗口。 + continue case .restoreAll: - FocusRestReturnMonitor.shared.stop() do { try focusEffects.transition(run: nil, windows: []) } catch { wlog("focus: plan rejected the restore phase") } case .remind(let reminder): @@ -689,10 +681,6 @@ import Cocoa case .sound(.restStarted): owner?.playFocusRestSound(started: true) case .sound(.restFinished): owner?.playFocusRestSound(started: false) case .tuckChat(let token): - guard WS2FocusWindowPort.admitted else { - wlog("focus: window effects not admitted yet; counting only") - continue - } // 专注期只收私人 App 名单里那几个;不打断打字,所以不挂“任意键放回”。 do { try focusEffects.transition(run: token, windows: focusTargets(privateOnly: true)) } catch { wlog("focus: plan rejected the chat tuck phase") } diff --git a/prototype/App/WS2FocusWindowPort.swift b/prototype/App/WS2FocusWindowPort.swift index d53018c2..44202820 100644 --- a/prototype/App/WS2FocusWindowPort.swift +++ b/prototype/App/WS2FocusWindowPort.swift @@ -3,22 +3,17 @@ import Cocoa /// T3 的真实窗口端口:只走既有的逐窗收起与放回,不用有切换语义的 `tuckAll`。 /// /// 2026-10-29 拍板第 21 条:闸门放开,但“专注时收起聊天窗口”默认关(WS2FocusSettings.tuckChat), -/// 没明确打开过的人行为不变。休息时的 `tuckAll` 不在此列:它另有一道闸(restTuckAdmitted),仍关着。真机时序表(截图未完成就结束、用户手动挪动、PID 复用、 +/// 没明确打开过的人行为不变。休息时的 `tuckAll` 不在此列,仍不收起。真机时序表(截图未完成就结束、用户手动挪动、PID 复用、 /// 迟到完成、部分恢复失败、锁中回调)的收起/放回探针待 Aaron 在真机上跑。 @MainActor final class WS2FocusWindowPort: WS2FocusMutationPort { - /// 唯一的准入开关;是否真的收起仍由设置里那一行(默认关)决定。 - static let admitted = true - /// 休息阶段的整屏收起(`tuckAll`)没有对应设置,拍板第 21 条只放开收聊天;这里保持不放行, - /// 免得没打开过任何设置的人在每次休息时被收起整屏窗口。要放开须单独拍板并过真机。 - static let restTuckAdmitted = false private weak var owner: AppDelegate? init(owner: AppDelegate) { self.owner = owner } func perform(_ operation: WS2FocusEffectPlan.Operation, mayCommit: @escaping @MainActor () -> Bool) async -> WS2FocusEffectPlan.Outcome { - guard Self.admitted, let owner else { return .unchanged } + guard let owner else { return .unchanged } switch operation.kind { case .tuck(let window, _, _): return await tuck(window, owner: owner, mayCommit: mayCommit) diff --git a/tests/FocusSurfaceTests.swift b/tests/FocusSurfaceTests.swift deleted file mode 100644 index a576d8b8..00000000 --- a/tests/FocusSurfaceTests.swift +++ /dev/null @@ -1,32 +0,0 @@ -import Cocoa - -@main -@MainActor -struct FocusSurfaceTests { - final class Box: @unchecked Sendable { var fire: (@Sendable () -> Void)?; var installs = 0; var removes = 0 } - static func main() { - var t = TestSuite("M10-surface") - t.section("M10-01", "休息回来监听:平时没有,只在窗口收着期间有,结束就卸") - let box = Box() - let monitor = FocusRestReturnMonitor(install: { fire in box.installs += 1; box.fire = fire; return NSObject() }, - remove: { _ in box.removes += 1 }) - t.expect(!monitor.isInstalled && box.installs == 0, "没开始休息时不装") - var returns = 0 - monitor.start { returns += 1 } - monitor.start { returns += 1 } - t.expect(monitor.isInstalled && box.installs == 1, "重复开始不重复装") - monitor.stop() - t.expect(!monitor.isInstalled && box.removes == 1, "结束就卸") - monitor.stop() - t.expect(box.removes == 1, "重复卸无动作") - t.section("M10-02", "任意键或点一下 → 触发一次回调并自己卸掉") - monitor.start { returns += 1 } - box.fire?() - RunLoop.main.run(until: Date(timeIntervalSinceNow: 0.2)) - t.expect(returns == 1 && !monitor.isInstalled && box.removes == 2, "触发一次,随即卸载") - box.fire?() - RunLoop.main.run(until: Date(timeIntervalSinceNow: 0.1)) - t.expect(returns == 1, "卸载后的迟到事件不再触发") - t.finish() - } -} diff --git a/tests/run-focus-surface-tests.sh b/tests/run-focus-surface-tests.sh index 5dc1db56..bce7f77b 100644 --- a/tests/run-focus-surface-tests.sh +++ b/tests/run-focus-surface-tests.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# 番茄钟刘海表面(M10):提醒文案与停留、呼吸规则、休息回来监听。 +# 番茄钟刘海表面(M10):提醒文案与停留、呼吸规则。 set -euo pipefail ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" BUILD="$ROOT/.build/focus-surface" @@ -10,7 +10,3 @@ FLAGS=(-swift-version 6 -strict-concurrency=complete -warnings-as-errors -parse- "$SWIFTC_BIN" "${FLAGS[@]}" "$ROOT/prototype/Core/Contracts.swift" "$ROOT/tests/support/WS2TestSupport.swift" \ "$ROOT/prototype/Core/WSL10n.swift" "$ROOT/prototype/Core/PrivacyPaneName.swift" "$ROOT/prototype/Core/FocusTimer.swift" "$ROOT/tests/FocusTimerTests.swift" -o "$BUILD/focus-timer-reminders" "$BUILD/focus-timer-reminders" -# 休息回来监听(AppKit,监听用假的装卸)。 -"$SWIFTC_BIN" "${FLAGS[@]}" "$ROOT/tests/support/WS2TestSupport.swift" "$ROOT/prototype/Core/Contracts.swift" \ - "$ROOT/prototype/App/FocusRestReturnMonitor.swift" "$ROOT/tests/FocusSurfaceTests.swift" -o "$BUILD/focus-surface" -"$BUILD/focus-surface" diff --git a/tools/privacy/registry.json b/tools/privacy/registry.json index df821b20..c3c718a1 100644 --- a/tools/privacy/registry.json +++ b/tools/privacy/registry.json @@ -4079,13 +4079,6 @@ "source": "static func isOn(in store: UserDefaults) -> Bool { store.bool(forKey: defaultsKey) }", "signal": "settings" }, - { - "path": "prototype/App/FocusRestReturnMonitor.swift", - "line": 0, - "symbol": "NSEvent.addGlobalMonitorForEvents", - "source": "NSEvent.addGlobalMonitorForEvents(matching: [.keyDown, .leftMouseDown]) { _ in fire() }", - "signal": "key-position" - }, { "path": "prototype/App/EntitlementProbe.swift", "line": 11,