Add scribe module

This commit is contained in:
Théo Poizat
2025-12-09 11:32:37 +01:00
committed by Dat H. Pham
parent 26593b50ef
commit 7e0c98b080
10 changed files with 1432 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
"@@last_modified": "2025-11-20T14:48:58.635692", "@@last_modified": "2025-12-09T11:34:40.710644",
"initializing_data": "Initializing data...", "initializing_data": "Initializing data...",
"@initializing_data": { "@initializing_data": {
"type": "text", "type": "text",
+7
View File
@@ -2001,6 +2001,13 @@ packages:
url: "https://github.com/linagora/dart-neats.git" url: "https://github.com/linagora/dart-neats.git"
source: git source: git
version: "2.1.0" version: "2.1.0"
scribe:
dependency: "direct main"
description:
path: scribe
relative: true
source: path
version: "0.0.1"
server_settings: server_settings:
dependency: "direct main" dependency: "direct main"
description: description:
+3
View File
@@ -54,6 +54,9 @@ dependencies:
cozy: cozy:
path: cozy path: cozy
scribe:
path: scribe
### Dependencies from git ### ### Dependencies from git ###
rich_text_composer: rich_text_composer:
git: git:
+28
View File
@@ -0,0 +1,28 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/
# IntelliJ related
*.iml
*.ipr
*.iws
.idea/
# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/
# Flutter/Dart/Pub related
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
**/doc/api/
.dart_tool/
build/
+10
View File
@@ -0,0 +1,10 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.
version:
revision: "78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9"
channel: "stable"
project_type: package
+3
View File
@@ -0,0 +1,3 @@
# scribe
TMail AI scribe extension
+10
View File
@@ -0,0 +1,10 @@
library scribe;
export 'scribe/ai/domain/usecases/generate_ai_text_interactor.dart';
export 'scribe/ai/domain/repository/ai_scribe_repository.dart';
export 'scribe/ai/domain/model/ai_response.dart';
export 'scribe/ai/domain/state/generate_ai_text_state.dart';
export 'scribe/ai/presentation/model/ai_action.dart';
export 'scribe/ai/presentation/model/ai_scribe_menu_action.dart';
export 'scribe/ai/data/repository/ai_repository_impl.dart';
export 'scribe/ai/data/datasource/ai_datasource.dart';
+1298
View File
File diff suppressed because it is too large Load Diff
+71
View File
@@ -0,0 +1,71 @@
name: scribe
description: TMail AI scribe extension
version: 0.0.1
publish_to: "none"
environment:
sdk: ">=3.0.0 <4.0.0"
dependencies:
flutter:
sdk: flutter
### Local dependencies ###
core:
path: ../core
### Dependencies from pub.dev ###
dartz: 0.10.1
dio: 5.0.0
flutter_dotenv: 5.0.2
pointer_interceptor: 0.10.1+2
dev_dependencies:
flutter_test:
sdk: flutter
build_runner: 2.4.10
json_serializable: 6.6.1
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter packages.
flutter:
uses-material-design: true
# To add assets to your package, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
#
# For details regarding assets in packages, see
# https://flutter.dev/assets-and-images/#from-packages
#
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware
# To add custom fonts to your package, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts in packages, see
# https://flutter.dev/custom-fonts/#from-packages
+1 -1
View File
@@ -5,7 +5,7 @@ set -e
set -x set -x
# Add additional modules to the end of this, seperated by space # Add additional modules to the end of this, seperated by space
modules=("core" "model" "contact" "forward" "rule_filter" "fcm" "email_recovery" "server_settings") modules=("core" "model" "contact" "forward" "rule_filter" "fcm" "email_recovery" "server_settings" "scribe" )
for mod in "${modules[@]}"; do for mod in "${modules[@]}"; do
( (