Spaces:
Sleeping
Sleeping
Commit History
-
Pin harness to 60a6e81 (comma-separate adjacent citations)
Two citations on the same word were rendering as a single big number (¹⁰¹¹¹²); the new harness inserts commas at citation boundaries so they read as ¹⁰,¹¹,¹². Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>109cbff -
Pin harness to 99fc607 (XML <cite> citation syntax)
Picks up: - Switch from [file: "quote"] bracket syntax to <cite file="X">quote</cite> XML tags. Fixes leaked chrome when the model added emphasis chars around the citation. - Tenacity dep for litellm retry path (avoids ModuleNotFoundError on finish_reason='error' / MALFORMED_FUNCTION_CALL). - Docker daemon auto-launch on macOS (dev only; no effect in the Space). - Lower process_citations cyclomatic complexity. - Extract HTML primitives into block_render module. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>fa5e264
-
Add file count, total size, and per-file size validation
Max 50 files, 50MB total, 10MB per file. Clear error messages for each validation failure. Warnings returned for skipped files when some files are still valid. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>4006728
-
Pin harness to 48d2621 (bare citation fallback)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>6173f83
-
Email notification when daily free limit is reached
Sends one email per day via Gmail SMTP when the free question limit is exhausted. Requires NOTIFY_EMAIL and SMTP_APP_PASSWORD secrets. Fails silently if not configured. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>940c1c2 -
Add daily free question limit for unauthenticated users
Allow LH_DAILY_FREE_LIMIT (default 5) questions without a token. After the limit, users must provide an access token. Authenticated users are unlimited (still bound by session cost limit). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>d8fdb74 -
Pin harness to 8821d87 (smart quotes, lint, clarity fixes)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>fee5366
-
Consolidate format_stats into single function
Merge format_stats and format_stats_from_trace — one function handles both Trace objects and dicts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>3076398 -
Security: auth on trace endpoints, pin litellm, sanitize errors
Trace list and replay endpoints require admin token via hmac.compare_digest. Pin litellm to commit d251238. Replace raw exception messages with generic error for client. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>69f9284 -
Security hardening: server-side sessions, timing-safe tokens
- Server-side session store for workspace/scratch paths — clients get an opaque session_id, never see filesystem paths - Server-side cost tracking — client can't bypass limits - Timing-safe token comparison via hmac.compare_digest - Path validation ensures workspace is in expected temp directory - Sanitize error messages (no raw exceptions to client) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>5bb517a -
Add BASE_PROMPT: self-contained responses, no speculation
Minimal base prompt for the explorer — no persona, just quality and guardrails. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>79d1384 -
Pin harness to 6327854 for representativeness prompt
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>8de2350 -
Redact user document content from traces before upload
Strip tool call stdout, scratch files, system prompt, and tool messages to protect uploaded document content. Preserve question, answer, citations, stats, and telemetry for quality review. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>719e30d -
Fix upload endpoint: accept JSON payload, add logging
Take token + paths as JSON string instead of gr.File. Add print logging for upload flow debugging. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>b1e2218
-
Simplify explorer to pure API backend
Remove custom HTML/JS frontend — it lives on the website at /explore. Keep only Gradio API endpoints: ask, upload, doc, traces, replay. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>04f8810 -
Use head= for JS injection instead of js= parameter
Gradio js= wraps code in AsyncFunction which rejects function declarations. head= injects raw script tags into head section. Wrap app code in DOMContentLoaded listener. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>04d3f5a -
Inject JS via gr.Blocks(js=) instead of inline script tags
Gradio strips script tags from gr.HTML for security. Move all JS to the js= parameter and CSS to css= parameter on Blocks. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>350eca4 -
Embed shared CSS/JS inline instead of file serving
Gradio file serving doesn't work reliably with Docker SDK. Read chat-ui.css and chat-ui.js at startup and inject inline. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>78c1ba6 -
Allow static directory for Gradio file serving
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>93ce607 -
Fix file upload: use Gradio upload endpoint for actual file transfer
Upload files to /gradio_api/upload first to get server paths, then pass those to the setup endpoint which creates the workspace. Workspace path persists across questions in the session. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>b32f935
-
Rewrite explorer with Docker SDK, streaming, citations, custom UI
Switch from Gradio SDK to Docker SDK with custom HTML frontend. Add streaming answers, citation processing (from harness), source list, trace toggle, file upload with drag-and-drop, session cost tracking. Shared chat-ui.js/css fetched at build time from harness-apps-shared repo. Pin harness to acfd4f2. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>d52caba
-
Auto-retry on stale E2B sandbox — recreate and re-execute
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1ed0433
-
Install litellm from GitHub — not available on HF Spaces PyPI mirror
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>2bc2348 -
Force click>=8.1 and litellm to unblock HF Spaces build
HF base image pins click<8.1 which prevents litellm from resolving. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>ded6066 -
Use minimal requirements.txt to avoid HF Spaces dependency conflicts
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>5872917 -
Relax litellm version pin for HF Spaces compatibility
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>18731b8 -
Resolve merge conflict with HF Space initial commit
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>33498d5 -
Add HF trace storage, admin controls, and Spaces deployment
- Upload traces as JSON to a HF dataset repo after each question - Add Traces tab with session-scoped view (admin URL param for full history) - Replace Gradio login with inline token field - Decouple chat history from agent loop (display only) - Add huggingface-hub dependency and requirements.txt for HF Spaces - Add .claudeignore to exclude .env files Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>c02b92b
-
Switch to uv and pyproject.toml for dependency management
Replaces requirements.txt. Harness installs from git via uv sources. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>cfc5e63 -
Add trace viewer accordion back
Uses render_trace from the harness package — no local copy needed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>c040755 -
Return raw dict from sandbox, let harness handle truncation
Matches the updated SandboxFunc contract — sandbox returns a dict, execute_tool applies truncation and serializes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>e5cf3fa -
Add .gitignore and .env.example
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>c5e7f6c -
Initial document-explorer product
Gradio web app for exploring document workspaces with an LLM agent. Uses E2B sandboxes for code execution, depends on a-simple-llm-harness for the agent loop. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>7d4b523 -
initial commit
Verified signatureac0feae