beyond-simulator-web 0.2.1 → 0.3.0

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.
@@ -115,7 +115,13 @@
115
115
  <div class="log-heading"><span>Runtime Logs</span><button id="clear-logs">清空</button></div>
116
116
  <pre id="runtime-logs">试玩启动后显示 Lua 日志。</pre>
117
117
  </section>
118
- <p class="watch-note"><span>●</span> 正在监听磁盘。MCP 保存当前 JSON 后,预览会自动重新加载。</p>
118
+ <section class="info-card connection-details">
119
+ <span class="info-label">预览连接</span>
120
+ <div id="server-version">正在连接服务…</div>
121
+ <div id="workspace-path"></div>
122
+ <div id="preview-diagnostics" role="status" aria-live="polite" hidden></div>
123
+ </section>
124
+ <p class="watch-note"><span>●</span> 当前存档保存后自动刷新;首次存档会自动发现。切换其他存档请使用顶部列表或 MCP 预览工具。</p>
119
125
  </aside>
120
126
  </main>
121
127
 
@@ -256,6 +256,10 @@ button:focus-visible, select:focus-visible, .stage-shell:focus-visible, .tree-ro
256
256
  .log-card pre { min-height: 130px; max-height: 34vh; margin: 0; padding: 9px; overflow: auto; color: var(--muted); background: var(--input); white-space: pre-wrap; word-break: break-word; font: 10px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
257
257
  .watch-note { margin: 10px 11px 16px; padding: 7px 8px; border-left: 2px solid #477cf0; background: color-mix(in srgb, var(--blue) 8%, var(--panel-2)); color: var(--muted); font-size: 9px; line-height: 1.5; }
258
258
  .watch-note span { color: #62d398; }
259
+ .connection-details { font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
260
+ #workspace-path { color: var(--muted); }
261
+ #preview-diagnostics { margin-top: 7px; white-space: pre-wrap; }
262
+ #preview-diagnostics.error { color: var(--danger); }
259
263
 
260
264
  .toast { position: fixed; left: 50%; bottom: 18px; z-index: 20; max-width: min(520px, calc(100vw - 32px)); padding: 8px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); box-shadow: 0 12px 32px var(--shadow); color: var(--text); font-size: 10px; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: 160ms ease; }
261
265
  .toast.visible { opacity: 1; transform: translate(-50%, 0); }