Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
logfile
Vasek Mlejnskyd78012e350c1
diff --git a/components/DashboardHome.tsx b/components/DashboardHome.tsxindex cdd2820e5..3f8e3a478 100644--- a/components/DashboardHome.tsx+++ b/components/DashboardHome.tsx@@ -24,6 +24,8 @@ function DashboardHome({const selectedAgentInstanceID = router.query.projectID as string | undefinedconst selectedLogFileID = router.query.fileID as string | undefined+ console.log({ router })+async function signOut() {await supabaseClient.auth.signOut()posthog?.reset(true)diff --git a/components/Sidebar/DashboardDesktopSidebar.tsx b/components/Sidebar/DashboardDesktopSidebar.tsxindex 2870ef68a..80ecc44d8 100644--- a/components/Sidebar/DashboardDesktopSidebar.tsx+++ b/components/Sidebar/DashboardDesktopSidebar.tsx@@ -16,6 +16,7 @@ function DashboardDesktopSidebar({const router = useRouter()const view = router.query.view as string | undefinedconst isOnRunDetail = router.pathname.startsWith('/deployed/[projectID]/run/[runID]')+ const isOnLogDetail = router.pathname.startsWith('/log/[logFileID]')return (<div className="hidden xl:fixed xl:inset-y-0 xl:z-50 xl:flex xl:w-72 xl:flex-col">@@ -41,7 +42,7 @@ function DashboardDesktopSidebar({<Linkhref={`/?view=${item.view}`}className={clsx(- item.view === view || (isOnRunDetail && item.view === 'runs')+ item.view === view || (isOnRunDetail && item.view === 'runs') || (isOnLogDetail && item.view === 'logs')? 'bg-[#1F2437] text-white': 'text-gray-400 hover:text-white hover:bg-[#1F2437]','group gap-x-3 rounded-md px-2 py-1 text-sm leading-6 font-semibold flex items-center'diff --git a/components/Sidebar/DashboardMobileSidebar.tsx b/components/Sidebar/DashboardMobileSidebar.tsxindex bb50016f1..f4391db1b 100644--- a/components/Sidebar/DashboardMobileSidebar.tsx+++ b/components/Sidebar/DashboardMobileSidebar.tsx@@ -25,6 +25,7 @@ function DashboardMobileSidebar({const router = useRouter()const view = router.query.view as string | undefinedconst isOnRunDetail = router.pathname.startsWith('/deployed/[projectID]/run/[runID]')+ const isOnLogDetail = router.pathname.startsWith('/log/[logFileID]')return (<Transition.Root show={isSidebarOpen} as={Fragment}>@@ -87,7 +88,7 @@ function DashboardMobileSidebar({<Linkhref={`/?view=${item.view}`}className={clsx(- item.view === view || (isOnRunDetail && item.view === 'runs')+ item.view === view || (isOnRunDetail && item.view === 'runs') || (isOnLogDetail && item.view === 'logs')? 'bg-gray-800 text-white': 'text-gray-400 hover:text-white hover:bg-gray-800','group gap-x-3 rounded-md px-2 py-1 text-sm leading-6 font-semibold flex items-center'diff --git a/pages/log/[logFileID].tsx b/pages/log/[logFileID].tsxindex 3bf26ba5b..7f3502ee3 100644--- a/pages/log/[logFileID].tsx+++ b/pages/log/[logFileID].tsx@@ -18,6 +18,21 @@ function LogFile() {<h1 className="text-2xl font-semibold leading-7 text-white">Logs</h1></header>+ <div className="flex flex-col space-y-4">+ {logFile.content.functions.map(fn => (+ <div key={logFile.id} className="shadow overflow-hidden sm:rounded-md">+ {fn.name}+ </div>+ ))}+ </div>++ <div className="flex flex-col space-y-4">+ {logFile.content.context.map(ctx => (+ <div key={logFile.id} className="shadow overflow-hidden sm:rounded-md">+ {ctx.role}+ </div>+ ))}+ </div></main>)}diff --git a/utils/agentLogs.ts b/utils/agentLogs.tsindex 9529579bf..227ba609c 100644--- a/utils/agentLogs.ts+++ b/utils/agentLogs.ts@@ -10,11 +10,13 @@ export interface LogFile {export interface AgentLogs {context: (SystemContext | UserContext | AssistantContext)[]- functions: {- name: string- description?: string- parameters: { [key: string]: any }- }+ functions: AgentFunction[]+}++export interface AgentFunction {+ name: string+ description?: string+ parameters: { [key: string]: any }}export interface SystemContext {