From a5bd51de33553248492642d5f52ce2c8811501f4 Mon Sep 17 00:00:00 2001 From: flemming-it Date: Tue, 26 May 2026 13:46:32 +0200 Subject: [PATCH] chore(studio): switch to fai_client_sdk (renamed from fai_dart_sdk) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Dart SDK package was renamed package: fai_dart_sdk → fai_client_sdk and the dir + Forgejo repo got a -dart language suffix per the three SDK families convention in fai/platform/docs/architecture/sdks.md. Updates the path dep, dep name, every `package:fai_dart_sdk/...` import, and the one comment that named the SDK. Signed-off-by: flemming-it --- README.md | 2 +- lib/data/flow_output.dart | 2 +- lib/data/friendly_error.dart | 2 +- lib/data/hub.dart | 2 +- lib/pages/flows.dart | 2 +- lib/widgets/fai_settings_dialog.dart | 2 +- pubspec.lock | 4 ++-- pubspec.yaml | 4 ++-- test/integration/hub_fixture.dart | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 8123ae4..b37affb 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ These three cover the platform's central properties: ## Stack - Flutter 3.40+ (Desktop: macOS, Linux, Windows) -- gRPC client via [`fai_dart_sdk`](../fai_dart_sdk) (sibling +- gRPC client via [`fai_client_sdk`](../fai_client_sdk_dart) (sibling repo; pinned by relative path during development) - No external runtime dependencies; bundles its own Dart VM diff --git a/lib/data/flow_output.dart b/lib/data/flow_output.dart index e8d52ad..5ae466b 100644 --- a/lib/data/flow_output.dart +++ b/lib/data/flow_output.dart @@ -6,7 +6,7 @@ import 'dart:convert'; import 'dart:typed_data'; -import 'package:fai_dart_sdk/fai_dart_sdk.dart' show Payload; +import 'package:fai_client_sdk/fai_client_sdk.dart' show Payload; /// One named output of a flow run. Sealed via factory constructors /// — callers pattern-match with `switch` on the runtime type to diff --git a/lib/data/friendly_error.dart b/lib/data/friendly_error.dart index dfe4b6b..6e7a030 100644 --- a/lib/data/friendly_error.dart +++ b/lib/data/friendly_error.dart @@ -34,7 +34,7 @@ class FriendlyError { FriendlyError friendlyError(Object error, AppLocalizations l) { // We deliberately don't import package:grpc here so Studio // doesn't have to add it to its own pubspec — the dependency - // lives one layer down in fai_dart_sdk. `GrpcError` has a + // lives one layer down in fai_client_sdk. `GrpcError` has a // stable `.code` (int) and `.message` (String?) shape; we // duck-type on those instead of an `is` check. final code = _intField(error, 'code'); diff --git a/lib/data/hub.dart b/lib/data/hub.dart index 0eae23e..535aa51 100644 --- a/lib/data/hub.dart +++ b/lib/data/hub.dart @@ -7,7 +7,7 @@ import 'dart:typed_data'; -import 'package:fai_dart_sdk/fai_dart_sdk.dart'; +import 'package:fai_client_sdk/fai_client_sdk.dart'; import 'package:flutter/widgets.dart'; import 'package:shared_preferences/shared_preferences.dart'; diff --git a/lib/pages/flows.dart b/lib/pages/flows.dart index 48eb306..654d5ea 100644 --- a/lib/pages/flows.dart +++ b/lib/pages/flows.dart @@ -1,7 +1,7 @@ import 'dart:io'; import 'dart:typed_data'; -import 'package:fai_dart_sdk/fai_dart_sdk.dart' show FlowInputDef; +import 'package:fai_client_sdk/fai_client_sdk.dart' show FlowInputDef; import 'package:file_picker/file_picker.dart'; import 'package:flutter/material.dart'; diff --git a/lib/widgets/fai_settings_dialog.dart b/lib/widgets/fai_settings_dialog.dart index 4a92502..646a450 100644 --- a/lib/widgets/fai_settings_dialog.dart +++ b/lib/widgets/fai_settings_dialog.dart @@ -2,7 +2,7 @@ // Reads current values from HubService, persists on save via // HubService.reconnect. -import 'package:fai_dart_sdk/fai_dart_sdk.dart'; +import 'package:fai_client_sdk/fai_client_sdk.dart'; import 'package:flutter/material.dart'; import '../data/hub.dart'; diff --git a/pubspec.lock b/pubspec.lock index ff3334b..4753715 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -81,10 +81,10 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.9" - fai_dart_sdk: + fai_client_sdk: dependency: "direct main" description: - path: "../fai_dart_sdk" + path: "../fai_client_sdk_dart" relative: true source: path version: "0.16.0" diff --git a/pubspec.yaml b/pubspec.yaml index 166e2b3..931393a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,8 +15,8 @@ dependencies: intl: any # Sibling package; will move to Forgejo path once published. - fai_dart_sdk: - path: ../fai_dart_sdk + fai_client_sdk: + path: ../fai_client_sdk_dart google_fonts: ^8.1.0 shared_preferences: ^2.5.5 # Inline README rendering inside the Store detail sheet. diff --git a/test/integration/hub_fixture.dart b/test/integration/hub_fixture.dart index 75fa2f4..429ba72 100644 --- a/test/integration/hub_fixture.dart +++ b/test/integration/hub_fixture.dart @@ -25,7 +25,7 @@ import 'dart:async'; import 'dart:io'; -import 'package:fai_dart_sdk/fai_dart_sdk.dart'; +import 'package:fai_client_sdk/fai_client_sdk.dart'; import 'package:flutter_test/flutter_test.dart'; class HubFixture {