mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-18 01:18:00 +00:00
Added assistant plugins (#659)
Build and Release / Determine run mode (push) Waiting to run
Build and Release / Read metadata (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,deb,updater, appimage,deb) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,deb,updater, appimage,deb) (push) Blocked by required conditions
Build and Release / Prepare & create release (push) Blocked by required conditions
Build and Release / Publish release (push) Blocked by required conditions
Build and Release / Determine run mode (push) Waiting to run
Build and Release / Read metadata (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,deb,updater, appimage,deb) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,deb,updater, appimage,deb) (push) Blocked by required conditions
Build and Release / Prepare & create release (push) Blocked by required conditions
Build and Release / Publish release (push) Blocked by required conditions
This commit is contained in:
1 parent
a573409a24
commit
f6a128f2e4
100 files changed
+10146
-85
No files matched your search
+56
@@ -0,0 +1,56 @@
|
||||
namespace AIStudio.Tools.PluginSystem.Assistants.DataModel.Layout;
|
||||
|
||||
internal sealed class AssistantAccordion : NamedAssistantComponentBase
|
||||
{
|
||||
public override AssistantComponentType Type => AssistantComponentType.LAYOUT_ACCORDION;
|
||||
public override Dictionary<string, object> Props { get; set; } = new();
|
||||
public override List<IAssistantComponent> Children { get; set; } = new();
|
||||
|
||||
public bool AllowMultiSelection
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadBool(this.Props, nameof(this.AllowMultiSelection));
|
||||
set => AssistantComponentPropHelper.WriteBool(this.Props, nameof(this.AllowMultiSelection), value);
|
||||
}
|
||||
|
||||
public bool IsDense
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadBool(this.Props, nameof(this.IsDense));
|
||||
set => AssistantComponentPropHelper.WriteBool(this.Props, nameof(this.IsDense), value);
|
||||
}
|
||||
|
||||
public bool HasOutline
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadBool(this.Props, nameof(this.HasOutline), true);
|
||||
set => AssistantComponentPropHelper.WriteBool(this.Props, nameof(this.HasOutline), value);
|
||||
}
|
||||
|
||||
public bool IsSquare
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadBool(this.Props, nameof(this.IsSquare));
|
||||
set => AssistantComponentPropHelper.WriteBool(this.Props, nameof(this.IsSquare), value);
|
||||
}
|
||||
|
||||
public int Elevation
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadInt(this.Props, nameof(this.Elevation));
|
||||
set => AssistantComponentPropHelper.WriteInt(this.Props, nameof(this.Elevation), value);
|
||||
}
|
||||
|
||||
public bool HasSectionPaddings
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadBool(this.Props, nameof(this.HasSectionPaddings), true);
|
||||
set => AssistantComponentPropHelper.WriteBool(this.Props, nameof(this.HasSectionPaddings), value);
|
||||
}
|
||||
|
||||
public string Class
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Class));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Class), value);
|
||||
}
|
||||
|
||||
public string Style
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Style));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Style), value);
|
||||
}
|
||||
}
|
||||
+94
@@ -0,0 +1,94 @@
|
||||
namespace AIStudio.Tools.PluginSystem.Assistants.DataModel.Layout;
|
||||
|
||||
internal sealed class AssistantAccordionSection : NamedAssistantComponentBase
|
||||
{
|
||||
public override AssistantComponentType Type => AssistantComponentType.LAYOUT_ACCORDION_SECTION;
|
||||
public override Dictionary<string, object> Props { get; set; } = new();
|
||||
public override List<IAssistantComponent> Children { get; set; } = new();
|
||||
|
||||
public bool KeepContentAlive = true;
|
||||
|
||||
public string HeaderText
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.HeaderText));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.HeaderText), value);
|
||||
}
|
||||
|
||||
public string HeaderColor
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.HeaderColor));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.HeaderColor), value);
|
||||
}
|
||||
|
||||
public string HeaderIcon
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.HeaderIcon));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.HeaderIcon), value);
|
||||
}
|
||||
|
||||
public string HeaderTypo
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.HeaderTypo));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.HeaderTypo), value);
|
||||
}
|
||||
|
||||
public string HeaderAlign
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.HeaderAlign));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.HeaderAlign), value);
|
||||
}
|
||||
|
||||
public bool IsDisabled
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadBool(this.Props, nameof(this.IsDisabled));
|
||||
set => AssistantComponentPropHelper.WriteBool(this.Props, nameof(this.IsDisabled), value);
|
||||
}
|
||||
|
||||
public bool IsExpanded
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadBool(this.Props, nameof(this.IsExpanded));
|
||||
set => AssistantComponentPropHelper.WriteBool(this.Props, nameof(this.IsExpanded), value);
|
||||
}
|
||||
|
||||
public bool IsDense
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadBool(this.Props, nameof(this.IsDense));
|
||||
set => AssistantComponentPropHelper.WriteBool(this.Props, nameof(this.IsDense), value);
|
||||
}
|
||||
|
||||
public bool HasInnerPadding
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadBool(this.Props, nameof(this.HasInnerPadding), true);
|
||||
set => AssistantComponentPropHelper.WriteBool(this.Props, nameof(this.HasInnerPadding), value);
|
||||
}
|
||||
|
||||
public bool HideIcon
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadBool(this.Props, nameof(this.HideIcon));
|
||||
set => AssistantComponentPropHelper.WriteBool(this.Props, nameof(this.HideIcon), value);
|
||||
}
|
||||
|
||||
public int? MaxHeight
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadNullableInt(this.Props, nameof(this.MaxHeight));
|
||||
set => AssistantComponentPropHelper.WriteNullableInt(this.Props, nameof(this.MaxHeight), value);
|
||||
}
|
||||
|
||||
public string ExpandIcon
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.ExpandIcon));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.ExpandIcon), value);
|
||||
}
|
||||
|
||||
public string Class
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Class));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Class), value);
|
||||
}
|
||||
|
||||
public string Style
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Style));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Style), value);
|
||||
}
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
namespace AIStudio.Tools.PluginSystem.Assistants.DataModel.Layout;
|
||||
|
||||
internal sealed class AssistantGrid : NamedAssistantComponentBase
|
||||
{
|
||||
public override AssistantComponentType Type => AssistantComponentType.LAYOUT_GRID;
|
||||
public override Dictionary<string, object> Props { get; set; } = new();
|
||||
public override List<IAssistantComponent> Children { get; set; } = new();
|
||||
|
||||
public string Justify
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Justify));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Justify), value);
|
||||
}
|
||||
|
||||
public int Spacing
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadInt(this.Props, nameof(this.Spacing), 6);
|
||||
set => AssistantComponentPropHelper.WriteInt(this.Props, nameof(this.Spacing), value);
|
||||
}
|
||||
|
||||
public string Class
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Class));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Class), value);
|
||||
}
|
||||
|
||||
public string Style
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Style));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Style), value);
|
||||
}
|
||||
}
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
namespace AIStudio.Tools.PluginSystem.Assistants.DataModel.Layout;
|
||||
|
||||
internal sealed class AssistantItem : NamedAssistantComponentBase
|
||||
{
|
||||
public override AssistantComponentType Type => AssistantComponentType.LAYOUT_ITEM;
|
||||
public override Dictionary<string, object> Props { get; set; } = new();
|
||||
public override List<IAssistantComponent> Children { get; set; } = new();
|
||||
|
||||
public int? Xs
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadNullableInt(this.Props, nameof(this.Xs));
|
||||
set => AssistantComponentPropHelper.WriteNullableInt(this.Props, nameof(this.Xs), value);
|
||||
}
|
||||
|
||||
public int? Sm
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadNullableInt(this.Props, nameof(this.Sm));
|
||||
set => AssistantComponentPropHelper.WriteNullableInt(this.Props, nameof(this.Sm), value);
|
||||
}
|
||||
|
||||
public int? Md
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadNullableInt(this.Props, nameof(this.Md));
|
||||
set => AssistantComponentPropHelper.WriteNullableInt(this.Props, nameof(this.Md), value);
|
||||
}
|
||||
|
||||
public int? Lg
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadNullableInt(this.Props, nameof(this.Lg));
|
||||
set => AssistantComponentPropHelper.WriteNullableInt(this.Props, nameof(this.Lg), value);
|
||||
}
|
||||
|
||||
public int? Xl
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadNullableInt(this.Props, nameof(this.Xl));
|
||||
set => AssistantComponentPropHelper.WriteNullableInt(this.Props, nameof(this.Xl), value);
|
||||
}
|
||||
|
||||
public int? Xxl
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadNullableInt(this.Props, nameof(this.Xxl));
|
||||
set => AssistantComponentPropHelper.WriteNullableInt(this.Props, nameof(this.Xxl), value);
|
||||
}
|
||||
|
||||
public string Class
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Class));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Class), value);
|
||||
}
|
||||
|
||||
public string Style
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Style));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Style), value);
|
||||
}
|
||||
}
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
namespace AIStudio.Tools.PluginSystem.Assistants.DataModel.Layout;
|
||||
|
||||
internal sealed class AssistantPaper : NamedAssistantComponentBase
|
||||
{
|
||||
public override AssistantComponentType Type => AssistantComponentType.LAYOUT_PAPER;
|
||||
public override Dictionary<string, object> Props { get; set; } = new();
|
||||
public override List<IAssistantComponent> Children { get; set; } = new();
|
||||
|
||||
public int Elevation
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadInt(this.Props, nameof(this.Elevation), 1);
|
||||
set => AssistantComponentPropHelper.WriteInt(this.Props, nameof(this.Elevation), value);
|
||||
}
|
||||
|
||||
public string Height
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Height));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Height), value);
|
||||
}
|
||||
|
||||
public string MaxHeight
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.MaxHeight));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.MaxHeight), value);
|
||||
}
|
||||
|
||||
public string MinHeight
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.MinHeight));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.MinHeight), value);
|
||||
}
|
||||
|
||||
public string Width
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Width));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Width), value);
|
||||
}
|
||||
|
||||
public string MaxWidth
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.MaxWidth));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.MaxWidth), value);
|
||||
}
|
||||
|
||||
public string MinWidth
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.MinWidth));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.MinWidth), value);
|
||||
}
|
||||
|
||||
public bool IsOutlined
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadBool(this.Props, nameof(this.IsOutlined));
|
||||
set => AssistantComponentPropHelper.WriteBool(this.Props, nameof(this.IsOutlined), value);
|
||||
}
|
||||
|
||||
public bool IsSquare
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadBool(this.Props, nameof(this.IsSquare));
|
||||
set => AssistantComponentPropHelper.WriteBool(this.Props, nameof(this.IsSquare), value);
|
||||
}
|
||||
|
||||
public string Class
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Class));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Class), value);
|
||||
}
|
||||
|
||||
public string Style
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Style));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Style), value);
|
||||
}
|
||||
}
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
namespace AIStudio.Tools.PluginSystem.Assistants.DataModel.Layout;
|
||||
|
||||
internal sealed class AssistantStack : NamedAssistantComponentBase
|
||||
{
|
||||
public override AssistantComponentType Type => AssistantComponentType.LAYOUT_STACK;
|
||||
public override Dictionary<string, object> Props { get; set; } = new();
|
||||
public override List<IAssistantComponent> Children { get; set; } = new();
|
||||
|
||||
public bool IsRow
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadBool(this.Props, nameof(this.IsRow));
|
||||
set => AssistantComponentPropHelper.WriteBool(this.Props, nameof(this.IsRow), value);
|
||||
}
|
||||
|
||||
public bool IsReverse
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadBool(this.Props, nameof(this.IsReverse));
|
||||
set => AssistantComponentPropHelper.WriteBool(this.Props, nameof(this.IsReverse), value);
|
||||
}
|
||||
|
||||
public string Breakpoint
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Breakpoint));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Breakpoint), value);
|
||||
}
|
||||
|
||||
public string Align
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Align));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Align), value);
|
||||
}
|
||||
|
||||
public string Justify
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Justify));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Justify), value);
|
||||
}
|
||||
|
||||
public string Stretch
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Stretch));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Stretch), value);
|
||||
}
|
||||
|
||||
public string Wrap
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Wrap));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Wrap), value);
|
||||
}
|
||||
|
||||
public int Spacing
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadInt(this.Props, nameof(this.Spacing), 3);
|
||||
set => AssistantComponentPropHelper.WriteInt(this.Props, nameof(this.Spacing), value);
|
||||
}
|
||||
|
||||
public string Class
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Class));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Class), value);
|
||||
}
|
||||
|
||||
public string Style
|
||||
{
|
||||
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Style));
|
||||
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Style), value);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user