Initial commit to new repository

This commit is contained in:
2026-04-03 18:22:19 +09:00
commit 4458bb0f52
7672 changed files with 452440 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
using System.IO;
using System.Text.Json;
using AxCopilot.SDK;
namespace AxCopilot.Handlers;
public static class JsonSkillLoader
{
public static IActionHandler? Load(string filePath)
{
string json = File.ReadAllText(filePath);
JsonSkillDefinition jsonSkillDefinition = JsonSerializer.Deserialize<JsonSkillDefinition>(json, new JsonSerializerOptions
{
PropertyNameCaseInsensitive = true
});
if (jsonSkillDefinition == null)
{
return null;
}
return new JsonSkillHandler(jsonSkillDefinition);
}
}