Compare commits

...

2 commits

Author SHA1 Message Date
flemming-it
a5bd51de33 chore(studio): switch to fai_client_sdk (renamed from fai_dart_sdk)
Some checks failed
Security / Security check (push) Failing after 1s
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 <stefan.a.flemming@googlemail.com>
2026-05-26 13:46:32 +02:00
flemming-it
4a9bc93d15 chore(studio): point plugin test at fai_plugins/ instead of fai_modules/
Studio plugins moved to a dedicated fai_plugins/ workspace
directory; integration test path updated to match.

Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
2026-05-26 01:00:36 +02:00
10 changed files with 13 additions and 13 deletions

View file

@ -24,7 +24,7 @@ These three cover the platform's central properties:
## Stack ## Stack
- Flutter 3.40+ (Desktop: macOS, Linux, Windows) - 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) repo; pinned by relative path during development)
- No external runtime dependencies; bundles its own Dart VM - No external runtime dependencies; bundles its own Dart VM

View file

@ -6,7 +6,7 @@
import 'dart:convert'; import 'dart:convert';
import 'dart:typed_data'; 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 /// One named output of a flow run. Sealed via factory constructors
/// callers pattern-match with `switch` on the runtime type to /// callers pattern-match with `switch` on the runtime type to

View file

@ -34,7 +34,7 @@ class FriendlyError {
FriendlyError friendlyError(Object error, AppLocalizations l) { FriendlyError friendlyError(Object error, AppLocalizations l) {
// We deliberately don't import package:grpc here so Studio // We deliberately don't import package:grpc here so Studio
// doesn't have to add it to its own pubspec — the dependency // 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 // stable `.code` (int) and `.message` (String?) shape; we
// duck-type on those instead of an `is` check. // duck-type on those instead of an `is` check.
final code = _intField(error, 'code'); final code = _intField(error, 'code');

View file

@ -7,7 +7,7 @@
import 'dart:typed_data'; 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:flutter/widgets.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';

View file

@ -1,7 +1,7 @@
import 'dart:io'; import 'dart:io';
import 'dart:typed_data'; 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:file_picker/file_picker.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';

View file

@ -2,7 +2,7 @@
// Reads current values from HubService, persists on save via // Reads current values from HubService, persists on save via
// HubService.reconnect. // 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 'package:flutter/material.dart';
import '../data/hub.dart'; import '../data/hub.dart';

View file

@ -81,10 +81,10 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.0.9" version: "1.0.9"
fai_dart_sdk: fai_client_sdk:
dependency: "direct main" dependency: "direct main"
description: description:
path: "../fai_dart_sdk" path: "../fai_client_sdk_dart"
relative: true relative: true
source: path source: path
version: "0.16.0" version: "0.16.0"

View file

@ -15,8 +15,8 @@ dependencies:
intl: any intl: any
# Sibling package; will move to Forgejo path once published. # Sibling package; will move to Forgejo path once published.
fai_dart_sdk: fai_client_sdk:
path: ../fai_dart_sdk path: ../fai_client_sdk_dart
google_fonts: ^8.1.0 google_fonts: ^8.1.0
shared_preferences: ^2.5.5 shared_preferences: ^2.5.5
# Inline README rendering inside the Store detail sheet. # Inline README rendering inside the Store detail sheet.

View file

@ -25,7 +25,7 @@
import 'dart:async'; import 'dart:async';
import 'dart:io'; 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'; import 'package:flutter_test/flutter_test.dart';
class HubFixture { class HubFixture {

View file

@ -12,7 +12,7 @@
// Pre-reqs (handled by HubFixture's skip-when-missing path): // Pre-reqs (handled by HubFixture's skip-when-missing path):
// - fai binary on PATH or at ../fai_platform/target/release/fai // - fai binary on PATH or at ../fai_platform/target/release/fai
// - studio-theme-solarized plugin built to module.wasm in its // - studio-theme-solarized plugin built to module.wasm in its
// fai_modules dir. // fai_plugins dir.
import 'dart:io'; import 'dart:io';
@ -33,7 +33,7 @@ void main() {
// add network + bundle-fetch latency that doesn't // add network + bundle-fetch latency that doesn't
// belong in an in-process round-trip test. // belong in an in-process round-trip test.
final pluginSrc = Directory( final pluginSrc = Directory(
'../fai_modules/studio-theme-solarized', '../fai_plugins/studio-theme-solarized',
); );
if (!await pluginSrc.exists()) { if (!await pluginSrc.exists()) {
markTestSkipped('studio-theme-solarized source not available'); markTestSkipped('studio-theme-solarized source not available');