+
任务{" "}
{truncateIdentifier(
@@ -5188,7 +5194,7 @@ export function AiCadWorkbench() {
: "当前未记录 KCL 文件"}
-
+
{version.generationMode ===
"iterate"
? "这轮更接近官方当前的连续对话建模节奏,会沿着上一版结果继续推进,而不是把每次输入都当成全新项目。"
@@ -5208,10 +5214,10 @@ export function AiCadWorkbench() {
)}
-
+
) : (
-
-
+
+
-
+
建模画布
-
+
把中间区域收成更接近官方的大画布,预览优先,代码与对照放到下层。
{activeVersion ? (
-
+
V{activeVersion.versionNumber}
) : null}
@@ -5253,29 +5259,29 @@ export function AiCadWorkbench() {
-
-
+
+
视图环境
-
+
{viewerSettings.envPreset}
-
-
+
+
结果状态
-
+
{activeVersion
? getStatusLabel(activeVersion.status)
: "等待生成"}
-
-
+
+
输出文件
-
+
{activeDownloadEntries.length > 0
? activeDownloadEntries
.slice(0, 3)
@@ -5287,14 +5293,14 @@ export function AiCadWorkbench() {
{previewSourceVersion ? (
-
+
当前版本先返回了代码结果,右侧 3D 预览暂时沿用 V
{previewSourceVersion.versionNumber} 作为参考。
) : null}
{activeVersion && activeExecutionSummary ? (
-
+
-
+
-
+
执行摘要
-
+
{activeExecutionSummary}
@@ -5325,16 +5331,16 @@ export function AiCadWorkbench() {
}
value={activeResultTab}
>
-
+
3D 预览
@@ -5349,19 +5355,19 @@ export function AiCadWorkbench() {
>
{compareCandidateVersions.length > 0 ? (
-
+
-
-
+
+
双版本对照
-
+
优先推荐父版本、同层变体和当前链路上的近邻版本,方便直接比对这轮修改有没有偏离。
{compareVersion ? (
-
+
当前对照 V
{compareVersion.versionNumber}
@@ -5377,8 +5383,8 @@ export function AiCadWorkbench() {
"inline-flex items-center gap-2 rounded-full border px-3 py-1.5 text-xs transition",
version.id ===
compareVersion?.id
- ? "border-white/20 bg-[#2a2a2a] text-white"
- : "border-white/10 bg-white/6 text-white/72 hover:bg-white/10 hover:text-white"
+ ? "border-[#bfd9c9] bg-[#ecfbf2] text-[#173225]"
+ : "border-[#ddd7ca] bg-white text-[#5f594d] hover:bg-[#f4f1e8] hover:text-[#201c16]"
)}
key={`candidate-${version.id}`}
onClick={() =>
@@ -5411,27 +5417,27 @@ export function AiCadWorkbench() {
compareVersion && "xl:grid-cols-2"
)}
>
-
-
+
+
-
+
{activeVersion
? `当前版本 V${activeVersion.versionNumber}`
: "当前版本"}
-
+
当前工作焦点
{activeVersion ? (
-
+
{getStatusLabel(
activeVersion.status
)}
) : null}
-
+
{compareVersion ? (
-
-
+
+
-
+
对照版本 V
{compareVersion.versionNumber}
-
+
{compareVersion.parentVersionId ===
activeVersion?.id
? "这是当前版本向后派生出的子变体。"
@@ -5481,7 +5487,7 @@ export function AiCadWorkbench() {
)}
-
+
(
@@ -5535,18 +5541,18 @@ export function AiCadWorkbench() {
>
{compareVersion ? (
-
+
-
-
+
+
KCL 双版本对照
-
+
这里会并排显示当前版本和对照版本的代码结果,方便检查这轮连续迭代到底改动了哪些约束和结构表达。
@@ -5568,16 +5574,16 @@ export function AiCadWorkbench() {
{compareVersion ? (
-
+
新增 {codeDiffResult.summary.added}
-
+
删除 {codeDiffResult.summary.removed}
-
+
修改 {codeDiffResult.summary.changed}
-
+
未变 {codeDiffResult.summary.unchanged}
@@ -5585,17 +5591,17 @@ export function AiCadWorkbench() {
{compareVersion &&
semanticCodeDiffInsights.length > 0 ? (
-
+
-
-
+
+
设计语义摘要
{semanticCodeDiffInsights.map(
(insight) => (
{insight.shortLabel}{" "}
@@ -5605,7 +5611,7 @@ export function AiCadWorkbench() {
)}
-
+
这层摘要会优先把 KCL
里的差异翻译成更接近设计语言的改动方向,方便先判断本轮是不是在改你关心的结构。
@@ -5613,19 +5619,19 @@ export function AiCadWorkbench() {
{semanticCodeDiffInsights.map(
(insight) => (
-
+
{insight.label}
-
+
{insight.detail}
-
+
命中 {insight.count}
@@ -5634,7 +5640,7 @@ export function AiCadWorkbench() {
{insight.examples.map(
(example) => (
{example}
@@ -5655,11 +5661,11 @@ export function AiCadWorkbench() {
{codeDiffInsights.map((insight) => (
@@ -5668,7 +5674,7 @@ export function AiCadWorkbench() {
) : null}
{codeActionError ? (
-
+
{codeActionError}
) : null}
@@ -5710,15 +5716,15 @@ export function AiCadWorkbench() {
}
/>
) : (
-
-
+
+
-
+
{activeVersion
? `当前版本 V${activeVersion.versionNumber} KCL`
: "KCL 代码"}
-
+
{activeCodeLineCount > 0
? `当前共 ${activeCodeLineCount} 行。`
: "连续迭代返回的代码会优先显示在这里。"}
@@ -5728,7 +5734,7 @@ export function AiCadWorkbench() {
{activeCodeUrl ? (