using Octokit; using StabilityMatrix.Core.Models.Database; using StabilityMatrix.Core.Models.FileInterfaces; using StabilityMatrix.Core.Models.Progress; namespace StabilityMatrix.Core.Models.Packages; public class UnknownPackage : BasePackage { public static string Key => "unknown-package"; public override string Name => Key; public override string DisplayName { get; set; } = "Unknown Package"; public override string Author => ""; public override string GithubUrl => ""; public override string LicenseType => "AGPL-3.0"; public override string LicenseUrl => "https://github.com/LykosAI/StabilityMatrix/blob/main/LICENSE"; public override string Blurb => "A dank interface for diffusion"; public override string LaunchCommand => "test"; public override Uri PreviewImageUri => new(""); public override IReadOnlyList ExtraLaunchCommands => new[] { "test-config", }; /// public override Task DownloadPackage(string version, bool isCommitHash, string? branch, IProgress? progress = null) { throw new NotImplementedException(); } /// public override Task InstallPackage(IProgress? progress = null) { throw new NotImplementedException(); } public override Task RunPackage(string installedPackagePath, string command, string arguments) { throw new NotImplementedException(); } /// public override Task SetupModelFolders(DirectoryPath installDirectory) { throw new NotImplementedException(); } /// public override Task UpdateModelFolders(DirectoryPath installDirectory) { throw new NotImplementedException(); } /// public override Task RemoveModelFolderLinks(DirectoryPath installDirectory) { throw new NotImplementedException(); } /// public override void Shutdown() { throw new NotImplementedException(); } /// public override Task WaitForShutdown() { throw new NotImplementedException(); } /// public override Task CheckForUpdates(InstalledPackage package) { throw new NotImplementedException(); } /// public override Task Update(InstalledPackage installedPackage, IProgress? progress = null, bool includePrerelease = false) { throw new NotImplementedException(); } /// public override Task> GetReleaseTags() => Task.FromResult(Enumerable.Empty()); public override List LaunchOptions => new(); public override Task GetLatestVersion() => Task.FromResult(string.Empty); public override Task> GetAllVersions(bool isReleaseMode = true) => Task.FromResult(Enumerable.Empty()); /// public override Task?> GetAllCommits(string branch, int page = 1, int perPage = 10) => Task.FromResult?>(null); /// public override Task> GetAllBranches() => Task.FromResult(Enumerable.Empty()); /// public override Task> GetAllReleases() => Task.FromResult(Enumerable.Empty()); }