The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
Merge remote-tracking branch 'origin/main' into ethie/pm-clean
ethernetb3bfc3afe5af
diff --cc apps/desktop/electron/pool-stop.test.tsindex 395fec5664f,8010db64688..ce497cbad0e--- a/apps/desktop/electron/pool-stop.test.ts+++ b/apps/desktop/electron/pool-stop.test.ts@@@ -89,7 -89,15 +89,15 @@@ test('stop of an unknown key resolves wassert.equal(stopper.inFlight('ghost'), undefined)})+ test('a remote pooled descriptor without a local child does not require quit deferral', () => {+ const { pool, stopper } = harness()++ pool.set('remote', {})++ assert.equal(stopper.hasPending(), false)+ })+-test('stopAll stops every pooled backend and resolves after all exits', async () => {+test('stopAll waits for current and already-stopping backends', async () => {const { addChild, exitResolvers, pool, stopper } = harness()const a = addChild('a')const b = addChild('b')diff --cc apps/desktop/src/app/contrib/wiring.tsxindex a1e0741e44c,3e5fc7b3ef2..9193625b6dc--- a/apps/desktop/src/app/contrib/wiring.tsx+++ b/apps/desktop/src/app/contrib/wiring.tsx@@@ -18,11 -18,13 +18,14 @@@ import { formatRefValue } from '@/compoimport { BootFailureOverlay } from '@/components/boot-failure-overlay'import { ConfirmHost } from '@/components/confirm-host'import { DesktopInstallOverlay } from '@/components/desktop-install-overlay'+import { ExternalOpenFailedDialog } from '@/components/external-open-failed-dialog'import { FindBar } from '@/components/find-bar'+ import { FreeTierSignInDialog } from '@/components/free-tier/sign-in-dialog'import { GatewayConnectingOverlay } from '@/components/gateway-connecting-overlay'+ import { IntroRevealGate } from '@/components/intro-reveal'import { NotificationStack } from '@/components/notifications'import { DesktopOnboardingOverlay } from '@/components/onboarding'+ import { OnboardingChatGate } from '@/components/onboarding-chat/gate'import { $newSessionTabAction, registerPaneCloser } from '@/components/pane-shell/tree/store'import {$workspaceMode,diff --cc apps/desktop/src/i18n/en.tsindex b825f8aef1c,8693ea4e5d1..17b7eae3be6--- a/apps/desktop/src/i18n/en.ts+++ b/apps/desktop/src/i18n/en.ts@@@ -3,12 -3,36 +3,41 @@@ import { FIELD_DESCRIPTIONS, FIELD_LABEimport type { Translations } from './types'export const en: Translations = {+ externalOpenFailed: {+ title: 'Couldn’t open this link',+ message: 'No browser is registered to open this address. Copy the link and open it manually.',+ copyUrl: 'Copy link',+ close: 'Close'+ },+ connectors: {+ title: 'Connect your apps',+ connect: 'Connect',+ skip: 'Not now',+ cancel: 'Stop waiting',+ retry: 'Try again',+ grant: 'Reconnect',+ connected: 'Connected',+ skipped: 'Skipped',+ disabled: 'Unavailable',+ failed: 'Could not connect',+ needsAuth: 'Access expired',+ opening: 'Opening sign-in…',+ waiting: 'Finish connecting in your browser…',+ timeout: 'Still waiting for authorization.',+ keepWaiting: 'Keep waiting',+ refresh: 'Refresh status',+ statusError: 'Could not check connections. Try refreshing.',+ connectError: 'Could not start authorization. Try again.',+ unavailable: 'Connectors are unavailable for this session.',+ ownerMissing: 'Reopen this conversation to manage its connections.',+ search: 'Find an app',+ empty: 'No matching apps',+ continue: 'Continue in chat',+ continueBusy: 'Waiting for this turn to finish',+ continueFailed: 'Could not continue. Try again.',+ disclaimer: 'Connecting is optional. Only authorize the apps you want Hermes to use.',+ execution: 'Connector tools'+ },-sessionImport: {title: 'Continue from another app',subtitle: 'Bring a conversation into Hermes and pick up where you left off.',@@@ -2973,50 -3352,13 +3342,54 @@@notAvailable: 'Update not available for this backend.',failed: 'Backend update failed.',noReturn: 'Backend didn’t come back online. The update may not have completed — check the backend host.'- }+ },+ // Update-status overlay + version-details (mechanism-aware update UI).+ appName: 'Hermes',+ version: (value: string) => `Version ${value}`,+ versionUnavailable: 'Version unavailable',+ checkNow: 'Check now',+ seeWhatsNew: "See what's new",+ releaseNotes: 'Release notes',+ onLatest: "You're on the latest version.",+ installing: 'An update is currently installing.',+ cantReach: "We couldn't reach the update server.",+ tapCheck: 'Tap "Check now" to look for updates.',+ updateReady: count => `A new update is ready (${count} change${count === 1 ? '' : 's'} included).`,+ updateReadyUnknown: 'A new update is ready.',+ availableBodyRelease: tag => `Version ${tag} is ready to install.`,+ lastChecked: age => `Last checked ${age}`,+ never: 'never',+ justNow: 'just now',+ minAgo: count => `${count} min ago`,+ hoursAgo: count => `${count}h ago`,+ daysAgo: count => `${count}d ago`,+ justNowSuffix: ' · just now',+ bundleOutOfSync: 'App build out of date',+ bundleOutOfSyncDesc:+ 'The Hermes runtime was updated, but the desktop app itself is still an older build. Update it to pick up the latest fixes.',+ bundleOutOfSyncAction: 'Get the installer',+ checkingShort: 'Checking…',+ releaseAvailable: tag => `Version ${tag} is available.`,+ versionDetailsTitle: 'Version details',+ versionDetailsBody:+ 'This install is managed outside the app. Update it the same way you installed it.',+ versionDetailsVersion: 'Version',+ versionDetailsCommit: 'Commit',+ versionDetailsBuildOrigin: 'Build Origin',+ versionDetailsDistribution: 'Distribution',+ versionDetailsDistributionDesktop: 'Desktop app (MSIX)',+ versionDetailsDistributionStore: 'Microsoft Store',+ versionDetailsRuntime: 'Runtime',+ versionDetailsRuntimeEmbedded: 'Embedded runtime',+ versionDetailsRuntimeExternal: 'External (uses the machine runtime)',+ versionDetailsInstallId: 'Install ID',+ versionDetailsUncommittedChanges: 'uncommitted changes'},+ 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',diff --cc apps/desktop/src/i18n/types.tsindex 6ed338cac89,22e5acf29f0..4fa28dd7b13--- a/apps/desktop/src/i18n/types.ts+++ b/apps/desktop/src/i18n/types.ts@@@ -51,11 -219,34 +219,40 @@@ interface AuxTaskCopy}export interface Translations {+ externalOpenFailed: {+ title: string+ message: string+ copyUrl: string+ close: string++ };+ connectors: {+ title: string+ connect: string+ skip: string+ cancel: string+ retry: string+ grant: string+ connected: string+ skipped: string+ disabled: string+ failed: string+ needsAuth: string+ opening: string+ waiting: string+ timeout: string+ keepWaiting: string+ refresh: string+ statusError: string+ connectError: string+ unavailable: string+ ownerMissing: string+ search: string+ empty: string+ continue: string+ continueBusy: string+ continueFailed: string+ disclaimer: string+ execution: string}sessionImport: {title: string@@@ -2544,48 -2881,17 +2870,57 @@@failed: stringnoReturn: string}+ /** Update-status overlay + version-details (mechanism-aware update UI):+ * the overlay reads these off t.updates directly. */+ appName: string+ version: (value: string) => string+ versionUnavailable: string+ checkNow: string+ seeWhatsNew: string+ releaseNotes: string+ onLatest: string+ installing: string+ cantReach: string+ tapCheck: string+ updateReady: (count: number) => string+ updateReadyUnknown: string+ availableBodyRelease: (tag: string) => string+ lastChecked: (age: string) => string+ never: string+ justNow: string+ minAgo: (count: number) => string+ hoursAgo: (count: number) => string+ daysAgo: (count: number) => string+ justNowSuffix: string+ bundleOutOfSync: string+ bundleOutOfSyncDesc: string+ bundleOutOfSyncAction: string+ checkingShort: string+ releaseAvailable: (tag: string) => string+ versionDetailsTitle: string+ versionDetailsBody: string+ versionDetailsVersion: string+ versionDetailsCommit: string+ versionDetailsBuildOrigin: string+ versionDetailsDistribution: string+ versionDetailsDistributionDesktop: string+ versionDetailsDistributionStore: string+ versionDetailsRuntime: string+ versionDetailsRuntimeEmbedded: string+ versionDetailsRuntimeExternal: string+ versionDetailsInstallId: string+ 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. */+ guidedGreeting: {+ line: string+ nameSuggestion: (name: string) => string+ }install: {stageStates: Record<string, string>oneTimeTitle: stringdiff --cc apps/desktop/src/i18n/zh.tsindex 376e1cde908,77475c7efeb..e72c7782713--- a/apps/desktop/src/i18n/zh.ts+++ b/apps/desktop/src/i18n/zh.ts@@@ -3,12 -3,36 +3,41 @@@ import { defineFieldCopy } from '@/app/import type { Translations } from './types'export const zh: Translations = {+ externalOpenFailed: {+ title: '无法打开此链接',+ message: '没有注册用于打开此地址的浏览器。请复制链接并手动打开。',+ copyUrl: '复制链接',+ close: '关闭'+ },+ connectors: {+ title: '连接你的应用',+ connect: '连接',+ skip: '暂不连接',+ cancel: '停止等待',+ retry: '重试',+ grant: '重新连接',+ connected: '已连接',+ skipped: '已跳过',+ disabled: '不可用',+ failed: '连接失败',+ needsAuth: '授权已过期',+ opening: '正在打开登录…',+ waiting: '请在浏览器中完成连接…',+ timeout: '仍在等待授权。',+ keepWaiting: '继续等待',+ refresh: '刷新状态',+ statusError: '无法检查连接,请刷新重试。',+ connectError: '无法开始授权,请重试。',+ unavailable: '此会话暂时无法使用连接器。',+ ownerMissing: '请重新打开此对话以管理连接。',+ search: '查找应用',+ empty: '没有匹配的应用',+ continue: '在对话中继续',+ continueBusy: '等待当前操作完成',+ continueFailed: '无法继续,请重试。',+ disclaimer: '连接为可选操作。请仅授权你希望 Hermes 使用的应用。',+ execution: '连接器工具'+ },-sessionImport: {title: '从其他应用继续',subtitle: '将对话导入 Hermes,接着上次的进度继续。',@@@ -3128,50 -3492,12 +3480,54 @@@failed: '后端更新失败。',noReturn: '后端未恢复在线。更新可能未完成——请检查后端主机。'}+ ,+ // Update-status overlay + version-details (mechanism-aware update UI).+ appName: 'Hermes',+ version: value => `版本 ${value}`,+ versionUnavailable: '版本不可用',+ checkNow: '立即检查',+ seeWhatsNew: '查看更新内容',+ releaseNotes: '发行说明',+ onLatest: '已是最新版本。',+ installing: '正在安装更新。',+ cantReach: '无法连接更新服务器。',+ tapCheck: '点击“立即检查”以查找更新。',+ updateReady: count => `新更新已就绪(包含 ${count} 项变更)。`,+ updateReadyUnknown: '新更新已就绪。',+ availableBodyRelease: (tag: string) => `版本 ${tag} 已可安装。`,+ lastChecked: age => `上次检查 ${age}`,+ never: '从未',+ justNow: '刚刚',+ minAgo: count => `${count} 分钟前`,+ hoursAgo: count => `${count} 小时前`,+ daysAgo: count => `${count} 天前`,+ justNowSuffix: ' · 刚刚',+ bundleOutOfSync: '应用版本过旧',+ bundleOutOfSyncDesc:+ 'Hermes 运行时已更新,但桌面应用仍是较旧的构建。请更新以获取最新修复。',+ bundleOutOfSyncAction: '获取安装程序',+ checkingShort: '检查中…',+ releaseAvailable: tag => `版本 ${tag} 可用。`,+ versionDetailsTitle: '版本详情',+ versionDetailsBody:+ '此安装在应用外部管理。请使用与安装时相同的方式更新。',+ versionDetailsVersion: '版本',+ versionDetailsCommit: '提交',+ versionDetailsBuildOrigin: '构建来源',+ versionDetailsDistribution: '发行版',+ versionDetailsDistributionDesktop: '桌面应用 (MSIX)',+ versionDetailsDistributionStore: 'Microsoft Store',+ versionDetailsRuntime: '运行时',+ versionDetailsRuntimeEmbedded: '嵌入式(捆绑)',+ versionDetailsRuntimeExternal: '外部',+ versionDetailsInstallId: '安装 ID',+ versionDetailsUncommittedChanges: '未提交的变更'},+ guidedGreeting: {+ line: '来了,进来吧。我是 Hermes。给我两分钟,把这里按你的习惯收拾一下,然后我们找件你真正想做的事来做。\n\n先说,我该怎么称呼你?',+ nameSuggestion: (name: string) => `(如果你愿意,我也可以直接叫你 ${name}。)`+ },install: {stageStates: {pending: '等待中',diff --cc hermes_cli/plugins_cmd.pyindex e9ab1332499,4d946012c71..01ee11387d6--- a/hermes_cli/plugins_cmd.py+++ b/hermes_cli/plugins_cmd.py@@@ -1970,22 -1700,13 +1993,24 @@@ def _run_composite_fallback(plugin_keysprint()+def _save_plugin_selection_fallback(plugin_keys, chosen, disabled) -> None:+ """The text fallback's save: same admission authority, refusal printed."""+ from hermes_cli.plugins_admission import AdmissionRefused++ try:+ _persist_plugin_selection(plugin_keys, chosen, disabled)+ except AdmissionRefused as exc:+ print(f" Plugin selection refused, not saved: {exc}")+ print(" config.yaml and the active environment are unchanged.")++def dashboard_install_plugin(identifier: str, *, force: bool, enable: bool, catalog_name: Optional[str] = None,+ ref: Optional[str] = None,) -> dict[str, Any]:"""Non-interactive install for the dashboard/TUI. *catalog_name* installs a curated entry at its- pinned SHA (identifier may be empty); every path enforces the kill list (no GUI bypass)."""+ pinned SHA (identifier may be empty); *ref* pins a custom source to one full commit SHA (same+ contract as ``--ref``); every path enforces the kill list (no GUI bypass)."""from hermes_cli import plugins_cmd_catalog as catalogwarnings: list[str] = []entry = Nonediff --cc hermes_cli/update_cmd.pyindex b39173f298a,615800d9c3d..8f75cb809b2--- a/hermes_cli/update_cmd.py+++ b/hermes_cli/update_cmd.py@@@ -891,16 -531,17 +908,25 @@@ def _cmd_update_check(branch: str = "ma_print_fetch_failure(fetch_result.stderr)sys.exit(1)+ if is_shallow:+ # The depth-1 fetch above leaves the previous tip behind as a ``.git/shallow`` graft+ # (git never removes old grafts); prune the stale ones so the file stops growing and+ # merge-base / the orphan-divergence heuristic keep working (#105951).+ from hermes_cli.gitlock import prune_stale_shallow_grafts+ pruned = prune_stale_shallow_grafts(_m().PROJECT_ROOT)+ if pruned:+ print(f" (pruned {pruned} stale shallow graft(s) left by past depth-1 checks)")+- # rev-list on a bogus ref exits 128 and (check=True) would traceback; verify first.- verify_result = _git_run(git_cmd, ["rev-parse", "--verify", "--quiet", compare_branch])+ # Verify the compare ref actually exists before asking rev-list about it.+ # Without this, `git rev-list HEAD..origin/<bogus> --count` exits 128 and+ # (with check=True) raises CalledProcessError, surfacing a Python+ # traceback. Friendlier to detect-and-report.+ verify_result = subprocess.run(+ git_cmd + ["rev-parse", "--verify", "--quiet", compare_branch],+ cwd=_m().PROJECT_ROOT,+ capture_output=True,+ text=True, encoding="utf-8", errors="replace",+ )if verify_result.returncode != 0:print(f"✗ Branch '{branch}' not found on {compare_branch.split('/', 1)[0]}.")sys.exit(1)diff --cc tests/gateway/test_buzz_adapter.pyindex be3727bf5d0,bc7eb4e4591..11d39610e93--- a/tests/gateway/test_buzz_adapter.py+++ b/tests/gateway/test_buzz_adapter.py@@@ -13,7 -13,7 +13,6 @@@ from unittest.mock import AsyncMock, Mafrom gateway.platforms.base import CachedMediafrom gateway.platforms.event import MessageTypefrom tests.gateway._plugin_adapter_loader import load_plugin_adapter--from gateway.platforms.event import MessageType# Load plugins/platforms/buzz/adapter.py under a unique module name# (plugin_adapter_buzz) so it cannot collide with other plugin adaptersdiff --cc tests/gateway/test_scale_to_zero.pyindex c9ac94e2d50,938bf463ffe..9db09a5f25a--- a/tests/gateway/test_scale_to_zero.py+++ b/tests/gateway/test_scale_to_zero.py@@@ -150,10 -182,9 +182,10 @@@ def _fake_flaps(sock_dir, status_line,return sock_path, t[email protected]("linux")- def test_suspend_self_posts_suspend_for_this_machine(tmp_path):+ def test_suspend_self_posts_suspend_for_this_machine(short_sock_dir):captured: list[bytes] = []- sock_path, t = _fake_flaps(tmp_path, "200 OK", captured)+ sock_path, t = _fake_flaps(short_sock_dir, "200 OK", captured)assert suspend_self(_FLY_ENV, socket_path=sock_path) is Truet.join(timeout=5)request = captured[0].decode()@@@ -165,10 -196,9 +197,10 @@@assert "Host: flaps\r\n" in request[email protected]("linux")- def test_suspend_self_non_2xx_is_false_not_raise(tmp_path):+ def test_suspend_self_non_2xx_is_false_not_raise(short_sock_dir):captured: list[bytes] = []- sock_path, t = _fake_flaps(tmp_path, "412 Precondition Failed", captured)+ sock_path, t = _fake_flaps(short_sock_dir, "412 Precondition Failed", captured)assert suspend_self(_FLY_ENV, socket_path=sock_path) is Falset.join(timeout=5)diff --cc tests/gateway/test_systemd_notify.pyindex a8dcd2f3606,84ce5ae93b7..aaa5d25dd41--- a/tests/gateway/test_systemd_notify.py+++ b/tests/gateway/test_systemd_notify.py@@@ -7,12 -7,8 +7,10 @@@ import sockeimport pytest+pytestmark = pytest.mark.platforms("linux")+- @pytest.mark.skipif(- not hasattr(socket, "AF_UNIX"), reason="Unix datagram sockets are unavailable"- )+ @pytest.mark.linux_only # abstract (NUL-prefixed) AF_UNIX names are a Linux kernel featuredef test_notify_supports_systemd_abstract_socket(monkeypatch):name = "\0hermes-test-notify"receiver = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM)diff --cc tests/test_packaging_build_guard.pyindex c4bc3a80bfd,b73cf4d053e..68538edd45a--- a/tests/test_packaging_build_guard.py+++ b/tests/test_packaging_build_guard.py@@@ -93,39 -98,4 +98,39 @@@ def test_artifact_build_allows_explicit}missing = sorted(expected - shipped)- assert not missing, f"{kind} omits bundled plugin manifests: {missing}"+ assert not missing, f"{kind} omits runtime modules or bundled data: {missing}"+++def test_wheel_ships_pm_package_and_lock_json(tmp_path):+ """The pm/ package manager must survive a sealed wheel build.++ pm is a flat package listed in [tool.setuptools.packages.find] include,+ and pm/lock.json is its runtime pin table (uv/python/tool versions ++ sha256s) declared via [tool.setuptools.package-data]. If either drops+ out of the wheel, installed Hermes has no package manager at all --+ exercise the real PEP 517 build path rather than reading TOML source.+ """+ result = _build_artifact("wheel", tmp_path, nix_build=True)++ assert result.returncode == 0, result.stderr+ artifacts = list(tmp_path.glob("hermes_agent-*.whl"))+ assert artifacts++ with zipfile.ZipFile(artifacts[0]) as wheel:+ shipped = set(wheel.namelist())++ missing = sorted({"pm/__init__.py", "pm/lock.json", "pm/artifact-mirror.json"} - shipped)+ assert not missing, f"wheel omits pm package files: {missing}"++ installed = tmp_path / "installed"+ with zipfile.ZipFile(artifacts[0]) as wheel:+ wheel.extractall(installed)+ check = subprocess.run(+ [sys.executable, "-I", "-S", "-c",+ "import sys; sys.path.insert(0, sys.argv[1]); "+ "from pm.artifact_mirror import mirror_url; print(mirror_url('0' * 64))", str(installed)],+ cwd=tmp_path, text=True, capture_output=True, timeout=30,+ )+ assert check.returncode == 0, check.stderr+ from pm.artifact_mirror import mirror_url+ assert check.stdout.strip() == mirror_url("0" * 64)diff --cc tests/tools/test_browser_use_cli.pyindex 42258da0f97,cfdef3bab65..54214e19c1c--- a/tests/tools/test_browser_use_cli.py+++ b/tests/tools/test_browser_use_cli.py@@@ -52,12 -67,8 +68,12 @@@ def _fake_supervisor_registry(monkeypatdef _fake_cli(tmp_path, body):"""Write an executable fake browser-use CLI and return its path."""script = tmp_path / "browser-use"- script.write_text("#!/bin/sh\n" + body)+ script.write_text("#!/bin/sh\n" + body, encoding="utf-8")script.chmod(script.stat().st_mode | stat.S_IXUSR)+ if os.name == "nt":+ wrapper = script.with_suffix(".cmd")+ wrapper.write_text(f'@"{shutil.which("bash")}" "{script.as_posix()}" %*\n')+ return str(wrapper)return str(script)diff --cc tools/bot_mode_dm.pyindex 8008060552b,8366a8a4fad..b27715005ae--- a/tools/bot_mode_dm.py+++ b/tools/bot_mode_dm.py@@@ -489,13 -497,16 +497,16 @@@ def _run_delivery(argv: list[str], dm_fif record is not None:return _wait_live_dm(record["profile_home"], record["delivery_id"])try:+ from tools.bot_relay import delivery_env++ env = delivery_env(author)with _delivery_lock(argv, stdin_file=stdin_file):if not stdin_file:- return _run_local_turn(argv, dm_file)+ return _run_local_turn(argv, dm_file, env=env)# Keep the file open until the transport exits; cleanup occurs# after subprocess.run returns, not merely after stdin reaches EOF.- with open(dm_file, "r", encoding="utf-8") as stream:+ with open(dm_file, "r", encoding="utf-8-sig") as stream:- return subprocess.run(argv, stdin=stream, check=False).returncode+ return subprocess.run(argv, stdin=stream, check=False, env=env).returncodefinally:_unlink_dm_file(dm_file)diff --cc tui_gateway/methods_tools.pyindex 2498b1af18f,3cf85f3ef14..cf1d30669d2--- a/tui_gateway/methods_tools.py+++ b/tui_gateway/methods_tools.py@@@ -444,13 -449,14 +450,14 @@@ def _(rid, params: dict) -> dicton_result=lambda r: _ok(rid, {"blocked": False, "code": r.returncode, "output": (_joined_output(r) or "(no output)")[:48_000]}),timeout_err=(5016, "cli.exec: timeout"), fail_code=5017,- env=hermes_subprocess_env(inherit_credentials=True))+ env=_compat.restore_ambient_pythonpath(hermes_subprocess_env(inherit_credentials=True)))- @_rpc("command.resolve", 5012)+ @_scoped_rpc("command.resolve", 5012)def _(rid, params: dict) -> dict:- r = _tools_mod("hermes_cli.commands").resolve_command(params.get("name", ""))- if r:+ commands = _tools_mod("hermes_cli.commands")+ r = commands.resolve_command(params.get("name", ""))+ if r and commands.command_available(r):return _ok(rid, {"canonical": r.name, "description": r.description, "category": r.category})return _err(rid, 4011, f"unknown command: {params.get('name')}")diff --cc website/sidebars.tsindex b124617d589,8eed7d79b14..f541d4049d8--- a/website/sidebars.ts+++ b/website/sidebars.ts@@@ -28,8 -28,8 +28,9 @@@ const sidebars: SidebarsConfig ='user-guide/bot-mode','user-guide/windows-native','user-guide/windows-wsl-quickstart',+ 'user-guide/switching-to-source','user-guide/configuration',+ 'user-guide/free-tier','user-guide/managed-scope','user-guide/configuring-models',{