Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Merge branch 'agent' into production
Tomas Valenta336576ebb569
diff --cc components/Repos.tsxindex 5e534f849,ed515d283..2d7b03841--- a/components/Repos.tsx+++ b/components/Repos.tsx@@@ -14,12 -14,19 +14,12 @@@ import TitleButton from 'components/Titimport Input from 'components/Input'import SpinnerIcon from 'components/Spinner'import { useLocalStorage } from 'hooks/useLocalStorage'- import { parseRepoName } from 'github/repo'+ import { createRepo, parseRepoName } from 'github/repo'-export interface PostProjectBody {+export interface RepoSetup {+ fullName: stringrepositoryID: numberinstallationID: number- accessToken: string- branch: string- path: string- id: string-}--export interface RepoSetup extends Pick<PostProjectBody, 'installationID' | 'repositoryID'> {- fullName: stringdefaultBranch: stringbranches?: string[]url: stringdiff --cc pages/agent/smol-developer/setup.tsxindex 6408c890d,ce038cb7b..c541e2230--- a/pages/agent/smol-developer/setup.tsx+++ b/pages/agent/smol-developer/setup.tsx@@@ -53,9 -35,27 +35,27 @@@ export interface PostAgentBodybranch: string// Commit message for the PR first empty commitcommitMessage: string- modelConfig: ModelConfig+ modelConfig: ModelConfig & { templateID: TemplateID }}+ export const getServerSideProps: GetServerSideProps = async (ctx) => {+ const supabase = createServerSupabaseClient(ctx, serverCreds)+ const {+ data: { session },+ } = await supabase.auth.getSession()++ if (!session) {+ return {+ redirect: {+ destination: '/agent/smol-developer',+ permanent: false,+ },+ }+ }++ return { props: {} }+ }+async function handlePostAgent(url: string, { arg }: { arg: PostAgentBody }) {return await fetch(url, {method: 'POST',