mirror of
https://github.com/openai/codex.git
synced 2026-05-04 11:26:33 +00:00
18
codex-cli/src/utils/agent/review.ts
Normal file
18
codex-cli/src/utils/agent/review.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import type { SafeCommandReason } from "@lib/approvals";
|
||||
|
||||
export type CommandReviewDetails = {
|
||||
cmd: Array<string>;
|
||||
cmdReadableText: string;
|
||||
autoApproval: SafeCommandReason | null;
|
||||
};
|
||||
|
||||
export enum ReviewDecision {
|
||||
YES = "yes",
|
||||
NO_CONTINUE = "no-continue",
|
||||
NO_EXIT = "no-exit",
|
||||
/**
|
||||
* User has approved this command and wants to automatically approve any
|
||||
* future identical instances for the remainder of the session.
|
||||
*/
|
||||
ALWAYS = "always",
|
||||
}
|
||||
Reference in New Issue
Block a user