Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Generate project id explicitly
Tomas Valentaddac1420a8a6
diff --git a/components/Repos.tsx b/components/Repos.tsxindex 2d7b03841..f4be8ae9e 100644--- a/components/Repos.tsx+++ b/components/Repos.tsx@@ -201,7 +201,7 @@ function Repos({ onRepoSelection }: Props) {}</div>{<Button- onClick={() => createEmptyRepository('new-repo-name')}+ onClick={() => createEmptyRepository('test')}text="Create Empty Repository"/>}{accessToken &&diff --git a/pages/api/agent.ts b/pages/api/agent.tsindex 3ffb1eb40..dab26d42c 100644--- a/pages/api/agent.ts+++ b/pages/api/agent.ts@@ -6,6 +6,7 @@ import { serverCreds } from 'db/credentials'import { PostAgentBody } from 'pages/agent/smol-developer/setup'import { getGHInstallationClient } from 'github/installationClient'import { createAgentDeployment, createPR, getGHAccessToken, getGHAppInfo, triggerSmolDevAgentRun } from 'github/pullRequest'+import { nanoid } from 'nanoid'async function postAgent(req: NextApiRequest, res: NextApiResponse) {const {@@ -75,6 +76,7 @@ async function postAgent(req: NextApiRequest, res: NextApiResponse) {const project = await prisma.projects.create({data: {+ id: nanoid(),deployments: {create: {auth: {