Schedules list as a table with enable, run now, edit, duplicate, delete and view runs; built-ins only enable, retime and run. The runs page links each run's tasks through its capture's dispatches. The Start node gains a Schedule trigger that picks or creates a schedule and binds the schedule source to the workflow. Times show in a per-browser display zone set under Appearance; the cron time zone and run retention are edited on the Schedules page.
438 lines
13 KiB
TypeScript
438 lines
13 KiB
TypeScript
import { createRouter, createWebHistory, type RouteLocationGeneric } from "vue-router";
|
|
|
|
import ChannelsPage from "@/channels/ChannelsPage.vue";
|
|
import CuratorsPage from "@/curators/CuratorsPage.vue";
|
|
import DashboardPage from "@/dashboard/DashboardPage.vue";
|
|
import EventsPage from "@/events/EventsPage.vue";
|
|
import LogsPage from "@/logs/LogsPage.vue";
|
|
import AuditPage from "@/audit/AuditPage.vue";
|
|
import OrgShell from "@/org/OrgShell.vue";
|
|
import OrgOverviewPage from "@/org/OrgOverviewPage.vue";
|
|
import OrgMembersPage from "@/org/OrgMembersPage.vue";
|
|
import OrgAgentsPage from "@/org/OrgAgentsPage.vue";
|
|
import OrgWorkspacesPage from "@/org/OrgWorkspacesPage.vue";
|
|
import OrgAccessPage from "@/org/OrgAccessPage.vue";
|
|
import OrgModelsPage from "@/org/OrgModelsPage.vue";
|
|
import SchedulingPolicyPage from "@/settings/SchedulingPolicyPage.vue";
|
|
import ToolsPage from "@/settings/ToolsPage.vue";
|
|
import InstructionsPage from "@/settings/InstructionsPage.vue";
|
|
import ExtensionsPage from "@/settings/ExtensionsPage.vue";
|
|
import PluginsPage from "@/settings/PluginsPage.vue";
|
|
import SecretEnginesPage from "@/settings/SecretEnginesPage.vue";
|
|
import ContainerRuntimePage from "@/settings/ContainerRuntimePage.vue";
|
|
import ConnectionsPage from "@/settings/ConnectionsPage.vue";
|
|
import SystemAppearancePage from "@/settings/SystemAppearancePage.vue";
|
|
import SystemModelsPage from "@/settings/SystemModelsPage.vue";
|
|
import SystemReposPage from "@/settings/SystemReposPage.vue";
|
|
import SystemStatusPage from "@/settings/SystemStatusPage.vue";
|
|
import SystemTasksPage from "@/settings/SystemTasksPage.vue";
|
|
import SkillsPage from "@/skills/SkillsPage.vue";
|
|
import TaskDetailPage from "@/tasks/TaskDetailPage.vue";
|
|
import TasksPage from "@/tasks/TasksPage.vue";
|
|
import WorkflowsPage from "@/workflows/WorkflowsPage.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.",
|
|
},
|
|
},
|
|
{
|
|
path: "/tasks",
|
|
name: "tasks",
|
|
component: TasksPage,
|
|
meta: {
|
|
label: "Tasks",
|
|
description: "Picked-up issues and their status.",
|
|
},
|
|
},
|
|
{
|
|
path: "/tasks/:id",
|
|
name: "task-detail",
|
|
component: TaskDetailPage,
|
|
meta: { label: "Task run", nav: false, navPath: "/tasks" },
|
|
},
|
|
{
|
|
path: "/workflows",
|
|
name: "workflows",
|
|
component: WorkflowsPage,
|
|
meta: {
|
|
label: "Workflows",
|
|
description: "Workflows and run history.",
|
|
section: "workflows",
|
|
},
|
|
},
|
|
{
|
|
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:
|
|
"Captured events, field mappings, workflow bindings.",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/status",
|
|
name: "system-status",
|
|
component: SystemStatusPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Status",
|
|
description:
|
|
"Service presence, dependency health, and build versions.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/logs",
|
|
name: "logs",
|
|
component: LogsPage,
|
|
meta: {
|
|
label: "Logs",
|
|
description: "Daemon log by level and component.",
|
|
section: "logs",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/appearance",
|
|
name: "system-appearance",
|
|
component: SystemAppearancePage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
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: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/models",
|
|
name: "system-models",
|
|
component: SystemModelsPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Models",
|
|
description: "Model aliases and providers.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
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",
|
|
org: true,
|
|
},
|
|
children: [
|
|
{
|
|
path: "",
|
|
name: "org-overview",
|
|
component: OrgOverviewPage,
|
|
meta: { label: "Overview", navPath: "/org" },
|
|
},
|
|
{
|
|
path: "members",
|
|
name: "org-members",
|
|
component: OrgMembersPage,
|
|
meta: { label: "Members", navPath: "/org" },
|
|
},
|
|
{
|
|
path: "agents",
|
|
name: "org-agents",
|
|
component: OrgAgentsPage,
|
|
meta: { label: "Agents", navPath: "/org" },
|
|
},
|
|
{
|
|
path: "workspaces",
|
|
name: "org-workspaces",
|
|
component: OrgWorkspacesPage,
|
|
meta: { label: "Workspaces", navPath: "/org" },
|
|
},
|
|
{
|
|
path: "policies",
|
|
name: "org-policies",
|
|
component: OrgAccessPage,
|
|
meta: { label: "Policies", navPath: "/org" },
|
|
},
|
|
{
|
|
path: "repositories",
|
|
name: "org-repositories",
|
|
component: SystemReposPage,
|
|
meta: { label: "Repositories", navPath: "/org", description: "Repository connections, access checks and execution policies." },
|
|
},
|
|
{
|
|
path: "connections",
|
|
name: "org-connections",
|
|
component: ConnectionsPage,
|
|
meta: { label: "Connections", navPath: "/org" },
|
|
},
|
|
{
|
|
path: "credential-bindings",
|
|
name: "org-credential-bindings",
|
|
component: () => import("@/settings/CredentialBindingsPage.vue"),
|
|
meta: { label: "Credential bindings", navPath: "/org" },
|
|
},
|
|
{
|
|
path: "models",
|
|
name: "org-models",
|
|
component: OrgModelsPage,
|
|
meta: { label: "Models", navPath: "/org" },
|
|
},
|
|
{
|
|
path: "instructions",
|
|
name: "org-instructions",
|
|
component: InstructionsPage,
|
|
meta: { label: "Instructions", navPath: "/org" },
|
|
},
|
|
{
|
|
path: "schedules",
|
|
name: "org-schedules",
|
|
component: () => import("@/schedules/SchedulesPage.vue"),
|
|
meta: { 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: "playbooks",
|
|
name: "org-playbooks",
|
|
component: () => import("@/settings/PlaybooksPage.vue"),
|
|
meta: { label: "Playbooks", 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",
|
|
}).map(([path, redirect]) => ({ path, redirect, meta: { nav: false } })),
|
|
{
|
|
path: "/settings/channels",
|
|
name: "channels",
|
|
component: ChannelsPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Channels",
|
|
description: "Chat and notification channels.",
|
|
section: "channels",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/scheduling-policy",
|
|
name: "settings-scheduling-policy",
|
|
component: SchedulingPolicyPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Scheduling policy",
|
|
description: "Work discovery and forge labels.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/tools",
|
|
name: "settings-tools",
|
|
component: ToolsPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Tools & MCP",
|
|
description: "Agent tools and MCP servers.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/extensions",
|
|
name: "settings-extensions",
|
|
component: ExtensionsPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Extensions",
|
|
description: "Installed extensions and grants.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/plugins",
|
|
name: "settings-plugins",
|
|
component: PluginsPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Plugins",
|
|
description: "Extension directories loaded at startup.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/secret-engines",
|
|
name: "settings-secret-engines",
|
|
component: SecretEnginesPage,
|
|
meta: { navPath: "/settings", settings: true, label: "Secret engines", section: "settings" },
|
|
},
|
|
{
|
|
path: "/settings/container-runtime",
|
|
name: "settings-container-runtime",
|
|
component: ContainerRuntimePage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Container runtime",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/agent-profiles",
|
|
name: "settings-agent-profiles",
|
|
component: () => import("@/settings/AgentProfilesPage.vue"),
|
|
meta: { navPath: "/settings", settings: true, label: "Agent profiles", section: "settings" },
|
|
},
|
|
{
|
|
path: "/settings/harness",
|
|
name: "settings-harness",
|
|
// Lazy so xterm.js stays out of the shell every page loads.
|
|
component: () => import("@/harness/HarnessPage.vue"),
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Harness",
|
|
description: "OAuth credential bindings and setup terminal.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/audit",
|
|
name: "audit",
|
|
component: AuditPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Audit",
|
|
description: "Settings, access, identity and runtime events.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{ path: "/settings/history", redirect: (to: RouteLocationGeneric) => ({ path: "/settings/audit", query: to.query, hash: to.hash }), meta: { nav: false } },
|
|
{
|
|
path: "/settings",
|
|
redirect: "/settings/status",
|
|
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": "/settings/appearance",
|
|
"/system/tasks": "/settings/task-execution",
|
|
"/system/models": "/settings/models",
|
|
"/system/repos": "/settings/repositories",
|
|
"/system/identities": "/org/agents",
|
|
"/channels": "/settings/channels",
|
|
"/skills": "/settings/skills",
|
|
"/curators": "/settings/curators",
|
|
}).map(([path, redirect]) => ({ path, redirect, meta: { nav: false } })),
|
|
];
|
|
|
|
export { routes };
|
|
|
|
export const router = createRouter({
|
|
history: createWebHistory(),
|
|
routes,
|
|
});
|
|
|
|
export default router;
|