新增: obscura 安装引导(prompt AI 看 hint 帮装 + 前端工具卡片 AI 帮装按钮)
This commit is contained in:
@@ -150,6 +150,8 @@ export default {
|
||||
regenerate: 'Regenerate',
|
||||
regenerateFailed: 'Regenerate failed: {msg}',
|
||||
regenerateUnavailable: 'No reply to regenerate',
|
||||
// fetch_url "Install obscura via AI" button triggers sendMessage; failure toast (mirrors editMessageFailed)
|
||||
sendFailed: 'Send failed: {msg}',
|
||||
|
||||
// ── UX-09: edit last user message and regenerate ──
|
||||
editMessage: 'Edit',
|
||||
|
||||
@@ -93,6 +93,26 @@ export default {
|
||||
httpTruncated: 'Response truncated ({bytes}), see details',
|
||||
httpRequestFallback: 'HTTP Request',
|
||||
foundN: 'Found {n}',
|
||||
// fetch_url result (render_mode badge + obscura install guidance)
|
||||
// - fetchUrlTitle: header subtitle when title present
|
||||
// - fetchUrlRendered: render_mode=obscura (JS render success) badge text
|
||||
// - fetchUrlStatic: render_mode=static/static_fallback (static) badge text
|
||||
// - fetchUrlFallbackHint: static_fallback (obscura missing/failed) summary, hints static fallback
|
||||
// - fetchUrlChars: static-mode markdown char count (collapsed subtitle)
|
||||
// - charsUnit: char unit (joined with length)
|
||||
// - installObscura: "Install via AI" button label
|
||||
// - obscuraInstallPrompt: dialog auto-sent to AI on button click (cargo install + releases options)
|
||||
fetchUrlTitle: 'Title: {title}',
|
||||
fetchUrlRendered: 'JS rendered',
|
||||
fetchUrlStatic: 'static',
|
||||
fetchUrlFallbackHint: 'obscura not installed, fell back to static mode (JS rendering unavailable)',
|
||||
fetchUrlChars: '{n} chars',
|
||||
charsUnit: 'chars',
|
||||
// fetch_url header display name (useToolCardHeader): host-shortened prefix + fallback when no url
|
||||
fetchUrlPrefix: 'Fetch',
|
||||
fetchUrlFallback: 'Fetch URL',
|
||||
installObscura: 'Install obscura via AI',
|
||||
obscuraInstallPrompt: 'Please install obscura (a Rust headless browser, used by fetch_url render=true for JS rendering). Try `cargo install obscura` first; if cargo is unavailable, download the prebuilt binary for this platform from the GitHub releases (github.com/h4ckf0r0day/obscura) and place it on PATH. After installing, verify with `obscura --version` and tell me I can retry the web fetch.',
|
||||
// grep cross-file content search results (F-260621): per output_mode phrasing
|
||||
grepHitsN: '{n} hits',
|
||||
grepFilesN: '{n} files',
|
||||
|
||||
Reference in New Issue
Block a user