blob: 0945d70e4a061867c4cc820dfdcbd19f82782089 [file] [log] [blame]
Sean McCullough86b56862025-04-18 13:04:03 -07001<html>
2 <head>
3 <title>sketch-container-status demo</title>
4 <link rel="stylesheet" href="demo.css" />
Philip Zeyliger72682df2025-04-23 13:09:46 -07005 <script type="module" src="../sketch-container-status.ts"></script>
Sean McCullough86b56862025-04-18 13:04:03 -07006
7 <script>
8 document.addEventListener("DOMContentLoaded", () => {
Sean McCullough71941bd2025-04-18 13:31:48 -07009 const containerStatus = document.querySelector("#status-2");
Sean McCullough86b56862025-04-18 13:04:03 -070010 containerStatus.state = {
Sean McCullough71941bd2025-04-18 13:31:48 -070011 hostname: "example.hostname",
12 initial_commit: "decafbad",
Sean McCullough86b56862025-04-18 13:04:03 -070013 message_count: 27,
Sean McCullough71941bd2025-04-18 13:31:48 -070014 os: "linux",
Sean McCullough86b56862025-04-18 13:04:03 -070015 total_usage: {
Sean McCullough71941bd2025-04-18 13:31:48 -070016 start_time: "around lunch",
17 messages: 1337,
Sean McCullough86b56862025-04-18 13:04:03 -070018 input_tokens: 3,
19 output_tokens: 1000,
20 cache_read_input_tokens: 28,
21 cache_creation_input_tokens: 12354,
22 total_cost_usd: 2.03,
Sean McCullough71941bd2025-04-18 13:31:48 -070023 },
24 working_dir: "/app",
Sean McCullough86b56862025-04-18 13:04:03 -070025 };
26 });
27 </script>
Sean McCullough86b56862025-04-18 13:04:03 -070028 </head>
29 <body>
30 <h1>sketch-container-status demo</h1>
31
32 Empty:
33 <sketch-container-status id="status-1"></sketch-container-status>
34
35 With state fields set:
36 <sketch-container-status id="status-2"></sketch-container-status>
Sean McCullough86b56862025-04-18 13:04:03 -070037 </body>
Sean McCullough71941bd2025-04-18 13:31:48 -070038</html>