| 1 | using AgentForge.Abstractions; |
| 2 | using AgentForge.Options; |
| 3 | using AgentForge.Services; |
| 4 | using Microsoft.Extensions.Options; |
| 5 | |
| 6 | namespace AgentForge.Plugins; |
| 7 | |
| 8 | internal sealed class ForgePluginHostAdapter(ForgeUrls urls, IOptions<ForgeOptions> options) : IForgePluginHost |
| 9 | { |
| 10 | public string PublicBaseUrl => urls.PublicBaseUrl; |
| 11 | |
| 12 | public string DataDirectory => |
| 13 | Path.GetDirectoryName(options.Value.DatabasePath) ?? options.Value.ReposPath; |
| 14 | } |
| 15 |