Mike0021 commited on
Commit
d501176
·
verified ·
1 Parent(s): 372b496

Make empty-chat cat smaller with a gentle welcome hop and occasional blinks

Browse files
app/README.md CHANGED
@@ -25,7 +25,7 @@ For development, use `npm run dev`. To use the already converted weights on this
25
  - Model name, loading progress, and loaded status live in a rounded, inset top bar aligned with the workspace width. New chat sits at the bottom left of the terminal, opposite the send controls. Panels use background shading and rounded corners instead of separator borders.
26
  - The top bar’s activity indicator labels model inference **WebGPU** and tool execution **JavaScript**. It shows loading, prompt processing, tool execution, and live generation speed. Its sparkline uses actual generated-token counts, including thinking, over a rolling second; prompt-processing time is excluded. Rates refresh four times per second and clear when generation stops. The capsule fits its current contents with a 220ms width transition, disabled when reduced motion is preferred. Nested corner radii account for their insets: the header uses a 16px radius around 8px-radius controls with 8px padding.
27
  - The first-message dialog explains that the model, inference, and shell run entirely in the browser. Pi’s input receives focus when the workspace starts; cancelling setup returns focus and the unsent draft to Pi.
28
- - An empty chat has a small blocky cat with a clickable starter prompt. It fills Pi’s editor without sending, adapts to the workspace files, and disappears after the first user message. Its position follows the terminal’s available blank rows, keeping the input and transcript unobstructed; short viewports omit it when there is no room.
29
  - IndexedDB persistence for chat, file bytes, executable modes, directories, and symbolic links. New chat keeps the workspace.
30
  - Verified model downloading: six concurrent files, 32 MiB byte ranges, three attempts per chunk, cancellation, incremental SHA-256 checks, and atomic OPFS writes. Completed files survive an interrupted load; an incomplete file restarts on retry.
31
  - Cached reloads use file size, modification time, and the stored verification receipt. Model files are hashed during download; they are not rehashed on every reload.
 
25
  - Model name, loading progress, and loaded status live in a rounded, inset top bar aligned with the workspace width. New chat sits at the bottom left of the terminal, opposite the send controls. Panels use background shading and rounded corners instead of separator borders.
26
  - The top bar’s activity indicator labels model inference **WebGPU** and tool execution **JavaScript**. It shows loading, prompt processing, tool execution, and live generation speed. Its sparkline uses actual generated-token counts, including thinking, over a rolling second; prompt-processing time is excluded. Rates refresh four times per second and clear when generation stops. The capsule fits its current contents with a 220ms width transition, disabled when reduced motion is preferred. Nested corner radii account for their insets: the header uses a 16px radius around 8px-radius controls with 8px padding.
27
  - The first-message dialog explains that the model, inference, and shell run entirely in the browser. Pi’s input receives focus when the workspace starts; cancelling setup returns focus and the unsent draft to Pi.
28
+ - An empty chat has a small blocky cat with a clickable starter prompt. It fills Pi’s editor without sending, adapts to the workspace files, and disappears after the first user message. The 104px mascot makes one gentle hop shortly after its image loads, then occasionally blinks. Motion pauses while hidden and is disabled for reduced-motion preferences. Its position follows the terminal’s available blank rows, keeping the input and transcript unobstructed; short viewports omit it when there is no room.
29
  - IndexedDB persistence for chat, file bytes, executable modes, directories, and symbolic links. New chat keeps the workspace.
30
  - Verified model downloading: six concurrent files, 32 MiB byte ranges, three attempts per chunk, cancellation, incremental SHA-256 checks, and atomic OPFS writes. Completed files survive an interrupted load; an incomplete file restarts on retry.
31
  - Cached reloads use file size, modification time, and the stored verification receipt. Model files are hashed during download; they are not rehashed on every reload.
app/src/pi/empty-mascot.mjs CHANGED
@@ -3,30 +3,74 @@ export function createEmptyMascot(element, onSelect) {
3
  mascot.className = 'empty-mascot'; mascot.hidden = true;
4
  const suggestion = document.createElement('button');
5
  suggestion.type = 'button'; suggestion.className = 'mascot-suggestion';
 
 
6
  const cat = document.createElement('img');
7
- cat.width = cat.height = 128; cat.alt = ''; cat.draggable = false;
8
- mascot.append(suggestion, cat); element.append(mascot);
 
 
 
9
  let prompt = '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  suggestion.onclick = () => onSelect(prompt);
11
  return {
12
- hide() { mascot.hidden = true; },
13
  update({ screen, rows, viewportRows, contentRows, draft, hasSales }) {
14
- if (!screen || !rows) { mascot.hidden = true; return; }
15
  const area = screen.getBoundingClientRect(), root = element.getBoundingClientRect();
16
  const rowHeight = area.height / rows;
17
  const room = (viewportRows - contentRows) * rowHeight - 16;
18
- if (room < 48) { mascot.hidden = true; return; }
19
  if (!cat.hasAttribute('src')) cat.src = new URL('../../public/empty-cat-v1.png', import.meta.url).href;
20
- const withSuggestion = !draft.trim() && room >= 204;
21
  suggestion.hidden = !withSuggestion;
22
  suggestion.textContent = hasSales ? 'Ask me to calculate our total sales.' : 'Ask me to explore your files.';
23
  prompt = hasSales ? 'Calculate total revenue from sales.csv using bash, save a short report to report.md, and verify the result.' : 'Explore the workspace files and summarize what is here.';
24
  suggestion.setAttribute('aria-label', `Use suggested prompt: ${prompt}`);
25
- const size = Math.min(128, Math.floor(withSuggestion ? room - 76 : room));
26
- cat.style.width = cat.style.height = `${size}px`;
27
  mascot.hidden = false;
28
  mascot.style.top = `${area.top - root.top + viewportRows * rowHeight - 8 - mascot.offsetHeight}px`;
 
 
 
 
 
 
 
 
29
  },
30
- dispose() { mascot.remove(); },
31
  };
32
  }
 
3
  mascot.className = 'empty-mascot'; mascot.hidden = true;
4
  const suggestion = document.createElement('button');
5
  suggestion.type = 'button'; suggestion.className = 'mascot-suggestion';
6
+ const figure = document.createElement('span');
7
+ figure.className = 'mascot-cat'; figure.setAttribute('aria-hidden', 'true');
8
  const cat = document.createElement('img');
9
+ cat.width = cat.height = 104; cat.alt = ''; cat.draggable = false;
10
+ const eyelids = document.createElement('span');
11
+ eyelids.className = 'mascot-eyelids';
12
+ figure.append(cat, eyelids);
13
+ mascot.append(suggestion, figure); element.append(mascot);
14
  let prompt = '';
15
+ let bumped = false, bumpTimer = 0, blinkTimer = 0;
16
+ const animations = new Set();
17
+ const reducedMotion = matchMedia('(prefers-reduced-motion: reduce)');
18
+ function animate(target, frames, options) {
19
+ const animation = target.animate(frames, options);
20
+ animations.add(animation);
21
+ animation.onfinish = () => animations.delete(animation);
22
+ }
23
+ function stopMotion() {
24
+ clearTimeout(bumpTimer); clearTimeout(blinkTimer);
25
+ bumpTimer = blinkTimer = 0;
26
+ for (const animation of animations) animation.cancel();
27
+ animations.clear();
28
+ }
29
+ function syncMotion() {
30
+ if (mascot.hidden || document.hidden || reducedMotion.matches || !cat.complete || !cat.naturalWidth) { stopMotion(); return; }
31
+ if (!bumped && !bumpTimer) bumpTimer = setTimeout(() => {
32
+ bumpTimer = 0; bumped = true;
33
+ animate(figure, [{ transform: 'translateY(0)', easing: 'ease-out' }, { transform: 'translateY(-4px)', offset: .4, easing: 'ease-in' }, { transform: 'translateY(0)' }],
34
+ { id: 'mascot-bump', duration: 420 });
35
+ }, 1800);
36
+ if (!blinkTimer) blinkTimer = setTimeout(() => {
37
+ blinkTimer = 0;
38
+ animate(eyelids, [{ opacity: 0, easing: 'steps(1, end)' }, { opacity: 1, offset: .15 }, { opacity: 1, offset: .8, easing: 'steps(1, end)' }, { opacity: 0 }],
39
+ { id: 'mascot-blink', duration: 180 });
40
+ syncMotion();
41
+ }, 5000 + Math.random() * 4000);
42
+ }
43
+ function hide() { mascot.hidden = true; stopMotion(); }
44
+ cat.addEventListener('load', syncMotion);
45
+ document.addEventListener('visibilitychange', syncMotion);
46
+ reducedMotion.addEventListener('change', syncMotion);
47
  suggestion.onclick = () => onSelect(prompt);
48
  return {
49
+ hide,
50
  update({ screen, rows, viewportRows, contentRows, draft, hasSales }) {
51
+ if (!screen || !rows) { hide(); return; }
52
  const area = screen.getBoundingClientRect(), root = element.getBoundingClientRect();
53
  const rowHeight = area.height / rows;
54
  const room = (viewportRows - contentRows) * rowHeight - 16;
55
+ if (room < 48) { hide(); return; }
56
  if (!cat.hasAttribute('src')) cat.src = new URL('../../public/empty-cat-v1.png', import.meta.url).href;
57
+ const withSuggestion = !draft.trim() && room >= 180;
58
  suggestion.hidden = !withSuggestion;
59
  suggestion.textContent = hasSales ? 'Ask me to calculate our total sales.' : 'Ask me to explore your files.';
60
  prompt = hasSales ? 'Calculate total revenue from sales.csv using bash, save a short report to report.md, and verify the result.' : 'Explore the workspace files and summarize what is here.';
61
  suggestion.setAttribute('aria-label', `Use suggested prompt: ${prompt}`);
62
+ const size = Math.min(104, Math.floor(withSuggestion ? room - 76 : room));
63
+ figure.style.width = figure.style.height = `${size}px`;
64
  mascot.hidden = false;
65
  mascot.style.top = `${area.top - root.top + viewportRows * rowHeight - 8 - mascot.offsetHeight}px`;
66
+ syncMotion();
67
+ },
68
+ dispose() {
69
+ hide();
70
+ cat.removeEventListener('load', syncMotion);
71
+ document.removeEventListener('visibilitychange', syncMotion);
72
+ reducedMotion.removeEventListener('change', syncMotion);
73
+ mascot.remove();
74
  },
 
75
  };
76
  }
app/src/style.css CHANGED
@@ -106,9 +106,15 @@ header #progress { position: absolute; bottom: 0; left: 0; margin: 0; height: 3p
106
  #pi-terminal .xterm-viewport { background-color: var(--background) !important; }
107
  #pi-terminal textarea:focus { box-shadow: none; }
108
  .empty-mascot { position: absolute; right: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; width: 196px; max-width: calc(100% - 24px); pointer-events: none; }
109
- .empty-mascot img { display: block; flex: none; object-fit: contain; image-rendering: pixelated; mix-blend-mode: lighten; user-select: none; }
 
 
 
 
 
 
110
  .mascot-suggestion { position: relative; pointer-events: auto; padding: 10px 12px; border: 0; border-radius: 8px; background: #f5efdf; color: #24242c; font: 12px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; text-align: left; white-space: normal; box-shadow: 0 3px 0 #0c0c10; }
111
- .mascot-suggestion::after { content: ''; position: absolute; right: 42px; bottom: -8px; width: 12px; height: 8px; background: inherit; clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 50%, 50% 100%, 0 100%); }
112
  .mascot-suggestion:hover { background: #fffaf0; }
113
  .terminal-controls { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding-top: 8px; }
114
  .terminal-controls, .terminal-panel > footer { cursor: text; }
 
106
  #pi-terminal .xterm-viewport { background-color: var(--background) !important; }
107
  #pi-terminal textarea:focus { box-shadow: none; }
108
  .empty-mascot { position: absolute; right: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; width: 196px; max-width: calc(100% - 24px); pointer-events: none; }
109
+ .mascot-cat { position: relative; display: block; flex: none; mix-blend-mode: lighten; }
110
+ .empty-mascot img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; user-select: none; }
111
+ .mascot-eyelids { position: absolute; inset: 0; opacity: 0; }
112
+ /* Pixel eyelids align with the eyes in empty-cat-v1.png; the image stays intact. */
113
+ .mascot-eyelids::before, .mascot-eyelids::after { content: ''; position: absolute; top: 39.3%; width: 7%; height: 7.4%; background: linear-gradient(to bottom, #f6f0e1 70%, var(--background) 70%, var(--background) 86%, #f6f0e1 86%); }
114
+ .mascot-eyelids::before { left: 28.5%; }
115
+ .mascot-eyelids::after { left: 54%; }
116
  .mascot-suggestion { position: relative; pointer-events: auto; padding: 10px 12px; border: 0; border-radius: 8px; background: #f5efdf; color: #24242c; font: 12px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; text-align: left; white-space: normal; box-shadow: 0 3px 0 #0c0c10; }
117
+ .mascot-suggestion::after { content: ''; position: absolute; right: 52px; bottom: -8px; width: 12px; height: 8px; background: inherit; clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 50%, 50% 100%, 0 100%); }
118
  .mascot-suggestion:hover { background: #fffaf0; }
119
  .terminal-controls { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding-top: 8px; }
120
  .terminal-controls, .terminal-panel > footer { cursor: text; }
assets/index-BiaAq3wW.css ADDED
@@ -0,0 +1 @@
 
 
1
+ :root{font-synthesis:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:var(--text);background:var(--background);--background:#18181e;--surface:#1e1e24;--panel:#22222b;--control:#282832;--hover:#343541;--selected:#3a3a4a;--line:#393942;--line-strong:#50505c;--text:#d4d4d4;--muted:#b0b0bd;--accent:#8abeb7;--surface-inset:8px;--radius-small:8px;--radius:calc(var(--radius-small) + var(--surface-inset));--radius-large:calc(var(--radius) + var(--surface-inset));--content-width:1800px;--content-gutter:14px;--header-inset:12px;--header-control-height:32px;--header-height:calc(var(--header-control-height) + 2 * var(--surface-inset));scrollbar-color:var(--line-strong) var(--background);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:13px}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit;color:inherit}::selection{background:var(--selected);color:var(--text)}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}button,.button{cursor:pointer;border-radius:var(--radius-small);background:var(--control);min-height:28px;color:inherit;white-space:nowrap;border:1px solid #0000;padding:5px 9px;font-size:12px;line-height:1.4}button:hover,.button:hover{background:var(--hover)}button:disabled{opacity:.45;cursor:default}.primary{background:var(--hover);color:var(--text)}.primary:hover{background:var(--selected)}.quiet{background:0 0;border-color:#0000;font-size:11px}textarea,input{outline:none}textarea:focus,input:focus{box-shadow:inset 0 0 0 1px var(--accent)}button:focus-visible,.button:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}[hidden]{display:none!important}header{width:calc(100% - 2 * var(--content-gutter));max-width:calc(var(--content-width) - 2 * var(--content-gutter));height:var(--header-height);margin:var(--header-inset) auto 0;padding:var(--surface-inset);justify-content:space-between;align-items:center;gap:var(--surface-inset) 16px;background:var(--surface);border-radius:var(--radius);grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);display:grid;position:relative;overflow:hidden}.brand{color:inherit;align-items:center;gap:8px;font-size:15px;font-weight:600;text-decoration:none;display:flex}.pi-logo{flex:none;width:18px;height:18px;display:block}.brand{justify-self:start;padding:0 4px}.runtime-meter{--runtime-padding:10px;width:max-content;max-width:100%;height:var(--header-control-height);padding:5px var(--runtime-padding);border-radius:var(--radius-small);background:var(--control);white-space:nowrap;justify-self:center;align-items:center;font-size:11px;transition:width .22s cubic-bezier(.2,.8,.2,1);display:flex;overflow:clip}.runtime-content{flex:none;align-items:center;gap:8px;width:max-content;height:100%;display:flex}.runtime-location{flex:none;align-items:center;gap:6px;display:flex}.runtime-dot{background:var(--muted);border-radius:50%;width:5px;height:5px}.runtime-meter[data-state=generating] .runtime-dot,.runtime-meter[data-state=tool] .runtime-dot{background:var(--accent)}.runtime-meter[data-state=error] .runtime-dot{background:#d98c8c}.runtime-divider{background:var(--line);flex:0 0 1px;align-self:stretch;margin:2px 0}.runtime-sparkline{color:var(--accent);flex:none}.runtime-value{color:var(--muted);font-variant-numeric:tabular-nums;flex:none}.runtime-meter[data-state=generating] .runtime-value{color:var(--accent)}@media (prefers-reduced-motion:reduce){.runtime-meter{transition:none}}main{height:calc(100dvh - var(--header-height) - var(--header-inset));max-width:var(--content-width);grid-template-columns:minmax(420px,1fr) minmax(370px,.83fr);margin:auto;display:grid}.conversation{min-width:0;min-height:0;padding:12px var(--content-gutter) 8px;flex-direction:column;display:flex}.model-panel{background:var(--surface);margin-left:auto}.model-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.model-heading>div{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.model-heading strong{font-size:12px;font-weight:600}.badge{border-radius:var(--radius-small);background:var(--control);color:var(--muted);padding:3px 7px;font-size:10px}#load{min-width:90px;height:var(--header-control-height);flex-shrink:0}#load.is-loaded{opacity:1;color:var(--accent);background:#25312f}progress{width:100%;height:5px;accent-color:var(--accent);margin-top:8px}header #progress{height:3px;margin:0;position:absolute;bottom:0;left:0}.muted{color:var(--muted);margin-top:4px;font-size:11px}.muted:empty{display:none}.terminal-panel{background:var(--background);border-radius:var(--radius-large);border:1px solid #0000;flex-direction:column;flex:1;min-height:0;padding:8px;display:flex}#pi-terminal{isolation:isolate;background:var(--background);flex:1;min-width:0;min-height:120px;position:relative;overflow:hidden}#pi-terminal .pi-terminal-mount,#pi-terminal .xterm{height:100%}#pi-terminal .xterm-viewport{background-color:var(--background)!important}#pi-terminal textarea:focus{box-shadow:none}.empty-mascot{pointer-events:none;flex-direction:column;align-items:flex-end;gap:10px;width:196px;max-width:calc(100% - 24px);display:flex;position:absolute;right:12px}.mascot-cat{mix-blend-mode:lighten;flex:none;display:block;position:relative}.empty-mascot img{object-fit:contain;width:100%;height:100%;image-rendering:pixelated;-webkit-user-select:none;user-select:none;display:block}.mascot-eyelids{opacity:0;position:absolute;inset:0}.mascot-eyelids:before,.mascot-eyelids:after{content:"";background:linear-gradient(to bottom, #f6f0e1 70%, var(--background) 70%, var(--background) 86%, #f6f0e1 86%);width:7%;height:7.4%;position:absolute;top:39.3%}.mascot-eyelids:before{left:28.5%}.mascot-eyelids:after{left:54%}.mascot-suggestion{pointer-events:auto;color:#24242c;text-align:left;white-space:normal;background:#f5efdf;border:0;border-radius:8px;padding:10px 12px;font:12px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;position:relative;box-shadow:0 3px #0c0c10}.mascot-suggestion:after{content:"";background:inherit;clip-path:polygon(0 0,100% 0,100% 50%,50% 50%,50% 100%,0 100%);width:12px;height:8px;position:absolute;bottom:-8px;right:52px}.mascot-suggestion:hover{background:#fffaf0}.terminal-controls{justify-content:flex-end;align-items:center;gap:8px;padding-top:8px;display:flex}.terminal-controls,.terminal-panel>footer{cursor:text}#new-chat{margin-right:auto}#newline:not(:hover){background:0 0}#notice{border-radius:var(--radius-small);background:var(--control);margin:6px 0;padding:8px 10px;font-size:12px}footer{color:var(--muted);justify-content:space-between;align-items:center;gap:8px;padding-top:8px;font-size:10px;display:flex}.workspace{min-width:0;min-height:0;margin:12px var(--content-gutter) 8px 0;border-radius:var(--radius-large);background:var(--panel);flex-direction:column;display:flex;overflow:hidden}.workspace-heading{justify-content:space-between;align-items:center;min-height:40px;padding:5px 10px;display:flex}.workspace-heading h2{margin:0;font-size:12px;font-weight:600}.workspace-heading>div{gap:0;display:flex}.button{display:inline-block}.file-area{flex:1;grid-template-columns:140px minmax(0,1fr);min-height:180px;display:grid}#files{padding:5px 4px;overflow:auto}#files button{border-radius:var(--radius-small);text-align:left;white-space:normal;overflow-wrap:anywhere;background:0 0;border:none;align-items:center;gap:6px;width:100%;padding:5px 7px;font-family:ui-monospace,monospace;font-size:11px;line-height:1.45;display:flex}.file-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.file-icon{background-color:var(--file-color);width:16px;height:16px;-webkit-mask:var(--file-icon) center / contain no-repeat;mask:var(--file-icon) center / contain no-repeat;-webkit-mask:var(--file-icon) center / contain no-repeat;flex:0 0 16px;display:inline-block}.editor-file{align-items:center;gap:6px;min-width:0;display:flex}#filetype{flex:none;display:flex}#filetype:empty{display:none}@media (forced-colors:active){.file-icon{background-color:canvastext}}#files button:hover{background:var(--hover)}#files button.selected{background:var(--selected);color:var(--text)}.editor-area{border-radius:var(--radius);background:var(--surface);flex-direction:column;min-width:0;min-height:0;margin:0 8px 8px 0;display:flex;overflow:hidden}.editor-heading{background:#282832;justify-content:space-between;align-items:center;gap:6px;height:32px;padding:0 6px 0 10px;display:flex}#filename{text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,monospace;font-size:11px;overflow:hidden}#editor{resize:none;min-height:140px;color:var(--text);tab-size:2;white-space:pre;background:0 0;border:0;flex:1;padding:10px 12px;font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;overflow:auto}.workspace>.terminal{border-radius:var(--radius);background:var(--background);flex-shrink:0;margin:0 8px;padding:0 8px 8px}.terminal summary{cursor:pointer;padding:6px 0;font-size:11px;font-weight:500}.terminal summary span{float:right;color:var(--muted);font-size:10px;font-weight:400}.shell-toolbar{color:var(--accent);justify-content:space-between;align-items:center;font:11px/1.5 ui-monospace,monospace;display:flex}.shell-toolbar button{color:var(--muted)}#terminal-output{resize:vertical;scrollbar-width:thin;overflow-wrap:anywhere;height:132px;min-height:84px;max-height:min(480px,45dvh);margin:0 0 6px;padding:2px 0;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;overflow:auto}#terminal-output:focus-visible{outline:1px solid var(--accent);outline-offset:2px;border-radius:var(--radius-small)}.shell-empty{color:var(--muted);flex-direction:column;gap:4px;padding:8px 2px;display:flex}.shell-empty strong{color:var(--text);font-weight:500}.shell-empty code{color:var(--accent)}.shell-entry{border-radius:var(--radius-small);background:var(--surface);margin-bottom:6px;padding:8px}.shell-entry:last-child{margin-bottom:0}.shell-entry-heading{align-items:baseline;gap:8px;display:flex}.shell-entry pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.shell-code{flex:1;min-width:0}.shell-status{color:var(--muted);flex-shrink:0;font-size:10px}.shell-status.success{color:#b5bd68}.shell-status.error,.shell-stderr{color:#e29a9a}.shell-entry .shell-stdout,.shell-entry .shell-stderr{margin:6px 0 0 16px}#shell-form{border-radius:var(--radius-small);background:var(--control);align-items:flex-start;gap:8px;padding:4px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;display:flex}#shell-form:focus-within{box-shadow:0 0 0 1px var(--accent)}.shell-prompt{color:var(--accent);flex-shrink:0}#shell-form>.shell-prompt{padding-top:6px;line-height:20px}.shell-input{flex:1;min-width:0;position:relative}#command,#command-highlight{font-variant-ligatures:none;letter-spacing:normal;tab-size:2;white-space:pre-wrap;overflow-wrap:anywhere;border:0;border-radius:0;width:100%;margin:0;padding:6px 0;font:12px/20px ui-monospace,SFMono-Regular,Consolas,monospace}#command-highlight{pointer-events:none;position:absolute;inset:0;overflow:hidden}#command{resize:none;color:#0000;min-height:32px;max-height:104px;caret-color:var(--text);scrollbar-width:thin;background:0 0;display:block;position:relative}#command:focus{box-shadow:none}#command::selection{color:#0000;background:#8abeb740}#command::placeholder{color:var(--muted)}#shell-run{border-radius:4px;min-height:32px}#shell-hint{color:var(--muted);flex-wrap:wrap;justify-content:space-between;gap:2px 12px;padding-top:5px;font-size:10px;line-height:1.5;display:flex}.shell-code .token,#command-highlight .token{font-style:normal;font-weight:400}.shell-code .token.comment,#command-highlight .token.comment{color:#aaaab7}.shell-code .token.string,#command-highlight .token.string{color:#b5bd68}.shell-code .token.function,.shell-code .token.builtin,#command-highlight .token.function,#command-highlight .token.builtin{color:#8abeb7}.shell-code .token.variable,.shell-code .token.assign-left,#command-highlight .token.variable,#command-highlight .token.assign-left{color:#c4a7d5}.shell-code .token.keyword,.shell-code .token.operator,.shell-code .token.number,#command-highlight .token.keyword,#command-highlight .token.operator,#command-highlight .token.number{color:#f0c674}.shell-code .token.parameter,#command-highlight .token.parameter{color:#9db9d4}@media (forced-colors:active){#command-highlight{display:none}#command{color:canvastext}#command::selection{color:canvastext}}.workspace-note{color:var(--muted);margin:6px 10px;font-size:10px;line-height:1.45}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}#open-tab{color:var(--accent);white-space:normal;margin-top:8px;font-size:12px;text-decoration:none}#model-dialog{--dialog-inset:24px;width:min(460px,100% - 32px);max-height:calc(100dvh - 32px);padding:var(--dialog-inset);border-radius:calc(var(--radius-small) + var(--dialog-inset));background:var(--surface);color:var(--text);border:0;overflow:auto;box-shadow:0 24px 80px #0008}#model-dialog[open]{flex-direction:column;display:flex}.setup-body{min-height:0;overflow:auto}#model-dialog::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#08080dbd}.setup-icon{width:32px;height:32px;color:var(--accent);flex:none;display:block}.setup-intro{color:var(--muted);align-items:center;gap:10px;font-size:11px;display:flex}#model-title{letter-spacing:-.5px;margin:16px 0 8px;font-size:27px;font-weight:650;line-height:1.2}#model-description{color:var(--muted);margin:0;line-height:1.6}.setup-runtime{grid-template-columns:minmax(max-content,1fr) 1fr 1.2fr;gap:8px;margin:18px 0;display:grid}.setup-runtime>div{border-radius:var(--radius-small);background:var(--control);padding:10px}.setup-runtime dt{color:var(--accent);font-size:12px;font-weight:600}.setup-runtime dd{margin:5px 0 0;font-size:11px;line-height:1.5}.setup-model{align-items:center;gap:6px;display:flex}.model-org{border-radius:50%;flex:none;display:inline-flex}.model-org img{border-radius:inherit;width:18px;height:18px;display:block}.model-source{color:inherit;-webkit-text-decoration-color:var(--muted);text-decoration-color:var(--muted);text-underline-offset:3px;white-space:nowrap}.model-source:hover{color:var(--accent)}.setup-model a:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}.setup-facts{border-radius:var(--radius-small);background:var(--panel);flex-direction:column;gap:5px;margin:18px 0;padding:12px;line-height:1.45;display:flex}.setup-facts strong{font-size:12px;font-weight:600}.setup-facts span,.setup-label,.setup-privacy,#model-detail{color:var(--muted);font-size:11px;line-height:1.5}.setup-label{margin:16px 0 6px}#model-preview{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:var(--radius-small);background:var(--control);max-height:84px;padding:10px 12px;font-size:12px;line-height:1.5;overflow:auto}#model-status{margin:18px 0 0;line-height:1.5}#model-detail{margin:5px 0 0}#model-error{border-radius:var(--radius-small);overflow-wrap:anywhere;background:#3c2828;padding:10px 12px;line-height:1.5}#model-open-tab{color:var(--accent);white-space:normal;text-decoration:none}.setup-privacy{margin:18px 0}.setup-actions{flex-wrap:wrap;flex-shrink:0;justify-content:flex-end;gap:8px;padding-top:4px;display:flex}.setup-actions button{min-height:38px;padding:8px 12px}#model-confirm{color:#18181e;background:#fff;font-weight:600}#model-confirm:hover{background:#e8e8ed}@media (width<=420px){#model-dialog{--dialog-inset:16px}.setup-icon{width:28px;height:28px}#model-title{margin-top:12px;font-size:24px}.setup-runtime{grid-template-columns:1fr;gap:5px;margin:14px 0}.setup-runtime>div{align-items:baseline;gap:12px;padding:8px 10px;display:flex}.setup-runtime dt{flex:0 0 64px}.setup-runtime dd{margin:0}.setup-facts{margin:14px 0}.setup-privacy{margin:12px 0}.setup-actions{flex-direction:column-reverse}.setup-actions button{width:100%}}@media (width>=851px) and (width<=1000px){header{grid-template-columns:auto minmax(0,1fr) auto}}@media (width<=850px){:root{--header-height:calc(2 * var(--header-control-height) + 3 * var(--surface-inset));--header-inset:10px;--content-gutter:10px}header{grid-template-columns:auto minmax(0,1fr);grid-template-rows:repeat(2, var(--header-control-height));gap:var(--surface-inset);grid-template-areas:"brand runtime""model model"}.brand{grid-area:brand;justify-self:start}.runtime-meter{grid-area:runtime;justify-self:end}.model-panel{grid-area:model;margin:0}main{flex-direction:column;height:auto;display:flex}.conversation{height:calc(100dvh - var(--header-height) - var(--header-inset));min-height:320px;padding:10px var(--content-gutter)}.workspace{min-height:520px;margin:0 var(--content-gutter) 10px}.file-area{grid-template-columns:115px minmax(0,1fr);min-height:280px}h1{font-size:20px}.badge,footer{font-size:9px}}@media (pointer:coarse){:root{--header-control-height:38px}button,.button,#files button{min-height:38px}.editor-heading{min-height:40px}.terminal summary{padding-top:11px;padding-bottom:11px}#command,#command-highlight,#pi-terminal .xterm-helper-textarea{font-size:16px}}.xterm{cursor:text;-webkit-user-select:none;user-select:none;position:relative}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{z-index:5;position:absolute;top:0}.xterm .xterm-helper-textarea{opacity:0;z-index:-5;white-space:nowrap;resize:none;border:0;width:0;height:0;margin:0;padding:0;position:absolute;top:0;left:-9999em;overflow:hidden}.xterm .composition-view{color:#fff;white-space:nowrap;z-index:1;background:#000;display:none;position:absolute}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{cursor:default;background-color:#000;position:absolute;inset:0;overflow-y:scroll}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;top:0;left:0}.xterm-char-measure-element{visibility:hidden;line-height:normal;display:inline-block;position:absolute;top:0;left:-9999em}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{z-index:10;color:#0000;pointer-events:none;position:absolute;inset:0}.xterm .xterm-accessibility-tree:not(.debug) ::selection{color:#0000}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre;font-family:monospace}.xterm .xterm-accessibility-tree>div{transform-origin:0;width:fit-content}.xterm .live-region{width:1px;height:1px;position:absolute;left:-9999px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:underline double;text-decoration:underline double}.xterm-underline-3{-webkit-text-decoration:underline wavy;text-decoration:underline wavy}.xterm-underline-4{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.xterm-underline-5{-webkit-text-decoration:underline dashed;text-decoration:underline dashed}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:underline overline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;pointer-events:none;position:absolute;top:0;right:0}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;z-index:11;background:0 0;transition:opacity .1s linear}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{display:none;position:absolute}.xterm .xterm-scrollable-element>.shadow.top{width:100%;height:3px;box-shadow:var(--vscode-scrollbar-shadow,#000) 0 6px 6px -6px inset;display:block;top:0;left:3px}.xterm .xterm-scrollable-element>.shadow.left{width:3px;height:100%;box-shadow:var(--vscode-scrollbar-shadow,#000) 6px 0 6px -6px inset;display:block;top:3px;left:0}.xterm .xterm-scrollable-element>.shadow.top-left-corner{width:3px;height:3px;display:block;top:0;left:0}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow,#000) 6px 0 6px -6px inset}
assets/index-CsO3FMEc.css DELETED
@@ -1 +0,0 @@
1
- :root{font-synthesis:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:var(--text);background:var(--background);--background:#18181e;--surface:#1e1e24;--panel:#22222b;--control:#282832;--hover:#343541;--selected:#3a3a4a;--line:#393942;--line-strong:#50505c;--text:#d4d4d4;--muted:#b0b0bd;--accent:#8abeb7;--surface-inset:8px;--radius-small:8px;--radius:calc(var(--radius-small) + var(--surface-inset));--radius-large:calc(var(--radius) + var(--surface-inset));--content-width:1800px;--content-gutter:14px;--header-inset:12px;--header-control-height:32px;--header-height:calc(var(--header-control-height) + 2 * var(--surface-inset));scrollbar-color:var(--line-strong) var(--background);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:13px}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit;color:inherit}::selection{background:var(--selected);color:var(--text)}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}button,.button{cursor:pointer;border-radius:var(--radius-small);background:var(--control);min-height:28px;color:inherit;white-space:nowrap;border:1px solid #0000;padding:5px 9px;font-size:12px;line-height:1.4}button:hover,.button:hover{background:var(--hover)}button:disabled{opacity:.45;cursor:default}.primary{background:var(--hover);color:var(--text)}.primary:hover{background:var(--selected)}.quiet{background:0 0;border-color:#0000;font-size:11px}textarea,input{outline:none}textarea:focus,input:focus{box-shadow:inset 0 0 0 1px var(--accent)}button:focus-visible,.button:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}[hidden]{display:none!important}header{width:calc(100% - 2 * var(--content-gutter));max-width:calc(var(--content-width) - 2 * var(--content-gutter));height:var(--header-height);margin:var(--header-inset) auto 0;padding:var(--surface-inset);justify-content:space-between;align-items:center;gap:var(--surface-inset) 16px;background:var(--surface);border-radius:var(--radius);grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);display:grid;position:relative;overflow:hidden}.brand{color:inherit;align-items:center;gap:8px;font-size:15px;font-weight:600;text-decoration:none;display:flex}.pi-logo{flex:none;width:18px;height:18px;display:block}.brand{justify-self:start;padding:0 4px}.runtime-meter{--runtime-padding:10px;width:max-content;max-width:100%;height:var(--header-control-height);padding:5px var(--runtime-padding);border-radius:var(--radius-small);background:var(--control);white-space:nowrap;justify-self:center;align-items:center;font-size:11px;transition:width .22s cubic-bezier(.2,.8,.2,1);display:flex;overflow:clip}.runtime-content{flex:none;align-items:center;gap:8px;width:max-content;height:100%;display:flex}.runtime-location{flex:none;align-items:center;gap:6px;display:flex}.runtime-dot{background:var(--muted);border-radius:50%;width:5px;height:5px}.runtime-meter[data-state=generating] .runtime-dot,.runtime-meter[data-state=tool] .runtime-dot{background:var(--accent)}.runtime-meter[data-state=error] .runtime-dot{background:#d98c8c}.runtime-divider{background:var(--line);flex:0 0 1px;align-self:stretch;margin:2px 0}.runtime-sparkline{color:var(--accent);flex:none}.runtime-value{color:var(--muted);font-variant-numeric:tabular-nums;flex:none}.runtime-meter[data-state=generating] .runtime-value{color:var(--accent)}@media (prefers-reduced-motion:reduce){.runtime-meter{transition:none}}main{height:calc(100dvh - var(--header-height) - var(--header-inset));max-width:var(--content-width);grid-template-columns:minmax(420px,1fr) minmax(370px,.83fr);margin:auto;display:grid}.conversation{min-width:0;min-height:0;padding:12px var(--content-gutter) 8px;flex-direction:column;display:flex}.model-panel{background:var(--surface);margin-left:auto}.model-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.model-heading>div{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.model-heading strong{font-size:12px;font-weight:600}.badge{border-radius:var(--radius-small);background:var(--control);color:var(--muted);padding:3px 7px;font-size:10px}#load{min-width:90px;height:var(--header-control-height);flex-shrink:0}#load.is-loaded{opacity:1;color:var(--accent);background:#25312f}progress{width:100%;height:5px;accent-color:var(--accent);margin-top:8px}header #progress{height:3px;margin:0;position:absolute;bottom:0;left:0}.muted{color:var(--muted);margin-top:4px;font-size:11px}.muted:empty{display:none}.terminal-panel{background:var(--background);border-radius:var(--radius-large);border:1px solid #0000;flex-direction:column;flex:1;min-height:0;padding:8px;display:flex}#pi-terminal{isolation:isolate;background:var(--background);flex:1;min-width:0;min-height:120px;position:relative;overflow:hidden}#pi-terminal .pi-terminal-mount,#pi-terminal .xterm{height:100%}#pi-terminal .xterm-viewport{background-color:var(--background)!important}#pi-terminal textarea:focus{box-shadow:none}.empty-mascot{pointer-events:none;flex-direction:column;align-items:flex-end;gap:10px;width:196px;max-width:calc(100% - 24px);display:flex;position:absolute;right:12px}.empty-mascot img{object-fit:contain;image-rendering:pixelated;mix-blend-mode:lighten;-webkit-user-select:none;user-select:none;flex:none;display:block}.mascot-suggestion{pointer-events:auto;color:#24242c;text-align:left;white-space:normal;background:#f5efdf;border:0;border-radius:8px;padding:10px 12px;font:12px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;position:relative;box-shadow:0 3px #0c0c10}.mascot-suggestion:after{content:"";background:inherit;clip-path:polygon(0 0,100% 0,100% 50%,50% 50%,50% 100%,0 100%);width:12px;height:8px;position:absolute;bottom:-8px;right:42px}.mascot-suggestion:hover{background:#fffaf0}.terminal-controls{justify-content:flex-end;align-items:center;gap:8px;padding-top:8px;display:flex}.terminal-controls,.terminal-panel>footer{cursor:text}#new-chat{margin-right:auto}#newline:not(:hover){background:0 0}#notice{border-radius:var(--radius-small);background:var(--control);margin:6px 0;padding:8px 10px;font-size:12px}footer{color:var(--muted);justify-content:space-between;align-items:center;gap:8px;padding-top:8px;font-size:10px;display:flex}.workspace{min-width:0;min-height:0;margin:12px var(--content-gutter) 8px 0;border-radius:var(--radius-large);background:var(--panel);flex-direction:column;display:flex;overflow:hidden}.workspace-heading{justify-content:space-between;align-items:center;min-height:40px;padding:5px 10px;display:flex}.workspace-heading h2{margin:0;font-size:12px;font-weight:600}.workspace-heading>div{gap:0;display:flex}.button{display:inline-block}.file-area{flex:1;grid-template-columns:140px minmax(0,1fr);min-height:180px;display:grid}#files{padding:5px 4px;overflow:auto}#files button{border-radius:var(--radius-small);text-align:left;white-space:normal;overflow-wrap:anywhere;background:0 0;border:none;align-items:center;gap:6px;width:100%;padding:5px 7px;font-family:ui-monospace,monospace;font-size:11px;line-height:1.45;display:flex}.file-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.file-icon{background-color:var(--file-color);width:16px;height:16px;-webkit-mask:var(--file-icon) center / contain no-repeat;mask:var(--file-icon) center / contain no-repeat;-webkit-mask:var(--file-icon) center / contain no-repeat;flex:0 0 16px;display:inline-block}.editor-file{align-items:center;gap:6px;min-width:0;display:flex}#filetype{flex:none;display:flex}#filetype:empty{display:none}@media (forced-colors:active){.file-icon{background-color:canvastext}}#files button:hover{background:var(--hover)}#files button.selected{background:var(--selected);color:var(--text)}.editor-area{border-radius:var(--radius);background:var(--surface);flex-direction:column;min-width:0;min-height:0;margin:0 8px 8px 0;display:flex;overflow:hidden}.editor-heading{background:#282832;justify-content:space-between;align-items:center;gap:6px;height:32px;padding:0 6px 0 10px;display:flex}#filename{text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,monospace;font-size:11px;overflow:hidden}#editor{resize:none;min-height:140px;color:var(--text);tab-size:2;white-space:pre;background:0 0;border:0;flex:1;padding:10px 12px;font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;overflow:auto}.workspace>.terminal{border-radius:var(--radius);background:var(--background);flex-shrink:0;margin:0 8px;padding:0 8px 8px}.terminal summary{cursor:pointer;padding:6px 0;font-size:11px;font-weight:500}.terminal summary span{float:right;color:var(--muted);font-size:10px;font-weight:400}.shell-toolbar{color:var(--accent);justify-content:space-between;align-items:center;font:11px/1.5 ui-monospace,monospace;display:flex}.shell-toolbar button{color:var(--muted)}#terminal-output{resize:vertical;scrollbar-width:thin;overflow-wrap:anywhere;height:132px;min-height:84px;max-height:min(480px,45dvh);margin:0 0 6px;padding:2px 0;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;overflow:auto}#terminal-output:focus-visible{outline:1px solid var(--accent);outline-offset:2px;border-radius:var(--radius-small)}.shell-empty{color:var(--muted);flex-direction:column;gap:4px;padding:8px 2px;display:flex}.shell-empty strong{color:var(--text);font-weight:500}.shell-empty code{color:var(--accent)}.shell-entry{border-radius:var(--radius-small);background:var(--surface);margin-bottom:6px;padding:8px}.shell-entry:last-child{margin-bottom:0}.shell-entry-heading{align-items:baseline;gap:8px;display:flex}.shell-entry pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.shell-code{flex:1;min-width:0}.shell-status{color:var(--muted);flex-shrink:0;font-size:10px}.shell-status.success{color:#b5bd68}.shell-status.error,.shell-stderr{color:#e29a9a}.shell-entry .shell-stdout,.shell-entry .shell-stderr{margin:6px 0 0 16px}#shell-form{border-radius:var(--radius-small);background:var(--control);align-items:flex-start;gap:8px;padding:4px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;display:flex}#shell-form:focus-within{box-shadow:0 0 0 1px var(--accent)}.shell-prompt{color:var(--accent);flex-shrink:0}#shell-form>.shell-prompt{padding-top:6px;line-height:20px}.shell-input{flex:1;min-width:0;position:relative}#command,#command-highlight{font-variant-ligatures:none;letter-spacing:normal;tab-size:2;white-space:pre-wrap;overflow-wrap:anywhere;border:0;border-radius:0;width:100%;margin:0;padding:6px 0;font:12px/20px ui-monospace,SFMono-Regular,Consolas,monospace}#command-highlight{pointer-events:none;position:absolute;inset:0;overflow:hidden}#command{resize:none;color:#0000;min-height:32px;max-height:104px;caret-color:var(--text);scrollbar-width:thin;background:0 0;display:block;position:relative}#command:focus{box-shadow:none}#command::selection{color:#0000;background:#8abeb740}#command::placeholder{color:var(--muted)}#shell-run{border-radius:4px;min-height:32px}#shell-hint{color:var(--muted);flex-wrap:wrap;justify-content:space-between;gap:2px 12px;padding-top:5px;font-size:10px;line-height:1.5;display:flex}.shell-code .token,#command-highlight .token{font-style:normal;font-weight:400}.shell-code .token.comment,#command-highlight .token.comment{color:#aaaab7}.shell-code .token.string,#command-highlight .token.string{color:#b5bd68}.shell-code .token.function,.shell-code .token.builtin,#command-highlight .token.function,#command-highlight .token.builtin{color:#8abeb7}.shell-code .token.variable,.shell-code .token.assign-left,#command-highlight .token.variable,#command-highlight .token.assign-left{color:#c4a7d5}.shell-code .token.keyword,.shell-code .token.operator,.shell-code .token.number,#command-highlight .token.keyword,#command-highlight .token.operator,#command-highlight .token.number{color:#f0c674}.shell-code .token.parameter,#command-highlight .token.parameter{color:#9db9d4}@media (forced-colors:active){#command-highlight{display:none}#command{color:canvastext}#command::selection{color:canvastext}}.workspace-note{color:var(--muted);margin:6px 10px;font-size:10px;line-height:1.45}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}#open-tab{color:var(--accent);white-space:normal;margin-top:8px;font-size:12px;text-decoration:none}#model-dialog{--dialog-inset:24px;width:min(460px,100% - 32px);max-height:calc(100dvh - 32px);padding:var(--dialog-inset);border-radius:calc(var(--radius-small) + var(--dialog-inset));background:var(--surface);color:var(--text);border:0;overflow:auto;box-shadow:0 24px 80px #0008}#model-dialog[open]{flex-direction:column;display:flex}.setup-body{min-height:0;overflow:auto}#model-dialog::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#08080dbd}.setup-icon{width:32px;height:32px;color:var(--accent);flex:none;display:block}.setup-intro{color:var(--muted);align-items:center;gap:10px;font-size:11px;display:flex}#model-title{letter-spacing:-.5px;margin:16px 0 8px;font-size:27px;font-weight:650;line-height:1.2}#model-description{color:var(--muted);margin:0;line-height:1.6}.setup-runtime{grid-template-columns:minmax(max-content,1fr) 1fr 1.2fr;gap:8px;margin:18px 0;display:grid}.setup-runtime>div{border-radius:var(--radius-small);background:var(--control);padding:10px}.setup-runtime dt{color:var(--accent);font-size:12px;font-weight:600}.setup-runtime dd{margin:5px 0 0;font-size:11px;line-height:1.5}.setup-model{align-items:center;gap:6px;display:flex}.model-org{border-radius:50%;flex:none;display:inline-flex}.model-org img{border-radius:inherit;width:18px;height:18px;display:block}.model-source{color:inherit;-webkit-text-decoration-color:var(--muted);text-decoration-color:var(--muted);text-underline-offset:3px;white-space:nowrap}.model-source:hover{color:var(--accent)}.setup-model a:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}.setup-facts{border-radius:var(--radius-small);background:var(--panel);flex-direction:column;gap:5px;margin:18px 0;padding:12px;line-height:1.45;display:flex}.setup-facts strong{font-size:12px;font-weight:600}.setup-facts span,.setup-label,.setup-privacy,#model-detail{color:var(--muted);font-size:11px;line-height:1.5}.setup-label{margin:16px 0 6px}#model-preview{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:var(--radius-small);background:var(--control);max-height:84px;padding:10px 12px;font-size:12px;line-height:1.5;overflow:auto}#model-status{margin:18px 0 0;line-height:1.5}#model-detail{margin:5px 0 0}#model-error{border-radius:var(--radius-small);overflow-wrap:anywhere;background:#3c2828;padding:10px 12px;line-height:1.5}#model-open-tab{color:var(--accent);white-space:normal;text-decoration:none}.setup-privacy{margin:18px 0}.setup-actions{flex-wrap:wrap;flex-shrink:0;justify-content:flex-end;gap:8px;padding-top:4px;display:flex}.setup-actions button{min-height:38px;padding:8px 12px}#model-confirm{color:#18181e;background:#fff;font-weight:600}#model-confirm:hover{background:#e8e8ed}@media (width<=420px){#model-dialog{--dialog-inset:16px}.setup-icon{width:28px;height:28px}#model-title{margin-top:12px;font-size:24px}.setup-runtime{grid-template-columns:1fr;gap:5px;margin:14px 0}.setup-runtime>div{align-items:baseline;gap:12px;padding:8px 10px;display:flex}.setup-runtime dt{flex:0 0 64px}.setup-runtime dd{margin:0}.setup-facts{margin:14px 0}.setup-privacy{margin:12px 0}.setup-actions{flex-direction:column-reverse}.setup-actions button{width:100%}}@media (width>=851px) and (width<=1000px){header{grid-template-columns:auto minmax(0,1fr) auto}}@media (width<=850px){:root{--header-height:calc(2 * var(--header-control-height) + 3 * var(--surface-inset));--header-inset:10px;--content-gutter:10px}header{grid-template-columns:auto minmax(0,1fr);grid-template-rows:repeat(2, var(--header-control-height));gap:var(--surface-inset);grid-template-areas:"brand runtime""model model"}.brand{grid-area:brand;justify-self:start}.runtime-meter{grid-area:runtime;justify-self:end}.model-panel{grid-area:model;margin:0}main{flex-direction:column;height:auto;display:flex}.conversation{height:calc(100dvh - var(--header-height) - var(--header-inset));min-height:320px;padding:10px var(--content-gutter)}.workspace{min-height:520px;margin:0 var(--content-gutter) 10px}.file-area{grid-template-columns:115px minmax(0,1fr);min-height:280px}h1{font-size:20px}.badge,footer{font-size:9px}}@media (pointer:coarse){:root{--header-control-height:38px}button,.button,#files button{min-height:38px}.editor-heading{min-height:40px}.terminal summary{padding-top:11px;padding-bottom:11px}#command,#command-highlight,#pi-terminal .xterm-helper-textarea{font-size:16px}}.xterm{cursor:text;-webkit-user-select:none;user-select:none;position:relative}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{z-index:5;position:absolute;top:0}.xterm .xterm-helper-textarea{opacity:0;z-index:-5;white-space:nowrap;resize:none;border:0;width:0;height:0;margin:0;padding:0;position:absolute;top:0;left:-9999em;overflow:hidden}.xterm .composition-view{color:#fff;white-space:nowrap;z-index:1;background:#000;display:none;position:absolute}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{cursor:default;background-color:#000;position:absolute;inset:0;overflow-y:scroll}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;top:0;left:0}.xterm-char-measure-element{visibility:hidden;line-height:normal;display:inline-block;position:absolute;top:0;left:-9999em}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{z-index:10;color:#0000;pointer-events:none;position:absolute;inset:0}.xterm .xterm-accessibility-tree:not(.debug) ::selection{color:#0000}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre;font-family:monospace}.xterm .xterm-accessibility-tree>div{transform-origin:0;width:fit-content}.xterm .live-region{width:1px;height:1px;position:absolute;left:-9999px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:underline double;text-decoration:underline double}.xterm-underline-3{-webkit-text-decoration:underline wavy;text-decoration:underline wavy}.xterm-underline-4{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.xterm-underline-5{-webkit-text-decoration:underline dashed;text-decoration:underline dashed}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:underline overline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;pointer-events:none;position:absolute;top:0;right:0}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;z-index:11;background:0 0;transition:opacity .1s linear}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{display:none;position:absolute}.xterm .xterm-scrollable-element>.shadow.top{width:100%;height:3px;box-shadow:var(--vscode-scrollbar-shadow,#000) 0 6px 6px -6px inset;display:block;top:0;left:3px}.xterm .xterm-scrollable-element>.shadow.left{width:3px;height:100%;box-shadow:var(--vscode-scrollbar-shadow,#000) 6px 0 6px -6px inset;display:block;top:3px;left:0}.xterm .xterm-scrollable-element>.shadow.top-left-corner{width:3px;height:3px;display:block;top:0;left:0}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow,#000) 6px 0 6px -6px inset}
 
 
assets/{index-BdF9N08_.js → index-DuUZYbeE.js} RENAMED
@@ -130,7 +130,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
130
  `).replace(/[\r\u0085\u2028\u2029]/g,`
131
  `)}function h(e){if(e||={},e.locator===void 0&&(e.locator=!0),this.assign=e.assign||t.assign,this.domHandler=e.domHandler||g,this.onError=e.onError||e.errorHandler,e.errorHandler&&typeof e.errorHandler!=`function`)throw TypeError(`errorHandler object is no longer supported, switch to onError!`);e.errorHandler&&e.errorHandler(`warning`,"The `errorHandler` option has been deprecated, use `onError` instead!",this),this.normalizeLineEndings=e.normalizeLineEndings||m,this.locator=!!e.locator,this.xmlns=this.assign(Object.create(null),e.xmlns)}h.prototype.parseFromString=function(e,n){if(!l(n))throw TypeError(`DOMParser.parseFromString: the provided mimeType "`+n+`" is not valid.`);var r=this.assign(Object.create(null),this.xmlns),a=i.XML_ENTITIES,o=r[``]||null;s(n)?(a=i.HTML_ENTITIES,o=d.HTML):n===u.XML_SVG_IMAGE&&(o=d.SVG),r[``]=o,r.xml=r.xml||d.XML;var c=new this.domHandler({mimeType:n,defaultNamespace:o,onError:this.onError}),f=this.locator?{}:void 0;this.locator&&c.setDocumentLocator(f);var m=new p;return m.errorHandler=c,m.domBuilder=c,!t.isHTMLMimeType(n)&&typeof e!=`string`&&m.errorHandler.fatalError(`source is not a string`),m.parse(this.normalizeLineEndings(String(e)),r,a),c.doc.documentElement||m.errorHandler.fatalError(`missing root element`),c.doc};function g(e){var t=e||{};this.mimeType=t.mimeType||u.XML_APPLICATION,this.defaultNamespace=t.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=t.onError}function _(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}g.prototype={startDocument:function(){var e=new o;this.doc=c(this.mimeType)?e.createHTMLDocument(!1):e.createDocument(this.defaultNamespace,``)},startElement:function(e,t,n,r){var i=this.doc,a=i.createElementNS(e,n||t),o=r.length;b(this,a),this.currentElement=a,this.locator&&_(this.locator,a);for(var s=0;s<o;s++){var e=r.getURI(s),c=r.getValue(s),n=r.getQName(s),l=i.createAttributeNS(e,n);this.locator&&_(r.getLocator(s),l),l.value=l.nodeValue=c,a.setAttributeNode(l)}},endElement:function(e,t,n){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&_(this.locator,n),b(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=y.apply(this,arguments),e){if(this.cdata)var r=this.doc.createCDATASection(e);else var r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&_(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){e&&(e.lineNumber=0),this.locator=e},comment:function(e,t,n){e=y.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&_(this.locator,r),b(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n,r){var i=this.doc.implementation;if(i&&i.createDocumentType){var a=i.createDocumentType(e,t,n,r);this.locator&&_(this.locator,a),b(this,a),this.doc.doctype=a}},reportError:function(e,t){if(typeof this.onError==`function`)try{this.onError(e,t,this)}catch(n){throw new f(`Reporting `+e+` "`+t+`" caused `+n,this.locator)}else console.error(`[xmldom `+e+`] `+t,v(this.locator))},warning:function(e){this.reportError(`warning`,e)},error:function(e){this.reportError(`error`,e)},fatalError:function(e,t){throw this.reportError(`fatalError`,e),new f(e,this.locator,t)}};function v(e){if(e)return`
132
  @#[line:`+e.lineNumber+`,col:`+e.columnNumber+`]`}function y(e,t,n){return typeof e==`string`?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+``:e}`endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl`.replace(/\w+/g,function(e){g.prototype[e]=function(){return null}});function b(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}function x(e){if(e===`error`)throw`onErrorStopParsing`}function S(){throw`onWarningStopParsing`}e.__DOMHandler=g,e.DOMParser=h,e.normalizeLineEndings=m,e.onErrorStopParsing=x,e.onWarningStopParsing=S}));o((e=>{var t=Cg();e.assign=t.assign,e.hasDefaultHTMLNamespace=t.hasDefaultHTMLNamespace,e.isHTMLMimeType=t.isHTMLMimeType,e.isValidMimeType=t.isValidMimeType,e.MIME_TYPE=t.MIME_TYPE,e.NAMESPACE=t.NAMESPACE;var n=wg();e.DOMException=n.DOMException,e.DOMExceptionName=n.DOMExceptionName,e.ExceptionCode=n.ExceptionCode,e.ParseError=n.ParseError;var r=Eg();e.Attr=r.Attr,e.CDATASection=r.CDATASection,e.CharacterData=r.CharacterData,e.Comment=r.Comment,e.Document=r.Document,e.DocumentFragment=r.DocumentFragment,e.DocumentType=r.DocumentType,e.DOMImplementation=r.DOMImplementation,e.Element=r.Element,e.Entity=r.Entity,e.EntityReference=r.EntityReference,e.LiveNodeList=r.LiveNodeList,e.NamedNodeMap=r.NamedNodeMap,e.Node=r.Node,e.NodeList=r.NodeList,e.Notation=r.Notation,e.ProcessingInstruction=r.ProcessingInstruction,e.Text=r.Text,e.XMLSerializer=r.XMLSerializer;var i=kg();e.DOMParser=i.DOMParser,e.normalizeLineEndings=i.normalizeLineEndings,e.onErrorStopParsing=i.onErrorStopParsing,e.onWarningStopParsing=i.onWarningStopParsing}))();var Ag=e=>typeof e==`string`?e:(e??[]).filter(e=>e.type===`text`).map(e=>e.text).join(`
133
- `),jg=8192;function Mg(e){let t=e.findLast(e=>e.role===`assistant`&&e.usage?.input>0);return t?{inputTokens:t.usage.input,outputTokens:t.usage.output??0}:e.length?null:{inputTokens:0,outputTokens:0}}function Ng(e){if(!e)return`—/${jg.toLocaleString(`en-US`)} context`;let t=e.inputTokens+e.outputTokens,n=Math.max(0,jg-t);return`${t.toLocaleString(`en-US`)}/${jg.toLocaleString(`en-US`)} context · ${n.toLocaleString(`en-US`)} free`}function Pg(e,t){let n=document.createElement(`div`);n.className=`empty-mascot`,n.hidden=!0;let r=document.createElement(`button`);r.type=`button`,r.className=`mascot-suggestion`;let i=document.createElement(`img`);i.width=i.height=128,i.alt=``,i.draggable=!1,n.append(r,i),e.append(n);let a=``;return r.onclick=()=>t(a),{hide(){n.hidden=!0},update({screen:t,rows:o,viewportRows:s,contentRows:c,draft:l,hasSales:u}){if(!t||!o){n.hidden=!0;return}let d=t.getBoundingClientRect(),f=e.getBoundingClientRect(),p=d.height/o,m=(s-c)*p-16;if(m<48){n.hidden=!0;return}i.hasAttribute(`src`)||(i.src=new URL(``+new URL(`../empty-cat-v1.png`,import.meta.url).href,``+import.meta.url).href);let h=!l.trim()&&m>=204;r.hidden=!h,r.textContent=u?`Ask me to calculate our total sales.`:`Ask me to explore your files.`,a=u?`Calculate total revenue from sales.csv using bash, save a short report to report.md, and verify the result.`:`Explore the workspace files and summarize what is here.`,r.setAttribute(`aria-label`,`Use suggested prompt: ${a}`);let g=Math.min(128,Math.floor(h?m-76:m));i.style.width=i.style.height=`${g}px`,n.hidden=!1,n.style.top=`${d.top-f.top+s*p-8-n.offsetHeight}px`},dispose(){n.remove()}}}var Fg=e=>nd(String(e??``)).replace(/\r\n?/g,`
134
  `).replace(/[\x00-\x08\x0b-\x1f\x7f-\x9f]/g,``),Ig=[{value:`/help`,label:`/help`,description:`Browser terminal commands`},{value:`/load`,label:`/load`,description:`Load MiniCPM on this device`},{value:`/new`,label:`/new`,description:`Start a new conversation; keep files`},{value:`/clear`,label:`/clear`,description:`Same as /new`}];function Lg(e,t){let n=new _s({fontFamily:`ui-monospace, SFMono-Regular, Menlo, Consolas, monospace`,fontSize:13,lineHeight:1.3,theme:pg,cursorBlink:!1,scrollback:0,screenReaderMode:!0,allowProposedApi:!0});n.loadAddon(new yl);let r=document.createElement(`div`);r.className=`pi-terminal-mount`,e.append(r);let i=new bs;n.loadAddon(i),n.open(r);let a=new Sg(n),o=new Zf(a,!0,void 0,{copyOnSelect:!1,copySelection:async e=>{try{return await navigator.clipboard.writeText(e),!0}catch{return!1}},openUrl:e=>{/^https?:\/\//i.test(e)&&window.open(e,`_blank`,`noopener,noreferrer`)},scrollToEndIndicator:()=>Q.fg(`accent`,` ↓ Latest `),searchMatchStyle:e=>Q.bg(`selectedBg`,Q.fg(`text`,e)),searchCurrentMatchStyle:e=>Q.bg(`accent`,Q.fg(`userMessageBg`,Q.bold(e)))}),s=new nu({...eu,"app.interrupt":{defaultKeys:[`escape`,`ctrl+c`]},"app.exit":{defaultKeys:`ctrl+d`},"app.tools.expand":{defaultKeys:`ctrl+o`},"tui.editor.historyPrevious":{defaultKeys:`ctrl+p`},"tui.editor.historyNext":{defaultKeys:`ctrl+n`}});iu(s);let c=new lg(o,hg(),s,{paddingX:0}),l=new Nd,u=new rf(l,{follow:`end`,primary:!0,scrollbar:`auto`,scrollbarTrackStyle:e=>Q.fg(`borderMuted`,e),scrollbarThumbStyle:e=>Q.fg(`muted`,e)}),d=new bp(``,0,0);o.setLayoutRoot(new Jh([{component:u,basis:0,grow:1,minSize:0},{component:new Jh([d,c,{invalidate(){},render(e){let t=`/workspace · MiniCPM5-2B`,n=Ng(f.contextUsage),r=`${t} · ${n}`;return(r.length<=e-2?[r]:[t,n]).flatMap(t=>new bp(Q.fg(`dim`,t),1,0).render(e))}}]),basis:`auto`,shrink:0}])),o.setFocus(c);let f={loaded:!1,busy:!1,activity:``,contextUsage:Mg([])},p=[],m=[],h=!1,g=!1,_=!1,v=Pg(e,e=>{f.busy||g||c.getText().trim()||(c.setText(e),n.focus(),o.requestRender())});function y(){if(!_||m.some(e=>e.role===`user`)||f.busy||g){v.hide();return}v.update({screen:r.querySelector(`.xterm-screen`),rows:n.rows,viewportRows:u.viewportHeight,contentRows:l.render(n.cols).length,draft:c.getText(),hasSales:p.includes(`sales.csv`)})}let b=n.onRender(y),x=new Map,S=[],C=new Set,w=new Nd;w.addChild(new yp(Q.fg(`accent`,Q.bold(`π Pi`))+Q.fg(`muted`,` browser workspace`),1,1)),w.addChild(new yp(`Ask Pi to work with the files on the right.
135
 
136
  /load load MiniCPM
 
130
  `).replace(/[\r\u0085\u2028\u2029]/g,`
131
  `)}function h(e){if(e||={},e.locator===void 0&&(e.locator=!0),this.assign=e.assign||t.assign,this.domHandler=e.domHandler||g,this.onError=e.onError||e.errorHandler,e.errorHandler&&typeof e.errorHandler!=`function`)throw TypeError(`errorHandler object is no longer supported, switch to onError!`);e.errorHandler&&e.errorHandler(`warning`,"The `errorHandler` option has been deprecated, use `onError` instead!",this),this.normalizeLineEndings=e.normalizeLineEndings||m,this.locator=!!e.locator,this.xmlns=this.assign(Object.create(null),e.xmlns)}h.prototype.parseFromString=function(e,n){if(!l(n))throw TypeError(`DOMParser.parseFromString: the provided mimeType "`+n+`" is not valid.`);var r=this.assign(Object.create(null),this.xmlns),a=i.XML_ENTITIES,o=r[``]||null;s(n)?(a=i.HTML_ENTITIES,o=d.HTML):n===u.XML_SVG_IMAGE&&(o=d.SVG),r[``]=o,r.xml=r.xml||d.XML;var c=new this.domHandler({mimeType:n,defaultNamespace:o,onError:this.onError}),f=this.locator?{}:void 0;this.locator&&c.setDocumentLocator(f);var m=new p;return m.errorHandler=c,m.domBuilder=c,!t.isHTMLMimeType(n)&&typeof e!=`string`&&m.errorHandler.fatalError(`source is not a string`),m.parse(this.normalizeLineEndings(String(e)),r,a),c.doc.documentElement||m.errorHandler.fatalError(`missing root element`),c.doc};function g(e){var t=e||{};this.mimeType=t.mimeType||u.XML_APPLICATION,this.defaultNamespace=t.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=t.onError}function _(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}g.prototype={startDocument:function(){var e=new o;this.doc=c(this.mimeType)?e.createHTMLDocument(!1):e.createDocument(this.defaultNamespace,``)},startElement:function(e,t,n,r){var i=this.doc,a=i.createElementNS(e,n||t),o=r.length;b(this,a),this.currentElement=a,this.locator&&_(this.locator,a);for(var s=0;s<o;s++){var e=r.getURI(s),c=r.getValue(s),n=r.getQName(s),l=i.createAttributeNS(e,n);this.locator&&_(r.getLocator(s),l),l.value=l.nodeValue=c,a.setAttributeNode(l)}},endElement:function(e,t,n){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&_(this.locator,n),b(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=y.apply(this,arguments),e){if(this.cdata)var r=this.doc.createCDATASection(e);else var r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&_(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){e&&(e.lineNumber=0),this.locator=e},comment:function(e,t,n){e=y.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&_(this.locator,r),b(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n,r){var i=this.doc.implementation;if(i&&i.createDocumentType){var a=i.createDocumentType(e,t,n,r);this.locator&&_(this.locator,a),b(this,a),this.doc.doctype=a}},reportError:function(e,t){if(typeof this.onError==`function`)try{this.onError(e,t,this)}catch(n){throw new f(`Reporting `+e+` "`+t+`" caused `+n,this.locator)}else console.error(`[xmldom `+e+`] `+t,v(this.locator))},warning:function(e){this.reportError(`warning`,e)},error:function(e){this.reportError(`error`,e)},fatalError:function(e,t){throw this.reportError(`fatalError`,e),new f(e,this.locator,t)}};function v(e){if(e)return`
132
  @#[line:`+e.lineNumber+`,col:`+e.columnNumber+`]`}function y(e,t,n){return typeof e==`string`?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+``:e}`endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl`.replace(/\w+/g,function(e){g.prototype[e]=function(){return null}});function b(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}function x(e){if(e===`error`)throw`onErrorStopParsing`}function S(){throw`onWarningStopParsing`}e.__DOMHandler=g,e.DOMParser=h,e.normalizeLineEndings=m,e.onErrorStopParsing=x,e.onWarningStopParsing=S}));o((e=>{var t=Cg();e.assign=t.assign,e.hasDefaultHTMLNamespace=t.hasDefaultHTMLNamespace,e.isHTMLMimeType=t.isHTMLMimeType,e.isValidMimeType=t.isValidMimeType,e.MIME_TYPE=t.MIME_TYPE,e.NAMESPACE=t.NAMESPACE;var n=wg();e.DOMException=n.DOMException,e.DOMExceptionName=n.DOMExceptionName,e.ExceptionCode=n.ExceptionCode,e.ParseError=n.ParseError;var r=Eg();e.Attr=r.Attr,e.CDATASection=r.CDATASection,e.CharacterData=r.CharacterData,e.Comment=r.Comment,e.Document=r.Document,e.DocumentFragment=r.DocumentFragment,e.DocumentType=r.DocumentType,e.DOMImplementation=r.DOMImplementation,e.Element=r.Element,e.Entity=r.Entity,e.EntityReference=r.EntityReference,e.LiveNodeList=r.LiveNodeList,e.NamedNodeMap=r.NamedNodeMap,e.Node=r.Node,e.NodeList=r.NodeList,e.Notation=r.Notation,e.ProcessingInstruction=r.ProcessingInstruction,e.Text=r.Text,e.XMLSerializer=r.XMLSerializer;var i=kg();e.DOMParser=i.DOMParser,e.normalizeLineEndings=i.normalizeLineEndings,e.onErrorStopParsing=i.onErrorStopParsing,e.onWarningStopParsing=i.onWarningStopParsing}))();var Ag=e=>typeof e==`string`?e:(e??[]).filter(e=>e.type===`text`).map(e=>e.text).join(`
133
+ `),jg=8192;function Mg(e){let t=e.findLast(e=>e.role===`assistant`&&e.usage?.input>0);return t?{inputTokens:t.usage.input,outputTokens:t.usage.output??0}:e.length?null:{inputTokens:0,outputTokens:0}}function Ng(e){if(!e)return`—/${jg.toLocaleString(`en-US`)} context`;let t=e.inputTokens+e.outputTokens,n=Math.max(0,jg-t);return`${t.toLocaleString(`en-US`)}/${jg.toLocaleString(`en-US`)} context · ${n.toLocaleString(`en-US`)} free`}function Pg(e,t){let n=document.createElement(`div`);n.className=`empty-mascot`,n.hidden=!0;let r=document.createElement(`button`);r.type=`button`,r.className=`mascot-suggestion`;let i=document.createElement(`span`);i.className=`mascot-cat`,i.setAttribute(`aria-hidden`,`true`);let a=document.createElement(`img`);a.width=a.height=104,a.alt=``,a.draggable=!1;let o=document.createElement(`span`);o.className=`mascot-eyelids`,i.append(a,o),n.append(r,i),e.append(n);let s=``,c=!1,l=0,u=0,d=new Set,f=matchMedia(`(prefers-reduced-motion: reduce)`);function p(e,t,n){let r=e.animate(t,n);d.add(r),r.onfinish=()=>d.delete(r)}function m(){clearTimeout(l),clearTimeout(u),l=u=0;for(let e of d)e.cancel();d.clear()}function h(){if(n.hidden||document.hidden||f.matches||!a.complete||!a.naturalWidth){m();return}!c&&!l&&(l=setTimeout(()=>{l=0,c=!0,p(i,[{transform:`translateY(0)`,easing:`ease-out`},{transform:`translateY(-4px)`,offset:.4,easing:`ease-in`},{transform:`translateY(0)`}],{id:`mascot-bump`,duration:420})},1800)),u||=setTimeout(()=>{u=0,p(o,[{opacity:0,easing:`steps(1, end)`},{opacity:1,offset:.15},{opacity:1,offset:.8,easing:`steps(1, end)`},{opacity:0}],{id:`mascot-blink`,duration:180}),h()},5e3+Math.random()*4e3)}function g(){n.hidden=!0,m()}return a.addEventListener(`load`,h),document.addEventListener(`visibilitychange`,h),f.addEventListener(`change`,h),r.onclick=()=>t(s),{hide:g,update({screen:t,rows:o,viewportRows:c,contentRows:l,draft:u,hasSales:d}){if(!t||!o){g();return}let f=t.getBoundingClientRect(),p=e.getBoundingClientRect(),m=f.height/o,_=(c-l)*m-16;if(_<48){g();return}a.hasAttribute(`src`)||(a.src=new URL(``+new URL(`../empty-cat-v1.png`,import.meta.url).href,``+import.meta.url).href);let v=!u.trim()&&_>=180;r.hidden=!v,r.textContent=d?`Ask me to calculate our total sales.`:`Ask me to explore your files.`,s=d?`Calculate total revenue from sales.csv using bash, save a short report to report.md, and verify the result.`:`Explore the workspace files and summarize what is here.`,r.setAttribute(`aria-label`,`Use suggested prompt: ${s}`);let y=Math.min(104,Math.floor(v?_-76:_));i.style.width=i.style.height=`${y}px`,n.hidden=!1,n.style.top=`${f.top-p.top+c*m-8-n.offsetHeight}px`,h()},dispose(){g(),a.removeEventListener(`load`,h),document.removeEventListener(`visibilitychange`,h),f.removeEventListener(`change`,h),n.remove()}}}var Fg=e=>nd(String(e??``)).replace(/\r\n?/g,`
134
  `).replace(/[\x00-\x08\x0b-\x1f\x7f-\x9f]/g,``),Ig=[{value:`/help`,label:`/help`,description:`Browser terminal commands`},{value:`/load`,label:`/load`,description:`Load MiniCPM on this device`},{value:`/new`,label:`/new`,description:`Start a new conversation; keep files`},{value:`/clear`,label:`/clear`,description:`Same as /new`}];function Lg(e,t){let n=new _s({fontFamily:`ui-monospace, SFMono-Regular, Menlo, Consolas, monospace`,fontSize:13,lineHeight:1.3,theme:pg,cursorBlink:!1,scrollback:0,screenReaderMode:!0,allowProposedApi:!0});n.loadAddon(new yl);let r=document.createElement(`div`);r.className=`pi-terminal-mount`,e.append(r);let i=new bs;n.loadAddon(i),n.open(r);let a=new Sg(n),o=new Zf(a,!0,void 0,{copyOnSelect:!1,copySelection:async e=>{try{return await navigator.clipboard.writeText(e),!0}catch{return!1}},openUrl:e=>{/^https?:\/\//i.test(e)&&window.open(e,`_blank`,`noopener,noreferrer`)},scrollToEndIndicator:()=>Q.fg(`accent`,` ↓ Latest `),searchMatchStyle:e=>Q.bg(`selectedBg`,Q.fg(`text`,e)),searchCurrentMatchStyle:e=>Q.bg(`accent`,Q.fg(`userMessageBg`,Q.bold(e)))}),s=new nu({...eu,"app.interrupt":{defaultKeys:[`escape`,`ctrl+c`]},"app.exit":{defaultKeys:`ctrl+d`},"app.tools.expand":{defaultKeys:`ctrl+o`},"tui.editor.historyPrevious":{defaultKeys:`ctrl+p`},"tui.editor.historyNext":{defaultKeys:`ctrl+n`}});iu(s);let c=new lg(o,hg(),s,{paddingX:0}),l=new Nd,u=new rf(l,{follow:`end`,primary:!0,scrollbar:`auto`,scrollbarTrackStyle:e=>Q.fg(`borderMuted`,e),scrollbarThumbStyle:e=>Q.fg(`muted`,e)}),d=new bp(``,0,0);o.setLayoutRoot(new Jh([{component:u,basis:0,grow:1,minSize:0},{component:new Jh([d,c,{invalidate(){},render(e){let t=`/workspace · MiniCPM5-2B`,n=Ng(f.contextUsage),r=`${t} · ${n}`;return(r.length<=e-2?[r]:[t,n]).flatMap(t=>new bp(Q.fg(`dim`,t),1,0).render(e))}}]),basis:`auto`,shrink:0}])),o.setFocus(c);let f={loaded:!1,busy:!1,activity:``,contextUsage:Mg([])},p=[],m=[],h=!1,g=!1,_=!1,v=Pg(e,e=>{f.busy||g||c.getText().trim()||(c.setText(e),n.focus(),o.requestRender())});function y(){if(!_||m.some(e=>e.role===`user`)||f.busy||g){v.hide();return}v.update({screen:r.querySelector(`.xterm-screen`),rows:n.rows,viewportRows:u.viewportHeight,contentRows:l.render(n.cols).length,draft:c.getText(),hasSales:p.includes(`sales.csv`)})}let b=n.onRender(y),x=new Map,S=[],C=new Set,w=new Nd;w.addChild(new yp(Q.fg(`accent`,Q.bold(`π Pi`))+Q.fg(`muted`,` browser workspace`),1,1)),w.addChild(new yp(`Ask Pi to work with the files on the right.
135
 
136
  /load load MiniCPM
deployment-manifest.json CHANGED
@@ -21,8 +21,8 @@
21
  "sha256": "196d96e03432dd5a222e63d9757817a65589d27e6562f7f7c748c9eee40a7694"
22
  },
23
  "app/README.md": {
24
- "bytes": 13984,
25
- "sha256": "e8ca26d4088ad453b9d489e443f7de54333673019b04eaad2049eac208321767"
26
  },
27
  "app/index.html": {
28
  "bytes": 8655,
@@ -209,8 +209,8 @@
209
  "sha256": "62f09aa13c695980717c7bc7e25ad6aba66254faa994bf81f39d2a912a89ff83"
210
  },
211
  "app/src/pi/empty-mascot.mjs": {
212
- "bytes": 1898,
213
- "sha256": "edec799b048cc7d26fd561c3510383116518df9fd32a87b61749fdaa96840edb"
214
  },
215
  "app/src/pi/entry.mjs": {
216
  "bytes": 1351,
@@ -249,8 +249,8 @@
249
  "sha256": "dec9e2962a0f5c076512368395017fb5af7c9f7bfbe8cfed10105072dbcb76fe"
250
  },
251
  "app/src/style.css": {
252
- "bytes": 19009,
253
- "sha256": "339551dc979dc288c12c44ad7a541d9d3be315043ff0d1b770da92f2be1cad6e"
254
  },
255
  "app/src/token-rate.mjs": {
256
  "bytes": 931,
@@ -384,13 +384,13 @@
384
  "bytes": 2097535,
385
  "sha256": "d729aae5656b286940b5b26c53d0373ae7f231c0eb7ec722975374f6eca12cf0"
386
  },
387
- "assets/index-BdF9N08_.js": {
388
- "bytes": 752999,
389
- "sha256": "9a1bc64461b9cd0a23130871ca999c8f6d1e27ef6c69830a9a7624383b21b125"
390
  },
391
- "assets/index-CsO3FMEc.css": {
392
- "bytes": 20715,
393
- "sha256": "3cc9922b1b40fcdd264630cfd7e682d6bdef54901c456045a21bdfa384e3ab76"
394
  },
395
  "assets/ort-wasm-simd-threaded.asyncify-DMmc6YqF.wasm": {
396
  "bytes": 23567050,
@@ -478,7 +478,7 @@
478
  },
479
  "index.html": {
480
  "bytes": 8752,
481
- "sha256": "e27cf59a86469337f2d3b53ab524a20f0db5bc681e51115bd9c3fc0371fa71c2"
482
  },
483
  "licenses/dependencies.txt": {
484
  "bytes": 1386543,
@@ -681,8 +681,8 @@
681
  "sha256": "b9bb39d5bd7bceb260d5eafa633f5af2e47a35d6132c8453d908ea6a4ad8a0f9"
682
  },
683
  "scripts/prepare_space.py": {
684
- "bytes": 5897,
685
- "sha256": "5c63b376b90875bbf4123113d08d30f93607693ea9b6eb69abfea741306602e1"
686
  },
687
  "scripts/reference.py": {
688
  "bytes": 2652,
@@ -784,6 +784,14 @@
784
  "bytes": 4938,
785
  "sha256": "0f88e59dadf9bc932744081f76005fc27e85f515fad7ae0de01ee3d9835ca7fc"
786
  },
 
 
 
 
 
 
 
 
787
  "validation/agent-mascot-render.json": {
788
  "bytes": 7806,
789
  "sha256": "82eb0798f0d55b43ffca58f64863f484c73e15c98992d6eeeeb9c57185318ab9"
 
21
  "sha256": "196d96e03432dd5a222e63d9757817a65589d27e6562f7f7c748c9eee40a7694"
22
  },
23
  "app/README.md": {
24
+ "bytes": 14154,
25
+ "sha256": "11cd9566f77115781cb04e690da4c8bd69fc1572d36851684e64bf8c75bcabe0"
26
  },
27
  "app/index.html": {
28
  "bytes": 8655,
 
209
  "sha256": "62f09aa13c695980717c7bc7e25ad6aba66254faa994bf81f39d2a912a89ff83"
210
  },
211
  "app/src/pi/empty-mascot.mjs": {
212
+ "bytes": 3938,
213
+ "sha256": "a12b9c99bd81246737be18539a8d6284ab1b43366d7d149fdde07f44f9755e33"
214
  },
215
  "app/src/pi/entry.mjs": {
216
  "bytes": 1351,
 
249
  "sha256": "dec9e2962a0f5c076512368395017fb5af7c9f7bfbe8cfed10105072dbcb76fe"
250
  },
251
  "app/src/style.css": {
252
+ "bytes": 19548,
253
+ "sha256": "7e5ac052e6d6cd69cec33d092c2ba9ad314d2a44b737376e4e45ce2623f1436e"
254
  },
255
  "app/src/token-rate.mjs": {
256
  "bytes": 931,
 
384
  "bytes": 2097535,
385
  "sha256": "d729aae5656b286940b5b26c53d0373ae7f231c0eb7ec722975374f6eca12cf0"
386
  },
387
+ "assets/index-BiaAq3wW.css": {
388
+ "bytes": 21114,
389
+ "sha256": "f316bf59b47ee1ee52d48fc2febb4353df5a343deef8150e0a576cf9eab6a091"
390
  },
391
+ "assets/index-DuUZYbeE.js": {
392
+ "bytes": 754162,
393
+ "sha256": "5ce9eb652764dedd7a06a6aba00753ea4a56d55774d14874fc120374382b8a32"
394
  },
395
  "assets/ort-wasm-simd-threaded.asyncify-DMmc6YqF.wasm": {
396
  "bytes": 23567050,
 
478
  },
479
  "index.html": {
480
  "bytes": 8752,
481
+ "sha256": "95c7ec67dba242455abf129cc315746d31004972665ecbc3b301dbeace315d88"
482
  },
483
  "licenses/dependencies.txt": {
484
  "bytes": 1386543,
 
681
  "sha256": "b9bb39d5bd7bceb260d5eafa633f5af2e47a35d6132c8453d908ea6a4ad8a0f9"
682
  },
683
  "scripts/prepare_space.py": {
684
+ "bytes": 5964,
685
+ "sha256": "85888fef77c79c1ca59e2586ef79951f932adb4cf5a2466e31ff7459422b1547"
686
  },
687
  "scripts/reference.py": {
688
  "bytes": 2652,
 
784
  "bytes": 4938,
785
  "sha256": "0f88e59dadf9bc932744081f76005fc27e85f515fad7ae0de01ee3d9835ca7fc"
786
  },
787
+ "validation/agent-mascot-motion-layout.json": {
788
+ "bytes": 2611,
789
+ "sha256": "2ce3b6ae1efbe9612f31f70f1274a8e10ba1ad58da24dd58507e288589668569"
790
+ },
791
+ "validation/agent-mascot-motion.json": {
792
+ "bytes": 556,
793
+ "sha256": "231d89fcaae97e08b4ca2dfd3f13a7d693fb2aab15aa2a5b4a1ef9ebadeba0b1"
794
+ },
795
  "validation/agent-mascot-render.json": {
796
  "bytes": 7806,
797
  "sha256": "82eb0798f0d55b43ffca58f64863f484c73e15c98992d6eeeeb9c57185318ab9"
index.html CHANGED
@@ -20,8 +20,8 @@
20
  <meta name="twitter:image" content="https://huggingface.co/spaces/Mike0021/MiniCPM5-2B-WebGPU-Pi/resolve/main/social-thumbnail-v1.png">
21
  <meta name="twitter:image:alt" content="Pi inside a browser window with the Chrome logo, in monochrome Macintosh style.">
22
  <title>Pi · Coding agent in your browser</title>
23
- <script type="module" crossorigin src="./assets/index-BdF9N08_.js"></script>
24
- <link rel="stylesheet" crossorigin href="./assets/index-CsO3FMEc.css">
25
  </head>
26
  <body>
27
  <header><a class="brand" href="./" aria-label="Pi"><svg class="pi-logo" viewBox="165.29 165.29 469.43 469.43" width="18" height="18" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M165.29 165.29H517.36V400H400V517.36H282.65V634.72H165.29ZM282.65 282.65V400H400V282.65Z"/><path fill="currentColor" d="M517.36 400H634.72V634.72H517.36Z"/></svg></a>
 
20
  <meta name="twitter:image" content="https://huggingface.co/spaces/Mike0021/MiniCPM5-2B-WebGPU-Pi/resolve/main/social-thumbnail-v1.png">
21
  <meta name="twitter:image:alt" content="Pi inside a browser window with the Chrome logo, in monochrome Macintosh style.">
22
  <title>Pi · Coding agent in your browser</title>
23
+ <script type="module" crossorigin src="./assets/index-DuUZYbeE.js"></script>
24
+ <link rel="stylesheet" crossorigin href="./assets/index-BiaAq3wW.css">
25
  </head>
26
  <body>
27
  <header><a class="brand" href="./" aria-label="Pi"><svg class="pi-logo" viewBox="165.29 165.29 469.43 469.43" width="18" height="18" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M165.29 165.29H517.36V400H400V517.36H282.65V634.72H165.29ZM282.65 282.65V400H400V282.65Z"/><path fill="currentColor" d="M517.36 400H634.72V634.72H517.36Z"/></svg></a>
scripts/prepare_space.py CHANGED
@@ -63,6 +63,7 @@ for name in [
63
  'agent-runtime-meter.json', 'agent-runtime-meter-render.json', 'agent-nested-radius.json',
64
  'agent-runtime-meter-adaptive.json', 'agent-adaptive-width.json',
65
  'agent-mascot.json', 'agent-mascot-render.json',
 
66
  'agent-follow-read.json', 'agent-workspace-runtime.json',
67
  ]:
68
  source = root / 'validation' / name
 
63
  'agent-runtime-meter.json', 'agent-runtime-meter-render.json', 'agent-nested-radius.json',
64
  'agent-runtime-meter-adaptive.json', 'agent-adaptive-width.json',
65
  'agent-mascot.json', 'agent-mascot-render.json',
66
+ 'agent-mascot-motion.json', 'agent-mascot-motion-layout.json',
67
  'agent-follow-read.json', 'agent-workspace-runtime.json',
68
  ]:
69
  source = root / 'validation' / name
validation/agent-mascot-motion-layout.json ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "url": "http://127.0.0.1:4173/",
3
+ "date": "2026-09-14T11:13:52.111Z",
4
+ "checks": [
5
+ "Suggestion fills and focuses Pi without sending; first-message modal and Cancel preserve the draft and zero-user state",
6
+ "Seven viewports keep the mascot between transcript and input; short viewports prioritize the editor",
7
+ "Starter prompt follows actual workspace files",
8
+ "Restored user history hides the mascot without fetching its image; New chat brings it back",
9
+ "Multiline drafts and keyboard-sized viewports stay unobstructed"
10
+ ],
11
+ "layouts": [
12
+ {
13
+ "width": 1440,
14
+ "height": 1000,
15
+ "visible": true,
16
+ "top": 645,
17
+ "bottom": 813.78125,
18
+ "left": 555.875,
19
+ "right": 751.875,
20
+ "contentBottom": 233,
21
+ "statusTop": 822,
22
+ "screenLeft": 23,
23
+ "screenRight": 759,
24
+ "overflow": false
25
+ },
26
+ {
27
+ "width": 1100,
28
+ "height": 800,
29
+ "visible": true,
30
+ "top": 455,
31
+ "bottom": 623.78125,
32
+ "left": 370.078125,
33
+ "right": 566.078125,
34
+ "contentBottom": 233,
35
+ "statusTop": 632,
36
+ "screenLeft": 23,
37
+ "screenRight": 571,
38
+ "overflow": false
39
+ },
40
+ {
41
+ "width": 851,
42
+ "height": 640,
43
+ "visible": true,
44
+ "top": 330,
45
+ "bottom": 434,
46
+ "left": 234.015625,
47
+ "right": 430.015625,
48
+ "contentBottom": 233,
49
+ "statusTop": 442,
50
+ "screenLeft": 23,
51
+ "screenRight": 438,
52
+ "overflow": false
53
+ },
54
+ {
55
+ "width": 850,
56
+ "height": 640,
57
+ "visible": true,
58
+ "top": 347,
59
+ "bottom": 451,
60
+ "left": 623,
61
+ "right": 819,
62
+ "contentBottom": 269,
63
+ "statusTop": 459,
64
+ "screenLeft": 19,
65
+ "screenRight": 825,
66
+ "overflow": false
67
+ },
68
+ {
69
+ "width": 390,
70
+ "height": 844,
71
+ "visible": true,
72
+ "top": 472,
73
+ "bottom": 640.78125,
74
+ "left": 163,
75
+ "right": 359,
76
+ "contentBottom": 288,
77
+ "statusTop": 649,
78
+ "screenLeft": 19,
79
+ "screenRight": 363,
80
+ "overflow": false
81
+ },
82
+ {
83
+ "width": 320,
84
+ "height": 568,
85
+ "visible": false,
86
+ "top": 0,
87
+ "bottom": 0,
88
+ "left": 0,
89
+ "right": 0,
90
+ "contentBottom": 288,
91
+ "statusTop": 364,
92
+ "screenLeft": 19,
93
+ "screenRight": 301,
94
+ "overflow": false
95
+ },
96
+ {
97
+ "width": 390,
98
+ "height": 420,
99
+ "visible": false,
100
+ "top": 0,
101
+ "bottom": 0,
102
+ "left": 0,
103
+ "right": 0,
104
+ "contentBottom": 212,
105
+ "statusTop": 231,
106
+ "screenLeft": 19,
107
+ "screenRight": 363,
108
+ "overflow": false
109
+ }
110
+ ],
111
+ "errors": [],
112
+ "passed": true
113
+ }
validation/agent-mascot-motion.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "url": "http://127.0.0.1:4173/",
3
+ "passed": true,
4
+ "catWidth": 104,
5
+ "hopHeight": 4,
6
+ "hopDelay": 1801.2999999821186,
7
+ "events": [
8
+ {
9
+ "id": "mascot-bump",
10
+ "at": 2202.399999976158
11
+ },
12
+ {
13
+ "id": "mascot-blink",
14
+ "at": 8027.799999982119
15
+ }
16
+ ],
17
+ "checks": [
18
+ "One delayed hop after image load; no replay after hiding/showing",
19
+ "Quick blink closes both eyes",
20
+ "Reduced motion cancels active animation and disables startup motion",
21
+ "Animation leaves layout and input focus intact"
22
+ ],
23
+ "errors": []
24
+ }