feat: expose reload_required in AuthStatus; destale ~/.fai doc comments
Some checks failed
Security / Security check (push) Failing after 2s

Stubs regenerated from the current proto: AuthStatusResponse gains
reload_required (true when the hub's on-disk auth config or its env
vars diverge from the live validator — ReloadAuth pending), and the
generated comments pick up the .chain bundle wording. Hand-written
dartdoc in hub_client.dart updated from the pre-rename ~/.fai paths
and .fai bundle extension.

Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
flemming-it 2026-07-15 05:39:22 +02:00
parent ec3b684e6e
commit 3381cb1728
4 changed files with 37 additions and 14 deletions

View file

@ -270,7 +270,7 @@ class HubClient {
/// Replace the operator's `default_scope:`. The hub validates
/// the list (non-empty after trimming), persists to
/// `~/.fai/config.yaml`, and hot-swaps the in-memory copy
/// `~/.chain/config.yaml`, and hot-swaps the in-memory copy
/// without a daemon restart. Returns the snapshot.
Future<({List<String> scope, List<String> knownProviders})>
setDefaultScope(List<String> scope) async {
@ -450,7 +450,7 @@ class HubClient {
}
/// Read the installed module's `MODULE.md` (or `MODULE.<locale>.md`)
/// from disk under `~/.fai/modules/<module>/`. No network. Works in
/// from disk under `~/.chain/modules/<module>/`. No network. Works in
/// air-gapped installs. The response distinguishes three states via
/// [GetInstalledModuleDocsResponse.notInstalled] and an empty
/// [GetInstalledModuleDocsResponse.text]:
@ -535,7 +535,7 @@ class HubClient {
return _admin.refreshMcpClients(Empty());
}
/// Persist a new MCP server in `~/.fai/config.yaml` and
/// Persist a new MCP server in `~/.chain/config.yaml` and
/// trigger discovery in one round-trip.
Future<ListMcpClientsResponse> addMcpClient({
required String name,
@ -618,7 +618,7 @@ class HubClient {
}
/// Persist a new System-AI configuration. Validates +
/// writes back to ~/.fai/config.yaml + hot-reloads the live
/// writes back to ~/.chain/config.yaml + hot-reloads the live
/// hub state in one call. Returns the resulting status so
/// the UI can refresh in one round-trip.
Future<SystemAiStatusResponse> updateSystemAi({
@ -763,7 +763,7 @@ class HubClient {
return _admin.removeStore(pb.RemoveStoreRequest(name: name));
}
/// Install a module from a `.fai` bundle. [source] is either a
/// Install a module from a `.chain` bundle. [source] is either a
/// URL or a local filesystem path; [expectedSha256] is an
/// optional hex digest the hub verifies before unpacking.
Future<InstallModuleResponse> installModule({