Skip to content

The agent that grows with you

Merge origin/main into sid/onboarding

alt-glitch8b89b68fb482
diff --cc agent/initiate_setup_facts.py
index ba48d133849,00000000000..72538047817
mode 100644,000000..100644
--- a/agent/initiate_setup_facts.py
+++ b/agent/initiate_setup_facts.py
@@@ -1,305 -1,0 +1,304 @@@
+"""Machine and account facts for the ``/initiate-setup`` first turn and the setup cards.
+
+Hardware facts come from ``hermes_platform.host``. Account facts (full name, locale) come from OS
+user records, never from environment variables such as HOME or LANG. They describe the machine
+that runs the Hermes backend; when the desktop app drives a remote backend, that is not the
+user's laptop.
+"""
+
+from __future__ import annotations
+
- import contextvars
+import os
+import platform
+import re
+import sys
+import threading
+from pathlib import Path
+
+from hermes_constants import get_optional_skills_dir
+from hermes_platform.host import facts as host
+from hermes_platform.host import products, runtime
+
+# Generic account names that are not a person's name.
+_NON_NAMES = frozenset({
+ "admin", "administrator", "default", "guest", "me", "owner", "root", "test", "user",
+})
+_HANDLE_CHARS = re.compile(r"[\d_@/\\]")
+_SPARK_MODEL = re.compile(r"\b(dgx|spark|gb10)\b", re.I)
+
+FORK_QUESTION = "Know what you'd like it to make?"
+# Reading the Blender plugin's app declaration takes the network.
+_BLENDER_DEADLINE_S = 5
+
+_BLENDER_TASK = {"id": "plugin:blender", "label": "Help me make something in Blender", "plugins": ["blender"]}
+_NVIDIA_TASK = {
+ "id": "plugin:nvidia",
+ "label": "Set up my games and streaming",
+ "plugins": ["nvidia-app", "nvidia-broadcast"],
+}
+
+
+def skill_dir() -> Path:
+ return get_optional_skills_dir(Path(__file__).resolve().parent.parent / "optional-skills") / "productivity" / "initiate-setup"
+
+
+# --- account facts -----------------------------------------------------------------
+
+
+def _posix_account() -> tuple[str, str]:
+ """Return (login, full name) from the user database."""
+ import pwd
+
- entry = pwd.getpwuid(os.getuid())
++ entry = pwd.getpwuid(os.getuid()) # windows-footgun: ok — only called off Windows (_account)
+ return entry.pw_name, entry.pw_gecos.split(",", 1)[0].strip()
+
+
+def _windows_account() -> tuple[str, str]:
+ """Return (login, display name) from Win32 account APIs."""
+ import ctypes
+ from ctypes import wintypes
+
+ login_buf = ctypes.create_unicode_buffer(257)
+ login_len = wintypes.DWORD(len(login_buf))
+ login = login_buf.value if ctypes.windll.advapi32.GetUserNameW(login_buf, ctypes.byref(login_len)) else ""
+
+ # EXTENDED_NAME_FORMAT NameDisplay = 3. Local accounts without a display name fail here.
+ name_buf = ctypes.create_unicode_buffer(257)
+ name_len = wintypes.ULONG(len(name_buf))
+ full = name_buf.value if ctypes.windll.secur32.GetUserNameExW(3, name_buf, ctypes.byref(name_len)) else ""
+ return login, full
+
+
+def _account() -> tuple[str, str]:
+ try:
+ return _windows_account() if sys.platform == "win32" else _posix_account()
+ except (AttributeError, ImportError, KeyError, OSError):
+ return "", ""
+
+
+def _suggested_name(login: str, full: str) -> str | None:
+ """A real full name only; a login handle is never offered as the user's name."""
+ name = " ".join(full.split())
+ if not (2 <= len(name) <= 40) or name.lower() in _NON_NAMES or name.lower() == login.lower():
+ return None
+ # Digits or underscores ("p14", "CD_01.05") or an all-lowercase cased name mark a handle.
+ if _HANDLE_CHARS.search(name) or name == name.lower() != name.upper():
+ return None
+ return name
+
+
+def suggested_name() -> str | None:
+ """The desktop's name card offers it before the first model call."""
+ return _suggested_name(*_account())
+
+
+def _darwin_locale() -> str:
+ """First preferred UI language, e.g. ``de-DE``, via CoreFoundation."""
+ import ctypes
+ import ctypes.util
+
+ cf = ctypes.CDLL(ctypes.util.find_library("CoreFoundation"))
+ cf.CFLocaleCopyPreferredLanguages.restype = ctypes.c_void_p
+ cf.CFArrayGetCount.argtypes = [ctypes.c_void_p]
+ cf.CFArrayGetCount.restype = ctypes.c_long
+ cf.CFArrayGetValueAtIndex.argtypes = [ctypes.c_void_p, ctypes.c_long]
+ cf.CFArrayGetValueAtIndex.restype = ctypes.c_void_p
+ cf.CFStringGetCString.argtypes = [ctypes.c_void_p, ctypes.c_char_p, ctypes.c_long, ctypes.c_uint32]
+ cf.CFStringGetCString.restype = ctypes.c_bool
+ cf.CFRelease.argtypes = [ctypes.c_void_p]
+
+ languages = cf.CFLocaleCopyPreferredLanguages()
+ if not languages:
+ return ""
+ try:
+ if cf.CFArrayGetCount(languages) < 1:
+ return ""
+ buffer = ctypes.create_string_buffer(64)
+ # kCFStringEncodingUTF8
+ if not cf.CFStringGetCString(cf.CFArrayGetValueAtIndex(languages, 0), buffer, 64, 0x08000100):
+ return ""
+ return buffer.value.decode()
+ finally:
+ cf.CFRelease(languages)
+
+
+def _windows_locale() -> str:
+ import ctypes
+
+ buffer = ctypes.create_unicode_buffer(85)
+ return buffer.value if ctypes.windll.kernel32.GetUserDefaultLocaleName(buffer, 85) else ""
+
+
+def _linux_locale() -> str:
+ """System locale from its config file; the shell's LANG is deliberately not read."""
+ for path in ("/etc/locale.conf", "/etc/default/locale"):
+ try:
- with open(path, encoding="utf-8") as handle:
++ with open(path, encoding="utf-8-sig") as handle:
+ for line in handle:
+ key, _, value = line.strip().partition("=")
+ if key == "LANG" and value:
+ return value.strip("\"'").split(".", 1)[0].replace("_", "-")
+ except OSError:
+ continue
+ return ""
+
+
+def _locale() -> str:
+ try:
+ if sys.platform == "darwin":
+ return _darwin_locale()
+ if sys.platform == "win32":
+ return _windows_locale()
+ return _linux_locale()
+ except (AttributeError, OSError, TypeError, ValueError):
+ return ""
+
+
+# --- the facts block ------------------------------------------------------------------
+
+
+def _is_spark(os_family: str, arch: str, gpu: str, cpu: str) -> bool:
+ """RTX Sparks by platform, architecture and GPU; DGX Sparks by model string."""
+ rtx = os_family == "win32" and arch == "arm64" and gpu == "nvidia"
+ return rtx or products.is_nvidia_arm_soc() or bool(_SPARK_MODEL.search(cpu.replace("_", " ")))
+
+
+def _machine_kind(os_family: str, spark: bool) -> str:
+ if spark:
+ return "Spark"
+ return {"darwin": "Mac", "win32": "PC"}.get(os_family, "computer")
+
+
+def facts() -> dict:
+ """The facts the ``/initiate-setup`` turn sends, read as they are. A key that was not measured is left out."""
+ os_family, arch, gpu, cpu = host.os_family(), host.native_arch(), host.gpu_class(), host.cpu_model()
+ ram = host.ram_total_bytes()
+ spark = _is_spark(os_family, arch, gpu, cpu)
+ machine = {
+ "os_family": os_family,
+ "os_release": platform.release(),
+ "native_arch": arch,
+ "cpu_model": cpu,
+ "ram_gb": round(ram / 2**30) if ram else None,
+ "gpu_class": None if gpu == "unknown" else gpu,
+ "vendor": host.cpu_vendor(),
+ "wsl": runtime.is_wsl(),
+ "container": runtime.is_container(),
+ }
+ block = {
+ "machine": {key: value for key, value in machine.items() if value not in (None, "")},
+ "machine_kind": _machine_kind(os_family, spark),
+ "has_nvidia_gpu": gpu == "nvidia",
+ "is_spark": spark,
+ "suggested_name": _suggested_name(*_account()),
+ "locale": _locale(),
+ }
+ return {key: value for key, value in block.items() if value not in (None, "")}
+
+
+# --- setup cards ----------------------------------------------------------------------
+
+
+def _fork(kind: str) -> dict:
+ """The fork card's fixed rows; ``fork_card`` puts first tasks from the setup picks in front. Ids are stable;
+ labels may be translated."""
+ return {"question": FORK_QUESTION, "options": [
+ {"id": "mind", "label": "I have something in mind"},
+ {"id": "machine", "label": f"Help me set up this {kind}"},
+ {"id": "figure", "label": "Let's figure it out together"},
+ ]}
+
+
+# Connector picks a daily brief has nothing to read from.
+_NOT_BRIEF = frozenset({"discord", "spotify", "steam", "telegram", "whatsapp", "youtube", "twitch", "reddit"})
+
+
+def _from_picks(cards: dict) -> list[dict]:
+ picks, ids = cards.get("picks") or {}, cards.get("pick_ids") or {}
+ apps = [str(label) for label in picks.get("connectors") or () if str(label).lower() not in _NOT_BRIEF]
+ plugins = set(ids.get("plugins") or ())
+ rows = [{"id": "brief", "label": f"A daily brief from {' and '.join(apps[:2])}"}] if apps else []
+ rows += [{"id": task_id, "label": task["label"]} for task_id, task in (cards.get("plugin_tasks") or {}).items()
+ if plugins & set(task["plugins"])]
+ return rows + ([{"id": "week", "label": "A summary of my week"}] if apps else [])
+
+
+def _from_machine(suggest: dict) -> list[dict]:
+ # No local-model row: the app's own offer sets that up on the managed runtime; a task chat would improvise one.
+ kind = suggest.get("kind") or "computer"
+ return [{"id": "apps", "label": f"Install a few apps for this {kind}"}] if suggest.get("spark") else []
+
+
+def _from_nothing(suggest: dict) -> list[dict]:
+ page = f"A one-page guide to this {suggest.get('kind') or 'computer'}"
+ return [{"id": "page", "label": page}, {"id": "script", "label": "A quick script that tidies my Downloads"}]
+
+
+def fork_card(cards: dict) -> dict:
+ """The fork card when it is shown: two first tasks, each finishable in minutes, from the apps and plugins
+ picked earlier in this setup and the machine, in front of the fixed rows."""
+ suggest = cards.get("suggest") or {}
+ picks, machine = _from_picks(cards), _from_machine(suggest)
+ ordered = picks[:1] + machine[:1] + picks[1:] + machine[1:] + _from_nothing(suggest)
+ fork = cards.get("fork") or _fork(suggest.get("kind") or "computer")
+ return {**fork, "options": ordered[:2] + fork["options"]}
+
+
+def _blender_state() -> str:
+ """Blender's state as the plugins card and the installer judge it: the resolver over the Blender plugin's
+ pinned ``app:`` declaration. ``unknown`` when that takes longer than the deadline."""
++ from agent.memory_provider import spawn_context_thread
+ from hermes_cli.plugin_catalog import get_live_catalog_entry
+ from hermes_cli.plugin_catalog_presence import presence
+
+ box: dict = {}
- context = contextvars.copy_context()
+
+ def read() -> None:
+ entry = get_live_catalog_entry("blender")
+ box["state"] = presence(entry).state if entry else "unknown"
+
- worker = threading.Thread(target=lambda: context.run(read), daemon=True)
++ worker = spawn_context_thread(read, name="initiate-setup-blender")
+ worker.start()
+ worker.join(_BLENDER_DEADLINE_S)
+ return box.get("state", "unknown")
+
+
+def _description(block: dict) -> str:
+ machine = block.get("machine") or {}
+ parts = [
+ "an NVIDIA Spark" if block.get("is_spark") else "has an NVIDIA GPU" if block.get("has_nvidia_gpu") else "",
+ machine.get("cpu_model", ""),
+ f"{machine.get('os_family', '')} {machine.get('os_release', '')}".strip(),
+ machine.get("native_arch", ""),
+ ]
+ return ", ".join(part for part in parts if part)
+
+
+def _handoff(kind: str, description: str) -> dict:
+ """The handoff message's parts and its two plans from ``templates/handoff.md``, the machine plan naming this
+ computer, so the model reads them only when it reaches the handoff."""
- text = (skill_dir() / "templates" / "handoff.md").read_text(encoding="utf-8")
++ text = (skill_dir() / "templates" / "handoff.md").read_text(encoding="utf-8-sig")
+ sections = dict(re.findall(r"^## (\S+)\n\n(.*?)\n*(?=^## |\Z)", text, re.M | re.S))
+ machine = sections["machine"].replace("<machine_kind>", kind).replace("<description>", description)
+ return {"message": sections["message"], "build": sections["build"], "machine": machine}
+
+
+def setup_cards(block: dict) -> dict:
+ """What the setup cards take from the facts: the fork rows and what its first tasks are built from, the
+ Blender preselect, the handoff text the fork result carries, and the machine line ``start_chat`` appends
+ to the task chat's first message."""
+ kind, description = block["machine_kind"], _description(block)
+ plugin_tasks = [_NVIDIA_TASK] if block.get("has_nvidia_gpu") and block["machine"].get("os_family") == "win32" else []
+ blender = _blender_state()
+ if blender != "missing_app":
+ plugin_tasks.append(_BLENDER_TASK)
+ ram = f", {block['machine']['ram_gb']} GB RAM" if block["machine"].get("ram_gb") else ""
+ return {
+ "learned": [f"This {kind}: {description}{ram}."],
+ "fork": _fork(kind),
+ # What ``fork_card`` builds first tasks from, beside the picks the cards record.
+ "suggest": {"kind": kind, "spark": bool(block.get("is_spark"))},
+ "plugin_tasks": {task["id"]: {"label": task["label"], "plugins": task["plugins"]} for task in plugin_tasks},
+ "preselected": {"connectors": [], "plugins": ["blender"] if blender in ("present", "app_not_running") else []},
+ "handoff": _handoff(kind, description),
+ }
diff --cc apps/desktop/electron/main.ts
index 1370f5b80c2,b76a7e05887..452c8cfa67a
--- a/apps/desktop/electron/main.ts
+++ b/apps/desktop/electron/main.ts
@@@ -119,7 -119,15 +119,14 @@@ import
buildBrowserWindowUrl
} from './browser-windows'
import { createBundleSkewChecker } from './bundle-skew'
- import { detectBundleSwap, readBundleSwapStamp } from './bundle-swap'
+ import {
+ BUNDLE_SWAP_RELAUNCH_FAILSAFE_MS,
+ detectBundleSwap,
+ readBundleSwapStamp,
+ relaunchIntoSwappedBundle
+ } from './bundle-swap'
+ import { CHALLENGE_PARTITION } from './challenge-window'
+ import { registerChallengeWindowIpc } from './challenge-window-ipc'
-import { registerChatOnboardingWindow } from './chat-onboarding-window'
import { provisionCliLinks } from './cli-provision'
import { closeStopFailureMessage, finishWindowsCloseStop, type RuntimeLock } from './close-stop-kill'
import { shouldAttemptCloudBootCascade } from './cloud-boot-cascade'
diff --cc apps/desktop/src/app/chat/built-in-tour.ts
index bb2b1577500,2f3c21fd550..2ecdfa345fe
--- a/apps/desktop/src/app/chat/built-in-tour.ts
+++ b/apps/desktop/src/app/chat/built-in-tour.ts
@@@ -8,16 -8,17 +8,14 @@@
* mode without that nav row, a collapsed pane) is dropped, never guessed at.
*/
+ import type { TourPreset } from '@hermes/shared'
+
-import { getLocalCatalog, getLocalModelsStatus } from '@/hermes'
import { runtimeTranslations } from '@/i18n'
-import { localSetupEligible } from '@/lib/tips/local-cta'
import { startTour, type TourResult } from '@/lib/tour'
import { $interfaceMode } from '@/store/interface-mode'
-import { $localModelsEnabled } from '@/store/local-models-flag'
-import { $connection } from '@/store/session'
+import { readLocalSetupEligibility } from '@/store/local-setup-offer'
- export type BuiltInTourPreset = 'quick' | 'full'
-
- type StopId = 'capabilities' | 'composer' | 'messaging' | 'model' | 'newSession' | 'rightPane' | 'sessions'
-
- const SELECTORS: Record<StopId, string> = {
+ const SELECTORS = {
capabilities: '[data-tour="sidebar-nav-capabilities"]',
composer: '[data-tour="composer"]',
messaging: '[data-tour="sidebar-nav-messaging"]',
@@@ -58,12 -63,19 +60,12 @@@ function onScreen(selector: string): bo
return width >= 4 && height >= 4
}
-/** Whether the model stop says this computer can run a local model. It is the
- * local-setup tip's answer (the backend's catalog `fits` check, on a local
- * connection, with nothing set up yet), and only where the Local Models pane
- * exists to point at. */
+/** Whether the model stop says this computer can run a local model: the
+ * local-setup offer's answer (the backend's catalog `fits` check, on a local
- * connection, with nothing set up yet). */
++ * connection with Local Models on, with nothing set up yet). */
async function canRunLocalModel(): Promise<boolean> {
- const mode = $connection.get()?.mode ?? null
-
- if (!$localModelsEnabled.get() || mode !== 'local') {
- return false
- }
-
- const read = Promise.all([getLocalModelsStatus(), getLocalCatalog()]).then(
- ([status, catalog]) => localSetupEligible(mode, status, catalog.models),
+ const read = readLocalSetupEligibility().then(
+ ({ fit }) => fit !== null,
() => false
)
diff --cc apps/desktop/src/app/contrib/wiring.tsx
index e0231cfa5a5,7c1818988ab..4f18001a5c7
--- a/apps/desktop/src/app/contrib/wiring.tsx
+++ b/apps/desktop/src/app/contrib/wiring.tsx
@@@ -793,21 -790,11 +802,22 @@@ export function ContribWiring({ childre
updateSessionState
})
+ const runKickoffSlash = useCallback<KickoffSlashCommand>(
+ (command, options) => executeSlashCommand(command, { ...options, typed: false }),
+ [executeSlashCommand]
+ )
+
+ const kickoffFirstChat = useOnboardingKickoff({
+ requestGateway: ambientRequestGateway,
+ resumeSession: adoptSessionRoute,
+ runSlashCommand: runKickoffSlash
+ })
+
// Runs outside the selected ChatBar so queues belonging to background
- // sessions continue once those sessions are idle.
+ // sessions continue once those sessions are idle. The session dispatcher
+ // routes each send to its owner; a disconnected foreground is not a global gate.
useBackgroundQueueDrain({
- enabled: gatewayState === 'open',
+ enabled: true,
runtimeIdByStoredSessionIdRef,
selectedStoredSessionId,
submitText
diff --cc apps/desktop/src/components/shared-metrics/consent-dialog.tsx
index 51f5bd0b085,bb8f62bf7e7..2e08545d867
--- a/apps/desktop/src/components/shared-metrics/consent-dialog.tsx
+++ b/apps/desktop/src/components/shared-metrics/consent-dialog.tsx
@@@ -63,10 -60,12 +64,12 @@@ export function SharedMetricsConsentDia
const detailsId = useId()
const consent = useStore($sharedMetricsConsent)
const detailsOpen = useStore($sharedMetricsDetailsOpen)
- const [expanded, setExpanded] = useState(true)
+ const [expanded, setExpanded] = useState(false)
const [saving, setSaving] = useState(false)
- // Never over the provider picker, the free-tier welcome or the guided chat, or a tour on screen:
+ const scopedRequest = useMemo(() => sharedMetricsProfileRequester(requestGateway, profile), [profile, requestGateway])
+
+ // Never over the provider picker, the free-tier welcome, the guided chat or a tour on screen:
// the question belongs to the moment after setup.
const onboardingSettled =
(onboarding.configured === true || onboarding.firstRunSkipped) &&
diff --cc apps/desktop/src/global.d.ts
index 3eecb624d26,eaa267af672..1dfb8799fac
--- a/apps/desktop/src/global.d.ts
+++ b/apps/desktop/src/global.d.ts
@@@ -8,8 -9,9 +9,9 @@@ import type { MachineProfile } from '..
import type { HermesNotification } from '../electron/notification-types'
import type { PoolLimits } from '../electron/pool-limits'
import type { KeepAwakeMode } from '../electron/power-save'
+ import type { UpdateHoldWire } from '../electron/update-hold-types'
import type { UpdateRunReport } from '../electron/updater/update-metrics'
-import type { GrowRequest } from '../electron/window-growth'
+import type { WindowSizeMode } from '../electron/window-size-types'
import type { WakeIndicatorState } from './lib/wake-indicator'
import type {
diff --cc apps/desktop/src/i18n/ar_boot.ts
index b888ee2368b,bccfc5bc9da..618e7cdebe8
--- a/apps/desktop/src/i18n/ar_boot.ts
+++ b/apps/desktop/src/i18n/ar_boot.ts
@@@ -321,5 -329,5 +324,5 @@@ export const arBoot =
}
} satisfies Pick<
TranslationOverrides,
- 'boot' | 'remoteDisplayBanner' | 'updates' | 'install' | 'onboarding'
- 'boot' | 'remoteDisplayBanner' | 'butterbar' | 'updates' | 'guidedGreeting' | 'install' | 'onboarding'
++ 'boot' | 'remoteDisplayBanner' | 'butterbar' | 'updates' | 'install' | 'onboarding'
>
diff --cc apps/desktop/src/i18n/ar_common.ts
index 7eacb00508c,c694180fb18..a32ca8ca0bf
--- a/apps/desktop/src/i18n/ar_common.ts
+++ b/apps/desktop/src/i18n/ar_common.ts
@@@ -3,10 -3,12 +3,12 @@@ import type { TranslationOverrides } fr
export const arCommon = {
sharedMetrics: {
consentTitle: 'هل تساعد في تحسين Hermes؟',
++ dialogTitle: 'هل تساعد في تحسين Hermes؟',
consentBody:
'تحتوي المقاييس المشتركة على عدّادات محدودة فقط، ولا تتضمن أبدًا المطالبات أو الملفات أو المسارات أو نصوص الأخطاء. الجمع محلي، وإرسالها إلى Nous موافقة منفصلة.',
whatIsCollected: 'ما الذي يُجمع',
- collectedActivity: 'النشاط وطول الجلسات والنتائج وفئات الأخطاء',
- collectedIntro: 'عدّادات محدودة فقط:',
+ collectedActivity:
+ 'النشاط وطول الجلسات والنتائج وفئات الأخطاء، بما في ذلك سبب من قائمة ثابتة عند رفض كتابة في الذاكرة أو ضغط السياق أو فشلها أو تخطيها',
collectedModels: 'مسارات النماذج وإجمالي الرموز',
collectedNames: 'أسماء الأدوات والأوامر وعناصر الفهرس المدمجة',
collectedMilestones: 'أعداد الإعداد ضمن فئات',
@@@ -15,6 -17,10 +17,8 @@@
'كيفية استخدام Hermes: دقة الوكيل وكفاءته (نجاح التعديلات، الحلقات، التعافي من الأخطاء، الرموز واستدعاءات الأدوات لكل مهمة، انقطاعات الذاكرة المؤقتة)، وقت النشاط لكل واجهة ووضع في تطبيق سطح المكتب، أقسام التطبيق وإجراءاته وإعداداته التي تُستخدم أو تُغلق بسرعة أو تُعطَّل، ونتائج إعداد المزوّدين',
collectedMachine:
'معلومات عامة عن الجهاز: نطاق الذاكرة، نوع وحدة الرسوميات، عمر إصدار Hermes وقناته، عدد التحديثات المتأخرة، واستخدام خادم نماذج محلي',
- installId:
- 'يرفع الإرسال كل حزمة يومية إلى خدمة القياس عن بُعد لدى Nous. تحمل الحزم معرّف التثبيت لهذا الملف الشخصي: معرّف UUID عشوائي ثابت بلا معلومات شخصية، ويُعاد تعيينه بحذف مجلد المقاييس المشتركة.',
- consentWindow:
- 'لا تُرسل إلا الحزم التي تقع فترة جمعها كاملة داخل نافذة موافقة مسجلة. باستثناء ملاحظة التثبيت الجديد (التي تُسجَّل على هذا الجهاز ولا تُحتسب إلا بعد موافقتك)، تبقى البيانات السابقة لموافقتك، أو من أي فترة كان الإرسال فيها متوقفًا، على هذا الجهاز. يمكن إيقاف الإرسال مجددًا في أي وقت.',
++ sending:
++ 'يرفع الإرسال كل حزمة يومية إلى خدمة القياس عن بُعد لدى Nous. تحمل الحزم معرّف التثبيت لهذا الملف الشخصي: معرّف UUID عشوائي ثابت بلا معلومات شخصية، ويُعاد تعيينه بحذف مجلد المقاييس المشتركة. لا تُرسل إلا الحزم التي تقع فترة جمعها كاملة داخل نافذة موافقة مسجلة. باستثناء ملاحظة التثبيت الجديد (التي تُسجَّل على هذا الجهاز ولا تُحتسب إلا بعد موافقتك)، تبقى البيانات السابقة لموافقتك، أو من أي فترة كان الإرسال فيها متوقفًا، على هذا الجهاز. يمكن إيقاف الإرسال مجددًا في أي وقت.',
readDocs: 'اقرأ التفاصيل الكاملة',
share: 'الجمع والإرسال إلى Nous',
local: 'الجمع محليًا فقط',
diff --cc apps/desktop/src/i18n/de_model_menu.ts
index 00000000000,70cb7b8af26..356a5368471
mode 000000,100644..100644
--- a/apps/desktop/src/i18n/de_model_menu.ts
+++ b/apps/desktop/src/i18n/de_model_menu.ts
@@@ -1,0 -1,35 +1,40 @@@
+ export const deModelMenu = {
+ search: 'Modelle durchsuchen',
+ noModels: 'Keine Modelle gefunden',
+ editModels: 'Modelle bearbeiten…',
+ followDefault: 'Standard aus den Einstellungen verwenden',
+ refreshModels: 'Modelle aktualisieren',
+ favorites: 'Favoriten',
+ addFavorite: 'Zu Favoriten hinzufügen',
+ removeFavorite: 'Aus Favoriten entfernen',
+ favoriteShortcut: '⇧ Klick',
+ fast: 'Schnell',
+ free: 'kostenlos',
+ cacheRead: 'Cache-Lesung',
+ priceTitle: (input: string, output: string, cache: string) =>
+ `Eingabe ${input}/Mtok · Ausgabe ${output}/Mtok` + (cache ? ` · Cache-Lesung ${cache}/Mtok` : ''),
++ localSetup: {
++ title: 'Lokal ausführen · kostenlos, privat',
++ text: (model: string, size: string) => `${model} passt auf diesen Rechner · ${size} Download`,
++ action: 'Einrichten'
++ },
+ limited: 'Limitiert',
+ limitedUntil: (time: string) => `Limitiert bis ${time}`,
+ limitedTip: (provider: string, time: null | string) =>
+ time
+ ? `${provider} hat sein Nutzungslimit erreicht. Es wird um ${time} zurückgesetzt; du kannst schon jetzt ein Modell für danach wählen.`
+ : `${provider} hat sein Nutzungslimit erreicht. Du kannst schon jetzt ein Modell für die Zeit nach dem Zurücksetzen wählen.`,
+ modelResets: (time: string) => `wieder ab ${time}`,
+ modelLimitedTip: (time: string) =>
+ `Dieses Modell hat sein eigenes Limit erreicht und ist ab ${time} wieder verfügbar. Andere Modelle hier funktionieren weiterhin.`,
+ usageLeft: (percent: number, time: null | string) =>
+ time ? `${percent} % übrig · zurückgesetzt ${time}` : `${percent} % übrig`,
+ poolAccounts: (count: number) => `${count} ${count === 1 ? 'Konto' : 'Konten'}`,
+ poolLimited: (limited: number, total: number) => `${limited}/${total} Konten limitiert`,
+ poolAccount: (number: number) => `Konto ${number}`,
+ poolUnknown: 'Nutzung nicht verfügbar',
+ poolUnavailable: 'Erneut anmelden',
+ usageTip: (provider: string) => `${provider} ist fast am Nutzungslimit.`,
+ usageWindow: (label: string, percent: number, time: null | string) =>
+ time ? `${label}: ${percent} % übrig, zurückgesetzt ${time}` : `${label}: ${percent} % übrig`
+ }
diff --cc apps/desktop/src/i18n/de_shared_metrics.ts
index 00000000000,2b9b493c7f3..4f5773af7f0
mode 000000,100644..100644
--- a/apps/desktop/src/i18n/de_shared_metrics.ts
+++ b/apps/desktop/src/i18n/de_shared_metrics.ts
@@@ -1,0 -1,39 +1,36 @@@
+ export const deSharedMetrics = {
+ consentTitle: 'Hermes verbessern helfen?',
++ dialogTitle: 'Hermes verbessern helfen?',
+ consentBody:
+ 'Geteilte Metriken enthalten nur begrenzte Zähler. Niemals Prompts, Dateien, Pfade oder Fehlertexte. Die Erfassung bleibt lokal. Das Senden an Nous ist eine separate Zustimmung.',
+ whatIsCollected: 'Was erfasst wird',
- collectedIntro: 'Nur begrenzte Zähler:',
+ collectedActivity:
+ 'Aktivität, Session-Länge, Ergebnisse und Fehlerklassen, einschließlich eines Grunds aus einer festen Liste, wenn ein Speicherschreibvorgang oder eine Kontextkomprimierung abgelehnt wird, fehlschlägt oder übersprungen wird',
+ collectedModels: 'Modellrouten und Token-Summen',
+ collectedNames: 'Namen integrierter Tools, Befehle und Katalogeinträge',
+ collectedMilestones: 'Gruppierte Einrichtungszahlen',
+ collectedReliability:
+ 'Ergebnisse und Dauer von Updates und Installationen (mit einem Grund aus einer festen Liste und der Phase, wenn etwas fehlschlägt, einschließlich einer Neuinstallation, die auf diesem Gerät festgehalten und erst nach deiner Zustimmung gezählt wird), Abstürze, Start- und Antwortzeiten, Zustand der Messaging-Plattformen',
+ collectedUsage:
+ 'Wie Hermes genutzt wird: Genauigkeit und Effizienz des Agenten (Treffer bei Bearbeitungen, Schleifen, Erholung nach Fehlern, Tokens und Tool-Aufrufe pro Aufgabe, Cache-Brüche), aktive Zeit pro Oberfläche und Desktop-Modus, welche App-Bereiche, Aktionen und Einstellungen genutzt, schnell geschlossen oder abgeschaltet werden, sowie Ergebnisse der Anbietereinrichtung',
+ collectedMachine:
+ 'Grobe Gerätedaten: RAM-Bereich, GPU-Typ, Alter und Kanal der Hermes-Version, Anzahl ausstehender Updates, ob ein lokaler Modellserver genutzt wird',
- installId:
- 'Beim Senden wird jedes Tagespaket an den Nous-Telemetriedienst hochgeladen. Pakete tragen die Installations-ID dieses Profils: eine feste zufällige UUID ohne persönliche Daten, zurückgesetzt durch Löschen des Shared-Metrics-Ordners.',
- consentWindow:
- 'Gesendet werden nur Pakete, deren gesamter Erfassungszeitraum in ein erfasstes Zustimmungsfenster fällt. Abgesehen vom Hinweis auf eine Neuinstallation (auf diesem Gerät festgehalten und erst nach Ihrer Zustimmung gezählt) bleiben Daten von vor Ihrer Zustimmung oder aus Lücken, in denen das Senden aus war, auf diesem Rechner. Das Senden lässt sich jederzeit wieder abschalten.',
++ sending:
++ 'Beim Senden wird jedes Tagespaket an den Nous-Telemetriedienst hochgeladen. Pakete tragen die Installations-ID dieses Profils: eine feste zufällige UUID ohne persönliche Daten, zurückgesetzt durch Löschen des Shared-Metrics-Ordners. Gesendet werden nur Pakete, deren gesamter Erfassungszeitraum in ein erfasstes Zustimmungsfenster fällt. Abgesehen vom Hinweis auf eine Neuinstallation (auf diesem Gerät festgehalten und erst nach Ihrer Zustimmung gezählt) bleiben Daten von vor Ihrer Zustimmung oder aus Lücken, in denen das Senden aus war, auf diesem Rechner. Das Senden lässt sich jederzeit wieder abschalten.',
+ readDocs: 'Alle Details lesen',
+ share: 'Erfassen und an Nous senden',
+ local: 'Nur lokal erfassen',
+ off: 'Nein, danke',
- changeLater: 'Sie können das jederzeit unter Einstellungen → Sicherheit ändern.',
+ saveFailed: 'Ihre Auswahl konnte nicht gespeichert werden',
+ collectLabel: 'Nutzungsstatistiken erfassen',
+ collectDesc: 'Begrenzte Zähler auf diesem Gerät. Niemals Prompts, Dateien, Pfade oder Fehlertexte.',
+ sendLabel: 'Nutzungsstatistiken an Nous senden',
+ sendDesc:
+ 'Jedes Tagespaket an den Nous-Telemetriedienst hochladen. Nur Daten aus einem Zustimmungsfenster werden gesendet. Erfordert aktive Erfassung.',
+ unavailable: 'Aktualisieren Sie das Hermes-Backend, um diese Einstellung zu ändern.',
+ stripBody: 'Nur begrenzte Zähler, niemals Prompts oder Dateien.',
+ stripReaskBody:
+ 'Wir fragen noch einmal: Eine frühere Version konnte „Nein danke“ speichern, bevor Sie diese Frage gesehen haben.',
+ stripChoices: { share: 'An Nous senden', local: 'Nur lokal', off: 'Nein danke' },
+ stripDetails: 'Details'
+ }
diff --cc apps/desktop/src/i18n/en.ts
index e3153937269,c345155a8a9..573abb68281
--- a/apps/desktop/src/i18n/en.ts
+++ b/apps/desktop/src/i18n/en.ts
@@@ -4330,29 -4046,11 +4057,7 @@@ export const en: Translations =
versionDetailsUncommittedChanges: 'uncommitted changes'
},
- handoffTour: {
- profileTitle: 'Your first task runs on the default profile',
- profileText:
- 'This rail switches profiles. The one lit up now is default, where the task session lives. The other one is the setup profile, where the welcome chat lives.',
- sessionsTitle: 'Each profile keeps its own sessions',
- sessionsText:
- 'This list belongs to the default profile. New session starts one on whichever profile is selected. Switch profiles on the rail and the list changes with it.',
- stayTitle: 'Hermes is one click away',
- stayText: 'Switch to the setup profile and open Welcome to Hermes whenever you want a hand. It stays there.',
- localTitle: 'This machine can run models locally',
- localText: (model: string) =>
- `${model} fits your hardware. It runs free, and chats never leave your computer. Pick it here, in the model menu, whenever you want.`
- },
- appTour: {
- sessions: { title: 'Your chats', text: 'Every conversation lives here. Search, pin or reopen any of them.' },
- composer: { title: 'Ask here', text: 'Say what you want done. Type @ to bring in a file.' },
- newSession: { title: 'Start fresh', text: 'A new session gets its own context. Use one per job.' },
- model: { title: 'Model picker', text: 'Chooses which model answers you.' },
- modelLocal: 'This computer can run one locally: Settings > Providers > Local Models.',
- capabilities: { title: 'Capabilities', text: 'Skills, tools and plugins Hermes can use. Add more here.' },
- messaging: { title: 'Messaging', text: 'Reach Hermes from Telegram, Slack, Discord and more.' },
- rightPane: { title: 'The working pane', text: 'Opens files, terminal, review and the in-app browser on the right.' }
- },
+ handoffTour: enHandoffTour,
- guidedGreeting: {
- line: "Hey, come on in. I'm Hermes. Give me two minutes to set the place up around you, then we'll put me to work on something you actually want done.\n\nFirst though, what should I call you?",
- nameSuggestion: (name: string) => `(I can also just call you ${name}, if you prefer.)`
- },
install: {
stageStates: {
pending: 'Pending',
@@@ -5336,54 -5016,7 +5024,32 @@@
notDelivered:
"This question didn't reach the app, so it can't be answered here. Press Stop to end the turn, then reply in chat."
},
+ setupChoose: {
+ kinds: {
+ accent: 'Accent color',
+ connectors: 'Apps',
+ layout: 'Layout',
+ plugins: 'Plugins',
+ theme: 'Appearance'
+ },
+ loading: 'Loading options…',
+ unavailable: "This list isn't available right now. Reply in chat instead.",
+ findApp: 'Find an app',
+ customColor: 'Custom color',
+ plugin: 'Plugin',
+ startsLater: "We'll set these up when you start."
+ },
+ startChat: {
+ starting: title => `Starting “${title}”…`,
+ startingUntitled: 'Starting a chat…',
+ untitled: 'New chat',
+ notStarted: "Couldn't start that chat.",
+ retry: 'Retry',
+ inProfile: profile => `In ${profile}`,
+ open: 'Open',
+ openFailed: "Couldn't open the chat"
+ },
- catalogInstall: {
- preparing: 'Preparing the install…',
- install: 'Install',
- advanced: 'Advanced',
- skip: 'Skip',
- installing: 'Installing…',
- installed: 'Installed',
- notInstalled: 'Not installed',
- failed: 'Failed',
- showNames: 'show names',
- hideNames: 'hide names',
- skill: name => `skill ${name}`,
- kind: { plugin: 'plugin', skill: 'skill' },
- tier: { official: 'official', community: 'community' },
- targetProfile: profile => `Installs into your ${profile} profile`,
- sendFailed: 'Could not send your answer. Try again.',
- commitLabel: 'Commit',
- subdirLabel: 'Folder',
- securityHeading: 'Security',
- scan: { passed: 'Scan passed', warnings: 'Scan found warnings', failed: 'Scan failed' },
- requirementsLabel: 'Requires',
- credentialsHeading: 'Credentials'
- },
+ catalogInstall: enCatalogInstall,
mcpSetup: {
installTitle: 'Add MCP servers',
enableTitle: 'Enable MCP servers',
diff --cc apps/desktop/src/i18n/en_app_tour.ts
index 00000000000,073b41ae3a6..bfe4af504aa
mode 000000,100644..100644
--- a/apps/desktop/src/i18n/en_app_tour.ts
+++ b/apps/desktop/src/i18n/en_app_tour.ts
@@@ -1,0 -1,23 +1,26 @@@
+ import type { Translations } from './types'
+
+ export const enAppTour: Translations['appTour'] = {
+ sessions: { title: 'Your chats', text: 'Every conversation lives here. Search, pin or reopen any of them.' },
+ composer: { title: 'Ask here', text: 'Say what you want done. Type @ to bring in a file.' },
+ newSession: { title: 'Start fresh', text: 'A new session gets its own context. Use one per job.' },
+ model: { title: 'Model picker', text: 'Chooses which model answers you.' },
+ modelLocal: 'This computer can run one locally: Settings > Providers > Local Models.',
+ capabilities: { title: 'Capabilities', text: 'Skills, tools and plugins Hermes can use. Add more here.' },
+ messaging: { title: 'Messaging', text: 'Reach Hermes from Telegram, Slack, Discord and more.' },
+ rightPane: { title: 'The working pane', text: 'Opens files, terminal, review and the in-app browser on the right.' }
+ }
+
+ export const enHandoffTour: Translations['handoffTour'] = {
+ profileTitle: 'Your first task runs on the default profile',
+ profileText:
+ 'This rail switches profiles. The one lit up now is default, where the task session lives. The other one is the setup profile, where the welcome chat lives.',
+ sessionsTitle: 'Each profile keeps its own sessions',
+ sessionsText:
+ 'This list belongs to the default profile. New session starts one on whichever profile is selected. Switch profiles on the rail and the list changes with it.',
+ stayTitle: 'Hermes is one click away',
- stayText: 'Switch to the setup profile and open Welcome to Hermes whenever you want a hand. It stays there.'
++ stayText: 'Switch to the setup profile and open Welcome to Hermes whenever you want a hand. It stays there.',
++ localTitle: 'This machine can run models locally',
++ localText: (model: string) =>
++ `${model} fits your hardware. It runs free, and chats never leave your computer. Pick it here, in the model menu, whenever you want.`
+ }
diff --cc apps/desktop/src/i18n/en_model_menu.ts
index 00000000000,e029f2eda7d..ccf38e44ca3
mode 000000,100644..100644
--- a/apps/desktop/src/i18n/en_model_menu.ts
+++ b/apps/desktop/src/i18n/en_model_menu.ts
@@@ -1,0 -1,37 +1,42 @@@
+ import type { Translations } from './types'
+
+ export const enModelMenu: Translations['shell']['modelMenu'] = {
+ search: 'Search models',
+ noModels: 'No models found',
+ editModels: 'Edit models…',
+ followDefault: 'Use Settings default',
+ refreshModels: 'Refresh models',
+ favorites: 'Favorites',
+ addFavorite: 'Add to favorites',
+ removeFavorite: 'Remove from favorites',
+ favoriteShortcut: '⇧ Click',
+ fast: 'Fast',
+ free: 'free',
+ cacheRead: 'cached read',
+ priceTitle: (input: string, output: string, cache: string) =>
+ `Input ${input}/Mtok · Output ${output}/Mtok` + (cache ? ` · Cached read ${cache}/Mtok` : ''),
++ localSetup: {
++ title: 'Run locally · free, private',
++ text: (model: string, size: string) => `${model} fits this machine · ${size} download`,
++ action: 'Set up'
++ },
+ limited: 'Limited',
+ limitedUntil: (time: string) => `Limited until ${time}`,
+ limitedTip: (provider: string, time: null | string) =>
+ time
+ ? `${provider} hit its usage limit. It resets at ${time}; you can still pick a model for after.`
+ : `${provider} hit its usage limit. You can still pick a model for after it resets.`,
+ modelResets: (time: string) => `resets ${time}`,
+ modelLimitedTip: (time: string) =>
+ `This model hit its own limit and resets at ${time}. Other models here still work.`,
+ usageLeft: (percent: number, time: null | string) =>
+ time ? `${percent}% left · resets ${time}` : `${percent}% left`,
+ poolAccounts: (count: number) => `${count} ${count === 1 ? 'account' : 'accounts'}`,
+ poolLimited: (limited: number, total: number) => `${limited}/${total} accounts limited`,
+ poolAccount: (number: number) => `Account ${number}`,
+ poolUnknown: 'Usage unavailable',
+ poolUnavailable: 'Sign in again',
+ usageTip: (provider: string) => `${provider} is close to its usage limit.`,
+ usageWindow: (label: string, percent: number, time: null | string) =>
+ time ? `${label}: ${percent}% left, resets ${time}` : `${label}: ${percent}% left`
+ }
diff --cc apps/desktop/src/i18n/en_shared_metrics.ts
index 00000000000,88d1914bac3..a525459ec72
mode 000000,100644..100644
--- a/apps/desktop/src/i18n/en_shared_metrics.ts
+++ b/apps/desktop/src/i18n/en_shared_metrics.ts
@@@ -1,0 -1,39 +1,33 @@@
+ import type { Translations } from './types'
+
+ export const enSharedMetrics: Translations['sharedMetrics'] = {
- consentTitle: 'Help improve Hermes?',
++ consentTitle: 'Share usage stats?',
++ dialogTitle: 'Usage stats',
+ consentBody:
- 'Shared metrics contain only bounded counters. Never prompts, files, paths or error text. Collection is local. Sending them to Nous is a separate opt-in.',
- whatIsCollected: 'What is collected',
- collectedIntro: 'Only bounded counters:',
- collectedActivity:
- 'Activity, session length, outcomes and error classes, including a fixed-list reason when a memory write or context compression is refused, fails or is skipped',
- collectedModels: 'Model routes and token totals',
- collectedNames: 'Built-in tool, command and catalog names',
- collectedMilestones: 'Bucketed setup counts',
- collectedReliability: 'Update and install results and timing (with a fixed-list reason and the stage when one fails, including a fresh install recorded on this machine and counted only once you opt in), crashes, startup and reply speed, messaging-platform health',
- collectedUsage:
- 'How Hermes gets used: agent accuracy and efficiency (edit matches, loops, recoveries, tokens and tool calls per task, cache breaks), active time per surface and Desktop mode, which app areas, actions and settings are used, closed quickly or switched off, and provider setup outcomes',
- collectedMachine:
- 'Coarse machine facts: RAM range, GPU type, Hermes version age and release channel, updates behind, whether a local model server is used',
- installId:
- 'Sending uploads each daily package to the Nous telemetry service. Packages carry this profile’s install ID: a stable random UUID with no personal information, reset by deleting the shared-metrics directory.',
- consentWindow:
- 'Only packages whose entire collection period falls inside a recorded consent window are ever sent. Apart from the fresh-install note (noted on this machine and counted only once you opt in), data from before you opt in, or from any gap while sending was off, stays on this machine. Sending can be turned off again at any time.',
++ 'Hermes can count how you use it: session length, which models and tools run, and when something fails. It never records your messages, files, paths or error text.',
++ whatIsCollected: 'What is counted',
++ collectedActivity: 'Sessions: length, outcome, error type, active time per day',
++ collectedModels: 'Models: which ones, token totals',
++ collectedNames: 'Features: built-in tools, commands, app areas and settings used or turned off',
++ collectedMilestones: 'Setup: which steps finished, provider connections, how many skills, plugins and jobs',
++ collectedReliability: 'App health: crashes, startup and reply speed, updates, messaging connections',
++ collectedUsage: 'Agent quality: missed edits, broken tool calls, stuck loops, cost per task',
++ collectedMachine: 'Machine: OS, RAM range, GPU type, Hermes version, local model use',
++ sending:
++ 'Stats stay on this computer unless you choose Share. Shared stats go to Nous once a day with a random ID for this profile. Apart from a one-time note that Hermes was installed, counted only once you opt in, stats from before you opted in are never sent. Change this anytime in Settings.',
+ readDocs: 'Read the full details',
- share: 'Collect and send to Nous',
- local: 'Collect locally only',
++ share: 'Share with Nous',
++ local: 'Keep on this computer',
+ off: 'No thanks',
- changeLater: 'You can change this any time in Settings → Safety.',
+ saveFailed: 'Couldn’t save your choice',
+ collectLabel: 'Collect usage stats',
- collectDesc: 'Bounded counters kept on this device. Never prompts, files, paths or error text.',
- sendLabel: 'Send usage stats to Nous',
++ collectDesc: 'Counts only, kept on this computer. Never your messages, files, paths or error text.',
++ sendLabel: 'Share usage stats with Nous',
+ sendDesc:
- 'Upload each daily package to the Nous telemetry service. Only data from inside a consent window is sent. Needs collection on.',
++ 'Sends stats to Nous once a day with a random ID for this profile. Apart from the one-time install note, stats from before you opted in are never sent. Needs collection on.',
+ unavailable: 'Update the Hermes backend to change this setting.',
- stripBody: 'Bounded counters only, never prompts or files.',
++ stripBody: 'Counts only. Never your messages or files.',
+ stripReaskBody: 'Asking once more: an earlier version could save “No thanks” before you saw this.',
- stripChoices: { share: 'Send to Nous', local: 'Local only', off: 'No thanks' },
++ stripChoices: { share: 'Share with Nous', local: 'Keep on this computer', off: 'No thanks' },
+ stripDetails: 'Details'
+ }
diff --cc apps/desktop/src/i18n/es_model_menu.ts
index 00000000000,58d9e960aab..7acb7d5eaed
mode 000000,100644..100644
--- a/apps/desktop/src/i18n/es_model_menu.ts
+++ b/apps/desktop/src/i18n/es_model_menu.ts
@@@ -1,0 -1,35 +1,40 @@@
+ export const esModelMenu = {
+ search: 'Buscar modelos',
+ noModels: 'No se encontraron modelos',
+ editModels: 'Editar modelos…',
+ followDefault: 'Usar el predeterminado de Ajustes',
+ refreshModels: 'Actualizar modelos',
+ favorites: 'Favoritos',
+ addFavorite: 'Añadir a favoritos',
+ removeFavorite: 'Quitar de favoritos',
+ favoriteShortcut: '⇧ Clic',
+ fast: 'Rápido',
+ free: 'gratis',
+ cacheRead: 'lectura en caché',
+ priceTitle: (input: string, output: string, cache: string) =>
+ `Entrada ${input}/Mtok · Salida ${output}/Mtok` + (cache ? ` · Lectura en caché ${cache}/Mtok` : ''),
++ localSetup: {
++ title: 'Ejecutar en local · gratis, privado',
++ text: (model: string, size: string) => `${model} cabe en este equipo · descarga de ${size}`,
++ action: 'Configurar'
++ },
+ limited: 'Limitado',
+ limitedUntil: (time: string) => `Limitado hasta las ${time}`,
+ limitedTip: (provider: string, time: null | string) =>
+ time
+ ? `${provider} alcanzó su límite de uso. Se restablece a las ${time}; ya puedes elegir un modelo para después.`
+ : `${provider} alcanzó su límite de uso. Ya puedes elegir un modelo para cuando se restablezca.`,
+ modelResets: (time: string) => `vuelve a las ${time}`,
+ modelLimitedTip: (time: string) =>
+ `Este modelo alcanzó su propio límite y vuelve a las ${time}. Los demás modelos de aquí siguen funcionando.`,
+ usageLeft: (percent: number, time: null | string) =>
+ time ? `Queda ${percent} % · se restablece ${time}` : `Queda ${percent} %`,
+ poolAccounts: (count: number) => `${count} ${count === 1 ? 'cuenta' : 'cuentas'}`,
+ poolLimited: (limited: number, total: number) => `${limited}/${total} cuentas limitadas`,
+ poolAccount: (number: number) => `Cuenta ${number}`,
+ poolUnknown: 'Uso no disponible',
+ poolUnavailable: 'Vuelve a iniciar sesión',
+ usageTip: (provider: string) => `${provider} está cerca de su límite de uso.`,
+ usageWindow: (label: string, percent: number, time: null | string) =>
+ time ? `${label}: queda ${percent} %, se restablece ${time}` : `${label}: queda ${percent} %`
+ }
diff --cc apps/desktop/src/i18n/es_shared_metrics.ts
index 00000000000,a38b1663942..ab0842e83a8
mode 000000,100644..100644
--- a/apps/desktop/src/i18n/es_shared_metrics.ts
+++ b/apps/desktop/src/i18n/es_shared_metrics.ts
@@@ -1,0 -1,39 +1,36 @@@
+ export const esSharedMetrics = {
+ consentTitle: '¿Nos ayudas a mejorar Hermes?',
++ dialogTitle: '¿Nos ayudas a mejorar Hermes?',
+ consentBody:
+ 'Las métricas compartidas solo contienen contadores acotados. Nunca prompts, archivos, rutas ni textos de error. La recopilación es local. Enviarlas a Nous es una aceptación aparte.',
+ whatIsCollected: 'Qué se recopila',
- collectedIntro: 'Solo contadores acotados:',
+ collectedActivity:
+ 'Actividad, duración de sesiones, resultados y clases de error, incluido un motivo de una lista fija cuando una escritura en memoria o una compresión de contexto se rechaza, falla o se omite',
+ collectedModels: 'Rutas de modelo y totales de tokens',
+ collectedNames: 'Nombres de herramientas, comandos y elementos del catálogo integrados',
+ collectedMilestones: 'Recuentos de configuración agrupados',
+ collectedReliability:
+ 'Resultados y duración de actualizaciones e instalaciones (con un motivo de una lista fija y la etapa cuando algo falla, incluida una instalación nueva registrada en este equipo que solo se cuenta si aceptas), fallos, velocidad de inicio y de respuesta, estado de las plataformas de mensajería',
+ collectedUsage:
+ 'Cómo se usa Hermes: precisión y eficiencia del agente (ediciones acertadas, bucles, recuperaciones, tokens y llamadas a herramientas por tarea, cortes de caché), tiempo activo por superficie y modo de Desktop, qué áreas, acciones y ajustes de la app se usan, se cierran enseguida o se desactivan, y resultados de la configuración de proveedores',
+ collectedMachine:
+ 'Datos generales del equipo: rango de RAM, tipo de GPU, antigüedad y canal de la versión de Hermes, actualizaciones pendientes, si se usa un servidor de modelos local',
- installId:
- 'Al enviar, cada paquete diario se sube al servicio de telemetría de Nous. Los paquetes llevan el ID de instalación de este perfil: un UUID aleatorio y estable sin información personal, que se restablece al borrar el directorio de métricas compartidas.',
- consentWindow:
- 'Solo se envían los paquetes cuyo periodo de recopilación completo cae dentro de una ventana de consentimiento registrada. Salvo el aviso de instalación nueva (registrado en este equipo y que solo se cuenta si aceptas), los datos de antes de aceptar, o de cualquier intervalo con el envío desactivado, se quedan en este equipo. Puedes volver a desactivar el envío cuando quieras.',
++ sending:
++ 'Al enviar, cada paquete diario se sube al servicio de telemetría de Nous. Los paquetes llevan el ID de instalación de este perfil: un UUID aleatorio y estable sin información personal, que se restablece al borrar el directorio de métricas compartidas. Solo se envían los paquetes cuyo periodo de recopilación completo cae dentro de una ventana de consentimiento registrada. Salvo el aviso de instalación nueva (registrado en este equipo y que solo se cuenta si aceptas), los datos de antes de aceptar, o de cualquier intervalo con el envío desactivado, se quedan en este equipo. Puedes volver a desactivar el envío cuando quieras.',
+ readDocs: 'Leer todos los detalles',
+ share: 'Recopilar y enviar a Nous',
+ local: 'Recopilar solo en local',
+ off: 'No, gracias',
- changeLater: 'Puedes cambiarlo cuando quieras en Ajustes → Seguridad.',
+ saveFailed: 'No se pudo guardar tu elección',
+ collectLabel: 'Recopilar estadísticas de uso',
+ collectDesc: 'Contadores acotados guardados en este dispositivo. Nunca prompts, archivos, rutas ni textos de error.',
+ sendLabel: 'Enviar estadísticas de uso a Nous',
+ sendDesc:
+ 'Sube cada paquete diario al servicio de telemetría de Nous. Solo se envían datos de una ventana de consentimiento. Requiere la recopilación activada.',
+ unavailable: 'Actualiza el backend de Hermes para cambiar este ajuste.',
+ stripBody: 'Solo contadores acotados, nunca prompts ni archivos.',
+ stripReaskBody:
+ 'Te lo preguntamos de nuevo: una versión anterior podía guardar «No, gracias» antes de que vieras esta pregunta.',
+ stripChoices: { share: 'Enviar a Nous', local: 'Solo local', off: 'No, gracias' },
+ stripDetails: 'Detalles'
+ }
diff --cc apps/desktop/src/i18n/fr_model_menu.ts
index 00000000000,2a8ebdf745c..c4869309815
mode 000000,100644..100644
--- a/apps/desktop/src/i18n/fr_model_menu.ts
+++ b/apps/desktop/src/i18n/fr_model_menu.ts
@@@ -1,0 -1,35 +1,40 @@@
+ export const frModelMenu = {
+ search: 'Rechercher des modèles',
+ noModels: 'Aucun modèle trouvé',
+ editModels: 'Modifier les modèles…',
+ followDefault: 'Utiliser le modèle par défaut des Réglages',
+ refreshModels: 'Actualiser les modèles',
+ favorites: 'Favoris',
+ addFavorite: 'Ajouter aux favoris',
+ removeFavorite: 'Retirer des favoris',
+ favoriteShortcut: '⇧ Clic',
+ fast: 'Rapide',
+ free: 'gratuit',
+ cacheRead: 'lecture en cache',
+ priceTitle: (input: string, output: string, cache: string) =>
+ `Entrée ${input}/Mtok · Sortie ${output}/Mtok` + (cache ? ` · Lecture en cache ${cache}/Mtok` : ''),
++ localSetup: {
++ title: 'Exécuter en local · gratuit, privé',
++ text: (model: string, size: string) => `${model} tient sur cette machine · téléchargement de ${size}`,
++ action: 'Configurer'
++ },
+ limited: 'Limité',
+ limitedUntil: (time: string) => `Limité jusqu’à ${time}`,
+ limitedTip: (provider: string, time: null | string) =>
+ time
+ ? `${provider} a atteint sa limite d’utilisation. Elle se réinitialise à ${time} ; vous pouvez déjà choisir un modèle pour après.`
+ : `${provider} a atteint sa limite d’utilisation. Vous pouvez déjà choisir un modèle pour après sa réinitialisation.`,
+ modelResets: (time: string) => `de retour à ${time}`,
+ modelLimitedTip: (time: string) =>
+ `Ce modèle a atteint sa propre limite et revient à ${time}. Les autres modèles ici fonctionnent toujours.`,
+ usageLeft: (percent: number, time: null | string) =>
+ time ? `${percent} % restant · réinit. ${time}` : `${percent} % restant`,
+ poolAccounts: (count: number) => `${count} ${count === 1 ? 'compte' : 'comptes'}`,
+ poolLimited: (limited: number, total: number) => `${limited}/${total} comptes limités`,
+ poolAccount: (number: number) => `Compte ${number}`,
+ poolUnknown: 'Utilisation indisponible',
+ poolUnavailable: 'Reconnectez-vous',
+ usageTip: (provider: string) => `${provider} approche de sa limite d’utilisation.`,
+ usageWindow: (label: string, percent: number, time: null | string) =>
+ time ? `${label} : ${percent} % restant, réinitialisation ${time}` : `${label} : ${percent} % restant`
+ }
diff --cc apps/desktop/src/i18n/fr_shared_metrics.ts
index 00000000000,b9c889e6064..6f0e2aa2691
mode 000000,100644..100644
--- a/apps/desktop/src/i18n/fr_shared_metrics.ts
+++ b/apps/desktop/src/i18n/fr_shared_metrics.ts
@@@ -1,0 -1,39 +1,36 @@@
+ export const frSharedMetrics = {
+ consentTitle: 'Aider à améliorer Hermes ?',
++ dialogTitle: 'Aider à améliorer Hermes ?',
+ consentBody:
+ 'Les métriques partagées ne contiennent que des compteurs bornés. Jamais de prompts, fichiers, chemins ni textes d’erreur. La collecte reste locale. Les envoyer à Nous est un consentement distinct.',
+ whatIsCollected: 'Ce qui est collecté',
- collectedIntro: 'Uniquement des compteurs bornés :',
+ collectedActivity:
+ 'Activité, durée des sessions, résultats et classes d’erreur, y compris un motif issu d’une liste fixe quand une écriture en mémoire ou une compression du contexte est refusée, échoue ou est ignorée',
+ collectedModels: 'Routes de modèles et totaux de tokens',
+ collectedNames: 'Noms des outils, commandes et éléments du catalogue intégrés',
+ collectedMilestones: 'Comptes de configuration regroupés',
+ collectedReliability:
+ 'Résultats et durée des mises à jour et installations (avec un motif issu d’une liste fixe et l’étape en cas d’échec, y compris une nouvelle installation enregistrée sur cette machine et comptée seulement après votre accord), plantages, vitesse de démarrage et de réponse, état des plateformes de messagerie',
+ collectedUsage:
+ "Comment Hermes est utilisé : précision et efficacité de l'agent (modifications réussies, boucles, reprises après erreur, jetons et appels d'outils par tâche, ruptures de cache), temps actif par interface et mode Desktop, zones, actions et réglages de l'app utilisés, vite fermés ou désactivés, et résultats de la configuration des fournisseurs",
+ collectedMachine:
+ "Données générales de la machine : plage de RAM, type de GPU, âge et canal de la version de Hermes, mises à jour en retard, utilisation d'un serveur de modèles local",
- installId:
- 'L’envoi transmet chaque paquet quotidien au service de télémétrie de Nous. Les paquets portent l’identifiant d’installation de ce profil : un UUID aléatoire stable sans information personnelle, réinitialisé en supprimant le dossier des métriques partagées.',
- consentWindow:
- 'Seuls les paquets dont toute la période de collecte tombe dans une fenêtre de consentement enregistrée sont envoyés. Hormis la note de nouvelle installation (enregistrée sur cette machine et comptée seulement après votre accord), les données d’avant votre accord, ou de toute période où l’envoi était désactivé, restent sur cette machine. L’envoi peut être désactivé à tout moment.',
++ sending:
++ 'L’envoi transmet chaque paquet quotidien au service de télémétrie de Nous. Les paquets portent l’identifiant d’installation de ce profil : un UUID aléatoire stable sans information personnelle, réinitialisé en supprimant le dossier des métriques partagées. Seuls les paquets dont toute la période de collecte tombe dans une fenêtre de consentement enregistrée sont envoyés. Hormis la note de nouvelle installation (enregistrée sur cette machine et comptée seulement après votre accord), les données d’avant votre accord, ou de toute période où l’envoi était désactivé, restent sur cette machine. L’envoi peut être désactivé à tout moment.',
+ readDocs: 'Lire tous les détails',
+ share: 'Collecter et envoyer à Nous',
+ local: 'Collecter en local uniquement',
+ off: 'Non merci',
- changeLater: 'Vous pouvez changer cela à tout moment dans Réglages → Sécurité.',
+ saveFailed: 'Impossible d’enregistrer votre choix',
+ collectLabel: 'Collecter les statistiques d’utilisation',
+ collectDesc: 'Compteurs bornés conservés sur cet appareil. Jamais de prompts, fichiers, chemins ni textes d’erreur.',
+ sendLabel: 'Envoyer les statistiques d’utilisation à Nous',
+ sendDesc:
+ 'Envoyer chaque paquet quotidien au service de télémétrie de Nous. Seules les données d’une fenêtre de consentement sont envoyées. Nécessite la collecte activée.',
+ unavailable: 'Mettez à jour le backend Hermes pour modifier ce réglage.',
+ stripBody: 'Uniquement des compteurs bornés, jamais de prompts ni de fichiers.',
+ stripReaskBody:
+ 'Nouvelle demande : une version précédente pouvait enregistrer « Non merci » avant que vous ne voyiez cette question.',
+ stripChoices: { share: 'Envoyer à Nous', local: 'Local uniquement', off: 'Non merci' },
+ stripDetails: 'Détails'
+ }
diff --cc apps/desktop/src/i18n/ja_model_menu.ts
index 00000000000,c2e2ebf8020..e967ff35425
mode 000000,100644..100644
--- a/apps/desktop/src/i18n/ja_model_menu.ts
+++ b/apps/desktop/src/i18n/ja_model_menu.ts
@@@ -1,0 -1,35 +1,40 @@@
+ export const jaModelMenu = {
+ search: 'モデルを検索',
+ noModels: 'モデルが見つかりません',
+ editModels: 'モデルを編集…',
+ followDefault: '設定のデフォルトを使用',
+ refreshModels: 'モデルを更新',
+ favorites: 'お気に入り',
+ addFavorite: 'お気に入りに追加',
+ removeFavorite: 'お気に入りから削除',
+ favoriteShortcut: '⇧ クリック',
+ fast: '高速',
+ free: '無料',
+ cacheRead: 'キャッシュ読み取り',
+ priceTitle: (input: string, output: string, cache: string) =>
+ `入力 ${input}/Mtok · 出力 ${output}/Mtok` + (cache ? ` · キャッシュ読み取り ${cache}/Mtok` : ''),
++ localSetup: {
++ title: 'ローカルで実行 · 無料・プライベート',
++ text: (model: string, size: string) => `${model} はこのマシンで動きます · ${size} をダウンロード`,
++ action: '設定する'
++ },
+ limited: '制限中',
+ limitedUntil: (time: string) => `${time} まで制限中`,
+ limitedTip: (provider: string, time: null | string) =>
+ time
+ ? `${provider} が利用上限に達しました。${time} にリセットされます。リセット後に使うモデルは今のうちに選べます。`
+ : `${provider} が利用上限に達しました。リセット後に使うモデルは今のうちに選べます。`,
+ modelResets: (time: string) => `${time} に再開`,
+ modelLimitedTip: (time: string) =>
+ `このモデルは個別の上限に達しており、${time} に再開します。ここにある他のモデルは引き続き使えます。`,
+ usageLeft: (percent: number, time: null | string) =>
+ time ? `残り ${percent}% · ${time} にリセット` : `残り ${percent}%`,
+ poolAccounts: (count: number) => `${count} アカウント`,
+ poolLimited: (limited: number, total: number) => `${total} アカウント中 ${limited} 件が制限中`,
+ poolAccount: (number: number) => `アカウント ${number}`,
+ poolUnknown: '使用量を取得できません',
+ poolUnavailable: '再ログインしてください',
+ usageTip: (provider: string) => `${provider} は利用上限に近づいています。`,
+ usageWindow: (label: string, percent: number, time: null | string) =>
+ time ? `${label}: 残り ${percent}%、${time} にリセット` : `${label}: 残り ${percent}%`
+ }
diff --cc apps/desktop/src/i18n/ja_shared_metrics.ts
index 00000000000,b61dde908f9..64819b68fdb
mode 000000,100644..100644
--- a/apps/desktop/src/i18n/ja_shared_metrics.ts
+++ b/apps/desktop/src/i18n/ja_shared_metrics.ts
@@@ -1,0 -1,40 +1,37 @@@
+ export const jaSharedMetrics = {
+ consentTitle: 'Hermes の改善に協力しますか?',
++ dialogTitle: 'Hermes の改善に協力しますか?',
+ consentBody:
+ '共有メトリクスは上限付きのカウンターだけです。プロンプト、ファイル、パス、エラーテキストは含みません。収集はローカルで行われ、Nous への送信は別途オプトインです。',
+ whatIsCollected: '収集される内容',
- collectedIntro: '上限付きのカウンターのみ:',
+ collectedActivity:
+ 'アクティビティ、セッションの長さ、結果、エラーの分類(メモリへの書き込みやコンテキスト圧縮が拒否・失敗・スキップされたときの、固定リストから選ばれた理由を含む)',
+ collectedModels: 'モデルのルートとトークン合計',
+ collectedNames: '組み込みツール、コマンド、カタログの名前',
+ collectedMilestones: '区分けされたセットアップの件数',
+ collectedReliability:
+ 'アップデートとインストールの結果と所要時間(失敗時は固定リストから選ばれた理由と段階を含む。新規インストールはこのマシンに記録され、同意後にのみ集計)、クラッシュ、起動と応答の速さ、メッセージングプラットフォームの状態',
+ collectedUsage:
+ 'Hermes の使われ方:エージェントの精度と効率(編集の適用結果、ループ、エラーからの回復、タスクごとのトークン数とツール呼び出し数、キャッシュの破棄)、画面・Desktop モードごとのアクティブ時間、アプリのどの領域・操作・設定が使われ、すぐ閉じられ、オフにされたか、プロバイダー設定の結果',
+ collectedMachine:
+ '大まかなマシン情報:RAM の範囲、GPU の種類、Hermes バージョンの古さとリリースチャネル、未適用の更新数、ローカルモデルサーバーの使用有無',
- installId:
- '送信すると、日次パッケージが Nous のテレメトリサービスにアップロードされます。パッケージにはこのプロファイルのインストール ID(個人情報を含まない固定のランダム UUID。共有メトリクスのディレクトリを削除するとリセット)が付きます。',
- consentWindow:
- '収集期間全体が記録済みの同意期間内に収まるパッケージだけが送信されます。新規インストールの記録(このマシンに記録され、同意後にのみ集計)を除き、オプトイン前のデータや、送信オフ中のデータはこのマシンに残ります。送信はいつでもオフに戻せます。',
++ sending:
++ '送信すると、日次パッケージが Nous のテレメトリサービスにアップロードされます。パッケージにはこのプロファイルのインストール ID(個人情報を含まない固定のランダム UUID。共有メトリクスのディレクトリを削除するとリセット)が付きます。収集期間全体が記録済みの同意期間内に収まるパッケージだけが送信されます。新規インストールの記録(このマシンに記録され、同意後にのみ集計)を除き、オプトイン前のデータや、送信オフ中のデータはこのマシンに残ります。送信はいつでもオフに戻せます。',
+ readDocs: '詳細を読む',
+ share: '収集して Nous に送信する',
+ local: 'ローカルでのみ収集する',
+ off: '共有しない',
- changeLater: '設定 → 安全性 からいつでも変更できます。',
+ saveFailed: '選択を保存できませんでした',
+ collectLabel: '利用統計を収集する',
+ collectDesc:
+ '上限付きのカウンターをこのデバイスに保存します。プロンプト、ファイル、パス、エラーテキストは含みません。',
+ sendLabel: '利用統計を Nous に送信する',
+ sendDesc:
+ '日次パッケージを Nous のテレメトリサービスにアップロードします。同意期間内のデータだけが送信されます。収集がオンである必要があります。',
+ unavailable: 'この設定を変更するには Hermes バックエンドを更新してください。',
+ stripBody: '上限付きのカウンターのみ。プロンプトやファイルは含みません。',
+ stripReaskBody:
+ '改めてお尋ねします:以前のバージョンでは、この質問が表示される前に「今はしない」が保存されることがありました。',
+ stripChoices: { share: 'Nous に送信', local: 'ローカルのみ', off: '今はしない' },
+ stripDetails: '詳細'
+ }
diff --cc apps/desktop/src/i18n/ru_model_menu.ts
index 00000000000,a2c3d3d0c5d..7589ee4c2bf
mode 000000,100644..100644
--- a/apps/desktop/src/i18n/ru_model_menu.ts
+++ b/apps/desktop/src/i18n/ru_model_menu.ts
@@@ -1,0 -1,35 +1,40 @@@
+ export const ruModelMenu = {
+ search: 'Поиск моделей',
+ noModels: 'Модели не найдены',
+ editModels: 'Изменить модели…',
+ followDefault: 'Использовать модель по умолчанию из настроек',
+ refreshModels: 'Обновить модели',
+ favorites: 'Избранное',
+ addFavorite: 'Добавить в избранное',
+ removeFavorite: 'Убрать из избранного',
+ favoriteShortcut: '⇧ Клик',
+ fast: 'Быстрая',
+ free: 'бесплатно',
+ cacheRead: 'чтение из кэша',
+ priceTitle: (input: string, output: string, cache: string) =>
+ `Вход ${input}/Mtok · Выход ${output}/Mtok` + (cache ? ` · Чтение из кэша ${cache}/Mtok` : ''),
++ localSetup: {
++ title: 'Запуск локально · бесплатно, приватно',
++ text: (model: string, size: string) => `${model} подходит для этого компьютера · загрузка ${size}`,
++ action: 'Настроить'
++ },
+ limited: 'Лимит',
+ limitedUntil: (time: string) => `Лимит до ${time}`,
+ limitedTip: (provider: string, time: null | string) =>
+ time
+ ? `${provider} исчерпал лимит использования. Он сбросится в ${time}; модель на потом можно выбрать уже сейчас.`
+ : `${provider} исчерпал лимит использования. Модель на время после сброса можно выбрать уже сейчас.`,
+ modelResets: (time: string) => `снова в ${time}`,
+ modelLimitedTip: (time: string) =>
+ `Эта модель исчерпала собственный лимит и вернётся в ${time}. Остальные модели здесь работают.`,
+ usageLeft: (percent: number, time: null | string) =>
+ time ? `Осталось ${percent}% · сброс в ${time}` : `Осталось ${percent}%`,
+ poolAccounts: (count: number) => `Аккаунтов: ${count}`,
+ poolLimited: (limited: number, total: number) => `Лимит у ${limited}/${total} аккаунтов`,
+ poolAccount: (number: number) => `Аккаунт ${number}`,
+ poolUnknown: 'Данные об использовании недоступны',
+ poolUnavailable: 'Войдите снова',
+ usageTip: (provider: string) => `${provider} почти исчерпал лимит использования.`,
+ usageWindow: (label: string, percent: number, time: null | string) =>
+ time ? `${label}: осталось ${percent}%, сброс в ${time}` : `${label}: осталось ${percent}%`
+ }
diff --cc apps/desktop/src/i18n/ru_shared_metrics.ts
index 00000000000,0237a06c60a..11ad598c763
mode 000000,100644..100644
--- a/apps/desktop/src/i18n/ru_shared_metrics.ts
+++ b/apps/desktop/src/i18n/ru_shared_metrics.ts
@@@ -1,0 -1,39 +1,36 @@@
+ export const ruSharedMetrics = {
+ consentTitle: 'Помочь улучшить Hermes?',
++ dialogTitle: 'Помочь улучшить Hermes?',
+ consentBody:
+ 'Общие метрики — это только ограниченные счётчики. Никаких запросов, файлов, путей или текстов ошибок. Сбор идёт локально. Отправка в Nous — отдельное согласие.',
+ whatIsCollected: 'Что собирается',
- collectedIntro: 'Только ограниченные счётчики:',
+ collectedActivity:
+ 'Активность, длительность сеансов, результаты и классы ошибок, включая причину из фиксированного списка, когда запись в память или сжатие контекста отклонены, не удались или пропущены',
+ collectedModels: 'Маршруты моделей и суммы токенов',
+ collectedNames: 'Названия встроенных инструментов, команд и элементов каталога',
+ collectedMilestones: 'Сгруппированные счётчики настройки',
+ collectedReliability:
+ 'Результаты и длительность обновлений и установок (при сбое — причина из фиксированного списка и этап, включая новую установку, которая записывается на этом компьютере и учитывается только после вашего согласия), сбои, скорость запуска и ответа, состояние мессенджер-платформ',
+ collectedUsage:
+ 'Как используется Hermes: точность и эффективность агента (успешные правки, зацикливания, восстановление после ошибок, токены и вызовы инструментов на задачу, сбросы кэша), активное время по интерфейсам и режимам Desktop, какие разделы, действия и настройки приложения используются, быстро закрываются или отключаются, и итоги настройки провайдеров',
+ collectedMachine:
+ 'Общие сведения о машине: диапазон ОЗУ, тип GPU, возраст и канал версии Hermes, число пропущенных обновлений, используется ли локальный сервер моделей',
- installId:
- 'При отправке ежедневный пакет загружается в сервис телеметрии Nous. Пакеты содержат идентификатор установки этого профиля — постоянный случайный UUID без личных данных; он сбрасывается удалением каталога общих метрик.',
- consentWindow:
- 'Отправляются только пакеты, весь период сбора которых попадает в записанное окно согласия. Кроме отметки о новой установке (она записывается на этом компьютере и учитывается только после вашего согласия), данные до согласия и за время, когда отправка была выключена, остаются на этом компьютере. Отправку можно снова выключить в любой момент.',
++ sending:
++ 'При отправке ежедневный пакет загружается в сервис телеметрии Nous. Пакеты содержат идентификатор установки этого профиля — постоянный случайный UUID без личных данных; он сбрасывается удалением каталога общих метрик. Отправляются только пакеты, весь период сбора которых попадает в записанное окно согласия. Кроме отметки о новой установке (она записывается на этом компьютере и учитывается только после вашего согласия), данные до согласия и за время, когда отправка была выключена, остаются на этом компьютере. Отправку можно снова выключить в любой момент.',
+ readDocs: 'Подробнее',
+ share: 'Собирать и отправлять в Nous',
+ local: 'Собирать только локально',
+ off: 'Нет, спасибо',
- changeLater: 'Это можно изменить в любой момент в разделе Настройки → Безопасность.',
+ saveFailed: 'Не удалось сохранить выбор',
+ collectLabel: 'Собирать статистику использования',
+ collectDesc: 'Ограниченные счётчики хранятся на этом устройстве. Без запросов, файлов, путей и текстов ошибок.',
+ sendLabel: 'Отправлять статистику в Nous',
+ sendDesc:
+ 'Загружать ежедневный пакет в сервис телеметрии Nous. Отправляются только данные из окна согласия. Требует включённого сбора.',
+ unavailable: 'Обновите бэкенд Hermes, чтобы изменить этот параметр.',
+ stripBody: 'Только ограниченные счётчики, никаких промптов и файлов.',
+ stripReaskBody:
+ 'Спрашиваем ещё раз: прежняя версия могла сохранить «Нет, спасибо» до того, как вы увидели этот вопрос.',
+ stripChoices: { share: 'Отправлять в Nous', local: 'Только локально', off: 'Нет, спасибо' },
+ stripDetails: 'Подробнее'
+ }
diff --cc apps/desktop/src/i18n/types.ts
index 7bf5ba1fe22,acb3ca209a6..737d830a877
--- a/apps/desktop/src/i18n/types.ts
+++ b/apps/desktop/src/i18n/types.ts
@@@ -3609,32 -3487,16 +3496,7 @@@ export interface Translations extends N
versionDetailsUncommittedChanges: string
}
- /** The guided first run's pre-written opening line — banked, not generated,
- * so the first paint costs no model time. Translated per locale because the
- * model is told to speak the user's language from its first real turn, and
- * an English opener above a Japanese reply reads as two different agents.
- * `nameSuggestion` offers the OS account name as a default. */
- handoffTour: {
- profileTitle: string
- profileText: string
- sessionsTitle: string
- sessionsText: string
- stayTitle: string
- stayText: string
- localTitle: string
- localText: (model: string) => string
- }
- /** The app's own tour, run when `gui_tour` starts with no steps. */
- appTour: {
- sessions: { title: string; text: string }
- composer: { title: string; text: string }
- newSession: { title: string; text: string }
- model: { title: string; text: string }
- modelLocal: string
- capabilities: { title: string; text: string }
- messaging: { title: string; text: string }
- rightPane: { title: string; text: string }
- }
+ handoffTour: HandoffTourTranslations
- /** The guided first run's pre-written opening line — banked, not generated,
- * so the first paint costs no model time. Translated per locale because the
- * model is told to speak the user's language from its first real turn, and
- * an English opener above a Japanese reply reads as two different agents.
- * `nameSuggestion` offers the OS account name as a default. */
- guidedGreeting: {
- line: string
- nameSuggestion: (name: string) => string
- }
install: {
stageStates: Record<string, string>
oneTimeTitle: string
@@@ -4433,48 -4282,7 +4283,26 @@@
questionProgress: (answered: number, total: number) => string
notDelivered: string
}
+ setupChoose: {
+ kinds: Record<'accent' | 'connectors' | 'layout' | 'plugins' | 'theme', string>
+ loading: string
+ unavailable: string
+ findApp: string
+ customColor: string
+ plugin: string
+ startsLater: string
+ }
+ startChat: {
+ starting: (title: string) => string
+ startingUntitled: string
+ untitled: string
+ notStarted: string
+ retry: string
+ inProfile: (profile: string) => string
+ open: string
+ openFailed: string
+ }
- catalogInstall: {
- preparing: string
- install: string
- advanced: string
- skip: string
- installing: string
- installed: string
- notInstalled: string
- failed: string
- showNames: string
- hideNames: string
- skill: (name: string) => string
- kind: { plugin: string; skill: string }
- tier: { official: string; community: string }
- targetProfile: (profile: string) => string
- sendFailed: string
- commitLabel: string
- subdirLabel: string
- securityHeading: string
- scan: { passed: string; warnings: string; failed: string }
- requirementsLabel: string
- credentialsHeading: string
- }
+ catalogInstall: CatalogInstallTranslations
mcpSetup: {
installTitle: string
enableTitle: string
diff --cc apps/desktop/src/i18n/types_app_tour.ts
index 00000000000,4b9dded5484..c131c0e36de
mode 000000,100644..100644
--- a/apps/desktop/src/i18n/types_app_tour.ts
+++ b/apps/desktop/src/i18n/types_app_tour.ts
@@@ -1,0 -1,27 +1,29 @@@
+ interface TourStopCopy {
+ title: string
+ text: string
+ }
+
+ /** The app's own tour, run when `gui_tour` starts with no steps. */
+ export interface AppTourTranslations {
+ sessions: TourStopCopy
+ composer: TourStopCopy
+ newSession: TourStopCopy
+ model: TourStopCopy
+ /** Appended to the model stop when this computer can run a local model. */
+ modelLocal: string
+ capabilities: TourStopCopy
+ messaging: TourStopCopy
+ rightPane: TourStopCopy
+ }
+
+ /** The tour that closes the guided first run (components/onboarding-chat/signpost.ts). */
+ export interface HandoffTourTranslations {
+ profileTitle: string
+ profileText: string
+ sessionsTitle: string
+ sessionsText: string
+ stayTitle: string
+ stayText: string
++ localTitle: string
++ localText: (model: string) => string
+ }
diff --cc apps/desktop/src/i18n/types_model_menu.ts
index 00000000000,405b2edc6c7..5caebbc1196
mode 000000,100644..100644
--- a/apps/desktop/src/i18n/types_model_menu.ts
+++ b/apps/desktop/src/i18n/types_model_menu.ts
@@@ -1,0 -1,28 +1,29 @@@
+ export interface ModelMenuTranslations {
+ search: string
+ noModels: string
+ editModels: string
+ followDefault: string
+ refreshModels: string
+ favorites: string
+ addFavorite: string
+ removeFavorite: string
+ favoriteShortcut: string
+ fast: string
+ free: string
+ cacheRead: string
+ priceTitle: (input: string, output: string, cache: string) => string
++ localSetup: { title: string; text: (model: string, size: string) => string; action: string }
+ limited: string
+ limitedUntil: (time: string) => string
+ limitedTip: (provider: string, time: null | string) => string
+ modelResets: (time: string) => string
+ modelLimitedTip: (time: string) => string
+ usageLeft: (percent: number, time: null | string) => string
+ poolAccounts: (count: number) => string
+ poolLimited: (limited: number, total: number) => string
+ poolAccount: (number: number) => string
+ poolUnknown: string
+ poolUnavailable: string
+ usageTip: (provider: string) => string
+ usageWindow: (label: string, percent: number, time: null | string) => string
+ }
diff --cc apps/desktop/src/i18n/types_shared_metrics.ts
index 00000000000,07f3f98adb1..b59bf655b11
mode 000000,100644..100644
--- a/apps/desktop/src/i18n/types_shared_metrics.ts
+++ b/apps/desktop/src/i18n/types_shared_metrics.ts
@@@ -1,0 -1,30 +1,28 @@@
+ export interface SharedMetricsTranslations {
+ consentTitle: string
++ dialogTitle: string
+ consentBody: string
+ whatIsCollected: string
- collectedIntro: string
+ collectedActivity: string
+ collectedModels: string
+ collectedNames: string
+ collectedMilestones: string
+ collectedReliability: string
+ collectedUsage: string
+ collectedMachine: string
- installId: string
- consentWindow: string
++ sending: string
+ readDocs: string
+ share: string
+ local: string
+ off: string
- changeLater: string
+ saveFailed: string
+ collectLabel: string
+ collectDesc: string
+ sendLabel: string
+ sendDesc: string
+ unavailable: string
+ stripBody: string
+ stripReaskBody: string
+ stripChoices: { share: string; local: string; off: string }
+ stripDetails: string
+ }
diff --cc apps/desktop/src/i18n/zh-hant.ts
index 500009e5028,ac21c12e369..d82dc453588
--- a/apps/desktop/src/i18n/zh-hant.ts
+++ b/apps/desktop/src/i18n/zh-hant.ts
@@@ -36,7 -35,9 +36,8 @@@ export const zhHant = defineLocale(
consentBody:
'共享指標只包含有上限的計數,絕不包含提示詞、檔案、路徑或錯誤文字。收集僅在本機進行;傳送給 Nous 需要另行同意。',
whatIsCollected: '收集哪些內容',
- collectedActivity: '活動、工作階段長度、結果和錯誤類別',
- collectedIntro: '僅限有上限的計數:',
+ collectedActivity:
+ '活動、工作階段長度、結果和錯誤類別,包括記憶寫入或上下文壓縮被拒絕、失敗或略過時的原因(來自固定清單)',
collectedModels: '模型路由和 token 總量',
collectedNames: '內建工具、指令和目錄項名稱',
collectedMilestones: '分組的設定計數',
@@@ -45,8 -46,10 +46,8 @@@
'Hermes 的使用方式:代理的準確度與效率(編輯是否成功、迴圈、錯誤後的恢復、每個任務的 token 與工具呼叫數、快取中斷),各介面與 Desktop 模式的活躍時間,哪些應用程式區域、操作與設定被使用、很快關閉或被關閉,以及供應商設定的結果',
collectedMachine:
'概略的機器資訊:記憶體範圍、GPU 類型、Hermes 版本新舊與發行通道、落後的更新數、是否使用本機模型伺服器',
- installId:
- '傳送會把每日資料包上傳到 Nous 遙測服務。資料包帶有此設定檔的安裝 ID:一個不含個人資訊的固定隨機 UUID,刪除共享指標目錄即可重設。',
- consentWindow:
- '只有整個收集期間都落在已記錄同意時段內的資料包才會被傳送。除全新安裝記錄(記錄在本機,僅在你同意後計入)外,你同意之前的資料,或傳送關閉期間的資料,都會留在本機。你可以隨時再次關閉傳送。',
+ sending:
- '傳送會把每日資料包上傳到 Nous 遙測服務。資料包帶有此設定檔的安裝 ID:一個不含個人資訊的固定隨機 UUID,刪除共享指標目錄即可重設。只有整個收集期間都落在已記錄同意時段內的資料包才會被傳送——你同意之前的資料,或傳送關閉期間的資料,都會留在本機。你可以隨時再次關閉傳送。你可以隨時在 設定 → 安全性 中變更。',
++ '傳送會把每日資料包上傳到 Nous 遙測服務。資料包帶有此設定檔的安裝 ID:一個不含個人資訊的固定隨機 UUID,刪除共享指標目錄即可重設。只有整個收集期間都落在已記錄同意時段內的資料包才會被傳送。除全新安裝記錄(記錄在本機,僅在你同意後計入)外,你同意之前的資料,或傳送關閉期間的資料,都會留在本機。你可以隨時再次關閉傳送。',
readDocs: '查看完整說明',
share: '收集並傳送給 Nous',
local: '僅在本機收集',
diff --cc apps/desktop/src/i18n/zh-hant_boot.ts
index 301e198c6b6,aa1387026e1..82c8ddd4163
--- a/apps/desktop/src/i18n/zh-hant_boot.ts
+++ b/apps/desktop/src/i18n/zh-hant_boot.ts
@@@ -327,5 -335,5 +330,5 @@@ export const zhHantBoot =
}
} satisfies Pick<
TranslationOverrides,
- 'boot' | 'remoteDisplayBanner' | 'updates' | 'install' | 'onboarding'
- 'boot' | 'remoteDisplayBanner' | 'butterbar' | 'updates' | 'guidedGreeting' | 'install' | 'onboarding'
++ 'boot' | 'remoteDisplayBanner' | 'butterbar' | 'updates' | 'install' | 'onboarding'
>
diff --cc apps/desktop/src/i18n/zh_model_menu.ts
index 00000000000,cefb53ea9ac..c69a51ffeee
mode 000000,100644..100644
--- a/apps/desktop/src/i18n/zh_model_menu.ts
+++ b/apps/desktop/src/i18n/zh_model_menu.ts
@@@ -1,0 -1,33 +1,38 @@@
+ export const zhModelMenu = {
+ search: '搜索模型',
+ noModels: '未找到模型',
+ editModels: '编辑模型…',
+ followDefault: '使用设置中的默认模型',
+ refreshModels: '刷新模型',
+ favorites: '收藏',
+ addFavorite: '添加到收藏',
+ removeFavorite: '从收藏中移除',
+ favoriteShortcut: '⇧ 单击',
+ fast: '快速',
+ free: '免费',
+ cacheRead: '缓存读取',
+ priceTitle: (input: string, output: string, cache: string) =>
+ `输入 ${input}/Mtok · 输出 ${output}/Mtok` + (cache ? ` · 缓存读取 ${cache}/Mtok` : ''),
++ localSetup: {
++ title: '本地运行 · 免费、私密',
++ text: (model: string, size: string) => `${model} 适合这台电脑 · 下载 ${size}`,
++ action: '设置'
++ },
+ limited: '已限额',
+ limitedUntil: (time: string) => `限额至 ${time}`,
+ limitedTip: (provider: string, time: null | string) =>
+ time
+ ? `${provider} 已达到用量上限,将于 ${time} 重置;现在就可以先选好之后要用的模型。`
+ : `${provider} 已达到用量上限;现在就可以先选好重置后要用的模型。`,
+ modelResets: (time: string) => `${time} 恢复`,
+ modelLimitedTip: (time: string) => `该模型已达到自身上限,将于 ${time} 恢复。这里的其他模型仍可使用。`,
+ usageLeft: (percent: number, time: null | string) => (time ? `剩余 ${percent}% · ${time} 重置` : `剩余 ${percent}%`),
+ poolAccounts: (count: number) => `${count} 个账户`,
+ poolLimited: (limited: number, total: number) => `${limited}/${total} 个账户已限额`,
+ poolAccount: (number: number) => `账户 ${number}`,
+ poolUnknown: '用量暂不可用',
+ poolUnavailable: '请重新登录',
+ usageTip: (provider: string) => `${provider} 即将达到用量上限。`,
+ usageWindow: (label: string, percent: number, time: null | string) =>
+ time ? `${label}:剩余 ${percent}%,${time} 重置` : `${label}:剩余 ${percent}%`
+ }
diff --cc apps/desktop/src/i18n/zh_shared_metrics.ts
index 00000000000,1d9692785ec..13aab387263
mode 000000,100644..100644
--- a/apps/desktop/src/i18n/zh_shared_metrics.ts
+++ b/apps/desktop/src/i18n/zh_shared_metrics.ts
@@@ -1,0 -1,36 +1,33 @@@
+ export const zhSharedMetrics = {
+ consentTitle: '帮助改进 Hermes?',
++ dialogTitle: '帮助改进 Hermes?',
+ consentBody:
+ '共享指标只包含有上限的计数,绝不包含提示词、文件、路径或错误文本。收集仅在本地进行;发送给 Nous 需要另行同意。',
+ whatIsCollected: '收集哪些内容',
- collectedIntro: '仅限有上限的计数:',
+ collectedActivity:
+ '活动、会话时长、结果和错误类别,包括记忆写入或上下文压缩被拒绝、失败或跳过时的原因(来自固定列表)',
+ collectedModels: '模型路由和 token 总量',
+ collectedNames: '内置工具、命令和目录项名称',
+ collectedMilestones: '分桶的设置计数',
+ collectedReliability: '更新和安装的结果与耗时(失败时包括来自固定列表的原因和所在阶段;全新安装记录在本机,仅在你同意后计入)、崩溃、启动与回复速度、消息平台状态',
+ collectedUsage:
+ 'Hermes 的使用方式:代理的准确度与效率(编辑是否成功、循环、错误后的恢复、每个任务的 token 与工具调用数、缓存中断),各界面与 Desktop 模式的活跃时间,哪些应用区域、操作与设置被使用、很快关闭或被关闭,以及提供商设置的结果',
+ collectedMachine:
+ '概略的机器信息:内存范围、GPU 类型、Hermes 版本新旧与发布通道、落后的更新数、是否使用本地模型服务器',
- installId:
- '发送会把每日数据包上传到 Nous 遥测服务。数据包带有此配置文件的安装 ID:一个不含个人信息的固定随机 UUID,删除共享指标目录即可重置。',
- consentWindow:
- '只有整个收集周期都落在已记录同意时段内的数据包才会被发送。除全新安装记录(记录在本机,仅在你同意后计入)外,你同意之前的数据,或发送关闭期间的数据,都会留在本机。你可以随时再次关闭发送。',
++ sending:
++ '发送会把每日数据包上传到 Nous 遥测服务。数据包带有此配置文件的安装 ID:一个不含个人信息的固定随机 UUID,删除共享指标目录即可重置。只有整个收集周期都落在已记录同意时段内的数据包才会被发送。除全新安装记录(记录在本机,仅在你同意后计入)外,你同意之前的数据,或发送关闭期间的数据,都会留在本机。你可以随时再次关闭发送。',
+ readDocs: '查看完整说明',
+ share: '收集并发送给 Nous',
+ local: '仅在本地收集',
+ off: '不用了',
- changeLater: '你可以随时在 设置 → 安全 中更改。',
+ saveFailed: '无法保存你的选择',
+ collectLabel: '收集使用统计',
+ collectDesc: '在此设备上保存有上限的计数。绝不包含提示词、文件、路径或错误文本。',
+ sendLabel: '向 Nous 发送使用统计',
+ sendDesc: '将每日数据包上传到 Nous 遥测服务。只发送同意时段内的数据。需要先开启收集。',
+ unavailable: '请更新 Hermes 后端以更改此设置。',
+ stripBody: '仅限有界计数器,绝不包含提示词或文件。',
+ stripReaskBody: '再次询问:旧版本可能在你看到此问题之前就已保存了“不用了”。',
+ stripChoices: { share: '发送给 Nous', local: '仅本地', off: '不用了' },
+ stripDetails: '详情'
+ }
diff --cc apps/desktop/src/store/clarify.ts
index ffe05e16aae,baf8a4688f6..497cd884489
--- a/apps/desktop/src/store/clarify.ts
+++ b/apps/desktop/src/store/clarify.ts
@@@ -11,14 -10,6 +11,14 @@@ export interface ClarifyQuestion
multiSelect: boolean
}
+export interface SetupChooseSpec {
+ kind: SetupChooseKind
+ options: SetupChooseOption[] | null
+ multiSelect: boolean
- /** Row ids the card starts with picked (the backend fills them from the machine scan). */
++ /** Row ids the card starts with picked (the backend fills them from the setup facts). */
+ preselected: string[]
+}
+
export interface ClarifyRequest {
requestId: string
/** Local receipt time (Unix seconds), used to reject stale resume cleanup. */
diff --cc apps/shared/src/gateway-contract.generated.ts
index 3f68c2dfc12,3fa391f215c..38a3ddf095b
--- a/apps/shared/src/gateway-contract.generated.ts
+++ b/apps/shared/src/gateway-contract.generated.ts
@@@ -1909,7 -1978,7 +1978,6 @@@ export interface ProfileRow
display_name?: string
skill_count?: number
previous_names?: string[]
-- role?: 'setup' | null
last_session?: ProfileSessionPreview | null
worker_session?: ProfileWorkerSession | null
canonical_session?: ProfileCanonicalSession | null
@@@ -2104,8 -2173,8 +2172,23 @@@ export interface OnboardingEnsureSetupP
name: string
path: string
created: boolean
-- role?: 'setup'
}
++export interface OnboardingEnsureSetupSessionParams {
++ messages?: Record<string, unknown>[] | null
++}
++export interface OnboardingEnsureSetupSessionResult {
++ profile: string
++ session_id: string
++ empty: boolean
++}
++export interface OnboardingStateResult {
++ eligible: boolean
++ intro: OnboardingIntro
++ failed_starts: number
++ completed_at?: string | null
++ profile?: string | null
++}
++export type OnboardingIntro = 'unseen' | 'seen'
export interface OnboardingResetSetupProfileResult {
name: string
path: string
@@@ -3536,6 -3606,6 +3620,30 @@@ export interface LlmOneshotParams
export interface LlmOneshotResult {
text: string
}
++/** ``tool_call_id`` names the rejected call; its saved tool row records a started retry (display-only). */
++export interface SessionStartChatParams {
++ session_id: string
++ profile?: string | null
++ tool_call_id: string
++ args: StartChatArgs
++}
++/** The ``start_chat`` tool's arguments (``tools/start_chat_tool.py``). */
++export interface StartChatArgs {
++ message: string
++ title?: string | null
++ profile?: string | null
++}
++/** ``tui_gateway/start_chat.py``: ``started`` carries the new chat, ``rejected`` a reason and whether the same arguments may succeed on another try (``retryable``). A call already retried returns that retry's result. */
++export interface SessionStartChatResult {
++ status: StartChatStatus
++ session_id?: string | null
++ profile?: string | null
++ title?: string | null
++ message?: string | null
++ reason?: string | null
++ retryable?: boolean | null
++}
++export type StartChatStatus = 'started' | 'rejected'
export interface SystemBatteryParams {
profile?: string | null
}
@@@ -4349,6 -4419,6 +4457,25 @@@ export interface ClarifyQuestion
export interface ClarifyResult {
answers?: Record<string, string | null> | null
}
++export interface SetupChooseRequestParams {
++ session_id: string
++ kind: SetupChooseKind
++ question: string
++ options?: SetupChooseOption[] | null
++ multi_select?: boolean
++ preselected?: string[] | null
++}
++export type SetupChooseKind = 'question' | 'accent' | 'theme' | 'layout' | 'connectors' | 'plugins' | 'tour' | 'fork' | 'machine_use'
++export interface SetupChooseOption {
++ id: string
++ label: string
++ detail?: string | null
++}
++export interface SetupChooseResult {
++ picked?: string | string[] | null
++ label?: string | string[] | null
++ said?: string | null
++}
/** ``tui_gateway/server.py::_approval_request_payload`` — the command is redacted server-side. */
export interface ApprovalRequestParams {
session_id: string
@@@ -5097,10 -5176,10 +5233,14 @@@ export interface RpcMethods
'model.options': { params: ModelOptionsParams; result: ModelOptionsResult }
/** Save an API key for a provider and return its refreshed inventory row. */
'model.save_key': { params: ModelSaveKeyParams; result: ModelSaveKeyResult }
-- /** Create-or-read the backend-owned setup profile; the backend picks the name and finds it by role. */
++ /** Create-or-read the backend-owned setup profile; the backend picks the name. */
'onboarding.ensure_setup_profile': { params: Params; result: OnboardingEnsureSetupProfileResult }
++ 'onboarding.ensure_setup_session': { params: OnboardingEnsureSetupSessionParams; result: OnboardingEnsureSetupSessionResult }
++ 'onboarding.mark_seen': { params: Params; result: OnboardingStateResult }
++ 'onboarding.record_failed_start': { params: Params; result: OnboardingStateResult }
/** Restore the setup profile to its created state in place (soul, memories, skills, sessions). */
'onboarding.reset_setup_profile': { params: Params; result: OnboardingResetSetupProfileResult }
++ 'onboarding.state': { params: Params; result: OnboardingStateResult }
/** Spill a large paste to a file and hand back the inline placeholder. */
'paste.collapse': { params: PasteCollapseParams; result: PasteCollapseResult }
/** Render a PDF's pages to PNG and queue them as images for the next turn. */
@@@ -5267,6 -5346,6 +5407,8 @@@
'session.save': { params: SessionSaveParams; result: SessionSaveResult }
/** Set/clear hidden (out of the default list, still resumable by its owner) on a session + lineage. */
'session.set_hidden': { params: SessionSetHiddenParams; result: SessionSetHiddenResult }
++ /** Run a start_chat request again from the session that made it (the handoff card's Retry). */
++ 'session.start_chat': { params: SessionStartChatParams; result: SessionStartChatResult }
/** Rendered /status text for the session. */
'session.status': { params: SessionStatusParams; result: SessionStatusResult }
/** Inject text into the next tool result without interrupting the turn. */
@@@ -5495,7 -5575,7 +5638,11 @@@ export const RPC_METHODS =
'model.options',
'model.save_key',
'onboarding.ensure_setup_profile',
++ 'onboarding.ensure_setup_session',
++ 'onboarding.mark_seen',
++ 'onboarding.record_failed_start',
'onboarding.reset_setup_profile',
++ 'onboarding.state',
'paste.collapse',
'pdf.attach',
'pet.cancel',
@@@ -5579,6 -5659,6 +5726,7 @@@
'session.resume',
'session.save',
'session.set_hidden',
++ 'session.start_chat',
'session.status',
'session.steer',
'session.title',
@@@ -5653,6 -5733,6 +5801,7 @@@ export interface ServerRequestMap
'preview.read': { params: ReadRangeRequestParams; result: ValueResult }
/** Masked value for a named env var (skills / setup flows). */
secret: { params: SecretRequestParams; result: ValueResult }
++ setup_choose: { params: SetupChooseRequestParams; result: SetupChooseResult }
/** Masked sudo password for the terminal tool. */
sudo: { params: SudoRequestParams; result: ValueResult }
/** Read the visible in-app terminal buffer (JSON text answer). */
@@@ -5676,6 -5756,6 +5825,7 @@@ export const SERVER_REQUEST_METHODS =
'preview.act',
'preview.read',
'secret',
++ 'setup_choose',
'sudo',
'terminal.read',
'tour',
diff --cc apps/shared/src/gateway-contract.openrpc.json
index 8cf27e31454,a7313b15098..686ce7fade7
--- a/apps/shared/src/gateway-contract.openrpc.json
+++ b/apps/shared/src/gateway-contract.openrpc.json
@@@ -1952,7 -1970,7 +1970,7 @@@
},
{
"name": "onboarding.ensure_setup_profile",
-- "summary": "Create-or-read the backend-owned setup profile; the backend picks the name and finds it by role.",
++ "summary": "Create-or-read the backend-owned setup profile; the backend picks the name.",
"params": [
{
"name": "params",
@@@ -1968,6 -1986,6 +1986,60 @@@
}
}
},
++ {
++ "name": "onboarding.ensure_setup_session",
++ "summary": "",
++ "params": [
++ {
++ "name": "params",
++ "schema": {
++ "$ref": "#/components/schemas/OnboardingEnsureSetupSessionParams"
++ }
++ }
++ ],
++ "result": {
++ "name": "result",
++ "schema": {
++ "$ref": "#/components/schemas/OnboardingEnsureSetupSessionResult"
++ }
++ }
++ },
++ {
++ "name": "onboarding.mark_seen",
++ "summary": "",
++ "params": [
++ {
++ "name": "params",
++ "schema": {
++ "$ref": "#/components/schemas/Params"
++ }
++ }
++ ],
++ "result": {
++ "name": "result",
++ "schema": {
++ "$ref": "#/components/schemas/OnboardingStateResult"
++ }
++ }
++ },
++ {
++ "name": "onboarding.record_failed_start",
++ "summary": "",
++ "params": [
++ {
++ "name": "params",
++ "schema": {
++ "$ref": "#/components/schemas/Params"
++ }
++ }
++ ],
++ "result": {
++ "name": "result",
++ "schema": {
++ "$ref": "#/components/schemas/OnboardingStateResult"
++ }
++ }
++ },
{
"name": "onboarding.reset_setup_profile",
"summary": "Restore the setup profile to its created state in place (soul, memories, skills, sessions).",
@@@ -1986,6 -2004,6 +2058,24 @@@
}
}
},
++ {
++ "name": "onboarding.state",
++ "summary": "",
++ "params": [
++ {
++ "name": "params",
++ "schema": {
++ "$ref": "#/components/schemas/Params"
++ }
++ }
++ ],
++ "result": {
++ "name": "result",
++ "schema": {
++ "$ref": "#/components/schemas/OnboardingStateResult"
++ }
++ }
++ },
{
"name": "paste.collapse",
"summary": "Spill a large paste to a file and hand back the inline placeholder.",
@@@ -3480,6 -3498,6 +3570,24 @@@
}
}
},
++ {
++ "name": "session.start_chat",
++ "summary": "Run a start_chat request again from the session that made it (the handoff card's Retry).",
++ "params": [
++ {
++ "name": "params",
++ "schema": {
++ "$ref": "#/components/schemas/SessionStartChatParams"
++ }
++ }
++ ],
++ "result": {
++ "name": "result",
++ "schema": {
++ "$ref": "#/components/schemas/SessionStartChatResult"
++ }
++ }
++ },
{
"name": "session.status",
"summary": "Rendered /status text for the session.",
@@@ -19698,12 -19996,12 +20086,6 @@@
"created": {
"title": "Created",
"type": "boolean"
-- },
-- "role": {
-- "const": "setup",
-- "default": "setup",
-- "title": "Role",
-- "type": "string"
}
},
"required": [
@@@ -19714,6 -20012,6 +20096,61 @@@
"title": "OnboardingEnsureSetupProfileResult",
"type": "object"
},
++ "OnboardingEnsureSetupSessionParams": {
++ "additionalProperties": false,
++ "properties": {
++ "messages": {
++ "anyOf": [
++ {
++ "items": {
++ "additionalProperties": true,
++ "type": "object"
++ },
++ "type": "array"
++ },
++ {
++ "type": "null"
++ }
++ ],
++ "default": null,
++ "title": "Messages"
++ }
++ },
++ "title": "OnboardingEnsureSetupSessionParams",
++ "type": "object"
++ },
++ "OnboardingEnsureSetupSessionResult": {
++ "additionalProperties": false,
++ "properties": {
++ "profile": {
++ "title": "Profile",
++ "type": "string"
++ },
++ "session_id": {
++ "title": "Session Id",
++ "type": "string"
++ },
++ "empty": {
++ "title": "Empty",
++ "type": "boolean"
++ }
++ },
++ "required": [
++ "profile",
++ "session_id",
++ "empty"
++ ],
++ "title": "OnboardingEnsureSetupSessionResult",
++ "type": "object"
++ },
++ "OnboardingIntro": {
++ "enum": [
++ "unseen",
++ "seen"
++ ],
++ "title": "OnboardingIntro",
++ "type": "string"
++ },
"OnboardingResetSetupProfileResult": {
"additionalProperties": false,
"properties": {
@@@ -19738,6 -20036,6 +20175,53 @@@
"title": "OnboardingResetSetupProfileResult",
"type": "object"
},
++ "OnboardingStateResult": {
++ "additionalProperties": false,
++ "properties": {
++ "eligible": {
++ "title": "Eligible",
++ "type": "boolean"
++ },
++ "intro": {
++ "$ref": "#/components/schemas/OnboardingIntro"
++ },
++ "failed_starts": {
++ "title": "Failed Starts",
++ "type": "integer"
++ },
++ "completed_at": {
++ "anyOf": [
++ {
++ "type": "string"
++ },
++ {
++ "type": "null"
++ }
++ ],
++ "default": null,
++ "title": "Completed At"
++ },
++ "profile": {
++ "anyOf": [
++ {
++ "type": "string"
++ },
++ {
++ "type": "null"
++ }
++ ],
++ "default": null,
++ "title": "Profile"
++ }
++ },
++ "required": [
++ "eligible",
++ "intro",
++ "failed_starts"
++ ],
++ "title": "OnboardingStateResult",
++ "type": "object"
++ },
"OpenRequestEntry": {
"additionalProperties": false,
"description": "One unanswered server\u2192client request (``server_requests.Request.snapshot``); the reconnecting\nclient re-delivers it to its request handlers.",
@@@ -23540,19 -23838,19 +24024,6 @@@
"title": "Previous Names",
"type": "array"
},
-- "role": {
-- "anyOf": [
-- {
-- "const": "setup",
-- "type": "string"
-- },
-- {
-- "type": "null"
-- }
-- ],
-- "default": null,
-- "title": "Role"
-- },
"last_session": {
"anyOf": [
{
@@@ -31598,6 -32075,6 +32248,128 @@@
"title": "SessionSetHiddenResult",
"type": "object"
},
++ "SessionStartChatParams": {
++ "additionalProperties": false,
++ "description": "``tool_call_id`` names the rejected call; its saved tool row records a started retry (display-only).",
++ "properties": {
++ "session_id": {
++ "title": "Session Id",
++ "type": "string"
++ },
++ "profile": {
++ "anyOf": [
++ {
++ "type": "string"
++ },
++ {
++ "type": "null"
++ }
++ ],
++ "default": null,
++ "title": "Profile"
++ },
++ "tool_call_id": {
++ "title": "Tool Call Id",
++ "type": "string"
++ },
++ "args": {
++ "$ref": "#/components/schemas/StartChatArgs"
++ }
++ },
++ "required": [
++ "session_id",
++ "tool_call_id",
++ "args"
++ ],
++ "title": "SessionStartChatParams",
++ "type": "object"
++ },
++ "SessionStartChatResult": {
++ "additionalProperties": false,
++ "description": "``tui_gateway/start_chat.py``: ``started`` carries the new chat, ``rejected`` a reason and whether the same\narguments may succeed on another try (``retryable``). A call already retried returns that retry's result.",
++ "properties": {
++ "status": {
++ "$ref": "#/components/schemas/StartChatStatus"
++ },
++ "session_id": {
++ "anyOf": [
++ {
++ "type": "string"
++ },
++ {
++ "type": "null"
++ }
++ ],
++ "default": null,
++ "title": "Session Id"
++ },
++ "profile": {
++ "anyOf": [
++ {
++ "type": "string"
++ },
++ {
++ "type": "null"
++ }
++ ],
++ "default": null,
++ "title": "Profile"
++ },
++ "title": {
++ "anyOf": [
++ {
++ "type": "string"
++ },
++ {
++ "type": "null"
++ }
++ ],
++ "default": null,
++ "title": "Title"
++ },
++ "message": {
++ "anyOf": [
++ {
++ "type": "string"
++ },
++ {
++ "type": "null"
++ }
++ ],
++ "default": null,
++ "title": "Message"
++ },
++ "reason": {
++ "anyOf": [
++ {
++ "type": "string"
++ },
++ {
++ "type": "null"
++ }
++ ],
++ "default": null,
++ "title": "Reason"
++ },
++ "retryable": {
++ "anyOf": [
++ {
++ "type": "boolean"
++ },
++ {
++ "type": "null"
++ }
++ ],
++ "default": null,
++ "title": "Retryable"
++ }
++ },
++ "required": [
++ "status"
++ ],
++ "title": "SessionStartChatResult",
++ "type": "object"
++ },
"SessionStatusParams": {
"additionalProperties": false,
"properties": {
@@@ -32136,6 -32613,6 +32908,165 @@@
"title": "SessionWorkspaceMoveResult",
"type": "object"
},
++ "SetupChooseKind": {
++ "enum": [
++ "question",
++ "accent",
++ "theme",
++ "layout",
++ "connectors",
++ "plugins",
++ "tour",
++ "fork",
++ "machine_use"
++ ],
++ "title": "SetupChooseKind",
++ "type": "string"
++ },
++ "SetupChooseOption": {
++ "additionalProperties": false,
++ "properties": {
++ "id": {
++ "title": "Id",
++ "type": "string"
++ },
++ "label": {
++ "title": "Label",
++ "type": "string"
++ },
++ "detail": {
++ "anyOf": [
++ {
++ "type": "string"
++ },
++ {
++ "type": "null"
++ }
++ ],
++ "default": null,
++ "title": "Detail"
++ }
++ },
++ "required": [
++ "id",
++ "label"
++ ],
++ "title": "SetupChooseOption",
++ "type": "object"
++ },
++ "SetupChooseRequestParams": {
++ "additionalProperties": false,
++ "properties": {
++ "session_id": {
++ "title": "Session Id",
++ "type": "string"
++ },
++ "kind": {
++ "$ref": "#/components/schemas/SetupChooseKind"
++ },
++ "question": {
++ "title": "Question",
++ "type": "string"
++ },
++ "options": {
++ "anyOf": [
++ {
++ "items": {
++ "$ref": "#/components/schemas/SetupChooseOption"
++ },
++ "type": "array"
++ },
++ {
++ "type": "null"
++ }
++ ],
++ "default": null,
++ "title": "Options"
++ },
++ "multi_select": {
++ "default": false,
++ "title": "Multi Select",
++ "type": "boolean"
++ },
++ "preselected": {
++ "anyOf": [
++ {
++ "items": {
++ "type": "string"
++ },
++ "type": "array"
++ },
++ {
++ "type": "null"
++ }
++ ],
++ "default": null,
++ "title": "Preselected"
++ }
++ },
++ "required": [
++ "session_id",
++ "kind",
++ "question"
++ ],
++ "title": "SetupChooseRequestParams",
++ "type": "object"
++ },
++ "SetupChooseResult": {
++ "additionalProperties": false,
++ "properties": {
++ "picked": {
++ "anyOf": [
++ {
++ "type": "string"
++ },
++ {
++ "items": {
++ "type": "string"
++ },
++ "type": "array"
++ },
++ {
++ "type": "null"
++ }
++ ],
++ "default": null,
++ "title": "Picked"
++ },
++ "label": {
++ "anyOf": [
++ {
++ "type": "string"
++ },
++ {
++ "items": {
++ "type": "string"
++ },
++ "type": "array"
++ },
++ {
++ "type": "null"
++ }
++ ],
++ "default": null,
++ "title": "Label"
++ },
++ "said": {
++ "anyOf": [
++ {
++ "type": "string"
++ },
++ {
++ "type": "null"
++ }
++ ],
++ "default": null,
++ "title": "Said"
++ }
++ },
++ "title": "SetupChooseResult",
++ "type": "object"
++ },
"SetupReadyPayload": {
"additionalProperties": true,
"description": "``hermes_cli/free_tier_bootstrap.py::SetupRecord.as_payload``.",
@@@ -33962,172 -34604,12 +35058,59 @@@
}
},
"required": [
- "path"
+ "path",
+ "session_id"
],
- "title": "SpawnTreeLoadParams",
+ "title": "SpawnTreeSaveResult",
"type": "object"
},
- "SpawnTreeLoadResult": {
- "additionalProperties": true,
- "description": "The snapshot file as written by ``spawn_tree.save`` (open: the file is the contract).",
++ "StartChatArgs": {
++ "additionalProperties": false,
++ "description": "The ``start_chat`` tool's arguments (``tools/start_chat_tool.py``).",
+ "properties": {
- "session_id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "title": "Session Id"
- },
- "started_at": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "title": "Started At"
- },
- "finished_at": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "title": "Finished At"
++ "message": {
++ "title": "Message",
++ "type": "string"
+ },
- "label": {
++ "title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
- "title": "Label"
++ "title": "Title"
+ },
- "subagents": {
- "items": {
- "additionalProperties": true,
- "type": "object"
- },
- "title": "Subagents",
- "type": "array"
- }
- },
- "title": "SpawnTreeLoadResult",
- "type": "object"
- },
- "SpawnTreeSaveParams": {
- "additionalProperties": false,
- "properties": {
+ "profile": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Profile"
- },
- "subagents": {
- "items": {
- "additionalProperties": true,
- "type": "object"
- },
- "title": "Subagents",
- "type": "array"
- },
- "session_id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "title": "Session Id"
- },
- "started_at": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "title": "Started At"
- },
- "finished_at": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "title": "Finished At"
- },
- "label": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "title": "Label"
+ }
+ },
+ "required": [
- "subagents"
++ "message"
+ ],
- "title": "SpawnTreeSaveParams",
++ "title": "StartChatArgs",
+ "type": "object"
+ },
- "SpawnTreeSaveResult": {
- "additionalProperties": false,
- "properties": {
- "path": {
- "title": "Path",
- "type": "string"
- },
- "session_id": {
- "title": "Session Id",
- "type": "string"
- }
- },
- "required": [
- "path",
- "session_id"
++ "StartChatStatus": {
++ "enum": [
++ "started",
++ "rejected"
+ ],
- "title": "SpawnTreeSaveResult",
- "type": "object"
++ "title": "StartChatStatus",
++ "type": "string"
+ },
"StatusUpdatePayload": {
"additionalProperties": false,
"description": "``server._status_update`` and the direct emitters (goal / loop / heartbeat / process).",
@@@ -39247,6 -39764,6 +40265,24 @@@
}
}
},
++ {
++ "name": "setup_choose",
++ "summary": "",
++ "params": [
++ {
++ "name": "params",
++ "schema": {
++ "$ref": "#/components/schemas/SetupChooseRequestParams"
++ }
++ }
++ ],
++ "result": {
++ "name": "result",
++ "schema": {
++ "$ref": "#/components/schemas/SetupChooseResult"
++ }
++ }
++ },
{
"name": "sudo",
"summary": "Masked sudo password for the terminal tool.",
diff --cc gateway/run_turn.py
index c740942e2c4,ad82ba2cf69..e26bba20258
--- a/gateway/run_turn.py
+++ b/gateway/run_turn.py
@@@ -1409,7 -1409,7 +1409,7 @@@ class GatewayTurnMixin
)
return bounded
- async def _hmwa_first_contact_notes(self, source, history, turn_sidecar_notes, message):
- async def _hmwa_first_contact_notes(self, source, history, turn_sidecar_notes, internal=False):
++ async def _hmwa_first_contact_notes(self, source, history, turn_sidecar_notes, message, internal=False):
"""First-ever-message onboarding note + one-time 'no home channel' prompt (both only when
the session has no history). Delivered on the user message (sidecar), NOT the ephemeral
system prompt: present-on-turn-1/absent-on-turn-2 was a guaranteed prompt diff + rebuild."""
@@@ -2101,7 -2101,7 +2101,7 @@@
self._clear_session_env(_session_env_tokens)
return t("gateway.errors.history_unavailable"), _session_env_tokens
- await self._hmwa_first_contact_notes(source, history, turn_sidecar_notes, event.text)
- await self._hmwa_first_contact_notes(source, history, turn_sidecar_notes, internal=event.internal)
++ await self._hmwa_first_contact_notes(source, history, turn_sidecar_notes, event.text, internal=event.internal)
# Voice channel state rides the user message ONLY when changed (in the system prompt it
# forced a rebuild + prompt-cache re-key per message).
diff --cc hermes_cli/observability/schemas/hermes.shared_metrics.v3.schema.json
index 9fb1af69391,af55afbbf46..01865d16162
--- a/hermes_cli/observability/schemas/hermes.shared_metrics.v3.schema.json
+++ b/hermes_cli/observability/schemas/hermes.shared_metrics.v3.schema.json
@@@ -3273,10 -3273,8 +3273,9 @@@
"safe",
"search",
"session_search",
- "setup",
"skills",
"spotify",
+ "start_chat",
"terminal",
"todo",
"tts",
diff --cc locales/_keys.desktop.json
index 697ca6a77c0,e2edf54a1ca..74f86f8535f
--- a/locales/_keys.desktop.json
+++ b/locales/_keys.desktop.json
@@@ -873,6 -875,6 +901,9 @@@
"composer.hotkeys",
"composer.images",
"composer.listening",
++ "composer.localSetup.action",
++ "composer.localSetup.text",
++ "composer.localSetup.title",
"composer.lookupLoading",
"composer.lookupNoMatches",
"composer.lookupOr",
@@@ -1526,6 -1528,8 +1557,8 @@@
"freeTier.tryAgain",
"freeTier.unreachableBody",
"freeTier.waiting",
- "guidedGreeting.line",
- "guidedGreeting.nameSuggestion",
++ "handoffTour.localText",
++ "handoffTour.localTitle",
"handoffTour.profileText",
"handoffTour.profileTitle",
"handoffTour.sessionsText",
@@@ -3978,7 -3992,17 +4024,20 @@@
"shell.modelMenu.favorites",
"shell.modelMenu.followDefault",
"shell.modelMenu.free",
+ "shell.modelMenu.limited",
+ "shell.modelMenu.limitedTip",
+ "shell.modelMenu.limitedUntil",
++ "shell.modelMenu.localSetup.action",
++ "shell.modelMenu.localSetup.text",
++ "shell.modelMenu.localSetup.title",
+ "shell.modelMenu.modelLimitedTip",
+ "shell.modelMenu.modelResets",
"shell.modelMenu.noModels",
+ "shell.modelMenu.poolAccount",
+ "shell.modelMenu.poolAccounts",
+ "shell.modelMenu.poolLimited",
+ "shell.modelMenu.poolUnavailable",
+ "shell.modelMenu.poolUnknown",
"shell.modelMenu.priceTitle",
"shell.modelMenu.refreshModels",
"shell.modelMenu.removeFavorite",
@@@ -4672,9 -4702,9 +4737,6 @@@
"tips.items.local-runtime-update.action",
"tips.items.local-runtime-update.text",
"tips.items.local-runtime-update.title",
-- "tips.items.local-setup.action",
-- "tips.items.local-setup.text",
-- "tips.items.local-setup.title",
"tips.items.messaging.text",
"tips.items.messaging.title",
"tips.items.new-session.text",
diff --cc toolsets.py
index 3ba75f77bc2,4af6106020e..a16fccce1ca
--- a/toolsets.py
+++ b/toolsets.py
@@@ -147,8 -143,7 +143,11 @@@ TOOLSETS =
"annotate_preview", "read_window_below", "focus_pane", "react_to_message",
"gui_tour", "show_tip"],
),
- "setup": _ts("Onboarding-only surface for the setup profile: question and picker cards", ["setup_choose"]),
- "start_chat": _ts("Start a new visible desktop chat that runs a task in a chosen profile", ["start_chat"]),
++ "setup": _ts("Onboarding-only surface for the setup profile: question and picker cards", ["setup_choose"],
++ platforms=frozenset({"desktop"})),
++ "start_chat": _ts("Start a new visible desktop chat that runs a task in a chosen profile", ["start_chat"],
++ platforms=frozenset({"desktop"})),
+ # ``platforms``: the session platforms this toolset exists for (TOOLSET_SESSION_PLATFORMS).
"catalog": _ts(
"Desktop catalog plugin/skill install requests through the approval card (GUI sessions only)",
["manage_catalog"],
diff --cc tui_gateway/contracts/server_requests.py
index 4aa3e77bd2a,32569dc9ba0..e02f87978cd
--- a/tui_gateway/contracts/server_requests.py
+++ b/tui_gateway/contracts/server_requests.py
@@@ -54,44 -56,6 +56,44 @@@ server_request("clarify", params=Clarif
doc="The clarify tool: ask the user 1-5 questions.")
+class SetupChooseKind(WireEnum):
+ question = "question"
+ accent = "accent"
+ theme = "theme"
+ layout = "layout"
+ connectors = "connectors"
+ plugins = "plugins"
+ tour = "tour"
+ fork = "fork"
+ machine_use = "machine_use"
+
+
+class SetupChooseOption(Params):
+ id: str
+ label: str
+ detail: str | None = None
+
+
+class SetupChooseRequestParams(ServerRequestParams):
+ kind: SetupChooseKind
+ question: str
+ options: list[SetupChooseOption] | None = None
+ multi_select: bool = False
- # Row ids the card starts with picked: apps and plugins the machine scan saw.
++ # Row ids the card starts with picked: the plugins the setup facts found (Blender).
+ preselected: list[str] | None = None
+
+
+class SetupChooseResult(Result):
+ picked: str | list[str] | None = None
+ # The name the card showed for each picked row (one per id in ``picked``); the model says it, not the id.
+ label: str | list[str] | None = None
+ # Composer text that named no row of the card: the user's words, never a pick.
+ said: str | None = None
+
+
+server_request("setup_choose", params=SetupChooseRequestParams, result=SetupChooseResult)
+
+
# ── approval ──────────────────────────────────────────────────────────────────────────────────
diff --cc tui_gateway/server.py
index d6b91575343,518cbc2aa0b..bd9da0e154c
--- a/tui_gateway/server.py
+++ b/tui_gateway/server.py
@@@ -2836,14 -2828,11 +2836,14 @@@ def _with_checkpoints(session, fn)
def _lazy_resume_info(cwd: str, *, model: str = "", provider: str = "", profile: str | None = None) -> dict:
"""session.info for a not-yet-built session (session.create's shape); tools/skills land with the deferred build."""
+ if not model:
+ model, default_provider = _session_default_route({"profile_home": _profile_home(profile)})
+ provider = provider or default_provider
return {
"cwd": cwd, "branch": git_probe.branch(cwd), "project": _project_info_for_cwd(cwd),
- "model": model, "tools": {}, "skills": {}, "lazy": True,
+ **_lazy_info_route({"profile_home": _profile_home(profile)}, {"model": model, "provider": provider} if model else {}),
+ "tools": {}, "skills": {}, "lazy": True,
"desktop_contract": DESKTOP_BACKEND_CONTRACT, "profile_name": _response_profile_name(profile),
- **({"provider": provider} if provider else {}),
}
@@@ -3108,11 -3097,9 +3108,10 @@@ def _fallback_session_info(session: dic
# so a client can clear a stale label instead of retaining it — the same contract `_lazy_session_info`
# above already follows.
cwd = _session_cwd(session)
+ model, provider = _session_default_route(session)
return {
"cwd": cwd, "branch": git_probe.branch(cwd), "project": _project_info_for_cwd(cwd), "lazy": True,
- "model": model, "skills": {}, "tools": {}, "desktop_contract": DESKTOP_BACKEND_CONTRACT,
- **({"provider": provider} if provider else {}),
+ **_lazy_info_route(session, {}), "skills": {}, "tools": {}, "desktop_contract": DESKTOP_BACKEND_CONTRACT,
}
diff --cc website/docs/developer-guide/relay-shared-metrics.md
index da11c8efbf2,60620e92c44..94b71558ae9
--- a/website/docs/developer-guide/relay-shared-metrics.md
+++ b/website/docs/developer-guide/relay-shared-metrics.md
@@@ -616,11 -638,16 +638,18 @@@ Both keys are asked once per profile, w
"No thanks" is the default in the terminal, so pressing Enter never opts
anyone in. Esc in the terminal and the dashboard banner's ✕ leave the question
-open, so it is asked again next time. Answering on any surface writes both keys
+open, so it is asked again next time. The Desktop strip appears only after
+first-run onboarding is finished or skipped, and never in the internal setup
+profile that hosts the welcome chat. Answering on any surface writes both keys
- to the profile's `config.yaml`, and a profile that already carries either key is
- never asked again. A managed install is never offered. To change the answer
+ to the profile's `config.yaml`, plus `offer_version`, and a profile that already
+ carries either key is never asked again. A managed install is never offered.
+
+ One exception: before the type-ahead fix, an Enter pressed while `hermes chat`
+ was starting could save "No thanks" before the question appeared. A "No thanks"
+ recorded without `offer_version` is therefore offered once more on every surface,
+ with a note saying why. Any response settles it for good, including Esc or the
+ banner's ✕, which keep "No thanks". Answers that opted in are never re-asked.
+ To change the answer
later, use `hermes setup telemetry`, `hermes tools`, or Desktop's Settings ›
Safety › Privacy & network.
diff --cc website/docs/reference/slash-commands.md
index d31bc618740,708c8bb8f17..420898beb71
--- a/website/docs/reference/slash-commands.md
+++ b/website/docs/reference/slash-commands.md
@@@ -110,7 -110,6 +110,7 @@@ Type `/` in the CLI to open the autocom
| `/bundles` | List configured skill bundles — `/<name>` slash aliases that preload several skills at once. Configure under `bundles:` in `~/.hermes/config.yaml`. See [Skill Bundles](../user-guide/features/skills.md#skill-bundles). |
| `/learn <what to learn from>` | Distill a reusable skill from anything you describe — a directory, a URL, the workflow you just walked the agent through, or pasted notes. Open-ended: the agent gathers the sources with its own tools and authors a `SKILL.md` following the house authoring standards. Works in the CLI, the messaging gateway, the TUI, and the dashboard Skills page. |
| `/plan [task]` | Write a markdown implementation plan to `.hermes/plans/` in the active workspace — planning only, no execution. Empty argument infers the task from the conversation. (Formerly the bundled `plan` skill; now built-in so it survives the Telegram/Discord command-menu caps.) |
- | `/initiate-setup` (alias: `/initiate_setup`) | Run the first-run setup: the agent learns about you and sets Hermes up around you. Sends the `initiate-setup` skill plus facts about this session and machine (surface, tools present, OS, RAM, GPU), plus a derived summary of an automatic machine scan (see [The setup chat's machine scan](../user-guide/desktop.md#the-setup-chats-machine-scan)), as one normal turn. The first message ever ends with a one-line offer to run it (see [Onboarding](../user-guide/configuration.md#onboarding)). Works in the CLI, the messaging gateway, the TUI, and the desktop app. In the desktop app, Hermes itself asks the opening questions (your name, then an accent colour) before the model's first reply. |
++| `/initiate-setup` (alias: `/initiate_setup`) | Run the first-run setup: the agent learns about you and sets Hermes up around you. Sends the `initiate-setup` skill plus a short block of facts about this session and machine (surface, tools present, OS, CPU, RAM, GPU, your name and language; see [What the setup chat knows about your computer](../user-guide/desktop.md#what-the-setup-chat-knows-about-your-computer)), as one normal turn. The first message ever ends with a one-line offer to run it (see [Onboarding](../user-guide/configuration.md#onboarding)). Works in the CLI, the messaging gateway, the TUI, and the desktop app. In the desktop app, Hermes itself asks the opening questions (your name, then an accent colour) before the model's first reply. |
| `/init [notes]` | Generate or update `AGENTS.md` project instructions from a repo scan (port of Codex `/init`). The agent inspects manifests, layout, and toolchain configs with its read-only tools, then writes a concise `AGENTS.md` — or, if one exists, merge-updates it preserving your content. Optional notes steer the emphasis. Works in the CLI, the messaging gateway, and the TUI. |
| `/cron` | Manage scheduled tasks (list, add/create, edit, pause, resume, run, remove) |
| `/suggestions [accept\|dismiss N\|catalog\|clear]` (alias: `/suggest`) | Review suggested automations. Use `/suggestions` to list pending suggestions, `/suggestions accept <id>` to create the proposed automation, `/suggestions dismiss <id>` to reject one, `/suggestions catalog` to add curated starter automations, and `/suggestions clear` to clear resolved suggestion records. Accepted jobs preserve the current surface as the delivery origin. |
diff --cc website/docs/reference/tools-reference.md
index 023a85e3f20,f1f3f687fa8..cf00502f803
--- a/website/docs/reference/tools-reference.md
+++ b/website/docs/reference/tools-reference.md
@@@ -179,24 -179,8 +179,24 @@@ Enabled for sessions whose source is th
| Tool | Description | Requires environment |
|------|-------------|----------------------|
- | `manage_catalog` | Desktop sessions only, deferred behind `tool_search` by default. `search` lists catalog plugins and hub skills matching `query` (optionally one `kind`) with `id`, `kind`, `display`, `tier`, `platforms` and `installed` (present in this chat's profile); it changes nothing. `install` takes `items: [{kind, id}]` and shows one approval card with a row per item (Install, Advanced, Skip); an id the catalog does not know, or a plugin this OS cannot run, is drawn failed with the reason. An approved row installs into this chat's profile (or the profile chosen under Advanced) at the catalog's reviewed commit, with the same kill list, security scan and live activation as the Plugins tab, so the plugin's MCP tools and skills are usable in that profile's open chats at once. The result lists each row as `connected` (with `tools` and `skill`), `skipped`, `failed` (with `detail`) or `not_connected`. The model cannot pass a source, commit, profile or setting. Anywhere else the call returns the `hermes plugins install` / `hermes skills install` command to run instead. | — |
+ | `manage_catalog` | Desktop sessions only, deferred behind `tool_search` by default. `search` lists catalog plugins and hub skills matching `query` (optionally one `kind`) with `id`, `kind`, `display`, `tier`, `platforms` and `installed` (present in this chat's profile); it changes nothing. `install` takes `items: [{kind, id}]` and shows one approval card with a row per item (Install, Advanced, Skip); an id the catalog does not know, or a plugin this OS cannot run, is drawn failed with the reason. An approved row installs into this chat's profile (or the profile chosen under Advanced) at the catalog's reviewed commit, with the same kill list, security scan and live activation as the Plugins tab, so the plugin's MCP tools and skills are usable in that profile's open chats at once. The result lists each row as `connected` (with `tools` and `skill`), `skipped`, `failed` (with `detail`) or `not_connected`; a failed row ends the wait like an installed or skipped one, and an install turns on a catalog plugin that is on disk but not enabled. The model cannot pass a source, commit, profile or setting. Anywhere else the call returns the `hermes plugins install` / `hermes skills install` command to run instead. | — |
+## `setup` toolset
+
+Enabled by the desktop setup profile's own config (`platform_toolsets.cli`). Only desktop sessions get its tools; CLI, `hermes -z`, cron, kanban and messaging sessions never do. `all` does not include it. Not listed by `hermes tools`.
+
+| Tool | Description | Requires environment |
+|------|-------------|----------------------|
- | `setup_choose` | Only through the `setup` toolset, desktop sessions only; never deferred unless a `tools.tool_search.defer` list names it. Shows one card in the setup chat: `kind` is `question`, `accent`, `theme`, `layout`, `connectors`, `plugins`, `tour` or `fork`, and `question` is the card's heading. `options` is required: up to 12 `{id, label, detail?}` rows (unique ids) replace the app's own list, and `[]` shows the app's list for a picker or asks for free text for kind `question`. `tour` (Quick tour, Show me everything, Skip) and `fork` (two first tasks built, when the card shows, from the apps and plugins picked earlier and the setup scan, then "I have something in mind", "Help me set up this &lt;machine>" and "Let's figure it out together") always show the backend's rows. The connectors and plugins cards start with the apps the setup scan saw in use, and Blender when it is present, already picked. A card with options still takes a typed answer. `multi_select` lets the user pick several rows. An accent, theme or layout pick applies in the app as soon as the user picks it. The result has `outcome` (`submitted`, `typed`, `cancelled` or `no_answer` with a `notice`), `picked` (an option id, the free-text answer, or a list of ids with `multi_select`), `said` (with `typed`: words typed in the chat box that name none of the card's rows by id or label; nothing is picked or recorded), and `label` (the name the card showed for each pick, such as `Ultraviolet` for `#8a2be2`) when the pick is one of the card's rows. When the connectors list is unavailable (no Nous identity, after one guest sign-up attempt) or the plugins list is empty, the call returns `no_answer` with a `notice` at once and shows no card. It records the picks for the handoff: `start_chat` hands the picked apps and plugins to the task chat, which connects and installs them first. Anywhere else the call returns an error. | — |
++| `setup_choose` | Only through the `setup` toolset, desktop sessions only; never deferred unless a `tools.tool_search.defer` list names it. Shows one card in the setup chat: `kind` is `question`, `accent`, `theme`, `layout`, `connectors`, `plugins`, `tour` or `fork`, and `question` is the card's heading. `options` is required: up to 12 `{id, label, detail?}` rows (unique ids) replace the app's own list, and `[]` shows the app's list for a picker or asks for free text for kind `question`. `tour` (Quick tour, Show me everything, Skip) and `fork` (two first tasks built, when the card shows, from the apps and plugins picked earlier and this computer, then "I have something in mind", "Help me set up this &lt;machine>" and "Let's figure it out together") always show the backend's rows. The plugins card starts with Blender already picked when it is present. A card with options still takes a typed answer. `multi_select` lets the user pick several rows. An accent, theme or layout pick applies in the app as soon as the user picks it. The result has `outcome` (`submitted`, `typed`, `cancelled` or `no_answer` with a `notice`), `picked` (an option id, the free-text answer, or a list of ids with `multi_select`), `said` (with `typed`: words typed in the chat box that name none of the card's rows by id or label; nothing is picked or recorded), and `label` (the name the card showed for each pick, such as `Ultraviolet` for `#8a2be2`) when the pick is one of the card's rows. When the connectors list is unavailable (no Nous identity, after one guest sign-up attempt) or the plugins list is empty, the call returns `no_answer` with a `notice` at once and shows no card. It records the picks for the handoff: `start_chat` hands the picked apps and plugins to the task chat, which connects and installs them first. Anywhere else the call returns an error. | — |
+
+## `start_chat` toolset
+
+Enabled only when a profile's own config names it (`platform_toolsets.cli`). Only desktop sessions get its tool; CLI, `hermes -z`, cron, kanban and messaging sessions never do. `all` does not include it. Not listed by `hermes tools`. Subagents never get it.
+
+| Tool | Description | Requires environment |
+|------|-------------|----------------------|
+| `start_chat` | Opens a new chat in the desktop app and sends `message` as its first user message. The calling chat shows a card with the new chat's title, its profile and an Open button; the app moves the user into the new chat only when they are watching the calling chat, otherwise the chat appears in the sidebar. The new chat starts with no history. `profile` must name an existing profile (it is never created); omitted, the chat runs in the caller's own profile. The new chat takes its settings from its own profile, never from the caller's. `title` (at most 40 characters) names the chat in the sidebar; omitted, the chat titles itself. Every call opens another chat: nothing de-duplicates a repeated call. A `started` call from the desktop setup profile's chat into another profile marks onboarding complete. The result is `started` with the new chat's `session_id` and `profile`, or `rejected` with a `reason` (unknown profile, empty message, title too long, not called from a desktop chat). | — |
+
## `session_search` toolset
| Tool | Description | Requires environment |
diff --cc website/docs/user-guide/configuration.md
index 59c10609144,65d6c3e0b12..4085ebe5eba
--- a/website/docs/user-guide/configuration.md
+++ b/website/docs/user-guide/configuration.md
@@@ -3062,8 -3063,8 +3063,8 @@@ onboarding
seen: {} # internal latch — leave empty
```
- - `profile_build` — controls the setup offer on the first message ever, in the CLI, the TUI, the desktop app and messaging direct messages (never in a group chat). `"ask"` (default) adds one closing line to the agent's intro that offers `/initiate-setup` (`/initiate_setup` on Telegram). The offer is skipped when the first message is `/initiate-setup` itself, and always in the desktop app's setup profile. `"off"` stops only the offer line; the agent still gives a plain intro. The offer fires at most once per profile. `/initiate-setup` also scans the machine automatically; see [The setup chat's machine scan](./desktop.md#the-setup-chats-machine-scan).
-- `profile_build` — controls the profile-build path offered on a profile's first direct message through the gateway (never in a group chat). `"ask"` (default) offers to build a user profile; the offer is **opt-in and consent-gated** — the agent asks before any lookup and never reads connected accounts silently. `"off"` shows a plain intro only. The offer fires at most once per profile.
-- `seen` — internal state. Hermes latches each shown hint here so it never fires again; the profile-build offer is also recorded here once shown. Don't hand-edit it — wipe the whole `onboarding` section if you want to re-see all hints.
++- `profile_build` — controls the setup offer on the first message ever, in the CLI, the TUI, the desktop app and messaging direct messages (never in a group chat). `"ask"` (default) adds one closing line to the agent's intro that offers `/initiate-setup` (`/initiate_setup` on Telegram). The offer is skipped when the first message is `/initiate-setup` itself, and always in the desktop app's setup profile. `"off"` stops only the offer line; the agent still gives a plain intro. The offer fires at most once per profile. `/initiate-setup` sends a short block of facts about the computer; see [What the setup chat knows about your computer](./desktop.md#what-the-setup-chat-knows-about-your-computer).
+- `seen` — internal state. Hermes latches each shown hint here so it never fires again; the setup offer is also recorded here once shown. Don't hand-edit it — wipe the whole `onboarding` section if you want to re-see all hints.
## Dashboard
diff --cc website/docs/user-guide/skills/optional/productivity/productivity-first-task.md
index 549d815a73f,00000000000..adecc5e60d6
mode 100644,000000..100644
--- a/website/docs/user-guide/skills/optional/productivity/productivity-first-task.md
+++ b/website/docs/user-guide/skills/optional/productivity/productivity-first-task.md
@@@ -1,155 -1,0 +1,155 @@@
+---
+title: "First Task — Run the first task chat that setup hands off"
+sidebar_label: "First Task"
+description: "Run the first task chat that setup hands off"
+---
+
+{/* This page is auto-generated from the skill's SKILL.md by website/scripts/generate-skill-docs.py. Edit the source SKILL.md, not this page. */}
+
+# First Task
+
+Run the first task chat that setup hands off.
+
+## Skill metadata
+
+| | |
+|---|---|
+| Source | Optional — install with `hermes skills install official/productivity/first-task` |
+| Path | `optional-skills/productivity/first-task` |
+| Version | `0.3.0` |
+| Author | Siddharth Balyan (alt-glitch) + Hermes Agent |
+| License | MIT |
+| Platforms | linux, macos, windows |
+| Tags | `onboarding`, `first-run`, `desktop`, `handoff` |
+| Related skills | [`initiate-setup`](../../optional/productivity/productivity-initiate-setup.md) |
+
+## Reference: full SKILL.md
+
+:::info
+The following is the complete skill definition that Hermes loads when this skill is triggered. This is what the agent sees as instructions when the skill is active.
+:::
+
+# First Task Skill
+
- Runs the first chat after setup. This message holds the user's ask, then "What setup learned about me" (their picks and the scan), then these rules and a JSON block. Goal: visible work within one minute, a finished, useful result within five.
++Runs the first chat after setup. This message holds the user's ask, then "What setup learned about me" (their picks and the machine basics), then these rules and a JSON block. Goal: visible work within one minute, a finished, useful result within five.
+
+## When to Use
+
+- This message carries the skill under a handoff from setup.
+- Until the first result lands. After that it is a normal chat.
+
+## Prerequisites
+
+Tools: `manage_connections`, `manage_catalog`, `clarify`, `terminal`, the file tools, the browser, `tool_search`, `skill_view`, and `desktop_preview` in the desktop app. A tool named here but missing from your tool list, often `manage_catalog`, is deferred: run it through `tool_call`, never by its bare name.
+
+## How to Run
+
+Obey these limits. They win over every other line.
+
+1. Your first reply is one short line of text and a tool call, in the same reply.
+2. The JSON block holds `connect` (connector ids) and `install` (plugin ids). The ids are exact. Run the forms below directly, with no search, describe or status step first.
+3. A check is any read-only command (`ls`, `which`, `find`, `cat`, a probe) or a file read. At most 2 checks before you make something. Put several checks in one command.
+4. Never search the whole disk (`find /`) and never read files outside the task's folder. "What setup learned" is the survey.
+5. At most one question before work, and only for a vague ask.
+6. Never run the same call twice. Change a failed call once. If it fails again, say so and go on.
+7. Every first slice makes a thing: a file, a page in the preview, an install, or a brief from real data. A chat summary of what you looked at is not a result.
+8. Every first slice ends with the close card, copied exactly from the Quick Reference, also after a failure.
+9. Say plainly what failed and what you did not test. Never mock or invent data.
+
+## Quick Reference
+
+| Step | What | Call |
+|---|---|---|
+| 1 | One line on what you start with | none |
+| 2 | Connect the picked apps | `manage_connections` connect, every id in `connect`, once |
+| 3 | Install the picked plugins | `manage_catalog` install (through `tool_call` when deferred), every id in `install`, once |
+| 4 | Specific ask: start it. Vague ask: one card, three options | `clarify` |
+| 5 | The first slice, finished in five minutes | the task's own tools |
+| 6 | One line on the result, then the close card | `clarify`, close card below |
+
+```
+manage_connections {"action":"connect","connectors":["<id>", ...]}
+manage_catalog {"action":"install","items":[{"kind":"plugin","id":"<id>"}, ...],"reason":"<one line>"}
+tool_call {"calls":[{"name":"manage_catalog","arguments":{"action":"install","items":[{"kind":"plugin","id":"<id>"}],"reason":"<one line>"}}]} (when manage_catalog is deferred)
+clarify {"questions":[{"question":"<short question>","choices":["<option>","<option>","<option>"]}]}
+close card {"questions":[{"question":"How does this look?","choices":["Looks right","Change something","Take it further"]}]}
+```
+
+Put one entry in `calls` for each `tool_call`. Copy the close card exactly: never rename, add or mark a choice. Your next-step idea goes in the text line.
+
+## Procedure
+
+### 1. Connect first
+
+Run steps 2 and 3 back to back, right after your first line. Skip a step whose list is empty.
+
+Each step runs once. Never redo an earlier step. The connect card's answer is final for this chat: use the apps that connected, and never connect or ask about the others again. An app left unconnected after Continue counts as skipped. Say once, at the close, that they can connect the rest later from the Connections menu.
+
+### 2. First move for each ask
+
+| Ask | First move |
+|---|---|
+| A daily brief / work apps | Connect. Find the connected apps' tools with `tool_search`, then write the brief in the chat. None connected: section 3. |
+| Set up this Mac / install apps | One `clarify` app card, then section 4. |
+| Make something in a plugin app (Blender) | Install. Then `skill_view` the plugin's skill by its id and build one small thing. Install not `connected`: section 3. |
+| Automate something / a script | Section 5. If the ask names no task, one card first: "Rename my screenshots by date", "Sort my Downloads by type", "Clear old files off my Desktop". |
+| Vague ("I have something in mind", "Let's figure it out") | One `clarify` card with three options from the list below. Then start the pick. |
+
- Options for a vague ask. Each one makes a thing in five minutes. Name only apps they picked or the scan saw. Never offer "find", "review", "audit" or "clean up my &lt;app>": these make a survey, not a thing.
++Options for a vague ask. Each one makes a thing in five minutes. Name only apps they picked. Never offer "find", "review", "audit" or "clean up my &lt;app>": these make a survey, not a thing.
+
+- Work apps picked: "A daily brief from Linear and Slack", "A summary of my week".
+- An NVIDIA or Spark machine: "Install a few apps for this Spark".
+- A plugin picked: "A simple scene in Blender".
- - Otherwise: "A small HTML page about &lt;something from the scan>", "A start page with links to my apps", "A quick script that tidies my Downloads".
++- Otherwise: "A small HTML page about &lt;something they picked or said>", "A start page with links to my apps", "A quick script that tidies my Downloads".
+
+The first option always makes a page or a file. Text they type instead of a choice is the pick. If they answer "surprise me", "idk" or "any", start the first option now: write the file and open it, with no checks first.
+
+### 3. When a connect or an install fails
+
+Do not stop with nothing.
+
+1. No app connected, for a brief: say so in one line. Run one check, `gh auth status`. If it is logged in, write a brief from GitHub (open PRs, review requests, assigned issues) and say it comes from GitHub. If not, make a start page or a script that needs no account.
+2. An install whose state is not `connected`, or that errors: say so in one line. Do not look for the plugin on disk, read its source or write your own client. Make the nearest thing without it. For Blender: write `~/hermes-first-task/first_scene.py`, a script that builds the scene, and give the command `blender --python <path>`.
+3. End with the close card. Offer to try again in the text line.
+
+### 4. Machine setup
+
- 1. One `clarify` app card: three to five everyday apps that fit their use, multi-pick. Never offer an app the scan saw: it is installed already.
++1. One `clarify` app card: three to five everyday apps that fit their use, multi-pick.
+2. Check 1, one command, shaped like this: `which brew && ls -d "/Applications/Slack.app" "/Applications/Zoom.app" 2>&1`
+3. Install only the picks the check did not find, one app per command: `brew install --cask <app>`. Say "already installed" for the others. Never reinstall.
+4. On Arm, after the installs, one `lipo -archs` command for the new apps. Say when an app is x64 only.
+5. List for them anything that needs a password, a licence or a payment. Never disable security settings.
+6. One line on what changed and the next slice (developer tools, drivers), then the close card.
+
+### 5. Automations
+
+1. Write the script at once with `write_file` in `~/hermes-first-task/`. No checks first.
+2. By default the script only prints what it would do. A flag such as `--apply` makes the changes.
+3. Run it once in preview mode on the real folder, for example `python3 ~/hermes-first-task/tidy_downloads.py ~/Downloads`, and show the output. If you could not run it, say it is untested.
+4. If the folder is missing or empty, say so. Never make test files or test folders (`mkdir`, `touch`, `SetFile`).
+5. Give the one command that does it for real. Set up no recurring job unless they asked.
+
+### 6. Build rules
+
+- Real data only: from connected apps or tools signed in on this computer, such as a logged-in `gh` (say so). Never route around a connector: no IMAP, app password or scraping.
+- Ask before sending, deleting or scheduling anything.
+- A local model is set up by the app, not by you: point to Run locally in the model menu, or Settings, Providers, Local Models. Never install a model runtime or download a model yourself.
+- A generated page is one self-contained HTML file, opened with `desktop_preview`.
+- Save every new file in `~/hermes-first-task/`, never in the current folder. Do not copy files around. Say where each file is.
+- Find a plugin's tools with `tool_search` after the install. If its app is not running, say so.
+- Cut a big ask to a first slice and say so in one line. A long step (a large download, a full build) is never the first slice.
+- New to AI agent apps: explain a feature in one plain sentence when it first matters. Say once that you ask for permission and they can say no.
+
+### 7. Close the first slice
+
+One short line on what you made and where it is, then the close card. Act on the pick.
+
+## Pitfalls
+
+- A chat report in place of a file, a page or an install.
+- Stiff words: write short, plain, warm sentences, with no filler, em dashes or exclamation marks.
+
+## Verification
+
+- The first reply is one line of text and a tool call. Only a vague ask got a card.
+- The first slice ends with the exact close card, also after a failure.
diff --cc website/docs/user-guide/skills/optional/productivity/productivity-initiate-setup.md
index 26a81a5b037,00000000000..2e6d808923e
mode 100644,000000..100644
--- a/website/docs/user-guide/skills/optional/productivity/productivity-initiate-setup.md
+++ b/website/docs/user-guide/skills/optional/productivity/productivity-initiate-setup.md
@@@ -1,176 -1,0 +1,165 @@@
+---
+title: "Initiate Setup — Run the first-run setup chat in the Hermes desktop app"
+sidebar_label: "Initiate Setup"
+description: "Run the first-run setup chat in the Hermes desktop app"
+---
+
+{/* This page is auto-generated from the skill's SKILL.md by website/scripts/generate-skill-docs.py. Edit the source SKILL.md, not this page. */}
+
+# Initiate Setup
+
+Run the first-run setup chat in the Hermes desktop app.
+
+## Skill metadata
+
+| | |
+|---|---|
+| Source | Optional — install with `hermes skills install official/productivity/initiate-setup` |
+| Path | `optional-skills/productivity/initiate-setup` |
+| Version | `0.3.0` |
+| Author | Siddharth Balyan (alt-glitch) + Hermes Agent |
+| License | MIT |
+| Platforms | linux, macos, windows |
+| Tags | `onboarding`, `setup`, `first-run`, `desktop`, `handoff` |
+| Related skills | [`first-task`](../../optional/productivity/productivity-first-task.md) |
+
+## Reference: full SKILL.md
+
+:::info
+The following is the complete skill definition that Hermes loads when this skill is triggered. This is what the agent sees as instructions when the skill is active.
+:::
+
+# Initiate Setup Skill
+
+Runs a new user's first conversation with Hermes. On desktop the app plays the opening (welcome, name, accent); you take over from the accent answer: apps, plugins, layout, the tour offer, the fork, then one first task in its own chat with `start_chat`. You do not do the task, install anything, or read the machine: the task chat does that, guided by the `first-task` skill.
+
+## When to Use
+
+- The `/initiate-setup` command started this turn.
+- The user asks to run setup again from the setup chat.
+
+Never inside a task chat. When `setup_completed_at` is set, or `start_chat` already started a task here, setup is done: say so in one line and go to beat 5 for a new task.
+
+## Prerequisites
+
+The setup profile's desktop tools:
+
+- `setup_choose` shows one card and blocks until the user answers. Always send `options`: at most 12 `{id, label, detail}`, or `[]` for the app's own list (free text for `question`). Returns `{outcome, picked, label, said, next, handoff}`: name a pick by its `label`, never its id; `typed` means the user wrote words that name no row (`said`), so nothing was picked; do what `next` says in the same turn; the fork's result carries `handoff` for beat 7.
+- `start_chat` starts a visible chat in `profile` whose first user message is your `message`. Returns `{status: "started", ...}` or `{status: "rejected", reason}`.
+- `apply_layout`, `gui_tour`, and `manage_connections` (connect shows the sign-in card).
+
+No terminal, file, web, browser, memory or `clarify` tools here.
+
+## How to Run
+
- Session facts follow the skill: `surface` (only `desktop` has cards and `start_chat`), `tools_present`, `primary_profile` (the `profile` of `start_chat`), `guest_free_tier`, `setup_completed_at`.
-
- Host facts:
-
- !`${HERMES_PYTHON} scripts/host_facts.py`
-
- - `machine.*`: background only; never recite it.
- - `account.suggested_name` (or null), `account.locale_is_english`.
- - `signals.machine_kind` (`Mac`, `PC`, `Spark`, `computer`: say it where the flow says "this computer"), `signals.looks_new`, `signals.is_spark`, `signals.machine_setup_leads`.
- - `scan`: interpreted in code, or `{source: "unavailable"}`. `unknown` means not measured; never guess `not_visible_at_tier`.
-
- When the host facts line still shows a command, facts are unknown: suggest no name. The app fills the apps, plugins, tour, fork and machine_use rows itself. Host facts describe the backend machine; when the user disagrees, believe the user.
++Facts follow the skill as one JSON block. Read them as they are; a missing key means unknown, so never guess it. Never recite `machine`. The facts describe the machine Hermes runs on; when the user disagrees, believe the user. The app fills the apps, plugins, tour, fork and machine_use rows itself.
+
+Work one beat at a time. When the history holds the name and accent answers, start at beat 1; otherwise run the Opening.
+
+## Quick Reference
+
+| # | Beat | Tool call |
+|---|---|---|
+| - | Welcome, name, accent | played by the app |
+| 1 | Apps they use | card `apps` |
+| 2 | Plugins | card `plugins` (records only) |
+| 3 | Layout | card `layout` |
+| 4 | Tour offer | card `tour`; one `gui_tour` |
+| 5 | The fork | card `fork` |
+| 6 | Narrow to one task | card `machine_use` only for `machine` |
+| 7 | Handoff | `start_chat`, once |
+| 8 | After the handoff | one line, then stop |
+
+Copy each line whole; fill only the `<slots>`:
+
+```
- name {"kind":"question","question":"What should I call you?","options":[{"id":"suggested","label":"<account.suggested_name>"}],"multi_select":false}
++name {"kind":"question","question":"What should I call you?","options":[{"id":"suggested","label":"<suggested_name>"}],"multi_select":false}
+name0 {"kind":"question","question":"What should I call you?","options":[],"multi_select":false}
+accent {"kind":"accent","question":"Which colour?","options":[],"multi_select":false}
+apps {"kind":"connectors","question":"Which of these do you use?","options":[],"multi_select":true}
+plugins {"kind":"plugins","question":"Want any of these?","options":[],"multi_select":true}
+layout {"kind":"layout","question":"Which layout?","options":[],"multi_select":false}
+tour {"kind":"tour","question":"Want a look around first?","options":[],"multi_select":false}
+fork {"kind":"fork","question":"<fork.question>","options":[],"multi_select":false}
- machine_use {"kind":"machine_use","question":"What's this <signals.machine_kind> mainly for?","options":[],"multi_select":false}
++machine_use {"kind":"machine_use","question":"What's this <machine_kind> mainly for?","options":[],"multi_select":false}
+gui_tour {"action":"start","preset":"quick"} or {"action":"start","preset":"full"}
+manage_connections {"action":"connect","connectors":["<id>", ...]}
+start_chat {"profile":"<primary_profile>","title":"<task name, at most 40 characters>","message":"<the handoff message>"}
+```
+
+## Procedure
+
+### Voice
+
+- Every visible word is spoken to them. Never think out loud, recap a step, or mention beats, cards, tools, facts or this skill.
+- Before a card: the acknowledgment of the last answer, then at most one sentence of your own, all statements. The card shows its question, so never ask it, name the next topic, or list the options. No lead-in words (Now, Next, Let's).
+- Acknowledge a pick by its label and at most three plain words, never the same twice: "Violet, done.", "Gmail, noted." No opinion after a pick.
- - Short plain sentences, no em dashes, no exclamation marks. When `account.locale_is_english` is false, write in that language, labels included.
++- Short plain sentences, no em dashes, no exclamation marks. When `locale` is not English, write in that language, labels included.
+- Text typed instead of using the card is the answer when it names a row; otherwise the card returns `typed` with their words: reply and follow `next`. Never repeat a tool call that succeeded.
- - Asked what you know about them: answer truthfully in a few plain lines (machine basics, apps seen in use, that Hermes scanned this computer when setup began), then re-send the pending card.
++- Asked what you know about them: answer truthfully in a few plain lines (the machine basics and their picks so far), then re-send the pending card.
+- Models, when asked: the model picker chooses what answers them. For a local model, explain the download and hardware fit first (web search and apps keep their own services), then point to Settings, Providers, Local Models. Name no web search provider.
+
+### Opening
+
+Without the app's name and accent answers in the history: a short welcome, card `name` (or `name0` when there is no suggested name), one warm sentence with their name, then card `accent`. "Sure" means the suggested name.
+
+### Beat 1: apps they use
+
+"&lt;Colour>, done. I'd read and act inside these apps for you, not message you there, and I set them up when we start on something." When `guest_free_tier` is true, add once: "Wiring these up later wants a model provider: a free Nous account works, free tier, no card, or you can bring your own." Then card `apps`. With `no_answer` and a `notice`: one line that connecting apps needs a free Nous account and can wait, then follow `next`.
+
+Connect an app here only when they ask: one `manage_connections` connect call with those apps. Chat apps like Discord or Telegram live in Messaging in the app's settings.
+
+### Beat 2: plugins
+
+"Plugins are tools I install and run on this &lt;machine_kind>; picking one only records it." Then card `plugins`. With `no_answer`, say nothing and follow `next`.
+
+### Beat 3: layout
+
+The acknowledgment, at most one light opinion, then card `layout`. Call `apply_layout` only for a layout asked for in words: `sidebar-left` (Basic) or `terminal-deck` (Elite).
+
+### Beat 4: the tour offer
+
+Card `tour`. `basics`: `gui_tour` preset `quick`; `tour`: preset `full`; one call after "Here's where things live." `none` or cancelled: no tour. Then beat 5 in the same turn. Never bring the tour up again.
+
+### Beat 5: the fork
+
- "Ask me to show you any part of the app whenever you like. I'd rather build you something real than talk about it." When the scan has something worth naming, one "I noticed" line that names at most two things, never a private detail. When `signals.machine_setup_leads` is true, add one sentence: a newly set up machine ("I can handle its apps and everyday tools") or the Spark's hardware. Never its age in days. Then card `fork`: the app puts two first tasks built from their picks and the scan in front of "I have something in mind", "Help me set up this &lt;machine_kind>" and "Let's figure it out together".
++"Ask me to show you any part of the app whenever you like. I'd rather build you something real than talk about it." When `is_spark` is true, add one sentence about the Spark's hardware. Then card `fork`: the app puts two first tasks built from their picks and this computer in front of "I have something in mind", "Help me set up this &lt;machine_kind>" and "Let's figure it out together".
+
+### Beat 6: narrow to one task
+
+- A first-task row, `mind`, or a task typed in: decided, go to beat 7.
+- `figure`: follow `next` and hand off with the ask "Let's figure out a first task together." The task chat offers the options.
+- `machine`: one line that frames it ("The Spark itself, then."), card `machine_use`, then hand off with the machine plan. Never plan or list installs.
+- A cancelled card: follow `next`.
+
+### Beat 7: the handoff
+
- One short sentence: the work gets its own chat, and this one stays open. Then `start_chat` once with `profile` = `primary_profile`, `title` = the task's name, and `message` written as the fork result's `handoff.message` says, with `handoff.plan` as its plan. The app adds their picks, the scan and the first-task rules under it; write none of that.
++One short sentence: the work gets its own chat, and this one stays open. Then `start_chat` once with `profile` = `primary_profile`, `title` = the task's name, and `message` written as the fork result's `handoff.message` says, with `handoff.plan` as its plan. The app adds their picks, the machine basics and the first-task rules under it; write none of that.
+
+### Beat 8: after the handoff
+
+- `started`: one sentence of at most 15 words ("It's in its own chat now; I'm here under Welcome to Hermes if you need me."). Then stop.
+- `rejected`: say from the `reason` that it did not start; retry once, same `profile`, only when they say yes.
+
+### Failure handling
+
+- A card with no pick: take the default and move on silently; from the fork on, follow `next`. Never re-ask a skipped card in the same form.
+- They stop setup: say only "It's all yours, and this chat stays here if you want a hand."
+- Off the flow: answer in a sentence or two, then re-send the pending card once. Light or dark: `{"kind":"theme","question":"Light or dark?","options":[],"multi_select":false}`.
+- Something only the task chat can do (a command, a file, an install): say it happens there and put it in the ask.
+- After a relaunch: continue from the first beat with no answer in the history.
+
+### Surface fallback
+
+Without `setup_choose`: ask in plain text, one question per message; skip accent and layout. Without `gui_tour`: skip the tour. Without `start_chat`: start the task here. Never mention a missing tool.
+
+## Pitfalls
+
+- Repeating the card's question in text.
+- Planning or starting the task here instead of handing it off.
+
+## Verification
+
+- Beats follow the Quick Reference, one card at a time; every `setup_choose` call carries `options`.
+- Exactly one `start_chat` returned `started`, with `profile` = `primary_profile`.
+- After `started` there is one short line and no question.