input-inject: close lane (lead review); split app-shell into app-engine + app-ui; brief: app-engine
Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
1 parent
c7d294a7a3
commit
ca9be2eb16
6 files changed
+225
-33
No files matched your search
@@ -116,38 +116,56 @@ concurrency, shared constants, checkpoints) is fixed in `docs/contracts.md`.
|
||||
*(`releaseAll()` and `lockThisMac()` are published; calling them on
|
||||
each recovery row is app-shell's wiring — see the lane's Handshakes.)*
|
||||
|
||||
## 6. app-shell (app + core + mac) — `Sources/mwb/*`, `Sources/MWBCore/Settings.swift`, `Sources/MWBMac/StatusItem.swift`, `Sources/MWBMac/SettingsWindow/*.swift`, `Sources/MWBMac/Notifications.swift`
|
||||
## 6. app-engine (app + core) — `Sources/mwb/main.swift`, `Sources/mwb/Engine.swift`, `Sources/mwb/EngineActions.swift`, `Sources/mwb/Recovery.swift`, `Sources/mwb/AppLifecycle.swift`, `Sources/MWBCore/Settings.swift`, `Sources/MWBMac/Log.swift`
|
||||
|
||||
- [ ] `Settings`: PowerToys schema (README §Settings), JSON load/save at
|
||||
`~/Library/Application Support/mwb-mac/settings.json` (0600),
|
||||
file watch, random key / `MachineID` / `DeviceID` on first run,
|
||||
`LastX/LastY/PackageID` persistence.
|
||||
`LastX/LastY/PackageID` persistence, hostname validation (D7);
|
||||
mapping to `SessionConfig`/`ChannelConfig`/`EdgeConfig`/
|
||||
`CaptureConfig`/`InjectorConfig` (C4).
|
||||
- [ ] The `Engine` actor (C3): owns Switcher, sequencer, replay filter,
|
||||
channel, tap, routing state, capture queue, injector, cursor,
|
||||
screens; publishes the routing snapshot; drains the capture ring;
|
||||
stamps ids once and forwards to every target (C1); dispatches
|
||||
`.packet` events to injector / switcher; applies every
|
||||
`SwitchAction`.
|
||||
- [ ] Recovery wiring (C2): every trigger row end-to-end — escape
|
||||
hotkeys, controlled-peer disconnect, 30 s silence, outbound stall,
|
||||
tap disable, permission loss, quit/crash handler — each ending in
|
||||
route-local + `releaseAll` + `Cursor.recouple`.
|
||||
- [ ] Open requests from lanes 3–5: reopen countdown while nothing is
|
||||
connected; `markControlled` on every switch; `EventTap.now()`
|
||||
timestamps; swallow flags (false in ALL mode); lock chord
|
||||
forwarding; layout into every `inject`; `HotKeyLockMachine` →
|
||||
`InjectorConfig`; `Screens.startObserving()` on main; `canInject`.
|
||||
- [ ] `mwb` runs as an `NSApplication` (LSUIElement) with a minimal
|
||||
status item showing only "mwb: running / permissions missing"
|
||||
and Quit — enough to run headless for CP0 smoke by the lead; the
|
||||
real UI is lane 7. `mwb --check-permissions` kept. Single
|
||||
instance; file log at `~/Library/Logs/mwb-mac/` without key
|
||||
material.
|
||||
|
||||
## 7. app-ui (mac) — `Sources/MWBMac/StatusItem.swift`, `Sources/MWBMac/SettingsWindow/*.swift`, `Sources/MWBMac/Notifications.swift`, `Sources/MWBMac/LaunchAgent.swift`, `Sources/mwb/UIBridge.swift`
|
||||
|
||||
- [ ] Menu-bar `NSStatusItem`: per-machine status dot in the documented
|
||||
colours (`doc/devdocs/modules/mousewithoutborders.md`), current
|
||||
controlled machine, Reconnect, Easy Mouse toggle, Lock all, Open
|
||||
Settings, Quit.
|
||||
- [ ] Settings window (SwiftUI): machine matrix editor (4 slots,
|
||||
drag-reorder, one/two rows), security key (show/generate/copy),
|
||||
port, every boolean in README §Settings, Easy Mouse picker, hotkey
|
||||
recorders, Name2IP editor, permissions status with "Open System
|
||||
Settings" buttons, LaunchAgent toggle.
|
||||
- [ ] Settings window (SwiftUI in an `NSHostingView`): machine matrix
|
||||
editor (4 slots, reorder, one/two rows), security key
|
||||
(show/generate/copy), port, every boolean in README §Settings,
|
||||
Easy Mouse picker, hotkey recorders, Name2IP editor, permissions
|
||||
status with "Open System Settings" buttons, LaunchAgent toggle
|
||||
(`SMAppService.mainApp`).
|
||||
- [ ] Status messages (`ShowClipboardAndNetworkStatusMessages`) via
|
||||
`UserNotifications`.
|
||||
- [ ] The `Engine` actor (C3): owns Switcher, sequencer, replay filter,
|
||||
connections, held-key state; publishes the routing snapshot; drains
|
||||
the capture ring (coalescing motion); stamps ids once and forwards
|
||||
to every target session (C1); dispatches `.packet` events.
|
||||
- [ ] Recovery wiring (C2): every trigger row implemented end-to-end —
|
||||
escape hotkeys, controlled-peer disconnect, 30 s silence while
|
||||
sending input, outbound stall, tap disable, permission loss,
|
||||
quit/crash handler.
|
||||
- [ ] Single instance; logs at `~/Library/Logs/mwb-mac/` without key material.
|
||||
- [ ] **Checkpoint CP1 (contracts C5)**: hand `dist/mwb.app` to the user
|
||||
with the checklist: switch by edge and hotkey, wrap, one/two rows,
|
||||
keyboard with modifiers and function keys, wheel, reconnect after
|
||||
sleep, wrong key, and every C2 recovery row.
|
||||
|
||||
## 7. clipboard (core + net + mac) — `Sources/MWBCore/ClipboardCodec.swift`, `Sources/MWBMac/Pasteboard.swift`, `Sources/MWBNet/BulkChannel.swift`, `Sources/MWBMac/ReceivedFile.swift`
|
||||
## 8. clipboard (core + net + mac) — `Sources/MWBCore/ClipboardCodec.swift`, `Sources/MWBMac/Pasteboard.swift`, `Sources/MWBNet/BulkChannel.swift`, `Sources/MWBMac/ReceivedFile.swift`
|
||||
|
||||
- [ ] Text codec `TXT`/`RTF`/`HTM` + SEP, UTF-16LE, raw DEFLATE §6.1
|
||||
(Foundation `.zlib` is raw DEFLATE like .NET `DeflateStream`; say so);
|
||||
@@ -164,7 +182,7 @@ concurrency, shared constants, checkpoints) is fixed in `docs/contracts.md`.
|
||||
receive (text/RTF/HTML/PNG/file URL), `ShareClipboard` flag.
|
||||
- [ ] **Checkpoint CP2** (C5): clipboard both ways, in-band and bulk.
|
||||
|
||||
## 8. extras (mac + core) — `Sources/MWBMac/Awake.swift`, `Sources/MWBMac/Fullscreen.swift`, `Sources/MWBMac/FakeCursor.swift`
|
||||
## 9. extras (mac + core) — `Sources/MWBMac/Awake.swift`, `Sources/MWBMac/Fullscreen.swift`, `Sources/MWBMac/FakeCursor.swift`
|
||||
|
||||
- [ ] `BlockScreenSaverOnOtherMachines`: hold an `IOPMAssertion`
|
||||
(`PreventUserIdleDisplaySleep`) while `Awake` packets arrive within
|
||||
@@ -180,7 +198,7 @@ concurrency, shared constants, checkpoints) is fixed in `docs/contracts.md`.
|
||||
end-to-end with `NextMachine` §4.4.
|
||||
- [ ] **Checkpoint CP3** (C5).
|
||||
|
||||
## 9. polish — driven by the user's testing
|
||||
## 10. polish — driven by the user's testing
|
||||
|
||||
- [ ] Each finding from the user becomes a line here with the file that
|
||||
owns the fix.
|
||||
|
||||
Reference in new issue
Block a user