Initial commit

Signed-off-by: Ilan Bigio <ilan@openai.com>
This commit is contained in:
Ilan Bigio
2025-04-16 12:56:08 -04:00
commit 59a180ddec
163 changed files with 30587 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
// @ts-expect-error select.js is JavaScript and has no types
import { Select } from "../vendor/ink-select/select";
import { Box, Text } from "ink";
import React from "react";
import { AutoApprovalMode } from "src/utils/auto-approval-mode";
// TODO: figure out why `cli-spinners` fails on Node v20.9.0
// which is why we have to do this in the first place
export function OnboardingApprovalMode(): React.ReactElement {
return (
<Box>
<Text>Choose what you want to have to approve:</Text>
<Select
onChange={() => {}}
// onChange={(value: ReviewDecision) => onReviewCommand(value)}
options={[
{
label: "Auto-approve file reads, but ask me for edits and commands",
value: AutoApprovalMode.SUGGEST,
},
{
label: "Auto-approve file reads and edits, but ask me for commands",
value: AutoApprovalMode.AUTO_EDIT,
},
{
label:
"Auto-approve file reads, edits, and running commands network-disabled",
value: AutoApprovalMode.FULL_AUTO,
},
]}
/>
</Box>
);
}