Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

394 B
Raw Blame
import git from "eve/extensions/git";

import { brokerGitHubLease, GITHUB_CONNECTOR } from "../lib/github";

const org = process.env.GITHUB_ORG;

// Without GITHUB_ORG the agent still edits and runs code in its sandbox,
// but there is no `git__gh` tool and no GitHub credentials.
export default git(
  org ? { github: { connector: GITHUB_CONNECTOR, org, broker: brokerGitHubLease } } : {},
);