Download task_011/instruction.md from Lego-X/UXInteract: direct link, hf CLI and curl.
- Browser
- Download file 2.33 kB
-
https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_011/instruction.md
- Command line
-
hf download hf://datasets/Lego-X/UXInteract/task_011/instruction.md
-
curl -L -o instruction.md https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_011/instruction.md
Offline request audit console
Replace the fixed response in /app/index.html with a request audit console that records configuration snapshots, streaming output and request history. The page opens directly using file:// and needs no network or new packages. Title generation, timeouts and malformed-frame handling are out of scope.
Request lifecycle
Provide a prompt field and editable key, base URL and model settings. Initial values may come from window.aiConfig in /app/config.js; include only placeholders in .env.example. Sending a nonblank prompt starts a local mock request using a snapshot of the current values. Blank prompts do not create a request.
Append each request to window.__mockRequests as {id, key, baseURL, model, prompt, chunks, status}. IDs are increasing integers unique within the page, including after clearing history. Transition from loading to complete. Deliver at least two nonempty text fragments asynchronously so loading and intermediate content are visible; store fragments in arrival order and display their concatenation. Completed content varies with the prompt.
Show the first partial response within three seconds of sending; complete the local stream promptly (within four seconds of the partial response, or within four seconds of sending for subsequent requests). Keep each request's prompt, model, status and completion content visible in its own history item, ordered oldest first. Earlier records must not change when settings or the prompt are edited. Never display the key in the history. A Clear History button removes all visible items and their underlying records.
Preserve data-testid hooks prompt-input, config-key, config-baseurl, config-modelname, send-button, clear-button, request-status, active-content, and request-history; use request-item for each entry.
Acceptance Checklist
- Blank sends do nothing. Valid sends show visible loading, intermediate streamed content and a completed concatenated response without making network requests.
- Sending with changed settings keeps two independent, correctly ordered request snapshots and visible history items without key leakage.
- Clearing history empties the UI and records. A later request starts a new history without reusing an ID or restoring cleared entries.