MCPcopy Create free account
hub / github.com/codeaashu/claude-code / PlanDisplay

Function PlanDisplay

src/commands/plan/plan.tsx:14–63  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

12import { editFileInEditor } from '../../utils/promptEditor.js';
13import { renderToString } from '../../utils/staticRender.js';
14function PlanDisplay(t0) {
15 const $ = _c(11);
16 const {
17 planContent,
18 planPath,
19 editorName
20 } = t0;
21 let t1;
22 if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
23 t1 = <Text bold={true}>Current Plan</Text>;
24 $[0] = t1;
25 } else {
26 t1 = $[0];
27 }
28 let t2;
29 if ($[1] !== planPath) {
30 t2 = <Text dimColor={true}>{planPath}</Text>;
31 $[1] = planPath;
32 $[2] = t2;
33 } else {
34 t2 = $[2];
35 }
36 let t3;
37 if ($[3] !== planContent) {
38 t3 = <Box marginTop={1}><Text>{planContent}</Text></Box>;
39 $[3] = planContent;
40 $[4] = t3;
41 } else {
42 t3 = $[4];
43 }
44 let t4;
45 if ($[5] !== editorName) {
46 t4 = editorName && <Box marginTop={1}><Text dimColor={true}>"/plan open"</Text><Text dimColor={true}> to edit this plan in </Text><Text bold={true} dimColor={true}>{editorName}</Text></Box>;
47 $[5] = editorName;
48 $[6] = t4;
49 } else {
50 t4 = $[6];
51 }
52 let t5;
53 if ($[7] !== t2 || $[8] !== t3 || $[9] !== t4) {
54 t5 = <Box flexDirection="column">{t1}{t2}{t3}{t4}</Box>;
55 $[7] = t2;
56 $[8] = t3;
57 $[9] = t4;
58 $[10] = t5;
59 } else {
60 t5 = $[10];
61 }
62 return t5;
63}
64export async function call(onDone: LocalJSXCommandOnDone, context: LocalJSXCommandContext, args: string): Promise<React.ReactNode> {
65 const {
66 getAppState,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected