halkyon/packages/halkyon_app/lib/testing.dart
Tizian 「ティツィアーン」 02bb24428c
feat(app,learn): shared spaces' members on the device
Step 4 (e) of ADR 0044, its first part, for every app's screens.

- halkyon_app: `SharedSpaceGateway` on the module's `sharedSpace`
  endpoint (the spaces, their members and roles, inviting, handing on,
  leaving), refusals as `SpaceRefused`; `SharedKeys.trustIn` gives
  each member's safety code and whether it was compared or their keys
  changed, `markCompared`, and `trustNewKeys`, which pins the keys
  whose code was compared and never those the instance hands next.
  `FakeSharedSpaceServer` keeps the module's rules for tests, in step
  with `FakeSharedKeysServer`, which now knows members' handles.
- Learn's sharing makes its space through it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-11-11 15:53:09 +01:00

39 lines
1.8 KiB
Dart

/// Fakes of halkyon_app's boundaries, and a frame and dependencies built on
/// them, for an app's tests and this package's own: nothing here reaches a
/// server, the system's secure storage or the file system.
library;
// What asks a person's own key's provider, as the assistants' repository
// takes it, so an app's tests need no dependency of their own on
// halkyon_llm.
export 'package:halkyon_llm/testing.dart' show FakeLlmClient;
export 'src/testing/fake_account_crypto.dart';
export 'src/testing/fake_assistant_gateway.dart';
export 'src/testing/fake_auth_gateway.dart';
export 'src/testing/fake_content_cipher.dart';
export 'src/testing/fake_file_opener.dart';
export 'src/testing/fake_file_picker.dart';
export 'src/testing/fake_file_server_gateway.dart';
export 'src/testing/fake_instance_checker.dart';
export 'src/testing/fake_instance_operator_gateway.dart';
export 'src/testing/fake_network_watch.dart';
export 'src/testing/fake_oidc_browser.dart';
export 'src/testing/fake_password_gateway.dart';
export 'src/testing/fake_public_profile_gateway.dart';
export 'src/testing/fake_screen_guard.dart';
export 'src/testing/fake_shared_keys_gateway.dart';
export 'src/testing/fake_shared_space_gateway.dart';
export 'src/testing/fake_simplelogin_gateway.dart';
export 'src/testing/fake_speech_input.dart';
export 'src/testing/memory_account_key_store.dart';
export 'src/testing/memory_account_wait_store.dart';
export 'src/testing/memory_file_cache.dart';
export 'src/testing/memory_file_saver.dart';
export 'src/testing/memory_instance_store.dart';
export 'src/testing/memory_key_pin_store.dart';
export 'src/testing/memory_look_store.dart';
export 'src/testing/memory_pending_changes_store.dart';
export 'src/testing/memory_sign_in_addresses.dart';
export 'src/testing/memory_whats_new.dart';
export 'src/testing/test_app.dart';