Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Add additional info when uploading dirs

Tomas Valenta30ae5edccc31
diff --git a/components/AgentLogFilesList.tsx b/components/AgentLogFilesList.tsx
index 3f681d9bd..c33ab6fb8 100644
--- a/components/AgentLogFilesList.tsx
+++ b/components/AgentLogFilesList.tsx
@@ -48,16 +48,15 @@ function AgentLogFilesList({
filename: file.name,
content,
metadata: {
+ relativePath: file.webkitRelativePath,
size: file.size,
type: file.type,
timestamp: file.lastModified,
}
})
}
-
- const logEntry = await uploadFiles(logFiles, {})
-
- // Reload to refresh the list of
+ await uploadFiles(logFiles, {})
+ // Reload to refresh the list of log files
router.reload()
}
diff --git a/utils/agentLogs.ts b/utils/agentLogs.ts
index 48a292a9a..b565b5e64 100644
--- a/utils/agentLogs.ts
+++ b/utils/agentLogs.ts
@@ -1,10 +1,11 @@
export interface RawFileLog {
filename: string
content: string
- metadata?: {
+ metadata: {
size: number,
type: string,
timestamp: number,
+ relativePath: string,
}
}