-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
599 lines (581 loc) · 30.1 KB
/
index.html
File metadata and controls
599 lines (581 loc) · 30.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Agent World</title>
<link rel="stylesheet" href="/agent-world-static/styles.css?v=0.2.0-settings-13" />
</head>
<body>
<div class="app-shell">
<header class="topbar card pixel-panel">
<div>
<h1>Agent World</h1>
<p>16-bit research office for core named agents</p>
</div>
<div class="topbar-actions">
<div class="mode-switch" aria-label="Workspace Tabs">
<button id="tab-world" class="tab-btn active" type="button" data-tab="world">World</button>
<button id="tab-editor" class="tab-btn" type="button" data-tab="editor">Editor</button>
<button id="tab-settings" class="tab-btn" type="button" data-tab="settings">Settings</button>
</div>
<div class="pill-row">
<span class="pill" id="server-time">--</span>
<span class="pill" id="openclaw-runtime-pill">OpenClaw --</span>
<span class="pill accent">build v0.2.0-dev13</span>
</div>
</div>
</header>
<main class="layout tab-panel active" id="world-tab-panel" data-panel="world">
<section class="main-column">
<section class="world-panel card pixel-panel">
<div class="panel-header">
<h2 id="room-name">Lucca Research Office</h2>
<div class="pill-row">
<label class="editor-field compact-field header-agent-select">
<span>Agent</span>
<select id="agent-select">
<option value="">Select agent</option>
</select>
</label>
<span id="agent-status-badge" class="status-badge">--</span>
</div>
</div>
<div id="world" class="world snes-room">
<div id="world-canvas" class="world-canvas" aria-label="Agent World Canvas"></div>
</div>
<div class="world-footer">
<div class="pill">Click a character or stash box</div>
<div class="pill" id="agent-count">0 agents</div>
</div>
<section class="world-inspector">
<div class="panel-header">
<h2>Inspector</h2>
<span class="pill" id="selected-agent-id">--</span>
</div>
<dl class="inspector-grid">
<div><dt>Name</dt><dd id="agent-name">--</dd></div>
<div><dt>Model</dt><dd id="agent-model">--</dd></div>
<div><dt>Status</dt><dd id="agent-runtime-status">--</dd></div>
<div><dt>Location</dt><dd id="agent-location">--</dd></div>
<div><dt>Action</dt><dd id="agent-action">--</dd></div>
<div><dt>Visual</dt><dd id="agent-visual-state">--</dd></div>
<div><dt>Last Tool</dt><dd id="agent-tool">--</dd></div>
<div><dt>Queue Depth</dt><dd id="agent-queue-depth">--</dd></div>
<div><dt>Session</dt><dd id="agent-session-label">--</dd></div>
<div><dt>Channel</dt><dd id="agent-last-channel">--</dd></div>
<div><dt>Waiting</dt><dd id="agent-waiting-reason">--</dd></div>
<div><dt>Updated</dt><dd id="agent-updated">--</dd></div>
</dl>
</section>
</section>
</section>
<aside class="sidebar">
<section class="card pixel-panel chat-panel">
<div class="panel-header">
<h2>Chat Log</h2>
<div class="pill-row">
<span class="pill" id="chat-summary">--</span>
<button id="close-world-details" class="secondary-btn" type="button">Close</button>
</div>
</div>
<div class="button-row">
<label class="editor-field">
<span>Test Move</span>
<select id="move-anchor-select">
<option value="library">Library</option>
<option value="comms">Comms</option>
<option value="terminal">Terminal</option>
<option value="desk">Desk</option>
<option value="lounge">Lounge</option>
</select>
</label>
<button id="move-agent-button" class="secondary-btn" type="button">Move Selected Agent</button>
</div>
<div id="chat-list" class="chat-list"></div>
<form id="command-form" class="chat-compose">
<textarea id="command-input" placeholder="Tell the selected agent what to do next..."></textarea>
<div class="voice-toolbar">
<div class="button-row voice-buttons">
<button id="voice-toggle" class="secondary-btn" type="button">Start Mic</button>
<button id="voice-stop" class="secondary-btn" type="button">Stop</button>
<button id="voice-speak-current" class="secondary-btn" type="button">Speak Message</button>
</div>
<label class="voice-option">
<input id="voice-auto-send" type="checkbox" />
<span>Auto-send transcript</span>
</label>
<label class="voice-option">
<input id="voice-speak-replies" type="checkbox" />
<span>Speak agent replies</span>
</label>
<label class="editor-field voice-device-field">
<span>Mic Input</span>
<select id="voice-input-select">
<option value="">System Default</option>
</select>
</label>
</div>
<div class="button-row">
<button type="submit">Send Command</button>
</div>
</form>
<p id="voice-status" class="voice-status">Voice idle.</p>
<div class="voice-debug-panel">
<div class="voice-debug-row">
<span class="voice-debug-label">Voice Support</span>
<span id="voice-support" class="voice-debug-value">Checking...</span>
</div>
<div class="voice-debug-row">
<span class="voice-debug-label">Recognition State</span>
<span id="voice-recognition-state" class="voice-debug-value">Idle</span>
</div>
<div class="voice-debug-row">
<span class="voice-debug-label">Mic Level</span>
<div class="voice-level-meter" aria-hidden="true">
<div id="voice-level-fill" class="voice-level-fill"></div>
</div>
<span id="voice-level-text" class="voice-debug-value">No mic capture yet.</span>
</div>
<div class="voice-debug-row">
<span class="voice-debug-label">Last Error</span>
<span id="voice-error" class="voice-debug-value">None</span>
</div>
<div class="voice-debug-row">
<span class="voice-debug-label">Transcript</span>
<pre id="voice-transcript" class="voice-debug-box">No transcript yet.</pre>
</div>
<div class="voice-debug-row">
<span class="voice-debug-label">Speech Output</span>
<pre id="voice-spoken-text" class="voice-debug-box">Nothing queued for speech.</pre>
</div>
<div class="voice-debug-row">
<span class="voice-debug-label">Recent Events</span>
<pre id="voice-events" class="voice-debug-box">No voice events yet.</pre>
</div>
</div>
<p id="command-result" class="command-result"></p>
</section>
<details class="debug-view">
<summary class="card pixel-panel debug-summary">
<span>Debug View</span>
<span class="pill">Inspector, stash, schedule, activity</span>
</summary>
<section class="card pixel-panel message-panel hidden-panel">
<div class="panel-header">
<h2>Message View</h2>
<span class="pill" id="message-kind">current</span>
</div>
<div class="message-view">
<h3 id="message-title">--</h3>
<div id="message-body" class="message-body">Select an event or agent to inspect full text.</div>
</div>
</section>
<section class="card pixel-panel stash-panel">
<div class="panel-header">
<h2>Stash Box</h2>
<span class="pill" id="stash-summary">--</span>
</div>
<ul id="stash-list" class="event-list"></ul>
</section>
<section class="card pixel-panel schedule-panel">
<div class="panel-header">
<h2>Schedule</h2>
<span class="pill" id="schedule-summary">--</span>
</div>
<ul id="schedule-list" class="event-list"></ul>
</section>
<section class="card pixel-panel event-panel">
<div class="panel-header">
<h2>Activity Feed</h2>
<button id="refresh-button" class="secondary-btn" type="button">Refresh</button>
</div>
<ul id="event-list" class="event-list"></ul>
</section>
</details>
</aside>
</main>
<main class="editor-layout tab-panel" id="editor-tab-panel" data-panel="editor">
<section class="editor-shell">
<section class="card pixel-panel editor-subnav-panel">
<div class="panel-header">
<h2>Editor Views</h2>
<div class="pill-row">
<span class="pill" id="editor-subview-pill">Tilemap</span>
<button
id="editor-shared-toggle"
class="secondary-btn editor-gear-btn"
type="button"
aria-label="Editor Gear"
title="Editor Gear"
>
<span aria-hidden="true">⚙</span>
</button>
</div>
</div>
<div class="editor-subnav" role="tablist" aria-label="Editor Views">
<button id="editor-subtab-tilemap" class="editor-subtab-btn active" type="button" data-editor-view="tilemap">Tilemap</button>
<button id="editor-subtab-room-mapping" class="editor-subtab-btn" type="button" data-editor-view="room-mapping">Room Mapping</button>
<button id="editor-subtab-chat-bubble" class="editor-subtab-btn" type="button" data-editor-view="chat-bubble">Chat Bubble</button>
<button id="editor-subtab-agent" class="editor-subtab-btn" type="button" data-editor-view="agent">Agent</button>
</div>
<details id="editor-shared-panel" class="editor-shared-panel">
<summary class="editor-shared-summary">Shared Editor Utilities</summary>
<div class="editor-shared-body">
<div class="pill-row">
<span class="pill" id="tilemap-source-status">Game state JSON is live</span>
<button id="apply-game-state-json" class="secondary-btn" type="button">Apply JSON</button>
<button id="download-game-state-json" class="secondary-btn" type="button">Download JSON</button>
<button id="reset-tilemap" class="secondary-btn" type="button">Reset</button>
</div>
<label class="tile-editor-block">
<span>State Transfer JSON</span>
<textarea id="tilemap-state-json" class="tilemap-input" spellcheck="false" placeholder='{"agent-world-floor-map":"..."}'></textarea>
</label>
<p class="editor-copy">This JSON applies across all editor views. Use it to inspect, apply, download, or reset the current Agent World game state.</p>
</div>
</details>
</section>
<section class="world-panel card pixel-panel editor-preview-panel">
<div class="panel-header">
<h2 id="editor-preview-title">Tilemap Preview</h2>
<div class="pill-row">
<span class="pill" id="tilemap-summary">--</span>
</div>
</div>
<div class="editor-preview-mode active" id="editor-preview-tilemap" data-editor-preview="tilemap">
<div class="world snes-room">
<div id="editor-world-canvas" class="world-canvas" aria-label="Tilemap Editor Canvas"></div>
</div>
<div class="world-footer editor-preview-footer">
<div class="pill-row">
<div class="pill" id="tilemap-walkability">--</div>
<div class="pill" id="tilemap-status">Loading tilemap...</div>
</div>
</div>
</div>
<div class="editor-preview-mode" id="editor-preview-room-mapping" data-editor-preview="room-mapping">
<div class="world snes-room">
<div id="editor-room-world-canvas" class="world-canvas" aria-label="Room Mapping Canvas"></div>
</div>
<div class="world-footer editor-preview-footer">
<div class="pill-row">
<div class="pill" id="room-mapping-status">Select cells to assign rooms and doors.</div>
</div>
</div>
</div>
<div class="editor-preview-mode" id="editor-preview-chat-bubble" data-editor-preview="chat-bubble">
<div id="editor-chat-bubble-preview-list" class="chat-bubble-preview-list editor-chat-bubble-preview-list" aria-label="Chat bubble preview"></div>
</div>
<div class="editor-preview-mode" id="editor-preview-agent" data-editor-preview="agent">
<div id="agent-sprite-preview-list" class="agent-sprite-preview-list" aria-label="Agent sprite preview"></div>
</div>
</section>
<section class="editor-subview-grid">
<section class="card pixel-panel tilemap-panel editor-subview active" data-editor-views="tilemap">
<div class="panel-header">
<h2>Tilemap Editor</h2>
<div class="pill-row">
<button id="apply-tilemap" type="button">Apply Map</button>
<button id="save-game-state" class="secondary-btn" type="button">Save Game State</button>
</div>
</div>
<p class="editor-copy">Edit the floor and object character grids, apply them live, and use the legend to understand which codes are passable, solid, or doors.</p>
<div class="editor-utility-row">
<label class="editor-field">
<span>Cols</span>
<input id="grid-cols-input" type="number" min="4" max="80" value="30" />
</label>
<label class="editor-field">
<span>Rows</span>
<input id="grid-rows-input" type="number" min="4" max="80" value="18" />
</label>
<button id="resize-grid" class="secondary-btn" type="button">Resize Grid</button>
</div>
<div class="tilemap-editors wide">
<label class="tile-editor-block">
<span>Wall Map</span>
<textarea id="wall-map-input" class="tilemap-input large" spellcheck="false"></textarea>
</label>
<label class="tile-editor-block">
<span>Floor Map</span>
<textarea id="floor-map-input" class="tilemap-input large" spellcheck="false"></textarea>
</label>
<label class="tile-editor-block">
<span>Furniture Map</span>
<textarea id="furniture-map-input" class="tilemap-input large" spellcheck="false"></textarea>
</label>
<label class="tile-editor-block">
<span>Prop Map</span>
<textarea id="prop-map-input" class="tilemap-input large" spellcheck="false"></textarea>
</label>
</div>
</section>
<section class="card pixel-panel room-mapper-card editor-subview" data-editor-views="room-mapping">
<div class="panel-header">
<h2>Room Mapping</h2>
<span class="pill" id="room-region-summary">0 regions</span>
</div>
<p class="editor-copy">Select cells in the preview, then assign them to a room or door region. This view is dedicated to semantic world mapping rather than tile painting.</p>
<section class="picker-card room-mapper-card">
<div class="picker-header">
<h3>Region Controls</h3>
</div>
<div class="room-mapper-grid">
<label class="editor-field">
<span>Kind</span>
<select id="region-kind-input">
<option value="room">Room</option>
<option value="door">Door</option>
</select>
</label>
<label class="editor-field">
<span>Id</span>
<select id="region-id-input">
<option value="">Select room</option>
</select>
</label>
<label class="editor-field room-label-field">
<span>Label</span>
<input id="region-label-input" type="text" placeholder="Library" />
</label>
</div>
<div class="special-token-row">
<button id="assign-region" class="secondary-btn" type="button">Assign Selection</button>
<button id="clear-region" class="secondary-btn" type="button">Clear Selection Region</button>
<button id="set-region-label-position" class="secondary-btn" type="button">Set Label Position</button>
</div>
<div id="room-region-list" class="room-region-list"></div>
</section>
<section class="picker-card room-mapper-card">
<div class="picker-header">
<h3>Stash Settings</h3>
</div>
<div class="special-token-row">
<span class="pill" id="stash-cell-summary">Stash --</span>
<button id="assign-stash" class="secondary-btn" type="button">Set Stash Here</button>
<button id="clear-stash" class="secondary-btn" type="button">Reset Stash</button>
</div>
</section>
</section>
<section class="card pixel-panel visual-tool-panel editor-subview" data-editor-views="tilemap chat-bubble">
<div class="panel-header">
<h2 id="visual-tool-title">Tile Palette</h2>
<div class="pill-row" data-editor-only="tilemap">
<span class="pill" id="selected-map-cell">Cell --</span>
<span class="pill" id="selected-layer-cell">Layer --</span>
<span class="pill" id="hovered-atlas-cell">Atlas --</span>
</div>
</div>
<section class="visual-tile-editor">
<div class="visual-toolbar" data-editor-only="tilemap">
<div class="editor-utility-row">
<label class="editor-field">
<span>Zoom</span>
<select id="editor-zoom-select">
<option value="1" selected>1x</option>
<option value="1.5">1.5x</option>
<option value="2">2x</option>
<option value="3">3x</option>
</select>
</label>
</div>
<div class="layer-toggle-group" id="visual-layer-toggle">
<button class="secondary-btn active" type="button" data-layer="floor">Floor</button>
<button class="secondary-btn" type="button" data-layer="wall">Wall</button>
<button class="secondary-btn" type="button" data-layer="furniture">Furniture</button>
<button class="secondary-btn" type="button" data-layer="prop">Prop</button>
</div>
</div>
<div class="visual-picker-grid compact">
<section class="picker-card tile-selection-card" data-editor-only="tilemap" hidden>
<div class="picker-header">
<h3>Tile Selection</h3>
</div>
<div class="special-token-row">
<button id="visual-token-empty" class="secondary-btn" type="button">Set `.`</button>
</div>
<div class="selection-preview">
<div class="selection-copy">
<strong id="tilemap-selection-title">No atlas tile selected</strong>
<span id="tilemap-selection-detail">Click a map cell, then hover or click a tile in the atlas.</span>
</div>
<canvas id="tilemap-selection-preview" width="128" height="128" aria-label="Selected tile preview"></canvas>
</div>
</section>
<section class="picker-card chat-bubble-toolbox" data-editor-only="chat-bubble" hidden>
<div class="picker-header">
<h3>Bubble Assignment</h3>
<span class="pill" id="chat-bubble-slot-summary">Agent · mm</span>
</div>
<div class="chat-bubble-role-tabs" role="tablist" aria-label="Chat bubble roles">
<button id="chat-bubble-role-assistant" class="chat-bubble-role-btn active" type="button" data-role="assistant">Agent</button>
<button id="chat-bubble-role-tool" class="chat-bubble-role-btn" type="button" data-role="tool">Tool</button>
<button id="chat-bubble-role-user" class="chat-bubble-role-btn" type="button" data-role="user">User</button>
</div>
<div class="editor-utility-row">
<label class="editor-field">
<span>Text Color</span>
<input id="chat-bubble-text-color" type="color" value="#fff4d7" />
</label>
</div>
<div class="selection-preview">
<div class="selection-copy">
<strong id="chat-bubble-selection-title">No bubble tile selected</strong>
<span id="chat-bubble-selection-detail">Pick Agent, Tool, or User, click a bubble segment in the preview, then choose a floor or wall atlas tile.</span>
</div>
<canvas id="chat-bubble-selection-preview" width="128" height="128" aria-label="Selected bubble tile preview"></canvas>
</div>
<div class="special-token-row">
<button id="assign-chat-bubble-tile" class="secondary-btn" type="button">Assign Selected Tile</button>
<button id="reset-chat-bubble-frame" class="secondary-btn" type="button">Reset Selected Role</button>
</div>
</section>
<section class="picker-card atlas-card">
<div class="picker-header">
<h3 id="atlas-picker-title">Floor Atlas</h3>
<span class="pill" id="atlas-picker-mode">Office atlas</span>
</div>
<div id="atlas-picker-board" class="atlas-picker-board" aria-label="Atlas tile picker">
<img id="atlas-picker-image" alt="Tile atlas picker" />
<div id="atlas-picker-hover" class="atlas-picker-hover"></div>
</div>
</section>
</div>
</section>
</section>
<section class="card pixel-panel agent-editor-panel editor-subview" data-editor-views="agent">
<div class="panel-header">
<h2>Agent Preview</h2>
<span class="pill" id="agent-editor-selected-id">--</span>
</div>
<div class="editor-utility-row">
<label class="editor-field">
<span>Zoom</span>
<select id="editor-zoom-select-agent-proxy" disabled>
<option>Use shared preview zoom</option>
</select>
</label>
<label class="passable-toggle">
<input id="toggle-editor-agents" type="checkbox" checked />
<span>Show Lucca</span>
</label>
</div>
<dl class="inspector-grid agent-editor-grid">
<div><dt>Name</dt><dd id="agent-editor-name">--</dd></div>
<div><dt>Model</dt><dd id="agent-editor-model">--</dd></div>
<div><dt>Status</dt><dd id="agent-editor-status">--</dd></div>
<div><dt>Anchor</dt><dd id="agent-editor-anchor">--</dd></div>
<div><dt>Action</dt><dd id="agent-editor-action">--</dd></div>
<div><dt>Visual</dt><dd id="agent-editor-visual">--</dd></div>
</dl>
<p class="editor-copy">This view keeps the current agent preview controls separate from tile and chat-bubble editing. Future sprite and animation assignment work can land here without crowding the other editor surfaces.</p>
</section>
</section>
</section>
</main>
<main class="settings-layout tab-panel" id="settings-tab-panel" data-panel="settings">
<section class="card pixel-panel settings-panel">
<div class="panel-header">
<h2>Install Settings</h2>
<div class="pill-row">
<span class="pill" id="settings-path">agent_world.json</span>
<span class="pill" id="settings-summary">Loading...</span>
</div>
</div>
<form id="settings-form" class="settings-form">
<div class="settings-grid">
<label class="editor-field">
<span>OpenClaw Home</span>
<input id="settings-openclaw-home" type="text" placeholder="~/.openclaw" />
</label>
<label class="editor-field">
<span>OpenClaw Media Dir</span>
<input id="settings-openclaw-media-dir" type="text" placeholder="~/.openclaw/media" />
</label>
<label class="editor-field">
<span>Server Host</span>
<input id="settings-server-host" type="text" placeholder="0.0.0.0" />
</label>
<label class="editor-field">
<span>Server Port</span>
<input id="settings-server-port" type="number" min="1" max="65535" placeholder="8890" />
</label>
<label class="editor-field">
<span>Voice Provider</span>
<input id="settings-voice-provider" type="text" placeholder="openai" />
</label>
<label class="editor-field">
<span>Voice API Key Env</span>
<input id="settings-voice-api-key-env" type="text" placeholder="OPENAI_API_KEY" />
</label>
<label class="editor-field">
<span>Transcribe Model</span>
<input id="settings-voice-transcribe-model" type="text" placeholder="gpt-4o-mini-transcribe" />
</label>
<label class="editor-field">
<span>Speech Model</span>
<input id="settings-voice-speech-model" type="text" placeholder="gpt-4o-mini-tts" />
</label>
<label class="editor-field">
<span>Default Voice</span>
<input id="settings-voice-default-voice" type="text" placeholder="nova" />
</label>
<label class="editor-field">
<span>Speech Format</span>
<input id="settings-voice-speech-format" type="text" placeholder="mp3" />
</label>
</div>
<label class="tile-editor-block">
<span>Extra Allowed File Roots</span>
<textarea id="settings-allowed-file-roots" class="tilemap-input" spellcheck="false" placeholder="/path/one /path/two"></textarea>
</label>
<div class="button-row settings-actions">
<button id="settings-save" type="submit">Save Settings</button>
<button id="settings-refresh" class="secondary-btn" type="button">Refresh Diagnostics</button>
</div>
<p class="editor-copy">Settings are global to this Agent World install. OpenClaw paths are only for runtime state discovery, while voice settings belong to Agent World directly. Changes to the server bind host/port apply on the next server start.</p>
<p id="settings-result" class="command-result"></p>
</form>
</section>
<section class="card pixel-panel settings-panel">
<div class="panel-header">
<h2>Resolved Paths</h2>
<span class="pill" id="settings-diagnostics-state">--</span>
</div>
<dl class="inspector-grid settings-grid-compact">
<div><dt>Settings File</dt><dd id="resolved-settings-path">--</dd></div>
<div><dt>OpenClaw Home</dt><dd id="resolved-openclaw-home">--</dd></div>
<div><dt>OpenClaw Config</dt><dd id="resolved-openclaw-config">--</dd></div>
<div><dt>Main Sessions</dt><dd id="resolved-main-sessions">--</dd></div>
<div><dt>OpenClaw Media</dt><dd id="resolved-openclaw-media">--</dd></div>
</dl>
</section>
<section class="card pixel-panel settings-panel">
<div class="panel-header">
<h2>Diagnostics</h2>
<span class="pill" id="settings-check-count">--</span>
</div>
<div id="settings-checks" class="settings-check-list"></div>
</section>
<section class="card pixel-panel settings-panel">
<div class="panel-header">
<h2>Raw Config</h2>
<span class="pill">Read / Edit</span>
</div>
<label class="tile-editor-block">
<span>agent_world.json</span>
<textarea id="settings-json-editor" class="tilemap-input large settings-json-editor" spellcheck="false"></textarea>
</label>
<div class="button-row settings-actions">
<button id="settings-save-json" type="button">Save Raw JSON</button>
<button id="settings-reload-json" class="secondary-btn" type="button">Reload From Disk</button>
</div>
<p class="editor-copy">This is the full config file stored for this Agent World install. Save will validate the JSON before writing it through the settings API.</p>
</section>
</main>
</div>
<script src="/agent-world-static/vendor/pixi.min.js"></script>
<script type="module" src="/agent-world-static/src/main.js?v=0.2.0-settings-14"></script>
</body>
</html>