FakeWorldTerminalHosts extension

Building terminal hosts for the tests of the apps (brief M4-36).

on

Methods

addTerminalHost({String? id, required String name, required String noisePublicKey, Map<String, String> sessionUsers = const {}, Map<String, List<String>> workdirs = const {}, List<JsonMap>? profiles, String? assignedUserId, List<String> grantees = const [], String llmCredentials = 'organization', String fingerprint = '7KQ2-9XTA-M4PB-1C8D-0000-0000-0000-0000-0000-0000-0000-0000-0000'}) → FakeHost

Available on FakeWorld, provided by the FakeWorldTerminalHosts extension

Adds an active, connected host named name with the static key noisePublicKey, the session users sessionUsers (person to name; every name is reported), the working directories workdirs of the profile claude per name, profiles (default shell and, with any working directory, claude), the assignee assignedUserId, and a valid grant terminal for each of grantees; returns the host. id is the host ID (a new one when null), so a test can give the in-process host the same ID for the Noise prologue.
terminalGrantOf(String userId, String hostId) → String?

Available on FakeWorld, provided by the FakeWorldTerminalHosts extension

The ID of the valid grant terminal of userId on hostId, or null.