MCPcopy Create free account
hub / github.com/anus-dev/ANUS / handleSelect

Function handleSelect

packages/cli/src/ui/components/ShellConfirmationDialog.tsx:45–53  ·  view source on GitHub ↗
(item: ToolConfirmationOutcome)

Source from the content-addressed store, hash-verified

43 );
44
45 const handleSelect = (item: ToolConfirmationOutcome) => {
46 if (item === ToolConfirmationOutcome.Cancel) {
47 onConfirm(item);
48 } else {
49 // For both ProceedOnce and ProceedAlways, we approve all the
50 // commands that were requested.
51 onConfirm(item, commands);
52 }
53 };
54
55 const options: Array<RadioSelectItem<ToolConfirmationOutcome>> = [
56 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected