cc-viewer 1.6.163 → 1.6.165

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/concepts/en/UltraPlan.md +83 -0
  2. package/concepts/zh/UltraPlan.md +83 -0
  3. package/dist/assets/{App-4uEHTh1y.js → App-DebEf9J2.js} +13 -13
  4. package/dist/assets/{AppHeader-DslPf_SB.css → AppHeader-CISkv2M7.css} +2 -2
  5. package/dist/assets/{AppHeader.module-CHZgRykV.js → AppHeader.module-B-aJ8184.js} +177 -173
  6. package/dist/assets/{Mobile-XsukuRtW.js → Mobile-DrCvziI5.js} +1 -1
  7. package/dist/assets/{_baseUniq-Dzy6DdL8.js → _baseUniq-CK_yAxVc.js} +1 -1
  8. package/dist/assets/{arc-CxaDycRX.js → arc-dbFCOUPc.js} +1 -1
  9. package/dist/assets/{architectureDiagram-Q4EWVU46-DVyXGknB.js → architectureDiagram-Q4EWVU46-DhwVY6_P.js} +1 -1
  10. package/dist/assets/{blockDiagram-DXYQGD6D-sMtN8HU-.js → blockDiagram-DXYQGD6D-B5XMCDFJ.js} +1 -1
  11. package/dist/assets/{c4Diagram-AHTNJAMY-jBU1OGHi.js → c4Diagram-AHTNJAMY-BvYIXTYl.js} +1 -1
  12. package/dist/assets/channel-B5dSSLop.js +1 -0
  13. package/dist/assets/{chunk-4BX2VUAB-CqT9gNTu.js → chunk-4BX2VUAB-Dm3h5scI.js} +1 -1
  14. package/dist/assets/{chunk-4TB4RGXK-gEDvKCiX.js → chunk-4TB4RGXK-B6EltpxC.js} +1 -1
  15. package/dist/assets/{chunk-55IACEB6-D5lBfq8I.js → chunk-55IACEB6-CRHTIWOI.js} +1 -1
  16. package/dist/assets/{chunk-EDXVE4YY-CoCOMCdS.js → chunk-EDXVE4YY-BxxnOioL.js} +1 -1
  17. package/dist/assets/{chunk-FMBD7UC4-DkoxCjCw.js → chunk-FMBD7UC4-BXKUh_F0.js} +1 -1
  18. package/dist/assets/{chunk-OYMX7WX6-DYlwNLfj.js → chunk-OYMX7WX6--rs5apeA.js} +1 -1
  19. package/dist/assets/{chunk-QZHKN3VN-BA5lY01R.js → chunk-QZHKN3VN-CMvyg3LK.js} +1 -1
  20. package/dist/assets/{chunk-YZCP3GAM-DykT3GT-.js → chunk-YZCP3GAM-ChSrzxHO.js} +1 -1
  21. package/dist/assets/classDiagram-6PBFFD2Q-oS714Y8I.js +1 -0
  22. package/dist/assets/classDiagram-v2-HSJHXN6E-oS714Y8I.js +1 -0
  23. package/dist/assets/clone-BzByxXjS.js +1 -0
  24. package/dist/assets/{cose-bilkent-S5V4N54A-C1vqlOhl.js → cose-bilkent-S5V4N54A-CdeVcSww.js} +1 -1
  25. package/dist/assets/{dagre-KV5264BT-DrXDhfX_.js → dagre-KV5264BT-CV2RJede.js} +1 -1
  26. package/dist/assets/{diagram-5BDNPKRD-DKvb-WzX.js → diagram-5BDNPKRD-KtTS6Dv8.js} +1 -1
  27. package/dist/assets/{diagram-G4DWMVQ6-AH-N8LBU.js → diagram-G4DWMVQ6-Wo29pMDI.js} +1 -1
  28. package/dist/assets/{diagram-MMDJMWI5-C-vt7lYz.js → diagram-MMDJMWI5-DSe9zXME.js} +1 -1
  29. package/dist/assets/{diagram-TYMM5635-CD1zw2Cq.js → diagram-TYMM5635-rN5lg1Kv.js} +1 -1
  30. package/dist/assets/{erDiagram-SMLLAGMA-D3Ad--0r.js → erDiagram-SMLLAGMA--PE7w-a_.js} +1 -1
  31. package/dist/assets/{flowDiagram-DWJPFMVM-8xCuKQjI.js → flowDiagram-DWJPFMVM-DBXWQFz1.js} +1 -1
  32. package/dist/assets/{ganttDiagram-T4ZO3ILL-WVyHQlvU.js → ganttDiagram-T4ZO3ILL-Ft-VH2YV.js} +1 -1
  33. package/dist/assets/{gitGraphDiagram-UUTBAWPF-B89E8Tub.js → gitGraphDiagram-UUTBAWPF-ZOnk2DWw.js} +1 -1
  34. package/dist/assets/{graph-s-O4hTJz.js → graph-BbEgpCO8.js} +1 -1
  35. package/dist/assets/{index-y3z4Tm7X.js → index-yutU1kB9.js} +2 -2
  36. package/dist/assets/{infoDiagram-42DDH7IO-DlX-Hh-G.js → infoDiagram-42DDH7IO-CpNH11Yk.js} +1 -1
  37. package/dist/assets/{ishikawaDiagram-UXIWVN3A-D0cFRBjb.js → ishikawaDiagram-UXIWVN3A-D9qBxTcy.js} +1 -1
  38. package/dist/assets/{journeyDiagram-VCZTEJTY-DIiTUCBs.js → journeyDiagram-VCZTEJTY-Cga9m8xM.js} +1 -1
  39. package/dist/assets/{kanban-definition-6JOO6SKY-mL0yLNe4.js → kanban-definition-6JOO6SKY-cvP919Zg.js} +1 -1
  40. package/dist/assets/{layout-BkLNPba6.js → layout-D8fAQhiF.js} +1 -1
  41. package/dist/assets/{linear-db0BI9uX.js → linear-h0ahe7Yu.js} +1 -1
  42. package/dist/assets/{mermaid.core-DKVBmd6R.js → mermaid.core-CSddTuFV.js} +4 -4
  43. package/dist/assets/{min-DFhbRZYv.js → min-DRYaTtuW.js} +1 -1
  44. package/dist/assets/{mindmap-definition-QFDTVHPH-Bp2V7Bp-.js → mindmap-definition-QFDTVHPH-yGM7QDMp.js} +1 -1
  45. package/dist/assets/{pieDiagram-DEJITSTG-BgkPj9j0.js → pieDiagram-DEJITSTG-C_GFe_7P.js} +1 -1
  46. package/dist/assets/{quadrantDiagram-34T5L4WZ-CH7FJqzu.js → quadrantDiagram-34T5L4WZ-D1EUaKIY.js} +1 -1
  47. package/dist/assets/{requirementDiagram-MS252O5E-C6GKfxIW.js → requirementDiagram-MS252O5E-B0G9XGnc.js} +1 -1
  48. package/dist/assets/{sankeyDiagram-XADWPNL6-7OFTk6h0.js → sankeyDiagram-XADWPNL6-C_DDtUWH.js} +1 -1
  49. package/dist/assets/{sequenceDiagram-FGHM5R23-BBHd6Roz.js → sequenceDiagram-FGHM5R23-D8_LfIKq.js} +1 -1
  50. package/dist/assets/{stateDiagram-FHFEXIEX-C4jxYEWI.js → stateDiagram-FHFEXIEX-CJSq5UOp.js} +1 -1
  51. package/dist/assets/stateDiagram-v2-QKLJ7IA2-DPu4CkzU.js +1 -0
  52. package/dist/assets/{timeline-definition-GMOUNBTQ-BeJhkmhS.js → timeline-definition-GMOUNBTQ-DLuocv8p.js} +1 -1
  53. package/dist/assets/{vennDiagram-DHZGUBPP-CghLw0Wg.js → vennDiagram-DHZGUBPP-C7DWHkBs.js} +1 -1
  54. package/dist/assets/{wardley-RL74JXVD-CdhfbqIl.js → wardley-RL74JXVD-Dcl_dmX0.js} +1 -1
  55. package/dist/assets/{wardleyDiagram-NUSXRM2D-opG39lgG.js → wardleyDiagram-NUSXRM2D-BTNp-Km5.js} +1 -1
  56. package/dist/assets/{xychartDiagram-5P7HB3ND-DeLFI_Od.js → xychartDiagram-5P7HB3ND-vbJdTW8_.js} +1 -1
  57. package/dist/index.html +1 -1
  58. package/findcc.js +25 -5
  59. package/lib/git-diff.js +48 -2
  60. package/package.json +1 -1
  61. package/server.js +15 -2
  62. package/dist/assets/channel-2P_xRcqA.js +0 -1
  63. package/dist/assets/classDiagram-6PBFFD2Q-BjRHpJ9a.js +0 -1
  64. package/dist/assets/classDiagram-v2-HSJHXN6E-BjRHpJ9a.js +0 -1
  65. package/dist/assets/clone-1RIOio5-.js +0 -1
  66. package/dist/assets/stateDiagram-v2-QKLJ7IA2-CiUlFMjy.js +0 -1
@@ -53,3 +53,86 @@ A multi-agent collaboration workflow designed for research and analysis tasks:
53
53
  4. Synthesize all agent findings into a comprehensive implementation plan
54
54
  5. Deploy multiple review agents to scrutinize the plan from different roles and perspectives
55
55
  6. Execute the plan once approved
56
+
57
+ ---
58
+
59
+ ## Raw Templates
60
+
61
+ Below are the two raw prompt templates UltraPlan actually sends to Claude Code (see `src/utils/ultraplanTemplates.js`):
62
+
63
+ ### Code Expert (codeExpert)
64
+
65
+ <textarea readonly><system-reminder>
66
+ [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.
67
+
68
+ Leverage a multi-agent exploration mechanism to formulate a highly detailed implementation plan.
69
+
70
+ Instructions:
71
+ 1. Use the Agent tool to spawn parallel agents to simultaneously explore different aspects of the codebase:
72
+ - If necessary, designate a preliminary investigator to use `webSearch` to first research advanced solutions within the relevant industry domain;
73
+ - One agent responsible for understanding the relevant existing code and architecture;
74
+ - One agent responsible for identifying all files requiring modification;
75
+ - One agent responsible for identifying potential risks, edge cases, and dependencies;
76
+ - You may add other roles or deploy additional agents beyond the three defined above; the maximum limit for concurrently scheduled agents is 5.
77
+
78
+ 2. Synthesize the findings from the aforementioned agents into a detailed, step-by-step implementation plan.
79
+
80
+ 3. Use the Agent tool to spawn a review agent to scrutinize the plan from various perspectives, checking for any omitted steps, potential risks, or corresponding mitigation strategies.
81
+
82
+ 4. Incorporate the feedback from the review process, then invoke `ExitPlanMode` to submit your final plan.
83
+
84
+ 5. Once `ExitPlanMode` returns a result:
85
+ - If approved: Proceed to execute the plan within this session.
86
+ - If rejected: Revise the plan based on the feedback provided, and invoke `ExitPlanMode` again.
87
+ - If an error occurs (including the message "Not in Plan Mode"): Do *not* follow the suggestions provided by the error message; instead, prompt the user for further instructions.
88
+
89
+ Your final plan must include the following elements:
90
+ - A clear summary of the implementation strategy;
91
+ - An ordered list of files to be created or modified, specifying the exact changes required for each;
92
+ - A step-by-step sequence for execution;
93
+ - Testing and verification procedures;
94
+ - Potential risks and their corresponding mitigation strategies.
95
+
96
+ 6. Upon the successful completion of the final plan's execution:
97
+ If code changes have been made and the project is Git-based, invoke `TeamCreate` to assemble a "Code Review Team." The team's objective is to analyze the current Git change log and validate the modifications from various perspectives and roles, specifically to:
98
+ - Confirm that the original requirements and objectives have been met;
99
+ - Review any newly added code for potential side effects or regressions that might disrupt existing functionality;
100
+ - Review the implemented code for any oversights or errors.
101
+ Once the review report is generated, analyze it to formulate a set of recommended modifications; proceed to implement these recommended modifications by default.
102
+ </system-reminder></textarea>
103
+
104
+ ### Research Expert (researchExpert)
105
+
106
+ <textarea readonly><system-reminder>
107
+ [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.
108
+
109
+ Leverage a multi-agent exploration mechanism to formulate an exceptionally detailed implementation plan.
110
+
111
+ Instructions:
112
+ 1. Utilize the Agent tool to spawn parallel agents that simultaneously explore various facets of the requirements:
113
+ - If necessary, deploy a preliminary investigator to conduct an initial survey of industry-specific solutions using `webSearch`;
114
+ - If necessary, deploy a specialized investigator to research authoritative sources—such as academic papers, news articles, and research reports—using `webSearch`;
115
+ - Assign an agent to synthesize the target solution, while simultaneously verifying the rigor and credibility of the gathered papers, news, and research reports;
116
+ - If necessary, assign an agent to analyze competitor data to provide supplementary analytical perspectives;
117
+ - If necessary, assign an agent to handle the implementation of a product demo (generating outputs such as HTML, Markdown, etc.);
118
+ - If the task is sufficiently complex, you may assign additional teammates to the roles defined above, or introduce other specialized roles; you are permitted to schedule up to 5 teammates concurrently.
119
+
120
+ 2. Synthesize the findings from the aforementioned agents into a comprehensive, step-by-step implementation plan.
121
+
122
+ 3. Utilize the Agent tool to spawn a set of parallel review agents; these agents shall scrutinize the plan from multiple roles and perspectives to identify any omitted steps and to propose reasonable additions or optimizations.
123
+
124
+ 4. Consolidate the feedback received from the review agents, then invoke `ExitPlanMode` to submit your final plan.
125
+
126
+ 5. Upon receiving the result from `ExitPlanMode`:
127
+ - If Approved: Proceed to execute the plan within this current session.
128
+ - If Rejected: Revise the plan based on the provided feedback, and then invoke `ExitPlanMode` once again.
129
+ - If an Error Occurs (including the message "Not in Plan Mode"): Do *not* follow the suggestions provided by the error message; instead, prompt the user for further instructions.
130
+
131
+ Your final plan must include the following elements:
132
+ - A clear summary of the proposed implementation strategy;
133
+ - An ordered list of files to be created or modified, specifying the exact changes required for each;
134
+ - A step-by-step sequence for executing the implementation;
135
+ - Identification of potential risks and corresponding mitigation strategies;
136
+ - Creative ideation and suggestions for advanced enhancements;
137
+ - If a product demo was generated, place the corresponding demo output in an appropriate location and notify the user.
138
+ </system-reminder></textarea>
@@ -53,3 +53,86 @@ UltraPlan 提供两个专家角色,针对不同类型的任务:
53
53
  4. 综合所有代理发现,生成详细的实施计划
54
54
  5. 派遣多个审查代理从不同角色和视角审查计划
55
55
  6. 计划获批后执行实施
56
+
57
+ ---
58
+
59
+ ## 原文
60
+
61
+ 以下是 UltraPlan 实际发送给 Claude Code 的两段提示词原文(见 `src/utils/ultraplanTemplates.js`):
62
+
63
+ ### 代码专家(codeExpert)
64
+
65
+ <textarea readonly><system-reminder>
66
+ [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.
67
+
68
+ Leverage a multi-agent exploration mechanism to formulate a highly detailed implementation plan.
69
+
70
+ Instructions:
71
+ 1. Use the Agent tool to spawn parallel agents to simultaneously explore different aspects of the codebase:
72
+ - If necessary, designate a preliminary investigator to use `webSearch` to first research advanced solutions within the relevant industry domain;
73
+ - One agent responsible for understanding the relevant existing code and architecture;
74
+ - One agent responsible for identifying all files requiring modification;
75
+ - One agent responsible for identifying potential risks, edge cases, and dependencies;
76
+ - You may add other roles or deploy additional agents beyond the three defined above; the maximum limit for concurrently scheduled agents is 5.
77
+
78
+ 2. Synthesize the findings from the aforementioned agents into a detailed, step-by-step implementation plan.
79
+
80
+ 3. Use the Agent tool to spawn a review agent to scrutinize the plan from various perspectives, checking for any omitted steps, potential risks, or corresponding mitigation strategies.
81
+
82
+ 4. Incorporate the feedback from the review process, then invoke `ExitPlanMode` to submit your final plan.
83
+
84
+ 5. Once `ExitPlanMode` returns a result:
85
+ - If approved: Proceed to execute the plan within this session.
86
+ - If rejected: Revise the plan based on the feedback provided, and invoke `ExitPlanMode` again.
87
+ - If an error occurs (including the message "Not in Plan Mode"): Do *not* follow the suggestions provided by the error message; instead, prompt the user for further instructions.
88
+
89
+ Your final plan must include the following elements:
90
+ - A clear summary of the implementation strategy;
91
+ - An ordered list of files to be created or modified, specifying the exact changes required for each;
92
+ - A step-by-step sequence for execution;
93
+ - Testing and verification procedures;
94
+ - Potential risks and their corresponding mitigation strategies.
95
+
96
+ 6. Upon the successful completion of the final plan's execution:
97
+ If code changes have been made and the project is Git-based, invoke `TeamCreate` to assemble a "Code Review Team." The team's objective is to analyze the current Git change log and validate the modifications from various perspectives and roles, specifically to:
98
+ - Confirm that the original requirements and objectives have been met;
99
+ - Review any newly added code for potential side effects or regressions that might disrupt existing functionality;
100
+ - Review the implemented code for any oversights or errors.
101
+ Once the review report is generated, analyze it to formulate a set of recommended modifications; proceed to implement these recommended modifications by default.
102
+ </system-reminder></textarea>
103
+
104
+ ### 调研专家(researchExpert)
105
+
106
+ <textarea readonly><system-reminder>
107
+ [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.
108
+
109
+ Leverage a multi-agent exploration mechanism to formulate an exceptionally detailed implementation plan.
110
+
111
+ Instructions:
112
+ 1. Utilize the Agent tool to spawn parallel agents that simultaneously explore various facets of the requirements:
113
+ - If necessary, deploy a preliminary investigator to conduct an initial survey of industry-specific solutions using `webSearch`;
114
+ - If necessary, deploy a specialized investigator to research authoritative sources—such as academic papers, news articles, and research reports—using `webSearch`;
115
+ - Assign an agent to synthesize the target solution, while simultaneously verifying the rigor and credibility of the gathered papers, news, and research reports;
116
+ - If necessary, assign an agent to analyze competitor data to provide supplementary analytical perspectives;
117
+ - If necessary, assign an agent to handle the implementation of a product demo (generating outputs such as HTML, Markdown, etc.);
118
+ - If the task is sufficiently complex, you may assign additional teammates to the roles defined above, or introduce other specialized roles; you are permitted to schedule up to 5 teammates concurrently.
119
+
120
+ 2. Synthesize the findings from the aforementioned agents into a comprehensive, step-by-step implementation plan.
121
+
122
+ 3. Utilize the Agent tool to spawn a set of parallel review agents; these agents shall scrutinize the plan from multiple roles and perspectives to identify any omitted steps and to propose reasonable additions or optimizations.
123
+
124
+ 4. Consolidate the feedback received from the review agents, then invoke `ExitPlanMode` to submit your final plan.
125
+
126
+ 5. Upon receiving the result from `ExitPlanMode`:
127
+ - If Approved: Proceed to execute the plan within this current session.
128
+ - If Rejected: Revise the plan based on the provided feedback, and then invoke `ExitPlanMode` once again.
129
+ - If an Error Occurs (including the message "Not in Plan Mode"): Do *not* follow the suggestions provided by the error message; instead, prompt the user for further instructions.
130
+
131
+ Your final plan must include the following elements:
132
+ - A clear summary of the proposed implementation strategy;
133
+ - An ordered list of files to be created or modified, specifying the exact changes required for each;
134
+ - A step-by-step sequence for executing the implementation;
135
+ - Identification of potential risks and corresponding mitigation strategies;
136
+ - Creative ideation and suggestions for advanced enhancements;
137
+ - If a product demo was generated, place the corresponding demo output in an appropriate location and notify the user.
138
+ </system-reminder></textarea>