diff --git a/bun.lockb b/bun.lockb index 83374368..2a83e0b6 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 6704c0c8..daa16dc6 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,7 @@ "nuqs": "^2.2.3", "posthog-js": "^1.200.1", "react": "^19.0.0", - "react-day-picker": "^8.9.1", + "react-day-picker": "^9.9.0", "react-dom": "^19.0.0", "react-easy-crop": "^5.4.2", "react-grid-layout": "^1.5.0", diff --git a/src/components/run/SharePageComponent.tsx b/src/components/run/SharePageComponent.tsx index 5cb65143..97f02a37 100644 --- a/src/components/run/SharePageComponent.tsx +++ b/src/components/run/SharePageComponent.tsx @@ -4,6 +4,7 @@ import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area"; import { Skeleton } from "@/components/ui/skeleton"; +import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { Tooltip, TooltipContent, @@ -17,6 +18,7 @@ import { getTotalUrlCountAndUrls, } from "@/components/workflows/OutputRender"; import { useRuns } from "@/components/workflows/RunsTable"; +import { useSelectedVersion } from "@/components/version-select"; import { useWorkflowIdInWorkflowPage } from "@/hooks/hook"; import { api } from "@/lib/api"; import { customInputNodes } from "@/lib/customInputNodes"; @@ -36,10 +38,11 @@ import { ChevronRight, ChevronUp, Clock, + Code, Loader2, Play, } from "lucide-react"; -import { parseAsBoolean, useQueryState } from "nuqs"; +import { parseAsBoolean, parseAsString, useQueryState } from "nuqs"; import { type ReactNode, useCallback, @@ -49,13 +52,13 @@ import { useState, } from "react"; import { toast } from "sonner"; +import ApiPlaygroundDemo from "../api-playground-demo"; import { MyDrawer } from "../drawer"; import { Fab } from "../fab"; import { LogsViewer } from "../log/logs-viewer"; import { AlertDescription } from "../ui/alert"; import { Progress } from "../ui/progress"; import { Separator } from "../ui/separator"; -import { useSelectedVersion } from "../version-select"; import { VirtualizedInfiniteList } from "../virtualized-infinite-list"; import { LogsTab, RunDetails } from "../workflows/WorkflowComponent"; @@ -105,6 +108,7 @@ export function Playground(props: { const workflow_id = useWorkflowIdInWorkflowPage(); const [runId, setRunId] = useQueryState("run-id"); const [isTweak, setIsTweak] = useQueryState("tweak", parseAsBoolean); + const [playgroundTab, setPlaygroundTab] = useQueryState("playground-tab", parseAsString.withDefault("playground")); const { tweak: tweakQuery } = useSearch({ from: "/workflows/$workflowId/$view", }); @@ -238,184 +242,224 @@ export function Playground(props: { return ( <> -
-
-
-
- Edit - +
+ + + - Learn about external inputs - -
-
- {isVersionLoading ? ( -
- + + Playground + + + + API + + + +
+
+ + {/* Tab Content */} + + +
+
+
+ - ) : version ? ( - - ) : ( -
-

- No deployments found for this workflow. -

-

- Start a new workspace below to save a version, and promote - it to a deployment for testing in the playground. -

+
+ {isVersionLoading ? ( +
+ +
+ ) : version ? ( + + ) : ( +
+

+ No deployments found for this workflow. +

+

+ Start a new workspace below to save a version, and promote + it to a deployment for testing in the playground. +

+
+ )}
- )} -
-
+
-
-
- Logs - +
+
+ {runId && run?.modal_function_call_id ? ( + + ) : ( +
+ +
+ )} +
+
-
- {runId && run?.modal_function_call_id ? ( - - ) : ( -
- +
+ {/* Useless Background */} + +
+
+
+ + +
+ +
- )} +
+
+ +
+ Gallery +
+ } + estimateSize={107} + renderLoading={() => { + return [...Array(4)].map((_, i) => ( + + )); + }} + /> +
+
+
-
-
-
- {/* Useless Background */} - + setShowRunInputsMobileLayout(!showRunInputsMobileLayout), + name: "Queue run", + icon: Play, + }} + /> + + {showRunInputsMobileLayout && ( + setShowRunInputsMobileLayout(false)} + desktopClassName="w-[500px] xl:hidden shadow-lg border border-gray-200 dark:border-zinc-700/50" + side="left" > -
-
-
- - -
- - + + )} + + + +
+
+
-
- -
- Gallery -
- } - estimateSize={107} - renderLoading={() => { - return [...Array(4)].map((_, i) => ( - - )); - }} - /> -
-
-
-
-
- - - setShowRunInputsMobileLayout(!showRunInputsMobileLayout), - name: "Queue run", - icon: Play, - }} - /> - - {showRunInputsMobileLayout && ( - setShowRunInputsMobileLayout(false)} - desktopClassName="w-[500px] xl:hidden shadow-lg border border-gray-200 dark:border-zinc-700/50" - side="left" - > - - - )} + + ); } diff --git a/src/routeTree.gen.ts b/src/routeTree.gen.ts index 17b6d2a5..4ceda350 100644 --- a/src/routeTree.gen.ts +++ b/src/routeTree.gen.ts @@ -8,478 +8,213 @@ // You should NOT make any changes in this file as it will be overwritten. // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified. -// Import Routes - -import { Route as rootRoute } from './routes/__root' -import { Route as WaitlistImport } from './routes/waitlist' -import { Route as UsageImport } from './routes/usage' -import { Route as SettingsImport } from './routes/settings' -import { Route as SecretsImport } from './routes/secrets' -import { Route as PricingImport } from './routes/pricing' -import { Route as OrgNotFoundImport } from './routes/org-not-found' -import { Route as OnboardingCallImport } from './routes/onboarding-call' -import { Route as ModelsImport } from './routes/models' -import { Route as ExploreImport } from './routes/explore' -import { Route as CreateOrgImport } from './routes/create-org' -import { Route as AssetsImport } from './routes/assets' -import { Route as ApiKeysImport } from './routes/api-keys' -import { Route as IndexImport } from './routes/index' -import { Route as WorkflowsIndexImport } from './routes/workflows/index' -import { Route as SessionsIndexImport } from './routes/sessions/index' -import { Route as OrganizationProfileIndexImport } from './routes/organization-profile/index' -import { Route as MachinesIndexImport } from './routes/machines/index' -import { Route as AnalyticsIndexImport } from './routes/analytics/index' -import { Route as AuthSignUpImport } from './routes/auth/sign-up' -import { Route as AuthSignInImport } from './routes/auth/sign-in' -import { Route as SessionsSessionIdIndexImport } from './routes/sessions/$sessionId/index' -import { Route as OrganizationProfileOrganizationMembersIndexImport } from './routes/organization-profile/organization-members/index' -import { Route as MachinesMachineIdIndexImport } from './routes/machines/$machineId/index' -import { Route as WorkflowsWorkflowIdViewImport } from './routes/workflows/$workflowId/$view' -import { Route as ShareUserSlugImport } from './routes/share/$user/$slug' -import { Route as MachinesMachineIdFilesImport } from './routes/machines/$machineId/files' -import { Route as MachinesMachineIdActivityImport } from './routes/machines/$machineId/activity' -import { Route as MachinesMachineIdMachineVersionIdImport } from './routes/machines/$machineId/$machineVersionId' -import { Route as MachinesMachineIdHistoryIndexImport } from './routes/machines/$machineId/history/index' -import { Route as AuthRequestRequestIdIndexImport } from './routes/auth/request/$requestId/index' -import { Route as ShareWorkflowUserSlugImport } from './routes/share/workflow/$user/$slug' -import { Route as SharePlaygroundUserSlugImport } from './routes/share/playground/$user/$slug' - -// Create/Update Routes - -const WaitlistRoute = WaitlistImport.update({ +import { Route as rootRouteImport } from './routes/__root' +import { Route as WaitlistRouteImport } from './routes/waitlist' +import { Route as UsageRouteImport } from './routes/usage' +import { Route as SettingsRouteImport } from './routes/settings' +import { Route as SecretsRouteImport } from './routes/secrets' +import { Route as PricingRouteImport } from './routes/pricing' +import { Route as OrgNotFoundRouteImport } from './routes/org-not-found' +import { Route as OnboardingCallRouteImport } from './routes/onboarding-call' +import { Route as ModelsRouteImport } from './routes/models' +import { Route as ExploreRouteImport } from './routes/explore' +import { Route as CreateOrgRouteImport } from './routes/create-org' +import { Route as AssetsRouteImport } from './routes/assets' +import { Route as ApiKeysRouteImport } from './routes/api-keys' +import { Route as IndexRouteImport } from './routes/index' +import { Route as WorkflowsIndexRouteImport } from './routes/workflows/index' +import { Route as SessionsIndexRouteImport } from './routes/sessions/index' +import { Route as OrganizationProfileIndexRouteImport } from './routes/organization-profile/index' +import { Route as MachinesIndexRouteImport } from './routes/machines/index' +import { Route as AnalyticsIndexRouteImport } from './routes/analytics/index' +import { Route as AuthSignUpRouteImport } from './routes/auth/sign-up' +import { Route as AuthSignInRouteImport } from './routes/auth/sign-in' +import { Route as SessionsSessionIdIndexRouteImport } from './routes/sessions/$sessionId/index' +import { Route as OrganizationProfileOrganizationMembersIndexRouteImport } from './routes/organization-profile/organization-members/index' +import { Route as MachinesMachineIdIndexRouteImport } from './routes/machines/$machineId/index' +import { Route as WorkflowsWorkflowIdViewRouteImport } from './routes/workflows/$workflowId/$view' +import { Route as ShareUserSlugRouteImport } from './routes/share/$user/$slug' +import { Route as MachinesMachineIdFilesRouteImport } from './routes/machines/$machineId/files' +import { Route as MachinesMachineIdActivityRouteImport } from './routes/machines/$machineId/activity' +import { Route as MachinesMachineIdMachineVersionIdRouteImport } from './routes/machines/$machineId/$machineVersionId' +import { Route as MachinesMachineIdHistoryIndexRouteImport } from './routes/machines/$machineId/history/index' +import { Route as AuthRequestRequestIdIndexRouteImport } from './routes/auth/request/$requestId/index' +import { Route as ShareWorkflowUserSlugRouteImport } from './routes/share/workflow/$user/$slug' +import { Route as SharePlaygroundUserSlugRouteImport } from './routes/share/playground/$user/$slug' + +const WaitlistRoute = WaitlistRouteImport.update({ id: '/waitlist', path: '/waitlist', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const UsageRoute = UsageImport.update({ +const UsageRoute = UsageRouteImport.update({ id: '/usage', path: '/usage', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const SettingsRoute = SettingsImport.update({ +const SettingsRoute = SettingsRouteImport.update({ id: '/settings', path: '/settings', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const SecretsRoute = SecretsImport.update({ +const SecretsRoute = SecretsRouteImport.update({ id: '/secrets', path: '/secrets', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const PricingRoute = PricingImport.update({ +const PricingRoute = PricingRouteImport.update({ id: '/pricing', path: '/pricing', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const OrgNotFoundRoute = OrgNotFoundImport.update({ +const OrgNotFoundRoute = OrgNotFoundRouteImport.update({ id: '/org-not-found', path: '/org-not-found', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const OnboardingCallRoute = OnboardingCallImport.update({ +const OnboardingCallRoute = OnboardingCallRouteImport.update({ id: '/onboarding-call', path: '/onboarding-call', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const ModelsRoute = ModelsImport.update({ +const ModelsRoute = ModelsRouteImport.update({ id: '/models', path: '/models', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const ExploreRoute = ExploreImport.update({ +const ExploreRoute = ExploreRouteImport.update({ id: '/explore', path: '/explore', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const CreateOrgRoute = CreateOrgImport.update({ +const CreateOrgRoute = CreateOrgRouteImport.update({ id: '/create-org', path: '/create-org', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const AssetsRoute = AssetsImport.update({ +const AssetsRoute = AssetsRouteImport.update({ id: '/assets', path: '/assets', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const ApiKeysRoute = ApiKeysImport.update({ +const ApiKeysRoute = ApiKeysRouteImport.update({ id: '/api-keys', path: '/api-keys', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const IndexRoute = IndexImport.update({ +const IndexRoute = IndexRouteImport.update({ id: '/', path: '/', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const WorkflowsIndexRoute = WorkflowsIndexImport.update({ +const WorkflowsIndexRoute = WorkflowsIndexRouteImport.update({ id: '/workflows/', path: '/workflows/', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any).lazy(() => import('./routes/workflows/index.lazy').then((d) => d.Route), ) - -const SessionsIndexRoute = SessionsIndexImport.update({ +const SessionsIndexRoute = SessionsIndexRouteImport.update({ id: '/sessions/', path: '/sessions/', - getParentRoute: () => rootRoute, -} as any) - -const OrganizationProfileIndexRoute = OrganizationProfileIndexImport.update({ - id: '/organization-profile/', - path: '/organization-profile/', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const MachinesIndexRoute = MachinesIndexImport.update({ +const OrganizationProfileIndexRoute = + OrganizationProfileIndexRouteImport.update({ + id: '/organization-profile/', + path: '/organization-profile/', + getParentRoute: () => rootRouteImport, + } as any) +const MachinesIndexRoute = MachinesIndexRouteImport.update({ id: '/machines/', path: '/machines/', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const AnalyticsIndexRoute = AnalyticsIndexImport.update({ +const AnalyticsIndexRoute = AnalyticsIndexRouteImport.update({ id: '/analytics/', path: '/analytics/', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any).lazy(() => import('./routes/analytics/index.lazy').then((d) => d.Route), ) - -const AuthSignUpRoute = AuthSignUpImport.update({ +const AuthSignUpRoute = AuthSignUpRouteImport.update({ id: '/auth/sign-up', path: '/auth/sign-up', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const AuthSignInRoute = AuthSignInImport.update({ +const AuthSignInRoute = AuthSignInRouteImport.update({ id: '/auth/sign-in', path: '/auth/sign-in', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const SessionsSessionIdIndexRoute = SessionsSessionIdIndexImport.update({ +const SessionsSessionIdIndexRoute = SessionsSessionIdIndexRouteImport.update({ id: '/sessions/$sessionId/', path: '/sessions/$sessionId/', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - const OrganizationProfileOrganizationMembersIndexRoute = - OrganizationProfileOrganizationMembersIndexImport.update({ + OrganizationProfileOrganizationMembersIndexRouteImport.update({ id: '/organization-profile/organization-members/', path: '/organization-profile/organization-members/', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const MachinesMachineIdIndexRoute = MachinesMachineIdIndexImport.update({ +const MachinesMachineIdIndexRoute = MachinesMachineIdIndexRouteImport.update({ id: '/machines/$machineId/', path: '/machines/$machineId/', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const WorkflowsWorkflowIdViewRoute = WorkflowsWorkflowIdViewImport.update({ +const WorkflowsWorkflowIdViewRoute = WorkflowsWorkflowIdViewRouteImport.update({ id: '/workflows/$workflowId/$view', path: '/workflows/$workflowId/$view', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any).lazy(() => import('./routes/workflows/$workflowId/$view.lazy').then((d) => d.Route), ) - -const ShareUserSlugRoute = ShareUserSlugImport.update({ +const ShareUserSlugRoute = ShareUserSlugRouteImport.update({ id: '/share/$user/$slug', path: '/share/$user/$slug', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const MachinesMachineIdFilesRoute = MachinesMachineIdFilesImport.update({ +const MachinesMachineIdFilesRoute = MachinesMachineIdFilesRouteImport.update({ id: '/machines/$machineId/files', path: '/machines/$machineId/files', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const MachinesMachineIdActivityRoute = MachinesMachineIdActivityImport.update({ - id: '/machines/$machineId/activity', - path: '/machines/$machineId/activity', - getParentRoute: () => rootRoute, -} as any) - +const MachinesMachineIdActivityRoute = + MachinesMachineIdActivityRouteImport.update({ + id: '/machines/$machineId/activity', + path: '/machines/$machineId/activity', + getParentRoute: () => rootRouteImport, + } as any) const MachinesMachineIdMachineVersionIdRoute = - MachinesMachineIdMachineVersionIdImport.update({ + MachinesMachineIdMachineVersionIdRouteImport.update({ id: '/machines/$machineId/$machineVersionId', path: '/machines/$machineId/$machineVersionId', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - const MachinesMachineIdHistoryIndexRoute = - MachinesMachineIdHistoryIndexImport.update({ + MachinesMachineIdHistoryIndexRouteImport.update({ id: '/machines/$machineId/history/', path: '/machines/$machineId/history/', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const AuthRequestRequestIdIndexRoute = AuthRequestRequestIdIndexImport.update({ - id: '/auth/request/$requestId/', - path: '/auth/request/$requestId/', - getParentRoute: () => rootRoute, -} as any) - -const ShareWorkflowUserSlugRoute = ShareWorkflowUserSlugImport.update({ +const AuthRequestRequestIdIndexRoute = + AuthRequestRequestIdIndexRouteImport.update({ + id: '/auth/request/$requestId/', + path: '/auth/request/$requestId/', + getParentRoute: () => rootRouteImport, + } as any) +const ShareWorkflowUserSlugRoute = ShareWorkflowUserSlugRouteImport.update({ id: '/share/workflow/$user/$slug', path: '/share/workflow/$user/$slug', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) - -const SharePlaygroundUserSlugRoute = SharePlaygroundUserSlugImport.update({ +const SharePlaygroundUserSlugRoute = SharePlaygroundUserSlugRouteImport.update({ id: '/share/playground/$user/$slug', path: '/share/playground/$user/$slug', - getParentRoute: () => rootRoute, + getParentRoute: () => rootRouteImport, } as any) -// Populate the FileRoutesByPath interface - -declare module '@tanstack/react-router' { - interface FileRoutesByPath { - '/': { - id: '/' - path: '/' - fullPath: '/' - preLoaderRoute: typeof IndexImport - parentRoute: typeof rootRoute - } - '/api-keys': { - id: '/api-keys' - path: '/api-keys' - fullPath: '/api-keys' - preLoaderRoute: typeof ApiKeysImport - parentRoute: typeof rootRoute - } - '/assets': { - id: '/assets' - path: '/assets' - fullPath: '/assets' - preLoaderRoute: typeof AssetsImport - parentRoute: typeof rootRoute - } - '/create-org': { - id: '/create-org' - path: '/create-org' - fullPath: '/create-org' - preLoaderRoute: typeof CreateOrgImport - parentRoute: typeof rootRoute - } - '/explore': { - id: '/explore' - path: '/explore' - fullPath: '/explore' - preLoaderRoute: typeof ExploreImport - parentRoute: typeof rootRoute - } - '/models': { - id: '/models' - path: '/models' - fullPath: '/models' - preLoaderRoute: typeof ModelsImport - parentRoute: typeof rootRoute - } - '/onboarding-call': { - id: '/onboarding-call' - path: '/onboarding-call' - fullPath: '/onboarding-call' - preLoaderRoute: typeof OnboardingCallImport - parentRoute: typeof rootRoute - } - '/org-not-found': { - id: '/org-not-found' - path: '/org-not-found' - fullPath: '/org-not-found' - preLoaderRoute: typeof OrgNotFoundImport - parentRoute: typeof rootRoute - } - '/pricing': { - id: '/pricing' - path: '/pricing' - fullPath: '/pricing' - preLoaderRoute: typeof PricingImport - parentRoute: typeof rootRoute - } - '/secrets': { - id: '/secrets' - path: '/secrets' - fullPath: '/secrets' - preLoaderRoute: typeof SecretsImport - parentRoute: typeof rootRoute - } - '/settings': { - id: '/settings' - path: '/settings' - fullPath: '/settings' - preLoaderRoute: typeof SettingsImport - parentRoute: typeof rootRoute - } - '/usage': { - id: '/usage' - path: '/usage' - fullPath: '/usage' - preLoaderRoute: typeof UsageImport - parentRoute: typeof rootRoute - } - '/waitlist': { - id: '/waitlist' - path: '/waitlist' - fullPath: '/waitlist' - preLoaderRoute: typeof WaitlistImport - parentRoute: typeof rootRoute - } - '/auth/sign-in': { - id: '/auth/sign-in' - path: '/auth/sign-in' - fullPath: '/auth/sign-in' - preLoaderRoute: typeof AuthSignInImport - parentRoute: typeof rootRoute - } - '/auth/sign-up': { - id: '/auth/sign-up' - path: '/auth/sign-up' - fullPath: '/auth/sign-up' - preLoaderRoute: typeof AuthSignUpImport - parentRoute: typeof rootRoute - } - '/analytics/': { - id: '/analytics/' - path: '/analytics' - fullPath: '/analytics' - preLoaderRoute: typeof AnalyticsIndexImport - parentRoute: typeof rootRoute - } - '/machines/': { - id: '/machines/' - path: '/machines' - fullPath: '/machines' - preLoaderRoute: typeof MachinesIndexImport - parentRoute: typeof rootRoute - } - '/organization-profile/': { - id: '/organization-profile/' - path: '/organization-profile' - fullPath: '/organization-profile' - preLoaderRoute: typeof OrganizationProfileIndexImport - parentRoute: typeof rootRoute - } - '/sessions/': { - id: '/sessions/' - path: '/sessions' - fullPath: '/sessions' - preLoaderRoute: typeof SessionsIndexImport - parentRoute: typeof rootRoute - } - '/workflows/': { - id: '/workflows/' - path: '/workflows' - fullPath: '/workflows' - preLoaderRoute: typeof WorkflowsIndexImport - parentRoute: typeof rootRoute - } - '/machines/$machineId/$machineVersionId': { - id: '/machines/$machineId/$machineVersionId' - path: '/machines/$machineId/$machineVersionId' - fullPath: '/machines/$machineId/$machineVersionId' - preLoaderRoute: typeof MachinesMachineIdMachineVersionIdImport - parentRoute: typeof rootRoute - } - '/machines/$machineId/activity': { - id: '/machines/$machineId/activity' - path: '/machines/$machineId/activity' - fullPath: '/machines/$machineId/activity' - preLoaderRoute: typeof MachinesMachineIdActivityImport - parentRoute: typeof rootRoute - } - '/machines/$machineId/files': { - id: '/machines/$machineId/files' - path: '/machines/$machineId/files' - fullPath: '/machines/$machineId/files' - preLoaderRoute: typeof MachinesMachineIdFilesImport - parentRoute: typeof rootRoute - } - '/share/$user/$slug': { - id: '/share/$user/$slug' - path: '/share/$user/$slug' - fullPath: '/share/$user/$slug' - preLoaderRoute: typeof ShareUserSlugImport - parentRoute: typeof rootRoute - } - '/workflows/$workflowId/$view': { - id: '/workflows/$workflowId/$view' - path: '/workflows/$workflowId/$view' - fullPath: '/workflows/$workflowId/$view' - preLoaderRoute: typeof WorkflowsWorkflowIdViewImport - parentRoute: typeof rootRoute - } - '/machines/$machineId/': { - id: '/machines/$machineId/' - path: '/machines/$machineId' - fullPath: '/machines/$machineId' - preLoaderRoute: typeof MachinesMachineIdIndexImport - parentRoute: typeof rootRoute - } - '/organization-profile/organization-members/': { - id: '/organization-profile/organization-members/' - path: '/organization-profile/organization-members' - fullPath: '/organization-profile/organization-members' - preLoaderRoute: typeof OrganizationProfileOrganizationMembersIndexImport - parentRoute: typeof rootRoute - } - '/sessions/$sessionId/': { - id: '/sessions/$sessionId/' - path: '/sessions/$sessionId' - fullPath: '/sessions/$sessionId' - preLoaderRoute: typeof SessionsSessionIdIndexImport - parentRoute: typeof rootRoute - } - '/share/playground/$user/$slug': { - id: '/share/playground/$user/$slug' - path: '/share/playground/$user/$slug' - fullPath: '/share/playground/$user/$slug' - preLoaderRoute: typeof SharePlaygroundUserSlugImport - parentRoute: typeof rootRoute - } - '/share/workflow/$user/$slug': { - id: '/share/workflow/$user/$slug' - path: '/share/workflow/$user/$slug' - fullPath: '/share/workflow/$user/$slug' - preLoaderRoute: typeof ShareWorkflowUserSlugImport - parentRoute: typeof rootRoute - } - '/auth/request/$requestId/': { - id: '/auth/request/$requestId/' - path: '/auth/request/$requestId' - fullPath: '/auth/request/$requestId' - preLoaderRoute: typeof AuthRequestRequestIdIndexImport - parentRoute: typeof rootRoute - } - '/machines/$machineId/history/': { - id: '/machines/$machineId/history/' - path: '/machines/$machineId/history' - fullPath: '/machines/$machineId/history' - preLoaderRoute: typeof MachinesMachineIdHistoryIndexImport - parentRoute: typeof rootRoute - } - } -} - -// Create and export the route tree - export interface FileRoutesByFullPath { '/': typeof IndexRoute '/api-keys': typeof ApiKeysRoute @@ -514,7 +249,6 @@ export interface FileRoutesByFullPath { '/auth/request/$requestId': typeof AuthRequestRequestIdIndexRoute '/machines/$machineId/history': typeof MachinesMachineIdHistoryIndexRoute } - export interface FileRoutesByTo { '/': typeof IndexRoute '/api-keys': typeof ApiKeysRoute @@ -549,9 +283,8 @@ export interface FileRoutesByTo { '/auth/request/$requestId': typeof AuthRequestRequestIdIndexRoute '/machines/$machineId/history': typeof MachinesMachineIdHistoryIndexRoute } - export interface FileRoutesById { - __root__: typeof rootRoute + __root__: typeof rootRouteImport '/': typeof IndexRoute '/api-keys': typeof ApiKeysRoute '/assets': typeof AssetsRoute @@ -585,7 +318,6 @@ export interface FileRoutesById { '/auth/request/$requestId/': typeof AuthRequestRequestIdIndexRoute '/machines/$machineId/history/': typeof MachinesMachineIdHistoryIndexRoute } - export interface FileRouteTypes { fileRoutesByFullPath: FileRoutesByFullPath fullPaths: @@ -691,7 +423,6 @@ export interface FileRouteTypes { | '/machines/$machineId/history/' fileRoutesById: FileRoutesById } - export interface RootRouteChildren { IndexRoute: typeof IndexRoute ApiKeysRoute: typeof ApiKeysRoute @@ -727,6 +458,235 @@ export interface RootRouteChildren { MachinesMachineIdHistoryIndexRoute: typeof MachinesMachineIdHistoryIndexRoute } +declare module '@tanstack/react-router' { + interface FileRoutesByPath { + '/waitlist': { + id: '/waitlist' + path: '/waitlist' + fullPath: '/waitlist' + preLoaderRoute: typeof WaitlistRouteImport + parentRoute: typeof rootRouteImport + } + '/usage': { + id: '/usage' + path: '/usage' + fullPath: '/usage' + preLoaderRoute: typeof UsageRouteImport + parentRoute: typeof rootRouteImport + } + '/settings': { + id: '/settings' + path: '/settings' + fullPath: '/settings' + preLoaderRoute: typeof SettingsRouteImport + parentRoute: typeof rootRouteImport + } + '/secrets': { + id: '/secrets' + path: '/secrets' + fullPath: '/secrets' + preLoaderRoute: typeof SecretsRouteImport + parentRoute: typeof rootRouteImport + } + '/pricing': { + id: '/pricing' + path: '/pricing' + fullPath: '/pricing' + preLoaderRoute: typeof PricingRouteImport + parentRoute: typeof rootRouteImport + } + '/org-not-found': { + id: '/org-not-found' + path: '/org-not-found' + fullPath: '/org-not-found' + preLoaderRoute: typeof OrgNotFoundRouteImport + parentRoute: typeof rootRouteImport + } + '/onboarding-call': { + id: '/onboarding-call' + path: '/onboarding-call' + fullPath: '/onboarding-call' + preLoaderRoute: typeof OnboardingCallRouteImport + parentRoute: typeof rootRouteImport + } + '/models': { + id: '/models' + path: '/models' + fullPath: '/models' + preLoaderRoute: typeof ModelsRouteImport + parentRoute: typeof rootRouteImport + } + '/explore': { + id: '/explore' + path: '/explore' + fullPath: '/explore' + preLoaderRoute: typeof ExploreRouteImport + parentRoute: typeof rootRouteImport + } + '/create-org': { + id: '/create-org' + path: '/create-org' + fullPath: '/create-org' + preLoaderRoute: typeof CreateOrgRouteImport + parentRoute: typeof rootRouteImport + } + '/assets': { + id: '/assets' + path: '/assets' + fullPath: '/assets' + preLoaderRoute: typeof AssetsRouteImport + parentRoute: typeof rootRouteImport + } + '/api-keys': { + id: '/api-keys' + path: '/api-keys' + fullPath: '/api-keys' + preLoaderRoute: typeof ApiKeysRouteImport + parentRoute: typeof rootRouteImport + } + '/': { + id: '/' + path: '/' + fullPath: '/' + preLoaderRoute: typeof IndexRouteImport + parentRoute: typeof rootRouteImport + } + '/workflows/': { + id: '/workflows/' + path: '/workflows' + fullPath: '/workflows' + preLoaderRoute: typeof WorkflowsIndexRouteImport + parentRoute: typeof rootRouteImport + } + '/sessions/': { + id: '/sessions/' + path: '/sessions' + fullPath: '/sessions' + preLoaderRoute: typeof SessionsIndexRouteImport + parentRoute: typeof rootRouteImport + } + '/organization-profile/': { + id: '/organization-profile/' + path: '/organization-profile' + fullPath: '/organization-profile' + preLoaderRoute: typeof OrganizationProfileIndexRouteImport + parentRoute: typeof rootRouteImport + } + '/machines/': { + id: '/machines/' + path: '/machines' + fullPath: '/machines' + preLoaderRoute: typeof MachinesIndexRouteImport + parentRoute: typeof rootRouteImport + } + '/analytics/': { + id: '/analytics/' + path: '/analytics' + fullPath: '/analytics' + preLoaderRoute: typeof AnalyticsIndexRouteImport + parentRoute: typeof rootRouteImport + } + '/auth/sign-up': { + id: '/auth/sign-up' + path: '/auth/sign-up' + fullPath: '/auth/sign-up' + preLoaderRoute: typeof AuthSignUpRouteImport + parentRoute: typeof rootRouteImport + } + '/auth/sign-in': { + id: '/auth/sign-in' + path: '/auth/sign-in' + fullPath: '/auth/sign-in' + preLoaderRoute: typeof AuthSignInRouteImport + parentRoute: typeof rootRouteImport + } + '/sessions/$sessionId/': { + id: '/sessions/$sessionId/' + path: '/sessions/$sessionId' + fullPath: '/sessions/$sessionId' + preLoaderRoute: typeof SessionsSessionIdIndexRouteImport + parentRoute: typeof rootRouteImport + } + '/organization-profile/organization-members/': { + id: '/organization-profile/organization-members/' + path: '/organization-profile/organization-members' + fullPath: '/organization-profile/organization-members' + preLoaderRoute: typeof OrganizationProfileOrganizationMembersIndexRouteImport + parentRoute: typeof rootRouteImport + } + '/machines/$machineId/': { + id: '/machines/$machineId/' + path: '/machines/$machineId' + fullPath: '/machines/$machineId' + preLoaderRoute: typeof MachinesMachineIdIndexRouteImport + parentRoute: typeof rootRouteImport + } + '/workflows/$workflowId/$view': { + id: '/workflows/$workflowId/$view' + path: '/workflows/$workflowId/$view' + fullPath: '/workflows/$workflowId/$view' + preLoaderRoute: typeof WorkflowsWorkflowIdViewRouteImport + parentRoute: typeof rootRouteImport + } + '/share/$user/$slug': { + id: '/share/$user/$slug' + path: '/share/$user/$slug' + fullPath: '/share/$user/$slug' + preLoaderRoute: typeof ShareUserSlugRouteImport + parentRoute: typeof rootRouteImport + } + '/machines/$machineId/files': { + id: '/machines/$machineId/files' + path: '/machines/$machineId/files' + fullPath: '/machines/$machineId/files' + preLoaderRoute: typeof MachinesMachineIdFilesRouteImport + parentRoute: typeof rootRouteImport + } + '/machines/$machineId/activity': { + id: '/machines/$machineId/activity' + path: '/machines/$machineId/activity' + fullPath: '/machines/$machineId/activity' + preLoaderRoute: typeof MachinesMachineIdActivityRouteImport + parentRoute: typeof rootRouteImport + } + '/machines/$machineId/$machineVersionId': { + id: '/machines/$machineId/$machineVersionId' + path: '/machines/$machineId/$machineVersionId' + fullPath: '/machines/$machineId/$machineVersionId' + preLoaderRoute: typeof MachinesMachineIdMachineVersionIdRouteImport + parentRoute: typeof rootRouteImport + } + '/machines/$machineId/history/': { + id: '/machines/$machineId/history/' + path: '/machines/$machineId/history' + fullPath: '/machines/$machineId/history' + preLoaderRoute: typeof MachinesMachineIdHistoryIndexRouteImport + parentRoute: typeof rootRouteImport + } + '/auth/request/$requestId/': { + id: '/auth/request/$requestId/' + path: '/auth/request/$requestId' + fullPath: '/auth/request/$requestId' + preLoaderRoute: typeof AuthRequestRequestIdIndexRouteImport + parentRoute: typeof rootRouteImport + } + '/share/workflow/$user/$slug': { + id: '/share/workflow/$user/$slug' + path: '/share/workflow/$user/$slug' + fullPath: '/share/workflow/$user/$slug' + preLoaderRoute: typeof ShareWorkflowUserSlugRouteImport + parentRoute: typeof rootRouteImport + } + '/share/playground/$user/$slug': { + id: '/share/playground/$user/$slug' + path: '/share/playground/$user/$slug' + fullPath: '/share/playground/$user/$slug' + preLoaderRoute: typeof SharePlaygroundUserSlugRouteImport + parentRoute: typeof rootRouteImport + } + } +} + const rootRouteChildren: RootRouteChildren = { IndexRoute: IndexRoute, ApiKeysRoute: ApiKeysRoute, @@ -763,147 +723,6 @@ const rootRouteChildren: RootRouteChildren = { AuthRequestRequestIdIndexRoute: AuthRequestRequestIdIndexRoute, MachinesMachineIdHistoryIndexRoute: MachinesMachineIdHistoryIndexRoute, } - -export const routeTree = rootRoute +export const routeTree = rootRouteImport ._addFileChildren(rootRouteChildren) ._addFileTypes() - -/* ROUTE_MANIFEST_START -{ - "routes": { - "__root__": { - "filePath": "__root.tsx", - "children": [ - "/", - "/api-keys", - "/assets", - "/create-org", - "/explore", - "/models", - "/onboarding-call", - "/org-not-found", - "/pricing", - "/secrets", - "/settings", - "/usage", - "/waitlist", - "/auth/sign-in", - "/auth/sign-up", - "/analytics/", - "/machines/", - "/organization-profile/", - "/sessions/", - "/workflows/", - "/machines/$machineId/$machineVersionId", - "/machines/$machineId/activity", - "/machines/$machineId/files", - "/share/$user/$slug", - "/workflows/$workflowId/$view", - "/machines/$machineId/", - "/organization-profile/organization-members/", - "/sessions/$sessionId/", - "/share/playground/$user/$slug", - "/share/workflow/$user/$slug", - "/auth/request/$requestId/", - "/machines/$machineId/history/" - ] - }, - "/": { - "filePath": "index.tsx" - }, - "/api-keys": { - "filePath": "api-keys.tsx" - }, - "/assets": { - "filePath": "assets.tsx" - }, - "/create-org": { - "filePath": "create-org.tsx" - }, - "/explore": { - "filePath": "explore.tsx" - }, - "/models": { - "filePath": "models.tsx" - }, - "/onboarding-call": { - "filePath": "onboarding-call.tsx" - }, - "/org-not-found": { - "filePath": "org-not-found.tsx" - }, - "/pricing": { - "filePath": "pricing.tsx" - }, - "/secrets": { - "filePath": "secrets.tsx" - }, - "/settings": { - "filePath": "settings.tsx" - }, - "/usage": { - "filePath": "usage.tsx" - }, - "/waitlist": { - "filePath": "waitlist.tsx" - }, - "/auth/sign-in": { - "filePath": "auth/sign-in.tsx" - }, - "/auth/sign-up": { - "filePath": "auth/sign-up.tsx" - }, - "/analytics/": { - "filePath": "analytics/index.tsx" - }, - "/machines/": { - "filePath": "machines/index.tsx" - }, - "/organization-profile/": { - "filePath": "organization-profile/index.tsx" - }, - "/sessions/": { - "filePath": "sessions/index.tsx" - }, - "/workflows/": { - "filePath": "workflows/index.tsx" - }, - "/machines/$machineId/$machineVersionId": { - "filePath": "machines/$machineId/$machineVersionId.tsx" - }, - "/machines/$machineId/activity": { - "filePath": "machines/$machineId/activity.tsx" - }, - "/machines/$machineId/files": { - "filePath": "machines/$machineId/files.tsx" - }, - "/share/$user/$slug": { - "filePath": "share/$user/$slug.tsx" - }, - "/workflows/$workflowId/$view": { - "filePath": "workflows/$workflowId/$view.tsx" - }, - "/machines/$machineId/": { - "filePath": "machines/$machineId/index.tsx" - }, - "/organization-profile/organization-members/": { - "filePath": "organization-profile/organization-members/index.tsx" - }, - "/sessions/$sessionId/": { - "filePath": "sessions/$sessionId/index.tsx" - }, - "/share/playground/$user/$slug": { - "filePath": "share/playground/$user/$slug.tsx" - }, - "/share/workflow/$user/$slug": { - "filePath": "share/workflow/$user/$slug.tsx" - }, - "/auth/request/$requestId/": { - "filePath": "auth/request/$requestId/index.tsx" - }, - "/machines/$machineId/history/": { - "filePath": "machines/$machineId/history/index.tsx" - } - } -} -ROUTE_MANIFEST_END */