MCPcopy
hub / github.com/codeaashu/claude-code / It2SetupPrompt

Function It2SetupPrompt

src/utils/swarm/It2SetupPrompt.tsx:16–376  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

14 tmuxAvailable: boolean;
15};
16export function It2SetupPrompt(t0) {
17 const $ = _c(44);
18 const {
19 onDone,
20 tmuxAvailable
21 } = t0;
22 const [step, setStep] = useState("initial");
23 const [packageManager, setPackageManager] = useState(null);
24 const [error, setError] = useState(null);
25 const exitState = useExitOnCtrlCDWithKeybindings();
26 let t1;
27 let t2;
28 if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
29 t1 = () => {
30 detectPythonPackageManager().then(pm => {
31 setPackageManager(pm);
32 });
33 };
34 t2 = [];
35 $[0] = t1;
36 $[1] = t2;
37 } else {
38 t1 = $[0];
39 t2 = $[1];
40 }
41 useEffect(t1, t2);
42 let t3;
43 if ($[2] !== onDone) {
44 t3 = () => {
45 onDone("cancelled");
46 };
47 $[2] = onDone;
48 $[3] = t3;
49 } else {
50 t3 = $[3];
51 }
52 const handleCancel = t3;
53 const t4 = step !== "installing" && step !== "verifying";
54 let t5;
55 if ($[4] !== t4) {
56 t5 = {
57 context: "Confirmation",
58 isActive: t4
59 };
60 $[4] = t4;
61 $[5] = t5;
62 } else {
63 t5 = $[5];
64 }
65 useKeybinding("confirm:no", handleCancel, t5);
66 let t6;
67 if ($[6] !== onDone || $[7] !== step) {
68 t6 = (_input, key) => {
69 if (step === "api-instructions" && key.return) {
70 setStep("verifying");
71 verifyIt2Setup().then(result => {
72 if (result.success) {
73 markIt2SetupComplete();

Callers

nothing calls this directly

Calls 11

useKeybindingFunction · 0.85
setStepFunction · 0.85
verifyIt2SetupFunction · 0.85
markIt2SetupCompleteFunction · 0.85
useInputFunction · 0.85
installIt2Function · 0.85
setPreferTmuxOverIterm2Function · 0.85
renderContentFunction · 0.85
onDoneFunction · 0.50

Tested by

no test coverage detected