MCPcopy Index your code
hub / github.com/codeaashu/claude-code / renderInitialPrompt

Function renderInitialPrompt

src/utils/swarm/It2SetupPrompt.tsx:170–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168 }
169 };
170 function renderInitialPrompt() {
171 const options = [{
172 label: "Install it2 now",
173 value: "install",
174 description: packageManager ? `Uses ${packageManager} to install the it2 CLI tool` : "Requires Python (uvx, pipx, or pip)"
175 }];
176 if (tmuxAvailable) {
177 options.push({
178 label: "Use tmux instead",
179 value: "tmux",
180 description: "Opens teammates in a separate tmux session"
181 });
182 }
183 options.push({
184 label: "Cancel",
185 value: "cancel",
186 description: "Skip teammate spawning for now"
187 });
188 return <Box flexDirection="column" gap={1}><Text>To use native iTerm2 split panes for teammates, you need the{" "}<Text bold={true}>it2</Text> CLI tool.</Text><Text dimColor={true}>This enables teammates to appear as split panes within your current window.</Text><Box marginTop={1}><Select options={options} onChange={value => {
189 bb61: switch (value) {
190 case "install":
191 {
192 handleInstall();
193 break bb61;
194 }
195 case "tmux":
196 {
197 handleUseTmux();
198 break bb61;
199 }
200 case "cancel":
201 {
202 onDone("cancelled");
203 }
204 }
205 }} onCancel={() => onDone("cancelled")} /></Box></Box>;
206 }
207 function renderInstalling() {
208 return <Box flexDirection="column" gap={1}><Box><Spinner /><Text> Installing it2 using {packageManager}…</Text></Box><Text dimColor={true}>This may take a moment.</Text></Box>;
209 }

Callers 1

renderContentFunction · 0.85

Calls 2

onDoneFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected