Match Pi dark terminal padding and fix browser scrolling and Unicode alignment
Browse files- README.md +2 -0
- SPACE_README.md +2 -0
- app/README.md +7 -1
- app/index.html +3 -1
- app/package-lock.json +7 -0
- app/package.json +4 -1
- app/scripts/pi-browser.mjs +5 -2
- app/src/pi/terminal-ui.mjs +36 -11
- app/src/pi/theme.mjs +12 -3
- app/src/style.css +13 -9
- app/tests/conversation.mjs +64 -0
- app/tests/render.mjs +143 -0
- app/vendor/pi-coding-agent/README.md +5 -3
- app/vendor/pi-coding-agent/provenance.json +2 -1
- app/vendor/pi-coding-agent/theme/dark.json +91 -0
- assets/index-CTSRWQwn.css +1 -0
- assets/index-DL-Ot0hN.css +0 -1
- assets/{index-BRKUEVCq.js β index-qmdKynRr.js} +0 -0
- deployment-manifest.json +76 -40
- index.html +5 -3
- licenses/dependencies.txt +24 -0
- licenses/pi-components.json +2 -1
- research/browser-agent/REPORT.md +10 -0
- scripts/prepare_space.py +5 -0
- validation/agent-terminal-dark-conversation.json +2640 -0
- validation/agent-terminal-dark-dev.json +111 -0
- validation/agent-terminal-dark-model.json +1879 -0
- validation/agent-terminal-dark-render-dev.json +363 -0
- validation/agent-terminal-dark-render.json +363 -0
- validation/agent-terminal-dark.json +39 -0
README.md
CHANGED
|
@@ -37,6 +37,8 @@ Pi has `bash`, `read`, `write`, and `edit` tools. just-bash supports shell scrip
|
|
| 37 |
|
| 38 |
Source and run instructions: [app/README.md](app/README.md). Architecture and primary-source research: [investigation](research/browser-agent/REPORT.md).
|
| 39 |
|
|
|
|
|
|
|
| 40 |
## Our conversion
|
| 41 |
|
| 42 |
The included `q4f16` model was converted directly from the official [OpenBMB MiniCPM5-2B BF16 checkpoint](https://huggingface.co/openbmb/MiniCPM5-2B/tree/abe115e887989b14f05e64a3b260648329324c3f), not from community-converted weights.
|
|
|
|
| 37 |
|
| 38 |
Source and run instructions: [app/README.md](app/README.md). Architecture and primary-source research: [investigation](research/browser-agent/REPORT.md).
|
| 39 |
|
| 40 |
+
The terminal uses Pi's dark palette and native message/editor padding. Recent checks cover seven viewport sizes, Unicode alignment, long tool output, a simulated 60-turn transcript, twelve keyboard interactions, five actual-model workflows, and a ten-turn conversation with twelve tool results. Details are in the investigation and `validation/agent-terminal-dark-*.json`. Mobile sizes were simulated on desktop Chromium.
|
| 41 |
+
|
| 42 |
## Our conversion
|
| 43 |
|
| 44 |
The included `q4f16` model was converted directly from the official [OpenBMB MiniCPM5-2B BF16 checkpoint](https://huggingface.co/openbmb/MiniCPM5-2B/tree/abe115e887989b14f05e64a3b260648329324c3f), not from community-converted weights.
|
SPACE_README.md
CHANGED
|
@@ -37,6 +37,8 @@ Pi has `bash`, `read`, `write`, and `edit` tools. just-bash supports shell scrip
|
|
| 37 |
|
| 38 |
Source and run instructions: [app/README.md](app/README.md). Architecture and primary-source research: [investigation](research/browser-agent/REPORT.md).
|
| 39 |
|
|
|
|
|
|
|
| 40 |
## Our conversion
|
| 41 |
|
| 42 |
The included `q4f16` model was converted directly from the official [OpenBMB MiniCPM5-2B BF16 checkpoint](https://huggingface.co/openbmb/MiniCPM5-2B/tree/abe115e887989b14f05e64a3b260648329324c3f), not from community-converted weights.
|
|
|
|
| 37 |
|
| 38 |
Source and run instructions: [app/README.md](app/README.md). Architecture and primary-source research: [investigation](research/browser-agent/REPORT.md).
|
| 39 |
|
| 40 |
+
The terminal uses Pi's dark palette and native message/editor padding. Recent checks cover seven viewport sizes, Unicode alignment, long tool output, a simulated 60-turn transcript, twelve keyboard interactions, five actual-model workflows, and a ten-turn conversation with twelve tool results. Details are in the investigation and `validation/agent-terminal-dark-*.json`. Mobile sizes were simulated on desktop Chromium.
|
| 41 |
+
|
| 42 |
## Our conversion
|
| 43 |
|
| 44 |
The included `q4f16` model was converted directly from the official [OpenBMB MiniCPM5-2B BF16 checkpoint](https://huggingface.co/openbmb/MiniCPM5-2B/tree/abe115e887989b14f05e64a3b260648329324c3f), not from community-converted weights.
|
app/README.md
CHANGED
|
@@ -29,7 +29,9 @@ For development, use `npm run dev`. To use the already converted weights on this
|
|
| 29 |
|
| 30 |
## Runtime boundaries
|
| 31 |
|
| 32 |
-
This uses Pi's actual TUI and agent core with browser host adapters. The npm `pi-tui` package supplies the renderer, editor, input parser, layout, Markdown, search, and keybindings. Unmodified CLI presentation components are in [vendor/pi-coding-agent](vendor/pi-coding-agent/README.md), with provenance checksums and the upstream
|
|
|
|
|
|
|
| 33 |
|
| 34 |
The full Node CLI, host filesystem, OAuth providers, extensions, package installation, and RPC server are not included. xterm.js is the terminal emulator; it does not add Node.js or a native shell. Model inference and tool execution remain in the browser worker. Terminal control sequences from model/file output are stripped before rendering, and Markdown images do not trigger downloads.
|
| 35 |
|
|
@@ -46,6 +48,10 @@ npm test
|
|
| 46 |
npm run build
|
| 47 |
# Start npm run preview, then run the terminal checks (no model needed):
|
| 48 |
node tests/terminal.mjs
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
# Start npm run preview -- --port 4173 and the root static model server first:
|
| 50 |
npm run test:browser
|
| 51 |
```
|
|
|
|
| 29 |
|
| 30 |
## Runtime boundaries
|
| 31 |
|
| 32 |
+
This uses Pi's actual TUI and agent core with browser host adapters. The npm `pi-tui` package supplies the renderer, editor, input parser, layout, Markdown, search, and keybindings. Unmodified CLI presentation components are in [vendor/pi-coding-agent](vendor/pi-coding-agent/README.md), with provenance checksums and the upstream dark palette. Secondary text colors are lifted for legibility at small sizes. [The build adapter](scripts/pi-browser.mjs) replaces terminal host services; [the terminal adapter](src/pi/xterm-terminal.mjs) connects xterm input/output/resize to Pi. Browser command dispatch and just-bash tool cards are app code.
|
| 33 |
+
|
| 34 |
+
Message padding follows Pi 0.85.1 defaults: one column of output padding, one inner row above/below user and tool boxes, one separator row between turns, and zero editor column padding. The browser panel adds an 8px outer inset. Pi owns transcript scrolling, so xterm's unused native scrollbar gutter is disabled. The pinned `@xterm/addon-unicode-graphemes@0.4.0` addon matches Pi's grapheme widths for CJK, emoji sequences and combining accents. It uses xterm's proposed Unicode API and is covered by rendering assertions.
|
| 35 |
|
| 36 |
The full Node CLI, host filesystem, OAuth providers, extensions, package installation, and RPC server are not included. xterm.js is the terminal emulator; it does not add Node.js or a native shell. Model inference and tool execution remain in the browser worker. Terminal control sequences from model/file output are stripped before rendering, and Markdown images do not trigger downloads.
|
| 37 |
|
|
|
|
| 48 |
npm run build
|
| 49 |
# Start npm run preview, then run the terminal checks (no model needed):
|
| 50 |
node tests/terminal.mjs
|
| 51 |
+
# Deterministic presentation fixtures, including narrow and short viewports:
|
| 52 |
+
npm run test:render
|
| 53 |
+
# Ten consecutive actual-model turns (local model server required):
|
| 54 |
+
npm run test:conversation
|
| 55 |
# Start npm run preview -- --port 4173 and the root static model server first:
|
| 56 |
npm run test:browser
|
| 57 |
```
|
app/index.html
CHANGED
|
@@ -20,10 +20,12 @@
|
|
| 20 |
<div id="load-detail" class="muted"></div>
|
| 21 |
<a id="open-tab" class="button" target="_blank" rel="noopener noreferrer" hidden>Open workspace in a new tab β</a>
|
| 22 |
</div>
|
|
|
|
| 23 |
<div id="pi-terminal" aria-label="Pi terminal"></div>
|
| 24 |
<div id="notice" role="status" hidden></div>
|
| 25 |
-
<div class="terminal-controls"><span id="activity" role="status">Files and chat are saved on this device.</span><button id="newline" type="button" title="Insert a newline (Shift+Enter)">β΅ Newline</button><button id="stop" type="button" hidden>Stop</button><button id="send" class="primary">Send β</button></div>
|
| 26 |
<footer>Pi TUI Β· xterm.js <span>Model and tools run in your browser</span></footer>
|
|
|
|
| 27 |
</section>
|
| 28 |
<aside class="workspace" aria-label="Workspace">
|
| 29 |
<div class="workspace-heading"><h2>Workspace</h2><div><button id="add-file" class="quiet">+ File</button><label class="button quiet" for="upload">Import</label><input id="upload" type="file" multiple hidden><button id="export" class="quiet">Export</button></div></div>
|
|
|
|
| 20 |
<div id="load-detail" class="muted"></div>
|
| 21 |
<a id="open-tab" class="button" target="_blank" rel="noopener noreferrer" hidden>Open workspace in a new tab β</a>
|
| 22 |
</div>
|
| 23 |
+
<div class="terminal-panel">
|
| 24 |
<div id="pi-terminal" aria-label="Pi terminal"></div>
|
| 25 |
<div id="notice" role="status" hidden></div>
|
| 26 |
+
<div class="terminal-controls"><span id="activity" class="sr-only" role="status">Files and chat are saved on this device.</span><button id="newline" type="button" title="Insert a newline (Shift+Enter)">β΅ Newline</button><button id="stop" type="button" hidden>Stop</button><button id="send" class="primary">Send β</button></div>
|
| 27 |
<footer>Pi TUI Β· xterm.js <span>Model and tools run in your browser</span></footer>
|
| 28 |
+
</div>
|
| 29 |
</section>
|
| 30 |
<aside class="workspace" aria-label="Workspace">
|
| 31 |
<div class="workspace-heading"><h2>Workspace</h2><div><button id="add-file" class="quiet">+ File</button><label class="button quiet" for="upload">Import</label><input id="upload" type="file" multiple hidden><button id="export" class="quiet">Export</button></div></div>
|
app/package-lock.json
CHANGED
|
@@ -14,6 +14,7 @@
|
|
| 14 |
"@huggingface/transformers": "4.2.0",
|
| 15 |
"@xmldom/xmldom": "0.9.12",
|
| 16 |
"@xterm/addon-fit": "0.11.0",
|
|
|
|
| 17 |
"@xterm/xterm": "6.0.0",
|
| 18 |
"buffer": "6.0.3",
|
| 19 |
"events": "3.3.0",
|
|
@@ -2165,6 +2166,12 @@
|
|
| 2165 |
"integrity": "sha512-jYcgT6xtVYhnhgxh3QgYDnnNMYTcf8ElbxxFzX0IZo+vabQqSPAjC3c1wJrKB5E19VwQei89QCiZZP86DCPF7g==",
|
| 2166 |
"license": "MIT"
|
| 2167 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2168 |
"node_modules/@xterm/xterm": {
|
| 2169 |
"version": "6.0.0",
|
| 2170 |
"resolved": "https://registry.npmjs.org/@xterm/xterm/-/xterm-6.0.0.tgz",
|
|
|
|
| 14 |
"@huggingface/transformers": "4.2.0",
|
| 15 |
"@xmldom/xmldom": "0.9.12",
|
| 16 |
"@xterm/addon-fit": "0.11.0",
|
| 17 |
+
"@xterm/addon-unicode-graphemes": "0.4.0",
|
| 18 |
"@xterm/xterm": "6.0.0",
|
| 19 |
"buffer": "6.0.3",
|
| 20 |
"events": "3.3.0",
|
|
|
|
| 2166 |
"integrity": "sha512-jYcgT6xtVYhnhgxh3QgYDnnNMYTcf8ElbxxFzX0IZo+vabQqSPAjC3c1wJrKB5E19VwQei89QCiZZP86DCPF7g==",
|
| 2167 |
"license": "MIT"
|
| 2168 |
},
|
| 2169 |
+
"node_modules/@xterm/addon-unicode-graphemes": {
|
| 2170 |
+
"version": "0.4.0",
|
| 2171 |
+
"resolved": "https://registry.npmjs.org/@xterm/addon-unicode-graphemes/-/addon-unicode-graphemes-0.4.0.tgz",
|
| 2172 |
+
"integrity": "sha512-9+/CqwbKcnlkJU4d3wIgO+wjsL8f6vyz+UwUWLu6nADQz8Gr8ONqGCJfdDjIdI+yYZLABQqQy47FzEM6AWELjw==",
|
| 2173 |
+
"license": "MIT"
|
| 2174 |
+
},
|
| 2175 |
"node_modules/@xterm/xterm": {
|
| 2176 |
"version": "6.0.0",
|
| 2177 |
"resolved": "https://registry.npmjs.org/@xterm/xterm/-/xterm-6.0.0.tgz",
|
app/package.json
CHANGED
|
@@ -9,7 +9,9 @@
|
|
| 9 |
"preview": "vite preview --host 127.0.0.1",
|
| 10 |
"test": "node --test tests/*.test.mjs",
|
| 11 |
"test:browser": "node tests/browser.mjs",
|
| 12 |
-
"test:terminal": "node tests/terminal.mjs"
|
|
|
|
|
|
|
| 13 |
},
|
| 14 |
"dependencies": {
|
| 15 |
"@earendil-works/pi-agent-core": "0.85.1",
|
|
@@ -18,6 +20,7 @@
|
|
| 18 |
"@huggingface/transformers": "4.2.0",
|
| 19 |
"@xmldom/xmldom": "0.9.12",
|
| 20 |
"@xterm/addon-fit": "0.11.0",
|
|
|
|
| 21 |
"@xterm/xterm": "6.0.0",
|
| 22 |
"buffer": "6.0.3",
|
| 23 |
"events": "3.3.0",
|
|
|
|
| 9 |
"preview": "vite preview --host 127.0.0.1",
|
| 10 |
"test": "node --test tests/*.test.mjs",
|
| 11 |
"test:browser": "node tests/browser.mjs",
|
| 12 |
+
"test:terminal": "node tests/terminal.mjs",
|
| 13 |
+
"test:render": "node tests/render.mjs",
|
| 14 |
+
"test:conversation": "node tests/conversation.mjs"
|
| 15 |
},
|
| 16 |
"dependencies": {
|
| 17 |
"@earendil-works/pi-agent-core": "0.85.1",
|
|
|
|
| 20 |
"@huggingface/transformers": "4.2.0",
|
| 21 |
"@xmldom/xmldom": "0.9.12",
|
| 22 |
"@xterm/addon-fit": "0.11.0",
|
| 23 |
+
"@xterm/addon-unicode-graphemes": "0.4.0",
|
| 24 |
"@xterm/xterm": "6.0.0",
|
| 25 |
"buffer": "6.0.3",
|
| 26 |
"events": "3.3.0",
|
app/scripts/pi-browser.mjs
CHANGED
|
@@ -24,8 +24,11 @@ export function piBrowser() {
|
|
| 24 |
},
|
| 25 |
transform(code, id) {
|
| 26 |
if (!id.includes('/@earendil-works/pi-tui/') || !id.split('?')[0].endsWith('.js')) return;
|
| 27 |
-
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
| 29 |
},
|
| 30 |
};
|
| 31 |
}
|
|
|
|
| 24 |
},
|
| 25 |
transform(code, id) {
|
| 26 |
if (!id.includes('/@earendil-works/pi-tui/') || !id.split('?')[0].endsWith('.js')) return;
|
| 27 |
+
// Browser timer IDs don't have Node's event-loop keepalive methods.
|
| 28 |
+
// Scrolling, selection autoscroll and flash timers still run normally.
|
| 29 |
+
let adapted = code.replace(/\.unref\(\)/g, '.unref?.()');
|
| 30 |
+
if (/\b(?:process|Buffer)\./.test(code)) adapted = `import { browserProcess as process, Buffer } from ${JSON.stringify(host)};\n${adapted}`;
|
| 31 |
+
if (adapted !== code) return { code: adapted, map: null };
|
| 32 |
},
|
| 33 |
};
|
| 34 |
}
|
app/src/pi/terminal-ui.mjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
| 1 |
import { Terminal } from '@xterm/xterm';
|
| 2 |
import { FitAddon } from '@xterm/addon-fit';
|
|
|
|
| 3 |
import '@xterm/xterm/css/xterm.css';
|
| 4 |
import { TuiAltScreen, Container, Text, TruncatedText, Box, Spacer, ScrollView, VStack,
|
| 5 |
KeybindingsManager, TUI_KEYBINDINGS, setKeybindings, stripTerminalSequences } from './entry.mjs';
|
| 6 |
import { CustomEditor } from '../../vendor/pi-coding-agent/components/custom-editor.js';
|
| 7 |
import { UserMessageComponent } from '../../vendor/pi-coding-agent/components/user-message.js';
|
| 8 |
import { AssistantMessageComponent } from '../../vendor/pi-coding-agent/components/assistant-message.js';
|
| 9 |
-
import { getEditorTheme, theme } from './theme.mjs';
|
| 10 |
import { XtermTerminal } from './xterm-terminal.mjs';
|
| 11 |
import { textContent } from '../protocol.mjs';
|
| 12 |
|
|
@@ -24,9 +25,14 @@ const commands = [
|
|
| 24 |
export function createTerminalUI(element, actions) {
|
| 25 |
const xterm = new Terminal({
|
| 26 |
fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace', fontSize: 13, lineHeight: 1.3,
|
| 27 |
-
theme:
|
| 28 |
-
|
|
|
|
|
|
|
| 29 |
});
|
|
|
|
|
|
|
|
|
|
| 30 |
const mount = document.createElement('div'); mount.className = 'pi-terminal-mount'; element.append(mount);
|
| 31 |
const fitAddon = new FitAddon(); xterm.loadAddon(fitAddon); xterm.open(mount);
|
| 32 |
const terminal = new XtermTerminal(xterm);
|
|
@@ -35,6 +41,8 @@ export function createTerminalUI(element, actions) {
|
|
| 35 |
copySelection: async text => { try { await navigator.clipboard.writeText(text); return true; } catch { return false; } },
|
| 36 |
openUrl: url => { if (/^https?:\/\//i.test(url)) window.open(url, '_blank', 'noopener,noreferrer'); },
|
| 37 |
scrollToEndIndicator: () => theme.fg('accent', ' β Latest '),
|
|
|
|
|
|
|
| 38 |
});
|
| 39 |
const keybindings = new KeybindingsManager({ ...TUI_KEYBINDINGS,
|
| 40 |
'app.interrupt': { defaultKeys: ['escape', 'ctrl+c'] }, 'app.exit': { defaultKeys: 'ctrl+d' },
|
|
@@ -42,14 +50,16 @@ export function createTerminalUI(element, actions) {
|
|
| 42 |
'tui.editor.historyPrevious': { defaultKeys: 'ctrl+p' }, 'tui.editor.historyNext': { defaultKeys: 'ctrl+n' },
|
| 43 |
});
|
| 44 |
setKeybindings(keybindings);
|
| 45 |
-
|
|
|
|
| 46 |
const transcript = new Container();
|
| 47 |
const scroll = new ScrollView(transcript, { follow: 'end', primary: true, scrollbar: 'auto',
|
| 48 |
scrollbarTrackStyle: text => theme.fg('borderMuted', text), scrollbarThumbStyle: text => theme.fg('muted', text) });
|
| 49 |
const status = new TruncatedText('', 1, 0);
|
| 50 |
const footer = new TruncatedText(theme.fg('dim', '/workspace Β· MiniCPM5-2B Β· 4,096 context'), 1, 0);
|
| 51 |
ui.setLayoutRoot(new VStack([
|
| 52 |
-
|
|
|
|
| 53 |
{ component: new VStack([status, editor, footer]), basis: 'auto', shrink: 0 },
|
| 54 |
]));
|
| 55 |
ui.setFocus(editor);
|
|
@@ -74,14 +84,17 @@ export function createTerminalUI(element, actions) {
|
|
| 74 |
function toolComponent(call, result) {
|
| 75 |
const container = new Container();
|
| 76 |
container.addChild(new Spacer(1));
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
box
|
|
|
|
|
|
|
|
|
|
| 80 |
const args = terminalText(JSON.stringify(call.arguments, null, 2));
|
| 81 |
-
const output = terminalText(result ? textContent(result.content) : 'Runningβ¦');
|
| 82 |
const lines = output.split('\n');
|
| 83 |
-
box.addChild(new Text(theme.fg('toolOutput', expanded ? args + '\n\n' + output : lines.slice(0,
|
| 84 |
-
if (!expanded && lines.length >
|
| 85 |
container.addChild(box); return container;
|
| 86 |
}
|
| 87 |
function renderMessages() {
|
|
@@ -105,6 +118,9 @@ export function createTerminalUI(element, actions) {
|
|
| 105 |
errorMessage: message.errorMessage ? terminalText(message.errorMessage) : undefined };
|
| 106 |
cached.component.updateContent(clean, !message.stopReason);
|
| 107 |
}
|
|
|
|
|
|
|
|
|
|
| 108 |
cached.message = message; transcript.addChild(cached.component);
|
| 109 |
for (const call of Array.isArray(message.content) ? message.content : []) {
|
| 110 |
if (call.type !== 'toolCall') continue;
|
|
@@ -211,6 +227,15 @@ export function createTerminalUI(element, actions) {
|
|
| 211 |
get cols() { return xterm.cols; }, get rows() { return xterm.rows; },
|
| 212 |
get viewportTop() { return ui.viewportTop; },
|
| 213 |
readScreen() { return Array.from({ length: xterm.buffer.active.length }, (_, i) => xterm.buffer.active.getLine(i)?.translateToString(true) ?? '').join('\n'); },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 214 |
dispose() { observer.disconnect(); ui.stop({ preserveScreen: true }); xterm.dispose(); },
|
| 215 |
};
|
| 216 |
}
|
|
|
|
| 1 |
import { Terminal } from '@xterm/xterm';
|
| 2 |
import { FitAddon } from '@xterm/addon-fit';
|
| 3 |
+
import { UnicodeGraphemesAddon } from '@xterm/addon-unicode-graphemes';
|
| 4 |
import '@xterm/xterm/css/xterm.css';
|
| 5 |
import { TuiAltScreen, Container, Text, TruncatedText, Box, Spacer, ScrollView, VStack,
|
| 6 |
KeybindingsManager, TUI_KEYBINDINGS, setKeybindings, stripTerminalSequences } from './entry.mjs';
|
| 7 |
import { CustomEditor } from '../../vendor/pi-coding-agent/components/custom-editor.js';
|
| 8 |
import { UserMessageComponent } from '../../vendor/pi-coding-agent/components/user-message.js';
|
| 9 |
import { AssistantMessageComponent } from '../../vendor/pi-coding-agent/components/assistant-message.js';
|
| 10 |
+
import { getEditorTheme, theme, terminalTheme } from './theme.mjs';
|
| 11 |
import { XtermTerminal } from './xterm-terminal.mjs';
|
| 12 |
import { textContent } from '../protocol.mjs';
|
| 13 |
|
|
|
|
| 25 |
export function createTerminalUI(element, actions) {
|
| 26 |
const xterm = new Terminal({
|
| 27 |
fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace', fontSize: 13, lineHeight: 1.3,
|
| 28 |
+
theme: terminalTheme,
|
| 29 |
+
// Pi owns alternate-screen scrolling. Native scrollback would reserve an
|
| 30 |
+
// unused 15px scrollbar gutter in FitAddon and make right padding uneven.
|
| 31 |
+
cursorBlink: false, scrollback: 0, screenReaderMode: true, allowProposedApi: true,
|
| 32 |
});
|
| 33 |
+
// Pi measures grapheme clusters. Match that in xterm so emoji/ZWJ sequences
|
| 34 |
+
// don't displace padding or put the editing cursor in the wrong column.
|
| 35 |
+
xterm.loadAddon(new UnicodeGraphemesAddon());
|
| 36 |
const mount = document.createElement('div'); mount.className = 'pi-terminal-mount'; element.append(mount);
|
| 37 |
const fitAddon = new FitAddon(); xterm.loadAddon(fitAddon); xterm.open(mount);
|
| 38 |
const terminal = new XtermTerminal(xterm);
|
|
|
|
| 41 |
copySelection: async text => { try { await navigator.clipboard.writeText(text); return true; } catch { return false; } },
|
| 42 |
openUrl: url => { if (/^https?:\/\//i.test(url)) window.open(url, '_blank', 'noopener,noreferrer'); },
|
| 43 |
scrollToEndIndicator: () => theme.fg('accent', ' β Latest '),
|
| 44 |
+
searchMatchStyle: text => theme.bg('selectedBg', theme.fg('text', text)),
|
| 45 |
+
searchCurrentMatchStyle: text => theme.bg('accent', theme.fg('userMessageBg', theme.bold(text))),
|
| 46 |
});
|
| 47 |
const keybindings = new KeybindingsManager({ ...TUI_KEYBINDINGS,
|
| 48 |
'app.interrupt': { defaultKeys: ['escape', 'ctrl+c'] }, 'app.exit': { defaultKeys: 'ctrl+d' },
|
|
|
|
| 50 |
'tui.editor.historyPrevious': { defaultKeys: 'ctrl+p' }, 'tui.editor.historyNext': { defaultKeys: 'ctrl+n' },
|
| 51 |
});
|
| 52 |
setKeybindings(keybindings);
|
| 53 |
+
// Pi defaults: outputPad=1, editorPaddingX=0.
|
| 54 |
+
const editor = new CustomEditor(ui, getEditorTheme(), keybindings, { paddingX: 0 });
|
| 55 |
const transcript = new Container();
|
| 56 |
const scroll = new ScrollView(transcript, { follow: 'end', primary: true, scrollbar: 'auto',
|
| 57 |
scrollbarTrackStyle: text => theme.fg('borderMuted', text), scrollbarThumbStyle: text => theme.fg('muted', text) });
|
| 58 |
const status = new TruncatedText('', 1, 0);
|
| 59 |
const footer = new TruncatedText(theme.fg('dim', '/workspace Β· MiniCPM5-2B Β· 4,096 context'), 1, 0);
|
| 60 |
ui.setLayoutRoot(new VStack([
|
| 61 |
+
// On a short viewport the editor takes priority over transcript rows.
|
| 62 |
+
{ component: scroll, basis: 0, grow: 1, minSize: 0 },
|
| 63 |
{ component: new VStack([status, editor, footer]), basis: 'auto', shrink: 0 },
|
| 64 |
]));
|
| 65 |
ui.setFocus(editor);
|
|
|
|
| 84 |
function toolComponent(call, result) {
|
| 85 |
const container = new Container();
|
| 86 |
container.addChild(new Spacer(1));
|
| 87 |
+
// Match ToolExecutionComponent's default shell: one outer blank row and
|
| 88 |
+
// Box(1, 1), with a ten-line collapsed preview and no extra inner padding.
|
| 89 |
+
const box = new Box(1, 1, text => theme.bg(result ? result.isError ? 'toolErrorBg' : 'toolSuccessBg' : 'toolPendingBg', text));
|
| 90 |
+
const title = theme.fg('toolTitle', theme.bold(terminalText(call.name))) + ' ' +
|
| 91 |
+
theme.fg('accent', terminalText(call.arguments?.path ?? call.arguments?.command ?? ''));
|
| 92 |
+
box.addChild(new Text(title, 0, 0));
|
| 93 |
const args = terminalText(JSON.stringify(call.arguments, null, 2));
|
| 94 |
+
const output = terminalText(result ? textContent(result.content) : 'Runningβ¦').replace(/\n+$/, '');
|
| 95 |
const lines = output.split('\n');
|
| 96 |
+
box.addChild(new Text(theme.fg('toolOutput', expanded ? args + '\n\n' + output : lines.slice(0, 10).join('\n')), 0, 0));
|
| 97 |
+
if (!expanded && lines.length > 10) box.addChild(new Text(theme.fg('dim', `β¦ ${lines.length - 10} more lines Β· Ctrl+O to expand`), 0, 0));
|
| 98 |
container.addChild(box); return container;
|
| 99 |
}
|
| 100 |
function renderMessages() {
|
|
|
|
| 118 |
errorMessage: message.errorMessage ? terminalText(message.errorMessage) : undefined };
|
| 119 |
cached.component.updateContent(clean, !message.stopReason);
|
| 120 |
}
|
| 121 |
+
// Pi's assistant and tool components start with a separator. Apply the
|
| 122 |
+
// same outer gap before user boxes; keep their native inner padding.
|
| 123 |
+
if (message.role === 'user' && (i > 0 || localEntries.length)) transcript.addChild(new Spacer(1));
|
| 124 |
cached.message = message; transcript.addChild(cached.component);
|
| 125 |
for (const call of Array.isArray(message.content) ? message.content : []) {
|
| 126 |
if (call.type !== 'toolCall') continue;
|
|
|
|
| 227 |
get cols() { return xterm.cols; }, get rows() { return xterm.rows; },
|
| 228 |
get viewportTop() { return ui.viewportTop; },
|
| 229 |
readScreen() { return Array.from({ length: xterm.buffer.active.length }, (_, i) => xterm.buffer.active.getLine(i)?.translateToString(true) ?? '').join('\n'); },
|
| 230 |
+
readDocument() { return scroll.render(xterm.cols).map(line => stripTerminalSequences(line).trimEnd()); },
|
| 231 |
+
readCells() {
|
| 232 |
+
return Array.from({ length: xterm.rows }, (_, row) => Array.from({ length: xterm.cols }, (_, col) => {
|
| 233 |
+
const cell = xterm.buffer.active.getLine(row)?.getCell(col);
|
| 234 |
+
return cell ? { text: cell.getChars(), width: cell.getWidth(),
|
| 235 |
+
fg: cell.isFgDefault() ? terminalTheme.foreground : cell.getFgColor(),
|
| 236 |
+
bg: cell.isBgDefault() ? terminalTheme.background : cell.getBgColor() } : null;
|
| 237 |
+
}));
|
| 238 |
+
},
|
| 239 |
dispose() { observer.disconnect(); ui.stop({ preserveScreen: true }); xterm.dispose(); },
|
| 240 |
};
|
| 241 |
}
|
app/src/pi/theme.mjs
CHANGED
|
@@ -1,13 +1,22 @@
|
|
| 1 |
-
import palette from '../../vendor/pi-coding-agent/theme/
|
| 2 |
|
| 3 |
-
// Upstream Pi
|
| 4 |
// and Node's syntax highlighter. Code blocks use Pi's plain-code fallback.
|
|
|
|
|
|
|
|
|
|
| 5 |
function color(name, text, background = false) {
|
| 6 |
-
const value = palette.vars[palette.colors[name]] ?? palette.colors[name] ?? palette.vars.text;
|
| 7 |
const rgb = value.slice(1).match(/../g).map(part => parseInt(part, 16)).join(';');
|
| 8 |
const open = `\x1b[${background ? 48 : 38};2;${rgb}m`, close = `\x1b[${background ? 49 : 39}m`;
|
| 9 |
return open + String(text).replaceAll(close, open) + close;
|
| 10 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
export const theme = {
|
| 12 |
fg: (name, text) => color(name, text), bg: (name, text) => color(name, text, true),
|
| 13 |
bold: text => `\x1b[1m${text}\x1b[22m`, italic: text => `\x1b[3m${text}\x1b[23m`,
|
|
|
|
| 1 |
+
import palette from '../../vendor/pi-coding-agent/theme/dark.json';
|
| 2 |
|
| 3 |
+
// Upstream Pi dark palette; browser styling replaces the theme file watcher
|
| 4 |
// and Node's syntax highlighter. Code blocks use Pi's plain-code fallback.
|
| 5 |
+
// Lift secondary text so small terminal text stays legible on tool backgrounds.
|
| 6 |
+
const readable = { muted: '#b0b0bd', toolOutput: '#b0b0bd', thinkingText: '#b0b0bd',
|
| 7 |
+
dim: '#aaaab7', mdLinkUrl: '#aaaab7', mdCodeBlockBorder: '#aaaab7', mdQuote: '#b0b0bd' };
|
| 8 |
function color(name, text, background = false) {
|
| 9 |
+
const value = readable[name] ?? palette.vars[palette.colors[name]] ?? palette.colors[name] ?? palette.vars.text;
|
| 10 |
const rgb = value.slice(1).match(/../g).map(part => parseInt(part, 16)).join(';');
|
| 11 |
const open = `\x1b[${background ? 48 : 38};2;${rgb}m`, close = `\x1b[${background ? 49 : 39}m`;
|
| 12 |
return open + String(text).replaceAll(close, open) + close;
|
| 13 |
}
|
| 14 |
+
export const terminalTheme = {
|
| 15 |
+
background: palette.export.pageBg, foreground: palette.vars.text,
|
| 16 |
+
cursor: palette.vars.accent, cursorAccent: palette.export.pageBg,
|
| 17 |
+
selectionBackground: palette.vars.selectedBg, selectionForeground: palette.vars.text,
|
| 18 |
+
black: '#18181e', brightBlack: '#9696a4', white: '#d4d4d4', brightWhite: '#f2f2f4',
|
| 19 |
+
};
|
| 20 |
export const theme = {
|
| 21 |
fg: (name, text) => color(name, text), bg: (name, text) => color(name, text, true),
|
| 22 |
bold: text => `\x1b[1m${text}\x1b[22m`, italic: text => `\x1b[3m${text}\x1b[23m`,
|
app/src/style.css
CHANGED
|
@@ -64,17 +64,21 @@ progress { width: 100%; height: 5px; margin-top: 8px; accent-color: var(--accent
|
|
| 64 |
.muted { margin-top: 4px; color: var(--muted); font-size: 11px; }
|
| 65 |
.muted:empty { display: none; }
|
| 66 |
|
| 67 |
-
|
|
|
|
| 68 |
#pi-terminal .pi-terminal-mount, #pi-terminal .xterm { height: 100%; }
|
| 69 |
-
#pi-terminal .xterm-viewport { background-color: #
|
| 70 |
#pi-terminal textarea:focus { box-shadow: none; }
|
| 71 |
-
.terminal-controls { display: flex; align-items: center; gap: 6px; padding-top:
|
| 72 |
-
.terminal-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
#notice { margin: 6px 0; padding: 8px 10px; border: 1px solid #cfcfcf; border-radius: 4px; background: #f0f0f0; font-size: 12px; }
|
| 74 |
|
| 75 |
-
footer { display: flex; align-items: center; justify-content:
|
| 76 |
-
.composer-footer span { margin-right: auto; padding-left: 6px; color: var(--muted); font-size: 10px; }
|
| 77 |
-
footer { display: flex; justify-content: space-between; gap: 8px; padding-top: 7px; color: var(--muted); font-size: 10px; }
|
| 78 |
|
| 79 |
.workspace { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid var(--line); background: #f1f1f1; }
|
| 80 |
.workspace-heading { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 5px 10px; }
|
|
@@ -91,7 +95,7 @@ footer { display: flex; justify-content: space-between; gap: 8px; padding-top: 7
|
|
| 91 |
#filename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, monospace; font-size: 11px; }
|
| 92 |
#editor { flex: 1; min-height: 140px; padding: 10px 12px; resize: none; border: 0; background: transparent; color: #333; font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 2; white-space: pre; overflow: auto; }
|
| 93 |
|
| 94 |
-
.terminal { padding: 0 10px; background: #f5f5f5; }
|
| 95 |
.terminal summary { padding: 9px 0; cursor: pointer; font-size: 11px; font-weight: 500; }
|
| 96 |
.terminal summary span { float: right; color: var(--muted); font-size: 10px; font-weight: 400; }
|
| 97 |
#terminal-output { height: 112px; margin: 0; overflow: auto; font: 11px/1.5 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
@@ -104,7 +108,7 @@ footer { display: flex; justify-content: space-between; gap: 8px; padding-top: 7
|
|
| 104 |
@media (max-width: 850px) {
|
| 105 |
header { padding: 0 12px; }
|
| 106 |
main { display: flex; flex-direction: column; height: auto; }
|
| 107 |
-
.conversation { height: calc(100dvh - 46px); min-height:
|
| 108 |
.workspace { min-height: 520px; border-left: 0; border-top: 1px solid var(--line); }
|
| 109 |
.file-area { min-height: 280px; grid-template-columns: 115px minmax(0, 1fr); }
|
| 110 |
.header-right > span:not(.local-dot) { display: none; }
|
|
|
|
| 64 |
.muted { margin-top: 4px; color: var(--muted); font-size: 11px; }
|
| 65 |
.muted:empty { display: none; }
|
| 66 |
|
| 67 |
+
.terminal-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; margin-top: 10px; padding: 8px; border: 1px solid #393942; border-radius: 4px; color: #d4d4d4; background: #18181e; color-scheme: dark; }
|
| 68 |
+
#pi-terminal { flex: 1; min-height: 120px; min-width: 0; overflow: hidden; background: #18181e; }
|
| 69 |
#pi-terminal .pi-terminal-mount, #pi-terminal .xterm { height: 100%; }
|
| 70 |
+
#pi-terminal .xterm-viewport { background-color: #18181e !important; }
|
| 71 |
#pi-terminal textarea:focus { box-shadow: none; }
|
| 72 |
+
.terminal-controls { display: flex; justify-content: flex-end; align-items: center; gap: 6px; padding-top: 8px; }
|
| 73 |
+
.terminal-panel button { background: #282832; border-color: #50505c; color: #d4d4d4; }
|
| 74 |
+
.terminal-panel button:hover { background: #343541; }
|
| 75 |
+
.terminal-panel button.primary { background: #d4d4d4; border-color: #d4d4d4; color: #18181e; }
|
| 76 |
+
.terminal-panel button.primary:hover { background: #f2f2f4; }
|
| 77 |
+
.terminal-panel footer { color: #9696a4; }
|
| 78 |
+
.terminal-panel #notice { background: #282832; border-color: #50505c; color: #d4d4d4; }
|
| 79 |
#notice { margin: 6px 0; padding: 8px 10px; border: 1px solid #cfcfcf; border-radius: 4px; background: #f0f0f0; font-size: 12px; }
|
| 80 |
|
| 81 |
+
footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 7px; color: var(--muted); font-size: 10px; }
|
|
|
|
|
|
|
| 82 |
|
| 83 |
.workspace { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid var(--line); background: #f1f1f1; }
|
| 84 |
.workspace-heading { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 5px 10px; }
|
|
|
|
| 95 |
#filename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, monospace; font-size: 11px; }
|
| 96 |
#editor { flex: 1; min-height: 140px; padding: 10px 12px; resize: none; border: 0; background: transparent; color: #333; font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 2; white-space: pre; overflow: auto; }
|
| 97 |
|
| 98 |
+
.workspace > .terminal { padding: 0 10px; background: #f5f5f5; }
|
| 99 |
.terminal summary { padding: 9px 0; cursor: pointer; font-size: 11px; font-weight: 500; }
|
| 100 |
.terminal summary span { float: right; color: var(--muted); font-size: 10px; font-weight: 400; }
|
| 101 |
#terminal-output { height: 112px; margin: 0; overflow: auto; font: 11px/1.5 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
|
|
| 108 |
@media (max-width: 850px) {
|
| 109 |
header { padding: 0 12px; }
|
| 110 |
main { display: flex; flex-direction: column; height: auto; }
|
| 111 |
+
.conversation { height: calc(100dvh - 46px); min-height: 320px; padding: 10px; }
|
| 112 |
.workspace { min-height: 520px; border-left: 0; border-top: 1px solid var(--line); }
|
| 113 |
.file-area { min-height: 280px; grid-template-columns: 115px minmax(0, 1fr); }
|
| 114 |
.header-right > span:not(.local-dot) { display: none; }
|
app/tests/conversation.mjs
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { chromium } from 'playwright';
|
| 2 |
+
import fs from 'node:fs/promises';
|
| 3 |
+
import assert from 'node:assert/strict';
|
| 4 |
+
|
| 5 |
+
const url = process.argv[2] ?? 'http://127.0.0.1:4173/?source=local';
|
| 6 |
+
const label = process.argv[3] ?? 'agent-terminal-dark-conversation';
|
| 7 |
+
const profile = new URL('../../validation/agent-browser-profile', import.meta.url).pathname;
|
| 8 |
+
const result = { date: new Date().toISOString(), url, kind: 'actual model; ten consecutive user turns, no chat resets', turns: [], errors: [] };
|
| 9 |
+
const context = await chromium.launchPersistentContext(profile, {
|
| 10 |
+
executablePath: '/usr/bin/chromium', headless: true, viewport: { width: 1440, height: 1000 },
|
| 11 |
+
args: ['--enable-unsafe-webgpu', '--use-angle=vulkan', '--enable-features=Vulkan', '--disable-vulkan-surface'],
|
| 12 |
+
});
|
| 13 |
+
context.setDefaultTimeout(180_000);
|
| 14 |
+
const page = await context.newPage();
|
| 15 |
+
page.on('pageerror', error => result.errors.push(error.stack));
|
| 16 |
+
const hasTool = (messages, name) => messages.some(m => m.role === 'toolResult' && m.toolName === name && !m.isError);
|
| 17 |
+
try {
|
| 18 |
+
await page.goto(url); await page.waitForFunction(() => window.browserPi?.terminal);
|
| 19 |
+
await page.evaluate(() => window.browserPi.ready);
|
| 20 |
+
await page.evaluate(() => window.browserPi.load());
|
| 21 |
+
await page.waitForFunction(() => !window.browserPi.busy);
|
| 22 |
+
await page.evaluate(() => document.querySelector('#new-chat').onclick());
|
| 23 |
+
await page.evaluate(() => window.browserPi.rpc('shell', { command: 'rm -f /workspace/todo /workspace/numbers.txt /workspace/render-notes.md /workspace/render-missing.txt' }));
|
| 24 |
+
await context.setOffline(true);
|
| 25 |
+
const tasks = [
|
| 26 |
+
{ prompt: 'Hi! Reply with one short sentence.' },
|
| 27 |
+
{ prompt: 'Create a file called todo containing exactly "# todo" followed by a newline and "- Check rendering". Use the write tool.', check: (s,m) => { assert(hasTool(m,'write')); assert.match(s.files['/workspace/todo'], /Check rendering/); } },
|
| 28 |
+
{ prompt: 'Read todo using the read tool and show its contents.', check: (s,m) => assert(hasTool(m,'read')) },
|
| 29 |
+
{ prompt: 'Use the edit tool on todo to replace Check rendering with Check dark mode. Then read it to verify.', check: (s,m) => { assert(hasTool(m,'edit')); assert.match(s.files['/workspace/todo'], /Check dark mode/); } },
|
| 30 |
+
{ prompt: 'Run this bash command: seq 1 40 > numbers.txt; wc -l numbers.txt', check: (s,m) => { assert(hasTool(m,'bash')); assert.equal(s.files['/workspace/numbers.txt'].trim().split('\n').length,40); } },
|
| 31 |
+
{ prompt: 'Read numbers.txt using the read tool. Tell me only its first and last numbers.', check: (s,m) => assert(hasTool(m,'read')) },
|
| 32 |
+
{ prompt: 'Write render-notes.md with a Markdown heading Dark mode, a two-item list about padding and contrast, and a fenced bash code block containing cat todo. Then read the file.', check: (s,m) => { assert(hasTool(m,'write')); assert.match(s.files['/workspace/render-notes.md'], /Dark mode/); } },
|
| 33 |
+
{ prompt: 'Read render-missing.txt using the read tool. If missing, write exactly Recovered into it, then read it again.', check: (s,m) => { assert(m.some(m=>m.role==='toolResult' && m.isError)); assert.equal(s.files['/workspace/render-missing.txt'].trim(),'Recovered'); } },
|
| 34 |
+
{ prompt: 'Run bash to print todo and render-missing.txt, then count the lines in numbers.txt.', check: (s,m) => assert(hasTool(m,'bash')) },
|
| 35 |
+
{ prompt: 'Summarize the files we created in three short Markdown bullets. No tools needed.' },
|
| 36 |
+
];
|
| 37 |
+
let count = 0;
|
| 38 |
+
for (const [index, task] of tasks.entries()) {
|
| 39 |
+
const start = Date.now();
|
| 40 |
+
await page.locator('.xterm-helper-textarea').focus(); await page.keyboard.type(task.prompt);
|
| 41 |
+
await page.locator('#send').click(); await page.waitForFunction(() => window.browserPi.busy);
|
| 42 |
+
await page.waitForFunction(() => !window.browserPi.busy);
|
| 43 |
+
const state = await page.evaluate(() => window.browserPi.rpc('snapshot'));
|
| 44 |
+
const messages = state.messages.slice(count); count = state.messages.length;
|
| 45 |
+
const entry = { turn: index+1, elapsedMs: Date.now()-start, prompt: task.prompt, messages };
|
| 46 |
+
result.turns.push(entry);
|
| 47 |
+
assert.equal(state.messages.filter(m=>m.role==='user').length,index+1);
|
| 48 |
+
assert(messages.filter(m=>m.role==='assistant').at(-1)?.content.some(c=>c.type==='text' && c.text.trim()));
|
| 49 |
+
task.check?.(state,messages);
|
| 50 |
+
console.log('PASS turn', index+1, entry.elapsedMs);
|
| 51 |
+
}
|
| 52 |
+
await page.locator('.xterm-helper-textarea').focus(); await page.keyboard.press('Control+o'); await page.keyboard.press('End');
|
| 53 |
+
await page.screenshot({ path: `../validation/${label}-desktop.png`, fullPage:true });
|
| 54 |
+
await page.keyboard.press('Home'); await page.waitForFunction(()=>window.browserPi.terminal.viewportTop===0);
|
| 55 |
+
await page.keyboard.press('End');
|
| 56 |
+
await page.setViewportSize({width:390,height:844}); await page.waitForTimeout(150);
|
| 57 |
+
assert(await page.evaluate(()=>document.documentElement.scrollWidth<=innerWidth));
|
| 58 |
+
await page.screenshot({ path: `../validation/${label}-mobile.png`, fullPage:true });
|
| 59 |
+
result.finalState = await page.evaluate(()=>window.browserPi.rpc('snapshot'));
|
| 60 |
+
result.screen = await page.evaluate(()=>window.browserPi.terminal.readScreen());
|
| 61 |
+
result.diagnostics = await page.evaluate(()=>window.browserPi.diagnostics);
|
| 62 |
+
assert.equal(result.errors.length,0); result.passed=true;
|
| 63 |
+
} catch(error) { result.failure=error.stack; await page.screenshot({path:`../validation/${label}-failure.png`,fullPage:true}); throw error; }
|
| 64 |
+
finally { await fs.writeFile(`../validation/${label}.json`,JSON.stringify(result,null,2)); await context.close(); }
|
app/tests/render.mjs
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { chromium } from 'playwright';
|
| 2 |
+
import { visibleWidth } from '@earendil-works/pi-tui/dist/utils.js';
|
| 3 |
+
import fs from 'node:fs/promises';
|
| 4 |
+
import assert from 'node:assert/strict';
|
| 5 |
+
|
| 6 |
+
// Deterministic presentation fixtures, separate from actual-model tests.
|
| 7 |
+
const url = process.argv[2] ?? 'http://127.0.0.1:4173/';
|
| 8 |
+
const label = process.argv[3] ?? 'agent-terminal-dark-render';
|
| 9 |
+
const result = { date: new Date().toISOString(), url, kind: 'synthetic rendering fixtures; no model inference', errors: [], checks: [], sizes: [] };
|
| 10 |
+
const browser = await chromium.launch({ executablePath: '/usr/bin/chromium', headless: true });
|
| 11 |
+
const context = await browser.newContext({ viewport: { width: 1440, height: 1000 } });
|
| 12 |
+
context.setDefaultTimeout(15_000);
|
| 13 |
+
const page = await context.newPage();
|
| 14 |
+
page.on('pageerror', error => result.errors.push(error.stack));
|
| 15 |
+
let id = 100;
|
| 16 |
+
const user = text => ({ role: 'user', content: [{ type: 'text', text }], timestamp: id++ });
|
| 17 |
+
const assistant = (text, extra = {}) => ({ role: 'assistant', content: [{ type: 'text', text }], timestamp: id++, stopReason: 'stop', ...extra });
|
| 18 |
+
const tool = (name, args, output, isError = false) => {
|
| 19 |
+
const toolCallId = 'render-' + id++;
|
| 20 |
+
return [assistant('', { content: [{ type: 'toolCall', id: toolCallId, name, arguments: args }], stopReason: 'toolUse' }),
|
| 21 |
+
{ role: 'toolResult', toolCallId, toolName: name, content: [{ type: 'text', text: output }], isError, timestamp: id++ }];
|
| 22 |
+
};
|
| 23 |
+
const screen = () => page.evaluate(() => window.browserPi.terminal.readScreen());
|
| 24 |
+
const waitScreen = text => page.waitForFunction(text => window.browserPi.terminal.readScreen().includes(text), text);
|
| 25 |
+
async function fixture(messages) {
|
| 26 |
+
await page.evaluate(messages => { window.browserPi.terminal.setMessages(messages, { reset: true }); window.browserPi.terminal.focus(); }, messages);
|
| 27 |
+
await page.keyboard.press('End');
|
| 28 |
+
await page.evaluate(() => new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(resolve))));
|
| 29 |
+
}
|
| 30 |
+
function luminance(value) {
|
| 31 |
+
const n = typeof value === 'number' ? value : parseInt(value.slice(1), 16);
|
| 32 |
+
const rgb = [n >> 16 & 255, n >> 8 & 255, n & 255].map(v => { v /= 255; return v <= .04045 ? v / 12.92 : ((v + .055) / 1.055) ** 2.4; });
|
| 33 |
+
return .2126 * rgb[0] + .7152 * rgb[1] + .0722 * rgb[2];
|
| 34 |
+
}
|
| 35 |
+
async function geometry(name) {
|
| 36 |
+
const measured = await page.evaluate(() => {
|
| 37 |
+
const rect = selector => { const r = document.querySelector(selector).getBoundingClientRect(); return { x: r.x, y: r.y, width: r.width, height: r.height, right: r.right, bottom: r.bottom }; };
|
| 38 |
+
return { viewport: { width: innerWidth, height: innerHeight }, cols: window.browserPi.terminal.cols, rows: window.browserPi.terminal.rows,
|
| 39 |
+
panel: rect('.terminal-panel'), terminal: rect('#pi-terminal'), screen: rect('.xterm-screen'), controls: rect('.terminal-controls'),
|
| 40 |
+
overflow: document.documentElement.scrollWidth > innerWidth, background: getComputedStyle(document.querySelector('.terminal-panel')).backgroundColor };
|
| 41 |
+
});
|
| 42 |
+
assert.equal(measured.background, 'rgb(24, 24, 30)');
|
| 43 |
+
assert.equal(measured.overflow, false, name + ': page overflow');
|
| 44 |
+
assert.equal(measured.screen.x, measured.terminal.x, name + ': no extra CSS padding inside xterm');
|
| 45 |
+
assert(measured.screen.right <= measured.terminal.right + 1, name + ': terminal columns clipped');
|
| 46 |
+
assert(measured.terminal.right - measured.screen.right < measured.screen.width / measured.cols + 1, name + ': unused scrollbar gutter');
|
| 47 |
+
assert(measured.screen.bottom <= measured.terminal.bottom + 1, name + ': terminal rows clipped');
|
| 48 |
+
assert(measured.controls.y >= measured.screen.bottom - 1, name + ': controls overlap terminal');
|
| 49 |
+
assert(measured.controls.bottom <= measured.panel.bottom, name + ': controls escape panel');
|
| 50 |
+
assert((await screen()).includes('/workspace'), name + ': footer clipped');
|
| 51 |
+
result.sizes.push({ name, ...measured });
|
| 52 |
+
}
|
| 53 |
+
try {
|
| 54 |
+
await page.goto(url); await page.waitForFunction(() => window.browserPi?.terminal?.readCells);
|
| 55 |
+
await page.evaluate(() => window.browserPi.ready);
|
| 56 |
+
await fixture([user('USER_ONE'), assistant('ASSISTANT_ONE'), user('USER_TWO'), assistant('ASSISTANT_TWO')]);
|
| 57 |
+
await waitScreen('ASSISTANT_TWO');
|
| 58 |
+
const cells = await page.evaluate(() => window.browserPi.terminal.readCells());
|
| 59 |
+
const rowText = cells.map(row => row.map(cell => cell?.text ?? '').join('').trimEnd());
|
| 60 |
+
const u1 = rowText.findIndex(row => row.includes('USER_ONE')), a1 = rowText.findIndex(row => row.includes('ASSISTANT_ONE'));
|
| 61 |
+
const u2 = rowText.findIndex(row => row.includes('USER_TWO'));
|
| 62 |
+
assert.equal(rowText[u1], ' USER_ONE');
|
| 63 |
+
assert.equal(a1 - u1, 3, 'Pi user bottom padding plus assistant separator');
|
| 64 |
+
assert.equal(u2 - a1, 3, 'Pi turn separator plus user top padding');
|
| 65 |
+
assert.equal(cells[u1 - 1][3].bg, 0x343541, 'Pi user top padded row');
|
| 66 |
+
assert.equal(cells[u1 + 1][3].bg, 0x343541, 'Pi user bottom padded row');
|
| 67 |
+
result.checks.push('Upstream Pi user/assistant indentation, inner padding and turn separators');
|
| 68 |
+
|
| 69 |
+
await fixture([user('Read todo'), ...tool('read', { path: '/workspace/todo' }, '# todo\n\n'), assistant('Verified.')]);
|
| 70 |
+
await waitScreen('Verified.');
|
| 71 |
+
const toolCells = await page.evaluate(() => window.browserPi.terminal.readCells());
|
| 72 |
+
const toolRows = toolCells.map(row => row.map(cell => cell?.text ?? '').join('').trimEnd());
|
| 73 |
+
const call = toolRows.findIndex(row => row.includes('read /workspace/todo'));
|
| 74 |
+
assert.equal(toolRows[call], ' read /workspace/todo');
|
| 75 |
+
assert.equal(toolRows[call + 1], ' # todo');
|
| 76 |
+
assert.equal(toolCells[call - 1][3].bg, 0x283228);
|
| 77 |
+
assert.equal(toolCells[call + 2][3].bg, 0x283228);
|
| 78 |
+
assert.equal(toolRows[call + 3], '');
|
| 79 |
+
assert.equal(toolRows[call + 4], ' Verified.');
|
| 80 |
+
result.checks.push('Upstream tool Box(1,1) padding and separator; no trailing empty output rows');
|
| 81 |
+
await page.screenshot({ path: `../validation/${label}-spacing.png`, fullPage: true });
|
| 82 |
+
|
| 83 |
+
const unicodePrefix = ' WIDE δΈη π¦ π©βπ» e\u0301 ';
|
| 84 |
+
await fixture([user('Unicode'), assistant(unicodePrefix.trimStart() + 'END')]); await waitScreen('END');
|
| 85 |
+
const unicodeCells = await page.evaluate(() => window.browserPi.terminal.readCells());
|
| 86 |
+
const unicodeRow = unicodeCells.find(row => row.map(cell => cell?.text ?? '').join('').includes('WIDE'));
|
| 87 |
+
assert.equal(unicodeRow.findLastIndex(cell => cell.text === 'E'), visibleWidth(unicodePrefix));
|
| 88 |
+
assert.equal(unicodeRow.find(cell => cell.text === 'π©βπ»').width, 2);
|
| 89 |
+
assert.equal(unicodeRow.find(cell => cell.text === 'π¦').width, 2);
|
| 90 |
+
result.checks.push('CJK, emoji, ZWJ and combining accents agree with Pi cell widths');
|
| 91 |
+
|
| 92 |
+
const rich = [user('Show Markdown, file output and errors.'), assistant('# Markdown\n\nA **bold** paragraph with *italics*, `inline code`, and a [link](https://example.com/a/long/path).\n\n- First item\n- Second item\n\n> A wrapped quotation with several words and Unicode δΈη.\n\n```js\nconst result = "' + 'a'.repeat(150) + '";\nconsole.log(result);\n```\n\n| Item | Value |\n| --- | --- |\n| Alpha | 123 |\n| Beta | 456 |'),
|
| 93 |
+
...tool('read', { path: '/workspace/deeply/nested/directory/a-long-file-name.md' }, Array.from({ length: 40 }, (_, i) => 'OUTPUT_ROW_' + i + ' value δΈη').join('\n')),
|
| 94 |
+
...tool('read', { path: '/workspace/missing.txt' }, 'ENOENT: file does not exist', true), assistant('END_OF_TRANSCRIPT')];
|
| 95 |
+
await fixture(rich); await waitScreen('END_OF_TRANSCRIPT');
|
| 96 |
+
assert(!(await page.evaluate(() => window.browserPi.terminal.readDocument().join('\n'))).includes('OUTPUT_ROW_39'));
|
| 97 |
+
await page.keyboard.press('Control+o');
|
| 98 |
+
await page.waitForFunction(() => window.browserPi.terminal.readDocument().join('\n').includes('OUTPUT_ROW_39'));
|
| 99 |
+
await page.keyboard.press('Control+o');
|
| 100 |
+
result.checks.push('Long tool results collapse/expand without losing content');
|
| 101 |
+
|
| 102 |
+
for (const [width, height] of [[1440,1000],[1024,768],[851,640],[850,640],[390,844],[320,568],[390,420]]) {
|
| 103 |
+
const name = `${width}x${height}`;
|
| 104 |
+
await page.setViewportSize({ width, height });
|
| 105 |
+
await page.waitForTimeout(100);
|
| 106 |
+
await page.keyboard.press('End'); await waitScreen('END_OF_TRANSCRIPT');
|
| 107 |
+
await geometry(name);
|
| 108 |
+
const doc = await page.evaluate(() => ({ lines: window.browserPi.terminal.readDocument(), cols: window.browserPi.terminal.cols }));
|
| 109 |
+
for (const line of doc.lines) assert(visibleWidth(line) <= doc.cols, name + ': overwide document line');
|
| 110 |
+
const colors = await page.evaluate(() => window.browserPi.terminal.readCells());
|
| 111 |
+
for (const row of colors) for (const cell of row) if (cell && /[\p{L}\p{N}]/u.test(cell.text)) {
|
| 112 |
+
const l1 = luminance(cell.fg), l2 = luminance(cell.bg), contrast = (Math.max(l1,l2)+.05)/(Math.min(l1,l2)+.05);
|
| 113 |
+
assert(contrast >= 4.5, `Low text contrast ${contrast.toFixed(2)} for ${JSON.stringify(cell)}`);
|
| 114 |
+
}
|
| 115 |
+
if ([1440,390,320].includes(width)) await page.screenshot({ path: `../validation/${label}-${name}.png`, fullPage: true });
|
| 116 |
+
}
|
| 117 |
+
result.checks.push('Seven viewports: Markdown, tool cards, footer/controls, wrapping and 4.5:1 visible text contrast');
|
| 118 |
+
|
| 119 |
+
await page.setViewportSize({ width: 1440, height: 1000 });
|
| 120 |
+
const history = Array.from({ length: 60 }, (_, i) => [user('USER_TURN_' + i), assistant('ASSISTANT_TURN_' + i)]).flat();
|
| 121 |
+
await fixture(history); await waitScreen('ASSISTANT_TURN_59');
|
| 122 |
+
await page.keyboard.press('Home'); await page.waitForFunction(() => window.browserPi.terminal.viewportTop === 0);
|
| 123 |
+
const more = [...history, user('Stream a response'), assistant('STREAM_FIRST', { stopReason: undefined })];
|
| 124 |
+
await page.evaluate(messages => window.browserPi.terminal.setMessages(messages), more);
|
| 125 |
+
await page.waitForTimeout(80);
|
| 126 |
+
assert.equal(await page.evaluate(() => window.browserPi.terminal.viewportTop), 0);
|
| 127 |
+
more.at(-1).content[0].text = 'STREAM_FIRST\nSTREAM_LAST'; more.at(-1).stopReason = 'stop';
|
| 128 |
+
await page.evaluate(messages => window.browserPi.terminal.setMessages(messages), more);
|
| 129 |
+
await page.keyboard.press('End'); await waitScreen('STREAM_LAST');
|
| 130 |
+
result.checks.push('60-turn transcript and streamed updates preserve scroll position');
|
| 131 |
+
await page.locator('.xterm-helper-textarea').focus();
|
| 132 |
+
for (let i=0;i<12;i++) { await page.keyboard.type('Draft line ' + i); await page.keyboard.press('Shift+Enter'); }
|
| 133 |
+
await page.setViewportSize({ width: 390, height: 420 }); await page.waitForTimeout(120);
|
| 134 |
+
await geometry('multiline-keyboard-height');
|
| 135 |
+
assert((await screen()).includes('Draft line 11'), 'Multiline editor cursor row must stay visible');
|
| 136 |
+
result.checks.push('Multiline draft remains visible at keyboard-sized height');
|
| 137 |
+
result.mobileLimitation = 'Viewport/keyboard-height simulation on desktop Chromium; no physical mobile device.';
|
| 138 |
+
assert.equal(result.errors.length, 0);
|
| 139 |
+
result.passed = true; console.log(JSON.stringify({ passed: true, checks: result.checks }));
|
| 140 |
+
} catch (error) {
|
| 141 |
+
result.failure = error.stack; result.screen = await screen().catch(() => 'not initialized');
|
| 142 |
+
await page.screenshot({ path: `../validation/${label}-failure.png`, fullPage: true }); throw error;
|
| 143 |
+
} finally { await fs.writeFile(`../validation/${label}.json`, JSON.stringify(result,null,2)); await browser.close(); }
|
app/vendor/pi-coding-agent/README.md
CHANGED
|
@@ -7,12 +7,14 @@ These files are **unmodified copies** from the published
|
|
| 7 |
- `CustomEditor` is the CLI's actual editor subclass, extending `pi-tui`'s editor.
|
| 8 |
- `UserMessageComponent` and `AssistantMessageComponent` are its actual message renderers.
|
| 9 |
- `markdown-transform.js` is their upstream helper.
|
| 10 |
-
- `light.json`
|
| 11 |
|
| 12 |
The build redirects their `@earendil-works/pi-tui` import to a selective export
|
| 13 |
of the installed **real pi-tui** package. It redirects their Node theme service
|
| 14 |
-
to `src/pi/theme.mjs`, which uses the
|
| 15 |
-
Node syntax highlighting.
|
|
|
|
|
|
|
| 16 |
|
| 17 |
The rest of the Node CLI is not vendored. Browser shell tool cards, slash-command
|
| 18 |
dispatch, worker integration, and workspace controls are app code. They do not
|
|
|
|
| 7 |
- `CustomEditor` is the CLI's actual editor subclass, extending `pi-tui`'s editor.
|
| 8 |
- `UserMessageComponent` and `AssistantMessageComponent` are its actual message renderers.
|
| 9 |
- `markdown-transform.js` is their upstream helper.
|
| 10 |
+
- `light.json` and `dark.json` are the upstream theme palettes; the app uses dark.
|
| 11 |
|
| 12 |
The build redirects their `@earendil-works/pi-tui` import to a selective export
|
| 13 |
of the installed **real pi-tui** package. It redirects their Node theme service
|
| 14 |
+
to `src/pi/theme.mjs`, which uses the dark palette with brighter secondary text,
|
| 15 |
+
without filesystem watchers or Node syntax highlighting. The build also makes
|
| 16 |
+
Node-only timer `unref()` calls optional in browsers. See `scripts/pi-browser.mjs`
|
| 17 |
+
for all host adaptations. The vendored files themselves remain unmodified.
|
| 18 |
|
| 19 |
The rest of the Node CLI is not vendored. Browser shell tool cards, slash-command
|
| 20 |
dispatch, worker integration, and workspace controls are app code. They do not
|
app/vendor/pi-coding-agent/provenance.json
CHANGED
|
@@ -7,6 +7,7 @@
|
|
| 7 |
"components/user-message.js": "398a34b8a979daea5614be4cbbe6ff66e7eca97e9fd855508791dcddce994bc8",
|
| 8 |
"components/assistant-message.js": "edbd1e712234609d2ad1078edcf960e3b6f549669075f1c5d1a7a4481e2b3d19",
|
| 9 |
"components/markdown-transform.js": "31ad2245189328104a31bb9b12f58b0a12e4af9c7924775a242c9dcd526d2c1a",
|
| 10 |
-
"theme/light.json": "14c7172ba7e75eab6f509504de806af0f2d9ff817bfb45d9533bff15c7e6e657"
|
|
|
|
| 11 |
}
|
| 12 |
}
|
|
|
|
| 7 |
"components/user-message.js": "398a34b8a979daea5614be4cbbe6ff66e7eca97e9fd855508791dcddce994bc8",
|
| 8 |
"components/assistant-message.js": "edbd1e712234609d2ad1078edcf960e3b6f549669075f1c5d1a7a4481e2b3d19",
|
| 9 |
"components/markdown-transform.js": "31ad2245189328104a31bb9b12f58b0a12e4af9c7924775a242c9dcd526d2c1a",
|
| 10 |
+
"theme/light.json": "14c7172ba7e75eab6f509504de806af0f2d9ff817bfb45d9533bff15c7e6e657",
|
| 11 |
+
"theme/dark.json": "103a5aecb74a2dab5cc903c9741845ee6158658ce2ff6e5445948784116eaef8"
|
| 12 |
}
|
| 13 |
}
|
app/vendor/pi-coding-agent/theme/dark.json
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"$schema": "https://raw.githubusercontent.com/earendil-works/pi/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
|
| 3 |
+
"name": "dark",
|
| 4 |
+
"vars": {
|
| 5 |
+
"cyan": "#00d7ff",
|
| 6 |
+
"blue": "#5f87ff",
|
| 7 |
+
"green": "#b5bd68",
|
| 8 |
+
"red": "#cc6666",
|
| 9 |
+
"yellow": "#ffff00",
|
| 10 |
+
"text": "#d4d4d4",
|
| 11 |
+
"gray": "#808080",
|
| 12 |
+
"dimGray": "#666666",
|
| 13 |
+
"darkGray": "#505050",
|
| 14 |
+
"accent": "#8abeb7",
|
| 15 |
+
"selectedBg": "#3a3a4a",
|
| 16 |
+
"userMsgBg": "#343541",
|
| 17 |
+
"toolPendingBg": "#282832",
|
| 18 |
+
"toolSuccessBg": "#283228",
|
| 19 |
+
"toolErrorBg": "#3c2828",
|
| 20 |
+
"customMsgBg": "#2d2838"
|
| 21 |
+
},
|
| 22 |
+
"colors": {
|
| 23 |
+
"accent": "accent",
|
| 24 |
+
"border": "blue",
|
| 25 |
+
"borderAccent": "cyan",
|
| 26 |
+
"borderMuted": "darkGray",
|
| 27 |
+
"success": "green",
|
| 28 |
+
"error": "red",
|
| 29 |
+
"warning": "yellow",
|
| 30 |
+
"muted": "gray",
|
| 31 |
+
"dim": "dimGray",
|
| 32 |
+
"text": "text",
|
| 33 |
+
"thinkingText": "gray",
|
| 34 |
+
|
| 35 |
+
"selectedBg": "selectedBg",
|
| 36 |
+
"scrollbarTrack": "darkGray",
|
| 37 |
+
"scrollbarThumb": "text",
|
| 38 |
+
"searchMatchBg": "selectedBg",
|
| 39 |
+
"searchMatchText": "text",
|
| 40 |
+
"userMessageBg": "userMsgBg",
|
| 41 |
+
"userMessageText": "text",
|
| 42 |
+
"customMessageBg": "customMsgBg",
|
| 43 |
+
"customMessageText": "text",
|
| 44 |
+
"customMessageLabel": "#9575cd",
|
| 45 |
+
"toolPendingBg": "toolPendingBg",
|
| 46 |
+
"toolSuccessBg": "toolSuccessBg",
|
| 47 |
+
"toolErrorBg": "toolErrorBg",
|
| 48 |
+
"toolTitle": "text",
|
| 49 |
+
"toolOutput": "gray",
|
| 50 |
+
|
| 51 |
+
"mdHeading": "#f0c674",
|
| 52 |
+
"mdLink": "#81a2be",
|
| 53 |
+
"mdLinkUrl": "dimGray",
|
| 54 |
+
"mdCode": "accent",
|
| 55 |
+
"mdCodeBlock": "green",
|
| 56 |
+
"mdCodeBlockBorder": "gray",
|
| 57 |
+
"mdQuote": "gray",
|
| 58 |
+
"mdQuoteBorder": "gray",
|
| 59 |
+
"mdHr": "gray",
|
| 60 |
+
"mdListBullet": "accent",
|
| 61 |
+
|
| 62 |
+
"toolDiffAdded": "green",
|
| 63 |
+
"toolDiffRemoved": "red",
|
| 64 |
+
"toolDiffContext": "gray",
|
| 65 |
+
|
| 66 |
+
"syntaxComment": "#6A9955",
|
| 67 |
+
"syntaxKeyword": "#569CD6",
|
| 68 |
+
"syntaxFunction": "#DCDCAA",
|
| 69 |
+
"syntaxVariable": "#9CDCFE",
|
| 70 |
+
"syntaxString": "#CE9178",
|
| 71 |
+
"syntaxNumber": "#B5CEA8",
|
| 72 |
+
"syntaxType": "#4EC9B0",
|
| 73 |
+
"syntaxOperator": "#D4D4D4",
|
| 74 |
+
"syntaxPunctuation": "#D4D4D4",
|
| 75 |
+
|
| 76 |
+
"thinkingOff": "darkGray",
|
| 77 |
+
"thinkingMinimal": "#6e6e6e",
|
| 78 |
+
"thinkingLow": "#5f87af",
|
| 79 |
+
"thinkingMedium": "#81a2be",
|
| 80 |
+
"thinkingHigh": "#b294bb",
|
| 81 |
+
"thinkingXhigh": "#d183e8",
|
| 82 |
+
"thinkingMax": "#ff5fff",
|
| 83 |
+
|
| 84 |
+
"bashMode": "green"
|
| 85 |
+
},
|
| 86 |
+
"export": {
|
| 87 |
+
"pageBg": "#18181e",
|
| 88 |
+
"cardBg": "#1e1e24",
|
| 89 |
+
"infoBg": "#3c3728"
|
| 90 |
+
}
|
| 91 |
+
}
|
assets/index-CTSRWQwn.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
:root{font-synthesis:none;color:#262626;--surface:#fff;--panel:#fafafa;--line:#dedede;--muted:#686868;--accent:#303030;background:#f5f5f5;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}button,.button{cursor:pointer;border:1px solid var(--line);background:var(--surface);min-height:28px;color:inherit;white-space:nowrap;border-radius:4px;padding:5px 9px;font-size:12px;line-height:1.4}button:hover,.button:hover{background:#ededed}button:disabled{opacity:.45;cursor:default}.primary{background:var(--accent);border-color:var(--accent);color:#fff}.primary:hover{background:#171717}.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 #888}button:focus-visible,.button:focus-visible{outline-offset:2px;outline:2px solid #737373}[hidden]{display:none!important}header{border-bottom:1px solid var(--line);background:#f7f7f7;justify-content:space-between;align-items:center;height:46px;padding:0 16px;display:flex}.brand{color:inherit;align-items:center;gap:8px;font-size:15px;font-weight:600;text-decoration:none;display:flex}.pi{font-family:Georgia,serif;font-size:28px;line-height:1}.brand small{color:var(--muted);margin-left:8px;font-size:11px;font-weight:400;display:inline}.header-right{align-items:center;gap:6px;font-size:11px;display:flex}.header-right button{margin-left:12px}.local-dot{background:#737373;border-radius:50%;width:5px;height:5px}main{grid-template-columns:minmax(420px,1fr) minmax(370px,.83fr);max-width:1800px;height:calc(100dvh - 46px);margin:auto;display:grid}.conversation{flex-direction:column;min-width:0;min-height:0;padding:12px 14px 8px;display:flex}.model-panel{border:1px solid var(--line);background:var(--panel);border-radius:4px;padding:9px 10px}.model-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.model-heading>div{flex-wrap:wrap;align-items:center;gap:7px;display:flex}.model-heading strong{font-size:12px;font-weight:600}.model-panel p{color:var(--muted);margin:5px 0 0;font-size:11px;line-height:1.45}.badge{color:#595959;background:#f0f0f0;border:1px solid #d9d9d9;border-radius:3px;padding:2px 5px;font-size:10px}progress{width:100%;height:5px;accent-color:var(--accent);margin-top:8px}.muted{color:var(--muted);margin-top:4px;font-size:11px}.muted:empty{display:none}.terminal-panel{color:#d4d4d4;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:#18181e;border:1px solid #393942;border-radius:4px;flex-direction:column;flex:1;min-height:0;margin-top:10px;padding:8px;display:flex}#pi-terminal{background:#18181e;flex:1;min-width:0;min-height:120px;overflow:hidden}#pi-terminal .pi-terminal-mount,#pi-terminal .xterm{height:100%}#pi-terminal .xterm-viewport{background-color:#18181e!important}#pi-terminal textarea:focus{box-shadow:none}.terminal-controls{justify-content:flex-end;align-items:center;gap:6px;padding-top:8px;display:flex}.terminal-panel button{color:#d4d4d4;background:#282832;border-color:#50505c}.terminal-panel button:hover{background:#343541}.terminal-panel button.primary{color:#18181e;background:#d4d4d4;border-color:#d4d4d4}.terminal-panel button.primary:hover{background:#f2f2f4}.terminal-panel footer{color:#9696a4}.terminal-panel #notice{color:#d4d4d4;background:#282832;border-color:#50505c}#notice{background:#f0f0f0;border:1px solid #cfcfcf;border-radius:4px;margin:6px 0;padding:8px 10px;font-size:12px}footer{color:var(--muted);justify-content:space-between;align-items:center;gap:8px;padding-top:7px;font-size:10px;display:flex}.workspace{border-left:1px solid var(--line);background:#f1f1f1;flex-direction:column;min-width:0;min-height:0;display:flex}.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{border-top:1px solid var(--line);border-bottom:1px solid var(--line);flex:1;grid-template-columns:140px minmax(0,1fr);min-height:180px;display:grid}#files{border-right:1px solid var(--line);padding:5px 4px;overflow:auto}#files button{text-align:left;white-space:normal;overflow-wrap:anywhere;background:0 0;border:none;border-radius:3px;width:100%;padding:5px 7px;font-family:ui-monospace,monospace;font-size:11px;line-height:1.45;display:block}#files button:hover{background:#e9e9e9}#files button.selected{color:#202020;background:#dedede}.editor-area{background:var(--surface);flex-direction:column;min-width:0;min-height:0;display:flex}.editor-heading{border-bottom:1px solid var(--line);background:var(--panel);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;color:#333;tab-size:2;white-space:pre;background:0 0;border:0;flex:1;min-height:140px;padding:10px 12px;font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;overflow:auto}.workspace>.terminal{background:#f5f5f5;padding:0 10px}.terminal summary{cursor:pointer;padding:9px 0;font-size:11px;font-weight:500}.terminal summary span{float:right;color:var(--muted);font-size:10px;font-weight:400}#terminal-output{white-space:pre-wrap;overflow-wrap:anywhere;height:112px;margin:0;font:11px/1.5 ui-monospace,monospace;overflow:auto}#shell-form{border-top:1px solid var(--line);align-items:center;gap:6px;padding:4px 0;font-family:ui-monospace,monospace;display:flex}#command{background:0 0;border:0;width:100%;min-width:0;padding:6px 0;font-size:12px}.workspace-note{color:var(--muted);margin:8px 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}@media (width<=850px){header{padding:0 12px}main{flex-direction:column;height:auto;display:flex}.conversation{height:calc(100dvh - 46px);min-height:320px;padding:10px}.workspace{border-left:0;border-top:1px solid var(--line);min-height:520px}.file-area{grid-template-columns:115px minmax(0,1fr);min-height:280px}.header-right>span:not(.local-dot){display:none}.header-right button{margin-left:0}h1{font-size:20px}.badge{font-size:9px}.model-panel{padding:8px}footer{font-size:9px}}@media (pointer:coarse){button,.button,#files button{min-height:38px}.editor-heading{min-height:40px}.terminal summary{padding-top:11px;padding-bottom:11px}#command,#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-DL-Ot0hN.css
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
:root{font-synthesis:none;color:#262626;--surface:#fff;--panel:#fafafa;--line:#dedede;--muted:#686868;--accent:#303030;background:#f5f5f5;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}button,.button{cursor:pointer;border:1px solid var(--line);background:var(--surface);min-height:28px;color:inherit;white-space:nowrap;border-radius:4px;padding:5px 9px;font-size:12px;line-height:1.4}button:hover,.button:hover{background:#ededed}button:disabled{opacity:.45;cursor:default}.primary{background:var(--accent);border-color:var(--accent);color:#fff}.primary:hover{background:#171717}.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 #888}button:focus-visible,.button:focus-visible{outline-offset:2px;outline:2px solid #737373}[hidden]{display:none!important}header{border-bottom:1px solid var(--line);background:#f7f7f7;justify-content:space-between;align-items:center;height:46px;padding:0 16px;display:flex}.brand{color:inherit;align-items:center;gap:8px;font-size:15px;font-weight:600;text-decoration:none;display:flex}.pi{font-family:Georgia,serif;font-size:28px;line-height:1}.brand small{color:var(--muted);margin-left:8px;font-size:11px;font-weight:400;display:inline}.header-right{align-items:center;gap:6px;font-size:11px;display:flex}.header-right button{margin-left:12px}.local-dot{background:#737373;border-radius:50%;width:5px;height:5px}main{grid-template-columns:minmax(420px,1fr) minmax(370px,.83fr);max-width:1800px;height:calc(100dvh - 46px);margin:auto;display:grid}.conversation{flex-direction:column;min-width:0;min-height:0;padding:12px 14px 8px;display:flex}.model-panel{border:1px solid var(--line);background:var(--panel);border-radius:4px;padding:9px 10px}.model-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.model-heading>div{flex-wrap:wrap;align-items:center;gap:7px;display:flex}.model-heading strong{font-size:12px;font-weight:600}.model-panel p{color:var(--muted);margin:5px 0 0;font-size:11px;line-height:1.45}.badge{color:#595959;background:#f0f0f0;border:1px solid #d9d9d9;border-radius:3px;padding:2px 5px;font-size:10px}progress{width:100%;height:5px;accent-color:var(--accent);margin-top:8px}.muted{color:var(--muted);margin-top:4px;font-size:11px}.muted:empty{display:none}#pi-terminal{border:1px solid var(--line);background:#fff;border-radius:4px;flex:1;min-width:0;min-height:180px;margin-top:10px;padding:8px;overflow:hidden}#pi-terminal .pi-terminal-mount,#pi-terminal .xterm{height:100%}#pi-terminal .xterm-viewport{background-color:#fff!important}#pi-terminal textarea:focus{box-shadow:none}.terminal-controls{align-items:center;gap:6px;padding-top:7px;display:flex}.terminal-controls>span{min-width:0;color:var(--muted);flex:1;font-size:10px}#notice{background:#f0f0f0;border:1px solid #cfcfcf;border-radius:4px;margin:6px 0;padding:8px 10px;font-size:12px}footer{justify-content:flex-end;align-items:center;gap:6px;display:flex}.composer-footer span{color:var(--muted);margin-right:auto;padding-left:6px;font-size:10px}footer{color:var(--muted);justify-content:space-between;gap:8px;padding-top:7px;font-size:10px;display:flex}.workspace{border-left:1px solid var(--line);background:#f1f1f1;flex-direction:column;min-width:0;min-height:0;display:flex}.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{border-top:1px solid var(--line);border-bottom:1px solid var(--line);flex:1;grid-template-columns:140px minmax(0,1fr);min-height:180px;display:grid}#files{border-right:1px solid var(--line);padding:5px 4px;overflow:auto}#files button{text-align:left;white-space:normal;overflow-wrap:anywhere;background:0 0;border:none;border-radius:3px;width:100%;padding:5px 7px;font-family:ui-monospace,monospace;font-size:11px;line-height:1.45;display:block}#files button:hover{background:#e9e9e9}#files button.selected{color:#202020;background:#dedede}.editor-area{background:var(--surface);flex-direction:column;min-width:0;min-height:0;display:flex}.editor-heading{border-bottom:1px solid var(--line);background:var(--panel);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;color:#333;tab-size:2;white-space:pre;background:0 0;border:0;flex:1;min-height:140px;padding:10px 12px;font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;overflow:auto}.terminal{background:#f5f5f5;padding:0 10px}.terminal summary{cursor:pointer;padding:9px 0;font-size:11px;font-weight:500}.terminal summary span{float:right;color:var(--muted);font-size:10px;font-weight:400}#terminal-output{white-space:pre-wrap;overflow-wrap:anywhere;height:112px;margin:0;font:11px/1.5 ui-monospace,monospace;overflow:auto}#shell-form{border-top:1px solid var(--line);align-items:center;gap:6px;padding:4px 0;font-family:ui-monospace,monospace;display:flex}#command{background:0 0;border:0;width:100%;min-width:0;padding:6px 0;font-size:12px}.workspace-note{color:var(--muted);margin:8px 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}@media (width<=850px){header{padding:0 12px}main{flex-direction:column;height:auto;display:flex}.conversation{height:calc(100dvh - 46px);min-height:500px;padding:10px}.workspace{border-left:0;border-top:1px solid var(--line);min-height:520px}.file-area{grid-template-columns:115px minmax(0,1fr);min-height:280px}.header-right>span:not(.local-dot){display:none}.header-right button{margin-left:0}h1{font-size:20px}.badge{font-size:9px}.model-panel{padding:8px}footer{font-size:9px}}@media (pointer:coarse){button,.button,#files button{min-height:38px}.editor-heading{min-height:40px}.terminal summary{padding-top:11px;padding-bottom:11px}#command,#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-BRKUEVCq.js β index-qmdKynRr.js}
RENAMED
|
The diff for this file is too large to render.
See raw diff
|
|
|
deployment-manifest.json
CHANGED
|
@@ -13,28 +13,28 @@
|
|
| 13 |
"sha256": "7b2f4725b2cb4fc1d22031a311857d5ac8754c882bf4e01b5ab1a9778b2417f0"
|
| 14 |
},
|
| 15 |
"README.md": {
|
| 16 |
-
"bytes":
|
| 17 |
-
"sha256": "
|
| 18 |
},
|
| 19 |
"SPACE_README.md": {
|
| 20 |
-
"bytes":
|
| 21 |
-
"sha256": "
|
| 22 |
},
|
| 23 |
"app/README.md": {
|
| 24 |
-
"bytes":
|
| 25 |
-
"sha256": "
|
| 26 |
},
|
| 27 |
"app/index.html": {
|
| 28 |
-
"bytes":
|
| 29 |
-
"sha256": "
|
| 30 |
},
|
| 31 |
"app/package-lock.json": {
|
| 32 |
-
"bytes":
|
| 33 |
-
"sha256": "
|
| 34 |
},
|
| 35 |
"app/package.json": {
|
| 36 |
-
"bytes":
|
| 37 |
-
"sha256": "
|
| 38 |
},
|
| 39 |
"app/public/favicon.svg": {
|
| 40 |
"bytes": 227,
|
|
@@ -57,8 +57,8 @@
|
|
| 57 |
"sha256": "8f04bf1c94122d5ad9fe8cb6964b69f8fdf71a5c1005921be960d5c8c6d14739"
|
| 58 |
},
|
| 59 |
"app/scripts/pi-browser.mjs": {
|
| 60 |
-
"bytes":
|
| 61 |
-
"sha256": "
|
| 62 |
},
|
| 63 |
"app/src/agent.worker.mjs": {
|
| 64 |
"bytes": 4265,
|
|
@@ -97,12 +97,12 @@
|
|
| 97 |
"sha256": "f7e6ae0ba428b78126c6873f9784dbf7d9220421cd6510ad893819492ed5ff9b"
|
| 98 |
},
|
| 99 |
"app/src/pi/terminal-ui.mjs": {
|
| 100 |
-
"bytes":
|
| 101 |
-
"sha256": "
|
| 102 |
},
|
| 103 |
"app/src/pi/theme.mjs": {
|
| 104 |
-
"bytes":
|
| 105 |
-
"sha256": "
|
| 106 |
},
|
| 107 |
"app/src/pi/xterm-terminal.mjs": {
|
| 108 |
"bytes": 1496,
|
|
@@ -117,8 +117,8 @@
|
|
| 117 |
"sha256": "dec9e2962a0f5c076512368395017fb5af7c9f7bfbe8cfed10105072dbcb76fe"
|
| 118 |
},
|
| 119 |
"app/src/style.css": {
|
| 120 |
-
"bytes":
|
| 121 |
-
"sha256": "
|
| 122 |
},
|
| 123 |
"app/src/workspace.mjs": {
|
| 124 |
"bytes": 5206,
|
|
@@ -128,6 +128,10 @@
|
|
| 128 |
"bytes": 9598,
|
| 129 |
"sha256": "01f506319c6654b0deaa853bc8e79c3a034fb47b1f7a4e16fbbe7ca4ba257b8f"
|
| 130 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
"app/tests/dev-smoke.mjs": {
|
| 132 |
"bytes": 1352,
|
| 133 |
"sha256": "ff314f593b7c8171c63043dd10e4ea1121a83a97b411fccee5a20ede80adc4e1"
|
|
@@ -140,6 +144,10 @@
|
|
| 140 |
"bytes": 5477,
|
| 141 |
"sha256": "6f80a15fbf1f03e7d7041df42252ecab1675341c9c9579ed2cdb8f5ea998f798"
|
| 142 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
"app/tests/space-diagnose.mjs": {
|
| 144 |
"bytes": 2736,
|
| 145 |
"sha256": "8cc0750f0861f5cf3d63e155c9ea4091bae5432a5a6719a55941d63599456e55"
|
|
@@ -161,8 +169,8 @@
|
|
| 161 |
"sha256": "0457f5bcec3b3b211605dfb5d1a49042fd638f3686a410fe099c24a25af13c48"
|
| 162 |
},
|
| 163 |
"app/vendor/pi-coding-agent/README.md": {
|
| 164 |
-
"bytes":
|
| 165 |
-
"sha256": "
|
| 166 |
},
|
| 167 |
"app/vendor/pi-coding-agent/components/assistant-message.js": {
|
| 168 |
"bytes": 7410,
|
|
@@ -181,8 +189,12 @@
|
|
| 181 |
"sha256": "398a34b8a979daea5614be4cbbe6ff66e7eca97e9fd855508791dcddce994bc8"
|
| 182 |
},
|
| 183 |
"app/vendor/pi-coding-agent/provenance.json": {
|
| 184 |
-
"bytes":
|
| 185 |
-
"sha256": "
|
|
|
|
|
|
|
|
|
|
|
|
|
| 186 |
},
|
| 187 |
"app/vendor/pi-coding-agent/theme/light.json": {
|
| 188 |
"bytes": 2236,
|
|
@@ -196,13 +208,13 @@
|
|
| 196 |
"bytes": 2092911,
|
| 197 |
"sha256": "1fc0006217cf28bf42951d1738e67d235b9516f9d579fa46064718759fd7ba28"
|
| 198 |
},
|
| 199 |
-
"assets/index-
|
| 200 |
-
"bytes":
|
| 201 |
-
"sha256": "
|
| 202 |
},
|
| 203 |
-
"assets/index-
|
| 204 |
-
"bytes":
|
| 205 |
-
"sha256": "
|
| 206 |
},
|
| 207 |
"assets/ort-wasm-simd-threaded.asyncify-DMmc6YqF.wasm": {
|
| 208 |
"bytes": 23567050,
|
|
@@ -213,12 +225,12 @@
|
|
| 213 |
"sha256": "c5cf939c058ae5b63f0cdab8d1becc4544582d6ed74098e9c8460d3acb78309e"
|
| 214 |
},
|
| 215 |
"index.html": {
|
| 216 |
-
"bytes":
|
| 217 |
-
"sha256": "
|
| 218 |
},
|
| 219 |
"licenses/dependencies.txt": {
|
| 220 |
-
"bytes":
|
| 221 |
-
"sha256": "
|
| 222 |
},
|
| 223 |
"licenses/onnxruntime-LICENSE": {
|
| 224 |
"bytes": 1073,
|
|
@@ -233,16 +245,16 @@
|
|
| 233 |
"sha256": "0457f5bcec3b3b211605dfb5d1a49042fd638f3686a410fe099c24a25af13c48"
|
| 234 |
},
|
| 235 |
"licenses/pi-components.json": {
|
| 236 |
-
"bytes":
|
| 237 |
-
"sha256": "
|
| 238 |
},
|
| 239 |
"requirements-convert.txt": {
|
| 240 |
"bytes": 254,
|
| 241 |
"sha256": "2a2dca97d6a9480afff1ed0da8f5924610552cfe509d5081788455f9c1d71f8b"
|
| 242 |
},
|
| 243 |
"research/browser-agent/REPORT.md": {
|
| 244 |
-
"bytes":
|
| 245 |
-
"sha256": "
|
| 246 |
},
|
| 247 |
"research/browser-agent/just-bash-README.md": {
|
| 248 |
"bytes": 29503,
|
|
@@ -305,8 +317,8 @@
|
|
| 305 |
"sha256": "b9bb39d5bd7bceb260d5eafa633f5af2e47a35d6132c8453d908ea6a4ad8a0f9"
|
| 306 |
},
|
| 307 |
"scripts/prepare_space.py": {
|
| 308 |
-
"bytes":
|
| 309 |
-
"sha256": "
|
| 310 |
},
|
| 311 |
"scripts/reference.py": {
|
| 312 |
"bytes": 2652,
|
|
@@ -360,6 +372,30 @@
|
|
| 360 |
"bytes": 2244,
|
| 361 |
"sha256": "64f5f41f482beb1886a922d4f5872a8f82ad61b701ff45c9e21fb7980acd4ff7"
|
| 362 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 363 |
"validation/agent-terminal-dev.json": {
|
| 364 |
"bytes": 12592,
|
| 365 |
"sha256": "3c0dc1cad52da619a31abc0b86c892b37c32ac0fd44b62afb43f326bf5ac8d66"
|
|
|
|
| 13 |
"sha256": "7b2f4725b2cb4fc1d22031a311857d5ac8754c882bf4e01b5ab1a9778b2417f0"
|
| 14 |
},
|
| 15 |
"README.md": {
|
| 16 |
+
"bytes": 9804,
|
| 17 |
+
"sha256": "4987a8ecbfd1b2a1a3a1d38863203a233677f198b818c5622cfa970bace5c7d7"
|
| 18 |
},
|
| 19 |
"SPACE_README.md": {
|
| 20 |
+
"bytes": 9804,
|
| 21 |
+
"sha256": "4987a8ecbfd1b2a1a3a1d38863203a233677f198b818c5622cfa970bace5c7d7"
|
| 22 |
},
|
| 23 |
"app/README.md": {
|
| 24 |
+
"bytes": 9065,
|
| 25 |
+
"sha256": "a76448dca728560677b11a462d149f17de3cd7090db0b31c49846ef812be623a"
|
| 26 |
},
|
| 27 |
"app/index.html": {
|
| 28 |
+
"bytes": 3318,
|
| 29 |
+
"sha256": "1a4c2b6cf732daa186db47411ecf45907c51c9be746b8e6dbbce7bf958129748"
|
| 30 |
},
|
| 31 |
"app/package-lock.json": {
|
| 32 |
+
"bytes": 159682,
|
| 33 |
+
"sha256": "84f416dfdc71e02e64bef7c3f36004f3a8dbe95e608f1a8710f2e22754b2105b"
|
| 34 |
},
|
| 35 |
"app/package.json": {
|
| 36 |
+
"bytes": 1003,
|
| 37 |
+
"sha256": "1a49f797391d19ab5045ca4c5e978d2bfe1ac26bf80cc6a571303940729f0e67"
|
| 38 |
},
|
| 39 |
"app/public/favicon.svg": {
|
| 40 |
"bytes": 227,
|
|
|
|
| 57 |
"sha256": "8f04bf1c94122d5ad9fe8cb6964b69f8fdf71a5c1005921be960d5c8c6d14739"
|
| 58 |
},
|
| 59 |
"app/scripts/pi-browser.mjs": {
|
| 60 |
+
"bytes": 1887,
|
| 61 |
+
"sha256": "f92958fc5397fff319591bbf7ea751d96719e9f07a46544036a26a91de90e5d8"
|
| 62 |
},
|
| 63 |
"app/src/agent.worker.mjs": {
|
| 64 |
"bytes": 4265,
|
|
|
|
| 97 |
"sha256": "f7e6ae0ba428b78126c6873f9784dbf7d9220421cd6510ad893819492ed5ff9b"
|
| 98 |
},
|
| 99 |
"app/src/pi/terminal-ui.mjs": {
|
| 100 |
+
"bytes": 15617,
|
| 101 |
+
"sha256": "6ced7c0a45042bcc4f6d7cb1d25b788687a0243c801380cdd685596b57c03d9a"
|
| 102 |
},
|
| 103 |
"app/src/pi/theme.mjs": {
|
| 104 |
+
"bytes": 2453,
|
| 105 |
+
"sha256": "323c873fe22beec891da45ea7bc53d0d185fe4f06d048cabe27279ac5982c2f4"
|
| 106 |
},
|
| 107 |
"app/src/pi/xterm-terminal.mjs": {
|
| 108 |
"bytes": 1496,
|
|
|
|
| 117 |
"sha256": "dec9e2962a0f5c076512368395017fb5af7c9f7bfbe8cfed10105072dbcb76fe"
|
| 118 |
},
|
| 119 |
"app/src/style.css": {
|
| 120 |
+
"bytes": 7866,
|
| 121 |
+
"sha256": "733e3a05abf8495d77a03bef84f4d7f83c48bd229c556da1229f99d7684cae8c"
|
| 122 |
},
|
| 123 |
"app/src/workspace.mjs": {
|
| 124 |
"bytes": 5206,
|
|
|
|
| 128 |
"bytes": 9598,
|
| 129 |
"sha256": "01f506319c6654b0deaa853bc8e79c3a034fb47b1f7a4e16fbbe7ca4ba257b8f"
|
| 130 |
},
|
| 131 |
+
"app/tests/conversation.mjs": {
|
| 132 |
+
"bytes": 5533,
|
| 133 |
+
"sha256": "8fdb4dc7360466f61fb8dbd9ab7f56b313428f970eea06eaee3c7c688b06493c"
|
| 134 |
+
},
|
| 135 |
"app/tests/dev-smoke.mjs": {
|
| 136 |
"bytes": 1352,
|
| 137 |
"sha256": "ff314f593b7c8171c63043dd10e4ea1121a83a97b411fccee5a20ede80adc4e1"
|
|
|
|
| 144 |
"bytes": 5477,
|
| 145 |
"sha256": "6f80a15fbf1f03e7d7041df42252ecab1675341c9c9579ed2cdb8f5ea998f798"
|
| 146 |
},
|
| 147 |
+
"app/tests/render.mjs": {
|
| 148 |
+
"bytes": 11181,
|
| 149 |
+
"sha256": "8006512b3883d1087bc54cde1fb98f443c11ed79974602c9209acad4839f4096"
|
| 150 |
+
},
|
| 151 |
"app/tests/space-diagnose.mjs": {
|
| 152 |
"bytes": 2736,
|
| 153 |
"sha256": "8cc0750f0861f5cf3d63e155c9ea4091bae5432a5a6719a55941d63599456e55"
|
|
|
|
| 169 |
"sha256": "0457f5bcec3b3b211605dfb5d1a49042fd638f3686a410fe099c24a25af13c48"
|
| 170 |
},
|
| 171 |
"app/vendor/pi-coding-agent/README.md": {
|
| 172 |
+
"bytes": 1370,
|
| 173 |
+
"sha256": "e85136efd9d354a05015899b5791a2c27a9b9bec9d11252f24cc76ac6af49b8b"
|
| 174 |
},
|
| 175 |
"app/vendor/pi-coding-agent/components/assistant-message.js": {
|
| 176 |
"bytes": 7410,
|
|
|
|
| 189 |
"sha256": "398a34b8a979daea5614be4cbbe6ff66e7eca97e9fd855508791dcddce994bc8"
|
| 190 |
},
|
| 191 |
"app/vendor/pi-coding-agent/provenance.json": {
|
| 192 |
+
"bytes": 781,
|
| 193 |
+
"sha256": "10d7d500ad4bf2ddee2037b5fc358088017aea2126b7e49cbf4b621baeea09c0"
|
| 194 |
+
},
|
| 195 |
+
"app/vendor/pi-coding-agent/theme/dark.json": {
|
| 196 |
+
"bytes": 2215,
|
| 197 |
+
"sha256": "103a5aecb74a2dab5cc903c9741845ee6158658ce2ff6e5445948784116eaef8"
|
| 198 |
},
|
| 199 |
"app/vendor/pi-coding-agent/theme/light.json": {
|
| 200 |
"bytes": 2236,
|
|
|
|
| 208 |
"bytes": 2092911,
|
| 209 |
"sha256": "1fc0006217cf28bf42951d1738e67d235b9516f9d579fa46064718759fd7ba28"
|
| 210 |
},
|
| 211 |
+
"assets/index-CTSRWQwn.css": {
|
| 212 |
+
"bytes": 10716,
|
| 213 |
+
"sha256": "d8ad3666932f160ec77397428b275a8cf761265018233b6f4c65ea956f09388f"
|
| 214 |
},
|
| 215 |
+
"assets/index-qmdKynRr.js": {
|
| 216 |
+
"bytes": 724782,
|
| 217 |
+
"sha256": "63b3e9ed88cef0bd00ac3292e14dec7cdc84299057057ea993b21c2c32066c50"
|
| 218 |
},
|
| 219 |
"assets/ort-wasm-simd-threaded.asyncify-DMmc6YqF.wasm": {
|
| 220 |
"bytes": 23567050,
|
|
|
|
| 225 |
"sha256": "c5cf939c058ae5b63f0cdab8d1becc4544582d6ed74098e9c8460d3acb78309e"
|
| 226 |
},
|
| 227 |
"index.html": {
|
| 228 |
+
"bytes": 3415,
|
| 229 |
+
"sha256": "7c8ff290b6acc634abcaefc921c2d302e69a5ac1d54119a74fb91841cc81dae9"
|
| 230 |
},
|
| 231 |
"licenses/dependencies.txt": {
|
| 232 |
+
"bytes": 1385412,
|
| 233 |
+
"sha256": "1ab82d1fe2dd0bc51e0b73788fbe2d96568ecba7d8ba577512f019e4a4f02b3c"
|
| 234 |
},
|
| 235 |
"licenses/onnxruntime-LICENSE": {
|
| 236 |
"bytes": 1073,
|
|
|
|
| 245 |
"sha256": "0457f5bcec3b3b211605dfb5d1a49042fd638f3686a410fe099c24a25af13c48"
|
| 246 |
},
|
| 247 |
"licenses/pi-components.json": {
|
| 248 |
+
"bytes": 781,
|
| 249 |
+
"sha256": "10d7d500ad4bf2ddee2037b5fc358088017aea2126b7e49cbf4b621baeea09c0"
|
| 250 |
},
|
| 251 |
"requirements-convert.txt": {
|
| 252 |
"bytes": 254,
|
| 253 |
"sha256": "2a2dca97d6a9480afff1ed0da8f5924610552cfe509d5081788455f9c1d71f8b"
|
| 254 |
},
|
| 255 |
"research/browser-agent/REPORT.md": {
|
| 256 |
+
"bytes": 17700,
|
| 257 |
+
"sha256": "5bf99118c164bf22576e411122f57a513bfc57fb7a17593f24dcd71b252ea64e"
|
| 258 |
},
|
| 259 |
"research/browser-agent/just-bash-README.md": {
|
| 260 |
"bytes": 29503,
|
|
|
|
| 317 |
"sha256": "b9bb39d5bd7bceb260d5eafa633f5af2e47a35d6132c8453d908ea6a4ad8a0f9"
|
| 318 |
},
|
| 319 |
"scripts/prepare_space.py": {
|
| 320 |
+
"bytes": 4328,
|
| 321 |
+
"sha256": "93ecd5ad4c036bd2c718a14158c9928ff073452b8c6fe45b0e9532efadf9b551"
|
| 322 |
},
|
| 323 |
"scripts/reference.py": {
|
| 324 |
"bytes": 2652,
|
|
|
|
| 372 |
"bytes": 2244,
|
| 373 |
"sha256": "64f5f41f482beb1886a922d4f5872a8f82ad61b701ff45c9e21fb7980acd4ff7"
|
| 374 |
},
|
| 375 |
+
"validation/agent-terminal-dark-conversation.json": {
|
| 376 |
+
"bytes": 73336,
|
| 377 |
+
"sha256": "981c8ac9c0f48f696ed6b96c86e147da5d628e3d0ffa5493b40af13e5f7168fe"
|
| 378 |
+
},
|
| 379 |
+
"validation/agent-terminal-dark-dev.json": {
|
| 380 |
+
"bytes": 8902,
|
| 381 |
+
"sha256": "2d8b749d119315614feb4bb05f2736bbef07045b95aee046c8b198d642195fa9"
|
| 382 |
+
},
|
| 383 |
+
"validation/agent-terminal-dark-model.json": {
|
| 384 |
+
"bytes": 55567,
|
| 385 |
+
"sha256": "e1fbfcfd8699123428e41909f74a35fee86b7c2f857fbe70bb48d5096b6c26e5"
|
| 386 |
+
},
|
| 387 |
+
"validation/agent-terminal-dark-render-dev.json": {
|
| 388 |
+
"bytes": 7997,
|
| 389 |
+
"sha256": "831347922cf4b32688802b3921502a668d2d5ad11189b1ad3bd0f068ddf1b2b6"
|
| 390 |
+
},
|
| 391 |
+
"validation/agent-terminal-dark-render.json": {
|
| 392 |
+
"bytes": 7997,
|
| 393 |
+
"sha256": "a8cbd11d291690fb4744592d50d224c20ae4cdb91535180638293883de778f16"
|
| 394 |
+
},
|
| 395 |
+
"validation/agent-terminal-dark.json": {
|
| 396 |
+
"bytes": 2942,
|
| 397 |
+
"sha256": "52ffba0b19322190fb82a301e8a1464446c9279293e6f78c0c6f53bbd3203c68"
|
| 398 |
+
},
|
| 399 |
"validation/agent-terminal-dev.json": {
|
| 400 |
"bytes": 12592,
|
| 401 |
"sha256": "3c0dc1cad52da619a31abc0b86c892b37c32ac0fd44b62afb43f326bf5ac8d66"
|
index.html
CHANGED
|
@@ -6,8 +6,8 @@
|
|
| 6 |
<link rel="icon" href="./favicon.svg" type="image/svg+xml">
|
| 7 |
<meta name="description" content="Pi, MiniCPM5 and a bash workspace, running entirely in your browser.">
|
| 8 |
<title>Pi Β· Browser workspace</title>
|
| 9 |
-
<script type="module" crossorigin src="./assets/index-
|
| 10 |
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
| 11 |
</head>
|
| 12 |
<body>
|
| 13 |
<header><a class="brand" href="./"><span class="pi">Ο</span><span>Pi <small>browser workspace</small></span></a>
|
|
@@ -22,10 +22,12 @@
|
|
| 22 |
<div id="load-detail" class="muted"></div>
|
| 23 |
<a id="open-tab" class="button" target="_blank" rel="noopener noreferrer" hidden>Open workspace in a new tab β</a>
|
| 24 |
</div>
|
|
|
|
| 25 |
<div id="pi-terminal" aria-label="Pi terminal"></div>
|
| 26 |
<div id="notice" role="status" hidden></div>
|
| 27 |
-
<div class="terminal-controls"><span id="activity" role="status">Files and chat are saved on this device.</span><button id="newline" type="button" title="Insert a newline (Shift+Enter)">β΅ Newline</button><button id="stop" type="button" hidden>Stop</button><button id="send" class="primary">Send β</button></div>
|
| 28 |
<footer>Pi TUI Β· xterm.js <span>Model and tools run in your browser</span></footer>
|
|
|
|
| 29 |
</section>
|
| 30 |
<aside class="workspace" aria-label="Workspace">
|
| 31 |
<div class="workspace-heading"><h2>Workspace</h2><div><button id="add-file" class="quiet">+ File</button><label class="button quiet" for="upload">Import</label><input id="upload" type="file" multiple hidden><button id="export" class="quiet">Export</button></div></div>
|
|
|
|
| 6 |
<link rel="icon" href="./favicon.svg" type="image/svg+xml">
|
| 7 |
<meta name="description" content="Pi, MiniCPM5 and a bash workspace, running entirely in your browser.">
|
| 8 |
<title>Pi Β· Browser workspace</title>
|
| 9 |
+
<script type="module" crossorigin src="./assets/index-qmdKynRr.js"></script>
|
| 10 |
+
<link rel="stylesheet" crossorigin href="./assets/index-CTSRWQwn.css">
|
| 11 |
</head>
|
| 12 |
<body>
|
| 13 |
<header><a class="brand" href="./"><span class="pi">Ο</span><span>Pi <small>browser workspace</small></span></a>
|
|
|
|
| 22 |
<div id="load-detail" class="muted"></div>
|
| 23 |
<a id="open-tab" class="button" target="_blank" rel="noopener noreferrer" hidden>Open workspace in a new tab β</a>
|
| 24 |
</div>
|
| 25 |
+
<div class="terminal-panel">
|
| 26 |
<div id="pi-terminal" aria-label="Pi terminal"></div>
|
| 27 |
<div id="notice" role="status" hidden></div>
|
| 28 |
+
<div class="terminal-controls"><span id="activity" class="sr-only" role="status">Files and chat are saved on this device.</span><button id="newline" type="button" title="Insert a newline (Shift+Enter)">β΅ Newline</button><button id="stop" type="button" hidden>Stop</button><button id="send" class="primary">Send β</button></div>
|
| 29 |
<footer>Pi TUI Β· xterm.js <span>Model and tools run in your browser</span></footer>
|
| 30 |
+
</div>
|
| 31 |
</section>
|
| 32 |
<aside class="workspace" aria-label="Workspace">
|
| 33 |
<div class="workspace-heading"><h2>Workspace</h2><div><button id="add-file" class="quiet">+ File</button><label class="button quiet" for="upload">Import</label><input id="upload" type="file" multiple hidden><button id="export" class="quiet">Export</button></div></div>
|
licenses/dependencies.txt
CHANGED
|
@@ -8117,6 +8117,30 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
| 8117 |
THE SOFTWARE.
|
| 8118 |
|
| 8119 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8120 |
----------------------------------------
|
| 8121 |
|
| 8122 |
@xterm/xterm@6.0.0 (MIT)
|
|
|
|
| 8117 |
THE SOFTWARE.
|
| 8118 |
|
| 8119 |
|
| 8120 |
+
----------------------------------------
|
| 8121 |
+
|
| 8122 |
+
@xterm/addon-unicode-graphemes@0.4.0 (MIT)
|
| 8123 |
+
Copyright (c) 2023, The xterm.js authors (https://github.com/xtermjs/xterm.js)
|
| 8124 |
+
|
| 8125 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 8126 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 8127 |
+
in the Software without restriction, including without limitation the rights
|
| 8128 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 8129 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 8130 |
+
furnished to do so, subject to the following conditions:
|
| 8131 |
+
|
| 8132 |
+
The above copyright notice and this permission notice shall be included in
|
| 8133 |
+
all copies or substantial portions of the Software.
|
| 8134 |
+
|
| 8135 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 8136 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 8137 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 8138 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 8139 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 8140 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 8141 |
+
THE SOFTWARE.
|
| 8142 |
+
|
| 8143 |
+
|
| 8144 |
----------------------------------------
|
| 8145 |
|
| 8146 |
@xterm/xterm@6.0.0 (MIT)
|
licenses/pi-components.json
CHANGED
|
@@ -7,6 +7,7 @@
|
|
| 7 |
"components/user-message.js": "398a34b8a979daea5614be4cbbe6ff66e7eca97e9fd855508791dcddce994bc8",
|
| 8 |
"components/assistant-message.js": "edbd1e712234609d2ad1078edcf960e3b6f549669075f1c5d1a7a4481e2b3d19",
|
| 9 |
"components/markdown-transform.js": "31ad2245189328104a31bb9b12f58b0a12e4af9c7924775a242c9dcd526d2c1a",
|
| 10 |
-
"theme/light.json": "14c7172ba7e75eab6f509504de806af0f2d9ff817bfb45d9533bff15c7e6e657"
|
|
|
|
| 11 |
}
|
| 12 |
}
|
|
|
|
| 7 |
"components/user-message.js": "398a34b8a979daea5614be4cbbe6ff66e7eca97e9fd855508791dcddce994bc8",
|
| 8 |
"components/assistant-message.js": "edbd1e712234609d2ad1078edcf960e3b6f549669075f1c5d1a7a4481e2b3d19",
|
| 9 |
"components/markdown-transform.js": "31ad2245189328104a31bb9b12f58b0a12e4af9c7924775a242c9dcd526d2c1a",
|
| 10 |
+
"theme/light.json": "14c7172ba7e75eab6f509504de806af0f2d9ff817bfb45d9533bff15c7e6e657",
|
| 11 |
+
"theme/dark.json": "103a5aecb74a2dab5cc903c9741845ee6158658ce2ff6e5445948784116eaef8"
|
| 12 |
}
|
| 13 |
}
|
research/browser-agent/REPORT.md
CHANGED
|
@@ -78,3 +78,13 @@ An early automation attempt used CDP bulk `insertText`, which did not traverse x
|
|
| 78 |
Published the terminal build to the existing static Space in commit `aba5de3158cf63e2fc0b3fd63ca57048fa5d6770`. All 105 staged files matched the Hub's Git/LFS digests, and the Space reported RUNNING. `validation/agent-terminal-space-checksums.json` records this initial application commit.
|
| 79 |
|
| 80 |
The public direct app passed all 12 terminal checks (`agent-terminal-space.json`). The actual Hugging Face iframe loaded MiniCPM from cached browser storage in 3.644 seconds, then accepted a prompt through xterm and Pi's editor and used bash/file tools to create and verify a fresh report totaling $144 (`agent-terminal-space-embedded.json`). The setup explicitly removes the previous report before prompting. Its async New chat handler is awaited to avoid racing the worker's busy notification. This verifies the terminal UI with real inference inside the embed on the desktop test device; it does not establish physical phone compatibility.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
Published the terminal build to the existing static Space in commit `aba5de3158cf63e2fc0b3fd63ca57048fa5d6770`. All 105 staged files matched the Hub's Git/LFS digests, and the Space reported RUNNING. `validation/agent-terminal-space-checksums.json` records this initial application commit.
|
| 79 |
|
| 80 |
The public direct app passed all 12 terminal checks (`agent-terminal-space.json`). The actual Hugging Face iframe loaded MiniCPM from cached browser storage in 3.644 seconds, then accepted a prompt through xterm and Pi's editor and used bash/file tools to create and verify a fresh report totaling $144 (`agent-terminal-space-embedded.json`). The setup explicitly removes the previous report before prompting. Its async New chat handler is awaited to avoid racing the worker's busy notification. This verifies the terminal UI with real inference inside the embed on the desktop test device; it does not establish physical phone compatibility.
|
| 81 |
+
|
| 82 |
+
### Dark terminal and native padding β 2026-09-12
|
| 83 |
+
|
| 84 |
+
The terminal now uses the pinned upstream dark palette, with brighter secondary text for small-screen legibility. Message spacing was compared against Pi 0.85.1's settings manager, interactive mode, and tool component: `outputPad=1`, `editorPaddingX=0`, user/tool `Box(1,1)`, one separator before subsequent user turns, and ten lines in collapsed tool previews. Original user/assistant components remain byte-identical. Trailing tool-output newlines are removed only in the presentation. The panel adds an 8px outer inset; the workspace shell's `.terminal` CSS no longer leaks into xterm, and native xterm scrollback is disabled to remove an unused 15px gutter. Pi still owns the full transcript and scrolling.
|
| 85 |
+
|
| 86 |
+
The pinned xterm grapheme addon 0.4.0 activates Unicode 15 grapheme handling to match Pi's cell widths. The browser build makes Node timer `unref()` calls optional; the expanded scroll test discovered that scrolling a long transcript previously threw a browser error. A short viewport can allocate all remaining rows to the editor so its borders and footer remain visible in the tested keyboard-height layout.
|
| 87 |
+
|
| 88 |
+
`agent-terminal-dark-render.json` contains deterministic presentation fixtures, explicitly separate from model inference. Checks cover exact box padding, turn gaps, CJK/emoji/ZWJ/combining alignment, long tool expansion, Markdown wrapping, seven viewport sizes from 320px to 1440px wide, at least 4.5:1 contrast for visible text cells, a 60-turn synthetic transcript, scroll preservation during streaming, and a 12-line draft at 390Γ420. Screenshots were visually inspected. The production keyboard suite passed twelve checks (`agent-terminal-dark.json`), and the development suites also passed.
|
| 89 |
+
|
| 90 |
+
Five actual-model workflows passed (`agent-terminal-dark-model.json`), with networking disabled during tool execution, zero network requests during those tasks, generation cancellation, persistence, and zero weight downloads on reload. Cached model setup took 2.208 seconds; reload took 2.057 seconds on this run's desktop GPU. `agent-terminal-dark-conversation.json` records ten consecutive user turns without resetting chat, including twelve actual tool results, file creation/read/edit, a forty-line file, Markdown, shell execution, and missing-file recovery. All assertions passed and no page errors occurred. These are integration tests on desktop Chromium, not a physical mobile-device or broad model-quality evaluation.
|
scripts/prepare_space.py
CHANGED
|
@@ -40,6 +40,11 @@ for name in [
|
|
| 40 |
'agent-terminal.json', 'agent-terminal-model.json', 'agent-terminal-dev.json',
|
| 41 |
'agent-terminal-space.json', 'agent-terminal-space-embedded.json',
|
| 42 |
'agent-terminal-space-checksums.json',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
]:
|
| 44 |
source = root / 'validation' / name
|
| 45 |
if source.is_file():
|
|
|
|
| 40 |
'agent-terminal.json', 'agent-terminal-model.json', 'agent-terminal-dev.json',
|
| 41 |
'agent-terminal-space.json', 'agent-terminal-space-embedded.json',
|
| 42 |
'agent-terminal-space-checksums.json',
|
| 43 |
+
'agent-terminal-dark.json', 'agent-terminal-dark-dev.json',
|
| 44 |
+
'agent-terminal-dark-render.json', 'agent-terminal-dark-render-dev.json',
|
| 45 |
+
'agent-terminal-dark-model.json', 'agent-terminal-dark-conversation.json',
|
| 46 |
+
'agent-terminal-dark-space.json', 'agent-terminal-dark-space-render.json',
|
| 47 |
+
'agent-terminal-dark-space-embedded.json',
|
| 48 |
]:
|
| 49 |
source = root / 'validation' / name
|
| 50 |
if source.is_file():
|
validation/agent-terminal-dark-conversation.json
ADDED
|
@@ -0,0 +1,2640 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"date": "2026-09-12T09:27:49.281Z",
|
| 3 |
+
"url": "http://127.0.0.1:4173/?source=local",
|
| 4 |
+
"kind": "actual model; ten consecutive user turns, no chat resets",
|
| 5 |
+
"turns": [
|
| 6 |
+
{
|
| 7 |
+
"turn": 1,
|
| 8 |
+
"elapsedMs": 2209,
|
| 9 |
+
"prompt": "Hi! Reply with one short sentence.",
|
| 10 |
+
"messages": [
|
| 11 |
+
{
|
| 12 |
+
"role": "user",
|
| 13 |
+
"content": [
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Hi! Reply with one short sentence."
|
| 17 |
+
}
|
| 18 |
+
],
|
| 19 |
+
"timestamp": 1789205271652
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"role": "assistant",
|
| 23 |
+
"api": "minicpm-webgpu",
|
| 24 |
+
"provider": "browser",
|
| 25 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 26 |
+
"timestamp": 1789205271653,
|
| 27 |
+
"content": [
|
| 28 |
+
{
|
| 29 |
+
"type": "text",
|
| 30 |
+
"text": "I'm ready to help."
|
| 31 |
+
}
|
| 32 |
+
],
|
| 33 |
+
"stopReason": "stop",
|
| 34 |
+
"usage": {
|
| 35 |
+
"input": 711,
|
| 36 |
+
"output": 7,
|
| 37 |
+
"cacheRead": 0,
|
| 38 |
+
"cacheWrite": 0,
|
| 39 |
+
"totalTokens": 718,
|
| 40 |
+
"cost": {
|
| 41 |
+
"input": 0,
|
| 42 |
+
"output": 0,
|
| 43 |
+
"cacheRead": 0,
|
| 44 |
+
"cacheWrite": 0,
|
| 45 |
+
"total": 0
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
}
|
| 49 |
+
]
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"turn": 2,
|
| 53 |
+
"elapsedMs": 4849,
|
| 54 |
+
"prompt": "Create a file called todo containing exactly \"# todo\" followed by a newline and \"- Check rendering\". Use the write tool.",
|
| 55 |
+
"messages": [
|
| 56 |
+
{
|
| 57 |
+
"role": "user",
|
| 58 |
+
"content": [
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Create a file called todo containing exactly \"# todo\" followed by a newline and \"- Check rendering\". Use the write tool."
|
| 62 |
+
}
|
| 63 |
+
],
|
| 64 |
+
"timestamp": 1789205273917
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"role": "assistant",
|
| 68 |
+
"api": "minicpm-webgpu",
|
| 69 |
+
"provider": "browser",
|
| 70 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 71 |
+
"timestamp": 1789205273917,
|
| 72 |
+
"content": [
|
| 73 |
+
{
|
| 74 |
+
"type": "toolCall",
|
| 75 |
+
"id": "d633481f-cf56-4cc3-8c24-6a030e5b990b",
|
| 76 |
+
"name": "write",
|
| 77 |
+
"arguments": {
|
| 78 |
+
"path": "todo",
|
| 79 |
+
"content": "# todo\n- Check rendering\n"
|
| 80 |
+
}
|
| 81 |
+
}
|
| 82 |
+
],
|
| 83 |
+
"stopReason": "toolUse",
|
| 84 |
+
"usage": {
|
| 85 |
+
"input": 756,
|
| 86 |
+
"output": 34,
|
| 87 |
+
"cacheRead": 0,
|
| 88 |
+
"cacheWrite": 0,
|
| 89 |
+
"totalTokens": 790,
|
| 90 |
+
"cost": {
|
| 91 |
+
"input": 0,
|
| 92 |
+
"output": 0,
|
| 93 |
+
"cacheRead": 0,
|
| 94 |
+
"cacheWrite": 0,
|
| 95 |
+
"total": 0
|
| 96 |
+
}
|
| 97 |
+
}
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"role": "toolResult",
|
| 101 |
+
"toolCallId": "d633481f-cf56-4cc3-8c24-6a030e5b990b",
|
| 102 |
+
"toolName": "write",
|
| 103 |
+
"content": [
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Wrote /workspace/todo"
|
| 107 |
+
}
|
| 108 |
+
],
|
| 109 |
+
"details": {},
|
| 110 |
+
"isError": false,
|
| 111 |
+
"timestamp": 1789205277085
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"role": "assistant",
|
| 115 |
+
"api": "minicpm-webgpu",
|
| 116 |
+
"provider": "browser",
|
| 117 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 118 |
+
"timestamp": 1789205277085,
|
| 119 |
+
"content": [
|
| 120 |
+
{
|
| 121 |
+
"type": "text",
|
| 122 |
+
"text": "Done."
|
| 123 |
+
}
|
| 124 |
+
],
|
| 125 |
+
"stopReason": "stop",
|
| 126 |
+
"usage": {
|
| 127 |
+
"input": 825,
|
| 128 |
+
"output": 3,
|
| 129 |
+
"cacheRead": 0,
|
| 130 |
+
"cacheWrite": 0,
|
| 131 |
+
"totalTokens": 828,
|
| 132 |
+
"cost": {
|
| 133 |
+
"input": 0,
|
| 134 |
+
"output": 0,
|
| 135 |
+
"cacheRead": 0,
|
| 136 |
+
"cacheWrite": 0,
|
| 137 |
+
"total": 0
|
| 138 |
+
}
|
| 139 |
+
}
|
| 140 |
+
}
|
| 141 |
+
]
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"turn": 3,
|
| 145 |
+
"elapsedMs": 4817,
|
| 146 |
+
"prompt": "Read todo using the read tool and show its contents.",
|
| 147 |
+
"messages": [
|
| 148 |
+
{
|
| 149 |
+
"role": "user",
|
| 150 |
+
"content": [
|
| 151 |
+
{
|
| 152 |
+
"type": "text",
|
| 153 |
+
"text": "Read todo using the read tool and show its contents."
|
| 154 |
+
}
|
| 155 |
+
],
|
| 156 |
+
"timestamp": 1789205278716
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"role": "assistant",
|
| 160 |
+
"api": "minicpm-webgpu",
|
| 161 |
+
"provider": "browser",
|
| 162 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 163 |
+
"timestamp": 1789205278716,
|
| 164 |
+
"content": [
|
| 165 |
+
{
|
| 166 |
+
"type": "toolCall",
|
| 167 |
+
"id": "dedbeb55-5419-4caa-841f-1a1ec6badd55",
|
| 168 |
+
"name": "read",
|
| 169 |
+
"arguments": {
|
| 170 |
+
"path": "todo"
|
| 171 |
+
}
|
| 172 |
+
}
|
| 173 |
+
],
|
| 174 |
+
"stopReason": "toolUse",
|
| 175 |
+
"usage": {
|
| 176 |
+
"input": 852,
|
| 177 |
+
"output": 15,
|
| 178 |
+
"cacheRead": 0,
|
| 179 |
+
"cacheWrite": 0,
|
| 180 |
+
"totalTokens": 867,
|
| 181 |
+
"cost": {
|
| 182 |
+
"input": 0,
|
| 183 |
+
"output": 0,
|
| 184 |
+
"cacheRead": 0,
|
| 185 |
+
"cacheWrite": 0,
|
| 186 |
+
"total": 0
|
| 187 |
+
}
|
| 188 |
+
}
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"role": "toolResult",
|
| 192 |
+
"toolCallId": "dedbeb55-5419-4caa-841f-1a1ec6badd55",
|
| 193 |
+
"toolName": "read",
|
| 194 |
+
"content": [
|
| 195 |
+
{
|
| 196 |
+
"type": "text",
|
| 197 |
+
"text": "# todo\n- Check rendering\n"
|
| 198 |
+
}
|
| 199 |
+
],
|
| 200 |
+
"details": {},
|
| 201 |
+
"isError": false,
|
| 202 |
+
"timestamp": 1789205281058
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"role": "assistant",
|
| 206 |
+
"api": "minicpm-webgpu",
|
| 207 |
+
"provider": "browser",
|
| 208 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 209 |
+
"timestamp": 1789205281058,
|
| 210 |
+
"content": [
|
| 211 |
+
{
|
| 212 |
+
"type": "text",
|
| 213 |
+
"text": "The file contains \"# todo\" followed by \"- Check rendering\"."
|
| 214 |
+
}
|
| 215 |
+
],
|
| 216 |
+
"stopReason": "stop",
|
| 217 |
+
"usage": {
|
| 218 |
+
"input": 902,
|
| 219 |
+
"output": 13,
|
| 220 |
+
"cacheRead": 0,
|
| 221 |
+
"cacheWrite": 0,
|
| 222 |
+
"totalTokens": 915,
|
| 223 |
+
"cost": {
|
| 224 |
+
"input": 0,
|
| 225 |
+
"output": 0,
|
| 226 |
+
"cacheRead": 0,
|
| 227 |
+
"cacheWrite": 0,
|
| 228 |
+
"total": 0
|
| 229 |
+
}
|
| 230 |
+
}
|
| 231 |
+
}
|
| 232 |
+
]
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"turn": 4,
|
| 236 |
+
"elapsedMs": 7669,
|
| 237 |
+
"prompt": "Use the edit tool on todo to replace Check rendering with Check dark mode. Then read it to verify.",
|
| 238 |
+
"messages": [
|
| 239 |
+
{
|
| 240 |
+
"role": "user",
|
| 241 |
+
"content": [
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "Use the edit tool on todo to replace Check rendering with Check dark mode. Then read it to verify."
|
| 245 |
+
}
|
| 246 |
+
],
|
| 247 |
+
"timestamp": 1789205283567
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"role": "assistant",
|
| 251 |
+
"api": "minicpm-webgpu",
|
| 252 |
+
"provider": "browser",
|
| 253 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 254 |
+
"timestamp": 1789205283567,
|
| 255 |
+
"content": [
|
| 256 |
+
{
|
| 257 |
+
"type": "toolCall",
|
| 258 |
+
"id": "6961e309-0f6f-42d5-97ae-dbd3303c1b4e",
|
| 259 |
+
"name": "edit",
|
| 260 |
+
"arguments": {
|
| 261 |
+
"path": "todo",
|
| 262 |
+
"oldText": "- Check rendering",
|
| 263 |
+
"newText": "- Check dark mode"
|
| 264 |
+
}
|
| 265 |
+
}
|
| 266 |
+
],
|
| 267 |
+
"stopReason": "toolUse",
|
| 268 |
+
"usage": {
|
| 269 |
+
"input": 949,
|
| 270 |
+
"output": 34,
|
| 271 |
+
"cacheRead": 0,
|
| 272 |
+
"cacheWrite": 0,
|
| 273 |
+
"totalTokens": 983,
|
| 274 |
+
"cost": {
|
| 275 |
+
"input": 0,
|
| 276 |
+
"output": 0,
|
| 277 |
+
"cacheRead": 0,
|
| 278 |
+
"cacheWrite": 0,
|
| 279 |
+
"total": 0
|
| 280 |
+
}
|
| 281 |
+
}
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"role": "toolResult",
|
| 285 |
+
"toolCallId": "6961e309-0f6f-42d5-97ae-dbd3303c1b4e",
|
| 286 |
+
"toolName": "edit",
|
| 287 |
+
"content": [
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "Edited /workspace/todo"
|
| 291 |
+
}
|
| 292 |
+
],
|
| 293 |
+
"details": {},
|
| 294 |
+
"isError": false,
|
| 295 |
+
"timestamp": 1789205286879
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"role": "assistant",
|
| 299 |
+
"api": "minicpm-webgpu",
|
| 300 |
+
"provider": "browser",
|
| 301 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 302 |
+
"timestamp": 1789205286879,
|
| 303 |
+
"content": [
|
| 304 |
+
{
|
| 305 |
+
"type": "toolCall",
|
| 306 |
+
"id": "334dd326-927a-4915-ac38-0cb011174b69",
|
| 307 |
+
"name": "read",
|
| 308 |
+
"arguments": {
|
| 309 |
+
"path": "todo"
|
| 310 |
+
}
|
| 311 |
+
}
|
| 312 |
+
],
|
| 313 |
+
"stopReason": "toolUse",
|
| 314 |
+
"usage": {
|
| 315 |
+
"input": 1017,
|
| 316 |
+
"output": 15,
|
| 317 |
+
"cacheRead": 0,
|
| 318 |
+
"cacheWrite": 0,
|
| 319 |
+
"totalTokens": 1032,
|
| 320 |
+
"cost": {
|
| 321 |
+
"input": 0,
|
| 322 |
+
"output": 0,
|
| 323 |
+
"cacheRead": 0,
|
| 324 |
+
"cacheWrite": 0,
|
| 325 |
+
"total": 0
|
| 326 |
+
}
|
| 327 |
+
}
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"role": "toolResult",
|
| 331 |
+
"toolCallId": "334dd326-927a-4915-ac38-0cb011174b69",
|
| 332 |
+
"toolName": "read",
|
| 333 |
+
"content": [
|
| 334 |
+
{
|
| 335 |
+
"type": "text",
|
| 336 |
+
"text": "# todo\n- Check dark mode\n"
|
| 337 |
+
}
|
| 338 |
+
],
|
| 339 |
+
"details": {},
|
| 340 |
+
"isError": false,
|
| 341 |
+
"timestamp": 1789205289344
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"role": "assistant",
|
| 345 |
+
"api": "minicpm-webgpu",
|
| 346 |
+
"provider": "browser",
|
| 347 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 348 |
+
"timestamp": 1789205289344,
|
| 349 |
+
"content": [
|
| 350 |
+
{
|
| 351 |
+
"type": "text",
|
| 352 |
+
"text": "Done."
|
| 353 |
+
}
|
| 354 |
+
],
|
| 355 |
+
"stopReason": "stop",
|
| 356 |
+
"usage": {
|
| 357 |
+
"input": 1068,
|
| 358 |
+
"output": 3,
|
| 359 |
+
"cacheRead": 0,
|
| 360 |
+
"cacheWrite": 0,
|
| 361 |
+
"totalTokens": 1071,
|
| 362 |
+
"cost": {
|
| 363 |
+
"input": 0,
|
| 364 |
+
"output": 0,
|
| 365 |
+
"cacheRead": 0,
|
| 366 |
+
"cacheWrite": 0,
|
| 367 |
+
"total": 0
|
| 368 |
+
}
|
| 369 |
+
}
|
| 370 |
+
}
|
| 371 |
+
]
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"turn": 5,
|
| 375 |
+
"elapsedMs": 5799,
|
| 376 |
+
"prompt": "Run this bash command: seq 1 40 > numbers.txt; wc -l numbers.txt",
|
| 377 |
+
"messages": [
|
| 378 |
+
{
|
| 379 |
+
"role": "user",
|
| 380 |
+
"content": [
|
| 381 |
+
{
|
| 382 |
+
"type": "text",
|
| 383 |
+
"text": "Run this bash command: seq 1 40 > numbers.txt; wc -l numbers.txt"
|
| 384 |
+
}
|
| 385 |
+
],
|
| 386 |
+
"timestamp": 1789205291217
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"role": "assistant",
|
| 390 |
+
"api": "minicpm-webgpu",
|
| 391 |
+
"provider": "browser",
|
| 392 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 393 |
+
"timestamp": 1789205291217,
|
| 394 |
+
"content": [
|
| 395 |
+
{
|
| 396 |
+
"type": "toolCall",
|
| 397 |
+
"id": "1bd99dbb-d324-4828-beb5-83f457199736",
|
| 398 |
+
"name": "bash",
|
| 399 |
+
"arguments": {
|
| 400 |
+
"command": "seq 1 40 > numbers.txt; wc -l numbers.txt"
|
| 401 |
+
}
|
| 402 |
+
}
|
| 403 |
+
],
|
| 404 |
+
"stopReason": "toolUse",
|
| 405 |
+
"usage": {
|
| 406 |
+
"input": 1104,
|
| 407 |
+
"output": 28,
|
| 408 |
+
"cacheRead": 0,
|
| 409 |
+
"cacheWrite": 0,
|
| 410 |
+
"totalTokens": 1132,
|
| 411 |
+
"cost": {
|
| 412 |
+
"input": 0,
|
| 413 |
+
"output": 0,
|
| 414 |
+
"cacheRead": 0,
|
| 415 |
+
"cacheWrite": 0,
|
| 416 |
+
"total": 0
|
| 417 |
+
}
|
| 418 |
+
}
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"role": "toolResult",
|
| 422 |
+
"toolCallId": "1bd99dbb-d324-4828-beb5-83f457199736",
|
| 423 |
+
"toolName": "bash",
|
| 424 |
+
"content": [
|
| 425 |
+
{
|
| 426 |
+
"type": "text",
|
| 427 |
+
"text": "40 numbers.txt\n\nExit code: 0"
|
| 428 |
+
}
|
| 429 |
+
],
|
| 430 |
+
"details": {
|
| 431 |
+
"exitCode": 0
|
| 432 |
+
},
|
| 433 |
+
"isError": false,
|
| 434 |
+
"timestamp": 1789205294513
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"role": "assistant",
|
| 438 |
+
"api": "minicpm-webgpu",
|
| 439 |
+
"provider": "browser",
|
| 440 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 441 |
+
"timestamp": 1789205294513,
|
| 442 |
+
"content": [
|
| 443 |
+
{
|
| 444 |
+
"type": "text",
|
| 445 |
+
"text": "Done."
|
| 446 |
+
}
|
| 447 |
+
],
|
| 448 |
+
"stopReason": "stop",
|
| 449 |
+
"usage": {
|
| 450 |
+
"input": 1171,
|
| 451 |
+
"output": 3,
|
| 452 |
+
"cacheRead": 0,
|
| 453 |
+
"cacheWrite": 0,
|
| 454 |
+
"totalTokens": 1174,
|
| 455 |
+
"cost": {
|
| 456 |
+
"input": 0,
|
| 457 |
+
"output": 0,
|
| 458 |
+
"cacheRead": 0,
|
| 459 |
+
"cacheWrite": 0,
|
| 460 |
+
"total": 0
|
| 461 |
+
}
|
| 462 |
+
}
|
| 463 |
+
}
|
| 464 |
+
]
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"turn": 6,
|
| 468 |
+
"elapsedMs": 5483,
|
| 469 |
+
"prompt": "Read numbers.txt using the read tool. Tell me only its first and last numbers.",
|
| 470 |
+
"messages": [
|
| 471 |
+
{
|
| 472 |
+
"role": "user",
|
| 473 |
+
"content": [
|
| 474 |
+
{
|
| 475 |
+
"type": "text",
|
| 476 |
+
"text": "Read numbers.txt using the read tool. Tell me only its first and last numbers."
|
| 477 |
+
}
|
| 478 |
+
],
|
| 479 |
+
"timestamp": 1789205297018
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"role": "assistant",
|
| 483 |
+
"api": "minicpm-webgpu",
|
| 484 |
+
"provider": "browser",
|
| 485 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 486 |
+
"timestamp": 1789205297018,
|
| 487 |
+
"content": [
|
| 488 |
+
{
|
| 489 |
+
"type": "toolCall",
|
| 490 |
+
"id": "964ed0bd-cacd-40aa-a93a-db3c17bdde6c",
|
| 491 |
+
"name": "read",
|
| 492 |
+
"arguments": {
|
| 493 |
+
"path": "numbers.txt"
|
| 494 |
+
}
|
| 495 |
+
}
|
| 496 |
+
],
|
| 497 |
+
"stopReason": "toolUse",
|
| 498 |
+
"usage": {
|
| 499 |
+
"input": 1204,
|
| 500 |
+
"output": 15,
|
| 501 |
+
"cacheRead": 0,
|
| 502 |
+
"cacheWrite": 0,
|
| 503 |
+
"totalTokens": 1219,
|
| 504 |
+
"cost": {
|
| 505 |
+
"input": 0,
|
| 506 |
+
"output": 0,
|
| 507 |
+
"cacheRead": 0,
|
| 508 |
+
"cacheWrite": 0,
|
| 509 |
+
"total": 0
|
| 510 |
+
}
|
| 511 |
+
}
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"role": "toolResult",
|
| 515 |
+
"toolCallId": "964ed0bd-cacd-40aa-a93a-db3c17bdde6c",
|
| 516 |
+
"toolName": "read",
|
| 517 |
+
"content": [
|
| 518 |
+
{
|
| 519 |
+
"type": "text",
|
| 520 |
+
"text": "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30\n31\n32\n33\n34\n35\n36\n37\n38\n39\n40\n"
|
| 521 |
+
}
|
| 522 |
+
],
|
| 523 |
+
"details": {},
|
| 524 |
+
"isError": false,
|
| 525 |
+
"timestamp": 1789205299673
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"role": "assistant",
|
| 529 |
+
"api": "minicpm-webgpu",
|
| 530 |
+
"provider": "browser",
|
| 531 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 532 |
+
"timestamp": 1789205299673,
|
| 533 |
+
"content": [
|
| 534 |
+
{
|
| 535 |
+
"type": "text",
|
| 536 |
+
"text": "First number: 1, Last number: 40."
|
| 537 |
+
}
|
| 538 |
+
],
|
| 539 |
+
"stopReason": "stop",
|
| 540 |
+
"usage": {
|
| 541 |
+
"input": 1328,
|
| 542 |
+
"output": 13,
|
| 543 |
+
"cacheRead": 0,
|
| 544 |
+
"cacheWrite": 0,
|
| 545 |
+
"totalTokens": 1341,
|
| 546 |
+
"cost": {
|
| 547 |
+
"input": 0,
|
| 548 |
+
"output": 0,
|
| 549 |
+
"cacheRead": 0,
|
| 550 |
+
"cacheWrite": 0,
|
| 551 |
+
"total": 0
|
| 552 |
+
}
|
| 553 |
+
}
|
| 554 |
+
}
|
| 555 |
+
]
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"turn": 7,
|
| 559 |
+
"elapsedMs": 10440,
|
| 560 |
+
"prompt": "Write render-notes.md with a Markdown heading Dark mode, a two-item list about padding and contrast, and a fenced bash code block containing cat todo. Then read the file.",
|
| 561 |
+
"messages": [
|
| 562 |
+
{
|
| 563 |
+
"role": "user",
|
| 564 |
+
"content": [
|
| 565 |
+
{
|
| 566 |
+
"type": "text",
|
| 567 |
+
"text": "Write render-notes.md with a Markdown heading Dark mode, a two-item list about padding and contrast, and a fenced bash code block containing cat todo. Then read the file."
|
| 568 |
+
}
|
| 569 |
+
],
|
| 570 |
+
"timestamp": 1789205302582
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"role": "assistant",
|
| 574 |
+
"api": "minicpm-webgpu",
|
| 575 |
+
"provider": "browser",
|
| 576 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 577 |
+
"timestamp": 1789205302582,
|
| 578 |
+
"content": [
|
| 579 |
+
{
|
| 580 |
+
"type": "toolCall",
|
| 581 |
+
"id": "528f2f21-237b-42e3-a5d8-15345873c3d4",
|
| 582 |
+
"name": "write",
|
| 583 |
+
"arguments": {
|
| 584 |
+
"path": "render-notes.md",
|
| 585 |
+
"content": "# Dark mode\n\n- padding\n- contrast\n\n```bash\ncat todo\n```\n"
|
| 586 |
+
}
|
| 587 |
+
}
|
| 588 |
+
],
|
| 589 |
+
"stopReason": "toolUse",
|
| 590 |
+
"usage": {
|
| 591 |
+
"input": 1391,
|
| 592 |
+
"output": 46,
|
| 593 |
+
"cacheRead": 0,
|
| 594 |
+
"cacheWrite": 0,
|
| 595 |
+
"totalTokens": 1437,
|
| 596 |
+
"cost": {
|
| 597 |
+
"input": 0,
|
| 598 |
+
"output": 0,
|
| 599 |
+
"cacheRead": 0,
|
| 600 |
+
"cacheWrite": 0,
|
| 601 |
+
"total": 0
|
| 602 |
+
}
|
| 603 |
+
}
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"role": "toolResult",
|
| 607 |
+
"toolCallId": "528f2f21-237b-42e3-a5d8-15345873c3d4",
|
| 608 |
+
"toolName": "write",
|
| 609 |
+
"content": [
|
| 610 |
+
{
|
| 611 |
+
"type": "text",
|
| 612 |
+
"text": "Wrote /workspace/render-notes.md"
|
| 613 |
+
}
|
| 614 |
+
],
|
| 615 |
+
"details": {},
|
| 616 |
+
"isError": false,
|
| 617 |
+
"timestamp": 1789205307116
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"role": "assistant",
|
| 621 |
+
"api": "minicpm-webgpu",
|
| 622 |
+
"provider": "browser",
|
| 623 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 624 |
+
"timestamp": 1789205307116,
|
| 625 |
+
"content": [
|
| 626 |
+
{
|
| 627 |
+
"type": "toolCall",
|
| 628 |
+
"id": "fea63e6e-300b-4a9e-a6a1-507f97caa4d3",
|
| 629 |
+
"name": "read",
|
| 630 |
+
"arguments": {
|
| 631 |
+
"path": "render-notes.md"
|
| 632 |
+
}
|
| 633 |
+
}
|
| 634 |
+
],
|
| 635 |
+
"stopReason": "toolUse",
|
| 636 |
+
"usage": {
|
| 637 |
+
"input": 1475,
|
| 638 |
+
"output": 17,
|
| 639 |
+
"cacheRead": 0,
|
| 640 |
+
"cacheWrite": 0,
|
| 641 |
+
"totalTokens": 1492,
|
| 642 |
+
"cost": {
|
| 643 |
+
"input": 0,
|
| 644 |
+
"output": 0,
|
| 645 |
+
"cacheRead": 0,
|
| 646 |
+
"cacheWrite": 0,
|
| 647 |
+
"total": 0
|
| 648 |
+
}
|
| 649 |
+
}
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"role": "toolResult",
|
| 653 |
+
"toolCallId": "fea63e6e-300b-4a9e-a6a1-507f97caa4d3",
|
| 654 |
+
"toolName": "read",
|
| 655 |
+
"content": [
|
| 656 |
+
{
|
| 657 |
+
"type": "text",
|
| 658 |
+
"text": "# Dark mode\n\n- padding\n- contrast\n\n```bash\ncat todo\n```\n"
|
| 659 |
+
}
|
| 660 |
+
],
|
| 661 |
+
"details": {},
|
| 662 |
+
"isError": false,
|
| 663 |
+
"timestamp": 1789205310073
|
| 664 |
+
},
|
| 665 |
+
{
|
| 666 |
+
"role": "assistant",
|
| 667 |
+
"api": "minicpm-webgpu",
|
| 668 |
+
"provider": "browser",
|
| 669 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 670 |
+
"timestamp": 1789205310073,
|
| 671 |
+
"content": [
|
| 672 |
+
{
|
| 673 |
+
"type": "text",
|
| 674 |
+
"text": "Done."
|
| 675 |
+
}
|
| 676 |
+
],
|
| 677 |
+
"stopReason": "stop",
|
| 678 |
+
"usage": {
|
| 679 |
+
"input": 1541,
|
| 680 |
+
"output": 3,
|
| 681 |
+
"cacheRead": 0,
|
| 682 |
+
"cacheWrite": 0,
|
| 683 |
+
"totalTokens": 1544,
|
| 684 |
+
"cost": {
|
| 685 |
+
"input": 0,
|
| 686 |
+
"output": 0,
|
| 687 |
+
"cacheRead": 0,
|
| 688 |
+
"cacheWrite": 0,
|
| 689 |
+
"total": 0
|
| 690 |
+
}
|
| 691 |
+
}
|
| 692 |
+
}
|
| 693 |
+
]
|
| 694 |
+
},
|
| 695 |
+
{
|
| 696 |
+
"turn": 8,
|
| 697 |
+
"elapsedMs": 12966,
|
| 698 |
+
"prompt": "Read render-missing.txt using the read tool. If missing, write exactly Recovered into it, then read it again.",
|
| 699 |
+
"messages": [
|
| 700 |
+
{
|
| 701 |
+
"role": "user",
|
| 702 |
+
"content": [
|
| 703 |
+
{
|
| 704 |
+
"type": "text",
|
| 705 |
+
"text": "Read render-missing.txt using the read tool. If missing, write exactly Recovered into it, then read it again."
|
| 706 |
+
}
|
| 707 |
+
],
|
| 708 |
+
"timestamp": 1789205312966
|
| 709 |
+
},
|
| 710 |
+
{
|
| 711 |
+
"role": "assistant",
|
| 712 |
+
"api": "minicpm-webgpu",
|
| 713 |
+
"provider": "browser",
|
| 714 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 715 |
+
"timestamp": 1789205312966,
|
| 716 |
+
"content": [
|
| 717 |
+
{
|
| 718 |
+
"type": "toolCall",
|
| 719 |
+
"id": "5bfd77e3-9ee4-4c87-9757-458ea1c11211",
|
| 720 |
+
"name": "read",
|
| 721 |
+
"arguments": {
|
| 722 |
+
"path": "render-missing.txt"
|
| 723 |
+
}
|
| 724 |
+
}
|
| 725 |
+
],
|
| 726 |
+
"stopReason": "toolUse",
|
| 727 |
+
"usage": {
|
| 728 |
+
"input": 1582,
|
| 729 |
+
"output": 17,
|
| 730 |
+
"cacheRead": 0,
|
| 731 |
+
"cacheWrite": 0,
|
| 732 |
+
"totalTokens": 1599,
|
| 733 |
+
"cost": {
|
| 734 |
+
"input": 0,
|
| 735 |
+
"output": 0,
|
| 736 |
+
"cacheRead": 0,
|
| 737 |
+
"cacheWrite": 0,
|
| 738 |
+
"total": 0
|
| 739 |
+
}
|
| 740 |
+
}
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"role": "toolResult",
|
| 744 |
+
"toolCallId": "5bfd77e3-9ee4-4c87-9757-458ea1c11211",
|
| 745 |
+
"toolName": "read",
|
| 746 |
+
"content": [
|
| 747 |
+
{
|
| 748 |
+
"type": "text",
|
| 749 |
+
"text": "ENOENT: no such file or directory, open '/workspace/render-missing.txt'"
|
| 750 |
+
}
|
| 751 |
+
],
|
| 752 |
+
"details": {},
|
| 753 |
+
"isError": true,
|
| 754 |
+
"timestamp": 1789205316008
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"role": "assistant",
|
| 758 |
+
"api": "minicpm-webgpu",
|
| 759 |
+
"provider": "browser",
|
| 760 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 761 |
+
"timestamp": 1789205316008,
|
| 762 |
+
"content": [
|
| 763 |
+
{
|
| 764 |
+
"type": "toolCall",
|
| 765 |
+
"id": "39124b16-8600-4258-94ee-22b74b39afec",
|
| 766 |
+
"name": "write",
|
| 767 |
+
"arguments": {
|
| 768 |
+
"path": "render-missing.txt",
|
| 769 |
+
"content": "Recovered"
|
| 770 |
+
}
|
| 771 |
+
}
|
| 772 |
+
],
|
| 773 |
+
"stopReason": "toolUse",
|
| 774 |
+
"usage": {
|
| 775 |
+
"input": 1646,
|
| 776 |
+
"output": 25,
|
| 777 |
+
"cacheRead": 0,
|
| 778 |
+
"cacheWrite": 0,
|
| 779 |
+
"totalTokens": 1671,
|
| 780 |
+
"cost": {
|
| 781 |
+
"input": 0,
|
| 782 |
+
"output": 0,
|
| 783 |
+
"cacheRead": 0,
|
| 784 |
+
"cacheWrite": 0,
|
| 785 |
+
"total": 0
|
| 786 |
+
}
|
| 787 |
+
}
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"role": "toolResult",
|
| 791 |
+
"toolCallId": "39124b16-8600-4258-94ee-22b74b39afec",
|
| 792 |
+
"toolName": "write",
|
| 793 |
+
"content": [
|
| 794 |
+
{
|
| 795 |
+
"type": "text",
|
| 796 |
+
"text": "Wrote /workspace/render-missing.txt"
|
| 797 |
+
}
|
| 798 |
+
],
|
| 799 |
+
"details": {},
|
| 800 |
+
"isError": false,
|
| 801 |
+
"timestamp": 1789205319799
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"role": "assistant",
|
| 805 |
+
"api": "minicpm-webgpu",
|
| 806 |
+
"provider": "browser",
|
| 807 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 808 |
+
"timestamp": 1789205319799,
|
| 809 |
+
"content": [
|
| 810 |
+
{
|
| 811 |
+
"type": "toolCall",
|
| 812 |
+
"id": "e4d33b3e-6c39-4dfe-ab86-9db7856802a7",
|
| 813 |
+
"name": "read",
|
| 814 |
+
"arguments": {
|
| 815 |
+
"path": "render-missing.txt"
|
| 816 |
+
}
|
| 817 |
+
}
|
| 818 |
+
],
|
| 819 |
+
"stopReason": "toolUse",
|
| 820 |
+
"usage": {
|
| 821 |
+
"input": 1709,
|
| 822 |
+
"output": 17,
|
| 823 |
+
"cacheRead": 0,
|
| 824 |
+
"cacheWrite": 0,
|
| 825 |
+
"totalTokens": 1726,
|
| 826 |
+
"cost": {
|
| 827 |
+
"input": 0,
|
| 828 |
+
"output": 0,
|
| 829 |
+
"cacheRead": 0,
|
| 830 |
+
"cacheWrite": 0,
|
| 831 |
+
"total": 0
|
| 832 |
+
}
|
| 833 |
+
}
|
| 834 |
+
},
|
| 835 |
+
{
|
| 836 |
+
"role": "toolResult",
|
| 837 |
+
"toolCallId": "e4d33b3e-6c39-4dfe-ab86-9db7856802a7",
|
| 838 |
+
"toolName": "read",
|
| 839 |
+
"content": [
|
| 840 |
+
{
|
| 841 |
+
"type": "text",
|
| 842 |
+
"text": "Recovered"
|
| 843 |
+
}
|
| 844 |
+
],
|
| 845 |
+
"details": {},
|
| 846 |
+
"isError": false,
|
| 847 |
+
"timestamp": 1789205322936
|
| 848 |
+
},
|
| 849 |
+
{
|
| 850 |
+
"role": "assistant",
|
| 851 |
+
"api": "minicpm-webgpu",
|
| 852 |
+
"provider": "browser",
|
| 853 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 854 |
+
"timestamp": 1789205322936,
|
| 855 |
+
"content": [
|
| 856 |
+
{
|
| 857 |
+
"type": "text",
|
| 858 |
+
"text": "Done."
|
| 859 |
+
}
|
| 860 |
+
],
|
| 861 |
+
"stopReason": "stop",
|
| 862 |
+
"usage": {
|
| 863 |
+
"input": 1757,
|
| 864 |
+
"output": 3,
|
| 865 |
+
"cacheRead": 0,
|
| 866 |
+
"cacheWrite": 0,
|
| 867 |
+
"totalTokens": 1760,
|
| 868 |
+
"cost": {
|
| 869 |
+
"input": 0,
|
| 870 |
+
"output": 0,
|
| 871 |
+
"cacheRead": 0,
|
| 872 |
+
"cacheWrite": 0,
|
| 873 |
+
"total": 0
|
| 874 |
+
}
|
| 875 |
+
}
|
| 876 |
+
}
|
| 877 |
+
]
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"turn": 9,
|
| 881 |
+
"elapsedMs": 7449,
|
| 882 |
+
"prompt": "Run bash to print todo and render-missing.txt, then count the lines in numbers.txt.",
|
| 883 |
+
"messages": [
|
| 884 |
+
{
|
| 885 |
+
"role": "user",
|
| 886 |
+
"content": [
|
| 887 |
+
{
|
| 888 |
+
"type": "text",
|
| 889 |
+
"text": "Run bash to print todo and render-missing.txt, then count the lines in numbers.txt."
|
| 890 |
+
}
|
| 891 |
+
],
|
| 892 |
+
"timestamp": 1789205325898
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"role": "assistant",
|
| 896 |
+
"api": "minicpm-webgpu",
|
| 897 |
+
"provider": "browser",
|
| 898 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 899 |
+
"timestamp": 1789205325899,
|
| 900 |
+
"content": [
|
| 901 |
+
{
|
| 902 |
+
"type": "toolCall",
|
| 903 |
+
"id": "9684357e-804c-4764-9b30-6aff99da27f1",
|
| 904 |
+
"name": "bash",
|
| 905 |
+
"arguments": {
|
| 906 |
+
"command": "cat todo && echo \"---\" && cat render-missing.txt && echo \"---\" && wc -l numbers.txt"
|
| 907 |
+
}
|
| 908 |
+
}
|
| 909 |
+
],
|
| 910 |
+
"stopReason": "toolUse",
|
| 911 |
+
"usage": {
|
| 912 |
+
"input": 1792,
|
| 913 |
+
"output": 44,
|
| 914 |
+
"cacheRead": 0,
|
| 915 |
+
"cacheWrite": 0,
|
| 916 |
+
"totalTokens": 1836,
|
| 917 |
+
"cost": {
|
| 918 |
+
"input": 0,
|
| 919 |
+
"output": 0,
|
| 920 |
+
"cacheRead": 0,
|
| 921 |
+
"cacheWrite": 0,
|
| 922 |
+
"total": 0
|
| 923 |
+
}
|
| 924 |
+
}
|
| 925 |
+
},
|
| 926 |
+
{
|
| 927 |
+
"role": "toolResult",
|
| 928 |
+
"toolCallId": "9684357e-804c-4764-9b30-6aff99da27f1",
|
| 929 |
+
"toolName": "bash",
|
| 930 |
+
"content": [
|
| 931 |
+
{
|
| 932 |
+
"type": "text",
|
| 933 |
+
"text": "# todo\n- Check dark mode\n---\nRecovered---\n40 numbers.txt\n\nExit code: 0"
|
| 934 |
+
}
|
| 935 |
+
],
|
| 936 |
+
"details": {
|
| 937 |
+
"exitCode": 0
|
| 938 |
+
},
|
| 939 |
+
"isError": false,
|
| 940 |
+
"timestamp": 1789205330275
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"role": "assistant",
|
| 944 |
+
"api": "minicpm-webgpu",
|
| 945 |
+
"provider": "browser",
|
| 946 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 947 |
+
"timestamp": 1789205330275,
|
| 948 |
+
"content": [
|
| 949 |
+
{
|
| 950 |
+
"type": "text",
|
| 951 |
+
"text": "Done."
|
| 952 |
+
}
|
| 953 |
+
],
|
| 954 |
+
"stopReason": "stop",
|
| 955 |
+
"usage": {
|
| 956 |
+
"input": 1890,
|
| 957 |
+
"output": 3,
|
| 958 |
+
"cacheRead": 0,
|
| 959 |
+
"cacheWrite": 0,
|
| 960 |
+
"totalTokens": 1893,
|
| 961 |
+
"cost": {
|
| 962 |
+
"input": 0,
|
| 963 |
+
"output": 0,
|
| 964 |
+
"cacheRead": 0,
|
| 965 |
+
"cacheWrite": 0,
|
| 966 |
+
"total": 0
|
| 967 |
+
}
|
| 968 |
+
}
|
| 969 |
+
}
|
| 970 |
+
]
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"turn": 10,
|
| 974 |
+
"elapsedMs": 5562,
|
| 975 |
+
"prompt": "Summarize the files we created in three short Markdown bullets. No tools needed.",
|
| 976 |
+
"messages": [
|
| 977 |
+
{
|
| 978 |
+
"role": "user",
|
| 979 |
+
"content": [
|
| 980 |
+
{
|
| 981 |
+
"type": "text",
|
| 982 |
+
"text": "Summarize the files we created in three short Markdown bullets. No tools needed."
|
| 983 |
+
}
|
| 984 |
+
],
|
| 985 |
+
"timestamp": 1789205333365
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"role": "assistant",
|
| 989 |
+
"api": "minicpm-webgpu",
|
| 990 |
+
"provider": "browser",
|
| 991 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 992 |
+
"timestamp": 1789205333365,
|
| 993 |
+
"content": [
|
| 994 |
+
{
|
| 995 |
+
"type": "text",
|
| 996 |
+
"text": "- todo: a todo list with dark mode check\n- render-notes.md: notes about dark mode with a bash code block\n- numbers.txt: a list of numbers from 1 to 40\n- render-missing.txt: recovered file with the word \"Recovered\""
|
| 997 |
+
}
|
| 998 |
+
],
|
| 999 |
+
"stopReason": "stop",
|
| 1000 |
+
"usage": {
|
| 1001 |
+
"input": 1924,
|
| 1002 |
+
"output": 58,
|
| 1003 |
+
"cacheRead": 0,
|
| 1004 |
+
"cacheWrite": 0,
|
| 1005 |
+
"totalTokens": 1982,
|
| 1006 |
+
"cost": {
|
| 1007 |
+
"input": 0,
|
| 1008 |
+
"output": 0,
|
| 1009 |
+
"cacheRead": 0,
|
| 1010 |
+
"cacheWrite": 0,
|
| 1011 |
+
"total": 0
|
| 1012 |
+
}
|
| 1013 |
+
}
|
| 1014 |
+
}
|
| 1015 |
+
]
|
| 1016 |
+
}
|
| 1017 |
+
],
|
| 1018 |
+
"errors": [],
|
| 1019 |
+
"finalState": {
|
| 1020 |
+
"version": 1,
|
| 1021 |
+
"files": {
|
| 1022 |
+
"/tmp/revenue.txt": "Notebook 12 5 60\nPencil 30 2 60\nFolder 8 3 24\nTOTAL: 144\n",
|
| 1023 |
+
"/workspace/README.md": "# Browser workspace\n\nPi can read, write, edit, and run shell commands here.\nEverything stays in this browser. Try analyzing sales.csv.\n",
|
| 1024 |
+
"/workspace/hello.sh": "#!/bin/bash\necho \"Hello from Pi\"\n",
|
| 1025 |
+
"/workspace/missing.txt": "Recovered",
|
| 1026 |
+
"/workspace/numbers.txt": "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30\n31\n32\n33\n34\n35\n36\n37\n38\n39\n40\n",
|
| 1027 |
+
"/workspace/render-missing.txt": "Recovered",
|
| 1028 |
+
"/workspace/render-notes.md": "# Dark mode\n\n- padding\n- contrast\n\n```bash\ncat todo\n```\n",
|
| 1029 |
+
"/workspace/report.md": "# Sales Report\n\nTotal revenue from sales.csv is **$144**.\n\n- Notebook: 12 Γ $5 = $60\n- Pencil: 30 Γ $2 = $60\n- Folder: 8 Γ $3 = $24\n",
|
| 1030 |
+
"/workspace/revenue.txt": "Notebook 12 5 -> 12 x 5 = 60\nPencil 30 2 -> 30 x 2 = 60\nFolder 8 3 -> 8 x 3 = 24\nTOTAL REVENUE: 144\n",
|
| 1031 |
+
"/workspace/sales.csv": "product,units,price\nNotebook,12,5\nPencil,30,2\nFolder,8,3\n",
|
| 1032 |
+
"/workspace/secret.txt": "LOCAL-87139c93",
|
| 1033 |
+
"/workspace/todo": "# todo\n- Check dark mode\n",
|
| 1034 |
+
"/workspace/ui-test.txt": "Edited through the file editor"
|
| 1035 |
+
},
|
| 1036 |
+
"entries": [
|
| 1037 |
+
[
|
| 1038 |
+
"/",
|
| 1039 |
+
{
|
| 1040 |
+
"type": "directory",
|
| 1041 |
+
"mode": 493
|
| 1042 |
+
}
|
| 1043 |
+
],
|
| 1044 |
+
[
|
| 1045 |
+
"/tmp",
|
| 1046 |
+
{
|
| 1047 |
+
"type": "directory",
|
| 1048 |
+
"mode": 493
|
| 1049 |
+
}
|
| 1050 |
+
],
|
| 1051 |
+
[
|
| 1052 |
+
"/tmp/revenue.txt",
|
| 1053 |
+
{
|
| 1054 |
+
"type": "file",
|
| 1055 |
+
"base64": "Tm90ZWJvb2sgMTIgNSA2MApQZW5jaWwgMzAgMiA2MApGb2xkZXIgOCAzIDI0ClRPVEFMOiAxNDQK",
|
| 1056 |
+
"mode": 420
|
| 1057 |
+
}
|
| 1058 |
+
],
|
| 1059 |
+
[
|
| 1060 |
+
"/usr",
|
| 1061 |
+
{
|
| 1062 |
+
"type": "directory",
|
| 1063 |
+
"mode": 493
|
| 1064 |
+
}
|
| 1065 |
+
],
|
| 1066 |
+
[
|
| 1067 |
+
"/workspace",
|
| 1068 |
+
{
|
| 1069 |
+
"type": "directory",
|
| 1070 |
+
"mode": 493
|
| 1071 |
+
}
|
| 1072 |
+
],
|
| 1073 |
+
[
|
| 1074 |
+
"/workspace/README.md",
|
| 1075 |
+
{
|
| 1076 |
+
"type": "file",
|
| 1077 |
+
"base64": "IyBCcm93c2VyIHdvcmtzcGFjZQoKUGkgY2FuIHJlYWQsIHdyaXRlLCBlZGl0LCBhbmQgcnVuIHNoZWxsIGNvbW1hbmRzIGhlcmUuCkV2ZXJ5dGhpbmcgc3RheXMgaW4gdGhpcyBicm93c2VyLiBUcnkgYW5hbHl6aW5nIHNhbGVzLmNzdi4K",
|
| 1078 |
+
"mode": 420
|
| 1079 |
+
}
|
| 1080 |
+
],
|
| 1081 |
+
[
|
| 1082 |
+
"/workspace/hello.sh",
|
| 1083 |
+
{
|
| 1084 |
+
"type": "file",
|
| 1085 |
+
"base64": "IyEvYmluL2Jhc2gKZWNobyAiSGVsbG8gZnJvbSBQaSIK",
|
| 1086 |
+
"mode": 493
|
| 1087 |
+
}
|
| 1088 |
+
],
|
| 1089 |
+
[
|
| 1090 |
+
"/workspace/missing.txt",
|
| 1091 |
+
{
|
| 1092 |
+
"type": "file",
|
| 1093 |
+
"base64": "UmVjb3ZlcmVk",
|
| 1094 |
+
"mode": 420
|
| 1095 |
+
}
|
| 1096 |
+
],
|
| 1097 |
+
[
|
| 1098 |
+
"/workspace/numbers.txt",
|
| 1099 |
+
{
|
| 1100 |
+
"type": "file",
|
| 1101 |
+
"base64": "MQoyCjMKNAo1CjYKNwo4CjkKMTAKMTEKMTIKMTMKMTQKMTUKMTYKMTcKMTgKMTkKMjAKMjEKMjIKMjMKMjQKMjUKMjYKMjcKMjgKMjkKMzAKMzEKMzIKMzMKMzQKMzUKMzYKMzcKMzgKMzkKNDAK",
|
| 1102 |
+
"mode": 420
|
| 1103 |
+
}
|
| 1104 |
+
],
|
| 1105 |
+
[
|
| 1106 |
+
"/workspace/render-missing.txt",
|
| 1107 |
+
{
|
| 1108 |
+
"type": "file",
|
| 1109 |
+
"base64": "UmVjb3ZlcmVk",
|
| 1110 |
+
"mode": 420
|
| 1111 |
+
}
|
| 1112 |
+
],
|
| 1113 |
+
[
|
| 1114 |
+
"/workspace/render-notes.md",
|
| 1115 |
+
{
|
| 1116 |
+
"type": "file",
|
| 1117 |
+
"base64": "IyBEYXJrIG1vZGUKCi0gcGFkZGluZwotIGNvbnRyYXN0CgpgYGBiYXNoCmNhdCB0b2RvCmBgYAo=",
|
| 1118 |
+
"mode": 420
|
| 1119 |
+
}
|
| 1120 |
+
],
|
| 1121 |
+
[
|
| 1122 |
+
"/workspace/report.md",
|
| 1123 |
+
{
|
| 1124 |
+
"type": "file",
|
| 1125 |
+
"base64": "IyBTYWxlcyBSZXBvcnQKClRvdGFsIHJldmVudWUgZnJvbSBzYWxlcy5jc3YgaXMgKiokMTQ0KiouCgotIE5vdGVib29rOiAxMiDDlyAkNSA9ICQ2MAotIFBlbmNpbDogMzAgw5cgJDIgPSAkNjAKLSBGb2xkZXI6IDggw5cgJDMgPSAkMjQK",
|
| 1126 |
+
"mode": 420
|
| 1127 |
+
}
|
| 1128 |
+
],
|
| 1129 |
+
[
|
| 1130 |
+
"/workspace/revenue.txt",
|
| 1131 |
+
{
|
| 1132 |
+
"type": "file",
|
| 1133 |
+
"base64": "Tm90ZWJvb2sgMTIgNSAtPiAxMiB4IDUgPSA2MApQZW5jaWwgMzAgMiAtPiAzMCB4IDIgPSA2MApGb2xkZXIgOCAzIC0+IDggeCAzID0gMjQKVE9UQUwgUkVWRU5VRTogMTQ0Cg==",
|
| 1134 |
+
"mode": 420
|
| 1135 |
+
}
|
| 1136 |
+
],
|
| 1137 |
+
[
|
| 1138 |
+
"/workspace/sales.csv",
|
| 1139 |
+
{
|
| 1140 |
+
"type": "file",
|
| 1141 |
+
"base64": "cHJvZHVjdCx1bml0cyxwcmljZQpOb3RlYm9vaywxMiw1ClBlbmNpbCwzMCwyCkZvbGRlciw4LDMK",
|
| 1142 |
+
"mode": 420
|
| 1143 |
+
}
|
| 1144 |
+
],
|
| 1145 |
+
[
|
| 1146 |
+
"/workspace/secret.txt",
|
| 1147 |
+
{
|
| 1148 |
+
"type": "file",
|
| 1149 |
+
"base64": "TE9DQUwtODcxMzljOTM=",
|
| 1150 |
+
"mode": 420
|
| 1151 |
+
}
|
| 1152 |
+
],
|
| 1153 |
+
[
|
| 1154 |
+
"/workspace/todo",
|
| 1155 |
+
{
|
| 1156 |
+
"type": "file",
|
| 1157 |
+
"base64": "IyB0b2RvCi0gQ2hlY2sgZGFyayBtb2RlCg==",
|
| 1158 |
+
"mode": 420
|
| 1159 |
+
}
|
| 1160 |
+
],
|
| 1161 |
+
[
|
| 1162 |
+
"/workspace/ui-test.txt",
|
| 1163 |
+
{
|
| 1164 |
+
"type": "file",
|
| 1165 |
+
"base64": "RWRpdGVkIHRocm91Z2ggdGhlIGZpbGUgZWRpdG9y",
|
| 1166 |
+
"mode": 420
|
| 1167 |
+
}
|
| 1168 |
+
]
|
| 1169 |
+
],
|
| 1170 |
+
"messages": [
|
| 1171 |
+
{
|
| 1172 |
+
"role": "user",
|
| 1173 |
+
"content": [
|
| 1174 |
+
{
|
| 1175 |
+
"type": "text",
|
| 1176 |
+
"text": "Hi! Reply with one short sentence."
|
| 1177 |
+
}
|
| 1178 |
+
],
|
| 1179 |
+
"timestamp": 1789205271652
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"role": "assistant",
|
| 1183 |
+
"api": "minicpm-webgpu",
|
| 1184 |
+
"provider": "browser",
|
| 1185 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1186 |
+
"timestamp": 1789205271653,
|
| 1187 |
+
"content": [
|
| 1188 |
+
{
|
| 1189 |
+
"type": "text",
|
| 1190 |
+
"text": "I'm ready to help."
|
| 1191 |
+
}
|
| 1192 |
+
],
|
| 1193 |
+
"stopReason": "stop",
|
| 1194 |
+
"usage": {
|
| 1195 |
+
"input": 711,
|
| 1196 |
+
"output": 7,
|
| 1197 |
+
"cacheRead": 0,
|
| 1198 |
+
"cacheWrite": 0,
|
| 1199 |
+
"totalTokens": 718,
|
| 1200 |
+
"cost": {
|
| 1201 |
+
"input": 0,
|
| 1202 |
+
"output": 0,
|
| 1203 |
+
"cacheRead": 0,
|
| 1204 |
+
"cacheWrite": 0,
|
| 1205 |
+
"total": 0
|
| 1206 |
+
}
|
| 1207 |
+
}
|
| 1208 |
+
},
|
| 1209 |
+
{
|
| 1210 |
+
"role": "user",
|
| 1211 |
+
"content": [
|
| 1212 |
+
{
|
| 1213 |
+
"type": "text",
|
| 1214 |
+
"text": "Create a file called todo containing exactly \"# todo\" followed by a newline and \"- Check rendering\". Use the write tool."
|
| 1215 |
+
}
|
| 1216 |
+
],
|
| 1217 |
+
"timestamp": 1789205273917
|
| 1218 |
+
},
|
| 1219 |
+
{
|
| 1220 |
+
"role": "assistant",
|
| 1221 |
+
"api": "minicpm-webgpu",
|
| 1222 |
+
"provider": "browser",
|
| 1223 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1224 |
+
"timestamp": 1789205273917,
|
| 1225 |
+
"content": [
|
| 1226 |
+
{
|
| 1227 |
+
"type": "toolCall",
|
| 1228 |
+
"id": "d633481f-cf56-4cc3-8c24-6a030e5b990b",
|
| 1229 |
+
"name": "write",
|
| 1230 |
+
"arguments": {
|
| 1231 |
+
"path": "todo",
|
| 1232 |
+
"content": "# todo\n- Check rendering\n"
|
| 1233 |
+
}
|
| 1234 |
+
}
|
| 1235 |
+
],
|
| 1236 |
+
"stopReason": "toolUse",
|
| 1237 |
+
"usage": {
|
| 1238 |
+
"input": 756,
|
| 1239 |
+
"output": 34,
|
| 1240 |
+
"cacheRead": 0,
|
| 1241 |
+
"cacheWrite": 0,
|
| 1242 |
+
"totalTokens": 790,
|
| 1243 |
+
"cost": {
|
| 1244 |
+
"input": 0,
|
| 1245 |
+
"output": 0,
|
| 1246 |
+
"cacheRead": 0,
|
| 1247 |
+
"cacheWrite": 0,
|
| 1248 |
+
"total": 0
|
| 1249 |
+
}
|
| 1250 |
+
}
|
| 1251 |
+
},
|
| 1252 |
+
{
|
| 1253 |
+
"role": "toolResult",
|
| 1254 |
+
"toolCallId": "d633481f-cf56-4cc3-8c24-6a030e5b990b",
|
| 1255 |
+
"toolName": "write",
|
| 1256 |
+
"content": [
|
| 1257 |
+
{
|
| 1258 |
+
"type": "text",
|
| 1259 |
+
"text": "Wrote /workspace/todo"
|
| 1260 |
+
}
|
| 1261 |
+
],
|
| 1262 |
+
"details": {},
|
| 1263 |
+
"isError": false,
|
| 1264 |
+
"timestamp": 1789205277085
|
| 1265 |
+
},
|
| 1266 |
+
{
|
| 1267 |
+
"role": "assistant",
|
| 1268 |
+
"api": "minicpm-webgpu",
|
| 1269 |
+
"provider": "browser",
|
| 1270 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1271 |
+
"timestamp": 1789205277085,
|
| 1272 |
+
"content": [
|
| 1273 |
+
{
|
| 1274 |
+
"type": "text",
|
| 1275 |
+
"text": "Done."
|
| 1276 |
+
}
|
| 1277 |
+
],
|
| 1278 |
+
"stopReason": "stop",
|
| 1279 |
+
"usage": {
|
| 1280 |
+
"input": 825,
|
| 1281 |
+
"output": 3,
|
| 1282 |
+
"cacheRead": 0,
|
| 1283 |
+
"cacheWrite": 0,
|
| 1284 |
+
"totalTokens": 828,
|
| 1285 |
+
"cost": {
|
| 1286 |
+
"input": 0,
|
| 1287 |
+
"output": 0,
|
| 1288 |
+
"cacheRead": 0,
|
| 1289 |
+
"cacheWrite": 0,
|
| 1290 |
+
"total": 0
|
| 1291 |
+
}
|
| 1292 |
+
}
|
| 1293 |
+
},
|
| 1294 |
+
{
|
| 1295 |
+
"role": "user",
|
| 1296 |
+
"content": [
|
| 1297 |
+
{
|
| 1298 |
+
"type": "text",
|
| 1299 |
+
"text": "Read todo using the read tool and show its contents."
|
| 1300 |
+
}
|
| 1301 |
+
],
|
| 1302 |
+
"timestamp": 1789205278716
|
| 1303 |
+
},
|
| 1304 |
+
{
|
| 1305 |
+
"role": "assistant",
|
| 1306 |
+
"api": "minicpm-webgpu",
|
| 1307 |
+
"provider": "browser",
|
| 1308 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1309 |
+
"timestamp": 1789205278716,
|
| 1310 |
+
"content": [
|
| 1311 |
+
{
|
| 1312 |
+
"type": "toolCall",
|
| 1313 |
+
"id": "dedbeb55-5419-4caa-841f-1a1ec6badd55",
|
| 1314 |
+
"name": "read",
|
| 1315 |
+
"arguments": {
|
| 1316 |
+
"path": "todo"
|
| 1317 |
+
}
|
| 1318 |
+
}
|
| 1319 |
+
],
|
| 1320 |
+
"stopReason": "toolUse",
|
| 1321 |
+
"usage": {
|
| 1322 |
+
"input": 852,
|
| 1323 |
+
"output": 15,
|
| 1324 |
+
"cacheRead": 0,
|
| 1325 |
+
"cacheWrite": 0,
|
| 1326 |
+
"totalTokens": 867,
|
| 1327 |
+
"cost": {
|
| 1328 |
+
"input": 0,
|
| 1329 |
+
"output": 0,
|
| 1330 |
+
"cacheRead": 0,
|
| 1331 |
+
"cacheWrite": 0,
|
| 1332 |
+
"total": 0
|
| 1333 |
+
}
|
| 1334 |
+
}
|
| 1335 |
+
},
|
| 1336 |
+
{
|
| 1337 |
+
"role": "toolResult",
|
| 1338 |
+
"toolCallId": "dedbeb55-5419-4caa-841f-1a1ec6badd55",
|
| 1339 |
+
"toolName": "read",
|
| 1340 |
+
"content": [
|
| 1341 |
+
{
|
| 1342 |
+
"type": "text",
|
| 1343 |
+
"text": "# todo\n- Check rendering\n"
|
| 1344 |
+
}
|
| 1345 |
+
],
|
| 1346 |
+
"details": {},
|
| 1347 |
+
"isError": false,
|
| 1348 |
+
"timestamp": 1789205281058
|
| 1349 |
+
},
|
| 1350 |
+
{
|
| 1351 |
+
"role": "assistant",
|
| 1352 |
+
"api": "minicpm-webgpu",
|
| 1353 |
+
"provider": "browser",
|
| 1354 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1355 |
+
"timestamp": 1789205281058,
|
| 1356 |
+
"content": [
|
| 1357 |
+
{
|
| 1358 |
+
"type": "text",
|
| 1359 |
+
"text": "The file contains \"# todo\" followed by \"- Check rendering\"."
|
| 1360 |
+
}
|
| 1361 |
+
],
|
| 1362 |
+
"stopReason": "stop",
|
| 1363 |
+
"usage": {
|
| 1364 |
+
"input": 902,
|
| 1365 |
+
"output": 13,
|
| 1366 |
+
"cacheRead": 0,
|
| 1367 |
+
"cacheWrite": 0,
|
| 1368 |
+
"totalTokens": 915,
|
| 1369 |
+
"cost": {
|
| 1370 |
+
"input": 0,
|
| 1371 |
+
"output": 0,
|
| 1372 |
+
"cacheRead": 0,
|
| 1373 |
+
"cacheWrite": 0,
|
| 1374 |
+
"total": 0
|
| 1375 |
+
}
|
| 1376 |
+
}
|
| 1377 |
+
},
|
| 1378 |
+
{
|
| 1379 |
+
"role": "user",
|
| 1380 |
+
"content": [
|
| 1381 |
+
{
|
| 1382 |
+
"type": "text",
|
| 1383 |
+
"text": "Use the edit tool on todo to replace Check rendering with Check dark mode. Then read it to verify."
|
| 1384 |
+
}
|
| 1385 |
+
],
|
| 1386 |
+
"timestamp": 1789205283567
|
| 1387 |
+
},
|
| 1388 |
+
{
|
| 1389 |
+
"role": "assistant",
|
| 1390 |
+
"api": "minicpm-webgpu",
|
| 1391 |
+
"provider": "browser",
|
| 1392 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1393 |
+
"timestamp": 1789205283567,
|
| 1394 |
+
"content": [
|
| 1395 |
+
{
|
| 1396 |
+
"type": "toolCall",
|
| 1397 |
+
"id": "6961e309-0f6f-42d5-97ae-dbd3303c1b4e",
|
| 1398 |
+
"name": "edit",
|
| 1399 |
+
"arguments": {
|
| 1400 |
+
"path": "todo",
|
| 1401 |
+
"oldText": "- Check rendering",
|
| 1402 |
+
"newText": "- Check dark mode"
|
| 1403 |
+
}
|
| 1404 |
+
}
|
| 1405 |
+
],
|
| 1406 |
+
"stopReason": "toolUse",
|
| 1407 |
+
"usage": {
|
| 1408 |
+
"input": 949,
|
| 1409 |
+
"output": 34,
|
| 1410 |
+
"cacheRead": 0,
|
| 1411 |
+
"cacheWrite": 0,
|
| 1412 |
+
"totalTokens": 983,
|
| 1413 |
+
"cost": {
|
| 1414 |
+
"input": 0,
|
| 1415 |
+
"output": 0,
|
| 1416 |
+
"cacheRead": 0,
|
| 1417 |
+
"cacheWrite": 0,
|
| 1418 |
+
"total": 0
|
| 1419 |
+
}
|
| 1420 |
+
}
|
| 1421 |
+
},
|
| 1422 |
+
{
|
| 1423 |
+
"role": "toolResult",
|
| 1424 |
+
"toolCallId": "6961e309-0f6f-42d5-97ae-dbd3303c1b4e",
|
| 1425 |
+
"toolName": "edit",
|
| 1426 |
+
"content": [
|
| 1427 |
+
{
|
| 1428 |
+
"type": "text",
|
| 1429 |
+
"text": "Edited /workspace/todo"
|
| 1430 |
+
}
|
| 1431 |
+
],
|
| 1432 |
+
"details": {},
|
| 1433 |
+
"isError": false,
|
| 1434 |
+
"timestamp": 1789205286879
|
| 1435 |
+
},
|
| 1436 |
+
{
|
| 1437 |
+
"role": "assistant",
|
| 1438 |
+
"api": "minicpm-webgpu",
|
| 1439 |
+
"provider": "browser",
|
| 1440 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1441 |
+
"timestamp": 1789205286879,
|
| 1442 |
+
"content": [
|
| 1443 |
+
{
|
| 1444 |
+
"type": "toolCall",
|
| 1445 |
+
"id": "334dd326-927a-4915-ac38-0cb011174b69",
|
| 1446 |
+
"name": "read",
|
| 1447 |
+
"arguments": {
|
| 1448 |
+
"path": "todo"
|
| 1449 |
+
}
|
| 1450 |
+
}
|
| 1451 |
+
],
|
| 1452 |
+
"stopReason": "toolUse",
|
| 1453 |
+
"usage": {
|
| 1454 |
+
"input": 1017,
|
| 1455 |
+
"output": 15,
|
| 1456 |
+
"cacheRead": 0,
|
| 1457 |
+
"cacheWrite": 0,
|
| 1458 |
+
"totalTokens": 1032,
|
| 1459 |
+
"cost": {
|
| 1460 |
+
"input": 0,
|
| 1461 |
+
"output": 0,
|
| 1462 |
+
"cacheRead": 0,
|
| 1463 |
+
"cacheWrite": 0,
|
| 1464 |
+
"total": 0
|
| 1465 |
+
}
|
| 1466 |
+
}
|
| 1467 |
+
},
|
| 1468 |
+
{
|
| 1469 |
+
"role": "toolResult",
|
| 1470 |
+
"toolCallId": "334dd326-927a-4915-ac38-0cb011174b69",
|
| 1471 |
+
"toolName": "read",
|
| 1472 |
+
"content": [
|
| 1473 |
+
{
|
| 1474 |
+
"type": "text",
|
| 1475 |
+
"text": "# todo\n- Check dark mode\n"
|
| 1476 |
+
}
|
| 1477 |
+
],
|
| 1478 |
+
"details": {},
|
| 1479 |
+
"isError": false,
|
| 1480 |
+
"timestamp": 1789205289344
|
| 1481 |
+
},
|
| 1482 |
+
{
|
| 1483 |
+
"role": "assistant",
|
| 1484 |
+
"api": "minicpm-webgpu",
|
| 1485 |
+
"provider": "browser",
|
| 1486 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1487 |
+
"timestamp": 1789205289344,
|
| 1488 |
+
"content": [
|
| 1489 |
+
{
|
| 1490 |
+
"type": "text",
|
| 1491 |
+
"text": "Done."
|
| 1492 |
+
}
|
| 1493 |
+
],
|
| 1494 |
+
"stopReason": "stop",
|
| 1495 |
+
"usage": {
|
| 1496 |
+
"input": 1068,
|
| 1497 |
+
"output": 3,
|
| 1498 |
+
"cacheRead": 0,
|
| 1499 |
+
"cacheWrite": 0,
|
| 1500 |
+
"totalTokens": 1071,
|
| 1501 |
+
"cost": {
|
| 1502 |
+
"input": 0,
|
| 1503 |
+
"output": 0,
|
| 1504 |
+
"cacheRead": 0,
|
| 1505 |
+
"cacheWrite": 0,
|
| 1506 |
+
"total": 0
|
| 1507 |
+
}
|
| 1508 |
+
}
|
| 1509 |
+
},
|
| 1510 |
+
{
|
| 1511 |
+
"role": "user",
|
| 1512 |
+
"content": [
|
| 1513 |
+
{
|
| 1514 |
+
"type": "text",
|
| 1515 |
+
"text": "Run this bash command: seq 1 40 > numbers.txt; wc -l numbers.txt"
|
| 1516 |
+
}
|
| 1517 |
+
],
|
| 1518 |
+
"timestamp": 1789205291217
|
| 1519 |
+
},
|
| 1520 |
+
{
|
| 1521 |
+
"role": "assistant",
|
| 1522 |
+
"api": "minicpm-webgpu",
|
| 1523 |
+
"provider": "browser",
|
| 1524 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1525 |
+
"timestamp": 1789205291217,
|
| 1526 |
+
"content": [
|
| 1527 |
+
{
|
| 1528 |
+
"type": "toolCall",
|
| 1529 |
+
"id": "1bd99dbb-d324-4828-beb5-83f457199736",
|
| 1530 |
+
"name": "bash",
|
| 1531 |
+
"arguments": {
|
| 1532 |
+
"command": "seq 1 40 > numbers.txt; wc -l numbers.txt"
|
| 1533 |
+
}
|
| 1534 |
+
}
|
| 1535 |
+
],
|
| 1536 |
+
"stopReason": "toolUse",
|
| 1537 |
+
"usage": {
|
| 1538 |
+
"input": 1104,
|
| 1539 |
+
"output": 28,
|
| 1540 |
+
"cacheRead": 0,
|
| 1541 |
+
"cacheWrite": 0,
|
| 1542 |
+
"totalTokens": 1132,
|
| 1543 |
+
"cost": {
|
| 1544 |
+
"input": 0,
|
| 1545 |
+
"output": 0,
|
| 1546 |
+
"cacheRead": 0,
|
| 1547 |
+
"cacheWrite": 0,
|
| 1548 |
+
"total": 0
|
| 1549 |
+
}
|
| 1550 |
+
}
|
| 1551 |
+
},
|
| 1552 |
+
{
|
| 1553 |
+
"role": "toolResult",
|
| 1554 |
+
"toolCallId": "1bd99dbb-d324-4828-beb5-83f457199736",
|
| 1555 |
+
"toolName": "bash",
|
| 1556 |
+
"content": [
|
| 1557 |
+
{
|
| 1558 |
+
"type": "text",
|
| 1559 |
+
"text": "40 numbers.txt\n\nExit code: 0"
|
| 1560 |
+
}
|
| 1561 |
+
],
|
| 1562 |
+
"details": {
|
| 1563 |
+
"exitCode": 0
|
| 1564 |
+
},
|
| 1565 |
+
"isError": false,
|
| 1566 |
+
"timestamp": 1789205294513
|
| 1567 |
+
},
|
| 1568 |
+
{
|
| 1569 |
+
"role": "assistant",
|
| 1570 |
+
"api": "minicpm-webgpu",
|
| 1571 |
+
"provider": "browser",
|
| 1572 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1573 |
+
"timestamp": 1789205294513,
|
| 1574 |
+
"content": [
|
| 1575 |
+
{
|
| 1576 |
+
"type": "text",
|
| 1577 |
+
"text": "Done."
|
| 1578 |
+
}
|
| 1579 |
+
],
|
| 1580 |
+
"stopReason": "stop",
|
| 1581 |
+
"usage": {
|
| 1582 |
+
"input": 1171,
|
| 1583 |
+
"output": 3,
|
| 1584 |
+
"cacheRead": 0,
|
| 1585 |
+
"cacheWrite": 0,
|
| 1586 |
+
"totalTokens": 1174,
|
| 1587 |
+
"cost": {
|
| 1588 |
+
"input": 0,
|
| 1589 |
+
"output": 0,
|
| 1590 |
+
"cacheRead": 0,
|
| 1591 |
+
"cacheWrite": 0,
|
| 1592 |
+
"total": 0
|
| 1593 |
+
}
|
| 1594 |
+
}
|
| 1595 |
+
},
|
| 1596 |
+
{
|
| 1597 |
+
"role": "user",
|
| 1598 |
+
"content": [
|
| 1599 |
+
{
|
| 1600 |
+
"type": "text",
|
| 1601 |
+
"text": "Read numbers.txt using the read tool. Tell me only its first and last numbers."
|
| 1602 |
+
}
|
| 1603 |
+
],
|
| 1604 |
+
"timestamp": 1789205297018
|
| 1605 |
+
},
|
| 1606 |
+
{
|
| 1607 |
+
"role": "assistant",
|
| 1608 |
+
"api": "minicpm-webgpu",
|
| 1609 |
+
"provider": "browser",
|
| 1610 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1611 |
+
"timestamp": 1789205297018,
|
| 1612 |
+
"content": [
|
| 1613 |
+
{
|
| 1614 |
+
"type": "toolCall",
|
| 1615 |
+
"id": "964ed0bd-cacd-40aa-a93a-db3c17bdde6c",
|
| 1616 |
+
"name": "read",
|
| 1617 |
+
"arguments": {
|
| 1618 |
+
"path": "numbers.txt"
|
| 1619 |
+
}
|
| 1620 |
+
}
|
| 1621 |
+
],
|
| 1622 |
+
"stopReason": "toolUse",
|
| 1623 |
+
"usage": {
|
| 1624 |
+
"input": 1204,
|
| 1625 |
+
"output": 15,
|
| 1626 |
+
"cacheRead": 0,
|
| 1627 |
+
"cacheWrite": 0,
|
| 1628 |
+
"totalTokens": 1219,
|
| 1629 |
+
"cost": {
|
| 1630 |
+
"input": 0,
|
| 1631 |
+
"output": 0,
|
| 1632 |
+
"cacheRead": 0,
|
| 1633 |
+
"cacheWrite": 0,
|
| 1634 |
+
"total": 0
|
| 1635 |
+
}
|
| 1636 |
+
}
|
| 1637 |
+
},
|
| 1638 |
+
{
|
| 1639 |
+
"role": "toolResult",
|
| 1640 |
+
"toolCallId": "964ed0bd-cacd-40aa-a93a-db3c17bdde6c",
|
| 1641 |
+
"toolName": "read",
|
| 1642 |
+
"content": [
|
| 1643 |
+
{
|
| 1644 |
+
"type": "text",
|
| 1645 |
+
"text": "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30\n31\n32\n33\n34\n35\n36\n37\n38\n39\n40\n"
|
| 1646 |
+
}
|
| 1647 |
+
],
|
| 1648 |
+
"details": {},
|
| 1649 |
+
"isError": false,
|
| 1650 |
+
"timestamp": 1789205299673
|
| 1651 |
+
},
|
| 1652 |
+
{
|
| 1653 |
+
"role": "assistant",
|
| 1654 |
+
"api": "minicpm-webgpu",
|
| 1655 |
+
"provider": "browser",
|
| 1656 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1657 |
+
"timestamp": 1789205299673,
|
| 1658 |
+
"content": [
|
| 1659 |
+
{
|
| 1660 |
+
"type": "text",
|
| 1661 |
+
"text": "First number: 1, Last number: 40."
|
| 1662 |
+
}
|
| 1663 |
+
],
|
| 1664 |
+
"stopReason": "stop",
|
| 1665 |
+
"usage": {
|
| 1666 |
+
"input": 1328,
|
| 1667 |
+
"output": 13,
|
| 1668 |
+
"cacheRead": 0,
|
| 1669 |
+
"cacheWrite": 0,
|
| 1670 |
+
"totalTokens": 1341,
|
| 1671 |
+
"cost": {
|
| 1672 |
+
"input": 0,
|
| 1673 |
+
"output": 0,
|
| 1674 |
+
"cacheRead": 0,
|
| 1675 |
+
"cacheWrite": 0,
|
| 1676 |
+
"total": 0
|
| 1677 |
+
}
|
| 1678 |
+
}
|
| 1679 |
+
},
|
| 1680 |
+
{
|
| 1681 |
+
"role": "user",
|
| 1682 |
+
"content": [
|
| 1683 |
+
{
|
| 1684 |
+
"type": "text",
|
| 1685 |
+
"text": "Write render-notes.md with a Markdown heading Dark mode, a two-item list about padding and contrast, and a fenced bash code block containing cat todo. Then read the file."
|
| 1686 |
+
}
|
| 1687 |
+
],
|
| 1688 |
+
"timestamp": 1789205302582
|
| 1689 |
+
},
|
| 1690 |
+
{
|
| 1691 |
+
"role": "assistant",
|
| 1692 |
+
"api": "minicpm-webgpu",
|
| 1693 |
+
"provider": "browser",
|
| 1694 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1695 |
+
"timestamp": 1789205302582,
|
| 1696 |
+
"content": [
|
| 1697 |
+
{
|
| 1698 |
+
"type": "toolCall",
|
| 1699 |
+
"id": "528f2f21-237b-42e3-a5d8-15345873c3d4",
|
| 1700 |
+
"name": "write",
|
| 1701 |
+
"arguments": {
|
| 1702 |
+
"path": "render-notes.md",
|
| 1703 |
+
"content": "# Dark mode\n\n- padding\n- contrast\n\n```bash\ncat todo\n```\n"
|
| 1704 |
+
}
|
| 1705 |
+
}
|
| 1706 |
+
],
|
| 1707 |
+
"stopReason": "toolUse",
|
| 1708 |
+
"usage": {
|
| 1709 |
+
"input": 1391,
|
| 1710 |
+
"output": 46,
|
| 1711 |
+
"cacheRead": 0,
|
| 1712 |
+
"cacheWrite": 0,
|
| 1713 |
+
"totalTokens": 1437,
|
| 1714 |
+
"cost": {
|
| 1715 |
+
"input": 0,
|
| 1716 |
+
"output": 0,
|
| 1717 |
+
"cacheRead": 0,
|
| 1718 |
+
"cacheWrite": 0,
|
| 1719 |
+
"total": 0
|
| 1720 |
+
}
|
| 1721 |
+
}
|
| 1722 |
+
},
|
| 1723 |
+
{
|
| 1724 |
+
"role": "toolResult",
|
| 1725 |
+
"toolCallId": "528f2f21-237b-42e3-a5d8-15345873c3d4",
|
| 1726 |
+
"toolName": "write",
|
| 1727 |
+
"content": [
|
| 1728 |
+
{
|
| 1729 |
+
"type": "text",
|
| 1730 |
+
"text": "Wrote /workspace/render-notes.md"
|
| 1731 |
+
}
|
| 1732 |
+
],
|
| 1733 |
+
"details": {},
|
| 1734 |
+
"isError": false,
|
| 1735 |
+
"timestamp": 1789205307116
|
| 1736 |
+
},
|
| 1737 |
+
{
|
| 1738 |
+
"role": "assistant",
|
| 1739 |
+
"api": "minicpm-webgpu",
|
| 1740 |
+
"provider": "browser",
|
| 1741 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1742 |
+
"timestamp": 1789205307116,
|
| 1743 |
+
"content": [
|
| 1744 |
+
{
|
| 1745 |
+
"type": "toolCall",
|
| 1746 |
+
"id": "fea63e6e-300b-4a9e-a6a1-507f97caa4d3",
|
| 1747 |
+
"name": "read",
|
| 1748 |
+
"arguments": {
|
| 1749 |
+
"path": "render-notes.md"
|
| 1750 |
+
}
|
| 1751 |
+
}
|
| 1752 |
+
],
|
| 1753 |
+
"stopReason": "toolUse",
|
| 1754 |
+
"usage": {
|
| 1755 |
+
"input": 1475,
|
| 1756 |
+
"output": 17,
|
| 1757 |
+
"cacheRead": 0,
|
| 1758 |
+
"cacheWrite": 0,
|
| 1759 |
+
"totalTokens": 1492,
|
| 1760 |
+
"cost": {
|
| 1761 |
+
"input": 0,
|
| 1762 |
+
"output": 0,
|
| 1763 |
+
"cacheRead": 0,
|
| 1764 |
+
"cacheWrite": 0,
|
| 1765 |
+
"total": 0
|
| 1766 |
+
}
|
| 1767 |
+
}
|
| 1768 |
+
},
|
| 1769 |
+
{
|
| 1770 |
+
"role": "toolResult",
|
| 1771 |
+
"toolCallId": "fea63e6e-300b-4a9e-a6a1-507f97caa4d3",
|
| 1772 |
+
"toolName": "read",
|
| 1773 |
+
"content": [
|
| 1774 |
+
{
|
| 1775 |
+
"type": "text",
|
| 1776 |
+
"text": "# Dark mode\n\n- padding\n- contrast\n\n```bash\ncat todo\n```\n"
|
| 1777 |
+
}
|
| 1778 |
+
],
|
| 1779 |
+
"details": {},
|
| 1780 |
+
"isError": false,
|
| 1781 |
+
"timestamp": 1789205310073
|
| 1782 |
+
},
|
| 1783 |
+
{
|
| 1784 |
+
"role": "assistant",
|
| 1785 |
+
"api": "minicpm-webgpu",
|
| 1786 |
+
"provider": "browser",
|
| 1787 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1788 |
+
"timestamp": 1789205310073,
|
| 1789 |
+
"content": [
|
| 1790 |
+
{
|
| 1791 |
+
"type": "text",
|
| 1792 |
+
"text": "Done."
|
| 1793 |
+
}
|
| 1794 |
+
],
|
| 1795 |
+
"stopReason": "stop",
|
| 1796 |
+
"usage": {
|
| 1797 |
+
"input": 1541,
|
| 1798 |
+
"output": 3,
|
| 1799 |
+
"cacheRead": 0,
|
| 1800 |
+
"cacheWrite": 0,
|
| 1801 |
+
"totalTokens": 1544,
|
| 1802 |
+
"cost": {
|
| 1803 |
+
"input": 0,
|
| 1804 |
+
"output": 0,
|
| 1805 |
+
"cacheRead": 0,
|
| 1806 |
+
"cacheWrite": 0,
|
| 1807 |
+
"total": 0
|
| 1808 |
+
}
|
| 1809 |
+
}
|
| 1810 |
+
},
|
| 1811 |
+
{
|
| 1812 |
+
"role": "user",
|
| 1813 |
+
"content": [
|
| 1814 |
+
{
|
| 1815 |
+
"type": "text",
|
| 1816 |
+
"text": "Read render-missing.txt using the read tool. If missing, write exactly Recovered into it, then read it again."
|
| 1817 |
+
}
|
| 1818 |
+
],
|
| 1819 |
+
"timestamp": 1789205312966
|
| 1820 |
+
},
|
| 1821 |
+
{
|
| 1822 |
+
"role": "assistant",
|
| 1823 |
+
"api": "minicpm-webgpu",
|
| 1824 |
+
"provider": "browser",
|
| 1825 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1826 |
+
"timestamp": 1789205312966,
|
| 1827 |
+
"content": [
|
| 1828 |
+
{
|
| 1829 |
+
"type": "toolCall",
|
| 1830 |
+
"id": "5bfd77e3-9ee4-4c87-9757-458ea1c11211",
|
| 1831 |
+
"name": "read",
|
| 1832 |
+
"arguments": {
|
| 1833 |
+
"path": "render-missing.txt"
|
| 1834 |
+
}
|
| 1835 |
+
}
|
| 1836 |
+
],
|
| 1837 |
+
"stopReason": "toolUse",
|
| 1838 |
+
"usage": {
|
| 1839 |
+
"input": 1582,
|
| 1840 |
+
"output": 17,
|
| 1841 |
+
"cacheRead": 0,
|
| 1842 |
+
"cacheWrite": 0,
|
| 1843 |
+
"totalTokens": 1599,
|
| 1844 |
+
"cost": {
|
| 1845 |
+
"input": 0,
|
| 1846 |
+
"output": 0,
|
| 1847 |
+
"cacheRead": 0,
|
| 1848 |
+
"cacheWrite": 0,
|
| 1849 |
+
"total": 0
|
| 1850 |
+
}
|
| 1851 |
+
}
|
| 1852 |
+
},
|
| 1853 |
+
{
|
| 1854 |
+
"role": "toolResult",
|
| 1855 |
+
"toolCallId": "5bfd77e3-9ee4-4c87-9757-458ea1c11211",
|
| 1856 |
+
"toolName": "read",
|
| 1857 |
+
"content": [
|
| 1858 |
+
{
|
| 1859 |
+
"type": "text",
|
| 1860 |
+
"text": "ENOENT: no such file or directory, open '/workspace/render-missing.txt'"
|
| 1861 |
+
}
|
| 1862 |
+
],
|
| 1863 |
+
"details": {},
|
| 1864 |
+
"isError": true,
|
| 1865 |
+
"timestamp": 1789205316008
|
| 1866 |
+
},
|
| 1867 |
+
{
|
| 1868 |
+
"role": "assistant",
|
| 1869 |
+
"api": "minicpm-webgpu",
|
| 1870 |
+
"provider": "browser",
|
| 1871 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1872 |
+
"timestamp": 1789205316008,
|
| 1873 |
+
"content": [
|
| 1874 |
+
{
|
| 1875 |
+
"type": "toolCall",
|
| 1876 |
+
"id": "39124b16-8600-4258-94ee-22b74b39afec",
|
| 1877 |
+
"name": "write",
|
| 1878 |
+
"arguments": {
|
| 1879 |
+
"path": "render-missing.txt",
|
| 1880 |
+
"content": "Recovered"
|
| 1881 |
+
}
|
| 1882 |
+
}
|
| 1883 |
+
],
|
| 1884 |
+
"stopReason": "toolUse",
|
| 1885 |
+
"usage": {
|
| 1886 |
+
"input": 1646,
|
| 1887 |
+
"output": 25,
|
| 1888 |
+
"cacheRead": 0,
|
| 1889 |
+
"cacheWrite": 0,
|
| 1890 |
+
"totalTokens": 1671,
|
| 1891 |
+
"cost": {
|
| 1892 |
+
"input": 0,
|
| 1893 |
+
"output": 0,
|
| 1894 |
+
"cacheRead": 0,
|
| 1895 |
+
"cacheWrite": 0,
|
| 1896 |
+
"total": 0
|
| 1897 |
+
}
|
| 1898 |
+
}
|
| 1899 |
+
},
|
| 1900 |
+
{
|
| 1901 |
+
"role": "toolResult",
|
| 1902 |
+
"toolCallId": "39124b16-8600-4258-94ee-22b74b39afec",
|
| 1903 |
+
"toolName": "write",
|
| 1904 |
+
"content": [
|
| 1905 |
+
{
|
| 1906 |
+
"type": "text",
|
| 1907 |
+
"text": "Wrote /workspace/render-missing.txt"
|
| 1908 |
+
}
|
| 1909 |
+
],
|
| 1910 |
+
"details": {},
|
| 1911 |
+
"isError": false,
|
| 1912 |
+
"timestamp": 1789205319799
|
| 1913 |
+
},
|
| 1914 |
+
{
|
| 1915 |
+
"role": "assistant",
|
| 1916 |
+
"api": "minicpm-webgpu",
|
| 1917 |
+
"provider": "browser",
|
| 1918 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1919 |
+
"timestamp": 1789205319799,
|
| 1920 |
+
"content": [
|
| 1921 |
+
{
|
| 1922 |
+
"type": "toolCall",
|
| 1923 |
+
"id": "e4d33b3e-6c39-4dfe-ab86-9db7856802a7",
|
| 1924 |
+
"name": "read",
|
| 1925 |
+
"arguments": {
|
| 1926 |
+
"path": "render-missing.txt"
|
| 1927 |
+
}
|
| 1928 |
+
}
|
| 1929 |
+
],
|
| 1930 |
+
"stopReason": "toolUse",
|
| 1931 |
+
"usage": {
|
| 1932 |
+
"input": 1709,
|
| 1933 |
+
"output": 17,
|
| 1934 |
+
"cacheRead": 0,
|
| 1935 |
+
"cacheWrite": 0,
|
| 1936 |
+
"totalTokens": 1726,
|
| 1937 |
+
"cost": {
|
| 1938 |
+
"input": 0,
|
| 1939 |
+
"output": 0,
|
| 1940 |
+
"cacheRead": 0,
|
| 1941 |
+
"cacheWrite": 0,
|
| 1942 |
+
"total": 0
|
| 1943 |
+
}
|
| 1944 |
+
}
|
| 1945 |
+
},
|
| 1946 |
+
{
|
| 1947 |
+
"role": "toolResult",
|
| 1948 |
+
"toolCallId": "e4d33b3e-6c39-4dfe-ab86-9db7856802a7",
|
| 1949 |
+
"toolName": "read",
|
| 1950 |
+
"content": [
|
| 1951 |
+
{
|
| 1952 |
+
"type": "text",
|
| 1953 |
+
"text": "Recovered"
|
| 1954 |
+
}
|
| 1955 |
+
],
|
| 1956 |
+
"details": {},
|
| 1957 |
+
"isError": false,
|
| 1958 |
+
"timestamp": 1789205322936
|
| 1959 |
+
},
|
| 1960 |
+
{
|
| 1961 |
+
"role": "assistant",
|
| 1962 |
+
"api": "minicpm-webgpu",
|
| 1963 |
+
"provider": "browser",
|
| 1964 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1965 |
+
"timestamp": 1789205322936,
|
| 1966 |
+
"content": [
|
| 1967 |
+
{
|
| 1968 |
+
"type": "text",
|
| 1969 |
+
"text": "Done."
|
| 1970 |
+
}
|
| 1971 |
+
],
|
| 1972 |
+
"stopReason": "stop",
|
| 1973 |
+
"usage": {
|
| 1974 |
+
"input": 1757,
|
| 1975 |
+
"output": 3,
|
| 1976 |
+
"cacheRead": 0,
|
| 1977 |
+
"cacheWrite": 0,
|
| 1978 |
+
"totalTokens": 1760,
|
| 1979 |
+
"cost": {
|
| 1980 |
+
"input": 0,
|
| 1981 |
+
"output": 0,
|
| 1982 |
+
"cacheRead": 0,
|
| 1983 |
+
"cacheWrite": 0,
|
| 1984 |
+
"total": 0
|
| 1985 |
+
}
|
| 1986 |
+
}
|
| 1987 |
+
},
|
| 1988 |
+
{
|
| 1989 |
+
"role": "user",
|
| 1990 |
+
"content": [
|
| 1991 |
+
{
|
| 1992 |
+
"type": "text",
|
| 1993 |
+
"text": "Run bash to print todo and render-missing.txt, then count the lines in numbers.txt."
|
| 1994 |
+
}
|
| 1995 |
+
],
|
| 1996 |
+
"timestamp": 1789205325898
|
| 1997 |
+
},
|
| 1998 |
+
{
|
| 1999 |
+
"role": "assistant",
|
| 2000 |
+
"api": "minicpm-webgpu",
|
| 2001 |
+
"provider": "browser",
|
| 2002 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 2003 |
+
"timestamp": 1789205325899,
|
| 2004 |
+
"content": [
|
| 2005 |
+
{
|
| 2006 |
+
"type": "toolCall",
|
| 2007 |
+
"id": "9684357e-804c-4764-9b30-6aff99da27f1",
|
| 2008 |
+
"name": "bash",
|
| 2009 |
+
"arguments": {
|
| 2010 |
+
"command": "cat todo && echo \"---\" && cat render-missing.txt && echo \"---\" && wc -l numbers.txt"
|
| 2011 |
+
}
|
| 2012 |
+
}
|
| 2013 |
+
],
|
| 2014 |
+
"stopReason": "toolUse",
|
| 2015 |
+
"usage": {
|
| 2016 |
+
"input": 1792,
|
| 2017 |
+
"output": 44,
|
| 2018 |
+
"cacheRead": 0,
|
| 2019 |
+
"cacheWrite": 0,
|
| 2020 |
+
"totalTokens": 1836,
|
| 2021 |
+
"cost": {
|
| 2022 |
+
"input": 0,
|
| 2023 |
+
"output": 0,
|
| 2024 |
+
"cacheRead": 0,
|
| 2025 |
+
"cacheWrite": 0,
|
| 2026 |
+
"total": 0
|
| 2027 |
+
}
|
| 2028 |
+
}
|
| 2029 |
+
},
|
| 2030 |
+
{
|
| 2031 |
+
"role": "toolResult",
|
| 2032 |
+
"toolCallId": "9684357e-804c-4764-9b30-6aff99da27f1",
|
| 2033 |
+
"toolName": "bash",
|
| 2034 |
+
"content": [
|
| 2035 |
+
{
|
| 2036 |
+
"type": "text",
|
| 2037 |
+
"text": "# todo\n- Check dark mode\n---\nRecovered---\n40 numbers.txt\n\nExit code: 0"
|
| 2038 |
+
}
|
| 2039 |
+
],
|
| 2040 |
+
"details": {
|
| 2041 |
+
"exitCode": 0
|
| 2042 |
+
},
|
| 2043 |
+
"isError": false,
|
| 2044 |
+
"timestamp": 1789205330275
|
| 2045 |
+
},
|
| 2046 |
+
{
|
| 2047 |
+
"role": "assistant",
|
| 2048 |
+
"api": "minicpm-webgpu",
|
| 2049 |
+
"provider": "browser",
|
| 2050 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 2051 |
+
"timestamp": 1789205330275,
|
| 2052 |
+
"content": [
|
| 2053 |
+
{
|
| 2054 |
+
"type": "text",
|
| 2055 |
+
"text": "Done."
|
| 2056 |
+
}
|
| 2057 |
+
],
|
| 2058 |
+
"stopReason": "stop",
|
| 2059 |
+
"usage": {
|
| 2060 |
+
"input": 1890,
|
| 2061 |
+
"output": 3,
|
| 2062 |
+
"cacheRead": 0,
|
| 2063 |
+
"cacheWrite": 0,
|
| 2064 |
+
"totalTokens": 1893,
|
| 2065 |
+
"cost": {
|
| 2066 |
+
"input": 0,
|
| 2067 |
+
"output": 0,
|
| 2068 |
+
"cacheRead": 0,
|
| 2069 |
+
"cacheWrite": 0,
|
| 2070 |
+
"total": 0
|
| 2071 |
+
}
|
| 2072 |
+
}
|
| 2073 |
+
},
|
| 2074 |
+
{
|
| 2075 |
+
"role": "user",
|
| 2076 |
+
"content": [
|
| 2077 |
+
{
|
| 2078 |
+
"type": "text",
|
| 2079 |
+
"text": "Summarize the files we created in three short Markdown bullets. No tools needed."
|
| 2080 |
+
}
|
| 2081 |
+
],
|
| 2082 |
+
"timestamp": 1789205333365
|
| 2083 |
+
},
|
| 2084 |
+
{
|
| 2085 |
+
"role": "assistant",
|
| 2086 |
+
"api": "minicpm-webgpu",
|
| 2087 |
+
"provider": "browser",
|
| 2088 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 2089 |
+
"timestamp": 1789205333365,
|
| 2090 |
+
"content": [
|
| 2091 |
+
{
|
| 2092 |
+
"type": "text",
|
| 2093 |
+
"text": "- todo: a todo list with dark mode check\n- render-notes.md: notes about dark mode with a bash code block\n- numbers.txt: a list of numbers from 1 to 40\n- render-missing.txt: recovered file with the word \"Recovered\""
|
| 2094 |
+
}
|
| 2095 |
+
],
|
| 2096 |
+
"stopReason": "stop",
|
| 2097 |
+
"usage": {
|
| 2098 |
+
"input": 1924,
|
| 2099 |
+
"output": 58,
|
| 2100 |
+
"cacheRead": 0,
|
| 2101 |
+
"cacheWrite": 0,
|
| 2102 |
+
"totalTokens": 1982,
|
| 2103 |
+
"cost": {
|
| 2104 |
+
"input": 0,
|
| 2105 |
+
"output": 0,
|
| 2106 |
+
"cacheRead": 0,
|
| 2107 |
+
"cacheWrite": 0,
|
| 2108 |
+
"total": 0
|
| 2109 |
+
}
|
| 2110 |
+
}
|
| 2111 |
+
}
|
| 2112 |
+
]
|
| 2113 |
+
},
|
| 2114 |
+
"screen": " cat render-missing.txt && echo \\\"---\\\" &&β\n wc -l numbers.txt\" β\n } β\n β\n # todo β\n - Check dark mode β\n --- β\n Recovered--- β\n 40 numbers.txt β\n β\n Exit code: 0 β\n β\n β\n Done. β\n β\n β\n Summarize the files we created in three β\n short Markdown bullets. No tools needed. β\n β\n β\n - todo: a todo list with dark mode check β\n - render-notes.md: notes about dark mode β\n with a bash code block β\n - numbers.txt: a list of numbers from 1 β\n to 40 β\n - render-missing.txt: recovered file withβ\n the word \"Recovered\" β\n Ready Β· running on your device \nβββββββββββββββββββββββββββββββββββββββββββ\n \nβββββββββββββββββββββββββββββββββββββββββββ\n /workspace Β· MiniCPM5-2B Β· 4,096 context ",
|
| 2115 |
+
"diagnostics": {
|
| 2116 |
+
"events": [
|
| 2117 |
+
"agent_start",
|
| 2118 |
+
"turn_start",
|
| 2119 |
+
"message_start",
|
| 2120 |
+
"message_end",
|
| 2121 |
+
"message_start",
|
| 2122 |
+
"message_update",
|
| 2123 |
+
"message_update",
|
| 2124 |
+
"message_update",
|
| 2125 |
+
"message_update",
|
| 2126 |
+
"message_update",
|
| 2127 |
+
"message_update",
|
| 2128 |
+
"message_end",
|
| 2129 |
+
"turn_end",
|
| 2130 |
+
"agent_end",
|
| 2131 |
+
"agent_start",
|
| 2132 |
+
"turn_start",
|
| 2133 |
+
"message_start",
|
| 2134 |
+
"message_end",
|
| 2135 |
+
"message_start",
|
| 2136 |
+
"message_update",
|
| 2137 |
+
"message_update",
|
| 2138 |
+
"message_end",
|
| 2139 |
+
"tool_execution_start",
|
| 2140 |
+
"tool_execution_end",
|
| 2141 |
+
"message_start",
|
| 2142 |
+
"message_end",
|
| 2143 |
+
"turn_end",
|
| 2144 |
+
"turn_start",
|
| 2145 |
+
"message_start",
|
| 2146 |
+
"message_update",
|
| 2147 |
+
"message_update",
|
| 2148 |
+
"message_update",
|
| 2149 |
+
"message_end",
|
| 2150 |
+
"turn_end",
|
| 2151 |
+
"agent_end",
|
| 2152 |
+
"agent_start",
|
| 2153 |
+
"turn_start",
|
| 2154 |
+
"message_start",
|
| 2155 |
+
"message_end",
|
| 2156 |
+
"message_start",
|
| 2157 |
+
"message_update",
|
| 2158 |
+
"message_update",
|
| 2159 |
+
"message_end",
|
| 2160 |
+
"tool_execution_start",
|
| 2161 |
+
"tool_execution_end",
|
| 2162 |
+
"message_start",
|
| 2163 |
+
"message_end",
|
| 2164 |
+
"turn_end",
|
| 2165 |
+
"turn_start",
|
| 2166 |
+
"message_start",
|
| 2167 |
+
"message_update",
|
| 2168 |
+
"message_update",
|
| 2169 |
+
"message_update",
|
| 2170 |
+
"message_update",
|
| 2171 |
+
"message_update",
|
| 2172 |
+
"message_update",
|
| 2173 |
+
"message_update",
|
| 2174 |
+
"message_update",
|
| 2175 |
+
"message_update",
|
| 2176 |
+
"message_update",
|
| 2177 |
+
"message_update",
|
| 2178 |
+
"message_update",
|
| 2179 |
+
"message_end",
|
| 2180 |
+
"turn_end",
|
| 2181 |
+
"agent_end",
|
| 2182 |
+
"agent_start",
|
| 2183 |
+
"turn_start",
|
| 2184 |
+
"message_start",
|
| 2185 |
+
"message_end",
|
| 2186 |
+
"message_start",
|
| 2187 |
+
"message_update",
|
| 2188 |
+
"message_update",
|
| 2189 |
+
"message_end",
|
| 2190 |
+
"tool_execution_start",
|
| 2191 |
+
"tool_execution_end",
|
| 2192 |
+
"message_start",
|
| 2193 |
+
"message_end",
|
| 2194 |
+
"turn_end",
|
| 2195 |
+
"turn_start",
|
| 2196 |
+
"message_start",
|
| 2197 |
+
"message_update",
|
| 2198 |
+
"message_update",
|
| 2199 |
+
"message_end",
|
| 2200 |
+
"tool_execution_start",
|
| 2201 |
+
"tool_execution_end",
|
| 2202 |
+
"message_start",
|
| 2203 |
+
"message_end",
|
| 2204 |
+
"turn_end",
|
| 2205 |
+
"turn_start",
|
| 2206 |
+
"message_start",
|
| 2207 |
+
"message_update",
|
| 2208 |
+
"message_update",
|
| 2209 |
+
"message_update",
|
| 2210 |
+
"message_end",
|
| 2211 |
+
"turn_end",
|
| 2212 |
+
"agent_end",
|
| 2213 |
+
"agent_start",
|
| 2214 |
+
"turn_start",
|
| 2215 |
+
"message_start",
|
| 2216 |
+
"message_end",
|
| 2217 |
+
"message_start",
|
| 2218 |
+
"message_update",
|
| 2219 |
+
"message_update",
|
| 2220 |
+
"message_end",
|
| 2221 |
+
"tool_execution_start",
|
| 2222 |
+
"tool_execution_end",
|
| 2223 |
+
"message_start",
|
| 2224 |
+
"message_end",
|
| 2225 |
+
"turn_end",
|
| 2226 |
+
"turn_start",
|
| 2227 |
+
"message_start",
|
| 2228 |
+
"message_update",
|
| 2229 |
+
"message_update",
|
| 2230 |
+
"message_update",
|
| 2231 |
+
"message_end",
|
| 2232 |
+
"turn_end",
|
| 2233 |
+
"agent_end",
|
| 2234 |
+
"agent_start",
|
| 2235 |
+
"turn_start",
|
| 2236 |
+
"message_start",
|
| 2237 |
+
"message_end",
|
| 2238 |
+
"message_start",
|
| 2239 |
+
"message_update",
|
| 2240 |
+
"message_update",
|
| 2241 |
+
"message_end",
|
| 2242 |
+
"tool_execution_start",
|
| 2243 |
+
"tool_execution_end",
|
| 2244 |
+
"message_start",
|
| 2245 |
+
"message_end",
|
| 2246 |
+
"turn_end",
|
| 2247 |
+
"turn_start",
|
| 2248 |
+
"message_start",
|
| 2249 |
+
"message_update",
|
| 2250 |
+
"message_update",
|
| 2251 |
+
"message_update",
|
| 2252 |
+
"message_update",
|
| 2253 |
+
"message_update",
|
| 2254 |
+
"message_update",
|
| 2255 |
+
"message_update",
|
| 2256 |
+
"message_update",
|
| 2257 |
+
"message_end",
|
| 2258 |
+
"turn_end",
|
| 2259 |
+
"agent_end",
|
| 2260 |
+
"agent_start",
|
| 2261 |
+
"turn_start",
|
| 2262 |
+
"message_start",
|
| 2263 |
+
"message_end",
|
| 2264 |
+
"message_start",
|
| 2265 |
+
"message_update",
|
| 2266 |
+
"message_update",
|
| 2267 |
+
"message_end",
|
| 2268 |
+
"tool_execution_start",
|
| 2269 |
+
"tool_execution_end",
|
| 2270 |
+
"message_start",
|
| 2271 |
+
"message_end",
|
| 2272 |
+
"turn_end",
|
| 2273 |
+
"turn_start",
|
| 2274 |
+
"message_start",
|
| 2275 |
+
"message_update",
|
| 2276 |
+
"message_update",
|
| 2277 |
+
"message_end",
|
| 2278 |
+
"tool_execution_start",
|
| 2279 |
+
"tool_execution_end",
|
| 2280 |
+
"message_start",
|
| 2281 |
+
"message_end",
|
| 2282 |
+
"turn_end",
|
| 2283 |
+
"turn_start",
|
| 2284 |
+
"message_start",
|
| 2285 |
+
"message_update",
|
| 2286 |
+
"message_update",
|
| 2287 |
+
"message_update",
|
| 2288 |
+
"message_end",
|
| 2289 |
+
"turn_end",
|
| 2290 |
+
"agent_end",
|
| 2291 |
+
"agent_start",
|
| 2292 |
+
"turn_start",
|
| 2293 |
+
"message_start",
|
| 2294 |
+
"message_end",
|
| 2295 |
+
"message_start",
|
| 2296 |
+
"message_update",
|
| 2297 |
+
"message_update",
|
| 2298 |
+
"message_end",
|
| 2299 |
+
"tool_execution_start",
|
| 2300 |
+
"tool_execution_end",
|
| 2301 |
+
"message_start",
|
| 2302 |
+
"message_end",
|
| 2303 |
+
"turn_end",
|
| 2304 |
+
"turn_start",
|
| 2305 |
+
"message_start",
|
| 2306 |
+
"message_update",
|
| 2307 |
+
"message_update",
|
| 2308 |
+
"message_end",
|
| 2309 |
+
"tool_execution_start",
|
| 2310 |
+
"tool_execution_end",
|
| 2311 |
+
"message_start",
|
| 2312 |
+
"message_end",
|
| 2313 |
+
"turn_end",
|
| 2314 |
+
"turn_start",
|
| 2315 |
+
"message_start",
|
| 2316 |
+
"message_update",
|
| 2317 |
+
"message_update",
|
| 2318 |
+
"message_end",
|
| 2319 |
+
"tool_execution_start",
|
| 2320 |
+
"tool_execution_end",
|
| 2321 |
+
"message_start",
|
| 2322 |
+
"message_end",
|
| 2323 |
+
"turn_end",
|
| 2324 |
+
"turn_start",
|
| 2325 |
+
"message_start",
|
| 2326 |
+
"message_update",
|
| 2327 |
+
"message_update",
|
| 2328 |
+
"message_update",
|
| 2329 |
+
"message_end",
|
| 2330 |
+
"turn_end",
|
| 2331 |
+
"agent_end",
|
| 2332 |
+
"agent_start",
|
| 2333 |
+
"turn_start",
|
| 2334 |
+
"message_start",
|
| 2335 |
+
"message_end",
|
| 2336 |
+
"message_start",
|
| 2337 |
+
"message_update",
|
| 2338 |
+
"message_update",
|
| 2339 |
+
"message_end",
|
| 2340 |
+
"tool_execution_start",
|
| 2341 |
+
"tool_execution_end",
|
| 2342 |
+
"message_start",
|
| 2343 |
+
"message_end",
|
| 2344 |
+
"turn_end",
|
| 2345 |
+
"turn_start",
|
| 2346 |
+
"message_start",
|
| 2347 |
+
"message_update",
|
| 2348 |
+
"message_update",
|
| 2349 |
+
"message_update",
|
| 2350 |
+
"message_end",
|
| 2351 |
+
"turn_end",
|
| 2352 |
+
"agent_end",
|
| 2353 |
+
"agent_start",
|
| 2354 |
+
"turn_start",
|
| 2355 |
+
"message_start",
|
| 2356 |
+
"message_end",
|
| 2357 |
+
"message_start",
|
| 2358 |
+
"message_update",
|
| 2359 |
+
"message_update",
|
| 2360 |
+
"message_update",
|
| 2361 |
+
"message_update",
|
| 2362 |
+
"message_update",
|
| 2363 |
+
"message_update",
|
| 2364 |
+
"message_update",
|
| 2365 |
+
"message_update",
|
| 2366 |
+
"message_update",
|
| 2367 |
+
"message_update",
|
| 2368 |
+
"message_update",
|
| 2369 |
+
"message_update",
|
| 2370 |
+
"message_update",
|
| 2371 |
+
"message_update",
|
| 2372 |
+
"message_update",
|
| 2373 |
+
"message_update",
|
| 2374 |
+
"message_update",
|
| 2375 |
+
"message_update",
|
| 2376 |
+
"message_update",
|
| 2377 |
+
"message_update",
|
| 2378 |
+
"message_update",
|
| 2379 |
+
"message_update",
|
| 2380 |
+
"message_update",
|
| 2381 |
+
"message_update",
|
| 2382 |
+
"message_update",
|
| 2383 |
+
"message_update",
|
| 2384 |
+
"message_update",
|
| 2385 |
+
"message_update",
|
| 2386 |
+
"message_update",
|
| 2387 |
+
"message_update",
|
| 2388 |
+
"message_update",
|
| 2389 |
+
"message_update",
|
| 2390 |
+
"message_update",
|
| 2391 |
+
"message_update",
|
| 2392 |
+
"message_update",
|
| 2393 |
+
"message_update",
|
| 2394 |
+
"message_update",
|
| 2395 |
+
"message_update",
|
| 2396 |
+
"message_update",
|
| 2397 |
+
"message_update",
|
| 2398 |
+
"message_end",
|
| 2399 |
+
"turn_end",
|
| 2400 |
+
"agent_end"
|
| 2401 |
+
],
|
| 2402 |
+
"generations": [
|
| 2403 |
+
{
|
| 2404 |
+
"type": "generation",
|
| 2405 |
+
"raw": "I'm ready to help.<|im_end|>",
|
| 2406 |
+
"inputTokens": 711,
|
| 2407 |
+
"outputTokens": 7,
|
| 2408 |
+
"elapsedMs": 2108,
|
| 2409 |
+
"firstTokenMs": 1446.2000000029802,
|
| 2410 |
+
"stopReason": "stop"
|
| 2411 |
+
},
|
| 2412 |
+
{
|
| 2413 |
+
"type": "generation",
|
| 2414 |
+
"raw": "<function name=\"write\"><param name=\"path\">todo</param><param name=\"content\"><![CDATA[# todo\n- Check rendering\n]]></param></function><|im_end|>",
|
| 2415 |
+
"inputTokens": 756,
|
| 2416 |
+
"outputTokens": 34,
|
| 2417 |
+
"elapsedMs": 3162.5,
|
| 2418 |
+
"firstTokenMs": 1427.4000000059605,
|
| 2419 |
+
"stopReason": "toolUse"
|
| 2420 |
+
},
|
| 2421 |
+
{
|
| 2422 |
+
"type": "generation",
|
| 2423 |
+
"raw": "Done.<|im_end|>",
|
| 2424 |
+
"inputTokens": 825,
|
| 2425 |
+
"outputTokens": 3,
|
| 2426 |
+
"elapsedMs": 1521.5,
|
| 2427 |
+
"firstTokenMs": 1479.0999999940395,
|
| 2428 |
+
"stopReason": "stop"
|
| 2429 |
+
},
|
| 2430 |
+
{
|
| 2431 |
+
"type": "generation",
|
| 2432 |
+
"raw": "<function name=\"read\"><param name=\"path\">todo</param></function><|im_end|>",
|
| 2433 |
+
"inputTokens": 852,
|
| 2434 |
+
"outputTokens": 15,
|
| 2435 |
+
"elapsedMs": 2337.10000000149,
|
| 2436 |
+
"firstTokenMs": 2042.1000000014901,
|
| 2437 |
+
"stopReason": "toolUse"
|
| 2438 |
+
},
|
| 2439 |
+
{
|
| 2440 |
+
"type": "generation",
|
| 2441 |
+
"raw": "The file contains \"# todo\" followed by \"- Check rendering\".<|im_end|>",
|
| 2442 |
+
"inputTokens": 902,
|
| 2443 |
+
"outputTokens": 13,
|
| 2444 |
+
"elapsedMs": 2382.10000000149,
|
| 2445 |
+
"firstTokenMs": 1662.3000000044703,
|
| 2446 |
+
"stopReason": "stop"
|
| 2447 |
+
},
|
| 2448 |
+
{
|
| 2449 |
+
"type": "generation",
|
| 2450 |
+
"raw": "<function name=\"edit\"><param name=\"path\">todo</param><param name=\"oldText\">- Check rendering</param><param name=\"newText\">- Check dark mode</param></function><|im_end|>",
|
| 2451 |
+
"inputTokens": 949,
|
| 2452 |
+
"outputTokens": 34,
|
| 2453 |
+
"elapsedMs": 3306.7000000029802,
|
| 2454 |
+
"firstTokenMs": 2088,
|
| 2455 |
+
"stopReason": "toolUse"
|
| 2456 |
+
},
|
| 2457 |
+
{
|
| 2458 |
+
"type": "generation",
|
| 2459 |
+
"raw": "<function name=\"read\"><param name=\"path\">todo</param></function><|im_end|>",
|
| 2460 |
+
"inputTokens": 1017,
|
| 2461 |
+
"outputTokens": 15,
|
| 2462 |
+
"elapsedMs": 2460.2999999970198,
|
| 2463 |
+
"firstTokenMs": 1653.5,
|
| 2464 |
+
"stopReason": "toolUse"
|
| 2465 |
+
},
|
| 2466 |
+
{
|
| 2467 |
+
"type": "generation",
|
| 2468 |
+
"raw": "Done.<|im_end|>",
|
| 2469 |
+
"inputTokens": 1068,
|
| 2470 |
+
"outputTokens": 3,
|
| 2471 |
+
"elapsedMs": 1752.2999999970198,
|
| 2472 |
+
"firstTokenMs": 1708.5,
|
| 2473 |
+
"stopReason": "stop"
|
| 2474 |
+
},
|
| 2475 |
+
{
|
| 2476 |
+
"type": "generation",
|
| 2477 |
+
"raw": "<function name=\"bash\"><param name=\"command\">seq 1 40 > numbers.txt; wc -l numbers.txt</param></function><|im_end|>",
|
| 2478 |
+
"inputTokens": 1104,
|
| 2479 |
+
"outputTokens": 28,
|
| 2480 |
+
"elapsedMs": 3286.1999999955297,
|
| 2481 |
+
"firstTokenMs": 2177.7999999970198,
|
| 2482 |
+
"stopReason": "toolUse"
|
| 2483 |
+
},
|
| 2484 |
+
{
|
| 2485 |
+
"type": "generation",
|
| 2486 |
+
"raw": "Done.<|im_end|>",
|
| 2487 |
+
"inputTokens": 1171,
|
| 2488 |
+
"outputTokens": 3,
|
| 2489 |
+
"elapsedMs": 2373.7999999970198,
|
| 2490 |
+
"firstTokenMs": 1830.8999999985099,
|
| 2491 |
+
"stopReason": "stop"
|
| 2492 |
+
},
|
| 2493 |
+
{
|
| 2494 |
+
"type": "generation",
|
| 2495 |
+
"raw": "<function name=\"read\"><param name=\"path\">numbers.txt</param></function><|im_end|>",
|
| 2496 |
+
"inputTokens": 1204,
|
| 2497 |
+
"outputTokens": 15,
|
| 2498 |
+
"elapsedMs": 2650.39999999851,
|
| 2499 |
+
"firstTokenMs": 1827,
|
| 2500 |
+
"stopReason": "toolUse"
|
| 2501 |
+
},
|
| 2502 |
+
{
|
| 2503 |
+
"type": "generation",
|
| 2504 |
+
"raw": "First number: 1, Last number: 40.<|im_end|>",
|
| 2505 |
+
"inputTokens": 1328,
|
| 2506 |
+
"outputTokens": 13,
|
| 2507 |
+
"elapsedMs": 2710.10000000149,
|
| 2508 |
+
"firstTokenMs": 1930,
|
| 2509 |
+
"stopReason": "stop"
|
| 2510 |
+
},
|
| 2511 |
+
{
|
| 2512 |
+
"type": "generation",
|
| 2513 |
+
"raw": "<function name=\"write\"><param name=\"path\">render-notes.md</param><param name=\"content\"><![CDATA[# Dark mode\n\n- padding\n- contrast\n\n```bash\ncat todo\n```\n]]></param></function><|im_end|>",
|
| 2514 |
+
"inputTokens": 1391,
|
| 2515 |
+
"outputTokens": 46,
|
| 2516 |
+
"elapsedMs": 4528.29999999702,
|
| 2517 |
+
"firstTokenMs": 2474.89999999851,
|
| 2518 |
+
"stopReason": "toolUse"
|
| 2519 |
+
},
|
| 2520 |
+
{
|
| 2521 |
+
"type": "generation",
|
| 2522 |
+
"raw": "<function name=\"read\"><param name=\"path\">render-notes.md</param></function><|im_end|>",
|
| 2523 |
+
"inputTokens": 1475,
|
| 2524 |
+
"outputTokens": 17,
|
| 2525 |
+
"elapsedMs": 2950.8000000044703,
|
| 2526 |
+
"firstTokenMs": 2082.3000000044703,
|
| 2527 |
+
"stopReason": "toolUse"
|
| 2528 |
+
},
|
| 2529 |
+
{
|
| 2530 |
+
"type": "generation",
|
| 2531 |
+
"raw": "Done.<|im_end|>",
|
| 2532 |
+
"inputTokens": 1541,
|
| 2533 |
+
"outputTokens": 3,
|
| 2534 |
+
"elapsedMs": 2731,
|
| 2535 |
+
"firstTokenMs": 2686.39999999851,
|
| 2536 |
+
"stopReason": "stop"
|
| 2537 |
+
},
|
| 2538 |
+
{
|
| 2539 |
+
"type": "generation",
|
| 2540 |
+
"raw": "<function name=\"read\"><param name=\"path\">render-missing.txt</param></function><|im_end|>",
|
| 2541 |
+
"inputTokens": 1582,
|
| 2542 |
+
"outputTokens": 17,
|
| 2543 |
+
"elapsedMs": 3034,
|
| 2544 |
+
"firstTokenMs": 2618.5,
|
| 2545 |
+
"stopReason": "toolUse"
|
| 2546 |
+
},
|
| 2547 |
+
{
|
| 2548 |
+
"type": "generation",
|
| 2549 |
+
"raw": "<function name=\"write\"><param name=\"path\">render-missing.txt</param><param name=\"content\">Recovered</param></function><|im_end|>",
|
| 2550 |
+
"inputTokens": 1646,
|
| 2551 |
+
"outputTokens": 25,
|
| 2552 |
+
"elapsedMs": 3784.7000000029802,
|
| 2553 |
+
"firstTokenMs": 2723.4000000059605,
|
| 2554 |
+
"stopReason": "toolUse"
|
| 2555 |
+
},
|
| 2556 |
+
{
|
| 2557 |
+
"type": "generation",
|
| 2558 |
+
"raw": "<function name=\"read\"><param name=\"path\">render-missing.txt</param></function><|im_end|>",
|
| 2559 |
+
"inputTokens": 1709,
|
| 2560 |
+
"outputTokens": 17,
|
| 2561 |
+
"elapsedMs": 3121.10000000149,
|
| 2562 |
+
"firstTokenMs": 2257.1999999955297,
|
| 2563 |
+
"stopReason": "toolUse"
|
| 2564 |
+
},
|
| 2565 |
+
{
|
| 2566 |
+
"type": "generation",
|
| 2567 |
+
"raw": "Done.<|im_end|>",
|
| 2568 |
+
"inputTokens": 1757,
|
| 2569 |
+
"outputTokens": 3,
|
| 2570 |
+
"elapsedMs": 2847.5,
|
| 2571 |
+
"firstTokenMs": 2293.2999999970198,
|
| 2572 |
+
"stopReason": "stop"
|
| 2573 |
+
},
|
| 2574 |
+
{
|
| 2575 |
+
"type": "generation",
|
| 2576 |
+
"raw": "<function name=\"bash\"><param name=\"command\"><![CDATA[cat todo && echo \"---\" && cat render-missing.txt && echo \"---\" && wc -l numbers.txt]]></param></function><|im_end|>",
|
| 2577 |
+
"inputTokens": 1792,
|
| 2578 |
+
"outputTokens": 44,
|
| 2579 |
+
"elapsedMs": 4366,
|
| 2580 |
+
"firstTokenMs": 2302,
|
| 2581 |
+
"stopReason": "toolUse"
|
| 2582 |
+
},
|
| 2583 |
+
{
|
| 2584 |
+
"type": "generation",
|
| 2585 |
+
"raw": "Done.<|im_end|>",
|
| 2586 |
+
"inputTokens": 1890,
|
| 2587 |
+
"outputTokens": 3,
|
| 2588 |
+
"elapsedMs": 2959.89999999851,
|
| 2589 |
+
"firstTokenMs": 2916.5,
|
| 2590 |
+
"stopReason": "stop"
|
| 2591 |
+
},
|
| 2592 |
+
{
|
| 2593 |
+
"type": "generation",
|
| 2594 |
+
"raw": "- todo: a todo list with dark mode check\n- render-notes.md: notes about dark mode with a bash code block\n- numbers.txt: a list of numbers from 1 to 40\n- render-missing.txt: recovered file with the word \"Recovered\"<|im_end|>",
|
| 2595 |
+
"inputTokens": 1924,
|
| 2596 |
+
"outputTokens": 58,
|
| 2597 |
+
"elapsedMs": 5430.80000000447,
|
| 2598 |
+
"firstTokenMs": 2970.60000000149,
|
| 2599 |
+
"stopReason": "stop"
|
| 2600 |
+
}
|
| 2601 |
+
],
|
| 2602 |
+
"device": {
|
| 2603 |
+
"vendor": "amd",
|
| 2604 |
+
"architecture": "rdna-3",
|
| 2605 |
+
"maxStorageBufferBindingSize": 4294967292,
|
| 2606 |
+
"features": [
|
| 2607 |
+
"depth32float-stencil8",
|
| 2608 |
+
"chromium-experimental-subgroup-matrix",
|
| 2609 |
+
"rg11b10ufloat-renderable",
|
| 2610 |
+
"bgra8unorm-storage",
|
| 2611 |
+
"texture-formats-tier1",
|
| 2612 |
+
"chromium-experimental-multi-draw-indirect",
|
| 2613 |
+
"texture-compression-bc",
|
| 2614 |
+
"dual-source-blending",
|
| 2615 |
+
"core-features-and-limits",
|
| 2616 |
+
"chromium-experimental-sampling-resource-table",
|
| 2617 |
+
"chromium-experimental-timestamp-query-inside-passes",
|
| 2618 |
+
"float32-filterable",
|
| 2619 |
+
"indirect-first-instance",
|
| 2620 |
+
"float32-blendable",
|
| 2621 |
+
"subgroup-size-control",
|
| 2622 |
+
"texture-compression-unaligned",
|
| 2623 |
+
"depth-clip-control",
|
| 2624 |
+
"texture-compression-bc-sliced-3d",
|
| 2625 |
+
"clip-distances",
|
| 2626 |
+
"shader-f16",
|
| 2627 |
+
"texture-formats-tier2",
|
| 2628 |
+
"timestamp-query",
|
| 2629 |
+
"primitive-index",
|
| 2630 |
+
"texture-component-swizzle",
|
| 2631 |
+
"subgroups"
|
| 2632 |
+
],
|
| 2633 |
+
"actualLimits": {
|
| 2634 |
+
"maxStorageBufferBindingSize": 4294967292,
|
| 2635 |
+
"maxBufferSize": 4294967292
|
| 2636 |
+
}
|
| 2637 |
+
}
|
| 2638 |
+
},
|
| 2639 |
+
"passed": true
|
| 2640 |
+
}
|
validation/agent-terminal-dark-dev.json
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"date": "2026-09-12T09:24:16.998Z",
|
| 3 |
+
"url": "http://127.0.0.1:5173/",
|
| 4 |
+
"errors": [],
|
| 5 |
+
"requests": [
|
| 6 |
+
"http://127.0.0.1:5173/",
|
| 7 |
+
"http://127.0.0.1:5173/@vite/client",
|
| 8 |
+
"http://127.0.0.1:5173/src/main.mjs?t=1789205047686",
|
| 9 |
+
"http://127.0.0.1:5173/node_modules/vite/dist/client/env.mjs",
|
| 10 |
+
"http://127.0.0.1:5173/src/style.css?t=1789205047684",
|
| 11 |
+
"http://127.0.0.1:5173/src/pi/terminal-ui.mjs?t=1789205047686",
|
| 12 |
+
"http://127.0.0.1:5173/node_modules/.vite/deps/@xterm_xterm.js?v=0a7636da",
|
| 13 |
+
"http://127.0.0.1:5173/node_modules/.vite/deps/@xterm_addon-fit.js?v=0a7636da",
|
| 14 |
+
"http://127.0.0.1:5173/node_modules/.vite/deps/@xterm_addon-unicode-graphemes.js?v=0a7636da",
|
| 15 |
+
"http://127.0.0.1:5173/node_modules/@xterm/xterm/css/xterm.css",
|
| 16 |
+
"http://127.0.0.1:5173/src/pi/entry.mjs",
|
| 17 |
+
"http://127.0.0.1:5173/vendor/pi-coding-agent/components/custom-editor.js",
|
| 18 |
+
"http://127.0.0.1:5173/vendor/pi-coding-agent/components/user-message.js?t=1789205047686",
|
| 19 |
+
"http://127.0.0.1:5173/vendor/pi-coding-agent/components/assistant-message.js?t=1789205047686",
|
| 20 |
+
"http://127.0.0.1:5173/src/pi/theme.mjs?t=1789205047686",
|
| 21 |
+
"http://127.0.0.1:5173/src/pi/xterm-terminal.mjs",
|
| 22 |
+
"http://127.0.0.1:5173/src/protocol.mjs",
|
| 23 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js?v=0a7636da",
|
| 24 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/tui.js?v=0a7636da",
|
| 25 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/components/editor.js?v=0a7636da",
|
| 26 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/components/text.js?v=0a7636da",
|
| 27 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.js?v=0a7636da",
|
| 28 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/components/markdown.js?v=0a7636da",
|
| 29 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/components/box.js?v=0a7636da",
|
| 30 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/components/spacer.js?v=0a7636da",
|
| 31 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.js?v=0a7636da",
|
| 32 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.js?v=0a7636da",
|
| 33 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/components/v-stack.js?v=0a7636da",
|
| 34 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/keybindings.js?v=0a7636da",
|
| 35 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/keys.js?v=0a7636da",
|
| 36 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.js?v=0a7636da",
|
| 37 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/utils.js?v=0a7636da",
|
| 38 |
+
"http://127.0.0.1:5173/vendor/pi-coding-agent/components/markdown-transform.js",
|
| 39 |
+
"http://127.0.0.1:5173/vendor/pi-coding-agent/theme/dark.json?import",
|
| 40 |
+
"http://127.0.0.1:5173/node_modules/.vite/deps/@xmldom_xmldom.js?v=0a7636da",
|
| 41 |
+
"http://127.0.0.1:5173/src/pi/browser-host.mjs",
|
| 42 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/terminal-colors.js?v=0a7636da",
|
| 43 |
+
"http://127.0.0.1:5173/src/pi/capabilities.mjs",
|
| 44 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.js?v=0a7636da",
|
| 45 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/components/alt-screen-flash.js?v=0a7636da",
|
| 46 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/layout.js?v=0a7636da",
|
| 47 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/layout-node.js?v=0a7636da",
|
| 48 |
+
"http://127.0.0.1:5173/node_modules/marked/lib/marked.esm.js?v=0a7636da",
|
| 49 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/latex.js?v=0a7636da",
|
| 50 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/kill-ring.js?v=0a7636da",
|
| 51 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/undo-stack.js?v=0a7636da",
|
| 52 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/word-navigation.js?v=0a7636da",
|
| 53 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/components/select-list.js?v=0a7636da",
|
| 54 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/components/stack.js?v=0a7636da",
|
| 55 |
+
"http://127.0.0.1:5173/node_modules/.vite/deps/events.js?v=0a7636da",
|
| 56 |
+
"http://127.0.0.1:5173/node_modules/.vite/deps/buffer.js?v=0a7636da",
|
| 57 |
+
"http://127.0.0.1:5173/node_modules/@earendil-works/pi-tui/dist/components/input.js?v=0a7636da",
|
| 58 |
+
"http://127.0.0.1:5173/node_modules/get-east-asian-width/index.js?v=0a7636da",
|
| 59 |
+
"http://127.0.0.1:5173/node_modules/.vite/deps/rolldown-runtime-B-lAHAz2.js?v=0a7636da",
|
| 60 |
+
"http://127.0.0.1:5173/node_modules/get-east-asian-width/lookup.js?v=0a7636da",
|
| 61 |
+
"http://127.0.0.1:5173/node_modules/get-east-asian-width/lookup-data.js?v=0a7636da",
|
| 62 |
+
"http://127.0.0.1:5173/node_modules/get-east-asian-width/utilities.js?v=0a7636da",
|
| 63 |
+
"http://127.0.0.1:5173/src/agent.worker.mjs?worker_file&type=module",
|
| 64 |
+
"http://127.0.0.1:5173/node_modules/vite/dist/client/env.mjs",
|
| 65 |
+
"http://127.0.0.1:5173/node_modules/.vite/deps/@earendil-works_pi-agent-core.js?v=0a7636da",
|
| 66 |
+
"http://127.0.0.1:5173/src/inference.mjs",
|
| 67 |
+
"http://127.0.0.1:5173/src/workspace.mjs",
|
| 68 |
+
"http://127.0.0.1:5173/src/storage.mjs",
|
| 69 |
+
"http://127.0.0.1:5173/node_modules/.vite/deps/@huggingface_transformers.js?v=0a7636da",
|
| 70 |
+
"http://127.0.0.1:5173/node_modules/.vite/deps/@earendil-works_pi-ai_utils_event-stream.js?v=0a7636da",
|
| 71 |
+
"http://127.0.0.1:5173/src/download.mjs",
|
| 72 |
+
"http://127.0.0.1:5173/src/protocol.mjs",
|
| 73 |
+
"http://127.0.0.1:5173/node_modules/.vite/deps/just-bash_browser.js?v=0a7636da",
|
| 74 |
+
"http://127.0.0.1:5173/node_modules/.vite/deps/@earendil-works_pi-ai.js?v=0a7636da",
|
| 75 |
+
"http://127.0.0.1:5173/favicon.svg",
|
| 76 |
+
"http://127.0.0.1:5173/node_modules/.vite/deps/rolldown-runtime-B-lAHAz2.js?v=0a7636da",
|
| 77 |
+
"http://127.0.0.1:5173/node_modules/.vite/deps/dist-HiCO7I8Y.js?v=0a7636da",
|
| 78 |
+
"http://127.0.0.1:5173/node_modules/.vite/deps/libesm-Ds0pOwVw.js?v=0a7636da",
|
| 79 |
+
"http://127.0.0.1:5173/node_modules/.vite/deps/hash-wasm.js?v=0a7636da",
|
| 80 |
+
"http://127.0.0.1:5173/src/model-manifest.json?import",
|
| 81 |
+
"http://127.0.0.1:5173/node_modules/.vite/deps/@xmldom_xmldom.js?v=0a7636da",
|
| 82 |
+
"http://127.0.0.1:5173/@vite/client"
|
| 83 |
+
],
|
| 84 |
+
"checks": [
|
| 85 |
+
"Original Pi TUI rendered through xterm",
|
| 86 |
+
"Enter submits /help without loading a model",
|
| 87 |
+
"Pi fullscreen transcript search preserves the editor draft",
|
| 88 |
+
"Pi multiline editor: Shift+Enter, cursor, deletion, Ctrl+U/K",
|
| 89 |
+
"Pi prompt history",
|
| 90 |
+
"Pi autocomplete: /he β /help",
|
| 91 |
+
"xterm keyboard β Pi editor β real just-bash β workspace file",
|
| 92 |
+
"Shell escape sequences render as inert text",
|
| 93 |
+
"Large Pi paste markers expand before Send",
|
| 94 |
+
"Unicode multiline clipboard paste",
|
| 95 |
+
"Touch-accessible newline button",
|
| 96 |
+
"390px layout and live terminal resize preserve the draft"
|
| 97 |
+
],
|
| 98 |
+
"initial": " \n Ο Pi browser workspace \n \n Ask Pi to work with the files on the right. \n \n /load load MiniCPM \n /help show commands \n !ls run a workspace command \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n Files and chat are saved on this device. \nββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n \nββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n /workspace Β· MiniCPM5-2B Β· 4,096 context ",
|
| 99 |
+
"sizes": {
|
| 100 |
+
"desktop": {
|
| 101 |
+
"cols": 92,
|
| 102 |
+
"rows": 41
|
| 103 |
+
},
|
| 104 |
+
"mobile": {
|
| 105 |
+
"cols": 43,
|
| 106 |
+
"rows": 32
|
| 107 |
+
}
|
| 108 |
+
},
|
| 109 |
+
"mobileLimitation": "Desktop Chromium viewport simulation; physical mobile keyboards and GPUs not tested.",
|
| 110 |
+
"passed": true
|
| 111 |
+
}
|
validation/agent-terminal-dark-model.json
ADDED
|
@@ -0,0 +1,1879 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"date": "2026-09-12T09:25:54.108Z",
|
| 3 |
+
"url": "http://127.0.0.1:4173/?source=local",
|
| 4 |
+
"cases": [
|
| 5 |
+
{
|
| 6 |
+
"name": "read-unseen-file",
|
| 7 |
+
"elapsedMs": 4783,
|
| 8 |
+
"version": 1,
|
| 9 |
+
"files": {
|
| 10 |
+
"/tmp/revenue.txt": "Notebook 12 5 60\nPencil 30 2 60\nFolder 8 3 24\nTOTAL: 144\n",
|
| 11 |
+
"/workspace/README.md": "# Browser workspace\n\nPi can read, write, edit, and run shell commands here.\nEverything stays in this browser. Try analyzing sales.csv.\n",
|
| 12 |
+
"/workspace/revenue.txt": "Notebook 12 5 -> 12 x 5 = 60\nPencil 30 2 -> 30 x 2 = 60\nFolder 8 3 -> 8 x 3 = 24\nTOTAL REVENUE: 144\n",
|
| 13 |
+
"/workspace/sales.csv": "product,units,price\nNotebook,12,5\nPencil,30,2\nFolder,8,3\n",
|
| 14 |
+
"/workspace/secret.txt": "LOCAL-87139c93"
|
| 15 |
+
},
|
| 16 |
+
"entries": [
|
| 17 |
+
[
|
| 18 |
+
"/",
|
| 19 |
+
{
|
| 20 |
+
"type": "directory",
|
| 21 |
+
"mode": 493
|
| 22 |
+
}
|
| 23 |
+
],
|
| 24 |
+
[
|
| 25 |
+
"/tmp",
|
| 26 |
+
{
|
| 27 |
+
"type": "directory",
|
| 28 |
+
"mode": 493
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
[
|
| 32 |
+
"/tmp/revenue.txt",
|
| 33 |
+
{
|
| 34 |
+
"type": "file",
|
| 35 |
+
"base64": "Tm90ZWJvb2sgMTIgNSA2MApQZW5jaWwgMzAgMiA2MApGb2xkZXIgOCAzIDI0ClRPVEFMOiAxNDQK",
|
| 36 |
+
"mode": 420
|
| 37 |
+
}
|
| 38 |
+
],
|
| 39 |
+
[
|
| 40 |
+
"/usr",
|
| 41 |
+
{
|
| 42 |
+
"type": "directory",
|
| 43 |
+
"mode": 493
|
| 44 |
+
}
|
| 45 |
+
],
|
| 46 |
+
[
|
| 47 |
+
"/workspace",
|
| 48 |
+
{
|
| 49 |
+
"type": "directory",
|
| 50 |
+
"mode": 493
|
| 51 |
+
}
|
| 52 |
+
],
|
| 53 |
+
[
|
| 54 |
+
"/workspace/README.md",
|
| 55 |
+
{
|
| 56 |
+
"type": "file",
|
| 57 |
+
"base64": "IyBCcm93c2VyIHdvcmtzcGFjZQoKUGkgY2FuIHJlYWQsIHdyaXRlLCBlZGl0LCBhbmQgcnVuIHNoZWxsIGNvbW1hbmRzIGhlcmUuCkV2ZXJ5dGhpbmcgc3RheXMgaW4gdGhpcyBicm93c2VyLiBUcnkgYW5hbHl6aW5nIHNhbGVzLmNzdi4K",
|
| 58 |
+
"mode": 420
|
| 59 |
+
}
|
| 60 |
+
],
|
| 61 |
+
[
|
| 62 |
+
"/workspace/revenue.txt",
|
| 63 |
+
{
|
| 64 |
+
"type": "file",
|
| 65 |
+
"base64": "Tm90ZWJvb2sgMTIgNSAtPiAxMiB4IDUgPSA2MApQZW5jaWwgMzAgMiAtPiAzMCB4IDIgPSA2MApGb2xkZXIgOCAzIC0+IDggeCAzID0gMjQKVE9UQUwgUkVWRU5VRTogMTQ0Cg==",
|
| 66 |
+
"mode": 420
|
| 67 |
+
}
|
| 68 |
+
],
|
| 69 |
+
[
|
| 70 |
+
"/workspace/sales.csv",
|
| 71 |
+
{
|
| 72 |
+
"type": "file",
|
| 73 |
+
"base64": "cHJvZHVjdCx1bml0cyxwcmljZQpOb3RlYm9vaywxMiw1ClBlbmNpbCwzMCwyCkZvbGRlciw4LDMK",
|
| 74 |
+
"mode": 420
|
| 75 |
+
}
|
| 76 |
+
],
|
| 77 |
+
[
|
| 78 |
+
"/workspace/secret.txt",
|
| 79 |
+
{
|
| 80 |
+
"type": "file",
|
| 81 |
+
"base64": "TE9DQUwtODcxMzljOTM=",
|
| 82 |
+
"mode": 420
|
| 83 |
+
}
|
| 84 |
+
]
|
| 85 |
+
],
|
| 86 |
+
"messages": [
|
| 87 |
+
{
|
| 88 |
+
"role": "user",
|
| 89 |
+
"content": [
|
| 90 |
+
{
|
| 91 |
+
"type": "text",
|
| 92 |
+
"text": "Read secret.txt with the read tool and tell me its exact contents."
|
| 93 |
+
}
|
| 94 |
+
],
|
| 95 |
+
"timestamp": 1789205157054
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"role": "assistant",
|
| 99 |
+
"api": "minicpm-webgpu",
|
| 100 |
+
"provider": "browser",
|
| 101 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 102 |
+
"timestamp": 1789205157055,
|
| 103 |
+
"content": [
|
| 104 |
+
{
|
| 105 |
+
"type": "toolCall",
|
| 106 |
+
"id": "3434f321-8752-428a-b631-ed1e376c6bcd",
|
| 107 |
+
"name": "read",
|
| 108 |
+
"arguments": {
|
| 109 |
+
"path": "/workspace/secret.txt"
|
| 110 |
+
}
|
| 111 |
+
}
|
| 112 |
+
],
|
| 113 |
+
"stopReason": "toolUse",
|
| 114 |
+
"usage": {
|
| 115 |
+
"input": 717,
|
| 116 |
+
"output": 18,
|
| 117 |
+
"cacheRead": 0,
|
| 118 |
+
"cacheWrite": 0,
|
| 119 |
+
"totalTokens": 735,
|
| 120 |
+
"cost": {
|
| 121 |
+
"input": 0,
|
| 122 |
+
"output": 0,
|
| 123 |
+
"cacheRead": 0,
|
| 124 |
+
"cacheWrite": 0,
|
| 125 |
+
"total": 0
|
| 126 |
+
}
|
| 127 |
+
}
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
"role": "toolResult",
|
| 131 |
+
"toolCallId": "3434f321-8752-428a-b631-ed1e376c6bcd",
|
| 132 |
+
"toolName": "read",
|
| 133 |
+
"content": [
|
| 134 |
+
{
|
| 135 |
+
"type": "text",
|
| 136 |
+
"text": "LOCAL-87139c93"
|
| 137 |
+
}
|
| 138 |
+
],
|
| 139 |
+
"details": {},
|
| 140 |
+
"isError": false,
|
| 141 |
+
"timestamp": 1789205159348
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"role": "assistant",
|
| 145 |
+
"api": "minicpm-webgpu",
|
| 146 |
+
"provider": "browser",
|
| 147 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 148 |
+
"timestamp": 1789205159348,
|
| 149 |
+
"content": [
|
| 150 |
+
{
|
| 151 |
+
"type": "text",
|
| 152 |
+
"text": "The file secret.txt contains the text: `LOCAL-87139c93`"
|
| 153 |
+
}
|
| 154 |
+
],
|
| 155 |
+
"stopReason": "stop",
|
| 156 |
+
"usage": {
|
| 157 |
+
"input": 771,
|
| 158 |
+
"output": 18,
|
| 159 |
+
"cacheRead": 0,
|
| 160 |
+
"cacheWrite": 0,
|
| 161 |
+
"totalTokens": 789,
|
| 162 |
+
"cost": {
|
| 163 |
+
"input": 0,
|
| 164 |
+
"output": 0,
|
| 165 |
+
"cacheRead": 0,
|
| 166 |
+
"cacheWrite": 0,
|
| 167 |
+
"total": 0
|
| 168 |
+
}
|
| 169 |
+
}
|
| 170 |
+
}
|
| 171 |
+
]
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"name": "analyze-and-write",
|
| 175 |
+
"elapsedMs": 18600,
|
| 176 |
+
"version": 1,
|
| 177 |
+
"files": {
|
| 178 |
+
"/tmp/revenue.txt": "Notebook 12 5 60\nPencil 30 2 60\nFolder 8 3 24\nTOTAL: 144\n",
|
| 179 |
+
"/workspace/README.md": "# Browser workspace\n\nPi can read, write, edit, and run shell commands here.\nEverything stays in this browser. Try analyzing sales.csv.\n",
|
| 180 |
+
"/workspace/report.md": "# Sales Report\n\nTotal revenue from sales.csv is **$144**.\n\n- Notebook: 12 Γ $5 = $60\n- Pencil: 30 Γ $2 = $60\n- Folder: 8 Γ $3 = $24\n",
|
| 181 |
+
"/workspace/revenue.txt": "Notebook 12 5 -> 12 x 5 = 60\nPencil 30 2 -> 30 x 2 = 60\nFolder 8 3 -> 8 x 3 = 24\nTOTAL REVENUE: 144\n",
|
| 182 |
+
"/workspace/sales.csv": "product,units,price\nNotebook,12,5\nPencil,30,2\nFolder,8,3\n",
|
| 183 |
+
"/workspace/secret.txt": "LOCAL-87139c93"
|
| 184 |
+
},
|
| 185 |
+
"entries": [
|
| 186 |
+
[
|
| 187 |
+
"/",
|
| 188 |
+
{
|
| 189 |
+
"type": "directory",
|
| 190 |
+
"mode": 493
|
| 191 |
+
}
|
| 192 |
+
],
|
| 193 |
+
[
|
| 194 |
+
"/tmp",
|
| 195 |
+
{
|
| 196 |
+
"type": "directory",
|
| 197 |
+
"mode": 493
|
| 198 |
+
}
|
| 199 |
+
],
|
| 200 |
+
[
|
| 201 |
+
"/tmp/revenue.txt",
|
| 202 |
+
{
|
| 203 |
+
"type": "file",
|
| 204 |
+
"base64": "Tm90ZWJvb2sgMTIgNSA2MApQZW5jaWwgMzAgMiA2MApGb2xkZXIgOCAzIDI0ClRPVEFMOiAxNDQK",
|
| 205 |
+
"mode": 420
|
| 206 |
+
}
|
| 207 |
+
],
|
| 208 |
+
[
|
| 209 |
+
"/usr",
|
| 210 |
+
{
|
| 211 |
+
"type": "directory",
|
| 212 |
+
"mode": 493
|
| 213 |
+
}
|
| 214 |
+
],
|
| 215 |
+
[
|
| 216 |
+
"/workspace",
|
| 217 |
+
{
|
| 218 |
+
"type": "directory",
|
| 219 |
+
"mode": 493
|
| 220 |
+
}
|
| 221 |
+
],
|
| 222 |
+
[
|
| 223 |
+
"/workspace/README.md",
|
| 224 |
+
{
|
| 225 |
+
"type": "file",
|
| 226 |
+
"base64": "IyBCcm93c2VyIHdvcmtzcGFjZQoKUGkgY2FuIHJlYWQsIHdyaXRlLCBlZGl0LCBhbmQgcnVuIHNoZWxsIGNvbW1hbmRzIGhlcmUuCkV2ZXJ5dGhpbmcgc3RheXMgaW4gdGhpcyBicm93c2VyLiBUcnkgYW5hbHl6aW5nIHNhbGVzLmNzdi4K",
|
| 227 |
+
"mode": 420
|
| 228 |
+
}
|
| 229 |
+
],
|
| 230 |
+
[
|
| 231 |
+
"/workspace/report.md",
|
| 232 |
+
{
|
| 233 |
+
"type": "file",
|
| 234 |
+
"base64": "IyBTYWxlcyBSZXBvcnQKClRvdGFsIHJldmVudWUgZnJvbSBzYWxlcy5jc3YgaXMgKiokMTQ0KiouCgotIE5vdGVib29rOiAxMiDDlyAkNSA9ICQ2MAotIFBlbmNpbDogMzAgw5cgJDIgPSAkNjAKLSBGb2xkZXI6IDggw5cgJDMgPSAkMjQK",
|
| 235 |
+
"mode": 420
|
| 236 |
+
}
|
| 237 |
+
],
|
| 238 |
+
[
|
| 239 |
+
"/workspace/revenue.txt",
|
| 240 |
+
{
|
| 241 |
+
"type": "file",
|
| 242 |
+
"base64": "Tm90ZWJvb2sgMTIgNSAtPiAxMiB4IDUgPSA2MApQZW5jaWwgMzAgMiAtPiAzMCB4IDIgPSA2MApGb2xkZXIgOCAzIC0+IDggeCAzID0gMjQKVE9UQUwgUkVWRU5VRTogMTQ0Cg==",
|
| 243 |
+
"mode": 420
|
| 244 |
+
}
|
| 245 |
+
],
|
| 246 |
+
[
|
| 247 |
+
"/workspace/sales.csv",
|
| 248 |
+
{
|
| 249 |
+
"type": "file",
|
| 250 |
+
"base64": "cHJvZHVjdCx1bml0cyxwcmljZQpOb3RlYm9vaywxMiw1ClBlbmNpbCwzMCwyCkZvbGRlciw4LDMK",
|
| 251 |
+
"mode": 420
|
| 252 |
+
}
|
| 253 |
+
],
|
| 254 |
+
[
|
| 255 |
+
"/workspace/secret.txt",
|
| 256 |
+
{
|
| 257 |
+
"type": "file",
|
| 258 |
+
"base64": "TE9DQUwtODcxMzljOTM=",
|
| 259 |
+
"mode": 420
|
| 260 |
+
}
|
| 261 |
+
]
|
| 262 |
+
],
|
| 263 |
+
"messages": [
|
| 264 |
+
{
|
| 265 |
+
"role": "user",
|
| 266 |
+
"content": [
|
| 267 |
+
{
|
| 268 |
+
"type": "text",
|
| 269 |
+
"text": "Read sales.csv, calculate total revenue using bash, and save a short report to report.md. Verify the file."
|
| 270 |
+
}
|
| 271 |
+
],
|
| 272 |
+
"timestamp": 1789205161887
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"role": "assistant",
|
| 276 |
+
"api": "minicpm-webgpu",
|
| 277 |
+
"provider": "browser",
|
| 278 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 279 |
+
"timestamp": 1789205161887,
|
| 280 |
+
"content": [
|
| 281 |
+
{
|
| 282 |
+
"type": "toolCall",
|
| 283 |
+
"id": "fc187c0b-6669-4a05-ba13-4f84c7da764e",
|
| 284 |
+
"name": "read",
|
| 285 |
+
"arguments": {
|
| 286 |
+
"path": "/workspace/sales.csv"
|
| 287 |
+
}
|
| 288 |
+
}
|
| 289 |
+
],
|
| 290 |
+
"stopReason": "toolUse",
|
| 291 |
+
"usage": {
|
| 292 |
+
"input": 726,
|
| 293 |
+
"output": 18,
|
| 294 |
+
"cacheRead": 0,
|
| 295 |
+
"cacheWrite": 0,
|
| 296 |
+
"totalTokens": 744,
|
| 297 |
+
"cost": {
|
| 298 |
+
"input": 0,
|
| 299 |
+
"output": 0,
|
| 300 |
+
"cacheRead": 0,
|
| 301 |
+
"cacheWrite": 0,
|
| 302 |
+
"total": 0
|
| 303 |
+
}
|
| 304 |
+
}
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"role": "toolResult",
|
| 308 |
+
"toolCallId": "fc187c0b-6669-4a05-ba13-4f84c7da764e",
|
| 309 |
+
"toolName": "read",
|
| 310 |
+
"content": [
|
| 311 |
+
{
|
| 312 |
+
"type": "text",
|
| 313 |
+
"text": "product,units,price\nNotebook,12,5\nPencil,30,2\nFolder,8,3\n"
|
| 314 |
+
}
|
| 315 |
+
],
|
| 316 |
+
"details": {},
|
| 317 |
+
"isError": false,
|
| 318 |
+
"timestamp": 1789205164126
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"role": "assistant",
|
| 322 |
+
"api": "minicpm-webgpu",
|
| 323 |
+
"provider": "browser",
|
| 324 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 325 |
+
"timestamp": 1789205164126,
|
| 326 |
+
"content": [
|
| 327 |
+
{
|
| 328 |
+
"type": "toolCall",
|
| 329 |
+
"id": "cb06200a-a445-4d33-b08f-6b456490baae",
|
| 330 |
+
"name": "bash",
|
| 331 |
+
"arguments": {
|
| 332 |
+
"command": "awk -F',' 'NR>1 {rev=$2*$3; total+=rev; print $1,$2,$3,\"->\",$2,\"x\",$3,\"=\",rev} END {print \"TOTAL REVENUE:\", total}' sales.csv > revenue.txt && cat revenue.txt"
|
| 333 |
+
}
|
| 334 |
+
}
|
| 335 |
+
],
|
| 336 |
+
"stopReason": "toolUse",
|
| 337 |
+
"usage": {
|
| 338 |
+
"input": 798,
|
| 339 |
+
"output": 78,
|
| 340 |
+
"cacheRead": 0,
|
| 341 |
+
"cacheWrite": 0,
|
| 342 |
+
"totalTokens": 876,
|
| 343 |
+
"cost": {
|
| 344 |
+
"input": 0,
|
| 345 |
+
"output": 0,
|
| 346 |
+
"cacheRead": 0,
|
| 347 |
+
"cacheWrite": 0,
|
| 348 |
+
"total": 0
|
| 349 |
+
}
|
| 350 |
+
}
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"role": "toolResult",
|
| 354 |
+
"toolCallId": "cb06200a-a445-4d33-b08f-6b456490baae",
|
| 355 |
+
"toolName": "bash",
|
| 356 |
+
"content": [
|
| 357 |
+
{
|
| 358 |
+
"type": "text",
|
| 359 |
+
"text": "Notebook 12 5 -> 12 x 5 = 60\nPencil 30 2 -> 30 x 2 = 60\nFolder 8 3 -> 8 x 3 = 24\nTOTAL REVENUE: 144\n\nExit code: 0"
|
| 360 |
+
}
|
| 361 |
+
],
|
| 362 |
+
"details": {
|
| 363 |
+
"exitCode": 0
|
| 364 |
+
},
|
| 365 |
+
"isError": false,
|
| 366 |
+
"timestamp": 1789205169254
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"role": "assistant",
|
| 370 |
+
"api": "minicpm-webgpu",
|
| 371 |
+
"provider": "browser",
|
| 372 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 373 |
+
"timestamp": 1789205169254,
|
| 374 |
+
"content": [
|
| 375 |
+
{
|
| 376 |
+
"type": "toolCall",
|
| 377 |
+
"id": "eb3f05a4-54fe-41c9-ac1b-f02ed2fdddbc",
|
| 378 |
+
"name": "write",
|
| 379 |
+
"arguments": {
|
| 380 |
+
"path": "report.md",
|
| 381 |
+
"content": "# Sales Report\n\nTotal revenue from sales.csv is **$144**.\n\n- Notebook: 12 Γ $5 = $60\n- Pencil: 30 Γ $2 = $60\n- Folder: 8 Γ $3 = $24\n"
|
| 382 |
+
}
|
| 383 |
+
}
|
| 384 |
+
],
|
| 385 |
+
"stopReason": "toolUse",
|
| 386 |
+
"usage": {
|
| 387 |
+
"input": 964,
|
| 388 |
+
"output": 79,
|
| 389 |
+
"cacheRead": 0,
|
| 390 |
+
"cacheWrite": 0,
|
| 391 |
+
"totalTokens": 1043,
|
| 392 |
+
"cost": {
|
| 393 |
+
"input": 0,
|
| 394 |
+
"output": 0,
|
| 395 |
+
"cacheRead": 0,
|
| 396 |
+
"cacheWrite": 0,
|
| 397 |
+
"total": 0
|
| 398 |
+
}
|
| 399 |
+
}
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"role": "toolResult",
|
| 403 |
+
"toolCallId": "eb3f05a4-54fe-41c9-ac1b-f02ed2fdddbc",
|
| 404 |
+
"toolName": "write",
|
| 405 |
+
"content": [
|
| 406 |
+
{
|
| 407 |
+
"type": "text",
|
| 408 |
+
"text": "Wrote /workspace/report.md"
|
| 409 |
+
}
|
| 410 |
+
],
|
| 411 |
+
"details": {},
|
| 412 |
+
"isError": false,
|
| 413 |
+
"timestamp": 1789205174026
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"role": "assistant",
|
| 417 |
+
"api": "minicpm-webgpu",
|
| 418 |
+
"provider": "browser",
|
| 419 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 420 |
+
"timestamp": 1789205174026,
|
| 421 |
+
"content": [
|
| 422 |
+
{
|
| 423 |
+
"type": "toolCall",
|
| 424 |
+
"id": "adf4099e-90f0-4651-8026-1a742ce24e9a",
|
| 425 |
+
"name": "read",
|
| 426 |
+
"arguments": {
|
| 427 |
+
"path": "/workspace/report.md"
|
| 428 |
+
}
|
| 429 |
+
}
|
| 430 |
+
],
|
| 431 |
+
"stopReason": "toolUse",
|
| 432 |
+
"usage": {
|
| 433 |
+
"input": 1079,
|
| 434 |
+
"output": 18,
|
| 435 |
+
"cacheRead": 0,
|
| 436 |
+
"cacheWrite": 0,
|
| 437 |
+
"totalTokens": 1097,
|
| 438 |
+
"cost": {
|
| 439 |
+
"input": 0,
|
| 440 |
+
"output": 0,
|
| 441 |
+
"cacheRead": 0,
|
| 442 |
+
"cacheWrite": 0,
|
| 443 |
+
"total": 0
|
| 444 |
+
}
|
| 445 |
+
}
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"role": "toolResult",
|
| 449 |
+
"toolCallId": "adf4099e-90f0-4651-8026-1a742ce24e9a",
|
| 450 |
+
"toolName": "read",
|
| 451 |
+
"content": [
|
| 452 |
+
{
|
| 453 |
+
"type": "text",
|
| 454 |
+
"text": "# Sales Report\n\nTotal revenue from sales.csv is **$144**.\n\n- Notebook: 12 Γ $5 = $60\n- Pencil: 30 Γ $2 = $60\n- Folder: 8 Γ $3 = $24\n"
|
| 455 |
+
}
|
| 456 |
+
],
|
| 457 |
+
"details": {},
|
| 458 |
+
"isError": false,
|
| 459 |
+
"timestamp": 1789205176643
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"role": "assistant",
|
| 463 |
+
"api": "minicpm-webgpu",
|
| 464 |
+
"provider": "browser",
|
| 465 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 466 |
+
"timestamp": 1789205176643,
|
| 467 |
+
"content": [
|
| 468 |
+
{
|
| 469 |
+
"type": "text",
|
| 470 |
+
"text": "Done. The report is saved at `/workspace/report.md` with total revenue of $144 (Notebook $60, Pencil $60, Folder $24)."
|
| 471 |
+
}
|
| 472 |
+
],
|
| 473 |
+
"stopReason": "stop",
|
| 474 |
+
"usage": {
|
| 475 |
+
"input": 1180,
|
| 476 |
+
"output": 35,
|
| 477 |
+
"cacheRead": 0,
|
| 478 |
+
"cacheWrite": 0,
|
| 479 |
+
"totalTokens": 1215,
|
| 480 |
+
"cost": {
|
| 481 |
+
"input": 0,
|
| 482 |
+
"output": 0,
|
| 483 |
+
"cacheRead": 0,
|
| 484 |
+
"cacheWrite": 0,
|
| 485 |
+
"total": 0
|
| 486 |
+
}
|
| 487 |
+
}
|
| 488 |
+
}
|
| 489 |
+
]
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"name": "write-and-run-script",
|
| 493 |
+
"elapsedMs": 9866,
|
| 494 |
+
"version": 1,
|
| 495 |
+
"files": {
|
| 496 |
+
"/tmp/revenue.txt": "Notebook 12 5 60\nPencil 30 2 60\nFolder 8 3 24\nTOTAL: 144\n",
|
| 497 |
+
"/workspace/README.md": "# Browser workspace\n\nPi can read, write, edit, and run shell commands here.\nEverything stays in this browser. Try analyzing sales.csv.\n",
|
| 498 |
+
"/workspace/hello.sh": "#!/bin/bash\necho \"Hello from the browser\"\n",
|
| 499 |
+
"/workspace/report.md": "# Sales Report\n\nTotal revenue from sales.csv is **$144**.\n\n- Notebook: 12 Γ $5 = $60\n- Pencil: 30 Γ $2 = $60\n- Folder: 8 Γ $3 = $24\n",
|
| 500 |
+
"/workspace/revenue.txt": "Notebook 12 5 -> 12 x 5 = 60\nPencil 30 2 -> 30 x 2 = 60\nFolder 8 3 -> 8 x 3 = 24\nTOTAL REVENUE: 144\n",
|
| 501 |
+
"/workspace/sales.csv": "product,units,price\nNotebook,12,5\nPencil,30,2\nFolder,8,3\n",
|
| 502 |
+
"/workspace/secret.txt": "LOCAL-87139c93"
|
| 503 |
+
},
|
| 504 |
+
"entries": [
|
| 505 |
+
[
|
| 506 |
+
"/",
|
| 507 |
+
{
|
| 508 |
+
"type": "directory",
|
| 509 |
+
"mode": 493
|
| 510 |
+
}
|
| 511 |
+
],
|
| 512 |
+
[
|
| 513 |
+
"/tmp",
|
| 514 |
+
{
|
| 515 |
+
"type": "directory",
|
| 516 |
+
"mode": 493
|
| 517 |
+
}
|
| 518 |
+
],
|
| 519 |
+
[
|
| 520 |
+
"/tmp/revenue.txt",
|
| 521 |
+
{
|
| 522 |
+
"type": "file",
|
| 523 |
+
"base64": "Tm90ZWJvb2sgMTIgNSA2MApQZW5jaWwgMzAgMiA2MApGb2xkZXIgOCAzIDI0ClRPVEFMOiAxNDQK",
|
| 524 |
+
"mode": 420
|
| 525 |
+
}
|
| 526 |
+
],
|
| 527 |
+
[
|
| 528 |
+
"/usr",
|
| 529 |
+
{
|
| 530 |
+
"type": "directory",
|
| 531 |
+
"mode": 493
|
| 532 |
+
}
|
| 533 |
+
],
|
| 534 |
+
[
|
| 535 |
+
"/workspace",
|
| 536 |
+
{
|
| 537 |
+
"type": "directory",
|
| 538 |
+
"mode": 493
|
| 539 |
+
}
|
| 540 |
+
],
|
| 541 |
+
[
|
| 542 |
+
"/workspace/README.md",
|
| 543 |
+
{
|
| 544 |
+
"type": "file",
|
| 545 |
+
"base64": "IyBCcm93c2VyIHdvcmtzcGFjZQoKUGkgY2FuIHJlYWQsIHdyaXRlLCBlZGl0LCBhbmQgcnVuIHNoZWxsIGNvbW1hbmRzIGhlcmUuCkV2ZXJ5dGhpbmcgc3RheXMgaW4gdGhpcyBicm93c2VyLiBUcnkgYW5hbHl6aW5nIHNhbGVzLmNzdi4K",
|
| 546 |
+
"mode": 420
|
| 547 |
+
}
|
| 548 |
+
],
|
| 549 |
+
[
|
| 550 |
+
"/workspace/hello.sh",
|
| 551 |
+
{
|
| 552 |
+
"type": "file",
|
| 553 |
+
"base64": "IyEvYmluL2Jhc2gKZWNobyAiSGVsbG8gZnJvbSB0aGUgYnJvd3NlciIK",
|
| 554 |
+
"mode": 493
|
| 555 |
+
}
|
| 556 |
+
],
|
| 557 |
+
[
|
| 558 |
+
"/workspace/report.md",
|
| 559 |
+
{
|
| 560 |
+
"type": "file",
|
| 561 |
+
"base64": "IyBTYWxlcyBSZXBvcnQKClRvdGFsIHJldmVudWUgZnJvbSBzYWxlcy5jc3YgaXMgKiokMTQ0KiouCgotIE5vdGVib29rOiAxMiDDlyAkNSA9ICQ2MAotIFBlbmNpbDogMzAgw5cgJDIgPSAkNjAKLSBGb2xkZXI6IDggw5cgJDMgPSAkMjQK",
|
| 562 |
+
"mode": 420
|
| 563 |
+
}
|
| 564 |
+
],
|
| 565 |
+
[
|
| 566 |
+
"/workspace/revenue.txt",
|
| 567 |
+
{
|
| 568 |
+
"type": "file",
|
| 569 |
+
"base64": "Tm90ZWJvb2sgMTIgNSAtPiAxMiB4IDUgPSA2MApQZW5jaWwgMzAgMiAtPiAzMCB4IDIgPSA2MApGb2xkZXIgOCAzIC0+IDggeCAzID0gMjQKVE9UQUwgUkVWRU5VRTogMTQ0Cg==",
|
| 570 |
+
"mode": 420
|
| 571 |
+
}
|
| 572 |
+
],
|
| 573 |
+
[
|
| 574 |
+
"/workspace/sales.csv",
|
| 575 |
+
{
|
| 576 |
+
"type": "file",
|
| 577 |
+
"base64": "cHJvZHVjdCx1bml0cyxwcmljZQpOb3RlYm9vaywxMiw1ClBlbmNpbCwzMCwyCkZvbGRlciw4LDMK",
|
| 578 |
+
"mode": 420
|
| 579 |
+
}
|
| 580 |
+
],
|
| 581 |
+
[
|
| 582 |
+
"/workspace/secret.txt",
|
| 583 |
+
{
|
| 584 |
+
"type": "file",
|
| 585 |
+
"base64": "TE9DQUwtODcxMzljOTM=",
|
| 586 |
+
"mode": 420
|
| 587 |
+
}
|
| 588 |
+
]
|
| 589 |
+
],
|
| 590 |
+
"messages": [
|
| 591 |
+
{
|
| 592 |
+
"role": "user",
|
| 593 |
+
"content": [
|
| 594 |
+
{
|
| 595 |
+
"type": "text",
|
| 596 |
+
"text": "Create a bash script called hello.sh that prints Hello from the browser, run it, and report the output."
|
| 597 |
+
}
|
| 598 |
+
],
|
| 599 |
+
"timestamp": 1789205180521
|
| 600 |
+
},
|
| 601 |
+
{
|
| 602 |
+
"role": "assistant",
|
| 603 |
+
"api": "minicpm-webgpu",
|
| 604 |
+
"provider": "browser",
|
| 605 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 606 |
+
"timestamp": 1789205180521,
|
| 607 |
+
"content": [
|
| 608 |
+
{
|
| 609 |
+
"type": "toolCall",
|
| 610 |
+
"id": "3aea0342-5e3a-487e-ab42-7478eb70328e",
|
| 611 |
+
"name": "write",
|
| 612 |
+
"arguments": {
|
| 613 |
+
"path": "/workspace/hello.sh",
|
| 614 |
+
"content": "#!/bin/bash\necho \"Hello from the browser\"\n"
|
| 615 |
+
}
|
| 616 |
+
}
|
| 617 |
+
],
|
| 618 |
+
"stopReason": "toolUse",
|
| 619 |
+
"usage": {
|
| 620 |
+
"input": 725,
|
| 621 |
+
"output": 43,
|
| 622 |
+
"cacheRead": 0,
|
| 623 |
+
"cacheWrite": 0,
|
| 624 |
+
"totalTokens": 768,
|
| 625 |
+
"cost": {
|
| 626 |
+
"input": 0,
|
| 627 |
+
"output": 0,
|
| 628 |
+
"cacheRead": 0,
|
| 629 |
+
"cacheWrite": 0,
|
| 630 |
+
"total": 0
|
| 631 |
+
}
|
| 632 |
+
}
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"role": "toolResult",
|
| 636 |
+
"toolCallId": "3aea0342-5e3a-487e-ab42-7478eb70328e",
|
| 637 |
+
"toolName": "write",
|
| 638 |
+
"content": [
|
| 639 |
+
{
|
| 640 |
+
"type": "text",
|
| 641 |
+
"text": "Wrote /workspace/hello.sh"
|
| 642 |
+
}
|
| 643 |
+
],
|
| 644 |
+
"details": {},
|
| 645 |
+
"isError": false,
|
| 646 |
+
"timestamp": 1789205183760
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"role": "assistant",
|
| 650 |
+
"api": "minicpm-webgpu",
|
| 651 |
+
"provider": "browser",
|
| 652 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 653 |
+
"timestamp": 1789205183760,
|
| 654 |
+
"content": [
|
| 655 |
+
{
|
| 656 |
+
"type": "toolCall",
|
| 657 |
+
"id": "c8d3dfae-72e2-4037-8cda-4c4fc4e8490a",
|
| 658 |
+
"name": "bash",
|
| 659 |
+
"arguments": {
|
| 660 |
+
"command": "chmod +x /workspace/hello.sh && /workspace/hello.sh"
|
| 661 |
+
}
|
| 662 |
+
}
|
| 663 |
+
],
|
| 664 |
+
"stopReason": "toolUse",
|
| 665 |
+
"usage": {
|
| 666 |
+
"input": 804,
|
| 667 |
+
"output": 34,
|
| 668 |
+
"cacheRead": 0,
|
| 669 |
+
"cacheWrite": 0,
|
| 670 |
+
"totalTokens": 838,
|
| 671 |
+
"cost": {
|
| 672 |
+
"input": 0,
|
| 673 |
+
"output": 0,
|
| 674 |
+
"cacheRead": 0,
|
| 675 |
+
"cacheWrite": 0,
|
| 676 |
+
"total": 0
|
| 677 |
+
}
|
| 678 |
+
}
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"role": "toolResult",
|
| 682 |
+
"toolCallId": "c8d3dfae-72e2-4037-8cda-4c4fc4e8490a",
|
| 683 |
+
"toolName": "bash",
|
| 684 |
+
"content": [
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "Hello from the browser\n\nExit code: 0"
|
| 688 |
+
}
|
| 689 |
+
],
|
| 690 |
+
"details": {
|
| 691 |
+
"exitCode": 0
|
| 692 |
+
},
|
| 693 |
+
"isError": false,
|
| 694 |
+
"timestamp": 1789205186943
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"role": "assistant",
|
| 698 |
+
"api": "minicpm-webgpu",
|
| 699 |
+
"provider": "browser",
|
| 700 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 701 |
+
"timestamp": 1789205186943,
|
| 702 |
+
"content": [
|
| 703 |
+
{
|
| 704 |
+
"type": "text",
|
| 705 |
+
"text": "The script `/workspace/hello.sh` prints \"Hello from the browser\". Running it outputs:\n\n```\nHello from the browser\n```\n\nwith exit code 0."
|
| 706 |
+
}
|
| 707 |
+
],
|
| 708 |
+
"stopReason": "stop",
|
| 709 |
+
"usage": {
|
| 710 |
+
"input": 878,
|
| 711 |
+
"output": 35,
|
| 712 |
+
"cacheRead": 0,
|
| 713 |
+
"cacheWrite": 0,
|
| 714 |
+
"totalTokens": 913,
|
| 715 |
+
"cost": {
|
| 716 |
+
"input": 0,
|
| 717 |
+
"output": 0,
|
| 718 |
+
"cacheRead": 0,
|
| 719 |
+
"cacheWrite": 0,
|
| 720 |
+
"total": 0
|
| 721 |
+
}
|
| 722 |
+
}
|
| 723 |
+
}
|
| 724 |
+
]
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"name": "edit-and-verify",
|
| 728 |
+
"elapsedMs": 10831,
|
| 729 |
+
"version": 1,
|
| 730 |
+
"files": {
|
| 731 |
+
"/tmp/revenue.txt": "Notebook 12 5 60\nPencil 30 2 60\nFolder 8 3 24\nTOTAL: 144\n",
|
| 732 |
+
"/workspace/README.md": "# Browser workspace\n\nPi can read, write, edit, and run shell commands here.\nEverything stays in this browser. Try analyzing sales.csv.\n",
|
| 733 |
+
"/workspace/hello.sh": "#!/bin/bash\necho \"Hello from Pi\"\n",
|
| 734 |
+
"/workspace/report.md": "# Sales Report\n\nTotal revenue from sales.csv is **$144**.\n\n- Notebook: 12 Γ $5 = $60\n- Pencil: 30 Γ $2 = $60\n- Folder: 8 Γ $3 = $24\n",
|
| 735 |
+
"/workspace/revenue.txt": "Notebook 12 5 -> 12 x 5 = 60\nPencil 30 2 -> 30 x 2 = 60\nFolder 8 3 -> 8 x 3 = 24\nTOTAL REVENUE: 144\n",
|
| 736 |
+
"/workspace/sales.csv": "product,units,price\nNotebook,12,5\nPencil,30,2\nFolder,8,3\n",
|
| 737 |
+
"/workspace/secret.txt": "LOCAL-87139c93"
|
| 738 |
+
},
|
| 739 |
+
"entries": [
|
| 740 |
+
[
|
| 741 |
+
"/",
|
| 742 |
+
{
|
| 743 |
+
"type": "directory",
|
| 744 |
+
"mode": 493
|
| 745 |
+
}
|
| 746 |
+
],
|
| 747 |
+
[
|
| 748 |
+
"/tmp",
|
| 749 |
+
{
|
| 750 |
+
"type": "directory",
|
| 751 |
+
"mode": 493
|
| 752 |
+
}
|
| 753 |
+
],
|
| 754 |
+
[
|
| 755 |
+
"/tmp/revenue.txt",
|
| 756 |
+
{
|
| 757 |
+
"type": "file",
|
| 758 |
+
"base64": "Tm90ZWJvb2sgMTIgNSA2MApQZW5jaWwgMzAgMiA2MApGb2xkZXIgOCAzIDI0ClRPVEFMOiAxNDQK",
|
| 759 |
+
"mode": 420
|
| 760 |
+
}
|
| 761 |
+
],
|
| 762 |
+
[
|
| 763 |
+
"/usr",
|
| 764 |
+
{
|
| 765 |
+
"type": "directory",
|
| 766 |
+
"mode": 493
|
| 767 |
+
}
|
| 768 |
+
],
|
| 769 |
+
[
|
| 770 |
+
"/workspace",
|
| 771 |
+
{
|
| 772 |
+
"type": "directory",
|
| 773 |
+
"mode": 493
|
| 774 |
+
}
|
| 775 |
+
],
|
| 776 |
+
[
|
| 777 |
+
"/workspace/README.md",
|
| 778 |
+
{
|
| 779 |
+
"type": "file",
|
| 780 |
+
"base64": "IyBCcm93c2VyIHdvcmtzcGFjZQoKUGkgY2FuIHJlYWQsIHdyaXRlLCBlZGl0LCBhbmQgcnVuIHNoZWxsIGNvbW1hbmRzIGhlcmUuCkV2ZXJ5dGhpbmcgc3RheXMgaW4gdGhpcyBicm93c2VyLiBUcnkgYW5hbHl6aW5nIHNhbGVzLmNzdi4K",
|
| 781 |
+
"mode": 420
|
| 782 |
+
}
|
| 783 |
+
],
|
| 784 |
+
[
|
| 785 |
+
"/workspace/hello.sh",
|
| 786 |
+
{
|
| 787 |
+
"type": "file",
|
| 788 |
+
"base64": "IyEvYmluL2Jhc2gKZWNobyAiSGVsbG8gZnJvbSBQaSIK",
|
| 789 |
+
"mode": 493
|
| 790 |
+
}
|
| 791 |
+
],
|
| 792 |
+
[
|
| 793 |
+
"/workspace/report.md",
|
| 794 |
+
{
|
| 795 |
+
"type": "file",
|
| 796 |
+
"base64": "IyBTYWxlcyBSZXBvcnQKClRvdGFsIHJldmVudWUgZnJvbSBzYWxlcy5jc3YgaXMgKiokMTQ0KiouCgotIE5vdGVib29rOiAxMiDDlyAkNSA9ICQ2MAotIFBlbmNpbDogMzAgw5cgJDIgPSAkNjAKLSBGb2xkZXI6IDggw5cgJDMgPSAkMjQK",
|
| 797 |
+
"mode": 420
|
| 798 |
+
}
|
| 799 |
+
],
|
| 800 |
+
[
|
| 801 |
+
"/workspace/revenue.txt",
|
| 802 |
+
{
|
| 803 |
+
"type": "file",
|
| 804 |
+
"base64": "Tm90ZWJvb2sgMTIgNSAtPiAxMiB4IDUgPSA2MApQZW5jaWwgMzAgMiAtPiAzMCB4IDIgPSA2MApGb2xkZXIgOCAzIC0+IDggeCAzID0gMjQKVE9UQUwgUkVWRU5VRTogMTQ0Cg==",
|
| 805 |
+
"mode": 420
|
| 806 |
+
}
|
| 807 |
+
],
|
| 808 |
+
[
|
| 809 |
+
"/workspace/sales.csv",
|
| 810 |
+
{
|
| 811 |
+
"type": "file",
|
| 812 |
+
"base64": "cHJvZHVjdCx1bml0cyxwcmljZQpOb3RlYm9vaywxMiw1ClBlbmNpbCwzMCwyCkZvbGRlciw4LDMK",
|
| 813 |
+
"mode": 420
|
| 814 |
+
}
|
| 815 |
+
],
|
| 816 |
+
[
|
| 817 |
+
"/workspace/secret.txt",
|
| 818 |
+
{
|
| 819 |
+
"type": "file",
|
| 820 |
+
"base64": "TE9DQUwtODcxMzljOTM=",
|
| 821 |
+
"mode": 420
|
| 822 |
+
}
|
| 823 |
+
]
|
| 824 |
+
],
|
| 825 |
+
"messages": [
|
| 826 |
+
{
|
| 827 |
+
"role": "user",
|
| 828 |
+
"content": [
|
| 829 |
+
{
|
| 830 |
+
"type": "text",
|
| 831 |
+
"text": "Read hello.sh, use the edit tool to replace Hello from the browser with Hello from Pi, then run the script and report the output."
|
| 832 |
+
}
|
| 833 |
+
],
|
| 834 |
+
"timestamp": 1789205190437
|
| 835 |
+
},
|
| 836 |
+
{
|
| 837 |
+
"role": "assistant",
|
| 838 |
+
"api": "minicpm-webgpu",
|
| 839 |
+
"provider": "browser",
|
| 840 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 841 |
+
"timestamp": 1789205190437,
|
| 842 |
+
"content": [
|
| 843 |
+
{
|
| 844 |
+
"type": "toolCall",
|
| 845 |
+
"id": "ac96f0b4-b989-42b8-bc08-db82799e8024",
|
| 846 |
+
"name": "read",
|
| 847 |
+
"arguments": {
|
| 848 |
+
"path": "hello.sh"
|
| 849 |
+
}
|
| 850 |
+
}
|
| 851 |
+
],
|
| 852 |
+
"stopReason": "toolUse",
|
| 853 |
+
"usage": {
|
| 854 |
+
"input": 731,
|
| 855 |
+
"output": 15,
|
| 856 |
+
"cacheRead": 0,
|
| 857 |
+
"cacheWrite": 0,
|
| 858 |
+
"totalTokens": 746,
|
| 859 |
+
"cost": {
|
| 860 |
+
"input": 0,
|
| 861 |
+
"output": 0,
|
| 862 |
+
"cacheRead": 0,
|
| 863 |
+
"cacheWrite": 0,
|
| 864 |
+
"total": 0
|
| 865 |
+
}
|
| 866 |
+
}
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"role": "toolResult",
|
| 870 |
+
"toolCallId": "ac96f0b4-b989-42b8-bc08-db82799e8024",
|
| 871 |
+
"toolName": "read",
|
| 872 |
+
"content": [
|
| 873 |
+
{
|
| 874 |
+
"type": "text",
|
| 875 |
+
"text": "#!/bin/bash\necho \"Hello from the browser\"\n"
|
| 876 |
+
}
|
| 877 |
+
],
|
| 878 |
+
"details": {},
|
| 879 |
+
"isError": false,
|
| 880 |
+
"timestamp": 1789205192656
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"role": "assistant",
|
| 884 |
+
"api": "minicpm-webgpu",
|
| 885 |
+
"provider": "browser",
|
| 886 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 887 |
+
"timestamp": 1789205192656,
|
| 888 |
+
"content": [
|
| 889 |
+
{
|
| 890 |
+
"type": "toolCall",
|
| 891 |
+
"id": "830b7e8b-a309-490e-b129-5cee3a9fc0c0",
|
| 892 |
+
"name": "edit",
|
| 893 |
+
"arguments": {
|
| 894 |
+
"path": "hello.sh",
|
| 895 |
+
"oldText": "echo \"Hello from the browser\"",
|
| 896 |
+
"newText": "echo \"Hello from Pi\""
|
| 897 |
+
}
|
| 898 |
+
}
|
| 899 |
+
],
|
| 900 |
+
"stopReason": "toolUse",
|
| 901 |
+
"usage": {
|
| 902 |
+
"input": 790,
|
| 903 |
+
"output": 42,
|
| 904 |
+
"cacheRead": 0,
|
| 905 |
+
"cacheWrite": 0,
|
| 906 |
+
"totalTokens": 832,
|
| 907 |
+
"cost": {
|
| 908 |
+
"input": 0,
|
| 909 |
+
"output": 0,
|
| 910 |
+
"cacheRead": 0,
|
| 911 |
+
"cacheWrite": 0,
|
| 912 |
+
"total": 0
|
| 913 |
+
}
|
| 914 |
+
}
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"role": "toolResult",
|
| 918 |
+
"toolCallId": "830b7e8b-a309-490e-b129-5cee3a9fc0c0",
|
| 919 |
+
"toolName": "edit",
|
| 920 |
+
"content": [
|
| 921 |
+
{
|
| 922 |
+
"type": "text",
|
| 923 |
+
"text": "Edited /workspace/hello.sh"
|
| 924 |
+
}
|
| 925 |
+
],
|
| 926 |
+
"details": {},
|
| 927 |
+
"isError": false,
|
| 928 |
+
"timestamp": 1789205196056
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"role": "assistant",
|
| 932 |
+
"api": "minicpm-webgpu",
|
| 933 |
+
"provider": "browser",
|
| 934 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 935 |
+
"timestamp": 1789205196056,
|
| 936 |
+
"content": [
|
| 937 |
+
{
|
| 938 |
+
"type": "toolCall",
|
| 939 |
+
"id": "bfe0daae-e141-4b17-b6b3-52f7d50f400b",
|
| 940 |
+
"name": "bash",
|
| 941 |
+
"arguments": {
|
| 942 |
+
"command": "chmod +x hello.sh && ./hello.sh"
|
| 943 |
+
}
|
| 944 |
+
}
|
| 945 |
+
],
|
| 946 |
+
"stopReason": "toolUse",
|
| 947 |
+
"usage": {
|
| 948 |
+
"input": 867,
|
| 949 |
+
"output": 29,
|
| 950 |
+
"cacheRead": 0,
|
| 951 |
+
"cacheWrite": 0,
|
| 952 |
+
"totalTokens": 896,
|
| 953 |
+
"cost": {
|
| 954 |
+
"input": 0,
|
| 955 |
+
"output": 0,
|
| 956 |
+
"cacheRead": 0,
|
| 957 |
+
"cacheWrite": 0,
|
| 958 |
+
"total": 0
|
| 959 |
+
}
|
| 960 |
+
}
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"role": "toolResult",
|
| 964 |
+
"toolCallId": "bfe0daae-e141-4b17-b6b3-52f7d50f400b",
|
| 965 |
+
"toolName": "bash",
|
| 966 |
+
"content": [
|
| 967 |
+
{
|
| 968 |
+
"type": "text",
|
| 969 |
+
"text": "Hello from Pi\n\nExit code: 0"
|
| 970 |
+
}
|
| 971 |
+
],
|
| 972 |
+
"details": {
|
| 973 |
+
"exitCode": 0
|
| 974 |
+
},
|
| 975 |
+
"isError": false,
|
| 976 |
+
"timestamp": 1789205198717
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"role": "assistant",
|
| 980 |
+
"api": "minicpm-webgpu",
|
| 981 |
+
"provider": "browser",
|
| 982 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 983 |
+
"timestamp": 1789205198717,
|
| 984 |
+
"content": [
|
| 985 |
+
{
|
| 986 |
+
"type": "text",
|
| 987 |
+
"text": "The script now outputs \"Hello from Pi\" when run."
|
| 988 |
+
}
|
| 989 |
+
],
|
| 990 |
+
"stopReason": "stop",
|
| 991 |
+
"usage": {
|
| 992 |
+
"input": 935,
|
| 993 |
+
"output": 13,
|
| 994 |
+
"cacheRead": 0,
|
| 995 |
+
"cacheWrite": 0,
|
| 996 |
+
"totalTokens": 948,
|
| 997 |
+
"cost": {
|
| 998 |
+
"input": 0,
|
| 999 |
+
"output": 0,
|
| 1000 |
+
"cacheRead": 0,
|
| 1001 |
+
"cacheWrite": 0,
|
| 1002 |
+
"total": 0
|
| 1003 |
+
}
|
| 1004 |
+
}
|
| 1005 |
+
}
|
| 1006 |
+
]
|
| 1007 |
+
},
|
| 1008 |
+
{
|
| 1009 |
+
"name": "recover-tool-error",
|
| 1010 |
+
"elapsedMs": 11448,
|
| 1011 |
+
"version": 1,
|
| 1012 |
+
"files": {
|
| 1013 |
+
"/tmp/revenue.txt": "Notebook 12 5 60\nPencil 30 2 60\nFolder 8 3 24\nTOTAL: 144\n",
|
| 1014 |
+
"/workspace/README.md": "# Browser workspace\n\nPi can read, write, edit, and run shell commands here.\nEverything stays in this browser. Try analyzing sales.csv.\n",
|
| 1015 |
+
"/workspace/hello.sh": "#!/bin/bash\necho \"Hello from Pi\"\n",
|
| 1016 |
+
"/workspace/missing.txt": "Recovered",
|
| 1017 |
+
"/workspace/report.md": "# Sales Report\n\nTotal revenue from sales.csv is **$144**.\n\n- Notebook: 12 Γ $5 = $60\n- Pencil: 30 Γ $2 = $60\n- Folder: 8 Γ $3 = $24\n",
|
| 1018 |
+
"/workspace/revenue.txt": "Notebook 12 5 -> 12 x 5 = 60\nPencil 30 2 -> 30 x 2 = 60\nFolder 8 3 -> 8 x 3 = 24\nTOTAL REVENUE: 144\n",
|
| 1019 |
+
"/workspace/sales.csv": "product,units,price\nNotebook,12,5\nPencil,30,2\nFolder,8,3\n",
|
| 1020 |
+
"/workspace/secret.txt": "LOCAL-87139c93"
|
| 1021 |
+
},
|
| 1022 |
+
"entries": [
|
| 1023 |
+
[
|
| 1024 |
+
"/",
|
| 1025 |
+
{
|
| 1026 |
+
"type": "directory",
|
| 1027 |
+
"mode": 493
|
| 1028 |
+
}
|
| 1029 |
+
],
|
| 1030 |
+
[
|
| 1031 |
+
"/tmp",
|
| 1032 |
+
{
|
| 1033 |
+
"type": "directory",
|
| 1034 |
+
"mode": 493
|
| 1035 |
+
}
|
| 1036 |
+
],
|
| 1037 |
+
[
|
| 1038 |
+
"/tmp/revenue.txt",
|
| 1039 |
+
{
|
| 1040 |
+
"type": "file",
|
| 1041 |
+
"base64": "Tm90ZWJvb2sgMTIgNSA2MApQZW5jaWwgMzAgMiA2MApGb2xkZXIgOCAzIDI0ClRPVEFMOiAxNDQK",
|
| 1042 |
+
"mode": 420
|
| 1043 |
+
}
|
| 1044 |
+
],
|
| 1045 |
+
[
|
| 1046 |
+
"/usr",
|
| 1047 |
+
{
|
| 1048 |
+
"type": "directory",
|
| 1049 |
+
"mode": 493
|
| 1050 |
+
}
|
| 1051 |
+
],
|
| 1052 |
+
[
|
| 1053 |
+
"/workspace",
|
| 1054 |
+
{
|
| 1055 |
+
"type": "directory",
|
| 1056 |
+
"mode": 493
|
| 1057 |
+
}
|
| 1058 |
+
],
|
| 1059 |
+
[
|
| 1060 |
+
"/workspace/README.md",
|
| 1061 |
+
{
|
| 1062 |
+
"type": "file",
|
| 1063 |
+
"base64": "IyBCcm93c2VyIHdvcmtzcGFjZQoKUGkgY2FuIHJlYWQsIHdyaXRlLCBlZGl0LCBhbmQgcnVuIHNoZWxsIGNvbW1hbmRzIGhlcmUuCkV2ZXJ5dGhpbmcgc3RheXMgaW4gdGhpcyBicm93c2VyLiBUcnkgYW5hbHl6aW5nIHNhbGVzLmNzdi4K",
|
| 1064 |
+
"mode": 420
|
| 1065 |
+
}
|
| 1066 |
+
],
|
| 1067 |
+
[
|
| 1068 |
+
"/workspace/hello.sh",
|
| 1069 |
+
{
|
| 1070 |
+
"type": "file",
|
| 1071 |
+
"base64": "IyEvYmluL2Jhc2gKZWNobyAiSGVsbG8gZnJvbSBQaSIK",
|
| 1072 |
+
"mode": 493
|
| 1073 |
+
}
|
| 1074 |
+
],
|
| 1075 |
+
[
|
| 1076 |
+
"/workspace/missing.txt",
|
| 1077 |
+
{
|
| 1078 |
+
"type": "file",
|
| 1079 |
+
"base64": "UmVjb3ZlcmVk",
|
| 1080 |
+
"mode": 420
|
| 1081 |
+
}
|
| 1082 |
+
],
|
| 1083 |
+
[
|
| 1084 |
+
"/workspace/report.md",
|
| 1085 |
+
{
|
| 1086 |
+
"type": "file",
|
| 1087 |
+
"base64": "IyBTYWxlcyBSZXBvcnQKClRvdGFsIHJldmVudWUgZnJvbSBzYWxlcy5jc3YgaXMgKiokMTQ0KiouCgotIE5vdGVib29rOiAxMiDDlyAkNSA9ICQ2MAotIFBlbmNpbDogMzAgw5cgJDIgPSAkNjAKLSBGb2xkZXI6IDggw5cgJDMgPSAkMjQK",
|
| 1088 |
+
"mode": 420
|
| 1089 |
+
}
|
| 1090 |
+
],
|
| 1091 |
+
[
|
| 1092 |
+
"/workspace/revenue.txt",
|
| 1093 |
+
{
|
| 1094 |
+
"type": "file",
|
| 1095 |
+
"base64": "Tm90ZWJvb2sgMTIgNSAtPiAxMiB4IDUgPSA2MApQZW5jaWwgMzAgMiAtPiAzMCB4IDIgPSA2MApGb2xkZXIgOCAzIC0+IDggeCAzID0gMjQKVE9UQUwgUkVWRU5VRTogMTQ0Cg==",
|
| 1096 |
+
"mode": 420
|
| 1097 |
+
}
|
| 1098 |
+
],
|
| 1099 |
+
[
|
| 1100 |
+
"/workspace/sales.csv",
|
| 1101 |
+
{
|
| 1102 |
+
"type": "file",
|
| 1103 |
+
"base64": "cHJvZHVjdCx1bml0cyxwcmljZQpOb3RlYm9vaywxMiw1ClBlbmNpbCwzMCwyCkZvbGRlciw4LDMK",
|
| 1104 |
+
"mode": 420
|
| 1105 |
+
}
|
| 1106 |
+
],
|
| 1107 |
+
[
|
| 1108 |
+
"/workspace/secret.txt",
|
| 1109 |
+
{
|
| 1110 |
+
"type": "file",
|
| 1111 |
+
"base64": "TE9DQUwtODcxMzljOTM=",
|
| 1112 |
+
"mode": 420
|
| 1113 |
+
}
|
| 1114 |
+
]
|
| 1115 |
+
],
|
| 1116 |
+
"messages": [
|
| 1117 |
+
{
|
| 1118 |
+
"role": "user",
|
| 1119 |
+
"content": [
|
| 1120 |
+
{
|
| 1121 |
+
"type": "text",
|
| 1122 |
+
"text": "Read missing.txt using the read tool. If it does not exist, create it with the exact text Recovered and verify it by reading the file."
|
| 1123 |
+
}
|
| 1124 |
+
],
|
| 1125 |
+
"timestamp": 1789205201302
|
| 1126 |
+
},
|
| 1127 |
+
{
|
| 1128 |
+
"role": "assistant",
|
| 1129 |
+
"api": "minicpm-webgpu",
|
| 1130 |
+
"provider": "browser",
|
| 1131 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1132 |
+
"timestamp": 1789205201302,
|
| 1133 |
+
"content": [
|
| 1134 |
+
{
|
| 1135 |
+
"type": "toolCall",
|
| 1136 |
+
"id": "8e02a505-46ac-450f-95c5-b224d3b05d84",
|
| 1137 |
+
"name": "read",
|
| 1138 |
+
"arguments": {
|
| 1139 |
+
"path": "/workspace/missing.txt"
|
| 1140 |
+
}
|
| 1141 |
+
}
|
| 1142 |
+
],
|
| 1143 |
+
"stopReason": "toolUse",
|
| 1144 |
+
"usage": {
|
| 1145 |
+
"input": 733,
|
| 1146 |
+
"output": 18,
|
| 1147 |
+
"cacheRead": 0,
|
| 1148 |
+
"cacheWrite": 0,
|
| 1149 |
+
"totalTokens": 751,
|
| 1150 |
+
"cost": {
|
| 1151 |
+
"input": 0,
|
| 1152 |
+
"output": 0,
|
| 1153 |
+
"cacheRead": 0,
|
| 1154 |
+
"cacheWrite": 0,
|
| 1155 |
+
"total": 0
|
| 1156 |
+
}
|
| 1157 |
+
}
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"role": "toolResult",
|
| 1161 |
+
"toolCallId": "8e02a505-46ac-450f-95c5-b224d3b05d84",
|
| 1162 |
+
"toolName": "read",
|
| 1163 |
+
"content": [
|
| 1164 |
+
{
|
| 1165 |
+
"type": "text",
|
| 1166 |
+
"text": "ENOENT: no such file or directory, open '/workspace/missing.txt'"
|
| 1167 |
+
}
|
| 1168 |
+
],
|
| 1169 |
+
"details": {},
|
| 1170 |
+
"isError": true,
|
| 1171 |
+
"timestamp": 1789205203568
|
| 1172 |
+
},
|
| 1173 |
+
{
|
| 1174 |
+
"role": "assistant",
|
| 1175 |
+
"api": "minicpm-webgpu",
|
| 1176 |
+
"provider": "browser",
|
| 1177 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1178 |
+
"timestamp": 1789205203568,
|
| 1179 |
+
"content": [
|
| 1180 |
+
{
|
| 1181 |
+
"type": "toolCall",
|
| 1182 |
+
"id": "31d2b97f-5289-410a-b408-e032c88816a6",
|
| 1183 |
+
"name": "write",
|
| 1184 |
+
"arguments": {
|
| 1185 |
+
"path": "/workspace/missing.txt",
|
| 1186 |
+
"content": "Recovered"
|
| 1187 |
+
}
|
| 1188 |
+
}
|
| 1189 |
+
],
|
| 1190 |
+
"stopReason": "toolUse",
|
| 1191 |
+
"usage": {
|
| 1192 |
+
"input": 796,
|
| 1193 |
+
"output": 32,
|
| 1194 |
+
"cacheRead": 0,
|
| 1195 |
+
"cacheWrite": 0,
|
| 1196 |
+
"totalTokens": 828,
|
| 1197 |
+
"cost": {
|
| 1198 |
+
"input": 0,
|
| 1199 |
+
"output": 0,
|
| 1200 |
+
"cacheRead": 0,
|
| 1201 |
+
"cacheWrite": 0,
|
| 1202 |
+
"total": 0
|
| 1203 |
+
}
|
| 1204 |
+
}
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"role": "toolResult",
|
| 1208 |
+
"toolCallId": "31d2b97f-5289-410a-b408-e032c88816a6",
|
| 1209 |
+
"toolName": "write",
|
| 1210 |
+
"content": [
|
| 1211 |
+
{
|
| 1212 |
+
"type": "text",
|
| 1213 |
+
"text": "Wrote /workspace/missing.txt"
|
| 1214 |
+
}
|
| 1215 |
+
],
|
| 1216 |
+
"details": {},
|
| 1217 |
+
"isError": false,
|
| 1218 |
+
"timestamp": 1789205206699
|
| 1219 |
+
},
|
| 1220 |
+
{
|
| 1221 |
+
"role": "assistant",
|
| 1222 |
+
"api": "minicpm-webgpu",
|
| 1223 |
+
"provider": "browser",
|
| 1224 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1225 |
+
"timestamp": 1789205206699,
|
| 1226 |
+
"content": [
|
| 1227 |
+
{
|
| 1228 |
+
"type": "toolCall",
|
| 1229 |
+
"id": "7b989515-7c8e-48e2-9f60-1523aa71f024",
|
| 1230 |
+
"name": "read",
|
| 1231 |
+
"arguments": {
|
| 1232 |
+
"path": "/workspace/missing.txt"
|
| 1233 |
+
}
|
| 1234 |
+
}
|
| 1235 |
+
],
|
| 1236 |
+
"stopReason": "toolUse",
|
| 1237 |
+
"usage": {
|
| 1238 |
+
"input": 858,
|
| 1239 |
+
"output": 18,
|
| 1240 |
+
"cacheRead": 0,
|
| 1241 |
+
"cacheWrite": 0,
|
| 1242 |
+
"totalTokens": 876,
|
| 1243 |
+
"cost": {
|
| 1244 |
+
"input": 0,
|
| 1245 |
+
"output": 0,
|
| 1246 |
+
"cacheRead": 0,
|
| 1247 |
+
"cacheWrite": 0,
|
| 1248 |
+
"total": 0
|
| 1249 |
+
}
|
| 1250 |
+
}
|
| 1251 |
+
},
|
| 1252 |
+
{
|
| 1253 |
+
"role": "toolResult",
|
| 1254 |
+
"toolCallId": "7b989515-7c8e-48e2-9f60-1523aa71f024",
|
| 1255 |
+
"toolName": "read",
|
| 1256 |
+
"content": [
|
| 1257 |
+
{
|
| 1258 |
+
"type": "text",
|
| 1259 |
+
"text": "Recovered"
|
| 1260 |
+
}
|
| 1261 |
+
],
|
| 1262 |
+
"details": {},
|
| 1263 |
+
"isError": false,
|
| 1264 |
+
"timestamp": 1789205209084
|
| 1265 |
+
},
|
| 1266 |
+
{
|
| 1267 |
+
"role": "assistant",
|
| 1268 |
+
"api": "minicpm-webgpu",
|
| 1269 |
+
"provider": "browser",
|
| 1270 |
+
"model": "Mike0021/MiniCPM5-2B-ONNX",
|
| 1271 |
+
"timestamp": 1789205209084,
|
| 1272 |
+
"content": [
|
| 1273 |
+
{
|
| 1274 |
+
"type": "text",
|
| 1275 |
+
"text": "The file `/workspace/missing.txt` did not exist, so I created it with the exact text \"Recovered\" and verified it by reading the file back, which confirms the content is \"Recovered\"."
|
| 1276 |
+
}
|
| 1277 |
+
],
|
| 1278 |
+
"stopReason": "stop",
|
| 1279 |
+
"usage": {
|
| 1280 |
+
"input": 907,
|
| 1281 |
+
"output": 43,
|
| 1282 |
+
"cacheRead": 0,
|
| 1283 |
+
"cacheWrite": 0,
|
| 1284 |
+
"totalTokens": 950,
|
| 1285 |
+
"cost": {
|
| 1286 |
+
"input": 0,
|
| 1287 |
+
"output": 0,
|
| 1288 |
+
"cacheRead": 0,
|
| 1289 |
+
"cacheWrite": 0,
|
| 1290 |
+
"total": 0
|
| 1291 |
+
}
|
| 1292 |
+
}
|
| 1293 |
+
}
|
| 1294 |
+
]
|
| 1295 |
+
}
|
| 1296 |
+
],
|
| 1297 |
+
"errors": [],
|
| 1298 |
+
"requests": [
|
| 1299 |
+
{
|
| 1300 |
+
"method": "GET",
|
| 1301 |
+
"url": "http://127.0.0.1:4173/"
|
| 1302 |
+
},
|
| 1303 |
+
{
|
| 1304 |
+
"method": "GET",
|
| 1305 |
+
"url": "http://127.0.0.1:4173/assets/index-QwDHwdWZ.js"
|
| 1306 |
+
},
|
| 1307 |
+
{
|
| 1308 |
+
"method": "GET",
|
| 1309 |
+
"url": "http://127.0.0.1:4173/assets/index-CTSRWQwn.css"
|
| 1310 |
+
},
|
| 1311 |
+
{
|
| 1312 |
+
"method": "GET",
|
| 1313 |
+
"url": "http://127.0.0.1:4173/assets/agent.worker-DqQzo9yL.js"
|
| 1314 |
+
},
|
| 1315 |
+
{
|
| 1316 |
+
"method": "GET",
|
| 1317 |
+
"url": "http://127.0.0.1:4173/runtime/ort-wasm-simd-threaded.asyncify.mjs"
|
| 1318 |
+
},
|
| 1319 |
+
{
|
| 1320 |
+
"method": "GET",
|
| 1321 |
+
"url": "http://127.0.0.1:4173/runtime/ort-wasm-simd-threaded.asyncify.wasm"
|
| 1322 |
+
},
|
| 1323 |
+
{
|
| 1324 |
+
"method": "GET",
|
| 1325 |
+
"url": "http://127.0.0.1:4173/"
|
| 1326 |
+
},
|
| 1327 |
+
{
|
| 1328 |
+
"method": "GET",
|
| 1329 |
+
"url": "http://127.0.0.1:4173/assets/index-QwDHwdWZ.js"
|
| 1330 |
+
},
|
| 1331 |
+
{
|
| 1332 |
+
"method": "GET",
|
| 1333 |
+
"url": "http://127.0.0.1:4173/assets/index-CTSRWQwn.css"
|
| 1334 |
+
},
|
| 1335 |
+
{
|
| 1336 |
+
"method": "GET",
|
| 1337 |
+
"url": "http://127.0.0.1:4173/assets/agent.worker-DqQzo9yL.js"
|
| 1338 |
+
},
|
| 1339 |
+
{
|
| 1340 |
+
"method": "GET",
|
| 1341 |
+
"url": "http://127.0.0.1:4173/favicon.svg"
|
| 1342 |
+
},
|
| 1343 |
+
{
|
| 1344 |
+
"method": "GET",
|
| 1345 |
+
"url": "http://127.0.0.1:4173/runtime/ort-wasm-simd-threaded.asyncify.mjs"
|
| 1346 |
+
},
|
| 1347 |
+
{
|
| 1348 |
+
"method": "GET",
|
| 1349 |
+
"url": "http://127.0.0.1:4173/runtime/ort-wasm-simd-threaded.asyncify.wasm"
|
| 1350 |
+
}
|
| 1351 |
+
],
|
| 1352 |
+
"coldLoadMs": 2208,
|
| 1353 |
+
"device": {
|
| 1354 |
+
"vendor": "amd",
|
| 1355 |
+
"architecture": "rdna-3",
|
| 1356 |
+
"maxStorageBufferBindingSize": 4294967292,
|
| 1357 |
+
"features": [
|
| 1358 |
+
"depth32float-stencil8",
|
| 1359 |
+
"chromium-experimental-subgroup-matrix",
|
| 1360 |
+
"rg11b10ufloat-renderable",
|
| 1361 |
+
"bgra8unorm-storage",
|
| 1362 |
+
"texture-formats-tier1",
|
| 1363 |
+
"chromium-experimental-multi-draw-indirect",
|
| 1364 |
+
"texture-compression-bc",
|
| 1365 |
+
"dual-source-blending",
|
| 1366 |
+
"core-features-and-limits",
|
| 1367 |
+
"chromium-experimental-sampling-resource-table",
|
| 1368 |
+
"chromium-experimental-timestamp-query-inside-passes",
|
| 1369 |
+
"float32-filterable",
|
| 1370 |
+
"indirect-first-instance",
|
| 1371 |
+
"float32-blendable",
|
| 1372 |
+
"subgroup-size-control",
|
| 1373 |
+
"texture-compression-unaligned",
|
| 1374 |
+
"depth-clip-control",
|
| 1375 |
+
"texture-compression-bc-sliced-3d",
|
| 1376 |
+
"clip-distances",
|
| 1377 |
+
"shader-f16",
|
| 1378 |
+
"texture-formats-tier2",
|
| 1379 |
+
"timestamp-query",
|
| 1380 |
+
"primitive-index",
|
| 1381 |
+
"texture-component-swizzle",
|
| 1382 |
+
"subgroups"
|
| 1383 |
+
],
|
| 1384 |
+
"actualLimits": {
|
| 1385 |
+
"maxStorageBufferBindingSize": 4294967292,
|
| 1386 |
+
"maxBufferSize": 4294967292
|
| 1387 |
+
}
|
| 1388 |
+
},
|
| 1389 |
+
"cancellation": {
|
| 1390 |
+
"passed": true,
|
| 1391 |
+
"completedGenerations": 0
|
| 1392 |
+
},
|
| 1393 |
+
"diagnostics": {
|
| 1394 |
+
"events": [
|
| 1395 |
+
"agent_start",
|
| 1396 |
+
"turn_start",
|
| 1397 |
+
"message_start",
|
| 1398 |
+
"message_end",
|
| 1399 |
+
"message_start",
|
| 1400 |
+
"message_update",
|
| 1401 |
+
"message_update",
|
| 1402 |
+
"message_end",
|
| 1403 |
+
"tool_execution_start",
|
| 1404 |
+
"tool_execution_end",
|
| 1405 |
+
"message_start",
|
| 1406 |
+
"message_end",
|
| 1407 |
+
"turn_end",
|
| 1408 |
+
"turn_start",
|
| 1409 |
+
"message_start",
|
| 1410 |
+
"message_update",
|
| 1411 |
+
"message_update",
|
| 1412 |
+
"message_update",
|
| 1413 |
+
"message_update",
|
| 1414 |
+
"message_update",
|
| 1415 |
+
"message_update",
|
| 1416 |
+
"message_update",
|
| 1417 |
+
"message_update",
|
| 1418 |
+
"message_update",
|
| 1419 |
+
"message_end",
|
| 1420 |
+
"turn_end",
|
| 1421 |
+
"agent_end",
|
| 1422 |
+
"agent_start",
|
| 1423 |
+
"turn_start",
|
| 1424 |
+
"message_start",
|
| 1425 |
+
"message_end",
|
| 1426 |
+
"message_start",
|
| 1427 |
+
"message_update",
|
| 1428 |
+
"message_update",
|
| 1429 |
+
"message_end",
|
| 1430 |
+
"tool_execution_start",
|
| 1431 |
+
"tool_execution_end",
|
| 1432 |
+
"message_start",
|
| 1433 |
+
"message_end",
|
| 1434 |
+
"turn_end",
|
| 1435 |
+
"turn_start",
|
| 1436 |
+
"message_start",
|
| 1437 |
+
"message_update",
|
| 1438 |
+
"message_update",
|
| 1439 |
+
"message_end",
|
| 1440 |
+
"tool_execution_start",
|
| 1441 |
+
"tool_execution_end",
|
| 1442 |
+
"message_start",
|
| 1443 |
+
"message_end",
|
| 1444 |
+
"turn_end",
|
| 1445 |
+
"turn_start",
|
| 1446 |
+
"message_start",
|
| 1447 |
+
"message_update",
|
| 1448 |
+
"message_update",
|
| 1449 |
+
"message_end",
|
| 1450 |
+
"tool_execution_start",
|
| 1451 |
+
"tool_execution_end",
|
| 1452 |
+
"message_start",
|
| 1453 |
+
"message_end",
|
| 1454 |
+
"turn_end",
|
| 1455 |
+
"turn_start",
|
| 1456 |
+
"message_start",
|
| 1457 |
+
"message_update",
|
| 1458 |
+
"message_update",
|
| 1459 |
+
"message_end",
|
| 1460 |
+
"tool_execution_start",
|
| 1461 |
+
"tool_execution_end",
|
| 1462 |
+
"message_start",
|
| 1463 |
+
"message_end",
|
| 1464 |
+
"turn_end",
|
| 1465 |
+
"turn_start",
|
| 1466 |
+
"message_start",
|
| 1467 |
+
"message_update",
|
| 1468 |
+
"message_update",
|
| 1469 |
+
"message_update",
|
| 1470 |
+
"message_update",
|
| 1471 |
+
"message_update",
|
| 1472 |
+
"message_update",
|
| 1473 |
+
"message_update",
|
| 1474 |
+
"message_update",
|
| 1475 |
+
"message_update",
|
| 1476 |
+
"message_update",
|
| 1477 |
+
"message_update",
|
| 1478 |
+
"message_update",
|
| 1479 |
+
"message_update",
|
| 1480 |
+
"message_update",
|
| 1481 |
+
"message_update",
|
| 1482 |
+
"message_update",
|
| 1483 |
+
"message_update",
|
| 1484 |
+
"message_update",
|
| 1485 |
+
"message_update",
|
| 1486 |
+
"message_update",
|
| 1487 |
+
"message_end",
|
| 1488 |
+
"turn_end",
|
| 1489 |
+
"agent_end",
|
| 1490 |
+
"agent_start",
|
| 1491 |
+
"turn_start",
|
| 1492 |
+
"message_start",
|
| 1493 |
+
"message_end",
|
| 1494 |
+
"message_start",
|
| 1495 |
+
"message_update",
|
| 1496 |
+
"message_update",
|
| 1497 |
+
"message_end",
|
| 1498 |
+
"tool_execution_start",
|
| 1499 |
+
"tool_execution_end",
|
| 1500 |
+
"message_start",
|
| 1501 |
+
"message_end",
|
| 1502 |
+
"turn_end",
|
| 1503 |
+
"turn_start",
|
| 1504 |
+
"message_start",
|
| 1505 |
+
"message_update",
|
| 1506 |
+
"message_update",
|
| 1507 |
+
"message_end",
|
| 1508 |
+
"tool_execution_start",
|
| 1509 |
+
"tool_execution_end",
|
| 1510 |
+
"message_start",
|
| 1511 |
+
"message_end",
|
| 1512 |
+
"turn_end",
|
| 1513 |
+
"turn_start",
|
| 1514 |
+
"message_start",
|
| 1515 |
+
"message_update",
|
| 1516 |
+
"message_update",
|
| 1517 |
+
"message_update",
|
| 1518 |
+
"message_update",
|
| 1519 |
+
"message_update",
|
| 1520 |
+
"message_update",
|
| 1521 |
+
"message_update",
|
| 1522 |
+
"message_update",
|
| 1523 |
+
"message_update",
|
| 1524 |
+
"message_update",
|
| 1525 |
+
"message_update",
|
| 1526 |
+
"message_update",
|
| 1527 |
+
"message_update",
|
| 1528 |
+
"message_update",
|
| 1529 |
+
"message_update",
|
| 1530 |
+
"message_update",
|
| 1531 |
+
"message_update",
|
| 1532 |
+
"message_update",
|
| 1533 |
+
"message_update",
|
| 1534 |
+
"message_update",
|
| 1535 |
+
"message_update",
|
| 1536 |
+
"message_update",
|
| 1537 |
+
"message_update",
|
| 1538 |
+
"message_update",
|
| 1539 |
+
"message_update",
|
| 1540 |
+
"message_end",
|
| 1541 |
+
"turn_end",
|
| 1542 |
+
"agent_end",
|
| 1543 |
+
"agent_start",
|
| 1544 |
+
"turn_start",
|
| 1545 |
+
"message_start",
|
| 1546 |
+
"message_end",
|
| 1547 |
+
"message_start",
|
| 1548 |
+
"message_update",
|
| 1549 |
+
"message_update",
|
| 1550 |
+
"message_end",
|
| 1551 |
+
"tool_execution_start",
|
| 1552 |
+
"tool_execution_end",
|
| 1553 |
+
"message_start",
|
| 1554 |
+
"message_end",
|
| 1555 |
+
"turn_end",
|
| 1556 |
+
"turn_start",
|
| 1557 |
+
"message_start",
|
| 1558 |
+
"message_update",
|
| 1559 |
+
"message_update",
|
| 1560 |
+
"message_end",
|
| 1561 |
+
"tool_execution_start",
|
| 1562 |
+
"tool_execution_end",
|
| 1563 |
+
"message_start",
|
| 1564 |
+
"message_end",
|
| 1565 |
+
"turn_end",
|
| 1566 |
+
"turn_start",
|
| 1567 |
+
"message_start",
|
| 1568 |
+
"message_update",
|
| 1569 |
+
"message_update",
|
| 1570 |
+
"message_end",
|
| 1571 |
+
"tool_execution_start",
|
| 1572 |
+
"tool_execution_end",
|
| 1573 |
+
"message_start",
|
| 1574 |
+
"message_end",
|
| 1575 |
+
"turn_end",
|
| 1576 |
+
"turn_start",
|
| 1577 |
+
"message_start",
|
| 1578 |
+
"message_update",
|
| 1579 |
+
"message_update",
|
| 1580 |
+
"message_update",
|
| 1581 |
+
"message_update",
|
| 1582 |
+
"message_update",
|
| 1583 |
+
"message_update",
|
| 1584 |
+
"message_update",
|
| 1585 |
+
"message_update",
|
| 1586 |
+
"message_update",
|
| 1587 |
+
"message_update",
|
| 1588 |
+
"message_update",
|
| 1589 |
+
"message_end",
|
| 1590 |
+
"turn_end",
|
| 1591 |
+
"agent_end",
|
| 1592 |
+
"agent_start",
|
| 1593 |
+
"turn_start",
|
| 1594 |
+
"message_start",
|
| 1595 |
+
"message_end",
|
| 1596 |
+
"message_start",
|
| 1597 |
+
"message_update",
|
| 1598 |
+
"message_update",
|
| 1599 |
+
"message_end",
|
| 1600 |
+
"tool_execution_start",
|
| 1601 |
+
"tool_execution_end",
|
| 1602 |
+
"message_start",
|
| 1603 |
+
"message_end",
|
| 1604 |
+
"turn_end",
|
| 1605 |
+
"turn_start",
|
| 1606 |
+
"message_start",
|
| 1607 |
+
"message_update",
|
| 1608 |
+
"message_update",
|
| 1609 |
+
"message_end",
|
| 1610 |
+
"tool_execution_start",
|
| 1611 |
+
"tool_execution_end",
|
| 1612 |
+
"message_start",
|
| 1613 |
+
"message_end",
|
| 1614 |
+
"turn_end",
|
| 1615 |
+
"turn_start",
|
| 1616 |
+
"message_start",
|
| 1617 |
+
"message_update",
|
| 1618 |
+
"message_update",
|
| 1619 |
+
"message_end",
|
| 1620 |
+
"tool_execution_start",
|
| 1621 |
+
"tool_execution_end",
|
| 1622 |
+
"message_start",
|
| 1623 |
+
"message_end",
|
| 1624 |
+
"turn_end",
|
| 1625 |
+
"turn_start",
|
| 1626 |
+
"message_start",
|
| 1627 |
+
"message_update",
|
| 1628 |
+
"message_update",
|
| 1629 |
+
"message_update",
|
| 1630 |
+
"message_update",
|
| 1631 |
+
"message_update",
|
| 1632 |
+
"message_update",
|
| 1633 |
+
"message_update",
|
| 1634 |
+
"message_update",
|
| 1635 |
+
"message_update",
|
| 1636 |
+
"message_update",
|
| 1637 |
+
"message_update",
|
| 1638 |
+
"message_update",
|
| 1639 |
+
"message_update",
|
| 1640 |
+
"message_update",
|
| 1641 |
+
"message_update",
|
| 1642 |
+
"message_update",
|
| 1643 |
+
"message_update",
|
| 1644 |
+
"message_update",
|
| 1645 |
+
"message_update",
|
| 1646 |
+
"message_update",
|
| 1647 |
+
"message_update",
|
| 1648 |
+
"message_update",
|
| 1649 |
+
"message_update",
|
| 1650 |
+
"message_update",
|
| 1651 |
+
"message_update",
|
| 1652 |
+
"message_update",
|
| 1653 |
+
"message_update",
|
| 1654 |
+
"message_update",
|
| 1655 |
+
"message_update",
|
| 1656 |
+
"message_update",
|
| 1657 |
+
"message_update",
|
| 1658 |
+
"message_end",
|
| 1659 |
+
"turn_end",
|
| 1660 |
+
"agent_end",
|
| 1661 |
+
"agent_start",
|
| 1662 |
+
"turn_start",
|
| 1663 |
+
"message_start",
|
| 1664 |
+
"message_end",
|
| 1665 |
+
"message_start",
|
| 1666 |
+
"message_update",
|
| 1667 |
+
"message_update",
|
| 1668 |
+
"message_end",
|
| 1669 |
+
"turn_end",
|
| 1670 |
+
"agent_end"
|
| 1671 |
+
],
|
| 1672 |
+
"generations": [
|
| 1673 |
+
{
|
| 1674 |
+
"type": "generation",
|
| 1675 |
+
"raw": "<function name=\"read\"><param name=\"path\">/workspace/secret.txt</param></function><|im_end|>",
|
| 1676 |
+
"inputTokens": 717,
|
| 1677 |
+
"outputTokens": 18,
|
| 1678 |
+
"elapsedMs": 2281.2000000029802,
|
| 1679 |
+
"firstTokenMs": 1406.2000000029802,
|
| 1680 |
+
"stopReason": "toolUse"
|
| 1681 |
+
},
|
| 1682 |
+
{
|
| 1683 |
+
"type": "generation",
|
| 1684 |
+
"raw": "The file secret.txt contains the text: `LOCAL-87139c93`<|im_end|>",
|
| 1685 |
+
"inputTokens": 771,
|
| 1686 |
+
"outputTokens": 18,
|
| 1687 |
+
"elapsedMs": 2366.8000000044703,
|
| 1688 |
+
"firstTokenMs": 1490.8999999985099,
|
| 1689 |
+
"stopReason": "stop"
|
| 1690 |
+
},
|
| 1691 |
+
{
|
| 1692 |
+
"type": "generation",
|
| 1693 |
+
"raw": "<function name=\"read\"><param name=\"path\">/workspace/sales.csv</param></function><|im_end|>",
|
| 1694 |
+
"inputTokens": 726,
|
| 1695 |
+
"outputTokens": 18,
|
| 1696 |
+
"elapsedMs": 2235.0999999940395,
|
| 1697 |
+
"firstTokenMs": 1887.8999999985099,
|
| 1698 |
+
"stopReason": "toolUse"
|
| 1699 |
+
},
|
| 1700 |
+
{
|
| 1701 |
+
"type": "generation",
|
| 1702 |
+
"raw": "<function name=\"bash\"><param name=\"command\"><![CDATA[awk -F',' 'NR>1 {rev=$2*$3; total+=rev; print $1,$2,$3,\"->\",$2,\"x\",$3,\"=\",rev} END {print \"TOTAL REVENUE:\", total}' sales.csv > revenue.txt && cat revenue.txt]]></param></function><|im_end|>",
|
| 1703 |
+
"inputTokens": 798,
|
| 1704 |
+
"outputTokens": 78,
|
| 1705 |
+
"elapsedMs": 5117.39999999851,
|
| 1706 |
+
"firstTokenMs": 1941.8000000044703,
|
| 1707 |
+
"stopReason": "toolUse"
|
| 1708 |
+
},
|
| 1709 |
+
{
|
| 1710 |
+
"type": "generation",
|
| 1711 |
+
"raw": "<function name=\"write\"><param name=\"path\">report.md</param><param name=\"content\"><![CDATA[# Sales Report\n\nTotal revenue from sales.csv is **$144**.\n\n- Notebook: 12 Γ $5 = $60\n- Pencil: 30 Γ $2 = $60\n- Folder: 8 Γ $3 = $24\n]]></param></function><|im_end|>",
|
| 1712 |
+
"inputTokens": 964,
|
| 1713 |
+
"outputTokens": 79,
|
| 1714 |
+
"elapsedMs": 4767.19999999553,
|
| 1715 |
+
"firstTokenMs": 1636.7999999970198,
|
| 1716 |
+
"stopReason": "toolUse"
|
| 1717 |
+
},
|
| 1718 |
+
{
|
| 1719 |
+
"type": "generation",
|
| 1720 |
+
"raw": "<function name=\"read\"><param name=\"path\">/workspace/report.md</param></function><|im_end|>",
|
| 1721 |
+
"inputTokens": 1079,
|
| 1722 |
+
"outputTokens": 18,
|
| 1723 |
+
"elapsedMs": 2612.2999999970198,
|
| 1724 |
+
"firstTokenMs": 1691.6000000014901,
|
| 1725 |
+
"stopReason": "toolUse"
|
| 1726 |
+
},
|
| 1727 |
+
{
|
| 1728 |
+
"type": "generation",
|
| 1729 |
+
"raw": "Done. The report is saved at `/workspace/report.md` with total revenue of $144 (Notebook $60, Pencil $60, Folder $24).<|im_end|>",
|
| 1730 |
+
"inputTokens": 1180,
|
| 1731 |
+
"outputTokens": 35,
|
| 1732 |
+
"elapsedMs": 3708.8000000044703,
|
| 1733 |
+
"firstTokenMs": 2401.2000000029802,
|
| 1734 |
+
"stopReason": "stop"
|
| 1735 |
+
},
|
| 1736 |
+
{
|
| 1737 |
+
"type": "generation",
|
| 1738 |
+
"raw": "<function name=\"write\"><param name=\"path\">/workspace/hello.sh</param><param name=\"content\"><![CDATA[#!/bin/bash\necho \"Hello from the browser\"\n]]></param></function><|im_end|>",
|
| 1739 |
+
"inputTokens": 725,
|
| 1740 |
+
"outputTokens": 43,
|
| 1741 |
+
"elapsedMs": 3235.2000000029802,
|
| 1742 |
+
"firstTokenMs": 1865.8999999985099,
|
| 1743 |
+
"stopReason": "toolUse"
|
| 1744 |
+
},
|
| 1745 |
+
{
|
| 1746 |
+
"type": "generation",
|
| 1747 |
+
"raw": "<function name=\"bash\"><param name=\"command\"><![CDATA[chmod +x /workspace/hello.sh && /workspace/hello.sh]]></param></function><|im_end|>",
|
| 1748 |
+
"inputTokens": 804,
|
| 1749 |
+
"outputTokens": 34,
|
| 1750 |
+
"elapsedMs": 3177.10000000149,
|
| 1751 |
+
"firstTokenMs": 1730,
|
| 1752 |
+
"stopReason": "toolUse"
|
| 1753 |
+
},
|
| 1754 |
+
{
|
| 1755 |
+
"type": "generation",
|
| 1756 |
+
"raw": "The script `/workspace/hello.sh` prints \"Hello from the browser\". Running it outputs:\n\n```\nHello from the browser\n```\n\nwith exit code 0.<|im_end|>",
|
| 1757 |
+
"inputTokens": 878,
|
| 1758 |
+
"outputTokens": 35,
|
| 1759 |
+
"elapsedMs": 3301.2000000029802,
|
| 1760 |
+
"firstTokenMs": 1570.2000000029802,
|
| 1761 |
+
"stopReason": "stop"
|
| 1762 |
+
},
|
| 1763 |
+
{
|
| 1764 |
+
"type": "generation",
|
| 1765 |
+
"raw": "<function name=\"read\"><param name=\"path\">hello.sh</param></function><|im_end|>",
|
| 1766 |
+
"inputTokens": 731,
|
| 1767 |
+
"outputTokens": 15,
|
| 1768 |
+
"elapsedMs": 2216.2000000029802,
|
| 1769 |
+
"firstTokenMs": 1420,
|
| 1770 |
+
"stopReason": "toolUse"
|
| 1771 |
+
},
|
| 1772 |
+
{
|
| 1773 |
+
"type": "generation",
|
| 1774 |
+
"raw": "<function name=\"edit\"><param name=\"path\">hello.sh</param><param name=\"oldText\">echo \"Hello from the browser\"</param><param name=\"newText\">echo \"Hello from Pi\"</param></function><|im_end|>",
|
| 1775 |
+
"inputTokens": 790,
|
| 1776 |
+
"outputTokens": 42,
|
| 1777 |
+
"elapsedMs": 3395.39999999851,
|
| 1778 |
+
"firstTokenMs": 1494.7999999970198,
|
| 1779 |
+
"stopReason": "toolUse"
|
| 1780 |
+
},
|
| 1781 |
+
{
|
| 1782 |
+
"type": "generation",
|
| 1783 |
+
"raw": "<function name=\"bash\"><param name=\"command\"><![CDATA[chmod +x hello.sh && ./hello.sh]]></param></function><|im_end|>",
|
| 1784 |
+
"inputTokens": 867,
|
| 1785 |
+
"outputTokens": 29,
|
| 1786 |
+
"elapsedMs": 2656.10000000149,
|
| 1787 |
+
"firstTokenMs": 1528.3000000044703,
|
| 1788 |
+
"stopReason": "toolUse"
|
| 1789 |
+
},
|
| 1790 |
+
{
|
| 1791 |
+
"type": "generation",
|
| 1792 |
+
"raw": "The script now outputs \"Hello from Pi\" when run.<|im_end|>",
|
| 1793 |
+
"inputTokens": 935,
|
| 1794 |
+
"outputTokens": 13,
|
| 1795 |
+
"elapsedMs": 2394.2000000029802,
|
| 1796 |
+
"firstTokenMs": 2131.8000000044703,
|
| 1797 |
+
"stopReason": "stop"
|
| 1798 |
+
},
|
| 1799 |
+
{
|
| 1800 |
+
"type": "generation",
|
| 1801 |
+
"raw": "<function name=\"read\"><param name=\"path\">/workspace/missing.txt</param></function><|im_end|>",
|
| 1802 |
+
"inputTokens": 733,
|
| 1803 |
+
"outputTokens": 18,
|
| 1804 |
+
"elapsedMs": 2262.4000000059605,
|
| 1805 |
+
"firstTokenMs": 1894.2000000029802,
|
| 1806 |
+
"stopReason": "toolUse"
|
| 1807 |
+
},
|
| 1808 |
+
{
|
| 1809 |
+
"type": "generation",
|
| 1810 |
+
"raw": "<function name=\"write\"><param name=\"path\">/workspace/missing.txt</param><param name=\"content\"><![CDATA[Recovered]]></param></function><|im_end|>",
|
| 1811 |
+
"inputTokens": 796,
|
| 1812 |
+
"outputTokens": 32,
|
| 1813 |
+
"elapsedMs": 3127.60000000149,
|
| 1814 |
+
"firstTokenMs": 1983.5,
|
| 1815 |
+
"stopReason": "toolUse"
|
| 1816 |
+
},
|
| 1817 |
+
{
|
| 1818 |
+
"type": "generation",
|
| 1819 |
+
"raw": "<function name=\"read\"><param name=\"path\">/workspace/missing.txt</param></function><|im_end|>",
|
| 1820 |
+
"inputTokens": 858,
|
| 1821 |
+
"outputTokens": 18,
|
| 1822 |
+
"elapsedMs": 2380.7000000029802,
|
| 1823 |
+
"firstTokenMs": 1537,
|
| 1824 |
+
"stopReason": "toolUse"
|
| 1825 |
+
},
|
| 1826 |
+
{
|
| 1827 |
+
"type": "generation",
|
| 1828 |
+
"raw": "The file `/workspace/missing.txt` did not exist, so I created it with the exact text \"Recovered\" and verified it by reading the file back, which confirms the content is \"Recovered\".<|im_end|>",
|
| 1829 |
+
"inputTokens": 907,
|
| 1830 |
+
"outputTokens": 43,
|
| 1831 |
+
"elapsedMs": 3525,
|
| 1832 |
+
"firstTokenMs": 1576.4000000059605,
|
| 1833 |
+
"stopReason": "stop"
|
| 1834 |
+
}
|
| 1835 |
+
],
|
| 1836 |
+
"device": {
|
| 1837 |
+
"vendor": "amd",
|
| 1838 |
+
"architecture": "rdna-3",
|
| 1839 |
+
"maxStorageBufferBindingSize": 4294967292,
|
| 1840 |
+
"features": [
|
| 1841 |
+
"depth32float-stencil8",
|
| 1842 |
+
"chromium-experimental-subgroup-matrix",
|
| 1843 |
+
"rg11b10ufloat-renderable",
|
| 1844 |
+
"bgra8unorm-storage",
|
| 1845 |
+
"texture-formats-tier1",
|
| 1846 |
+
"chromium-experimental-multi-draw-indirect",
|
| 1847 |
+
"texture-compression-bc",
|
| 1848 |
+
"dual-source-blending",
|
| 1849 |
+
"core-features-and-limits",
|
| 1850 |
+
"chromium-experimental-sampling-resource-table",
|
| 1851 |
+
"chromium-experimental-timestamp-query-inside-passes",
|
| 1852 |
+
"float32-filterable",
|
| 1853 |
+
"indirect-first-instance",
|
| 1854 |
+
"float32-blendable",
|
| 1855 |
+
"subgroup-size-control",
|
| 1856 |
+
"texture-compression-unaligned",
|
| 1857 |
+
"depth-clip-control",
|
| 1858 |
+
"texture-compression-bc-sliced-3d",
|
| 1859 |
+
"clip-distances",
|
| 1860 |
+
"shader-f16",
|
| 1861 |
+
"texture-formats-tier2",
|
| 1862 |
+
"timestamp-query",
|
| 1863 |
+
"primitive-index",
|
| 1864 |
+
"texture-component-swizzle",
|
| 1865 |
+
"subgroups"
|
| 1866 |
+
],
|
| 1867 |
+
"actualLimits": {
|
| 1868 |
+
"maxStorageBufferBindingSize": 4294967292,
|
| 1869 |
+
"maxBufferSize": 4294967292
|
| 1870 |
+
}
|
| 1871 |
+
}
|
| 1872 |
+
},
|
| 1873 |
+
"editorAndShell": true,
|
| 1874 |
+
"requestsDuringOfflineTasks": [],
|
| 1875 |
+
"warmLoadMs": 2057,
|
| 1876 |
+
"reloadWeightRequests": [],
|
| 1877 |
+
"mobileLayout": "390 Γ 844; desktop GPU, not a mobile hardware test",
|
| 1878 |
+
"passed": true
|
| 1879 |
+
}
|
validation/agent-terminal-dark-render-dev.json
ADDED
|
@@ -0,0 +1,363 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"date": "2026-09-12T09:26:17.031Z",
|
| 3 |
+
"url": "http://127.0.0.1:5173/",
|
| 4 |
+
"kind": "synthetic rendering fixtures; no model inference",
|
| 5 |
+
"errors": [],
|
| 6 |
+
"checks": [
|
| 7 |
+
"Upstream Pi user/assistant indentation, inner padding and turn separators",
|
| 8 |
+
"Upstream tool Box(1,1) padding and separator; no trailing empty output rows",
|
| 9 |
+
"CJK, emoji, ZWJ and combining accents agree with Pi cell widths",
|
| 10 |
+
"Long tool results collapse/expand without losing content",
|
| 11 |
+
"Seven viewports: Markdown, tool cards, footer/controls, wrapping and 4.5:1 visible text contrast",
|
| 12 |
+
"60-turn transcript and streamed updates preserve scroll position",
|
| 13 |
+
"Multiline draft remains visible at keyboard-sized height"
|
| 14 |
+
],
|
| 15 |
+
"sizes": [
|
| 16 |
+
{
|
| 17 |
+
"name": "1440x1000",
|
| 18 |
+
"viewport": {
|
| 19 |
+
"width": 1440,
|
| 20 |
+
"height": 1000
|
| 21 |
+
},
|
| 22 |
+
"cols": 92,
|
| 23 |
+
"rows": 41,
|
| 24 |
+
"panel": {
|
| 25 |
+
"x": 14,
|
| 26 |
+
"y": 137.734375,
|
| 27 |
+
"width": 758.875,
|
| 28 |
+
"height": 854.265625,
|
| 29 |
+
"right": 772.875,
|
| 30 |
+
"bottom": 992
|
| 31 |
+
},
|
| 32 |
+
"terminal": {
|
| 33 |
+
"x": 23,
|
| 34 |
+
"y": 146.734375,
|
| 35 |
+
"width": 740.875,
|
| 36 |
+
"height": 781.46875,
|
| 37 |
+
"right": 763.875,
|
| 38 |
+
"bottom": 928.203125
|
| 39 |
+
},
|
| 40 |
+
"screen": {
|
| 41 |
+
"x": 23,
|
| 42 |
+
"y": 146.734375,
|
| 43 |
+
"width": 720,
|
| 44 |
+
"height": 779,
|
| 45 |
+
"right": 743,
|
| 46 |
+
"bottom": 925.734375
|
| 47 |
+
},
|
| 48 |
+
"controls": {
|
| 49 |
+
"x": 23,
|
| 50 |
+
"y": 928.203125,
|
| 51 |
+
"width": 740.875,
|
| 52 |
+
"height": 36.796875,
|
| 53 |
+
"right": 763.875,
|
| 54 |
+
"bottom": 965
|
| 55 |
+
},
|
| 56 |
+
"overflow": false,
|
| 57 |
+
"background": "rgb(24, 24, 30)"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"name": "1024x768",
|
| 61 |
+
"viewport": {
|
| 62 |
+
"width": 1024,
|
| 63 |
+
"height": 768
|
| 64 |
+
},
|
| 65 |
+
"cols": 63,
|
| 66 |
+
"rows": 28,
|
| 67 |
+
"panel": {
|
| 68 |
+
"x": 14,
|
| 69 |
+
"y": 137.734375,
|
| 70 |
+
"width": 531.5625,
|
| 71 |
+
"height": 622.265625,
|
| 72 |
+
"right": 545.5625,
|
| 73 |
+
"bottom": 760
|
| 74 |
+
},
|
| 75 |
+
"terminal": {
|
| 76 |
+
"x": 23,
|
| 77 |
+
"y": 146.734375,
|
| 78 |
+
"width": 513.5625,
|
| 79 |
+
"height": 549.46875,
|
| 80 |
+
"right": 536.5625,
|
| 81 |
+
"bottom": 696.203125
|
| 82 |
+
},
|
| 83 |
+
"screen": {
|
| 84 |
+
"x": 23,
|
| 85 |
+
"y": 146.734375,
|
| 86 |
+
"width": 493,
|
| 87 |
+
"height": 532,
|
| 88 |
+
"right": 516,
|
| 89 |
+
"bottom": 678.734375
|
| 90 |
+
},
|
| 91 |
+
"controls": {
|
| 92 |
+
"x": 23,
|
| 93 |
+
"y": 696.203125,
|
| 94 |
+
"width": 513.5625,
|
| 95 |
+
"height": 36.796875,
|
| 96 |
+
"right": 536.5625,
|
| 97 |
+
"bottom": 733
|
| 98 |
+
},
|
| 99 |
+
"overflow": false,
|
| 100 |
+
"background": "rgb(24, 24, 30)"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"name": "851x640",
|
| 104 |
+
"viewport": {
|
| 105 |
+
"width": 851,
|
| 106 |
+
"height": 640
|
| 107 |
+
},
|
| 108 |
+
"cols": 51,
|
| 109 |
+
"rows": 22,
|
| 110 |
+
"panel": {
|
| 111 |
+
"x": 14,
|
| 112 |
+
"y": 137.734375,
|
| 113 |
+
"width": 437.015625,
|
| 114 |
+
"height": 494.265625,
|
| 115 |
+
"right": 451.015625,
|
| 116 |
+
"bottom": 632
|
| 117 |
+
},
|
| 118 |
+
"terminal": {
|
| 119 |
+
"x": 23,
|
| 120 |
+
"y": 146.734375,
|
| 121 |
+
"width": 419.015625,
|
| 122 |
+
"height": 421.46875,
|
| 123 |
+
"right": 442.015625,
|
| 124 |
+
"bottom": 568.203125
|
| 125 |
+
},
|
| 126 |
+
"screen": {
|
| 127 |
+
"x": 23,
|
| 128 |
+
"y": 146.734375,
|
| 129 |
+
"width": 399,
|
| 130 |
+
"height": 418,
|
| 131 |
+
"right": 422,
|
| 132 |
+
"bottom": 564.734375
|
| 133 |
+
},
|
| 134 |
+
"controls": {
|
| 135 |
+
"x": 23,
|
| 136 |
+
"y": 568.203125,
|
| 137 |
+
"width": 419.015625,
|
| 138 |
+
"height": 36.796875,
|
| 139 |
+
"right": 442.015625,
|
| 140 |
+
"bottom": 605
|
| 141 |
+
},
|
| 142 |
+
"overflow": false,
|
| 143 |
+
"background": "rgb(24, 24, 30)"
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"name": "850x640",
|
| 147 |
+
"viewport": {
|
| 148 |
+
"width": 850,
|
| 149 |
+
"height": 640
|
| 150 |
+
},
|
| 151 |
+
"cols": 102,
|
| 152 |
+
"rows": 22,
|
| 153 |
+
"panel": {
|
| 154 |
+
"x": 10,
|
| 155 |
+
"y": 133.734375,
|
| 156 |
+
"width": 830,
|
| 157 |
+
"height": 496.265625,
|
| 158 |
+
"right": 840,
|
| 159 |
+
"bottom": 630
|
| 160 |
+
},
|
| 161 |
+
"terminal": {
|
| 162 |
+
"x": 19,
|
| 163 |
+
"y": 142.734375,
|
| 164 |
+
"width": 812,
|
| 165 |
+
"height": 424.46875,
|
| 166 |
+
"right": 831,
|
| 167 |
+
"bottom": 567.203125
|
| 168 |
+
},
|
| 169 |
+
"screen": {
|
| 170 |
+
"x": 19,
|
| 171 |
+
"y": 142.734375,
|
| 172 |
+
"width": 798,
|
| 173 |
+
"height": 418,
|
| 174 |
+
"right": 817,
|
| 175 |
+
"bottom": 560.734375
|
| 176 |
+
},
|
| 177 |
+
"controls": {
|
| 178 |
+
"x": 19,
|
| 179 |
+
"y": 567.203125,
|
| 180 |
+
"width": 812,
|
| 181 |
+
"height": 36.796875,
|
| 182 |
+
"right": 831,
|
| 183 |
+
"bottom": 604
|
| 184 |
+
},
|
| 185 |
+
"overflow": false,
|
| 186 |
+
"background": "rgb(24, 24, 30)"
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"name": "390x844",
|
| 190 |
+
"viewport": {
|
| 191 |
+
"width": 390,
|
| 192 |
+
"height": 844
|
| 193 |
+
},
|
| 194 |
+
"cols": 43,
|
| 195 |
+
"rows": 32,
|
| 196 |
+
"panel": {
|
| 197 |
+
"x": 10,
|
| 198 |
+
"y": 149.671875,
|
| 199 |
+
"width": 370,
|
| 200 |
+
"height": 684.328125,
|
| 201 |
+
"right": 380,
|
| 202 |
+
"bottom": 834
|
| 203 |
+
},
|
| 204 |
+
"terminal": {
|
| 205 |
+
"x": 19,
|
| 206 |
+
"y": 158.671875,
|
| 207 |
+
"width": 352,
|
| 208 |
+
"height": 612.53125,
|
| 209 |
+
"right": 371,
|
| 210 |
+
"bottom": 771.203125
|
| 211 |
+
},
|
| 212 |
+
"screen": {
|
| 213 |
+
"x": 19,
|
| 214 |
+
"y": 158.671875,
|
| 215 |
+
"width": 337,
|
| 216 |
+
"height": 608,
|
| 217 |
+
"right": 356,
|
| 218 |
+
"bottom": 766.671875
|
| 219 |
+
},
|
| 220 |
+
"controls": {
|
| 221 |
+
"x": 19,
|
| 222 |
+
"y": 771.203125,
|
| 223 |
+
"width": 352,
|
| 224 |
+
"height": 36.796875,
|
| 225 |
+
"right": 371,
|
| 226 |
+
"bottom": 808
|
| 227 |
+
},
|
| 228 |
+
"overflow": false,
|
| 229 |
+
"background": "rgb(24, 24, 30)"
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"name": "320x568",
|
| 233 |
+
"viewport": {
|
| 234 |
+
"width": 320,
|
| 235 |
+
"height": 568
|
| 236 |
+
},
|
| 237 |
+
"cols": 34,
|
| 238 |
+
"rows": 17,
|
| 239 |
+
"panel": {
|
| 240 |
+
"x": 10,
|
| 241 |
+
"y": 149.671875,
|
| 242 |
+
"width": 300,
|
| 243 |
+
"height": 408.328125,
|
| 244 |
+
"right": 310,
|
| 245 |
+
"bottom": 558
|
| 246 |
+
},
|
| 247 |
+
"terminal": {
|
| 248 |
+
"x": 19,
|
| 249 |
+
"y": 158.671875,
|
| 250 |
+
"width": 282,
|
| 251 |
+
"height": 336.53125,
|
| 252 |
+
"right": 301,
|
| 253 |
+
"bottom": 495.203125
|
| 254 |
+
},
|
| 255 |
+
"screen": {
|
| 256 |
+
"x": 19,
|
| 257 |
+
"y": 158.671875,
|
| 258 |
+
"width": 266,
|
| 259 |
+
"height": 323,
|
| 260 |
+
"right": 285,
|
| 261 |
+
"bottom": 481.671875
|
| 262 |
+
},
|
| 263 |
+
"controls": {
|
| 264 |
+
"x": 19,
|
| 265 |
+
"y": 495.203125,
|
| 266 |
+
"width": 282,
|
| 267 |
+
"height": 36.796875,
|
| 268 |
+
"right": 301,
|
| 269 |
+
"bottom": 532
|
| 270 |
+
},
|
| 271 |
+
"overflow": false,
|
| 272 |
+
"background": "rgb(24, 24, 30)"
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"name": "390x420",
|
| 276 |
+
"viewport": {
|
| 277 |
+
"width": 390,
|
| 278 |
+
"height": 420
|
| 279 |
+
},
|
| 280 |
+
"cols": 43,
|
| 281 |
+
"rows": 9,
|
| 282 |
+
"panel": {
|
| 283 |
+
"x": 10,
|
| 284 |
+
"y": 149.671875,
|
| 285 |
+
"width": 370,
|
| 286 |
+
"height": 260.328125,
|
| 287 |
+
"right": 380,
|
| 288 |
+
"bottom": 410
|
| 289 |
+
},
|
| 290 |
+
"terminal": {
|
| 291 |
+
"x": 19,
|
| 292 |
+
"y": 158.671875,
|
| 293 |
+
"width": 352,
|
| 294 |
+
"height": 188.53125,
|
| 295 |
+
"right": 371,
|
| 296 |
+
"bottom": 347.203125
|
| 297 |
+
},
|
| 298 |
+
"screen": {
|
| 299 |
+
"x": 19,
|
| 300 |
+
"y": 158.671875,
|
| 301 |
+
"width": 337,
|
| 302 |
+
"height": 171,
|
| 303 |
+
"right": 356,
|
| 304 |
+
"bottom": 329.671875
|
| 305 |
+
},
|
| 306 |
+
"controls": {
|
| 307 |
+
"x": 19,
|
| 308 |
+
"y": 347.203125,
|
| 309 |
+
"width": 352,
|
| 310 |
+
"height": 36.796875,
|
| 311 |
+
"right": 371,
|
| 312 |
+
"bottom": 384
|
| 313 |
+
},
|
| 314 |
+
"overflow": false,
|
| 315 |
+
"background": "rgb(24, 24, 30)"
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"name": "multiline-keyboard-height",
|
| 319 |
+
"viewport": {
|
| 320 |
+
"width": 390,
|
| 321 |
+
"height": 420
|
| 322 |
+
},
|
| 323 |
+
"cols": 43,
|
| 324 |
+
"rows": 9,
|
| 325 |
+
"panel": {
|
| 326 |
+
"x": 10,
|
| 327 |
+
"y": 149.671875,
|
| 328 |
+
"width": 370,
|
| 329 |
+
"height": 260.328125,
|
| 330 |
+
"right": 380,
|
| 331 |
+
"bottom": 410
|
| 332 |
+
},
|
| 333 |
+
"terminal": {
|
| 334 |
+
"x": 19,
|
| 335 |
+
"y": 158.671875,
|
| 336 |
+
"width": 352,
|
| 337 |
+
"height": 188.53125,
|
| 338 |
+
"right": 371,
|
| 339 |
+
"bottom": 347.203125
|
| 340 |
+
},
|
| 341 |
+
"screen": {
|
| 342 |
+
"x": 19,
|
| 343 |
+
"y": 158.671875,
|
| 344 |
+
"width": 337,
|
| 345 |
+
"height": 171,
|
| 346 |
+
"right": 356,
|
| 347 |
+
"bottom": 329.671875
|
| 348 |
+
},
|
| 349 |
+
"controls": {
|
| 350 |
+
"x": 19,
|
| 351 |
+
"y": 347.203125,
|
| 352 |
+
"width": 352,
|
| 353 |
+
"height": 36.796875,
|
| 354 |
+
"right": 371,
|
| 355 |
+
"bottom": 384
|
| 356 |
+
},
|
| 357 |
+
"overflow": false,
|
| 358 |
+
"background": "rgb(24, 24, 30)"
|
| 359 |
+
}
|
| 360 |
+
],
|
| 361 |
+
"mobileLimitation": "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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"date": "2026-09-12T09:28:57.518Z",
|
| 3 |
+
"url": "http://127.0.0.1:4173/",
|
| 4 |
+
"kind": "synthetic rendering fixtures; no model inference",
|
| 5 |
+
"errors": [],
|
| 6 |
+
"checks": [
|
| 7 |
+
"Upstream Pi user/assistant indentation, inner padding and turn separators",
|
| 8 |
+
"Upstream tool Box(1,1) padding and separator; no trailing empty output rows",
|
| 9 |
+
"CJK, emoji, ZWJ and combining accents agree with Pi cell widths",
|
| 10 |
+
"Long tool results collapse/expand without losing content",
|
| 11 |
+
"Seven viewports: Markdown, tool cards, footer/controls, wrapping and 4.5:1 visible text contrast",
|
| 12 |
+
"60-turn transcript and streamed updates preserve scroll position",
|
| 13 |
+
"Multiline draft remains visible at keyboard-sized height"
|
| 14 |
+
],
|
| 15 |
+
"sizes": [
|
| 16 |
+
{
|
| 17 |
+
"name": "1440x1000",
|
| 18 |
+
"viewport": {
|
| 19 |
+
"width": 1440,
|
| 20 |
+
"height": 1000
|
| 21 |
+
},
|
| 22 |
+
"cols": 94,
|
| 23 |
+
"rows": 41,
|
| 24 |
+
"panel": {
|
| 25 |
+
"x": 14,
|
| 26 |
+
"y": 137.734375,
|
| 27 |
+
"width": 758.875,
|
| 28 |
+
"height": 854.265625,
|
| 29 |
+
"right": 772.875,
|
| 30 |
+
"bottom": 992
|
| 31 |
+
},
|
| 32 |
+
"terminal": {
|
| 33 |
+
"x": 23,
|
| 34 |
+
"y": 146.734375,
|
| 35 |
+
"width": 740.875,
|
| 36 |
+
"height": 781.46875,
|
| 37 |
+
"right": 763.875,
|
| 38 |
+
"bottom": 928.203125
|
| 39 |
+
},
|
| 40 |
+
"screen": {
|
| 41 |
+
"x": 23,
|
| 42 |
+
"y": 146.734375,
|
| 43 |
+
"width": 736,
|
| 44 |
+
"height": 779,
|
| 45 |
+
"right": 759,
|
| 46 |
+
"bottom": 925.734375
|
| 47 |
+
},
|
| 48 |
+
"controls": {
|
| 49 |
+
"x": 23,
|
| 50 |
+
"y": 928.203125,
|
| 51 |
+
"width": 740.875,
|
| 52 |
+
"height": 36.796875,
|
| 53 |
+
"right": 763.875,
|
| 54 |
+
"bottom": 965
|
| 55 |
+
},
|
| 56 |
+
"overflow": false,
|
| 57 |
+
"background": "rgb(24, 24, 30)"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"name": "1024x768",
|
| 61 |
+
"viewport": {
|
| 62 |
+
"width": 1024,
|
| 63 |
+
"height": 768
|
| 64 |
+
},
|
| 65 |
+
"cols": 65,
|
| 66 |
+
"rows": 28,
|
| 67 |
+
"panel": {
|
| 68 |
+
"x": 14,
|
| 69 |
+
"y": 137.734375,
|
| 70 |
+
"width": 531.5625,
|
| 71 |
+
"height": 622.265625,
|
| 72 |
+
"right": 545.5625,
|
| 73 |
+
"bottom": 760
|
| 74 |
+
},
|
| 75 |
+
"terminal": {
|
| 76 |
+
"x": 23,
|
| 77 |
+
"y": 146.734375,
|
| 78 |
+
"width": 513.5625,
|
| 79 |
+
"height": 549.46875,
|
| 80 |
+
"right": 536.5625,
|
| 81 |
+
"bottom": 696.203125
|
| 82 |
+
},
|
| 83 |
+
"screen": {
|
| 84 |
+
"x": 23,
|
| 85 |
+
"y": 146.734375,
|
| 86 |
+
"width": 509,
|
| 87 |
+
"height": 532,
|
| 88 |
+
"right": 532,
|
| 89 |
+
"bottom": 678.734375
|
| 90 |
+
},
|
| 91 |
+
"controls": {
|
| 92 |
+
"x": 23,
|
| 93 |
+
"y": 696.203125,
|
| 94 |
+
"width": 513.5625,
|
| 95 |
+
"height": 36.796875,
|
| 96 |
+
"right": 536.5625,
|
| 97 |
+
"bottom": 733
|
| 98 |
+
},
|
| 99 |
+
"overflow": false,
|
| 100 |
+
"background": "rgb(24, 24, 30)"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"name": "851x640",
|
| 104 |
+
"viewport": {
|
| 105 |
+
"width": 851,
|
| 106 |
+
"height": 640
|
| 107 |
+
},
|
| 108 |
+
"cols": 53,
|
| 109 |
+
"rows": 22,
|
| 110 |
+
"panel": {
|
| 111 |
+
"x": 14,
|
| 112 |
+
"y": 137.734375,
|
| 113 |
+
"width": 437.015625,
|
| 114 |
+
"height": 494.265625,
|
| 115 |
+
"right": 451.015625,
|
| 116 |
+
"bottom": 632
|
| 117 |
+
},
|
| 118 |
+
"terminal": {
|
| 119 |
+
"x": 23,
|
| 120 |
+
"y": 146.734375,
|
| 121 |
+
"width": 419.015625,
|
| 122 |
+
"height": 421.46875,
|
| 123 |
+
"right": 442.015625,
|
| 124 |
+
"bottom": 568.203125
|
| 125 |
+
},
|
| 126 |
+
"screen": {
|
| 127 |
+
"x": 23,
|
| 128 |
+
"y": 146.734375,
|
| 129 |
+
"width": 415,
|
| 130 |
+
"height": 418,
|
| 131 |
+
"right": 438,
|
| 132 |
+
"bottom": 564.734375
|
| 133 |
+
},
|
| 134 |
+
"controls": {
|
| 135 |
+
"x": 23,
|
| 136 |
+
"y": 568.203125,
|
| 137 |
+
"width": 419.015625,
|
| 138 |
+
"height": 36.796875,
|
| 139 |
+
"right": 442.015625,
|
| 140 |
+
"bottom": 605
|
| 141 |
+
},
|
| 142 |
+
"overflow": false,
|
| 143 |
+
"background": "rgb(24, 24, 30)"
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"name": "850x640",
|
| 147 |
+
"viewport": {
|
| 148 |
+
"width": 850,
|
| 149 |
+
"height": 640
|
| 150 |
+
},
|
| 151 |
+
"cols": 103,
|
| 152 |
+
"rows": 22,
|
| 153 |
+
"panel": {
|
| 154 |
+
"x": 10,
|
| 155 |
+
"y": 133.734375,
|
| 156 |
+
"width": 830,
|
| 157 |
+
"height": 496.265625,
|
| 158 |
+
"right": 840,
|
| 159 |
+
"bottom": 630
|
| 160 |
+
},
|
| 161 |
+
"terminal": {
|
| 162 |
+
"x": 19,
|
| 163 |
+
"y": 142.734375,
|
| 164 |
+
"width": 812,
|
| 165 |
+
"height": 424.46875,
|
| 166 |
+
"right": 831,
|
| 167 |
+
"bottom": 567.203125
|
| 168 |
+
},
|
| 169 |
+
"screen": {
|
| 170 |
+
"x": 19,
|
| 171 |
+
"y": 142.734375,
|
| 172 |
+
"width": 806,
|
| 173 |
+
"height": 418,
|
| 174 |
+
"right": 825,
|
| 175 |
+
"bottom": 560.734375
|
| 176 |
+
},
|
| 177 |
+
"controls": {
|
| 178 |
+
"x": 19,
|
| 179 |
+
"y": 567.203125,
|
| 180 |
+
"width": 812,
|
| 181 |
+
"height": 36.796875,
|
| 182 |
+
"right": 831,
|
| 183 |
+
"bottom": 604
|
| 184 |
+
},
|
| 185 |
+
"overflow": false,
|
| 186 |
+
"background": "rgb(24, 24, 30)"
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"name": "390x844",
|
| 190 |
+
"viewport": {
|
| 191 |
+
"width": 390,
|
| 192 |
+
"height": 844
|
| 193 |
+
},
|
| 194 |
+
"cols": 44,
|
| 195 |
+
"rows": 32,
|
| 196 |
+
"panel": {
|
| 197 |
+
"x": 10,
|
| 198 |
+
"y": 149.671875,
|
| 199 |
+
"width": 370,
|
| 200 |
+
"height": 684.328125,
|
| 201 |
+
"right": 380,
|
| 202 |
+
"bottom": 834
|
| 203 |
+
},
|
| 204 |
+
"terminal": {
|
| 205 |
+
"x": 19,
|
| 206 |
+
"y": 158.671875,
|
| 207 |
+
"width": 352,
|
| 208 |
+
"height": 612.53125,
|
| 209 |
+
"right": 371,
|
| 210 |
+
"bottom": 771.203125
|
| 211 |
+
},
|
| 212 |
+
"screen": {
|
| 213 |
+
"x": 19,
|
| 214 |
+
"y": 158.671875,
|
| 215 |
+
"width": 344,
|
| 216 |
+
"height": 608,
|
| 217 |
+
"right": 363,
|
| 218 |
+
"bottom": 766.671875
|
| 219 |
+
},
|
| 220 |
+
"controls": {
|
| 221 |
+
"x": 19,
|
| 222 |
+
"y": 771.203125,
|
| 223 |
+
"width": 352,
|
| 224 |
+
"height": 36.796875,
|
| 225 |
+
"right": 371,
|
| 226 |
+
"bottom": 808
|
| 227 |
+
},
|
| 228 |
+
"overflow": false,
|
| 229 |
+
"background": "rgb(24, 24, 30)"
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"name": "320x568",
|
| 233 |
+
"viewport": {
|
| 234 |
+
"width": 320,
|
| 235 |
+
"height": 568
|
| 236 |
+
},
|
| 237 |
+
"cols": 36,
|
| 238 |
+
"rows": 17,
|
| 239 |
+
"panel": {
|
| 240 |
+
"x": 10,
|
| 241 |
+
"y": 149.671875,
|
| 242 |
+
"width": 300,
|
| 243 |
+
"height": 408.328125,
|
| 244 |
+
"right": 310,
|
| 245 |
+
"bottom": 558
|
| 246 |
+
},
|
| 247 |
+
"terminal": {
|
| 248 |
+
"x": 19,
|
| 249 |
+
"y": 158.671875,
|
| 250 |
+
"width": 282,
|
| 251 |
+
"height": 336.53125,
|
| 252 |
+
"right": 301,
|
| 253 |
+
"bottom": 495.203125
|
| 254 |
+
},
|
| 255 |
+
"screen": {
|
| 256 |
+
"x": 19,
|
| 257 |
+
"y": 158.671875,
|
| 258 |
+
"width": 282,
|
| 259 |
+
"height": 323,
|
| 260 |
+
"right": 301,
|
| 261 |
+
"bottom": 481.671875
|
| 262 |
+
},
|
| 263 |
+
"controls": {
|
| 264 |
+
"x": 19,
|
| 265 |
+
"y": 495.203125,
|
| 266 |
+
"width": 282,
|
| 267 |
+
"height": 36.796875,
|
| 268 |
+
"right": 301,
|
| 269 |
+
"bottom": 532
|
| 270 |
+
},
|
| 271 |
+
"overflow": false,
|
| 272 |
+
"background": "rgb(24, 24, 30)"
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"name": "390x420",
|
| 276 |
+
"viewport": {
|
| 277 |
+
"width": 390,
|
| 278 |
+
"height": 420
|
| 279 |
+
},
|
| 280 |
+
"cols": 44,
|
| 281 |
+
"rows": 9,
|
| 282 |
+
"panel": {
|
| 283 |
+
"x": 10,
|
| 284 |
+
"y": 149.671875,
|
| 285 |
+
"width": 370,
|
| 286 |
+
"height": 260.328125,
|
| 287 |
+
"right": 380,
|
| 288 |
+
"bottom": 410
|
| 289 |
+
},
|
| 290 |
+
"terminal": {
|
| 291 |
+
"x": 19,
|
| 292 |
+
"y": 158.671875,
|
| 293 |
+
"width": 352,
|
| 294 |
+
"height": 188.53125,
|
| 295 |
+
"right": 371,
|
| 296 |
+
"bottom": 347.203125
|
| 297 |
+
},
|
| 298 |
+
"screen": {
|
| 299 |
+
"x": 19,
|
| 300 |
+
"y": 158.671875,
|
| 301 |
+
"width": 344,
|
| 302 |
+
"height": 171,
|
| 303 |
+
"right": 363,
|
| 304 |
+
"bottom": 329.671875
|
| 305 |
+
},
|
| 306 |
+
"controls": {
|
| 307 |
+
"x": 19,
|
| 308 |
+
"y": 347.203125,
|
| 309 |
+
"width": 352,
|
| 310 |
+
"height": 36.796875,
|
| 311 |
+
"right": 371,
|
| 312 |
+
"bottom": 384
|
| 313 |
+
},
|
| 314 |
+
"overflow": false,
|
| 315 |
+
"background": "rgb(24, 24, 30)"
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"name": "multiline-keyboard-height",
|
| 319 |
+
"viewport": {
|
| 320 |
+
"width": 390,
|
| 321 |
+
"height": 420
|
| 322 |
+
},
|
| 323 |
+
"cols": 44,
|
| 324 |
+
"rows": 9,
|
| 325 |
+
"panel": {
|
| 326 |
+
"x": 10,
|
| 327 |
+
"y": 149.671875,
|
| 328 |
+
"width": 370,
|
| 329 |
+
"height": 260.328125,
|
| 330 |
+
"right": 380,
|
| 331 |
+
"bottom": 410
|
| 332 |
+
},
|
| 333 |
+
"terminal": {
|
| 334 |
+
"x": 19,
|
| 335 |
+
"y": 158.671875,
|
| 336 |
+
"width": 352,
|
| 337 |
+
"height": 188.53125,
|
| 338 |
+
"right": 371,
|
| 339 |
+
"bottom": 347.203125
|
| 340 |
+
},
|
| 341 |
+
"screen": {
|
| 342 |
+
"x": 19,
|
| 343 |
+
"y": 158.671875,
|
| 344 |
+
"width": 344,
|
| 345 |
+
"height": 171,
|
| 346 |
+
"right": 363,
|
| 347 |
+
"bottom": 329.671875
|
| 348 |
+
},
|
| 349 |
+
"controls": {
|
| 350 |
+
"x": 19,
|
| 351 |
+
"y": 347.203125,
|
| 352 |
+
"width": 352,
|
| 353 |
+
"height": 36.796875,
|
| 354 |
+
"right": 371,
|
| 355 |
+
"bottom": 384
|
| 356 |
+
},
|
| 357 |
+
"overflow": false,
|
| 358 |
+
"background": "rgb(24, 24, 30)"
|
| 359 |
+
}
|
| 360 |
+
],
|
| 361 |
+
"mobileLimitation": "Viewport/keyboard-height simulation on desktop Chromium; no physical mobile device.",
|
| 362 |
+
"passed": true
|
| 363 |
+
}
|
validation/agent-terminal-dark.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"date": "2026-09-12T09:28:57.506Z",
|
| 3 |
+
"url": "http://127.0.0.1:4173/",
|
| 4 |
+
"errors": [],
|
| 5 |
+
"requests": [
|
| 6 |
+
"http://127.0.0.1:4173/",
|
| 7 |
+
"http://127.0.0.1:4173/assets/index-qmdKynRr.js",
|
| 8 |
+
"http://127.0.0.1:4173/assets/index-CTSRWQwn.css",
|
| 9 |
+
"http://127.0.0.1:4173/assets/agent.worker-DqQzo9yL.js",
|
| 10 |
+
"http://127.0.0.1:4173/favicon.svg"
|
| 11 |
+
],
|
| 12 |
+
"checks": [
|
| 13 |
+
"Original Pi TUI rendered through xterm",
|
| 14 |
+
"Enter submits /help without loading a model",
|
| 15 |
+
"Pi fullscreen transcript search preserves the editor draft",
|
| 16 |
+
"Pi multiline editor: Shift+Enter, cursor, deletion, Ctrl+U/K",
|
| 17 |
+
"Pi prompt history",
|
| 18 |
+
"Pi autocomplete: /he β /help",
|
| 19 |
+
"xterm keyboard β Pi editor β real just-bash β workspace file",
|
| 20 |
+
"Shell escape sequences render as inert text",
|
| 21 |
+
"Large Pi paste markers expand before Send",
|
| 22 |
+
"Unicode multiline clipboard paste",
|
| 23 |
+
"Touch-accessible newline button",
|
| 24 |
+
"390px layout and live terminal resize preserve the draft"
|
| 25 |
+
],
|
| 26 |
+
"initial": " \n Ο Pi browser workspace \n \n Ask Pi to work with the files on the right. \n \n /load load MiniCPM \n /help show commands \n !ls run a workspace command \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n Files and chat are saved on this device. \nββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n \nββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n /workspace Β· MiniCPM5-2B Β· 4,096 context ",
|
| 27 |
+
"sizes": {
|
| 28 |
+
"desktop": {
|
| 29 |
+
"cols": 94,
|
| 30 |
+
"rows": 41
|
| 31 |
+
},
|
| 32 |
+
"mobile": {
|
| 33 |
+
"cols": 44,
|
| 34 |
+
"rows": 32
|
| 35 |
+
}
|
| 36 |
+
},
|
| 37 |
+
"mobileLimitation": "Desktop Chromium viewport simulation; physical mobile keyboards and GPUs not tested.",
|
| 38 |
+
"passed": true
|
| 39 |
+
}
|