diff --git a/package.json b/package.json index 372a8597..c8f2bf04 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "thinkwatch-lite", "private": true, "description": "Desktop app for a local AI API gateway on macOS, Windows and Linux", - "version": "2026.11.17", + "version": "2026.11.18", "type": "module", "packageManager": "pnpm@11.13.1", "scripts": { diff --git a/release-notes/2026.11.18.md b/release-notes/2026.11.18.md new file mode 100644 index 00000000..fea0a0e7 --- /dev/null +++ b/release-notes/2026.11.18.md @@ -0,0 +1,6 @@ +This release improves the auxiliary request and web-tool controls under **Routing → Auxiliary**. + +- Handling controls align at the right edge of the table. Web-tool Configure and Test buttons sit beside the tool name and wrap when space is limited. +- Limits and cache settings have a full-width expandable heading with a direction indicator and keyboard support. + +This release retains Core 0.98.0 and the Google (Docs), DuckDuckGo and Bing search support introduced in 2026.11.17. diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 7ec07066..b2c0a7ae 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -4950,7 +4950,7 @@ dependencies = [ [[package]] name = "thinkwatch-lite" -version = "2026.11.17" +version = "2026.11.18" dependencies = [ "anyhow", "base64 0.22.1", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 6d2e13bc..2c314899 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "thinkwatch-lite" -version = "2026.11.17" +version = "2026.11.18" edition = "2024" # **这个数决定依赖能升到哪一版。**edition 2024 的解析器只挑声明的 Rust # 版本编得动的依赖:写 1.85 的时候,`cargo update` 一直停在旧的 time 和 diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 7b3500e1..2c01cd36 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "ThinkWatch Lite", - "version": "2026.11.17", + "version": "2026.11.18", "identifier": "app.thinkwatch.lite", "build": { "beforeDevCommand": "pnpm dev", diff --git a/src/routing/ProbesTab.i18n.ts b/src/routing/ProbesTab.i18n.ts index ae92c4cb..392de9a4 100644 --- a/src/routing/ProbesTab.i18n.ts +++ b/src/routing/ProbesTab.i18n.ts @@ -4,7 +4,7 @@ export const probesTabText = messages( { intro: "配置客户端辅助请求及联网工具的执行方式。设为转发的请求继续按路由规则选择上游。", - kind: "请求/工具", mode: "处理方式", actions: "操作", + kind: "请求/工具", mode: "处理方式", intercept: "本地应答", interceptWhat: "由网关直接应答,不发送到上游,不产生费用。", forward: "转发", @@ -14,7 +14,7 @@ export const probesTabText = messages( { intro: "Choose how client auxiliary requests and web tools are handled. Forwarded requests continue through routing rules.", - kind: "Request / tool", mode: "Handling", actions: "Actions", + kind: "Request / tool", mode: "Handling", intercept: "Answer locally", interceptWhat: "The gateway answers directly. Nothing is sent upstream and no cost is incurred.", forward: "Forward", diff --git a/src/routing/ProbesTab.tsx b/src/routing/ProbesTab.tsx index 082511b0..73fb4729 100644 --- a/src/routing/ProbesTab.tsx +++ b/src/routing/ProbesTab.tsx @@ -61,7 +61,7 @@ export function ProbesTab({ ov }: { ov: Overview }) {

{t.intro}

- {t.kind}{t.mode}{t.actions} + {t.kind}{t.mode} {ov.client_probes.map((p) => { const kind = PROBES.find((x) => x.id === p.id); @@ -78,7 +78,13 @@ export function ProbesTab({ ov }: { ov: Overview }) { {modes.find((m) => m.id === mode)?.what}

-
+
+ {/* 转圈的位置一直留着:出现、消失时分段控件不左右挪 */} + {busy ? ( + + ) : ( + + )} label={label} value={mode} @@ -86,15 +92,7 @@ export function ProbesTab({ ov }: { ov: Overview }) { options={modes.map((m) => ({ id: m.id, label: m.label }))} onChange={(v) => v !== mode && void set(p.id, v)} /> - {/* 转圈的位置一直留着:出现、消失时分段控件不左右挪 */} - {busy ? ( - - ) : ( - - )} -
- ); })} diff --git a/src/routing/WebTools.tsx b/src/routing/WebTools.tsx index f8c8f78b..7f2d5040 100644 --- a/src/routing/WebTools.tsx +++ b/src/routing/WebTools.tsx @@ -1,4 +1,5 @@ import { Label } from "@/ui/label"; +import { ChevronRightIcon } from "lucide-react"; import { useId, useRef, useEffect, useState } from "react"; import { call } from "@/control"; import { useResource } from "@/lib/resource"; @@ -47,17 +48,17 @@ export function WebTools({ overview }: { overview: Overview }) { return <> -
{t.title}
+
+
{t.title}
+ {view &&
} +

{view?.config.mode === "core" ? t.coreHelp : t.upstreamHelp}

{view?.config.mode === "core" &&

{remote ? t.remote(remote.name) : t.local}

} {!view &&

{resource.error ? <>{t.unavailable} : t.loading}

}
- - {view && void save({ ...view.config, mode })} />} - - {view &&
} + {view &&
void save({ ...view.config, mode })} />
}
{ if (!open && !busy) setDialog(null); }}> @@ -99,7 +100,10 @@ function Configuration({ view, overview, busy, error, save, close }: { view: Web

{t.domainsHelp}

{draft.allowed_domains.some((domain) => draft.blocked_domains.includes(domain)) &&

{t.domainConflict(draft.allowed_domains.filter((domain) => draft.blocked_domains.includes(domain)).join(", "))}

} {numeric.slice(0, 2).map(([key, label]) => set(key, Number(e.target.value))} />)} - + {numeric.slice(2).map(([key, label]) => set(key, Number(e.target.value))} />)}

{t.readHelp}