Move editor UI into the app and release verified Core dependencies (#14)
Gitea CI / Assemble and validate CI artifacts (push) Successful in 1m47s
Gitea CI / Check code and tests (push) Successful in 7m15s
Gitea CI / Build Android APK (push) Successful in 4m6s
Gitea CI / Build Windows x64 app (push) Successful in 3m34s
Gitea CI / Audit and package Windows x64 (push) Successful in 1m29s
Gitea CI / Gitea CI passed (push) Successful in 1s
Gitea Release / Prepare draft Release (push) Failing after 8s
Gitea Release / Upload Android to draft Release (push) Skipped
Gitea Release / Upload Windows to draft Release (push) Skipped
Gitea Release / Verify and publish Release (push) Skipped

This commit was merged in pull request #14.
This commit is contained in:
lingjhf committed 2026-10-11 19:59:40 +00:00
1 parent abc1868550
commit 06f1c26681
452 files changed
+43806 -2329

No files matched your search

@@ -60,32 +60,29 @@ class DriftAgentSettingsRepository implements AgentSettingsRepository {
_database.transaction(() async {
await _database.delete(_database.agentModels).go();
await _database.delete(_database.agentProviders).go();
for (final provider in settings.providers) {
await _database
.into(_database.agentProviders)
.insert(
AgentProvidersCompanion.insert(
id: provider.id,
enabled: Value(provider.enabled),
name: provider.name,
apiType: provider.apiType,
baseUrl: provider.baseUrl,
credentialId: Value(provider.credentialId),
await _database.batch((batch) {
batch.insertAll(_database.agentProviders, [
for (final provider in settings.providers)
AgentProvidersCompanion.insert(
id: provider.id,
enabled: Value(provider.enabled),
name: provider.name,
apiType: provider.apiType,
baseUrl: provider.baseUrl,
credentialId: Value(provider.credentialId),
),
]);
batch.insertAll(_database.agentModels, [
for (final provider in settings.providers)
for (final model in provider.models)
AgentModelsCompanion.insert(
providerId: provider.id,
modelId: model.id,
contextWindow: Value(model.contextWindow),
maxOutputTokens: Value(model.maxOutputTokens),
),
);
for (final model in provider.models) {
await _database
.into(_database.agentModels)
.insert(
AgentModelsCompanion.insert(
providerId: provider.id,
modelId: model.id,
contextWindow: Value(model.contextWindow),
maxOutputTokens: Value(model.maxOutputTokens),
),
);
}
}
]);
});
await _database
.into(_database.agentConfigurations)
.insertOnConflictUpdate(
@@ -1,4 +1,5 @@
import 'package:cutdex_sdk/timeline_ui.dart' show TimelineRulerTimecodeLayout;
import 'package:cutdex_timeline_ui/cutdex_timeline_ui.dart'
show TimelineRulerTimecodeLayout;
import 'package:drift/drift.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
@@ -1,5 +1,5 @@
import 'package:cutdex_sdk/timeline/layout.dart';
import 'package:cutdex_sdk/timeline/model.dart';
import 'package:cutdex_core/timeline/layout.dart';
import 'package:cutdex_core/timeline/model.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:drift/drift.dart' hide JsonKey;
@@ -74,6 +74,7 @@ abstract class ProjectViewSettingsData with _$ProjectViewSettingsData {
const factory ProjectViewSettingsData({
@Default(false) bool propertiesOpen,
double? timelineHeight,
double? mediaWidth,
}) = _ProjectViewSettingsData;
}
@@ -101,6 +102,7 @@ class DriftProjectViewSettingsRepository
: ProjectViewSettingsData(
propertiesOpen: row.propertiesOpen,
timelineHeight: row.timelineHeight,
mediaWidth: row.mediaWidth,
);
}
@@ -113,6 +115,7 @@ class DriftProjectViewSettingsRepository
projectId: projectId,
propertiesOpen: settings.propertiesOpen,
timelineHeight: Value(settings.timelineHeight),
mediaWidth: Value(settings.mediaWidth),
),
);
}
@@ -464,6 +464,7 @@ class __$WorkspaceViewSettingsDataCopyWithImpl<$Res>
mixin _$ProjectViewSettingsData {
bool get propertiesOpen;
double? get timelineHeight;
double? get mediaWidth;
/// Create a copy of ProjectViewSettingsData
/// with the given fields replaced by the non-null parameter values.
@@ -484,19 +485,26 @@ mixin _$ProjectViewSettingsData {
(identical(other.propertiesOpen, _this.propertiesOpen) ||
other.propertiesOpen == _this.propertiesOpen) &&
(identical(other.timelineHeight, _this.timelineHeight) ||
other.timelineHeight == _this.timelineHeight));
other.timelineHeight == _this.timelineHeight) &&
(identical(other.mediaWidth, _this.mediaWidth) ||
other.mediaWidth == _this.mediaWidth));
}
@override
int get hashCode {
final _this = this as ProjectViewSettingsData;
return Object.hash(runtimeType, _this.propertiesOpen, _this.timelineHeight);
return Object.hash(
runtimeType,
_this.propertiesOpen,
_this.timelineHeight,
_this.mediaWidth,
);
}
@override
String toString() {
final _this = this as ProjectViewSettingsData;
return 'ProjectViewSettingsData(propertiesOpen: ${_this.propertiesOpen}, timelineHeight: ${_this.timelineHeight})';
return 'ProjectViewSettingsData(propertiesOpen: ${_this.propertiesOpen}, timelineHeight: ${_this.timelineHeight}, mediaWidth: ${_this.mediaWidth})';
}
}
@@ -507,7 +515,7 @@ abstract mixin class $ProjectViewSettingsDataCopyWith<$Res> {
$Res Function(ProjectViewSettingsData) _then,
) = _$ProjectViewSettingsDataCopyWithImpl;
@useResult
$Res call({bool propertiesOpen, double? timelineHeight});
$Res call({bool propertiesOpen, double? timelineHeight, double? mediaWidth});
}
/// @nodoc
@@ -522,7 +530,11 @@ class _$ProjectViewSettingsDataCopyWithImpl<$Res>
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({Object? propertiesOpen = null, Object? timelineHeight = freezed}) {
$Res call({
Object? propertiesOpen = null,
Object? timelineHeight = freezed,
Object? mediaWidth = freezed,
}) {
return _then(
ProjectViewSettingsData(
propertiesOpen: null == propertiesOpen
@@ -533,6 +545,10 @@ class _$ProjectViewSettingsDataCopyWithImpl<$Res>
? _self.timelineHeight
: timelineHeight // ignore: cast_nullable_to_non_nullable
as double?,
mediaWidth: freezed == mediaWidth
? _self.mediaWidth
: mediaWidth // ignore: cast_nullable_to_non_nullable
as double?,
),
);
}
@@ -631,13 +647,22 @@ extension ProjectViewSettingsDataPatterns on ProjectViewSettingsData {
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
TResult Function(bool propertiesOpen, double? timelineHeight)? $default, {
TResult Function(
bool propertiesOpen,
double? timelineHeight,
double? mediaWidth,
)?
$default, {
required TResult orElse(),
}) {
final _that = this;
switch (_that) {
case _ProjectViewSettingsData() when $default != null:
return $default(_that.propertiesOpen, _that.timelineHeight);
return $default(
_that.propertiesOpen,
_that.timelineHeight,
_that.mediaWidth,
);
case _:
return orElse();
}
@@ -658,12 +683,21 @@ extension ProjectViewSettingsDataPatterns on ProjectViewSettingsData {
@optionalTypeArgs
TResult when<TResult extends Object?>(
TResult Function(bool propertiesOpen, double? timelineHeight) $default,
TResult Function(
bool propertiesOpen,
double? timelineHeight,
double? mediaWidth,
)
$default,
) {
final _that = this;
switch (_that) {
case _ProjectViewSettingsData():
return $default(_that.propertiesOpen, _that.timelineHeight);
return $default(
_that.propertiesOpen,
_that.timelineHeight,
_that.mediaWidth,
);
case _:
throw StateError('Unexpected subclass');
}
@@ -683,12 +717,21 @@ extension ProjectViewSettingsDataPatterns on ProjectViewSettingsData {
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>(
TResult? Function(bool propertiesOpen, double? timelineHeight)? $default,
TResult? Function(
bool propertiesOpen,
double? timelineHeight,
double? mediaWidth,
)?
$default,
) {
final _that = this;
switch (_that) {
case _ProjectViewSettingsData() when $default != null:
return $default(_that.propertiesOpen, _that.timelineHeight);
return $default(
_that.propertiesOpen,
_that.timelineHeight,
_that.mediaWidth,
);
case _:
return null;
}
@@ -701,6 +744,7 @@ class _ProjectViewSettingsData extends ProjectViewSettingsData {
const _ProjectViewSettingsData({
this.propertiesOpen = false,
this.timelineHeight,
this.mediaWidth,
}) : super._();
@override
@@ -708,6 +752,8 @@ class _ProjectViewSettingsData extends ProjectViewSettingsData {
final bool propertiesOpen;
@override
final double? timelineHeight;
@override
final double? mediaWidth;
/// Create a copy of ProjectViewSettingsData
/// with the given fields replaced by the non-null parameter values.
@@ -728,17 +774,19 @@ class _ProjectViewSettingsData extends ProjectViewSettingsData {
(identical(other.propertiesOpen, propertiesOpen) ||
other.propertiesOpen == propertiesOpen) &&
(identical(other.timelineHeight, timelineHeight) ||
other.timelineHeight == timelineHeight));
other.timelineHeight == timelineHeight) &&
(identical(other.mediaWidth, mediaWidth) ||
other.mediaWidth == mediaWidth));
}
@override
int get hashCode {
return Object.hash(runtimeType, propertiesOpen, timelineHeight);
return Object.hash(runtimeType, propertiesOpen, timelineHeight, mediaWidth);
}
@override
String toString() {
return 'ProjectViewSettingsData(propertiesOpen: $propertiesOpen, timelineHeight: $timelineHeight)';
return 'ProjectViewSettingsData(propertiesOpen: $propertiesOpen, timelineHeight: $timelineHeight, mediaWidth: $mediaWidth)';
}
}
@@ -751,7 +799,7 @@ abstract mixin class _$ProjectViewSettingsDataCopyWith<$Res>
) = __$ProjectViewSettingsDataCopyWithImpl;
@override
@useResult
$Res call({bool propertiesOpen, double? timelineHeight});
$Res call({bool propertiesOpen, double? timelineHeight, double? mediaWidth});
}
/// @nodoc
@@ -766,7 +814,11 @@ class __$ProjectViewSettingsDataCopyWithImpl<$Res>
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$Res call({Object? propertiesOpen = null, Object? timelineHeight = freezed}) {
$Res call({
Object? propertiesOpen = null,
Object? timelineHeight = freezed,
Object? mediaWidth = freezed,
}) {
return _then(
_ProjectViewSettingsData(
propertiesOpen: null == propertiesOpen
@@ -777,6 +829,10 @@ class __$ProjectViewSettingsDataCopyWithImpl<$Res>
? _self.timelineHeight
: timelineHeight // ignore: cast_nullable_to_non_nullable
as double?,
mediaWidth: freezed == mediaWidth
? _self.mediaWidth
: mediaWidth // ignore: cast_nullable_to_non_nullable
as double?,
),
);
}