jsgui3-server 0.0.148 → 0.0.150

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 (154) hide show
  1. package/.github/agents/Mobile Developer.agent.md +89 -0
  2. package/.github/workflows/control-scan-manifest-check.yml +31 -0
  3. package/AGENTS.md +4 -0
  4. package/README.md +215 -3
  5. package/admin-ui/client.js +81 -51
  6. package/admin-ui/v1/admin_auth_service.js +197 -0
  7. package/admin-ui/v1/admin_user_store.js +71 -0
  8. package/admin-ui/v1/client.js +17 -0
  9. package/admin-ui/v1/controls/admin_shell.js +1399 -0
  10. package/admin-ui/v1/controls/group_box.js +84 -0
  11. package/admin-ui/v1/controls/stat_card.js +125 -0
  12. package/admin-ui/v1/server.js +658 -0
  13. package/admin-ui/v1/utils/formatters.js +68 -0
  14. package/dev-status.svg +139 -0
  15. package/docs/admin-extension-guide.md +345 -0
  16. package/docs/api-reference.md +301 -43
  17. package/docs/books/adaptive-control-improvements/01-control-candidate-matrix.md +122 -0
  18. package/docs/books/adaptive-control-improvements/02-tier-1-layout-playbooks.md +207 -0
  19. package/docs/books/adaptive-control-improvements/03-tier-2-navigation-form-overlay.md +140 -0
  20. package/docs/books/adaptive-control-improvements/04-cross-cutting-platform-functionality.md +141 -0
  21. package/docs/books/adaptive-control-improvements/05-styling-theming-density-upgrades.md +114 -0
  22. package/docs/books/adaptive-control-improvements/06-testing-quality-gates.md +97 -0
  23. package/docs/books/adaptive-control-improvements/07-delivery-roadmap-and-ownership.md +137 -0
  24. package/docs/books/adaptive-control-improvements/08-appendix-tier1-acceptance-and-pr-templates.md +261 -0
  25. package/docs/books/adaptive-control-improvements/README.md +66 -0
  26. package/docs/books/admin-ui-authentication/01-threat-model-and-goals.md +124 -0
  27. package/docs/books/admin-ui-authentication/02-session-model-and-token-model.md +75 -0
  28. package/docs/books/admin-ui-authentication/03-auth-middleware-patterns.md +77 -0
  29. package/docs/books/admin-ui-authentication/README.md +25 -0
  30. package/docs/books/creating-a-new-admin-ui/01-introduction-and-vision.md +130 -0
  31. package/docs/books/creating-a-new-admin-ui/02-architecture-and-data-flow.md +298 -0
  32. package/docs/books/creating-a-new-admin-ui/03-server-introspection.md +381 -0
  33. package/docs/books/creating-a-new-admin-ui/04-admin-module-adapter-layer.md +592 -0
  34. package/docs/books/creating-a-new-admin-ui/05-domain-controls-stat-cards-and-gauges.md +513 -0
  35. package/docs/books/creating-a-new-admin-ui/06-domain-controls-process-manager.md +544 -0
  36. package/docs/books/creating-a-new-admin-ui/07-domain-controls-resource-pool-inspector.md +493 -0
  37. package/docs/books/creating-a-new-admin-ui/08-domain-controls-route-table-and-api-explorer.md +586 -0
  38. package/docs/books/creating-a-new-admin-ui/09-domain-controls-log-viewer-and-activity-feed.md +490 -0
  39. package/docs/books/creating-a-new-admin-ui/10-domain-controls-build-status-and-bundle-inspector.md +526 -0
  40. package/docs/books/creating-a-new-admin-ui/11-domain-controls-configuration-panel.md +808 -0
  41. package/docs/books/creating-a-new-admin-ui/12-admin-shell-layout-sidebar-navigation.md +210 -0
  42. package/docs/books/creating-a-new-admin-ui/13-telemetry-integration.md +556 -0
  43. package/docs/books/creating-a-new-admin-ui/14-realtime-sse-observable-integration.md +485 -0
  44. package/docs/books/creating-a-new-admin-ui/15-styling-theming-aero-design-system.md +521 -0
  45. package/docs/books/creating-a-new-admin-ui/16-testing-and-quality-assurance.md +147 -0
  46. package/docs/books/creating-a-new-admin-ui/17-next-steps-process-resource-roadmap.md +356 -0
  47. package/docs/books/creating-a-new-admin-ui/README.md +68 -0
  48. package/docs/books/device-adaptive-composition/01-platform-feature-audit.md +177 -0
  49. package/docs/books/device-adaptive-composition/02-responsive-composition-model.md +187 -0
  50. package/docs/books/device-adaptive-composition/03-data-model-vs-view-model.md +231 -0
  51. package/docs/books/device-adaptive-composition/04-styling-theme-breakpoints.md +234 -0
  52. package/docs/books/device-adaptive-composition/05-showcase-app-multi-device-assessment.md +193 -0
  53. package/docs/books/device-adaptive-composition/06-implementation-patterns-and-apis.md +346 -0
  54. package/docs/books/device-adaptive-composition/07-testing-harness-and-quality-gates.md +265 -0
  55. package/docs/books/device-adaptive-composition/08-roadmap-and-adoption-plan.md +250 -0
  56. package/docs/books/device-adaptive-composition/README.md +47 -0
  57. package/docs/books/jsgui3-bundling-research-book/00-table-of-contents.md +35 -0
  58. package/docs/books/jsgui3-bundling-research-book/01-pipeline-and-runtime-semantics.md +34 -0
  59. package/docs/books/jsgui3-bundling-research-book/02-javascript-bundling-core.md +36 -0
  60. package/docs/books/jsgui3-bundling-research-book/03-style-extraction-and-css-compilation.md +35 -0
  61. package/docs/books/jsgui3-bundling-research-book/04-static-publishing-and-delivery.md +39 -0
  62. package/docs/books/jsgui3-bundling-research-book/05-current-limits-and-size-bloat-vectors.md +25 -0
  63. package/docs/books/jsgui3-bundling-research-book/06-unused-module-elimination-strategy.md +77 -0
  64. package/docs/books/jsgui3-bundling-research-book/07-jsgui3-html-control-and-mixin-pruning.md +63 -0
  65. package/docs/books/jsgui3-bundling-research-book/08-test-and-verification-methodology.md +43 -0
  66. package/docs/books/jsgui3-bundling-research-book/09-roadmap-and-rollout.md +42 -0
  67. package/docs/books/jsgui3-bundling-research-book/10-further-research-strategies-and-upgrades.md +211 -0
  68. package/docs/books/jsgui3-bundling-research-book/README.md +35 -0
  69. package/docs/bundling-system-deep-dive.md +9 -4
  70. package/docs/comparison-report-express-plex-cpanel.md +549 -0
  71. package/docs/comprehensive-documentation.md +49 -18
  72. package/docs/configuration-reference.md +152 -27
  73. package/docs/core/README.md +19 -0
  74. package/docs/core/jsgui3-server-core-book/00-table-of-contents.md +21 -0
  75. package/docs/core/jsgui3-server-core-book/01-startup-readiness-state-machine.md +41 -0
  76. package/docs/core/jsgui3-server-core-book/02-resource-abstraction-and-lifecycle.md +92 -0
  77. package/docs/core/jsgui3-server-core-book/03-resource-pool-and-event-topology.md +47 -0
  78. package/docs/core/jsgui3-server-core-book/04-sse-publisher-semantics.md +41 -0
  79. package/docs/core/jsgui3-server-core-book/05-serve-factory-resource-wiring.md +46 -0
  80. package/docs/core/jsgui3-server-core-book/06-e2e-testing-methodology.md +48 -0
  81. package/docs/core/jsgui3-server-core-book/07-defect-detection-and-hardening-loop.md +47 -0
  82. package/docs/designs/server-admin-interface-aero.svg +611 -0
  83. package/docs/publishers-guide.md +59 -4
  84. package/docs/resources-guide.md +184 -35
  85. package/docs/simple-server-api-design.md +72 -17
  86. package/docs/system-architecture.md +18 -14
  87. package/docs/troubleshooting.md +84 -53
  88. package/examples/controls/15) window, observable SSE/server.js +6 -1
  89. package/examples/controls/19) window, auto observable ui/server.js +9 -0
  90. package/examples/controls/20) window, task manager app/README.md +133 -0
  91. package/examples/controls/20) window, task manager app/client.js +797 -0
  92. package/examples/controls/20) window, task manager app/server.js +178 -0
  93. package/examples/controls/6) window, color_palette/client.js +165 -68
  94. package/examples/controls/9) window, date picker/client.js +362 -76
  95. package/examples/controls/9b) window, shared data.model mirrored date pickers/client.js +104 -83
  96. package/examples/jsgui3-html/06) theming/client.js +22 -1
  97. package/examples/jsgui3-html/10) binding-debugger/client.js +137 -1
  98. package/http/responders/static/Static_Route_HTTP_Responder.js +52 -34
  99. package/lab/experiments/capture-color-controls.js +196 -0
  100. package/lab/results/screenshots/color-controls/full_page.png +0 -0
  101. package/lab/results/screenshots/color-controls/section_1_color_grid_12x12.png +0 -0
  102. package/lab/results/screenshots/color-controls/section_2_color_grid_4x2.png +0 -0
  103. package/lab/results/screenshots/color-controls/section_3_color_palette.png +0 -0
  104. package/lab/results/screenshots/color-controls/section_4_palette_comparison.png +0 -0
  105. package/lab/results/screenshots/color-controls/section_5_raw_swatches.png +0 -0
  106. package/lab/results/screenshots/color-controls/section_6_optimized_crayola.png +0 -0
  107. package/lab/results/screenshots/color-controls/section_7_pastel_palette.png +0 -0
  108. package/lab/results/screenshots/color-controls/section_8_extended_144.png +0 -0
  109. package/lab/screenshot-utils.js +248 -0
  110. package/module.js +12 -0
  111. package/package.json +12 -2
  112. package/publishers/Publishers.js +4 -3
  113. package/publishers/helpers/assigners/static-compressed-response-buffers/Single_Control_Webpage_Server_Static_Compressed_Response_Buffers_Assigner.js +5 -5
  114. package/publishers/http-sse-publisher.js +341 -0
  115. package/resources/process-resource.js +950 -0
  116. package/resources/processors/bundlers/js/esbuild/Advanced_JS_Bundler_Using_ESBuild.js +129 -33
  117. package/resources/processors/bundlers/js/esbuild/Core_JS_Non_Minifying_Bundler_Using_ESBuild.js +18 -7
  118. package/resources/processors/bundlers/js/esbuild/JSGUI3_HTML_Control_Optimizer.js +829 -0
  119. package/resources/remote-process-resource.js +355 -0
  120. package/resources/server-resource-pool.js +354 -41
  121. package/serve-factory.js +442 -259
  122. package/server.js +288 -13
  123. package/tests/README.md +71 -4
  124. package/tests/admin-ui-jsgui-controls.test.js +581 -0
  125. package/tests/admin-ui-render.test.js +24 -0
  126. package/tests/assigners.test.js +56 -40
  127. package/tests/bundling-default-control-elimination.puppeteer.test.js +260 -0
  128. package/tests/configuration-validation.test.js +21 -18
  129. package/tests/content-analysis.test.js +7 -6
  130. package/tests/control-optimizer-cache-behavior.test.js +52 -0
  131. package/tests/control-scan-manifest-regression.test.js +144 -0
  132. package/tests/end-to-end.test.js +15 -14
  133. package/tests/error-handling.test.js +222 -179
  134. package/tests/fixtures/bundling-default-button-client.js +37 -0
  135. package/tests/fixtures/bundling-default-window-client.js +34 -0
  136. package/tests/fixtures/control_scan_manifest_expectations.json +48 -0
  137. package/tests/fixtures/resource-monitor-client.js +319 -0
  138. package/tests/helpers/puppeteer-e2e-harness.js +317 -0
  139. package/tests/http-sse-publisher.test.js +136 -0
  140. package/tests/performance.test.js +69 -65
  141. package/tests/process-resource.test.js +138 -0
  142. package/tests/publishers.test.js +7 -7
  143. package/tests/remote-process-resource.test.js +160 -0
  144. package/tests/sass-controls.e2e.test.js +7 -1
  145. package/tests/serve-resources.test.js +270 -0
  146. package/tests/serve.test.js +120 -50
  147. package/tests/server-resource-pool.test.js +106 -0
  148. package/tests/small-controls-bundle-size.test.js +252 -0
  149. package/tests/test-runner.js +14 -1
  150. package/tests/window-examples.puppeteer.test.js +204 -1
  151. package/tests/window-resource-integration.puppeteer.test.js +585 -0
  152. package/tests/temp_invalid.js +0 -7
  153. package/tests/temp_invalid_utf8.js +0 -1
  154. package/tests/temp_malformed.js +0 -10
@@ -0,0 +1,611 @@
1
+ <svg viewBox="0 0 1200 920" xmlns="http://www.w3.org/2000/svg">
2
+ <defs>
3
+ <!-- Aero title bar -->
4
+ <linearGradient id="aeroTitle" x1="0" y1="0" x2="0" y2="1">
5
+ <stop offset="0%" stop-color="#B8D6F0"/>
6
+ <stop offset="15%" stop-color="#8CBAE8"/>
7
+ <stop offset="50%" stop-color="#6AA4DD"/>
8
+ <stop offset="85%" stop-color="#82B4E4"/>
9
+ <stop offset="100%" stop-color="#A0CCF0"/>
10
+ </linearGradient>
11
+ <linearGradient id="captionBtn" x1="0" y1="0" x2="0" y2="1">
12
+ <stop offset="0%" stop-color="rgba(255,255,255,0.45)"/>
13
+ <stop offset="50%" stop-color="rgba(200,220,240,0.3)"/>
14
+ <stop offset="100%" stop-color="rgba(180,210,240,0.2)"/>
15
+ </linearGradient>
16
+ <linearGradient id="closeBtn" x1="0" y1="0" x2="0" y2="1">
17
+ <stop offset="0%" stop-color="#F08080"/>
18
+ <stop offset="45%" stop-color="#E03030"/>
19
+ <stop offset="55%" stop-color="#C82020"/>
20
+ <stop offset="100%" stop-color="#D04040"/>
21
+ </linearGradient>
22
+ <linearGradient id="sidebarBg" x1="0" y1="0" x2="0" y2="1">
23
+ <stop offset="0%" stop-color="#3A6898"/>
24
+ <stop offset="100%" stop-color="#2A4E78"/>
25
+ </linearGradient>
26
+ <linearGradient id="navActive" x1="0" y1="0" x2="0" y2="1">
27
+ <stop offset="0%" stop-color="rgba(255,255,255,0.28)"/>
28
+ <stop offset="100%" stop-color="rgba(255,255,255,0.12)"/>
29
+ </linearGradient>
30
+ <linearGradient id="premBtn" x1="0" y1="0" x2="0" y2="1">
31
+ <stop offset="0%" stop-color="#F4F8FD"/>
32
+ <stop offset="45%" stop-color="#D8E4F0"/>
33
+ <stop offset="55%" stop-color="#C0D4E8"/>
34
+ <stop offset="100%" stop-color="#CCDDEE"/>
35
+ </linearGradient>
36
+ <linearGradient id="btnPrimary" x1="0" y1="0" x2="0" y2="1">
37
+ <stop offset="0%" stop-color="#C0D8F0"/>
38
+ <stop offset="45%" stop-color="#7AACE0"/>
39
+ <stop offset="55%" stop-color="#5090D0"/>
40
+ <stop offset="100%" stop-color="#68A4DD"/>
41
+ </linearGradient>
42
+ <linearGradient id="statCard" x1="0" y1="0" x2="0" y2="1">
43
+ <stop offset="0%" stop-color="#F6F4F0"/>
44
+ <stop offset="100%" stop-color="#EAE8E2"/>
45
+ </linearGradient>
46
+ <linearGradient id="contentBg" x1="0" y1="0" x2="0" y2="1">
47
+ <stop offset="0%" stop-color="#F0EDE6"/>
48
+ <stop offset="100%" stop-color="#E8E4DC"/>
49
+ </linearGradient>
50
+ <linearGradient id="toolbar" x1="0" y1="0" x2="0" y2="1">
51
+ <stop offset="0%" stop-color="#FAFAFA"/>
52
+ <stop offset="100%" stop-color="#E8E4DC"/>
53
+ </linearGradient>
54
+ <linearGradient id="groupbox" x1="0" y1="0" x2="0" y2="1">
55
+ <stop offset="0%" stop-color="#FFFFFF"/>
56
+ <stop offset="100%" stop-color="#F4F2EC"/>
57
+ </linearGradient>
58
+ <linearGradient id="fieldBg" x1="0" y1="0" x2="0" y2="1">
59
+ <stop offset="0%" stop-color="#E8E4DD"/>
60
+ <stop offset="3%" stop-color="#FFFFFF"/>
61
+ <stop offset="100%" stop-color="#FFFFFF"/>
62
+ </linearGradient>
63
+ <linearGradient id="sky" x1="0" y1="0" x2="0" y2="1">
64
+ <stop offset="0%" stop-color="#1A3A6A"/>
65
+ <stop offset="100%" stop-color="#5A8EC0"/>
66
+ </linearGradient>
67
+ <linearGradient id="tabActive" x1="0" y1="0" x2="0" y2="1">
68
+ <stop offset="0%" stop-color="#FFFFFF"/>
69
+ <stop offset="100%" stop-color="#F6F4F0"/>
70
+ </linearGradient>
71
+ <linearGradient id="tabInactive" x1="0" y1="0" x2="0" y2="1">
72
+ <stop offset="0%" stop-color="#E8E4DC"/>
73
+ <stop offset="100%" stop-color="#D4D0C8"/>
74
+ </linearGradient>
75
+ <linearGradient id="procPurple" x1="0" y1="0" x2="0" y2="1">
76
+ <stop offset="0%" stop-color="#E8E0F0"/>
77
+ <stop offset="100%" stop-color="#D8D0E8"/>
78
+ </linearGradient>
79
+ <linearGradient id="procAmber" x1="0" y1="0" x2="0" y2="1">
80
+ <stop offset="0%" stop-color="#FFF0D0"/>
81
+ <stop offset="100%" stop-color="#F0E4C0"/>
82
+ </linearGradient>
83
+ <linearGradient id="procCyan" x1="0" y1="0" x2="0" y2="1">
84
+ <stop offset="0%" stop-color="#D8F0F8"/>
85
+ <stop offset="100%" stop-color="#C8E4F0"/>
86
+ </linearGradient>
87
+ <linearGradient id="statusbar" x1="0" y1="0" x2="0" y2="1">
88
+ <stop offset="0%" stop-color="#ECE9D8"/>
89
+ <stop offset="100%" stop-color="#D4D0C8"/>
90
+ </linearGradient>
91
+ <filter id="winShadow" x="-3%" y="-2%" width="110%" height="110%">
92
+ <feDropShadow dx="3" dy="3" stdDeviation="5" flood-color="rgba(0,0,0,0.3)"/>
93
+ </filter>
94
+ <filter id="cardShadow" x="-2%" y="-3%" width="106%" height="112%">
95
+ <feDropShadow dx="0" dy="1" stdDeviation="2" flood-color="rgba(0,0,0,0.12)"/>
96
+ </filter>
97
+ <marker id="arrowBlue" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto">
98
+ <polygon points="0 0, 8 3, 0 6" fill="#4488CC"/>
99
+ </marker>
100
+ <marker id="arrowGray" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto">
101
+ <polygon points="0 0, 8 3, 0 6" fill="#7090B0"/>
102
+ </marker>
103
+ <marker id="arrowGreen" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto">
104
+ <polygon points="0 0, 8 3, 0 6" fill="#48A848"/>
105
+ </marker>
106
+ </defs>
107
+ <style>text{font-family:'Segoe UI',Tahoma,sans-serif}</style>
108
+
109
+ <!-- DESKTOP BACKGROUND -->
110
+ <rect width="1200" height="920" fill="url(#sky)"/>
111
+
112
+ <!-- MAIN WINDOW -->
113
+ <g transform="translate(20, 12)" filter="url(#winShadow)">
114
+ <!-- Window glass border -->
115
+ <rect width="1160" height="880" rx="6" fill="rgba(100,160,220,0.35)" stroke="rgba(50,100,170,0.5)" stroke-width="1"/>
116
+ <rect x="1" y="1" width="1158" height="878" rx="5" fill="rgba(255,255,255,0.06)" stroke="rgba(255,255,255,0.18)" stroke-width="1"/>
117
+
118
+ <!-- TITLE BAR -->
119
+ <rect x="2" y="2" width="1156" height="30" rx="4" fill="url(#aeroTitle)"/>
120
+ <rect x="3" y="3" width="1154" height="10" rx="3" fill="rgba(255,255,255,0.28)"/>
121
+ <rect x="10" y="8" width="16" height="16" rx="3" fill="#4488CC" stroke="#2A5A8A" stroke-width="0.5"/>
122
+ <text x="14" y="20" font-size="10" fill="#fff" font-weight="700">⚙</text>
123
+ <text x="34" y="22" font-size="12" fill="#0A1A2E" font-weight="600">jsgui3 Server Administration — localhost:3000</text>
124
+
125
+ <!-- Caption buttons -->
126
+ <g transform="translate(1067, 4)">
127
+ <rect width="26" height="22" rx="2" fill="url(#captionBtn)" stroke="rgba(100,140,180,0.35)" stroke-width="0.5"/>
128
+ <line x1="7" y1="14" x2="19" y2="14" stroke="#1A3060" stroke-width="1.3"/>
129
+ </g>
130
+ <g transform="translate(1095, 4)">
131
+ <rect width="26" height="22" rx="2" fill="url(#captionBtn)" stroke="rgba(100,140,180,0.35)" stroke-width="0.5"/>
132
+ <rect x="7" y="6" width="12" height="10" rx="1" fill="none" stroke="#1A3060" stroke-width="1.3"/>
133
+ </g>
134
+ <g transform="translate(1123, 4)">
135
+ <rect width="28" height="22" rx="2" fill="url(#closeBtn)"/>
136
+ <line x1="9" y1="6" x2="20" y2="16" stroke="#fff" stroke-width="1.8"/>
137
+ <line x1="20" y1="6" x2="9" y2="16" stroke="#fff" stroke-width="1.8"/>
138
+ </g>
139
+
140
+ <!-- TOOLBAR -->
141
+ <rect x="2" y="32" width="1156" height="28" fill="url(#toolbar)"/>
142
+ <line x1="2" y1="32" x2="1158" y2="32" stroke="rgba(255,255,255,0.6)" stroke-width="0.5"/>
143
+ <!-- Grip -->
144
+ <rect x="6" y="36" width="2" height="20" fill="rgba(255,255,255,0.7)"/>
145
+ <rect x="7" y="37" width="2" height="20" fill="rgba(0,0,0,0.12)"/>
146
+ <rect x="10" y="36" width="2" height="20" fill="rgba(255,255,255,0.7)"/>
147
+ <rect x="11" y="37" width="2" height="20" fill="rgba(0,0,0,0.12)"/>
148
+
149
+ <rect x="20" y="36" width="60" height="20" rx="3" fill="url(#premBtn)" stroke="#7F9DB9" stroke-width="0.5"/>
150
+ <rect x="21" y="37" width="58" height="8" rx="2" fill="rgba(255,255,255,0.3)"/>
151
+ <text x="31" y="50" font-size="10" fill="#1A3060">⟳ Refresh</text>
152
+
153
+ <rect x="86" y="36" width="50" height="20" rx="3" fill="url(#premBtn)" stroke="#7F9DB9" stroke-width="0.5"/>
154
+ <rect x="87" y="37" width="48" height="8" rx="2" fill="rgba(255,255,255,0.3)"/>
155
+ <text x="97" y="50" font-size="10" fill="#1A3060">⏹ Stop</text>
156
+
157
+ <line x1="142" y1="38" x2="142" y2="54" stroke="#ACA899" stroke-width="1"/>
158
+ <line x1="143" y1="38" x2="143" y2="54" stroke="#fff" stroke-width="1"/>
159
+
160
+ <rect x="150" y="36" width="66" height="20" rx="3" fill="url(#premBtn)" stroke="#7F9DB9" stroke-width="0.5"/>
161
+ <rect x="151" y="37" width="64" height="8" rx="2" fill="rgba(255,255,255,0.3)"/>
162
+ <text x="160" y="50" font-size="10" fill="#1A3060">⟳ Restart</text>
163
+
164
+ <line x1="222" y1="38" x2="222" y2="54" stroke="#ACA899" stroke-width="1"/>
165
+ <line x1="223" y1="38" x2="223" y2="54" stroke="#fff" stroke-width="1"/>
166
+
167
+ <rect x="230" y="36" width="62" height="20" rx="3" fill="url(#premBtn)" stroke="#7F9DB9" stroke-width="0.5"/>
168
+ <rect x="231" y="37" width="60" height="8" rx="2" fill="rgba(255,255,255,0.3)"/>
169
+ <text x="240" y="50" font-size="10" fill="#1A3060">📋 Logs</text>
170
+
171
+ <!-- Server status in toolbar -->
172
+ <circle cx="320" cy="46" r="4" fill="#48B848"/>
173
+ <text x="330" y="50" font-size="10" fill="#2A6A2A" font-weight="500">Server Online</text>
174
+ <text x="420" y="50" font-size="10" fill="#888">Port 3000 · PID 7824 · Uptime 4h 23m</text>
175
+ <text x="1040" y="50" font-size="9" fill="#808080">v0.0.143 · Node 20.11</text>
176
+
177
+ <line x1="2" y1="60" x2="1158" y2="60" stroke="#D4D0C8" stroke-width="1"/>
178
+
179
+ <!-- ════════════════════════════════════ -->
180
+ <!-- SIDEBAR -->
181
+ <!-- ════════════════════════════════════ -->
182
+ <rect x="2" y="60" width="168" height="794" fill="url(#sidebarBg)"/>
183
+ <line x1="170" y1="60" x2="170" y2="854" stroke="rgba(0,0,0,0.15)" stroke-width="1"/>
184
+
185
+ <!-- Server identity -->
186
+ <rect x="10" y="68" width="152" height="48" rx="4" fill="rgba(255,255,255,0.08)" stroke="rgba(255,255,255,0.12)" stroke-width="0.5"/>
187
+ <rect x="16" y="76" width="28" height="28" rx="5" fill="#5A9ACC" stroke="#3A7AAA" stroke-width="0.5"/>
188
+ <text x="25" y="95" font-size="13" fill="#fff" font-weight="700">js</text>
189
+ <text x="52" y="88" font-size="11" fill="#fff" font-weight="600">jsgui3-server</text>
190
+ <text x="52" y="104" font-size="9" fill="rgba(255,255,255,0.6)">Node.js · HTTP · SSR</text>
191
+
192
+ <!-- Nav -->
193
+ <text x="14" y="136" font-size="9" fill="rgba(255,255,255,0.45)" font-weight="600" letter-spacing="1">OVERVIEW</text>
194
+ <rect x="6" y="142" width="156" height="26" rx="3" fill="url(#navActive)" stroke="rgba(255,255,255,0.15)" stroke-width="0.5"/>
195
+ <rect x="6" y="142" width="3" height="26" rx="1" fill="#fff"/>
196
+ <text x="18" y="159" font-size="11" fill="#fff" font-weight="600">⬡ Dashboard</text>
197
+ <text x="18" y="186" font-size="11" fill="rgba(255,255,255,0.8)">⚙ Processes</text>
198
+ <text x="18" y="208" font-size="11" fill="rgba(255,255,255,0.8)">⬡ Resources</text>
199
+
200
+ <text x="14" y="236" font-size="9" fill="rgba(255,255,255,0.45)" font-weight="600" letter-spacing="1">SERVER</text>
201
+ <text x="18" y="256" font-size="11" fill="rgba(255,255,255,0.8)">⇄ Routes</text>
202
+ <text x="18" y="278" font-size="11" fill="rgba(255,255,255,0.8)">📦 Bundles</text>
203
+ <text x="18" y="300" font-size="11" fill="rgba(255,255,255,0.8)">🔌 API</text>
204
+
205
+ <text x="14" y="328" font-size="9" fill="rgba(255,255,255,0.45)" font-weight="600" letter-spacing="1">DIAGNOSTICS</text>
206
+ <text x="18" y="348" font-size="11" fill="rgba(255,255,255,0.8)">📊 Metrics</text>
207
+ <text x="18" y="370" font-size="11" fill="rgba(255,255,255,0.8)">📋 Logs</text>
208
+ <text x="18" y="392" font-size="11" fill="rgba(255,255,255,0.8)">🔍 Inspector</text>
209
+
210
+ <!-- Health -->
211
+ <rect x="6" y="420" width="156" height="1" fill="rgba(255,255,255,0.12)"/>
212
+ <text x="14" y="444" font-size="9" fill="rgba(255,255,255,0.45)" font-weight="600" letter-spacing="1">HEALTH</text>
213
+ <circle cx="22" cy="462" r="4" fill="#48B848"/>
214
+ <text x="32" y="466" font-size="10" fill="rgba(255,255,255,0.75)">Server Running</text>
215
+ <circle cx="22" cy="482" r="4" fill="#48B848"/>
216
+ <text x="32" y="486" font-size="10" fill="rgba(255,255,255,0.75)">Bundle Ready</text>
217
+ <circle cx="22" cy="502" r="4" fill="#48B848"/>
218
+ <text x="32" y="506" font-size="10" fill="rgba(255,255,255,0.75)">Pool 5/5</text>
219
+ <circle cx="22" cy="522" r="4" fill="#D8A020"/>
220
+ <text x="32" y="526" font-size="10" fill="rgba(255,255,255,0.75)">1 Warning</text>
221
+
222
+ <!-- Boot status -->
223
+ <rect x="6" y="555" width="156" height="1" fill="rgba(255,255,255,0.12)"/>
224
+ <text x="14" y="578" font-size="9" fill="rgba(255,255,255,0.45)" font-weight="600" letter-spacing="1">BOOT STATUS</text>
225
+ <rect x="10" y="586" width="66" height="18" rx="3" fill="rgba(72,184,72,0.25)" stroke="rgba(72,184,72,0.5)" stroke-width="0.5"/>
226
+ <text x="18" y="599" font-size="9" fill="#90E890">Cold ✓</text>
227
+ <rect x="82" y="586" width="70" height="18" rx="3" fill="rgba(72,184,72,0.25)" stroke="rgba(72,184,72,0.5)" stroke-width="0.5"/>
228
+ <text x="90" y="599" font-size="9" fill="#90E890">Warm ✓</text>
229
+ <rect x="10" y="610" width="66" height="18" rx="3" fill="rgba(90,140,200,0.3)" stroke="rgba(90,140,200,0.5)" stroke-width="0.5"/>
230
+ <text x="16" y="623" font-size="9" fill="#A8C8F0">debug: on</text>
231
+
232
+ <!-- ════════════════════════════════════ -->
233
+ <!-- CONTENT AREA -->
234
+ <!-- ════════════════════════════════════ -->
235
+ <rect x="170" y="60" width="988" height="794" fill="url(#contentBg)"/>
236
+
237
+ <!-- STAT CARDS -->
238
+ <rect x="186" y="74" width="220" height="74" rx="4" fill="url(#statCard)" stroke="#C0B8A8" stroke-width="1" filter="url(#cardShadow)"/>
239
+ <text x="200" y="92" font-size="9" fill="#808080" font-weight="600" letter-spacing="0.5">MAIN PROCESS</text>
240
+ <text x="200" y="116" font-size="22" fill="#2A4060" font-weight="700">PID 7824</text>
241
+ <circle cx="382" cy="106" r="6" fill="none" stroke="#48B848" stroke-width="2"/>
242
+ <circle cx="382" cy="106" r="3" fill="#48B848"/>
243
+ <text x="200" y="138" font-size="9" fill="#48A848">▲ Running — 128 MB RSS</text>
244
+
245
+ <rect x="418" y="74" width="220" height="74" rx="4" fill="url(#statCard)" stroke="#C0B8A8" stroke-width="1" filter="url(#cardShadow)"/>
246
+ <text x="432" y="92" font-size="9" fill="#808080" font-weight="600" letter-spacing="0.5">CHILD PROCESSES</text>
247
+ <text x="432" y="116" font-size="22" fill="#2A4060" font-weight="700">3 <tspan font-size="12" fill="#808080">active</tspan></text>
248
+ <text x="432" y="138" font-size="9" fill="#4488CC">Bundler · Compiler · Watcher</text>
249
+
250
+ <rect x="650" y="74" width="220" height="74" rx="4" fill="url(#statCard)" stroke="#C0B8A8" stroke-width="1" filter="url(#cardShadow)"/>
251
+ <text x="664" y="92" font-size="9" fill="#808080" font-weight="600" letter-spacing="0.5">RESOURCE POOL</text>
252
+ <text x="664" y="116" font-size="22" fill="#2A4060" font-weight="700">5 <tspan font-size="12" fill="#808080">loaded</tspan></text>
253
+ <text x="664" y="138" font-size="9" fill="#48A848">All requirements met</text>
254
+
255
+ <rect x="882" y="74" width="130" height="74" rx="4" fill="url(#statCard)" stroke="#C0B8A8" stroke-width="1" filter="url(#cardShadow)"/>
256
+ <text x="896" y="92" font-size="9" fill="#808080" font-weight="600" letter-spacing="0.5">ROUTES</text>
257
+ <text x="896" y="116" font-size="22" fill="#2A4060" font-weight="700">7</text>
258
+ <text x="896" y="138" font-size="9" fill="#4488CC">3 auto · 2 API · 2 static</text>
259
+
260
+ <rect x="1024" y="74" width="118" height="74" rx="4" fill="url(#statCard)" stroke="#C0B8A8" stroke-width="1" filter="url(#cardShadow)"/>
261
+ <text x="1038" y="92" font-size="9" fill="#808080" font-weight="600" letter-spacing="0.5">REQUESTS / MIN</text>
262
+ <text x="1038" y="116" font-size="22" fill="#2A4060" font-weight="700">42</text>
263
+ <text x="1038" y="138" font-size="9" fill="#48A848">▲ 12% from last hour</text>
264
+
265
+ <!-- ════════════════════════════════════ -->
266
+ <!-- PROCESSES GROUP BOX -->
267
+ <!-- ════════════════════════════════════ -->
268
+ <rect x="186" y="160" width="460" height="200" rx="4" fill="url(#groupbox)" stroke="#B0A898" stroke-width="1" filter="url(#cardShadow)"/>
269
+ <rect x="196" y="153" width="80" height="14" fill="url(#contentBg)"/>
270
+ <text x="202" y="164" font-size="11" fill="#2A4060" font-weight="600"> Processes </text>
271
+
272
+ <!-- Main server process -->
273
+ <rect x="202" y="178" width="428" height="50" rx="4" fill="url(#premBtn)" stroke="#7F9DB9" stroke-width="1"/>
274
+ <rect x="203" y="179" width="426" height="5" rx="2" fill="url(#btnPrimary)"/>
275
+ <circle cx="220" cy="204" r="4" fill="#48B848"/>
276
+ <text x="230" y="200" font-size="11" fill="#1A3060" font-weight="600">Main Server Process</text>
277
+ <text x="230" y="216" font-size="9" fill="#808080">HTTP Server · Router · SSR Engine · API Publisher</text>
278
+ <rect x="530" y="194" width="72" height="18" rx="3" fill="rgba(72,184,72,0.15)" stroke="#48B848" stroke-width="0.5"/>
279
+ <circle cx="542" cy="203" r="3" fill="#48B848"/>
280
+ <text x="550" y="207" font-size="8" fill="#2A6A2A" font-weight="500">RUNNING</text>
281
+ <text x="440" y="216" font-size="8" fill="#808080" text-anchor="end">PID 7824</text>
282
+ <text x="530" y="216" font-size="8" fill="#808080">128 MB</text>
283
+
284
+ <!-- Fork arrows -->
285
+ <line x1="310" y1="228" x2="310" y2="250" stroke="#7090B0" stroke-width="1.2" marker-end="url(#arrowGray)"/>
286
+ <line x1="416" y1="228" x2="416" y2="250" stroke="#7090B0" stroke-width="1.2" marker-end="url(#arrowGray)"/>
287
+ <line x1="530" y1="228" x2="530" y2="250" stroke="#7090B0" stroke-width="1.2" marker-end="url(#arrowGray)"/>
288
+ <text x="416" y="244" font-size="8" fill="#7090B0" text-anchor="middle">fork()</text>
289
+
290
+ <!-- Child: Bundle Builder -->
291
+ <rect x="218" y="254" width="148" height="56" rx="4" fill="url(#procPurple)" stroke="#A090C0" stroke-width="1"/>
292
+ <rect x="219" y="255" width="146" height="4" rx="1" fill="#9070C0"/>
293
+ <circle cx="232" cy="274" r="3" fill="#48B848"/>
294
+ <text x="240" y="277" font-size="10" fill="#4A3070" font-weight="600">Bundle Builder</text>
295
+ <text x="232" y="292" font-size="8" fill="#7070A0">JS bundling · CSS extraction</text>
296
+ <text x="232" y="304" font-size="8" fill="#908888">PID 7830 · 86 MB</text>
297
+
298
+ <!-- Child: Compiler -->
299
+ <rect x="380" y="254" width="126" height="56" rx="4" fill="url(#procAmber)" stroke="#C0A860" stroke-width="1"/>
300
+ <rect x="381" y="255" width="124" height="4" rx="1" fill="#D8A020"/>
301
+ <circle cx="394" cy="274" r="3" fill="#48B848"/>
302
+ <text x="402" y="277" font-size="10" fill="#6A5020" font-weight="600">Compiler</text>
303
+ <text x="394" y="292" font-size="8" fill="#908060">Babel · Source maps</text>
304
+ <text x="394" y="304" font-size="8" fill="#908888">PID 7836 · 64 MB</text>
305
+
306
+ <!-- Child: Watcher -->
307
+ <rect x="520" y="254" width="110" height="56" rx="4" fill="url(#procCyan)" stroke="#70A8C0" stroke-width="1"/>
308
+ <rect x="521" y="255" width="108" height="4" rx="1" fill="#4098B8"/>
309
+ <circle cx="534" cy="274" r="3" fill="#48B848"/>
310
+ <text x="542" y="277" font-size="10" fill="#205868" font-weight="600">File Watcher</text>
311
+ <text x="534" y="292" font-size="8" fill="#608898">Change detection</text>
312
+ <text x="534" y="304" font-size="8" fill="#908888">PID 7842 · 24 MB</text>
313
+
314
+ <text x="204" y="350" font-size="8" fill="#908888">Total memory: 302 MB across 4 processes</text>
315
+
316
+ <!-- ════════════════════════════════════ -->
317
+ <!-- RESOURCE POOL GROUP BOX -->
318
+ <!-- ════════════════════════════════════ -->
319
+ <rect x="660" y="160" width="496" height="200" rx="4" fill="url(#groupbox)" stroke="#B0A898" stroke-width="1" filter="url(#cardShadow)"/>
320
+ <rect x="670" y="153" width="100" height="14" fill="url(#contentBg)"/>
321
+ <text x="676" y="164" font-size="11" fill="#2A4060" font-weight="600"> Resource Pool </text>
322
+ <rect x="1070" y="156" width="55" height="16" rx="3" fill="rgba(72,184,72,0.12)" stroke="#48B848" stroke-width="0.5"/>
323
+ <text x="1098" y="167" text-anchor="middle" font-size="8" fill="#2A6A2A" font-weight="500">5 / 5</text>
324
+
325
+ <!-- Table header -->
326
+ <rect x="676" y="178" width="464" height="20" fill="#E8E4DC"/>
327
+ <line x1="676" y1="178" x2="1140" y2="178" stroke="#C0B8A8" stroke-width="0.5"/>
328
+ <line x1="676" y1="198" x2="1140" y2="198" stroke="#C0B8A8" stroke-width="0.5"/>
329
+ <text x="688" y="192" font-size="9" fill="#606060" font-weight="600">RESOURCE</text>
330
+ <text x="870" y="192" font-size="9" fill="#606060" font-weight="600">TYPE</text>
331
+ <text x="1020" y="192" font-size="9" fill="#606060" font-weight="600">STATUS</text>
332
+ <text x="1100" y="192" font-size="9" fill="#606060" font-weight="600">MEM</text>
333
+
334
+ <!-- Row 1 -->
335
+ <line x1="676" y1="220" x2="1140" y2="220" stroke="#E0DCD4" stroke-width="0.5"/>
336
+ <rect x="688" y="204" width="7" height="7" rx="1.5" fill="#9070C0"/>
337
+ <text x="700" y="213" font-size="10" fill="#2A4060" font-weight="500">Compiler_Babel</text>
338
+ <text x="870" y="213" font-size="9" fill="#7060A0">Compiler_Resource</text>
339
+ <circle cx="1028" cy="210" r="3" fill="#48B848"/>
340
+ <text x="1036" y="214" font-size="9" fill="#2A6A2A">Ready</text>
341
+ <text x="1100" y="214" font-size="9" fill="#808080">42 MB</text>
342
+
343
+ <!-- Row 2 -->
344
+ <line x1="676" y1="242" x2="1140" y2="242" stroke="#E0DCD4" stroke-width="0.5"/>
345
+ <rect x="688" y="226" width="7" height="7" rx="1.5" fill="#4488CC"/>
346
+ <text x="700" y="235" font-size="10" fill="#2A4060" font-weight="500">Compilation_Manager</text>
347
+ <text x="870" y="235" font-size="9" fill="#3870A0">Compilation_Resource</text>
348
+ <circle cx="1028" cy="232" r="3" fill="#48B848"/>
349
+ <text x="1036" y="236" font-size="9" fill="#2A6A2A">Ready</text>
350
+ <text x="1100" y="236" font-size="9" fill="#808080">18 MB</text>
351
+
352
+ <!-- Row 3 -->
353
+ <line x1="676" y1="264" x2="1140" y2="264" stroke="#E0DCD4" stroke-width="0.5"/>
354
+ <rect x="688" y="248" width="7" height="7" rx="1.5" fill="#48B848"/>
355
+ <text x="700" y="257" font-size="10" fill="#2A4060" font-weight="500">Session_Store</text>
356
+ <text x="870" y="257" font-size="9" fill="#2A6A2A">Data_KV_Resource</text>
357
+ <circle cx="1028" cy="254" r="3" fill="#48B848"/>
358
+ <text x="1036" y="258" font-size="9" fill="#2A6A2A">Ready</text>
359
+ <text x="1100" y="258" font-size="9" fill="#808080">8 MB</text>
360
+
361
+ <!-- Row 4 -->
362
+ <line x1="676" y1="286" x2="1140" y2="286" stroke="#E0DCD4" stroke-width="0.5"/>
363
+ <rect x="688" y="270" width="7" height="7" rx="1.5" fill="#D8A020"/>
364
+ <text x="700" y="279" font-size="10" fill="#2A4060" font-weight="500">Template_Pipeline</text>
365
+ <text x="870" y="279" font-size="9" fill="#8A6A20">Data_Transform_Resource</text>
366
+ <circle cx="1028" cy="276" r="3" fill="#48B848"/>
367
+ <text x="1036" y="280" font-size="9" fill="#2A6A2A">Ready</text>
368
+ <text x="1100" y="280" font-size="9" fill="#808080">4 MB</text>
369
+
370
+ <!-- Row 5 -->
371
+ <line x1="676" y1="308" x2="1140" y2="308" stroke="#E0DCD4" stroke-width="0.5"/>
372
+ <rect x="688" y="292" width="7" height="7" rx="1.5" fill="#4098B8"/>
373
+ <text x="700" y="301" font-size="10" fill="#2A4060" font-weight="500">CSS_Extractor</text>
374
+ <text x="870" y="301" font-size="9" fill="#3080A0">Resource</text>
375
+ <circle cx="1028" cy="298" r="3" fill="#48B848"/>
376
+ <text x="1036" y="302" font-size="9" fill="#2A6A2A">Ready</text>
377
+ <text x="1100" y="302" font-size="9" fill="#808080">2 MB</text>
378
+
379
+ <text x="678" y="350" font-size="8" fill="#908888">All resources initialised · Total pool memory: 74 MB</text>
380
+
381
+ <!-- ════════════════════════════════════ -->
382
+ <!-- ROUTES & BUILD TABBED PANEL -->
383
+ <!-- ════════════════════════════════════ -->
384
+
385
+ <!-- Tab strip -->
386
+ <rect x="186" y="380" width="970" height="24" fill="#D4D0C8"/>
387
+ <!-- Active tab -->
388
+ <rect x="186" y="376" width="120" height="28" rx="0" fill="url(#tabActive)" stroke="#B0A898" stroke-width="1"/>
389
+ <line x1="186" y1="404" x2="306" y2="404" stroke="#F6F4F0" stroke-width="1"/>
390
+ <text x="214" y="395" font-size="10" fill="#2A4060" font-weight="600">Routes &amp; API</text>
391
+ <!-- Inactive tabs -->
392
+ <rect x="310" y="380" width="120" height="24" rx="0" fill="url(#tabInactive)" stroke="#B0A898" stroke-width="1"/>
393
+ <text x="338" y="397" font-size="10" fill="#606060">Build Status</text>
394
+ <rect x="434" y="380" width="120" height="24" rx="0" fill="url(#tabInactive)" stroke="#B0A898" stroke-width="1"/>
395
+ <text x="456" y="397" font-size="10" fill="#606060">Configuration</text>
396
+ <rect x="558" y="380" width="100" height="24" rx="0" fill="url(#tabInactive)" stroke="#B0A898" stroke-width="1"/>
397
+ <text x="586" y="397" font-size="10" fill="#606060">Logs</text>
398
+
399
+ <!-- Tab panel -->
400
+ <rect x="186" y="404" width="970" height="220" rx="0" fill="url(#groupbox)" stroke="#B0A898" stroke-width="1"/>
401
+
402
+ <!-- Route table -->
403
+ <rect x="200" y="416" width="610" height="18" fill="#E8E4DC"/>
404
+ <line x1="200" y1="416" x2="810" y2="416" stroke="#C0B8A8" stroke-width="0.5"/>
405
+ <line x1="200" y1="434" x2="810" y2="434" stroke="#C0B8A8" stroke-width="0.5"/>
406
+ <text x="210" y="429" font-size="8" fill="#606060" font-weight="600">METHOD</text>
407
+ <text x="268" y="429" font-size="8" fill="#606060" font-weight="600">PATH</text>
408
+ <text x="460" y="429" font-size="8" fill="#606060" font-weight="600">HANDLER</text>
409
+ <text x="640" y="429" font-size="8" fill="#606060" font-weight="600">TYPE</text>
410
+
411
+ <!-- GET / -->
412
+ <line x1="200" y1="452" x2="810" y2="452" stroke="#E8E4DC" stroke-width="0.5"/>
413
+ <rect x="208" y="438" width="30" height="12" rx="2" fill="rgba(72,184,72,0.15)" stroke="#48B848" stroke-width="0.5"/>
414
+ <text x="223" y="448" text-anchor="middle" font-size="7" fill="#2A6A2A" font-weight="600">GET</text>
415
+ <text x="268" y="448" font-size="9" fill="#2A4060" font-family="Consolas, monospace">/</text>
416
+ <text x="460" y="448" font-size="9" fill="#808080">renderControl → HTML</text>
417
+ <rect x="640" y="438" width="32" height="12" rx="2" fill="rgba(68,136,204,0.12)" stroke="#4488CC" stroke-width="0.5"/>
418
+ <text x="656" y="448" text-anchor="middle" font-size="7" fill="#3870A0">auto</text>
419
+
420
+ <!-- GET /js/js.js -->
421
+ <line x1="200" y1="468" x2="810" y2="468" stroke="#E8E4DC" stroke-width="0.5"/>
422
+ <rect x="208" y="456" width="30" height="12" rx="2" fill="rgba(72,184,72,0.15)" stroke="#48B848" stroke-width="0.5"/>
423
+ <text x="223" y="466" text-anchor="middle" font-size="7" fill="#2A6A2A" font-weight="600">GET</text>
424
+ <text x="268" y="466" font-size="9" fill="#2A4060" font-family="Consolas, monospace">/js/js.js</text>
425
+ <text x="460" y="466" font-size="9" fill="#808080">Client JS bundle</text>
426
+ <rect x="640" y="456" width="32" height="12" rx="2" fill="rgba(68,136,204,0.12)" stroke="#4488CC" stroke-width="0.5"/>
427
+ <text x="656" y="466" text-anchor="middle" font-size="7" fill="#3870A0">auto</text>
428
+
429
+ <!-- GET /css/css.css -->
430
+ <line x1="200" y1="484" x2="810" y2="484" stroke="#E8E4DC" stroke-width="0.5"/>
431
+ <rect x="208" y="474" width="30" height="12" rx="2" fill="rgba(72,184,72,0.15)" stroke="#48B848" stroke-width="0.5"/>
432
+ <text x="223" y="484" text-anchor="middle" font-size="7" fill="#2A6A2A" font-weight="600">GET</text>
433
+ <text x="268" y="484" font-size="9" fill="#2A4060" font-family="Consolas, monospace">/css/css.css</text>
434
+ <text x="460" y="484" font-size="9" fill="#808080">Extracted CSS bundle</text>
435
+ <rect x="640" y="474" width="32" height="12" rx="2" fill="rgba(68,136,204,0.12)" stroke="#4488CC" stroke-width="0.5"/>
436
+ <text x="656" y="484" text-anchor="middle" font-size="7" fill="#3870A0">auto</text>
437
+
438
+ <!-- POST /api/validateUser -->
439
+ <line x1="200" y1="502" x2="810" y2="502" stroke="#E8E4DC" stroke-width="0.5"/>
440
+ <rect x="208" y="490" width="34" height="12" rx="2" fill="rgba(144,112,192,0.15)" stroke="#9070C0" stroke-width="0.5"/>
441
+ <text x="225" y="500" text-anchor="middle" font-size="7" fill="#5A3890" font-weight="600">POST</text>
442
+ <text x="268" y="500" font-size="9" fill="#2A4060" font-family="Consolas, monospace">/api/validateUser</text>
443
+ <text x="460" y="500" font-size="9" fill="#808080">server.publish()</text>
444
+ <rect x="640" y="490" width="26" height="12" rx="2" fill="rgba(144,112,192,0.12)" stroke="#9070C0" stroke-width="0.5"/>
445
+ <text x="653" y="500" text-anchor="middle" font-size="7" fill="#5A3890">API</text>
446
+
447
+ <!-- POST /api/register -->
448
+ <line x1="200" y1="520" x2="810" y2="520" stroke="#E8E4DC" stroke-width="0.5"/>
449
+ <rect x="208" y="508" width="34" height="12" rx="2" fill="rgba(144,112,192,0.15)" stroke="#9070C0" stroke-width="0.5"/>
450
+ <text x="225" y="518" text-anchor="middle" font-size="7" fill="#5A3890" font-weight="600">POST</text>
451
+ <text x="268" y="518" font-size="9" fill="#2A4060" font-family="Consolas, monospace">/api/register</text>
452
+ <text x="460" y="518" font-size="9" fill="#808080">server.publish()</text>
453
+ <rect x="640" y="508" width="26" height="12" rx="2" fill="rgba(144,112,192,0.12)" stroke="#9070C0" stroke-width="0.5"/>
454
+ <text x="653" y="518" text-anchor="middle" font-size="7" fill="#5A3890">API</text>
455
+
456
+ <!-- GET /static/* -->
457
+ <line x1="200" y1="538" x2="810" y2="538" stroke="#E8E4DC" stroke-width="0.5"/>
458
+ <rect x="208" y="526" width="30" height="12" rx="2" fill="rgba(72,184,72,0.15)" stroke="#48B848" stroke-width="0.5"/>
459
+ <text x="223" y="536" text-anchor="middle" font-size="7" fill="#2A6A2A" font-weight="600">GET</text>
460
+ <text x="268" y="536" font-size="9" fill="#2A4060" font-family="Consolas, monospace">/static/*</text>
461
+ <text x="460" y="536" font-size="9" fill="#808080">Static file serving</text>
462
+ <rect x="640" y="526" width="38" height="12" rx="2" fill="rgba(160,140,100,0.12)" stroke="#A08060" stroke-width="0.5"/>
463
+ <text x="659" y="536" text-anchor="middle" font-size="7" fill="#806040">static</text>
464
+
465
+ <text x="210" y="560" font-size="8" fill="#908888">+ 1 additional static route · Router supports :param and error/not-found events</text>
466
+
467
+ <!-- Build Status (right side) -->
468
+ <line x1="830" y1="416" x2="830" y2="614" stroke="#D0C8B8" stroke-width="0.5"/>
469
+
470
+ <text x="846" y="432" font-size="9" fill="#808080" font-weight="600">BUILD OUTPUT</text>
471
+
472
+ <!-- JS Bundle -->
473
+ <rect x="846" y="440" width="292" height="42" rx="3" fill="url(#fieldBg)" stroke="#ACA899" stroke-width="0.5"/>
474
+ <text x="860" y="458" font-size="10" fill="#2A4060" font-weight="500">📦 js/js.js</text>
475
+ <text x="1060" y="458" font-size="11" fill="#2A4060" font-weight="600" text-anchor="end">245 KB</text>
476
+ <text x="860" y="474" font-size="8" fill="#908888">38 modules · source maps enabled</text>
477
+ <text x="1060" y="474" font-size="8" fill="#2A6A2A" text-anchor="end">● built 1.2s ago</text>
478
+
479
+ <!-- CSS Bundle -->
480
+ <rect x="846" y="488" width="292" height="42" rx="3" fill="url(#fieldBg)" stroke="#ACA899" stroke-width="0.5"/>
481
+ <text x="860" y="506" font-size="10" fill="#2A4060" font-weight="500">🎨 css/css.css</text>
482
+ <text x="1060" y="506" font-size="11" fill="#2A4060" font-weight="600" text-anchor="end">12 KB</text>
483
+ <text x="860" y="522" font-size="8" fill="#908888">12 controls extracted</text>
484
+ <text x="1060" y="522" font-size="8" fill="#2A6A2A" text-anchor="end">● built 0.3s ago</text>
485
+
486
+ <!-- Last rebuild -->
487
+ <text x="846" y="552" font-size="9" fill="#808080" font-weight="500">Last rebuild:</text>
488
+ <text x="926" y="552" font-size="9" fill="#2A4060">14:23:07 — triggered by client.js change</text>
489
+
490
+ <text x="846" y="570" font-size="9" fill="#808080" font-weight="500">Build errors:</text>
491
+ <text x="930" y="570" font-size="9" fill="#2A6A2A">0</text>
492
+ <text x="960" y="570" font-size="9" fill="#808080" font-weight="500">Warnings:</text>
493
+ <text x="1024" y="570" font-size="9" fill="#D8A020">1</text>
494
+
495
+ <!-- ════════════════════════════════════ -->
496
+ <!-- SERVER LIFECYCLE -->
497
+ <!-- ════════════════════════════════════ -->
498
+ <rect x="186" y="640" width="970" height="66" rx="4" fill="url(#groupbox)" stroke="#B0A898" stroke-width="1" filter="url(#cardShadow)"/>
499
+ <rect x="196" y="633" width="100" height="14" fill="url(#contentBg)"/>
500
+ <text x="202" y="644" font-size="11" fill="#2A4060" font-weight="600"> Server Lifecycle </text>
501
+
502
+ <rect x="210" y="656" width="100" height="28" rx="14" fill="url(#premBtn)" stroke="#7F9DB9" stroke-width="1"/>
503
+ <text x="260" y="674" text-anchor="middle" font-size="9" fill="#1A3060" font-weight="500">new Server()</text>
504
+ <line x1="310" y1="670" x2="332" y2="670" stroke="#4488CC" stroke-width="1.2" marker-end="url(#arrowBlue)"/>
505
+
506
+ <rect x="336" y="656" width="108" height="28" rx="14" fill="url(#premBtn)" stroke="#7F9DB9" stroke-width="1"/>
507
+ <text x="390" y="674" text-anchor="middle" font-size="9" fill="#1A3060" font-weight="500">Build Bundle</text>
508
+ <line x1="444" y1="670" x2="466" y2="670" stroke="#4488CC" stroke-width="1.2" marker-end="url(#arrowBlue)"/>
509
+
510
+ <rect x="470" y="656" width="100" height="28" rx="14" fill="url(#premBtn)" stroke="#7F9DB9" stroke-width="1"/>
511
+ <text x="520" y="674" text-anchor="middle" font-size="9" fill="#1A3060" font-weight="500">emit 'ready'</text>
512
+ <line x1="570" y1="670" x2="592" y2="670" stroke="#4488CC" stroke-width="1.2" marker-end="url(#arrowBlue)"/>
513
+
514
+ <rect x="596" y="656" width="108" height="28" rx="14" fill="url(#premBtn)" stroke="#7F9DB9" stroke-width="1"/>
515
+ <text x="650" y="674" text-anchor="middle" font-size="9" fill="#1A3060" font-weight="500">.publish() APIs</text>
516
+ <line x1="704" y1="670" x2="726" y2="670" stroke="#4488CC" stroke-width="1.2" marker-end="url(#arrowBlue)"/>
517
+
518
+ <rect x="730" y="656" width="100" height="28" rx="14" fill="url(#premBtn)" stroke="#7F9DB9" stroke-width="1"/>
519
+ <text x="780" y="674" text-anchor="middle" font-size="9" fill="#1A3060" font-weight="500">.start(port)</text>
520
+ <line x1="830" y1="670" x2="852" y2="670" stroke="#48A848" stroke-width="1.2" marker-end="url(#arrowGreen)"/>
521
+
522
+ <rect x="856" y="656" width="100" height="28" rx="14" fill="rgba(72,184,72,0.18)" stroke="#48B848" stroke-width="1.5"/>
523
+ <text x="906" y="674" text-anchor="middle" font-size="9" fill="#2A6A2A" font-weight="600">● Listening</text>
524
+
525
+ <!-- Error branch -->
526
+ <line x1="390" y1="656" x2="390" y2="644" stroke="#CC4444" stroke-width="0.8" stroke-dasharray="3,2"/>
527
+ <text x="402" y="650" font-size="8" fill="#CC4444">emit 'error'</text>
528
+
529
+ <!-- ════════════════════════════════════ -->
530
+ <!-- SERVER CONFIGURATION -->
531
+ <!-- ════════════════════════════════════ -->
532
+ <rect x="186" y="718" width="480" height="128" rx="4" fill="url(#groupbox)" stroke="#B0A898" stroke-width="1" filter="url(#cardShadow)"/>
533
+ <rect x="196" y="711" width="90" height="14" fill="url(#contentBg)"/>
534
+ <text x="202" y="722" font-size="11" fill="#2A4060" font-weight="600"> Configuration </text>
535
+
536
+ <!-- Config fields -->
537
+ <text x="210" y="746" font-size="9" fill="#808080" font-weight="500">Port</text>
538
+ <rect x="300" y="734" width="80" height="18" rx="2" fill="url(#fieldBg)" stroke="#ACA899" stroke-width="0.5"/>
539
+ <text x="308" y="748" font-size="9" fill="#2A4060" font-family="Consolas, monospace">3000</text>
540
+
541
+ <text x="210" y="770" font-size="9" fill="#808080" font-weight="500">Bundle output</text>
542
+ <rect x="300" y="758" width="160" height="18" rx="2" fill="url(#fieldBg)" stroke="#ACA899" stroke-width="0.5"/>
543
+ <text x="308" y="772" font-size="9" fill="#2A4060" font-family="Consolas, monospace">./build/</text>
544
+
545
+ <text x="210" y="794" font-size="9" fill="#808080" font-weight="500">Source maps</text>
546
+ <rect x="300" y="782" width="56" height="18" rx="2" fill="url(#fieldBg)" stroke="#ACA899" stroke-width="0.5"/>
547
+ <text x="308" y="796" font-size="9" fill="#2A6A2A" font-family="Consolas, monospace">true</text>
548
+
549
+ <text x="210" y="818" font-size="9" fill="#808080" font-weight="500">Debug mode</text>
550
+ <rect x="300" y="806" width="56" height="18" rx="2" fill="url(#fieldBg)" stroke="#ACA899" stroke-width="0.5"/>
551
+ <text x="308" y="820" font-size="9" fill="#2A6A2A" font-family="Consolas, monospace">true</text>
552
+
553
+ <text x="210" y="842" font-size="9" fill="#808080" font-weight="500">Entry point</text>
554
+ <rect x="300" y="830" width="160" height="18" rx="2" fill="url(#fieldBg)" stroke="#ACA899" stroke-width="0.5"/>
555
+ <text x="308" y="844" font-size="9" fill="#2A4060" font-family="Consolas, monospace">./examples/client.js</text>
556
+
557
+ <rect x="500" y="826" width="50" height="18" rx="3" fill="url(#btnPrimary)" stroke="#5090D0" stroke-width="0.5"/>
558
+ <text x="525" y="840" text-anchor="middle" font-size="9" fill="#fff" font-weight="500">Apply</text>
559
+
560
+ <!-- ════════════════════════════════════ -->
561
+ <!-- RECENT ACTIVITY LOG -->
562
+ <!-- ════════════════════════════════════ -->
563
+ <rect x="680" y="718" width="476" height="128" rx="4" fill="url(#groupbox)" stroke="#B0A898" stroke-width="1" filter="url(#cardShadow)"/>
564
+ <rect x="690" y="711" width="96" height="14" fill="url(#contentBg)"/>
565
+ <text x="696" y="722" font-size="11" fill="#2A4060" font-weight="600"> Recent Activity </text>
566
+
567
+ <text x="698" y="744" font-size="8.5" fill="#808080" font-family="Consolas, monospace">14:23:07</text>
568
+ <text x="768" y="744" font-size="8.5" fill="#2A4060">File change detected: client.js — rebuild triggered</text>
569
+
570
+ <text x="698" y="762" font-size="8.5" fill="#808080" font-family="Consolas, monospace">14:23:08</text>
571
+ <text x="768" y="762" font-size="8.5" fill="#2A6A2A">Bundle built successfully (245 KB, 1.2s)</text>
572
+
573
+ <text x="698" y="780" font-size="8.5" fill="#808080" font-family="Consolas, monospace">14:23:08</text>
574
+ <text x="768" y="780" font-size="8.5" fill="#2A6A2A">CSS extracted (12 KB, 12 controls)</text>
575
+
576
+ <text x="698" y="798" font-size="8.5" fill="#808080" font-family="Consolas, monospace">14:23:09</text>
577
+ <text x="768" y="798" font-size="8.5" fill="#D8A020">Warning: unused variable in utils/helpers.js:42</text>
578
+
579
+ <text x="698" y="816" font-size="8.5" fill="#808080" font-family="Consolas, monospace">14:22:45</text>
580
+ <text x="768" y="816" font-size="8.5" fill="#2A4060">GET / — 200 OK (14ms)</text>
581
+
582
+ <text x="698" y="834" font-size="8.5" fill="#808080" font-family="Consolas, monospace">14:22:38</text>
583
+ <text x="768" y="834" font-size="8.5" fill="#2A4060">POST /api/validateUser — 200 OK (3ms)</text>
584
+
585
+ <!-- STATUS BAR -->
586
+ <rect x="2" y="854" width="1156" height="22" rx="0 0 4 4" fill="url(#statusbar)" stroke="#B0A898" stroke-width="0.5"/>
587
+ <rect x="6" y="857" width="300" height="16" fill="none" stroke="#808080" stroke-width="0.5"/>
588
+ <rect x="7" y="858" width="298" height="14" fill="none" stroke="#fff" stroke-width="0.5"/>
589
+ <text x="14" y="869" font-size="9" fill="#333">Ready — 3 child processes · 5 resources · 7 routes</text>
590
+
591
+ <rect x="312" y="857" width="180" height="16" fill="none" stroke="#808080" stroke-width="0.5"/>
592
+ <rect x="313" y="858" width="178" height="14" fill="none" stroke="#fff" stroke-width="0.5"/>
593
+ <text x="320" y="869" font-size="9" fill="#333">Memory: 302 MB total</text>
594
+
595
+ <rect x="498" y="857" width="140" height="16" fill="none" stroke="#808080" stroke-width="0.5"/>
596
+ <rect x="499" y="858" width="138" height="14" fill="none" stroke="#fff" stroke-width="0.5"/>
597
+ <text x="506" y="869" font-size="9" fill="#333">Uptime: 4h 23m 12s</text>
598
+
599
+ <rect x="644" y="857" width="120" height="16" fill="none" stroke="#808080" stroke-width="0.5"/>
600
+ <rect x="645" y="858" width="118" height="14" fill="none" stroke="#fff" stroke-width="0.5"/>
601
+ <text x="652" y="869" font-size="9" fill="#333">42 requests/min</text>
602
+
603
+ <!-- Resize grip -->
604
+ <line x1="1138" y1="870" x2="1150" y2="858" stroke="#fff" stroke-width="1"/>
605
+ <line x1="1139" y1="871" x2="1151" y2="859" stroke="#808080" stroke-width="1"/>
606
+ <line x1="1142" y1="870" x2="1150" y2="862" stroke="#fff" stroke-width="1"/>
607
+ <line x1="1143" y1="871" x2="1151" y2="863" stroke="#808080" stroke-width="1"/>
608
+ <line x1="1146" y1="870" x2="1150" y2="866" stroke="#fff" stroke-width="1"/>
609
+ <line x1="1147" y1="871" x2="1151" y2="867" stroke="#808080" stroke-width="1"/>
610
+ </g>
611
+ </svg>