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< workdirs = const {}, List<String> >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 namednamewith the static keynoisePublicKey, the session userssessionUsers(person to name; every name is reported), the working directoriesworkdirsof the profileclaudeper name,profiles(defaultshelland, with any working directory,claude), the assigneeassignedUserId, and a valid grantterminalfor each ofgrantees; returns the host.idis 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 grantterminalofuserIdonhostId, or null.