| 1 | using AgentForge.Abstractions; |
| 2 | |
| 3 | namespace AgentForge.Plugin.View; |
| 4 | |
| 5 | internal static class ForgeViewCommandRegistration |
| 6 | { |
| 7 | internal static void Register(ForgeCommandRegistry registry) |
| 8 | { |
| 9 | registry.Add(new ForgeCommandDescriptor |
| 10 | { |
| 11 | Domain = "forge", |
| 12 | Object = "repo", |
| 13 | Intent = "open", |
| 14 | CommandId = "forge.repo.open", |
| 15 | Path = "/repo open", |
| 16 | PathAliases = ["/forge repo open"], |
| 17 | Help = "Open repository home in Human-layer view.", |
| 18 | Category = "Navigate", |
| 19 | ArgTail = "optional", |
| 20 | Surfaces = ["command-bar", "global"], |
| 21 | RequiredCapabilities = ["read"], |
| 22 | Bindings = new ForgeCommandBindings |
| 23 | { |
| 24 | View = "/view/repos/{repo}", |
| 25 | }, |
| 26 | }); |
| 27 | |
| 28 | registry.Add(new ForgeCommandDescriptor |
| 29 | { |
| 30 | Domain = "forge", |
| 31 | Object = "artifact", |
| 32 | Intent = "goto", |
| 33 | CommandId = "forge.artifact.goto", |
| 34 | Path = "/artifact goto", |
| 35 | PathAliases = ["/forge artifact goto"], |
| 36 | Help = "Open forge artifact by [FRG:repo/issues/N] or [FRG:repo/mr/N] bracket.", |
| 37 | Category = "Navigate", |
| 38 | ArgTail = "required", |
| 39 | Surfaces = ["command-bar", "global"], |
| 40 | RequiredCapabilities = ["read"], |
| 41 | }); |
| 42 | } |
| 43 | } |
| 44 | |