// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`createCoreServer route registration order > pins the auth-active + ConfigManager boot layer order 1`] = `
[
  "USE name=query path=^\\/?(?=\\/|$)",
  "USE name=expressInit path=^\\/?(?=\\/|$)",
  "USE name=<anonymous> path=^\\/?(?=\\/|$)",
  "ROUTE get /metrics",
  "USE name=jsonParser path=^\\/api\\/config\\/?(?=\\/|$)",
  "USE name=jsonParser path=^\\/api\\/pieces\\/?(?=\\/|$)",
  "USE name=jsonParser path=^\\/api\\/local\\/memory\\/?(?=\\/|$)",
  "USE name=jsonParser path=^\\/api\\/local\\/reflection\\/?(?=\\/|$)",
  "USE name=session path=^\\/?(?=\\/|$)",
  "USE name=initialize path=^\\/?(?=\\/|$)",
  "USE name=authenticate path=^\\/?(?=\\/|$)",
  "USE name=router path=^\\/auth\\/?(?=\\/|$)",
  "ROUTE get /api/auth/me",
  "ROUTE post /api/auth/password",
  "USE name=requireAuth path=^\\/api\\/local\\/?(?=\\/|$)",
  "USE name=requireAuth path=^\\/api\\/repos\\/?(?=\\/|$)",
  "USE name=requireAuth path=^\\/api\\/workers\\/?(?=\\/|$)",
  "USE name=requireAdmin path=^\\/api\\/config\\/?(?=\\/|$)",
  "USE name=requireAuth path=^\\/api\\/pieces\\/?(?=\\/|$)",
  "USE name=requireAuth path=^\\/api\\/usage\\/?(?=\\/|$)",
  "USE name=requireAuth path=^\\/api\\/calendar\\/?(?=\\/|$)",
  "USE name=requireAuth path=^\\/api\\/scheduled-tasks\\/?(?=\\/|$)",
  "USE name=jsonParser path=^\\/api\\/admin\\/?(?=\\/|$)",
  "ROUTE get /api/admin/users",
  "ROUTE post /api/admin/users",
  "ROUTE post /api/admin/users/:id/password",
  "ROUTE patch /api/admin/users/:id",
  "ROUTE delete /api/admin/users/:id",
  "ROUTE get /api/admin/orgs",
  "ROUTE post /api/admin/orgs",
  "ROUTE patch /api/admin/orgs/:id",
  "ROUTE delete /api/admin/orgs/:id",
  "ROUTE post /api/admin/orgs/:id/members",
  "ROUTE delete /api/admin/orgs/:id/members/:userId",
  "USE name=jsonParser path=^\\/api\\/admin\\/gateway\\/keys\\/?(?=\\/|$)",
  "USE name=requireAdmin path=^\\/api\\/admin\\/gateway\\/keys\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/admin\\/gateway\\/keys\\/?(?=\\/|$)",
  "ROUTE get /api/users/me/orgs",
  "ROUTE patch /api/users/me/preferences",
  "ROUTE get /api/users/pickable",
  "ROUTE get /api/shared/:token",
  "ROUTE get /api/shared/:token/comments",
  "ROUTE get /api/shared/:token/files",
  "ROUTE get /api/shared/:token/files/content",
  "ROUTE get /api/shared/:token/files/raw",
  "ROUTE get /api/shared/:token/subtasks/activities",
  "ROUTE get /api/shared/:token/subtasks/:jobId/activity",
  "ROUTE get /api/shared/:token/subtasks/:jobId/files",
  "ROUTE get /api/shared/:token/subtasks/:jobId/files/*",
  "ROUTE post /api/local/tasks/:taskId/share",
  "ROUTE delete /api/local/tasks/:taskId/share",
  "ROUTE get /api/app-share/:token",
  "ROUTE get /api/app-share/:token/files/content",
  "ROUTE get /api/app-share/:token/files/raw",
  "ROUTE get /api/app-share/:token/files/list",
  "ROUTE get /",
  "ROUTE get /api/version",
  "ROUTE get /api/repos",
  "ROUTE get /api/local/tasks",
  "ROUTE post /api/local/tasks",
  "ROUTE get /api/local/tasks/:taskId",
  "ROUTE patch /api/local/tasks/:taskId",
  "ROUTE delete /api/local/tasks/:taskId",
  "ROUTE get /api/local/tasks/:taskId/tool-requests",
  "ROUTE post /api/local/tasks/:taskId/tool-requests/:reqId/decide",
  "ROUTE put /api/local/tasks/:taskId/feedback",
  "ROUTE put /api/local/tasks/:taskId/mission",
  "ROUTE get /api/local/tasks/:taskId/comments",
  "ROUTE post /api/local/tasks/:taskId/comments",
  "ROUTE post /api/local/tasks/:taskId/cancel",
  "ROUTE post /api/local/tasks/:taskId/continue",
  "ROUTE post /api/local/tasks/:taskId/regenerate-title",
  "ROUTE post /api/local/tasks/evaluate-prompt",
  "ROUTE get /api/local/tasks/:taskId/stream",
  "ROUTE get /api/local/tasks/:taskId/files",
  "ROUTE get /api/local/tasks/:taskId/files/content",
  "ROUTE get /api/local/tasks/:taskId/files/provenance",
  "ROUTE get /api/local/tasks/:taskId/files/raw",
  "ROUTE get /api/local/tasks/:taskId/files/office-preview",
  "ROUTE put /api/local/tasks/:taskId/files/content",
  "ROUTE post /api/local/tasks/:taskId/files/upload",
  "ROUTE post /api/local/tasks/:taskId/files/delete",
  "ROUTE post /api/local/tasks/:taskId/files/download-zip",
  "USE name=router path=^\\/api\\/local\\/tasks\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/local\\/tasks\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/usage\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/calendar\\/?(?=\\/|$)",
  "ROUTE get /api/local/tasks/:id/subtasks/:jobId/files",
  "ROUTE get /api/local/tasks/:id/subtasks/:jobId/files/*",
  "ROUTE get /api/jobs/:jobId",
  "ROUTE get /api/setup/status",
  "ROUTE post /api/setup/probe",
  "ROUTE post /api/setup/apply",
  "ROUTE get /api/config",
  "ROUTE put /api/config",
  "ROUTE post /api/config/reload",
  "ROUTE get /api/workers",
  "ROUTE get /api/workers/:workerId/backends",
  "ROUTE get /api/branding",
  "USE name=serveStatic path=^\\/branding\\/?(?=\\/|$)",
  "ROUTE post /api/branding/upload",
  "ROUTE delete /api/branding/upload",
  "ROUTE get /api/tools",
  "ROUTE get /api/notifications/vapid-public-key",
  "ROUTE get /api/notifications/subscriptions",
  "ROUTE post /api/notifications/subscriptions",
  "ROUTE delete /api/notifications/subscriptions/:id",
  "ROUTE get /api/notifications/preferences",
  "ROUTE put /api/notifications/preferences",
  "ROUTE post /api/notifications/preferences/migrate-from-localstorage",
  "ROUTE post /api/notifications/test",
  "USE name=jsonParser path=^\\/api\\/local\\/browser\\/sessions\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/local\\/browser\\/sessions\\/?(?=\\/|$)",
  "USE name=jsonParser path=^\\/api\\/browser-sessions\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/browser-sessions\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/users\\/me\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/local\\/memory\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/local\\/reflection\\/?(?=\\/|$)",
  "USE name=<anonymous> path=^\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/local\\/spaces\\/?(?=\\/|$)",
  "USE name=jsonParser path=^\\/api\\/local\\/dashboard\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/local\\/dashboard\\/?(?=\\/|$)",
  "USE name=<anonymous> path=^\\/?(?=\\/|$)",
  "USE name=<anonymous> path=^\\/?(?=\\/|$)",
  "ROUTE get /health",
  "USE name=requireAdmin path=^\\/api\\/admin\\/gateway\\/status\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/admin\\/gateway\\/status\\/?(?=\\/|$)",
  "USE name=router path=^\\/novnc\\/?(?=\\/|$)",
]
`;

exports[`createCoreServer route registration order > pins the no-auth minimal boot layer order 1`] = `
[
  "USE name=query path=^\\/?(?=\\/|$)",
  "USE name=expressInit path=^\\/?(?=\\/|$)",
  "USE name=<anonymous> path=^\\/?(?=\\/|$)",
  "ROUTE get /metrics",
  "USE name=jsonParser path=^\\/api\\/config\\/?(?=\\/|$)",
  "USE name=jsonParser path=^\\/api\\/pieces\\/?(?=\\/|$)",
  "USE name=jsonParser path=^\\/api\\/local\\/memory\\/?(?=\\/|$)",
  "USE name=jsonParser path=^\\/api\\/local\\/reflection\\/?(?=\\/|$)",
  "USE name=jsonParser path=^\\/api\\/admin\\/?(?=\\/|$)",
  "ROUTE get /api/admin/users",
  "ROUTE post /api/admin/users",
  "ROUTE post /api/admin/users/:id/password",
  "ROUTE patch /api/admin/users/:id",
  "ROUTE delete /api/admin/users/:id",
  "ROUTE get /api/admin/orgs",
  "ROUTE post /api/admin/orgs",
  "ROUTE patch /api/admin/orgs/:id",
  "ROUTE delete /api/admin/orgs/:id",
  "ROUTE post /api/admin/orgs/:id/members",
  "ROUTE delete /api/admin/orgs/:id/members/:userId",
  "ROUTE get /api/users/me/orgs",
  "ROUTE patch /api/users/me/preferences",
  "ROUTE get /api/users/pickable",
  "ROUTE get /api/shared/:token",
  "ROUTE get /api/shared/:token/comments",
  "ROUTE get /api/shared/:token/files",
  "ROUTE get /api/shared/:token/files/content",
  "ROUTE get /api/shared/:token/files/raw",
  "ROUTE get /api/shared/:token/subtasks/activities",
  "ROUTE get /api/shared/:token/subtasks/:jobId/activity",
  "ROUTE get /api/shared/:token/subtasks/:jobId/files",
  "ROUTE get /api/shared/:token/subtasks/:jobId/files/*",
  "ROUTE post /api/local/tasks/:taskId/share",
  "ROUTE delete /api/local/tasks/:taskId/share",
  "ROUTE get /api/app-share/:token",
  "ROUTE get /api/app-share/:token/files/content",
  "ROUTE get /api/app-share/:token/files/raw",
  "ROUTE get /api/app-share/:token/files/list",
  "ROUTE get /",
  "ROUTE get /api/version",
  "ROUTE get /api/repos",
  "ROUTE get /api/local/tasks",
  "ROUTE post /api/local/tasks",
  "ROUTE get /api/local/tasks/:taskId",
  "ROUTE patch /api/local/tasks/:taskId",
  "ROUTE delete /api/local/tasks/:taskId",
  "ROUTE get /api/local/tasks/:taskId/tool-requests",
  "ROUTE post /api/local/tasks/:taskId/tool-requests/:reqId/decide",
  "ROUTE put /api/local/tasks/:taskId/feedback",
  "ROUTE put /api/local/tasks/:taskId/mission",
  "ROUTE get /api/local/tasks/:taskId/comments",
  "ROUTE post /api/local/tasks/:taskId/comments",
  "ROUTE post /api/local/tasks/:taskId/cancel",
  "ROUTE post /api/local/tasks/:taskId/continue",
  "ROUTE post /api/local/tasks/:taskId/regenerate-title",
  "ROUTE post /api/local/tasks/evaluate-prompt",
  "ROUTE get /api/local/tasks/:taskId/stream",
  "ROUTE get /api/local/tasks/:taskId/files",
  "ROUTE get /api/local/tasks/:taskId/files/content",
  "ROUTE get /api/local/tasks/:taskId/files/provenance",
  "ROUTE get /api/local/tasks/:taskId/files/raw",
  "ROUTE get /api/local/tasks/:taskId/files/office-preview",
  "ROUTE put /api/local/tasks/:taskId/files/content",
  "ROUTE post /api/local/tasks/:taskId/files/upload",
  "ROUTE post /api/local/tasks/:taskId/files/delete",
  "ROUTE post /api/local/tasks/:taskId/files/download-zip",
  "USE name=router path=^\\/api\\/local\\/tasks\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/local\\/tasks\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/usage\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/calendar\\/?(?=\\/|$)",
  "ROUTE get /api/local/tasks/:id/subtasks/:jobId/files",
  "ROUTE get /api/local/tasks/:id/subtasks/:jobId/files/*",
  "ROUTE get /api/jobs/:jobId",
  "ROUTE get /api/branding",
  "USE name=serveStatic path=^\\/branding\\/?(?=\\/|$)",
  "ROUTE post /api/branding/upload",
  "ROUTE delete /api/branding/upload",
  "ROUTE get /api/tools",
  "ROUTE get /api/notifications/vapid-public-key",
  "ROUTE get /api/notifications/subscriptions",
  "ROUTE post /api/notifications/subscriptions",
  "ROUTE delete /api/notifications/subscriptions/:id",
  "ROUTE get /api/notifications/preferences",
  "ROUTE put /api/notifications/preferences",
  "ROUTE post /api/notifications/preferences/migrate-from-localstorage",
  "ROUTE post /api/notifications/test",
  "USE name=jsonParser path=^\\/api\\/local\\/browser\\/sessions\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/local\\/browser\\/sessions\\/?(?=\\/|$)",
  "USE name=jsonParser path=^\\/api\\/browser-sessions\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/browser-sessions\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/users\\/me\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/local\\/memory\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/local\\/reflection\\/?(?=\\/|$)",
  "USE name=<anonymous> path=^\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/local\\/spaces\\/?(?=\\/|$)",
  "USE name=jsonParser path=^\\/api\\/local\\/dashboard\\/?(?=\\/|$)",
  "USE name=router path=^\\/api\\/local\\/dashboard\\/?(?=\\/|$)",
  "ROUTE get /health",
  "USE name=router path=^\\/api\\/admin\\/gateway\\/status\\/?(?=\\/|$)",
  "USE name=router path=^\\/novnc\\/?(?=\\/|$)",
]
`;
