refactor(gateway,ui): the page catalogue is generated from the router (#2050)

The assistant's catalogue was a 33-entry literal in Go, hand-maintained beside
the dashboard's routes: eight real pages were missing from it, so page_index
could not name them, and descriptions had drifted where both copies existed.

The routes move to ui/src/router/routes.ts, free of component imports, and
ui/scripts/pages.ts writes the catalogue from them. The nav and page_index now
read the same generated file, and task pages:check fails when it is stale, the
way the proto, sqlc and OpenAPI outputs do.
This commit is contained in:
sam committed 2026-11-21 03:53:10 +11:00
1 parent ee66e4f0f3
commit 32fbf8b69c
7 files changed
+887 -554

No files matched your search

+2 -507
View File
@@ -1,513 +1,8 @@
import { createRouter, createWebHistory, type RouteLocationGeneric } from "vue-router";
const ChannelsPage = () => import("@/channels/ChannelsPage.vue");
const CuratorsPage = () => import("@/curators/CuratorsPage.vue");
import DashboardPage from "@/dashboard/DashboardPage.vue";
const EventsPage = () => import("@/events/EventsPage.vue");
const LogsPage = () => import("@/logs/LogsPage.vue");
const AuditPage = () => import("@/audit/AuditPage.vue");
const DenialsPage = () => import("@/audit/DenialsPage.vue");
const OrgShell = () => import("@/org/OrgShell.vue");
const OrgOverviewPage = () => import("@/org/OrgOverviewPage.vue");
const OrgMembersPage = () => import("@/org/OrgMembersPage.vue");
const OrgAgentsPage = () => import("@/org/OrgAgentsPage.vue");
const OrgWorkspacesPage = () => import("@/org/OrgWorkspacesPage.vue");
const OrgAccessPage = () => import("@/org/OrgAccessPage.vue");
const OrgModelsPage = () => import("@/org/OrgModelsPage.vue");
const OrgUsagePage = () => import("@/org/OrgUsagePage.vue");
const SchedulingPolicyPage = () => import("@/settings/SchedulingPolicyPage.vue");
const ToolsPage = () => import("@/settings/ToolsPage.vue");
const InstructionsPage = () => import("@/settings/InstructionsPage.vue");
const ExtensionsPage = () => import("@/settings/ExtensionsPage.vue");
const PluginsPage = () => import("@/settings/PluginsPage.vue");
const SecretEnginesPage = () => import("@/settings/SecretEnginesPage.vue");
const ContainerRuntimePage = () => import("@/settings/ContainerRuntimePage.vue");
const ConnectionsPage = () => import("@/settings/ConnectionsPage.vue");
const SystemAppearancePage = () => import("@/settings/SystemAppearancePage.vue");
const SystemReposPage = () => import("@/settings/SystemReposPage.vue");
const SystemStatusPage = () => import("@/settings/SystemStatusPage.vue");
const SystemTasksPage = () => import("@/settings/SystemTasksPage.vue");
const SkillsPage = () => import("@/skills/SkillsPage.vue");
const TaskDetailPage = () => import("@/tasks/TaskDetailPage.vue");
const TasksPage = () => import("@/tasks/TasksPage.vue");
const WorkflowsPage = () => import("@/workflows/WorkflowsPage.vue");
const WorkflowPage = () => import("@/workflows/WorkflowPage.vue");
// internal/gateway/dashboard_tools.go mirrors this table.
//
// meta:
// label the navigation label, short because its group carries the context
// description one line mirrored in the messaging page registry
// section the capability from GET /api/capabilities this route needs; a
// route with no section is served in every composition
// navPath the navigation entry this route keeps current
const routes = [
{path:"/account",name:"account",component:()=>import("@/accounts/AccountPage.vue"),meta:{label:"Your account"}},
{path:"/access/authentication",redirect:"/settings/authentication",meta:{nav:false}},
{
path: "/",
name: "dashboard",
component: DashboardPage,
meta: {
label: "Dashboard",
description:
"Running work, work needing attention, token spend.",
section: "home",
},
},
{
path: "/tasks",
name: "tasks",
component: TasksPage,
meta: {
label: "Tasks",
description: "Picked-up issues and their status.",
section: "tasks",
},
},
{
path: "/tasks/:id",
name: "task-detail",
component: TaskDetailPage,
meta: { label: "Task run", nav: false, navPath: "/tasks", section: "tasks" },
},
{
path: "/runs",
name: "runs",
component: () => import("@/runs/RunsPage.vue"),
meta: { label: "Runs", description: "Workflow runs, their decision trails and waiting approvals.", section: "runs" },
},
{
path: "/runs/:id",
name: "run",
component: () => import("@/runs/RunPage.vue"),
meta: { label: "Run", nav: false, navPath: "/runs", section: "runs" },
},
{
path: "/controls",
name: "controls",
component: () => import("@/controls/ControlsPage.vue"),
meta: { label: "Controls", description: "Hard rules, change-request rules, guards and action classes.", section: "controls" },
},
{
path: "/workflows",
name: "workflows",
component: () => import("@/workflows/WorkflowListPage.vue"),
// Links written as /workflows?workflow=<id> open that workflow's page.
beforeEnter: (to: RouteLocationGeneric) => {
const { workflow, ...query } = to.query;
if (typeof workflow === "string" && workflow) return { name: "workflow", params: { id: workflow }, query, replace: true };
return true;
},
meta: {
label: "Workflows",
description: "Workflows and run history.",
section: "workflows",
},
},
{
path: "/workflows/:id",
name: "workflow",
component: () => import("@/workflows/WorkflowDocumentPage.vue"),
meta: { label: "Workflow", nav: false, navPath: "/workflows", section: "workflows" },
},
// The visual editor, with drafts, test runs and per-step statistics; it
// needs workflow drafts and run stages the binary does not serve yet.
{
path: "/workflow-editor",
name: "workflow-editor-list",
component: WorkflowsPage,
meta: { label: "Workflow editor", nav: false, navPath: "/workflows", section: "workflow_editor" },
},
{
path: "/workflow-editor/:id",
name: "workflow-editor",
component: WorkflowPage,
meta: { label: "Workflow", nav: false, navPath: "/workflows", section: "workflow_editor" },
},
{
path: "/settings/skills",
name: "skills",
component: SkillsPage,
meta: {
navPath: "/settings",
settings: true,
label: "Skills",
description: "Skills Archie can activate.",
section: "skills",
},
},
{
path: "/settings/curators",
name: "curators",
component: CuratorsPage,
meta: {
navPath: "/settings",
settings: true,
label: "Curators",
description: "Scheduled memory and capture curation.",
section: "curators",
},
},
{
path: "/events",
name: "events",
component: EventsPage,
meta: {
label: "Events",
description: "Received events, their sources, and the triggers that start workflows.",
section: "events",
},
},
{
path: "/settings/status",
name: "system-status",
component: SystemStatusPage,
meta: {
navPath: "/settings",
settings: true,
label: "Status",
description:
"Service presence, dependency health, and build versions.",
section: "system_status",
},
},
{
path: "/logs",
name: "logs",
component: LogsPage,
meta: {
label: "Logs",
description: "Daemon log by level and component.",
section: "logs",
},
},
{
path: "/account/appearance",
name: "system-appearance",
component: SystemAppearancePage,
meta: { label: "Appearance" },
},
{
path: "/settings/task-execution",
name: "system-tasks",
component: SystemTasksPage,
meta: {
navPath: "/settings",
settings: true,
label: "Task execution",
description: "Statuses, operator actions, budgets.",
section: "task_execution",
},
},
{
path: "/settings/models",
name: "system-models",
component: () => import("@/settings/AgentModelsPage.vue"),
meta: {
navPath: "/settings",
settings: true,
label: "Models",
description: "The models agent loops use, by alias.",
section: "models",
},
},
{
path: "/settings/organisations",
name: "settings-organisations",
component: () => import("@/settings/OrganisationsPage.vue"),
meta: { navPath: "/settings", settings: true, label: "Organisations", section: "organisations" },
},
{
path: "/settings/authentication",
name: "authentication",
component: () => import("@/accounts/AuthenticationPage.vue"),
meta: {
navPath: "/settings",
settings: true,
label: "Authentication",
description: "Instance URL and single sign-on providers.",
section: "settings",
},
},
{
path: "/org",
component: OrgShell,
meta: {
label: "Organisation",
description: "Members, identities, connections, models and automation.",
navPath: "/org",
section: "org",
org: true,
},
children: [
{
path: "",
name: "org-overview",
component: OrgOverviewPage,
meta: { label: "Overview", navPath: "/org" },
},
{
path: "members",
name: "org-members",
component: OrgMembersPage,
meta: { section: "org_members", label: "Members", navPath: "/org" },
},
{
path: "agents",
name: "org-agents",
component: OrgAgentsPage,
meta: { section: "org_agents", label: "Agents", navPath: "/org" },
},
{
path: "audit",
name: "audit",
component: AuditPage,
meta: {
section: "org_audit",
label: "Audit",
navPath: "/org",
description: "Settings, access, identity and runtime events.",
},
},
{
path: "denials",
name: "org-denials",
component: DenialsPage,
meta: {
section: "org_denials",
label: "Denials",
navPath: "/org",
description: "Access requests the policy chain refused, newest first.",
},
},
{
path: "workspaces",
name: "org-workspaces",
component: OrgWorkspacesPage,
meta: { section: "org_workspaces", label: "Workspaces", navPath: "/org" },
},
{
path: "policies",
name: "org-policies",
component: OrgAccessPage,
meta: { section: "org_policies", label: "Policies", navPath: "/org" },
},
{
path: "repositories",
name: "org-repositories",
component: SystemReposPage,
meta: { section: "org_config", label: "Repositories", navPath: "/org", description: "Repository connections, access checks and execution policies." },
},
{
path: "connections",
name: "org-connections",
component: ConnectionsPage,
meta: { section: "org_config", label: "Connections", navPath: "/org" },
},
{
path: "credential-bindings",
name: "org-credential-bindings",
component: () => import("@/settings/CredentialBindingsPage.vue"),
meta: { section: "org_config", label: "Credential bindings", navPath: "/org" },
},
{
path: "models",
name: "org-models",
component: OrgModelsPage,
meta: { section: "org_config", label: "Models", navPath: "/org" },
},
{
path: "instructions",
name: "org-instructions",
component: InstructionsPage,
meta: { section: "org_config", label: "Instructions", navPath: "/org" },
},
{
path: "schedules",
name: "org-schedules",
component: () => import("@/schedules/SchedulesPage.vue"),
meta: { section: "org_config", label: "Schedules", navPath: "/org" },
},
{
path: "schedules/:id/runs",
name: "org-schedule-runs",
component: () => import("@/schedules/ScheduleRunsPage.vue"),
meta: { label: "Schedule runs", navPath: "/org/schedules", nav: false },
},
{
path: "channels",
name: "org-channels",
component: ChannelsPage,
meta: { label: "Channels", navPath: "/org", description: "Chat channels.", section: "channels" },
},
{
path: "scheduling-policy",
name: "org-scheduling-policy",
component: SchedulingPolicyPage,
meta: { section: "org_config", label: "Scheduling policy", navPath: "/org", description: "Work discovery and forge labels." },
},
{
path: "issue-routing",
name: "org-issue-routing",
component: () => import("@/settings/IssueRoutingPage.vue"),
meta: { section: "org_config", label: "Issue routing", navPath: "/org", description: "Which workflow an issue runs by its labels." },
},
{
path: "alerts",
name: "org-alerts",
component: () => import("@/settings/OrgAlertsPage.vue"),
meta: { section: "org_config", label: "Alert webhook", navPath: "/org", description: "Where this organisation's alerts are sent." },
},
{
path: "playbooks",
name: "org-playbooks",
component: () => import("@/settings/PlaybooksPage.vue"),
meta: { section: "org_config", label: "Playbooks", navPath: "/org" },
},
{
path: "usage",
name: "org-usage",
component: OrgUsagePage,
meta: { section: "org_usage", label: "Usage", navPath: "/org" },
},
],
},
// The old unified Access area and the org-owned settings that used to sit
// under Settings resolve to the Organisation destination (or Account for
// personal tokens, which were never the org's).
...Object.entries({
"/access": "/org",
"/access/agents": "/org/agents",
"/access/workspaces": "/org/workspaces",
"/access/policies": "/org/policies",
"/access/models": "/org/models",
"/access/tokens": "/account",
"/settings/identities": "/org/agents",
"/settings/access-policies": "/org/policies",
"/settings/connections": "/org/connections",
"/settings/repositories":"/org/repositories",
"/settings/credential-bindings": "/org/credential-bindings",
"/settings/soul": "/org/instructions",
"/org/soul": "/org/instructions",
"/settings/schedules": "/org/schedules",
"/settings/playbooks": "/org/playbooks",
"/settings/scheduling-policy": "/org/scheduling-policy",
"/settings/appearance": "/account/appearance",
}).map(([path, redirect]) => ({ path, redirect, meta: { nav: false } })),
{
path: "/settings/tools",
name: "settings-tools",
component: ToolsPage,
meta: {
navPath: "/settings",
settings: true,
label: "Tools & MCP",
description: "Agent tools and MCP servers.",
section: "tools",
},
},
{
path: "/settings/channels",
name: "settings-channels",
component: () => import("@/settings/ChannelSettingsPage.vue"),
meta: { navPath: "/settings", settings: true, label: "Channels", description: "Chat channel connections and session defaults.", section: "channels" },
},
{
path: "/settings/extensions",
name: "settings-extensions",
component: () => import("@/settings/AcceptedExtensionsPage.vue"),
meta: {
navPath: "/settings",
settings: true,
label: "Extensions",
description: "Connectors, guards and MCP servers.",
section: "extensions",
},
},
{
path: "/settings/extension-catalogue",
name: "settings-extension-catalogue",
component: ExtensionsPage,
meta: { navPath: "/settings", settings: true, label: "Extension catalogue", description: "Installed extensions, grants and the marketplace.", section: "extension_catalogue" },
},
{
path: "/settings/model-aliases",
name: "settings-model-aliases",
component: () => import("@/settings/SystemModelsPage.vue"),
meta: { navPath: "/settings", settings: true, label: "Model aliases", description: "Model aliases and providers.", section: "model_aliases" },
},
{
path: "/settings/plugins",
name: "settings-plugins",
component: PluginsPage,
meta: {
navPath: "/settings",
settings: true,
label: "Plugins",
description: "Extension directories loaded at startup.",
section: "plugins",
},
},
{
path: "/settings/secret-engines",
name: "settings-secret-engines",
component: SecretEnginesPage,
meta: { navPath: "/settings", settings: true, label: "Secret engines", section: "secret_engines" },
},
{
path: "/settings/credentials",
name: "settings-credentials",
component: () => import("@/settings/CredentialsPage.vue"),
meta: { navPath: "/settings", settings: true, label: "Credentials", description: "Sealed credentials extensions and models use.", section: "credentials" },
},
{
path: "/settings/container-runtime",
name: "settings-container-runtime",
component: ContainerRuntimePage,
meta: {
navPath: "/settings",
settings: true,
label: "Container runtime",
section: "container_runtime",
},
},
{
path: "/settings/agent-profiles",
name: "settings-agent-profiles",
component: () => import("@/settings/AgentProfilesPage.vue"),
meta: { navPath: "/settings", settings: true, label: "Agent profiles", section: "agent_profiles" },
},
{ path: "/settings/history", redirect: (to: RouteLocationGeneric) => ({ path: "/org/audit", query: to.query, hash: to.hash }), meta: { nav: false } },
{ path: "/settings/audit", redirect: (to: RouteLocationGeneric) => ({ path: "/org/audit", query: to.query, hash: to.hash }), meta: { nav: false } },
{
path: "/settings",
redirect: "/settings/models",
meta: {
label: "Instance",
},
},
{
path: "/:pathMatch(.*)*",
name: "not-found",
component: () => import("@/base/NotFoundPage.vue"),
meta: { nav: false },
},
// Paths from before Settings existed, kept for bookmarks and chat history.
...Object.entries({
"/system/status": "/settings/status",
"/system/appearance": "/account/appearance",
"/system/tasks": "/settings/task-execution",
"/system/models": "/settings/models",
"/system/repos": "/settings/repositories",
"/system/identities": "/org/agents",
"/channels": "/org/channels",
"/skills": "/settings/skills",
"/curators": "/settings/curators",
}).map(([path, redirect]) => ({ path, redirect, meta: { nav: false } })),
];
import { routes } from "./routes";
export type { RouteLocationGeneric };
export { routes };
export const router = createRouter({
+514
View File
@@ -0,0 +1,514 @@
import type { RouteLocationGeneric, RouteRecordRaw } from "vue-router";
const ChannelsPage = () => import("@/channels/ChannelsPage.vue");
const CuratorsPage = () => import("@/curators/CuratorsPage.vue");
const DashboardPage = () => import("@/dashboard/DashboardPage.vue");
const EventsPage = () => import("@/events/EventsPage.vue");
const LogsPage = () => import("@/logs/LogsPage.vue");
const AuditPage = () => import("@/audit/AuditPage.vue");
const DenialsPage = () => import("@/audit/DenialsPage.vue");
const OrgShell = () => import("@/org/OrgShell.vue");
const OrgOverviewPage = () => import("@/org/OrgOverviewPage.vue");
const OrgMembersPage = () => import("@/org/OrgMembersPage.vue");
const OrgAgentsPage = () => import("@/org/OrgAgentsPage.vue");
const OrgWorkspacesPage = () => import("@/org/OrgWorkspacesPage.vue");
const OrgAccessPage = () => import("@/org/OrgAccessPage.vue");
const OrgModelsPage = () => import("@/org/OrgModelsPage.vue");
const OrgUsagePage = () => import("@/org/OrgUsagePage.vue");
const SchedulingPolicyPage = () => import("@/settings/SchedulingPolicyPage.vue");
const ToolsPage = () => import("@/settings/ToolsPage.vue");
const InstructionsPage = () => import("@/settings/InstructionsPage.vue");
const ExtensionsPage = () => import("@/settings/ExtensionsPage.vue");
const PluginsPage = () => import("@/settings/PluginsPage.vue");
const SecretEnginesPage = () => import("@/settings/SecretEnginesPage.vue");
const ContainerRuntimePage = () => import("@/settings/ContainerRuntimePage.vue");
const ConnectionsPage = () => import("@/settings/ConnectionsPage.vue");
const SystemAppearancePage = () => import("@/settings/SystemAppearancePage.vue");
const SystemReposPage = () => import("@/settings/SystemReposPage.vue");
const SystemStatusPage = () => import("@/settings/SystemStatusPage.vue");
const SystemTasksPage = () => import("@/settings/SystemTasksPage.vue");
const SkillsPage = () => import("@/skills/SkillsPage.vue");
const TaskDetailPage = () => import("@/tasks/TaskDetailPage.vue");
const TasksPage = () => import("@/tasks/TasksPage.vue");
const WorkflowsPage = () => import("@/workflows/WorkflowsPage.vue");
const WorkflowPage = () => import("@/workflows/WorkflowPage.vue");
// internal/gateway/dashboard_tools.go mirrors this table.
//
// meta:
// label the navigation label, short because its group carries the context
// description one line mirrored in the messaging page registry
// section the capability from GET /api/capabilities this route needs; a
// route with no section is served in every composition
// navPath the navigation entry this route keeps current
export const routes: RouteRecordRaw[] = [
{path:"/account",name:"account",component:()=>import("@/accounts/AccountPage.vue"),meta:{label:"Your account",description:"Password, recovery code, passkeys and personal API tokens."}},
{path:"/access/authentication",redirect:"/settings/authentication",meta:{nav:false}},
{
path: "/",
name: "dashboard",
component: DashboardPage,
meta: {
label: "Dashboard",
description:
"Running work, work needing attention, token spend.",
section: "home",
},
},
{
path: "/tasks",
name: "tasks",
component: TasksPage,
meta: {
label: "Tasks",
description: "Picked-up issues and their status.",
section: "tasks",
},
},
{
path: "/tasks/:id",
name: "task-detail",
component: TaskDetailPage,
meta: { label: "Task run", nav: false, navPath: "/tasks", section: "tasks" },
},
{
path: "/runs",
name: "runs",
component: () => import("@/runs/RunsPage.vue"),
meta: { label: "Runs", description: "Workflow runs, their decision trails and waiting approvals.", section: "runs" },
},
{
path: "/runs/:id",
name: "run",
component: () => import("@/runs/RunPage.vue"),
meta: { label: "Run", nav: false, navPath: "/runs", section: "runs" },
},
{
path: "/controls",
name: "controls",
component: () => import("@/controls/ControlsPage.vue"),
meta: { label: "Controls", description: "Hard rules, change-request rules, guards and action classes.", section: "controls" },
},
{
path: "/workflows",
name: "workflows",
component: () => import("@/workflows/WorkflowListPage.vue"),
// Links written as /workflows?workflow=<id> open that workflow's page.
beforeEnter: (to: RouteLocationGeneric) => {
const { workflow, ...query } = to.query;
if (typeof workflow === "string" && workflow) return { name: "workflow", params: { id: workflow }, query, replace: true };
return true;
},
meta: {
label: "Workflows",
description: "Workflows and run history.",
section: "workflows",
},
},
{
path: "/workflows/:id",
name: "workflow",
component: () => import("@/workflows/WorkflowDocumentPage.vue"),
meta: { label: "Workflow", nav: false, navPath: "/workflows", section: "workflows" },
},
// The visual editor, with drafts, test runs and per-step statistics; it
// needs workflow drafts and run stages the binary does not serve yet.
{
path: "/workflow-editor",
name: "workflow-editor-list",
component: WorkflowsPage,
meta: { label: "Workflow editor", nav: false, navPath: "/workflows", section: "workflow_editor" },
},
{
path: "/workflow-editor/:id",
name: "workflow-editor",
component: WorkflowPage,
meta: { label: "Workflow", nav: false, navPath: "/workflows", section: "workflow_editor" },
},
{
path: "/settings/skills",
name: "skills",
component: SkillsPage,
meta: {
navPath: "/settings",
settings: true,
label: "Skills",
description: "Skills Archie can activate.",
section: "skills",
},
},
{
path: "/settings/curators",
name: "curators",
component: CuratorsPage,
meta: {
navPath: "/settings",
settings: true,
label: "Curators",
description: "Scheduled memory and capture curation.",
section: "curators",
},
},
{
path: "/events",
name: "events",
component: EventsPage,
meta: {
label: "Events",
description: "Received events, their sources, and the triggers that start workflows.",
section: "events",
},
},
{
path: "/settings/status",
name: "system-status",
component: SystemStatusPage,
meta: {
navPath: "/settings",
settings: true,
label: "Status",
description:
"Service presence, dependency health, and build versions.",
section: "system_status",
},
},
{
path: "/logs",
name: "logs",
component: LogsPage,
meta: {
label: "Logs",
description: "Daemon log by level and component.",
section: "logs",
},
},
{
path: "/account/appearance",
name: "system-appearance",
component: SystemAppearancePage,
meta: { label: "Appearance", description: "Theme, density and motion." },
},
{
path: "/settings/task-execution",
name: "system-tasks",
component: SystemTasksPage,
meta: {
navPath: "/settings",
settings: true,
label: "Task execution",
description: "Statuses, operator actions, budgets.",
section: "task_execution",
},
},
{
path: "/settings/models",
name: "system-models",
component: () => import("@/settings/AgentModelsPage.vue"),
meta: {
navPath: "/settings",
settings: true,
label: "Models",
description: "The models agent loops use, by alias.",
section: "models",
},
},
{
path: "/settings/organisations",
name: "settings-organisations",
component: () => import("@/settings/OrganisationsPage.vue"),
meta: { navPath: "/settings", settings: true, label: "Organisations", section: "organisations", description: "The organisations on this instance, and which one is active." },
},
{
path: "/settings/authentication",
name: "authentication",
component: () => import("@/accounts/AuthenticationPage.vue"),
meta: {
navPath: "/settings",
settings: true,
label: "Authentication",
description: "Instance URL and single sign-on providers.",
section: "settings",
},
},
{
path: "/org",
component: OrgShell,
meta: {
label: "Organisation",
description: "Members, identities, connections, models and automation.",
navPath: "/org",
section: "org",
org: true,
},
children: [
{
path: "",
name: "org-overview",
component: OrgOverviewPage,
meta: { label: "Overview", navPath: "/org", description: "What this organisation holds and how work is going." },
},
{
path: "members",
name: "org-members",
component: OrgMembersPage,
meta: { section: "org_members", label: "Members", navPath: "/org", description: "People in the organisation and their roles." },
},
{
path: "agents",
name: "org-agents",
component: OrgAgentsPage,
meta: { section: "org_agents", label: "Agents", navPath: "/org", description: "Execution identities, their permissions and commit author." },
},
{
path: "audit",
name: "audit",
component: AuditPage,
meta: {
section: "org_audit",
label: "Audit",
navPath: "/org",
description: "Settings, access, identity and runtime events.",
},
},
{
path: "denials",
name: "org-denials",
component: DenialsPage,
meta: {
section: "org_denials",
label: "Denials",
navPath: "/org",
description: "Access requests the policy chain refused, newest first.",
},
},
{
path: "workspaces",
name: "org-workspaces",
component: OrgWorkspacesPage,
meta: { section: "org_workspaces", label: "Workspaces", navPath: "/org", description: "Groups of organisation work and resources." },
},
{
path: "policies",
name: "org-policies",
component: OrgAccessPage,
meta: { section: "org_policies", label: "Policies", navPath: "/org", description: "Access rules for the organisation." },
},
{
path: "repositories",
name: "org-repositories",
component: SystemReposPage,
meta: { section: "org_config", label: "Repositories", navPath: "/org", description: "Repository connections, access checks and execution policies." },
},
{
path: "connections",
name: "org-connections",
component: ConnectionsPage,
meta: { section: "org_config", label: "Connections", navPath: "/org", description: "Forge hosts, credentials and permitted operations." },
},
{
path: "credential-bindings",
name: "org-credential-bindings",
component: () => import("@/settings/CredentialBindingsPage.vue"),
meta: { section: "org_config", label: "Credential bindings", navPath: "/org", description: "Service credentials granted to agent identities." },
},
{
path: "models",
name: "org-models",
component: OrgModelsPage,
meta: { section: "org_config", label: "Models", navPath: "/org", description: "Organisation providers and model aliases." },
},
{
path: "instructions",
name: "org-instructions",
component: InstructionsPage,
meta: { section: "org_config", label: "Instructions", navPath: "/org", description: "Archie's identity, tone and standing instructions for the organisation." },
},
{
path: "schedules",
name: "org-schedules",
component: () => import("@/schedules/SchedulesPage.vue"),
meta: { section: "org_config", label: "Schedules", navPath: "/org", description: "Recurring runs and the times they fire." },
},
{
path: "schedules/:id/runs",
name: "org-schedule-runs",
component: () => import("@/schedules/ScheduleRunsPage.vue"),
meta: { label: "Schedule runs", navPath: "/org/schedules", nav: false },
},
{
path: "channels",
name: "org-channels",
component: ChannelsPage,
meta: { label: "Channels", navPath: "/org", description: "Chat channels.", section: "channels" },
},
{
path: "scheduling-policy",
name: "org-scheduling-policy",
component: SchedulingPolicyPage,
meta: { section: "org_config", label: "Scheduling policy", navPath: "/org", description: "Work discovery and forge labels." },
},
{
path: "issue-routing",
name: "org-issue-routing",
component: () => import("@/settings/IssueRoutingPage.vue"),
meta: { section: "org_config", label: "Issue routing", navPath: "/org", description: "Which workflow an issue runs by its labels." },
},
{
path: "alerts",
name: "org-alerts",
component: () => import("@/settings/OrgAlertsPage.vue"),
meta: { section: "org_config", label: "Alert webhook", navPath: "/org", description: "Where this organisation's alerts are sent." },
},
{
path: "playbooks",
name: "org-playbooks",
component: () => import("@/settings/PlaybooksPage.vue"),
meta: { section: "org_config", label: "Playbooks", navPath: "/org", description: "Edit event-driven automation rules." },
},
{
path: "usage",
name: "org-usage",
component: OrgUsagePage,
meta: { section: "org_usage", label: "Usage", navPath: "/org", description: "Token spend by model, identity and period." },
},
],
},
// The old unified Access area and the org-owned settings that used to sit
// under Settings resolve to the Organisation destination (or Account for
// personal tokens, which were never the org's).
...Object.entries({
"/access": "/org",
"/access/agents": "/org/agents",
"/access/workspaces": "/org/workspaces",
"/access/policies": "/org/policies",
"/access/models": "/org/models",
"/access/tokens": "/account",
"/settings/identities": "/org/agents",
"/settings/access-policies": "/org/policies",
"/settings/connections": "/org/connections",
"/settings/repositories":"/org/repositories",
"/settings/credential-bindings": "/org/credential-bindings",
"/settings/soul": "/org/instructions",
"/org/soul": "/org/instructions",
"/settings/schedules": "/org/schedules",
"/settings/playbooks": "/org/playbooks",
"/settings/scheduling-policy": "/org/scheduling-policy",
"/settings/appearance": "/account/appearance",
}).map(([path, redirect]) => ({ path, redirect, meta: { nav: false } })),
{
path: "/settings/tools",
name: "settings-tools",
component: ToolsPage,
meta: {
navPath: "/settings",
settings: true,
label: "Tools & MCP",
description: "Agent tools and MCP servers.",
section: "tools",
},
},
{
path: "/settings/channels",
name: "settings-channels",
component: () => import("@/settings/ChannelSettingsPage.vue"),
meta: { navPath: "/settings", settings: true, label: "Channels", description: "Chat channel connections and session defaults.", section: "channels" },
},
{
path: "/settings/extensions",
name: "settings-extensions",
component: () => import("@/settings/AcceptedExtensionsPage.vue"),
meta: {
navPath: "/settings",
settings: true,
label: "Extensions",
description: "Connectors, guards and MCP servers.",
section: "extensions",
},
},
{
path: "/settings/extension-catalogue",
name: "settings-extension-catalogue",
component: ExtensionsPage,
meta: { navPath: "/settings", settings: true, label: "Extension catalogue", description: "Installed extensions, grants and the marketplace.", section: "extension_catalogue" },
},
{
path: "/settings/model-aliases",
name: "settings-model-aliases",
component: () => import("@/settings/SystemModelsPage.vue"),
meta: { navPath: "/settings", settings: true, label: "Model aliases", description: "Model aliases and providers.", section: "model_aliases" },
},
{
path: "/settings/plugins",
name: "settings-plugins",
component: PluginsPage,
meta: {
navPath: "/settings",
settings: true,
label: "Plugins",
description: "Extension directories loaded at startup.",
section: "plugins",
},
},
{
path: "/settings/secret-engines",
name: "settings-secret-engines",
component: SecretEnginesPage,
meta: { navPath: "/settings", settings: true, label: "Secret engines", section: "secret_engines", description: "Where secrets are read from: engines, their keys and health." },
},
{
path: "/settings/credentials",
name: "settings-credentials",
component: () => import("@/settings/CredentialsPage.vue"),
meta: { navPath: "/settings", settings: true, label: "Credentials", description: "Sealed credentials extensions and models use.", section: "credentials" },
},
{
path: "/settings/container-runtime",
name: "settings-container-runtime",
component: ContainerRuntimePage,
meta: {
navPath: "/settings",
settings: true,
label: "Container runtime",
description: "How task containers run: runtime, image, limits and egress hosts.",
section: "container_runtime",
},
},
{
path: "/settings/agent-profiles",
name: "settings-agent-profiles",
component: () => import("@/settings/AgentProfilesPage.vue"),
meta: { navPath: "/settings", settings: true, label: "Agent profiles", section: "agent_profiles", description: "Execution profiles: the image and tools each agent runs with." },
},
{ path: "/settings/history", redirect: (to: RouteLocationGeneric) => ({ path: "/org/audit", query: to.query, hash: to.hash }), meta: { nav: false } },
{ path: "/settings/audit", redirect: (to: RouteLocationGeneric) => ({ path: "/org/audit", query: to.query, hash: to.hash }), meta: { nav: false } },
{
path: "/settings",
redirect: "/settings/models",
meta: {
label: "Instance",
description: "Every instance-wide setting: models, prompts, connections, runtime and status.",
},
},
{
path: "/:pathMatch(.*)*",
name: "not-found",
component: () => import("@/base/NotFoundPage.vue"),
meta: { nav: false },
},
// Paths from before Settings existed, kept for bookmarks and chat history.
...Object.entries({
"/system/status": "/settings/status",
"/system/appearance": "/account/appearance",
"/system/tasks": "/settings/task-execution",
"/system/models": "/settings/models",
"/system/repos": "/settings/repositories",
"/system/identities": "/org/agents",
"/channels": "/org/channels",
"/skills": "/settings/skills",
"/curators": "/settings/curators",
}).map(([path, redirect]) => ({ path, redirect, meta: { nav: false } })),
];
export default routes;