Files
reverse-engineering-anything/scripts
morluto 58a2c79155 refactor(desktop): name the desktop capture's window and application-refusal facts as a port (#11667)
* refactor(desktop): name the desktop capture's window and application-refusal facts as a port

The desktop capture workflows read ObservedWindow, WindowSample,
XpropUnavailableError, WindowMatching and LinuxApplicationRefusal from the
desktop provider's X11 observer, session observations and Linux inventory.
These are the facts a capture reports, not the provider's observers, so
they now live in src/ports/DesktopApplicationSession.ts. The provider
produces them from there and the application workflows read them from
there. application -> desktop entry imports: 28 -> 24.

Refs #11583

* refactor(desktop): name the capture content store the desktop workflows use as a port (#11669)

* refactor(desktop): name the capture content store the desktop workflows use as a port

DesktopSigningKeys, DesktopCheckpointRecorder and DesktopCaptureFailure
typed the store they receive as the desktop provider's DesktopContentStore
class and its RetainOutcome. src/ports/CaptureContentStore.ts now names
what they use (directory, retain, retainBytes, close, discard) and the
outcome; DesktopContentStore implements it. DesktopApplicationCapture still
constructs the class. application -> desktop entry imports: 24 -> 21.

Refs #11583

* refactor(desktop): report an unresolved desktop session cleanup through the session port (#11671)

DesktopCaptureFailure imported DesktopSessionCleanupError and
UnresolvedCleanup from the desktop provider's session runner only to
recognise and report a session whose launched processes could not all be
removed. Both are what a session reports, so they move to
src/ports/DesktopApplicationSession.ts beside the capture's other facts;
the session runner throws the port's error. application -> desktop entry
imports: 21 -> 20.

Refs #11583
2026-11-16 10:52:21 +08:00
..