@open-artifact/server-sdk 0.0.0-stage → 0.2.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.
@@ -0,0 +1,45 @@
1
+ :root {
2
+ color-scheme: light dark;
3
+ --bg: #faf9f5;
4
+ --fg: #1f1e1b;
5
+ --muted: #6b6860;
6
+ --card: #ffffff;
7
+ --line: rgba(31, 30, 27, 0.14);
8
+ --accent: #c96442;
9
+ --accent-fg: #ffffff;
10
+ --shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
11
+ font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
12
+ }
13
+ @media (prefers-color-scheme: dark) {
14
+ :root {
15
+ --bg: #1f1e1b;
16
+ --fg: #f0eee6;
17
+ --muted: #a8a59c;
18
+ --card: #2a2925;
19
+ --line: rgba(240, 238, 230, 0.16);
20
+ }
21
+ }
22
+ * { box-sizing: border-box; }
23
+ html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--fg); }
24
+ #stage { position: fixed; inset: 0; }
25
+ #stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: transparent; }
26
+ .problem-card .row { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
27
+ .problem-card button {
28
+ font: inherit; color: inherit; background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px;
29
+ cursor: pointer;
30
+ }
31
+ .problem-card button:hover { background: rgba(127, 127, 127, 0.12); }
32
+ .problem-card button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
33
+ .problem-card button.primary:hover { filter: brightness(1.05); }
34
+ .problem-card button:disabled { opacity: 0.5; cursor: default; }
35
+ .problem { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 88%, transparent); }
36
+ .problem[hidden] { display: none; }
37
+ .problem-card { max-width: 440px; margin: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
38
+ .problem-card h2 { margin: 0 0 6px; font-size: 17px; }
39
+ .problem-card p { margin: 0 0 12px; color: var(--muted); }
40
+ .note { font-size: 12px; }
41
+ .toast {
42
+ position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40; background: var(--fg); color: var(--bg);
43
+ padding: 8px 14px; border-radius: 10px; box-shadow: var(--shadow); max-width: calc(100vw - 32px);
44
+ }
45
+ .toast[hidden] { display: none; }
@@ -0,0 +1,29 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <meta name="referrer" content="origin">
7
+ <title>Artifact</title>
8
+ <link rel="stylesheet" href="comments.css">
9
+ <link rel="stylesheet" href="shell.css">
10
+ <script src="comments.js" defer></script>
11
+ <script src="shell.js" defer></script>
12
+ </head>
13
+ <body>
14
+ <main id="stage" aria-live="polite"></main>
15
+ <div id="comments-ui"></div>
16
+ <div id="problem" class="problem" hidden role="alert">
17
+ <div class="problem-card">
18
+ <h2 id="problemTitle">This page did not start</h2>
19
+ <p id="problemText"></p>
20
+ <div class="row">
21
+ <button id="problemReload" type="button">Reload</button>
22
+ <button id="problemAgent" type="button" class="primary" hidden>Ask the agent to look</button>
23
+ </div>
24
+ <p id="problemNote" class="note"></p>
25
+ </div>
26
+ </div>
27
+ <div id="toast" class="toast" hidden role="status"></div>
28
+ </body>
29
+ </html>