mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-18 02:39:00 +00:00
Fixed issues (#723)
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 / Determine run mode (push) Waiting to run
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 / 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 / Determine run mode (push) Waiting to run
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
f6a128f2e4
commit
3cef689c83
6 files changed
+39
-39
No files matched your search
@@ -43,7 +43,7 @@ public sealed class PluginAssistants(bool isInternal, LuaState state, PluginType
|
||||
public void TryLoad()
|
||||
{
|
||||
if(!this.TryProcessAssistant(out var issue))
|
||||
this.pluginIssues.Add(issue);
|
||||
this.PluginIssues.Add(issue);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -65,7 +65,7 @@ public sealed class PluginAssistants(bool isInternal, LuaState state, PluginType
|
||||
this.RegisterLuaHelpers();
|
||||
|
||||
// Ensure that the main ASSISTANT table exists and is a valid Lua table:
|
||||
if (!this.state.Environment["ASSISTANT"].TryRead<LuaTable>(out var assistantTable))
|
||||
if (!this.State.Environment["ASSISTANT"].TryRead<LuaTable>(out var assistantTable))
|
||||
{
|
||||
message = TB("The ASSISTANT lua table does not exist or is not a valid table.");
|
||||
return false;
|
||||
@@ -148,7 +148,7 @@ public sealed class PluginAssistants(bool isInternal, LuaState state, PluginType
|
||||
try
|
||||
{
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
var results = await this.state.CallAsync(this.buildPromptFunction, [input], cancellationToken);
|
||||
var results = await this.State.CallAsync(this.buildPromptFunction, [input], cancellationToken);
|
||||
if (results.Length == 0)
|
||||
return string.Empty;
|
||||
|
||||
@@ -276,7 +276,7 @@ public sealed class PluginAssistants(bool isInternal, LuaState state, PluginType
|
||||
try
|
||||
{
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
var results = await this.state.CallAsync(callback, [input], cancellationToken);
|
||||
var results = await this.State.CallAsync(callback, [input], cancellationToken);
|
||||
if (results.Length == 0)
|
||||
return null;
|
||||
|
||||
@@ -498,7 +498,7 @@ public sealed class PluginAssistants(bool isInternal, LuaState state, PluginType
|
||||
private void RegisterLuaHelpers()
|
||||
{
|
||||
|
||||
this.state.Environment["LogInfo"] = new LuaFunction((context, _) =>
|
||||
this.State.Environment["LogInfo"] = new LuaFunction((context, _) =>
|
||||
{
|
||||
if (context.ArgumentCount == 0) return new(0);
|
||||
|
||||
@@ -507,7 +507,7 @@ public sealed class PluginAssistants(bool isInternal, LuaState state, PluginType
|
||||
return new(0);
|
||||
});
|
||||
|
||||
this.state.Environment["LogDebug"] = new LuaFunction((context, _) =>
|
||||
this.State.Environment["LogDebug"] = new LuaFunction((context, _) =>
|
||||
{
|
||||
if (context.ArgumentCount == 0) return new(0);
|
||||
|
||||
@@ -516,7 +516,7 @@ public sealed class PluginAssistants(bool isInternal, LuaState state, PluginType
|
||||
return new(0);
|
||||
});
|
||||
|
||||
this.state.Environment["LogWarning"] = new LuaFunction((context, _) =>
|
||||
this.State.Environment["LogWarning"] = new LuaFunction((context, _) =>
|
||||
{
|
||||
if (context.ArgumentCount == 0) return new(0);
|
||||
|
||||
@@ -525,7 +525,7 @@ public sealed class PluginAssistants(bool isInternal, LuaState state, PluginType
|
||||
return new(0);
|
||||
});
|
||||
|
||||
this.state.Environment["LogError"] = new LuaFunction((context, _) =>
|
||||
this.State.Environment["LogError"] = new LuaFunction((context, _) =>
|
||||
{
|
||||
if (context.ArgumentCount == 0) return new(0);
|
||||
|
||||
@@ -534,7 +534,7 @@ public sealed class PluginAssistants(bool isInternal, LuaState state, PluginType
|
||||
return new(0);
|
||||
});
|
||||
|
||||
this.state.Environment["DateTime"] = new LuaFunction((context, _) =>
|
||||
this.State.Environment["DateTime"] = new LuaFunction((context, _) =>
|
||||
{
|
||||
var format = context.ArgumentCount > 0 ? context.GetArgument<string>(0) : "yyyy-MM-dd HH:mm:ss";
|
||||
var now = DateTime.Now;
|
||||
@@ -554,7 +554,7 @@ public sealed class PluginAssistants(bool isInternal, LuaState state, PluginType
|
||||
return new(context.Return(table));
|
||||
});
|
||||
|
||||
this.state.Environment["Timestamp"] = new LuaFunction((context, _) =>
|
||||
this.State.Environment["Timestamp"] = new LuaFunction((context, _) =>
|
||||
{
|
||||
var timestamp = DateTime.UtcNow.ToString("o");
|
||||
return new(context.Return(timestamp));
|
||||
|
||||
Reference in new issue
Block a user