zen-gitsync 2.12.6 → 2.12.7

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 (27) hide show
  1. package/README.md +695 -695
  2. package/package.json +1 -1
  3. package/scripts/README_COLOR_CONVERTER.md +196 -196
  4. package/scripts/README_FONTSIZE_CONVERTER.md +278 -278
  5. package/scripts/README_SPACING_CONVERTER.md +126 -126
  6. package/scripts/README_STYLE_VARS.md +180 -180
  7. package/src/ui/public/assets/EditorView-DDyMmxPI.js +0 -0
  8. package/src/ui/public/assets/{EditorView-DEd8QuPp.css → EditorView-DK-Xgt7r.css} +1 -1
  9. package/src/ui/public/assets/SourceMapView-DakscAmd.js +3 -0
  10. package/src/ui/public/assets/{css.worker-Wv5dxAWO.js → css.worker-CvXBzhp8.js} +1 -1
  11. package/src/ui/public/assets/{html.worker-CQP8QQsS.js → html.worker-BO6WuOEO.js} +1 -1
  12. package/src/ui/public/assets/index-CPUqt5Ue.js +73 -0
  13. package/src/ui/public/assets/index-a-r8YYZJ.css +1 -0
  14. package/src/ui/public/assets/{json.worker-DzV-CpCQ.js → json.worker-BkJRGcCJ.js} +1 -1
  15. package/src/ui/public/assets/{ts.worker-Dth06zuC.js → ts.worker-B0J26iPs.js} +15 -15
  16. package/src/ui/public/assets/{vendor-BB71wW_m.js → vendor-BMFU1ekz.js} +249 -242
  17. package/src/ui/public/assets/vendor-BPPhhD0O.css +1 -0
  18. package/src/ui/public/favicon.svg +75 -75
  19. package/src/ui/public/index.html +22 -22
  20. package/src/ui/public/logo.svg +74 -74
  21. package/src/ui/public/assets/EditorView-CItjMDNe.js +0 -0
  22. package/src/ui/public/assets/SourceMapView-qlixRY_C.js +0 -3
  23. package/src/ui/public/assets/index-BFhllyJb.js +0 -73
  24. package/src/ui/public/assets/index-wBVvNuoD.css +0 -1
  25. package/src/ui/public/assets/vendor-B2yudN8R.css +0 -1
  26. /package/src/ui/public/assets/{editor.worker-Bd9IXS8d.js → editor.worker-Cn2oRESe.js} +0 -0
  27. /package/src/ui/public/assets/{rolldown-runtime-BM3Ffeng.js → rolldown-runtime-CMxvf4Kt.js} +0 -0
@@ -1,75 +1,75 @@
1
- <svg width="200" height="200" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
2
- <defs>
3
- <radialGradient id="bgGrad" cx="38%" cy="32%" r="70%">
4
- <stop offset="0%" stop-color="#1e1b4b"/>
5
- <stop offset="100%" stop-color="#0d0b1e"/>
6
- </radialGradient>
7
- <linearGradient id="mainGrad" x1="0%" y1="0%" x2="0%" y2="100%">
8
- <stop offset="0%" stop-color="#c4b5fd"/>
9
- <stop offset="100%" stop-color="#7c3aed"/>
10
- </linearGradient>
11
- <linearGradient id="featGrad" x1="0%" y1="0%" x2="100%" y2="100%">
12
- <stop offset="0%" stop-color="#7dd3fc"/>
13
- <stop offset="100%" stop-color="#0284c7"/>
14
- </linearGradient>
15
- <filter id="glow" x="-40%" y="-40%" width="180%" height="180%">
16
- <feGaussianBlur in="SourceGraphic" stdDeviation="2.5" result="blur"/>
17
- <feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
18
- </filter>
19
- <filter id="softGlow" x="-20%" y="-20%" width="140%" height="140%">
20
- <feGaussianBlur in="SourceGraphic" stdDeviation="1.5" result="blur"/>
21
- <feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
22
- </filter>
23
- </defs>
24
-
25
- <!-- 背景圆 -->
26
- <circle cx="100" cy="100" r="96" fill="url(#bgGrad)"/>
27
-
28
- <!-- 同步外弧(上半,代表 sync 循环) -->
29
- <path d="M 100,20 A 80,80 0 1,1 36,153"
30
- stroke="rgba(167,139,250,0.18)" stroke-width="4.5" fill="none" stroke-linecap="round"/>
31
- <!-- 同步外弧(下半) -->
32
- <path d="M 36,153 A 80,80 0 0,1 164,153"
33
- stroke="rgba(56,189,248,0.18)" stroke-width="4.5" fill="none" stroke-linecap="round"/>
34
- <!-- 同步箭头(上) -->
35
- <path d="M 91,17 L 100,20 L 96,29"
36
- stroke="rgba(167,139,250,0.55)" stroke-width="2.5" fill="none"
37
- stroke-linecap="round" stroke-linejoin="round"/>
38
- <!-- 同步箭头(下) -->
39
- <path d="M 163,145 L 164,154 L 155,151"
40
- stroke="rgba(56,189,248,0.55)" stroke-width="2.5" fill="none"
41
- stroke-linecap="round" stroke-linejoin="round"/>
42
-
43
- <!-- 主分支竖线 -->
44
- <line x1="76" y1="44" x2="76" y2="156"
45
- stroke="url(#mainGrad)" stroke-width="5.5" stroke-linecap="round"
46
- filter="url(#softGlow)"/>
47
-
48
- <!-- 特性分支曲线(分出) -->
49
- <path d="M 76,80 C 98,80 130,96 130,120 L 130,140"
50
- stroke="url(#featGrad)" stroke-width="4.5" fill="none"
51
- stroke-linecap="round" filter="url(#softGlow)"/>
52
- <!-- 特性分支合并回主分支 -->
53
- <path d="M 130,140 C 130,156 105,159 76,155"
54
- stroke="url(#featGrad)" stroke-width="4.5" fill="none" stroke-linecap="round"/>
55
-
56
- <!-- 主分支节点 -->
57
- <circle cx="76" cy="48" r="11" fill="#13103a" stroke="#c4b5fd" stroke-width="3" filter="url(#glow)"/>
58
- <circle cx="76" cy="48" r="5" fill="#ddd6fe"/>
59
-
60
- <circle cx="76" cy="84" r="11" fill="#13103a" stroke="#a78bfa" stroke-width="3"/>
61
- <circle cx="76" cy="84" r="5" fill="#c4b5fd"/>
62
-
63
- <circle cx="76" cy="120" r="11" fill="#13103a" stroke="#8b5cf6" stroke-width="3"/>
64
- <circle cx="76" cy="120" r="5" fill="#a78bfa"/>
65
-
66
- <circle cx="76" cy="155" r="11" fill="#13103a" stroke="#7c3aed" stroke-width="3" filter="url(#glow)"/>
67
- <circle cx="76" cy="155" r="5" fill="#8b5cf6"/>
68
-
69
- <!-- 特性分支节点 -->
70
- <circle cx="130" cy="115" r="11" fill="#13103a" stroke="#38bdf8" stroke-width="3" filter="url(#glow)"/>
71
- <circle cx="130" cy="115" r="5" fill="#7dd3fc"/>
72
-
73
- <circle cx="130" cy="143" r="11" fill="#13103a" stroke="#0ea5e9" stroke-width="3" filter="url(#glow)"/>
74
- <circle cx="130" cy="143" r="5" fill="#38bdf8"/>
75
- </svg>
1
+ <svg width="200" height="200" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
2
+ <defs>
3
+ <radialGradient id="bgGrad" cx="38%" cy="32%" r="70%">
4
+ <stop offset="0%" stop-color="#1e1b4b"/>
5
+ <stop offset="100%" stop-color="#0d0b1e"/>
6
+ </radialGradient>
7
+ <linearGradient id="mainGrad" x1="0%" y1="0%" x2="0%" y2="100%">
8
+ <stop offset="0%" stop-color="#c4b5fd"/>
9
+ <stop offset="100%" stop-color="#7c3aed"/>
10
+ </linearGradient>
11
+ <linearGradient id="featGrad" x1="0%" y1="0%" x2="100%" y2="100%">
12
+ <stop offset="0%" stop-color="#7dd3fc"/>
13
+ <stop offset="100%" stop-color="#0284c7"/>
14
+ </linearGradient>
15
+ <filter id="glow" x="-40%" y="-40%" width="180%" height="180%">
16
+ <feGaussianBlur in="SourceGraphic" stdDeviation="2.5" result="blur"/>
17
+ <feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
18
+ </filter>
19
+ <filter id="softGlow" x="-20%" y="-20%" width="140%" height="140%">
20
+ <feGaussianBlur in="SourceGraphic" stdDeviation="1.5" result="blur"/>
21
+ <feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
22
+ </filter>
23
+ </defs>
24
+
25
+ <!-- 背景圆 -->
26
+ <circle cx="100" cy="100" r="96" fill="url(#bgGrad)"/>
27
+
28
+ <!-- 同步外弧(上半,代表 sync 循环) -->
29
+ <path d="M 100,20 A 80,80 0 1,1 36,153"
30
+ stroke="rgba(167,139,250,0.18)" stroke-width="4.5" fill="none" stroke-linecap="round"/>
31
+ <!-- 同步外弧(下半) -->
32
+ <path d="M 36,153 A 80,80 0 0,1 164,153"
33
+ stroke="rgba(56,189,248,0.18)" stroke-width="4.5" fill="none" stroke-linecap="round"/>
34
+ <!-- 同步箭头(上) -->
35
+ <path d="M 91,17 L 100,20 L 96,29"
36
+ stroke="rgba(167,139,250,0.55)" stroke-width="2.5" fill="none"
37
+ stroke-linecap="round" stroke-linejoin="round"/>
38
+ <!-- 同步箭头(下) -->
39
+ <path d="M 163,145 L 164,154 L 155,151"
40
+ stroke="rgba(56,189,248,0.55)" stroke-width="2.5" fill="none"
41
+ stroke-linecap="round" stroke-linejoin="round"/>
42
+
43
+ <!-- 主分支竖线 -->
44
+ <line x1="76" y1="44" x2="76" y2="156"
45
+ stroke="url(#mainGrad)" stroke-width="5.5" stroke-linecap="round"
46
+ filter="url(#softGlow)"/>
47
+
48
+ <!-- 特性分支曲线(分出) -->
49
+ <path d="M 76,80 C 98,80 130,96 130,120 L 130,140"
50
+ stroke="url(#featGrad)" stroke-width="4.5" fill="none"
51
+ stroke-linecap="round" filter="url(#softGlow)"/>
52
+ <!-- 特性分支合并回主分支 -->
53
+ <path d="M 130,140 C 130,156 105,159 76,155"
54
+ stroke="url(#featGrad)" stroke-width="4.5" fill="none" stroke-linecap="round"/>
55
+
56
+ <!-- 主分支节点 -->
57
+ <circle cx="76" cy="48" r="11" fill="#13103a" stroke="#c4b5fd" stroke-width="3" filter="url(#glow)"/>
58
+ <circle cx="76" cy="48" r="5" fill="#ddd6fe"/>
59
+
60
+ <circle cx="76" cy="84" r="11" fill="#13103a" stroke="#a78bfa" stroke-width="3"/>
61
+ <circle cx="76" cy="84" r="5" fill="#c4b5fd"/>
62
+
63
+ <circle cx="76" cy="120" r="11" fill="#13103a" stroke="#8b5cf6" stroke-width="3"/>
64
+ <circle cx="76" cy="120" r="5" fill="#a78bfa"/>
65
+
66
+ <circle cx="76" cy="155" r="11" fill="#13103a" stroke="#7c3aed" stroke-width="3" filter="url(#glow)"/>
67
+ <circle cx="76" cy="155" r="5" fill="#8b5cf6"/>
68
+
69
+ <!-- 特性分支节点 -->
70
+ <circle cx="130" cy="115" r="11" fill="#13103a" stroke="#38bdf8" stroke-width="3" filter="url(#glow)"/>
71
+ <circle cx="130" cy="115" r="5" fill="#7dd3fc"/>
72
+
73
+ <circle cx="130" cy="143" r="11" fill="#13103a" stroke="#0ea5e9" stroke-width="3" filter="url(#glow)"/>
74
+ <circle cx="130" cy="143" r="5" fill="#38bdf8"/>
75
+ </svg>
@@ -1,22 +1,22 @@
1
- <!doctype html>
2
- <html lang="zh-CN" translate="no">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="google" content="notranslate" />
6
- <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
7
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
- <title>Zen GitSync</title>
9
- <!-- Premium fonts: Plus Jakarta Sans (UI) + JetBrains Mono (code) -->
10
- <link rel="preconnect" href="https://fonts.googleapis.com" />
11
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
12
- <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet" />
13
- <script type="module" crossorigin src="/assets/index-BFhllyJb.js"></script>
14
- <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-BM3Ffeng.js">
15
- <link rel="modulepreload" crossorigin href="/assets/vendor-BB71wW_m.js">
16
- <link rel="stylesheet" crossorigin href="/assets/vendor-B2yudN8R.css">
17
- <link rel="stylesheet" crossorigin href="/assets/index-wBVvNuoD.css">
18
- </head>
19
- <body>
20
- <div id="app"></div>
21
- </body>
22
- </html>
1
+ <!doctype html>
2
+ <html lang="zh-CN" translate="no">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="google" content="notranslate" />
6
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
+ <title>Zen GitSync</title>
9
+ <!-- Premium fonts: Plus Jakarta Sans (UI) + JetBrains Mono (code) -->
10
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
11
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
12
+ <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet" />
13
+ <script type="module" crossorigin src="/assets/index-CPUqt5Ue.js"></script>
14
+ <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-CMxvf4Kt.js">
15
+ <link rel="modulepreload" crossorigin href="/assets/vendor-BMFU1ekz.js">
16
+ <link rel="stylesheet" crossorigin href="/assets/vendor-BPPhhD0O.css">
17
+ <link rel="stylesheet" crossorigin href="/assets/index-a-r8YYZJ.css">
18
+ </head>
19
+ <body>
20
+ <div id="app"></div>
21
+ </body>
22
+ </html>
@@ -1,75 +1,75 @@
1
- <svg width="200" height="200" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
2
- <defs>
3
- <radialGradient id="bgGrad" cx="38%" cy="32%" r="70%">
4
- <stop offset="0%" stop-color="#1e1b4b"/>
5
- <stop offset="100%" stop-color="#0d0b1e"/>
6
- </radialGradient>
7
- <linearGradient id="mainGrad" x1="0%" y1="0%" x2="0%" y2="100%">
8
- <stop offset="0%" stop-color="#c4b5fd"/>
9
- <stop offset="100%" stop-color="#7c3aed"/>
10
- </linearGradient>
11
- <linearGradient id="featGrad" x1="0%" y1="0%" x2="100%" y2="100%">
12
- <stop offset="0%" stop-color="#7dd3fc"/>
13
- <stop offset="100%" stop-color="#0284c7"/>
14
- </linearGradient>
15
- <filter id="glow" x="-40%" y="-40%" width="180%" height="180%">
16
- <feGaussianBlur in="SourceGraphic" stdDeviation="2.5" result="blur"/>
17
- <feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
18
- </filter>
19
- <filter id="softGlow" x="-20%" y="-20%" width="140%" height="140%">
20
- <feGaussianBlur in="SourceGraphic" stdDeviation="1.5" result="blur"/>
21
- <feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
22
- </filter>
23
- </defs>
24
-
25
- <!-- 背景�?-->
26
- <circle cx="100" cy="100" r="96" fill="url(#bgGrad)"/>
27
-
28
- <!-- 同步外弧(上半,代表 sync 循环�?-->
29
- <path d="M 100,20 A 80,80 0 1,1 36,153"
30
- stroke="rgba(167,139,250,0.18)" stroke-width="4.5" fill="none" stroke-linecap="round"/>
31
- <!-- 同步外弧(下半) -->
32
- <path d="M 36,153 A 80,80 0 0,1 164,153"
33
- stroke="rgba(56,189,248,0.18)" stroke-width="4.5" fill="none" stroke-linecap="round"/>
34
- <!-- 同步箭头(上�?-->
35
- <path d="M 91,17 L 100,20 L 96,29"
36
- stroke="rgba(167,139,250,0.55)" stroke-width="2.5" fill="none"
37
- stroke-linecap="round" stroke-linejoin="round"/>
38
- <!-- 同步箭头(下�?-->
39
- <path d="M 163,145 L 164,154 L 155,151"
40
- stroke="rgba(56,189,248,0.55)" stroke-width="2.5" fill="none"
41
- stroke-linecap="round" stroke-linejoin="round"/>
42
-
43
- <!-- 主分支竖�?-->
44
- <line x1="76" y1="44" x2="76" y2="156"
45
- stroke="url(#mainGrad)" stroke-width="5.5" stroke-linecap="round"
46
- filter="url(#softGlow)"/>
47
-
48
- <!-- 特性分支曲线(分出�?-->
49
- <path d="M 76,80 C 98,80 130,96 130,120 L 130,140"
50
- stroke="url(#featGrad)" stroke-width="4.5" fill="none"
51
- stroke-linecap="round" filter="url(#softGlow)"/>
52
- <!-- 特性分支合并回主分�?-->
53
- <path d="M 130,140 C 130,156 105,159 76,155"
54
- stroke="url(#featGrad)" stroke-width="4.5" fill="none" stroke-linecap="round"/>
55
-
56
- <!-- 主分支节�?-->
57
- <circle cx="76" cy="48" r="11" fill="#13103a" stroke="#c4b5fd" stroke-width="3" filter="url(#glow)"/>
58
- <circle cx="76" cy="48" r="5" fill="#ddd6fe"/>
59
-
60
- <circle cx="76" cy="84" r="11" fill="#13103a" stroke="#a78bfa" stroke-width="3"/>
61
- <circle cx="76" cy="84" r="5" fill="#c4b5fd"/>
62
-
63
- <circle cx="76" cy="120" r="11" fill="#13103a" stroke="#8b5cf6" stroke-width="3"/>
64
- <circle cx="76" cy="120" r="5" fill="#a78bfa"/>
65
-
66
- <circle cx="76" cy="155" r="11" fill="#13103a" stroke="#7c3aed" stroke-width="3" filter="url(#glow)"/>
67
- <circle cx="76" cy="155" r="5" fill="#8b5cf6"/>
68
-
69
- <!-- 特性分支节�?-->
70
- <circle cx="130" cy="115" r="11" fill="#13103a" stroke="#38bdf8" stroke-width="3" filter="url(#glow)"/>
71
- <circle cx="130" cy="115" r="5" fill="#7dd3fc"/>
72
-
73
- <circle cx="130" cy="143" r="11" fill="#13103a" stroke="#0ea5e9" stroke-width="3" filter="url(#glow)"/>
74
- <circle cx="130" cy="143" r="5" fill="#38bdf8"/>
1
+ <svg width="200" height="200" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
2
+ <defs>
3
+ <radialGradient id="bgGrad" cx="38%" cy="32%" r="70%">
4
+ <stop offset="0%" stop-color="#1e1b4b"/>
5
+ <stop offset="100%" stop-color="#0d0b1e"/>
6
+ </radialGradient>
7
+ <linearGradient id="mainGrad" x1="0%" y1="0%" x2="0%" y2="100%">
8
+ <stop offset="0%" stop-color="#c4b5fd"/>
9
+ <stop offset="100%" stop-color="#7c3aed"/>
10
+ </linearGradient>
11
+ <linearGradient id="featGrad" x1="0%" y1="0%" x2="100%" y2="100%">
12
+ <stop offset="0%" stop-color="#7dd3fc"/>
13
+ <stop offset="100%" stop-color="#0284c7"/>
14
+ </linearGradient>
15
+ <filter id="glow" x="-40%" y="-40%" width="180%" height="180%">
16
+ <feGaussianBlur in="SourceGraphic" stdDeviation="2.5" result="blur"/>
17
+ <feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
18
+ </filter>
19
+ <filter id="softGlow" x="-20%" y="-20%" width="140%" height="140%">
20
+ <feGaussianBlur in="SourceGraphic" stdDeviation="1.5" result="blur"/>
21
+ <feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
22
+ </filter>
23
+ </defs>
24
+
25
+ <!-- 背景�?-->
26
+ <circle cx="100" cy="100" r="96" fill="url(#bgGrad)"/>
27
+
28
+ <!-- 同步外弧(上半,代表 sync 循环�?-->
29
+ <path d="M 100,20 A 80,80 0 1,1 36,153"
30
+ stroke="rgba(167,139,250,0.18)" stroke-width="4.5" fill="none" stroke-linecap="round"/>
31
+ <!-- 同步外弧(下半) -->
32
+ <path d="M 36,153 A 80,80 0 0,1 164,153"
33
+ stroke="rgba(56,189,248,0.18)" stroke-width="4.5" fill="none" stroke-linecap="round"/>
34
+ <!-- 同步箭头(上�?-->
35
+ <path d="M 91,17 L 100,20 L 96,29"
36
+ stroke="rgba(167,139,250,0.55)" stroke-width="2.5" fill="none"
37
+ stroke-linecap="round" stroke-linejoin="round"/>
38
+ <!-- 同步箭头(下�?-->
39
+ <path d="M 163,145 L 164,154 L 155,151"
40
+ stroke="rgba(56,189,248,0.55)" stroke-width="2.5" fill="none"
41
+ stroke-linecap="round" stroke-linejoin="round"/>
42
+
43
+ <!-- 主分支竖�?-->
44
+ <line x1="76" y1="44" x2="76" y2="156"
45
+ stroke="url(#mainGrad)" stroke-width="5.5" stroke-linecap="round"
46
+ filter="url(#softGlow)"/>
47
+
48
+ <!-- 特性分支曲线(分出�?-->
49
+ <path d="M 76,80 C 98,80 130,96 130,120 L 130,140"
50
+ stroke="url(#featGrad)" stroke-width="4.5" fill="none"
51
+ stroke-linecap="round" filter="url(#softGlow)"/>
52
+ <!-- 特性分支合并回主分�?-->
53
+ <path d="M 130,140 C 130,156 105,159 76,155"
54
+ stroke="url(#featGrad)" stroke-width="4.5" fill="none" stroke-linecap="round"/>
55
+
56
+ <!-- 主分支节�?-->
57
+ <circle cx="76" cy="48" r="11" fill="#13103a" stroke="#c4b5fd" stroke-width="3" filter="url(#glow)"/>
58
+ <circle cx="76" cy="48" r="5" fill="#ddd6fe"/>
59
+
60
+ <circle cx="76" cy="84" r="11" fill="#13103a" stroke="#a78bfa" stroke-width="3"/>
61
+ <circle cx="76" cy="84" r="5" fill="#c4b5fd"/>
62
+
63
+ <circle cx="76" cy="120" r="11" fill="#13103a" stroke="#8b5cf6" stroke-width="3"/>
64
+ <circle cx="76" cy="120" r="5" fill="#a78bfa"/>
65
+
66
+ <circle cx="76" cy="155" r="11" fill="#13103a" stroke="#7c3aed" stroke-width="3" filter="url(#glow)"/>
67
+ <circle cx="76" cy="155" r="5" fill="#8b5cf6"/>
68
+
69
+ <!-- 特性分支节�?-->
70
+ <circle cx="130" cy="115" r="11" fill="#13103a" stroke="#38bdf8" stroke-width="3" filter="url(#glow)"/>
71
+ <circle cx="130" cy="115" r="5" fill="#7dd3fc"/>
72
+
73
+ <circle cx="130" cy="143" r="11" fill="#13103a" stroke="#0ea5e9" stroke-width="3" filter="url(#glow)"/>
74
+ <circle cx="130" cy="143" r="5" fill="#38bdf8"/>
75
75
  </svg>
@@ -1,3 +0,0 @@
1
- import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{$r as t,Ci as n,Di as r,Fi as i,Gt as a,Ht as o,Ii as s,Jt as c,Kn as ee,Kt as te,Li as l,Mi as u,Ni as ne,Oi as d,Pi as f,Qr as re,Ut as ie,Wt as ae,Xt as oe,Yt as se,_i as p,ai as m,ci as h,di as g,ei as ce,fi as _,ii as v,ki as y,mi as b,ni as x,qt as le,si as S,t as ue,ui as de,un as fe,vi as pe,xi as C,xt as me,yi as he}from"./vendor-BB71wW_m.js";import{a as w,i as ge,n as _e,o as T}from"./index-BFhllyJb.js";var E=e(o(),1),ve={class:`source-map-view`},ye={class:`sm-toolbar`},be={class:`sm-toolbar-left`},xe={class:`sm-title`},Se={class:`sm-toolbar-center`},Ce=[`placeholder`,`disabled`],we=[`disabled`],Te={class:`sm-toolbar-right`},Ee={class:`sm-body`},De={class:`sm-panel-header sm-panel-header--tabs`},Oe={key:0,class:`sm-badge`},ke={class:`sm-panel-body sm-file-tree`},Ae=[`onClick`],je={key:1,class:`sm-tree-arrow-spacer`},Me={key:2,class:`sm-tree-icon mit-icon`,"aria-hidden":`true`},Ne=[`xlink:href`],Pe={key:3,class:`sm-tree-icon mit-icon`,"aria-hidden":`true`},Fe=[`xlink:href`],Ie=[`title`],Le={key:1,class:`sm-tree-empty`},Re={class:`sm-panel-body sm-outline-body`},ze={class:`sm-badge`,style:{"margin-left":`auto`}},Be=[`onClick`],Ve=[`title`],He={key:0,class:`sm-outline-desc`},Ue={key:1,class:`sm-tree-empty`},We={class:`sm-panel sm-panel-graph`},Ge={key:0,class:`sm-project-info`},Ke={class:`sm-lang-badge`},qe={class:`sm-summary-text`},Je={class:`sm-graph-container`},Ye={class:`sm-layout-btn-wrap`},Xe=[`disabled`],Ze=[`title`],Qe={class:`sm-fn-label`},$e={key:0,class:`sm-fn-desc`},et={key:0,class:`sm-graph-empty`},tt={viewBox:`0 0 24 24`,width:`48`,height:`48`,fill:`none`,stroke:`currentColor`,"stroke-width":`1`,style:{opacity:`0.3`}},nt={key:1,class:`sm-graph-loading`},rt={class:`sm-log-header`},it={key:0,class:`sm-log-indicator`},at={class:`sm-log-body`,ref:`logBodyRef`},ot={key:0,class:`sm-empty`},st={class:`sm-panel-header`},ct={key:0,class:`sm-badge sm-badge-amber`},lt={key:0,class:`sm-node-detail`},ut={class:`sm-node-name`},dt={class:`sm-node-file`},ft={key:0},pt={key:0,class:`sm-node-desc`},mt={class:`sm-panel-body sm-source-body`},ht={key:0,class:`sm-source-overlay`},gt={key:1,class:`sm-source-overlay sm-source-placeholder`},D=w(b({__name:`SourceMapView`,setup(e){let o=ge(),b=u(o.currentDirectory||``),w=u(`idle`),D=u([]),_t=0,O=u(null),k=u(null),A=u(`files`),j=u(``),M=u(``),N=u(!1),P=u([]),F=u(new Set),I=u({files:!0,graph:!0,source:!0}),L=u(!1),R=u(220),z=u(360),B=u(140),V=null,H=0,vt=0,U=0;function W(e,t){V=e,H=t.clientX,vt=t.clientY,U=e===`files`?R.value:e===`source`?z.value:B.value,document.addEventListener(`mousemove`,yt),document.addEventListener(`mouseup`,G),t.preventDefault()}function yt(e){V&&(V===`files`?R.value=Math.max(120,Math.min(480,U+e.clientX-H)):V===`source`?z.value=Math.max(200,Math.min(700,U+H-e.clientX)):B.value=Math.max(60,Math.min(500,U+vt-e.clientY)))}function G(){V=null,document.removeEventListener(`mousemove`,yt),document.removeEventListener(`mouseup`,G)}let K=u(null),q=ne(null),{fitView:bt,setNodes:J,setEdges:xt,getNodes:St,getEdges:Ct,updateNodeInternals:wt}=oe(),Y=v(()=>w.value===`scanning`||w.value===`analyzing`),X=v(()=>O.value?.nodes.find(e=>e.id===k.value)??null),Tt=v(()=>{if(!O.value)return[];let e=new Map;for(let t of O.value.nodes){let n=t.subsystem??`__default__`;if(!e.has(n)){let r=O.value.subsystems?.find(e=>e.name===n);e.set(n,{displayName:r?.displayName||t.subsystem||T(`@SRCMAP:默认`),color:t.subsystemColor||Q[0],nodes:[]})}e.get(n).nodes.push(t)}return[...e.entries()].map(([,e])=>e)});function Z(e,t=`info`){D.value.push({id:++_t,message:e,type:t,timestamp:Date.now()}),D.value.length>200&&D.value.splice(0,D.value.length-200)}function Et(e){let t={name:``,path:``,kind:`dir`,children:[],childMap:new Map};for(let n of e){let e=n.trim().split(`/`).filter(Boolean),r=t,i=``;for(let t=0;t<e.length;t++){let n=e[t];i=i?`${i}/${n}`:n;let a=t===e.length-1,o=r.childMap.get(n);o||(o={name:n,path:i,kind:a?`file`:`dir`,children:[],childMap:new Map},r.childMap.set(n,o),r.children.push(o)),r=o}}let n=e=>{e.sort((e,t)=>e.kind===t.kind?e.name.localeCompare(t.name):e.kind===`dir`?-1:1),e.forEach(e=>{e.kind===`dir`&&n(e.children)})};return n(t.children),t.children}let Q=[`#f59e0b`,`#3b82f6`,`#10b981`,`#8b5cf6`];function Dt(e){return e.subsystemColor?e.subsystemColor:e.subsystemIndex===void 0?e.importance===`high`?`#f59e0b`:e.importance===`low`?`#94a3b8`:`#3b82f6`:Q[e.subsystemIndex%Q.length]}function Ot(e){return{ts:`typescript`,tsx:`typescript`,js:`javascript`,mjs:`javascript`,cjs:`javascript`,jsx:`javascript`,vue:`html`,svelte:`html`,html:`html`,py:`python`,java:`java`,go:`go`,rs:`rust`,cpp:`cpp`,cc:`cpp`,cxx:`cpp`,c:`c`,h:`c`,hpp:`cpp`,cs:`csharp`,rb:`ruby`,php:`php`,swift:`swift`,kt:`kotlin`,sh:`shell`,bash:`shell`,json:`json`,yaml:`yaml`,yml:`yaml`,md:`markdown`,css:`css`,scss:`scss`,less:`less`,sql:`sql`}[e.split(`.`).pop()?.toLowerCase()||``]||`plaintext`}function kt(){if(!K.value||q.value)return;let e=document.documentElement.getAttribute(`data-theme`)===`dark`;q.value=me.create(K.value,{value:``,language:`plaintext`,theme:e?`vs-dark`:`vs`,readOnly:!0,fontSize:12,lineHeight:19,fontFamily:`'JetBrains Mono', 'Fira Code', Consolas, monospace`,minimap:{enabled:!1},scrollBeyondLastLine:!1,automaticLayout:!0,wordWrap:`off`,padding:{top:8,bottom:8},scrollbar:{verticalScrollbarSize:6,horizontalScrollbarSize:6}})}function At(e,t){let n={};t.forEach(e=>{n[e.source]||(n[e.source]=[]),n[e.source].push(e.target)});let r=new Map;e.forEach(e=>{let t=e.subsystem??`__default`;r.has(t)||r.set(t,[]),r.get(t).push(e)});let i=[],a=0;for(let[,e]of r){let t=new Set(e.map(e=>e.id)),r={},o=e.length?[e[0].id]:[];for(o[0]&&(r[o[0]]=0);o.length;){let e=o.shift();(n[e]||[]).filter(e=>t.has(e)).forEach(t=>{r[t]===void 0&&(r[t]=(r[e]??0)+1,o.push(t))})}let s={};e.forEach(e=>{let t=r[e.id]??0;s[t]=(s[t]||0)+1});let c={};e.forEach(e=>{let t=r[e.id]??0;c[t]=(c[t]??-1)+1;let n=c[t],o=s[t]??1,ee=a*600+n*220-(o-1)*220/2,te=t*110,l=Dt(e);i.push({id:e.id,type:`default`,position:{x:ee,y:te},label:e.label,data:{...e},style:{background:`#1e293b`,border:`2px solid ${l}`,borderRadius:`8px`,color:`#e2e8f0`,fontSize:`12px`,padding:`8px 12px`,minWidth:`140px`,maxWidth:`200px`,cursor:`pointer`}})}),a++}return{flowNodes:i,flowEdges:t.map((e,t)=>({id:`e_${t}_${e.source}_${e.target}`,source:e.source,target:e.target,type:`smoothstep`,animated:!1,style:{stroke:`#475569`,strokeWidth:1.5},markerEnd:{type:te.ArrowClosed,color:`#475569`}}))}}async function jt(){let e=St.value,t=Ct.value;if(e.length!==0){L.value=!0;try{await p(),await new Promise(e=>requestAnimationFrame(()=>e())),wt(e.map(e=>e.id)),await new Promise(e=>requestAnimationFrame(()=>e()));let n=new Map;e.forEach(e=>{let t=e.data?.subsystem??`__default__`;n.has(t)||n.set(t,[]),n.get(t).push(e)});let r=new Map,i=0;for(let[,e]of n){let n=new E.default.graphlib.Graph;n.setDefaultEdgeLabel(()=>({})),n.setGraph({rankdir:`TB`,nodesep:55,ranksep:75,marginx:40,marginy:40});let a=new Set(e.map(e=>e.id));e.forEach(e=>{let t=190,r=e.data?.description?68:48,i=document.querySelector(`.vue-flow__node[data-id="${e.id}"]`);i&&i.offsetWidth>0&&(t=i.offsetWidth,r=i.offsetHeight),n.setNode(e.id,{width:t,height:r})}),t.forEach(e=>{a.has(e.source)&&a.has(e.target)&&n.setEdge(e.source,e.target)}),E.default.layout(n);let o=0;e.forEach(e=>{let t=n.node(e.id);t&&(r.set(e.id,{x:i+t.x-t.width/2,y:t.y-t.height/2}),o=Math.max(o,t.x+t.width/2))}),i+=o+120}J(e.map(e=>({...e,position:r.get(e.id)??e.position}))),await p(),bt({padding:.18})}finally{L.value=!1}}}async function Mt(){if(!b.value.trim()){fe.warning(T(`@SRCMAP:请先输入项目路径`));return}if(!Y.value){D.value=[],O.value=null,k.value=null,j.value=``,M.value=``,J([]),xt([]),w.value=`scanning`,Z(T(`@SRCMAP:开始分析项目...`),`info`);try{let e=await fetch(`/api/code-analysis/analyze`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({path:b.value})});if(!e.ok){let t=await e.json().catch(()=>({error:`请求失败`}));throw Error(t.error||`HTTP ${e.status}`)}let t=e.body.getReader(),n=new TextDecoder,r=``;w.value=`analyzing`;let i=``,a=[];for(;;){let{done:e,value:o}=await t.read();if(e)break;r+=n.decode(o,{stream:!0});let s=r.split(`
2
- `);r=s.pop()??``;for(let e of s)if(e.startsWith(`event:`))i=e.slice(6).trim(),a=[];else if(e.startsWith(`data:`))a.push(e.slice(5).trim());else if(e===``){if(i&&a.length){let e=a.join(``);try{let t=JSON.parse(e);Nt(i,t)}catch{}}i=``,a=[]}}}catch(e){Z(`${T(`@SRCMAP:分析失败`)}: ${e.message}`,`error`),w.value=`error`}}}function Nt(e,t){if(e===`log`)Z(t.message,t.type||`info`);else if(e===`files`)P.value=Et(t.files||[]),P.value.forEach(e=>{e.kind===`dir`&&F.value.add(e.path)});else if(e===`result`){O.value={language:t.language||``,entryFile:t.entryFile||``,entryFunction:t.entryFunction||``,nodes:Array.isArray(t.nodes)?t.nodes:[],edges:Array.isArray(t.edges)?t.edges:[],techStack:Array.isArray(t.techStack)?t.techStack:[],summary:t.summary||``,allFiles:Array.isArray(t.allFiles)?t.allFiles:[],codeFiles:Array.isArray(t.codeFiles)?t.codeFiles:[],subsystems:Array.isArray(t.subsystems)?t.subsystems:void 0};let{flowNodes:e,flowEdges:n}=At(O.value.nodes,O.value.edges);J(e),xt(n),p(()=>jt())}else e===`done`&&(t.error?(Z(`${T(`@SRCMAP:分析失败`)}: ${t.error}`,`error`),w.value=`error`):w.value=`done`)}async function $(e){if(!(!e||N.value)&&M.value!==e){N.value=!0,M.value=e,j.value=``;try{let t=await(await fetch(`/api/code-analysis/file-content?path=${encodeURIComponent(b.value)}&file=${encodeURIComponent(e)}`)).json();if(t.error)throw Error(t.error);j.value=t.content||``}catch(e){j.value=`// ${T(`@SRCMAP:加载失败`)}: ${e.message}`}finally{N.value=!1}}}function Pt(e){let t=e.node.data;k.value=t.id,t.file&&$(t.file)}function Ft(e){F.value.has(e)?F.value.delete(e):F.value.add(e)}let It=v(()=>{let e=[];function t(n,r){for(let i of n){let n=F.value.has(i.path);e.push({name:i.name,path:i.path,kind:i.kind,depth:r,expanded:n}),i.kind===`dir`&&n&&t(i.children,r+1)}}return t(P.value,0),e});return r(()=>o.currentDirectory,e=>{e&&!b.value&&(b.value=e)}),r([j,M],([e,t])=>{let n=q.value;if(!n)return;let r=Ot(t||``),i=n.getModel(),a=me.createModel(e||``,r);n.setModel(a),i?.dispose(),n.setScrollPosition({scrollTop:0,scrollLeft:0})}),he(()=>{kt(),!b.value&&o.currentDirectory&&(b.value=o.currentDirectory)}),pe(()=>{q.value?.getModel()?.dispose(),q.value?.dispose(),G()}),(e,r)=>{let o=ee;return C(),h(`div`,ve,[m(`div`,ye,[m(`div`,be,[r[9]||=m(`svg`,{viewBox:`0 0 24 24`,width:`18`,height:`18`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,class:`sm-icon-map`},[m(`polygon`,{points:`3 6 9 3 15 6 21 3 21 18 15 21 9 18 3 21`}),m(`line`,{x1:`9`,y1:`3`,x2:`9`,y2:`18`}),m(`line`,{x1:`15`,y1:`6`,x2:`15`,y2:`21`})],-1),m(`span`,xe,l(f(T)(`@SRCMAP:源码地图`)),1)]),m(`div`,Se,[y(m(`input`,{"onUpdate:modelValue":r[0]||=e=>b.value=e,class:`sm-path-input`,placeholder:f(T)(`@SRCMAP:输入项目目录路径`),disabled:Y.value,onKeydown:ce(Mt,[`enter`])},null,40,Ce),[[re,b.value]]),m(`button`,{class:`sm-btn sm-btn-primary`,disabled:Y.value,onClick:Mt},[Y.value?(C(),h(x,{key:0},[r[10]||=m(`span`,{class:`sm-spinner`},null,-1),g(` `+l(f(T)(`@SRCMAP:分析中...`)),1)],64)):(C(),h(x,{key:1},[g(l(w.value===`done`?f(T)(`@SRCMAP:重新分析`):f(T)(`@SRCMAP:开始分析`)),1)],64))],8,we)]),m(`div`,Te,[_(o,{content:f(T)(`@SRCMAP:文件列表`),placement:`bottom`},{default:d(()=>[m(`button`,{class:i([`sm-panel-btn`,{active:I.value.files}]),onClick:r[1]||=e=>I.value.files=!I.value.files},r[11]||=[m(`svg`,{viewBox:`0 0 24 24`,width:`16`,height:`16`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`},[m(`path`,{d:`M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z`})],-1)],2)]),_:1},8,[`content`]),_(o,{content:f(T)(`@SRCMAP:调用图`),placement:`bottom`},{default:d(()=>[m(`button`,{class:i([`sm-panel-btn`,{active:I.value.graph}]),onClick:r[2]||=e=>I.value.graph=!I.value.graph},r[12]||=[m(`svg`,{viewBox:`0 0 24 24`,width:`16`,height:`16`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`},[m(`circle`,{cx:`12`,cy:`12`,r:`3`}),m(`circle`,{cx:`3`,cy:`6`,r:`2`}),m(`circle`,{cx:`21`,cy:`6`,r:`2`}),m(`circle`,{cx:`3`,cy:`18`,r:`2`}),m(`circle`,{cx:`21`,cy:`18`,r:`2`}),m(`line`,{x1:`5`,y1:`6`,x2:`9`,y2:`11`}),m(`line`,{x1:`19`,y1:`6`,x2:`15`,y2:`11`}),m(`line`,{x1:`5`,y1:`18`,x2:`9`,y2:`13`}),m(`line`,{x1:`19`,y1:`18`,x2:`15`,y2:`13`})],-1)],2)]),_:1},8,[`content`]),_(o,{content:f(T)(`@SRCMAP:源码面板`),placement:`bottom`},{default:d(()=>[m(`button`,{class:i([`sm-panel-btn`,{active:I.value.source}]),onClick:r[3]||=e=>I.value.source=!I.value.source},r[13]||=[m(`svg`,{viewBox:`0 0 24 24`,width:`16`,height:`16`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`},[m(`polyline`,{points:`16 18 22 12 16 6`}),m(`polyline`,{points:`8 6 2 12 8 18`})],-1)],2)]),_:1},8,[`content`])])]),m(`div`,Ee,[y(m(`div`,{class:`sm-panel sm-panel-files`,style:s({width:R.value+`px`})},[m(`div`,De,[m(`button`,{class:i([`sm-tab-btn`,{active:A.value===`files`}]),onClick:r[4]||=e=>A.value=`files`},[r[14]||=m(`svg`,{viewBox:`0 0 24 24`,width:`12`,height:`12`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`},[m(`path`,{d:`M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z`})],-1),g(` `+l(f(T)(`@SRCMAP:文件列表`))+` `,1),O.value?(C(),h(`span`,Oe,l(O.value.allFiles.length),1)):S(``,!0)],2),m(`button`,{class:i([`sm-tab-btn`,{active:A.value===`outline`}]),onClick:r[5]||=e=>A.value=`outline`},[r[15]||=de(`<svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="1.8" data-v-39b8daed><line x1="8" y1="6" x2="21" y2="6" data-v-39b8daed></line><line x1="8" y1="12" x2="21" y2="12" data-v-39b8daed></line><line x1="8" y1="18" x2="21" y2="18" data-v-39b8daed></line><line x1="3" y1="6" x2="3.01" y2="6" data-v-39b8daed></line><line x1="3" y1="12" x2="3.01" y2="12" data-v-39b8daed></line><line x1="3" y1="18" x2="3.01" y2="18" data-v-39b8daed></line></svg>`,1),g(` `+l(f(T)(`@SRCMAP:大纲`)),1)],2)]),y(m(`div`,ke,[It.value.length>0?(C(!0),h(x,{key:0},n(It.value,e=>(C(),h(`div`,{key:e.path,class:i([`sm-tree-node`,{"sm-tree-node--dir":e.kind===`dir`,"sm-tree-node--active":e.kind===`file`&&M.value===e.path}]),style:s({paddingLeft:10+e.depth*14+`px`}),onClick:t=>e.kind===`dir`?Ft(e.path):$(e.path)},[e.kind===`dir`?(C(),h(`span`,{key:0,class:i([`sm-tree-arrow`,{expanded:e.expanded}])},r[16]||=[m(`svg`,{viewBox:`0 0 24 24`,width:`10`,height:`10`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[m(`polyline`,{points:`9 18 15 12 9 6`})],-1)],2)):(C(),h(`span`,je)),e.kind===`dir`?(C(),h(`svg`,Me,[m(`use`,{"xlink:href":`#${f(_e)(e.name)||`icon-folder`}`},null,8,Ne)])):(C(),h(`svg`,Pe,[m(`use`,{"xlink:href":`#${f(_e)(e.name)}`},null,8,Fe)])),m(`span`,{class:`sm-tree-name`,title:e.path},l(e.name),9,Ie)],14,Ae))),128)):(C(),h(`div`,Le,l(f(T)(`@SRCMAP:暂无文件,请先开始分析`)),1))],512),[[t,A.value===`files`]]),y(m(`div`,Re,[Tt.value.length>0?(C(!0),h(x,{key:0},n(Tt.value,e=>(C(),h(`div`,{key:e.displayName,class:`sm-outline-group`},[m(`div`,{class:`sm-outline-group-header`,style:s({color:e.color})},[r[17]||=m(`svg`,{viewBox:`0 0 24 24`,width:`8`,height:`8`,fill:`currentColor`},[m(`circle`,{cx:`12`,cy:`12`,r:`6`})],-1),g(` `+l(e.displayName)+` `,1),m(`span`,ze,l(e.nodes.length),1)],4),(C(!0),h(x,null,n(e.nodes,t=>(C(),h(`div`,{key:t.id,class:i([`sm-outline-node`,{"sm-outline-node--active":k.value===t.id}]),onClick:e=>{k.value=t.id,t.file&&$(t.file)}},[m(`span`,{class:`sm-outline-dot`,style:s({background:e.color})},null,4),m(`span`,{class:`sm-outline-label`,title:t.file||t.label},l(t.label),9,Ve),t.description?(C(),h(`span`,He,l(t.description.length>18?t.description.slice(0,18)+`…`:t.description),1)):S(``,!0)],10,Be))),128))]))),128)):(C(),h(`div`,Ue,l(f(T)(`@SRCMAP:暂无分析结果`)),1))],512),[[t,A.value===`outline`]])],4),[[t,I.value.files]]),y(m(`div`,{class:`sm-resizer sm-resizer-v`,onMousedown:r[6]||=e=>W(`files`,e)},null,544),[[t,I.value.files&&I.value.graph]]),y(m(`div`,We,[O.value?(C(),h(`div`,Ge,[m(`span`,Ke,l(O.value.language),1),O.value.subsystems&&O.value.subsystems.length>1?(C(!0),h(x,{key:0},n(O.value.subsystems,e=>(C(),h(`span`,{key:e.name,class:`sm-subsystem-tag`,style:s({borderColor:e.color,color:e.color})},`● `+l(e.displayName||e.name),5))),128)):(C(!0),h(x,{key:1},n(O.value.techStack.slice(0,4),e=>(C(),h(`span`,{key:e,class:`sm-tech-tag`},l(e),1))),128)),m(`span`,qe,l(O.value.summary),1)])):S(``,!0),m(`div`,Je,[m(`div`,Ye,[m(`button`,{class:`sm-layout-btn`,disabled:L.value||!O.value,onClick:jt},[r[18]||=de(`<svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="1.8" data-v-39b8daed><rect x="3" y="3" width="7" height="7" rx="1" data-v-39b8daed></rect><rect x="14" y="3" width="7" height="7" rx="1" data-v-39b8daed></rect><rect x="3" y="14" width="7" height="7" rx="1" data-v-39b8daed></rect><rect x="14" y="14" width="7" height="7" rx="1" data-v-39b8daed></rect></svg>`,1),g(` `+l(L.value?f(T)(`@SRCMAP:布局中...`):f(T)(`@SRCMAP:优化布局`)),1)],8,Xe)]),_(f(c),{class:`sm-vue-flow`,"default-viewport":{zoom:1},"min-zoom":.2,"max-zoom":4,"fit-view-on-init":``,onNodeClick:Pt},{"node-default":d(({data:e,label:t})=>[_(f(se),{type:`target`,position:f(le).Top},null,8,[`position`]),m(`div`,{class:`sm-fn-inner`,title:`${t}${e?.description?`
3
- `+e.description:``}`},[m(`div`,Qe,l(t),1),e?.description?(C(),h(`div`,$e,l(e.description.length>22?e.description.slice(0,22)+`…`:e.description),1)):S(``,!0)],8,Ze),_(f(se),{type:`source`,position:f(le).Bottom},null,8,[`position`])]),default:d(()=>[_(f(a),{variant:f(ae).Dots,gap:20,size:1,"pattern-color":`#334155`},null,8,[`variant`]),_(f(ie)),_(f(ue),{"node-color":`#3b82f6`})]),_:1}),!O.value&&!Y.value?(C(),h(`div`,et,[(C(),h(`svg`,tt,r[19]||=[m(`polygon`,{points:`3 6 9 3 15 6 21 3 21 18 15 21 9 18 3 21`},null,-1),m(`line`,{x1:`9`,y1:`3`,x2:`9`,y2:`18`},null,-1),m(`line`,{x1:`15`,y1:`6`,x2:`15`,y2:`21`},null,-1)])),m(`p`,null,l(f(T)(`@SRCMAP:输入项目路径后点击开始分析`)),1)])):S(``,!0),Y.value&&!O.value?(C(),h(`div`,nt,[r[20]||=m(`span`,{class:`sm-spinner sm-spinner-lg`},null,-1),m(`p`,null,l(f(T)(`@SRCMAP:AI 正在分析项目结构...`)),1)])):S(``,!0)]),m(`div`,{class:`sm-resizer sm-resizer-h`,onMousedown:r[7]||=e=>W(`log`,e)},null,32),m(`div`,{class:`sm-log-panel`,style:s({height:B.value+`px`})},[m(`div`,rt,[r[21]||=m(`svg`,{viewBox:`0 0 24 24`,width:`12`,height:`12`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`},[m(`polyline`,{points:`4 17 10 11 4 5`}),m(`line`,{x1:`12`,y1:`19`,x2:`20`,y2:`19`})],-1),g(` `+l(f(T)(`@SRCMAP:Agent 日志`))+` `,1),Y.value?(C(),h(`span`,it)):S(``,!0)]),m(`div`,at,[(C(!0),h(x,null,n(D.value.slice(-50),e=>(C(),h(`div`,{key:e.id,class:i([`sm-log-entry`,`sm-log-entry--${e.type}`])},l(e.message),3))),128)),D.value.length===0?(C(),h(`div`,ot,l(f(T)(`@SRCMAP:等待开始分析`)),1)):S(``,!0)],512)],4)],512),[[t,I.value.graph]]),y(m(`div`,{class:`sm-resizer sm-resizer-v`,onMousedown:r[8]||=e=>W(`source`,e)},null,544),[[t,I.value.graph&&I.value.source]]),y(m(`div`,{class:`sm-panel sm-panel-source`,style:s({width:z.value+`px`})},[m(`div`,st,[r[22]||=m(`svg`,{viewBox:`0 0 24 24`,width:`13`,height:`13`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`},[m(`polyline`,{points:`16 18 22 12 16 6`}),m(`polyline`,{points:`8 6 2 12 8 18`})],-1),g(` `+l(M.value||f(T)(`@SRCMAP:源码面板`))+` `,1),X.value?(C(),h(`span`,ct,l(X.value.label),1)):S(``,!0)]),X.value?(C(),h(`div`,lt,[m(`div`,ut,l(X.value.label),1),m(`div`,dt,[g(l(X.value.file),1),X.value.line?(C(),h(`span`,ft,` :`+l(X.value.line),1)):S(``,!0)]),X.value.description?(C(),h(`div`,pt,l(X.value.description),1)):S(``,!0)])):S(``,!0),m(`div`,mt,[N.value?(C(),h(`div`,ht,r[23]||=[m(`span`,{class:`sm-spinner`},null,-1)])):S(``,!0),!N.value&&!j.value?(C(),h(`div`,gt,l(f(T)(`@SRCMAP:点击调用图中的节点查看源码`)),1)):S(``,!0),m(`div`,{ref_key:`monacoContainerRef`,ref:K,class:`sm-monaco-container`},null,512)])],4),[[t,I.value.source]])])])}}}),[[`__scopeId`,`data-v-39b8daed`]]);export{D as default};