feat(keyboard): add clipboard AI skills, hint keywords, and voice session fixes

Idle chips show entities with category icons; a fresh copy surfaces Reply/Summarize/Translate; abort/cancel/empty-tap no longer leave the mic stuck.
This commit is contained in:
Rocky
2026-08-13 15:47:32 +08:00
parent 9f308fadd2
commit 631617ee53
48 changed files with 1627 additions and 345 deletions
@@ -44,7 +44,7 @@ public enum AIHintLocalCatalog: Sendable {
),
AIHintCard(
id: "local-zh-encyclopedia",
displayText: "讲个有趣概念",
displayText: "有趣概念",
prompt: "用通俗易懂的中文解释一个有趣但常见的概念,并给一个生活里的例子(4-6 句)。",
category: "capability",
priority: 40,
@@ -53,7 +53,7 @@ public enum AIHintLocalCatalog: Sendable {
),
AIHintCard(
id: "local-zh-stocks",
displayText: "大盘如何",
displayText: "大盘",
prompt: "请用非专业口吻概括今天 A 股/港股/美股中至少一个市场的整体表现、"
+ "可能驱动因素,并提醒这并非投资建议(4-6 句)。",
category: "economy",
@@ -63,7 +63,7 @@ public enum AIHintLocalCatalog: Sendable {
),
AIHintCard(
id: "local-zh-daily-brief",
displayText: "今日早报",
displayText: "今日早报",
prompt: "请用中文写一份简洁的「今日早报」:国内外各 2–3 条要点、一条财经/科技、"
+ "一条轻松话题;每条一句话,总计不超过 12 句。不确定处请标明。",
category: "daily",
@@ -73,7 +73,7 @@ public enum AIHintLocalCatalog: Sendable {
),
AIHintCard(
id: "local-zh-quote",
displayText: "来句今日金句",
displayText: "今日金句",
prompt: "请给一句适合今天分享的中文金句,并附上一两句简短解释。",
category: "capability",
priority: 38,
@@ -82,7 +82,7 @@ public enum AIHintLocalCatalog: Sendable {
),
AIHintCard(
id: "local-zh-howto",
displayText: "给我一个小技巧",
displayText: "生活技巧",
prompt: "分享一个实用的生活或工作效率小技巧,用中文说清步骤与适用场景(4-6 句)。",
category: "capability",
priority: 36,
@@ -124,7 +124,7 @@ public enum AIHintLocalCatalog: Sendable {
),
AIHintCard(
id: "local-en-encyclopedia",
displayText: "Explain a concept",
displayText: "A concept",
prompt: "Explain an interesting everyday concept in plain English with one real-life example (4-6 sentences).",
category: "capability",
priority: 40,
@@ -133,7 +133,7 @@ public enum AIHintLocalCatalog: Sendable {
),
AIHintCard(
id: "local-en-stocks",
displayText: "Market pulse",
displayText: "Markets",
prompt: "Summarize today's broad market mood (US or global) in plain English, "
+ "note possible drivers, and add this is not financial advice (4-6 sentences).",
category: "economy",
@@ -153,7 +153,7 @@ public enum AIHintLocalCatalog: Sendable {
),
AIHintCard(
id: "local-en-quote",
displayText: "Share a quote",
displayText: "A quote",
prompt: "Share one short quote worth sending today, plus one or two sentences of context.",
category: "capability",
priority: 38,
@@ -162,7 +162,7 @@ public enum AIHintLocalCatalog: Sendable {
),
AIHintCard(
id: "local-en-howto",
displayText: "Give a tip",
displayText: "A tip",
prompt: "Share one practical life or productivity tip in English, with steps and when it helps (4-6 sentences).",
category: "capability",
priority: 36,