The Open Framework for Building Agents
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 } } : {},
);