Repository navigation
feat(console): put Connect an AI Assistant where each person looks, and call it that - #30935
Conversation
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibz5UZefuR7CExjD9VX
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibz5UZefuR7CExjD9VX
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibz5UZefuR7CExjD9VX
📓 Docs Drift CheckThis PR changes 5 package(s): 7 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
What this run could not see
Coarse fallback — 46 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 6d5a209e34269add828f03a85455fafe0360f948 && git checkout 6d5a209e34269add828f03a85455fafe0360f948
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 33043bd8a2b34ed2efdc188f38173c1c44ca3f36 34e848007a6d58b2b4dc643a168dfcf15ed5d4c1 && git checkout -B drift-repro 33043bd8a2b34ed2efdc188f38173c1c44ca3f36 && git merge --no-ff 34e848007a6d58b2b4dc643a168dfcf15ed5d4c1
node scripts/docs-audit/affected-docs.mjs --json 33043bd8a2b34ed2efdc188f38173c1c44ca3f36
|
The Connect an AI Assistant helpers went in between that doc block and the function it documents; they now sit above it. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibz5UZefuR7CExjD9VX
|
domain:ui#2 · os-tesla · session_01L9qibw7DekEe3wx5f3zphf 席位核对 · ACCEPT · 2026-11-06T13:31Z · head
|
…added Main's #30935 gave the Account app a `grp_account_ai_assistant` group, renamed the Connect page and both of its nav entries to "Connect an AI Assistant", and moved the Setup entry behind System Overview. The zh-Hant bundle was cut before it, so the app-nav parity test found the new group unlabelled in zh-Hant. zh-Hant now labels the group 「AI 助理」 (the wording plugin-security's zh-Hant bundle already uses for the MCP assistant), reads the page and both entries as 「連接 AI 助理」, and records the new source digests, so none of the four leaves falls back to English. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cya5ej5GQV86RPbRPK
Requested by Tesla · project thread
Part of #30895: Expected 1 (avatar menu item), 4 (Account group of its own, Setup top group) and 5 (rename). Expected 2 (Home card) and 3 (first-run checklist row) need "has this person connected anything", which #30894 provides; they follow in a second PR.
Clause-②: no
Metadata-protocol: none
维护者速读
page/connect_agent与菜单项 id 不变,书签照用;可见范围不变(系统设置两组都要manage_platform_settings);关闭 MCP 时三个入口都不出现。回滚即 revert 本 PR。packages/mcp/src/connect-ui.ts(两个菜单贡献的目标组),packages/platform-objects/src/apps/account.app.ts(新的「AI 助手」空槽组),ui/packages/app-shell/src/layout/AppHeader.tsx(头像菜单项及其按页面是否下发的门控)。34e84800的 diff 复核:38 个文件、+299 / −104,无受治理路径。改名只动标签与页头,页面地址page/connect_agent与菜单项 id 不变;账户应用新增空槽组grp_account_ai_assistant(默认展开),系统设置入口移入group_overview(同一manage_platform_settings门槛,可见范围不变);头像菜单项仅在下发的账户应用导航里有该页时出现,关闭 MCP 时三个入口都不出现。席位核对时发现新增声明把isTypingTarget的文档注释隔开,已在34e84800改回,此外无改动。席位授权的文案扩面(mcp、runtime、五个文档页)只改名称与路径字样。CI 65 项全绿,Clause-② no,未改packages/spec/src,不欠契约复审。同意落地。Surface extended by the seat (wording only, the path and name words this move made false):
packages/mcp/src/plugin.ts,packages/runtime/src/domains/keys.ts,packages/mcp/server.json,content/docs/ai/connect-mcp.mdx,content/docs/api/index.mdx,content/docs/getting-started/build-with-claude-code.mdx,content/docs/ai/agents.mdx,content/docs/deployment/environment-variables.mdx,packages/mcp/README.md. Also comment-only:packages/cloud-connection/src/cloud-connection-ui.tsandpackages/services/service-automation/src/connector-credentials-ui.tslist the Integrations group's other priorities in their headers and no longer name Connect an AI Assistant there.What changes
connect_agentpage, itspage:headertitle and both nav entries are called Connect an AI Assistant. The platform-objects bundles carry it in all four locales (连接 AI 助手,AI アシスタントを接続,Conectar un asistente de IA):apps.account.navigation.nav_connect_agent,apps.setup.navigation.nav_connect_agentandpages.connect_agent.label. The three re-translated leaves record their new source digests in each locale'ssource-hashes.ts, so none is served as stale.ACCOUNT_APPdeclaresgrp_account_ai_assistant(AI Assistant,expanded: true,children: []) between Inbox and Security, and the MCP bundle's account contribution targets it instead ofgrp_account_developer. The group label is translated in all four locales. The slot is empty in the app definition, so with MCP off the nav filter drops it, as it drops Setup's empty slots.group_overview(priority 110, behind System Overview at 100) instead ofgroup_integrations. Both groups carrymanage_platform_settings, so who sees the entry is unchanged.AppHeaderdraws a Connect an AI Assistant item under Profile. It opens/apps/ACCOUNT_ADDRESS/page/connect_agent, where the segment is the Account app's one address (appAddressSegment). The item is drawn only while the served Account app's navigation carries apageentry forconnect_agent, so it lives and dies with the MCP bundle like the two menu entries. The label isuser.connectAiAssistant, added to all ten console locales.plugin.ts), the API-key session refusal (keys.ts),server.json, the mcp README and five docs pages name the new page and paths. Nothing else on those pages changes.Why
Connecting an AI client is something every person does for themselves (each call runs as the caller), and the maintainer called it the platform's most central feature. On
maina member had to open the collapsed Developer group in Account to find it, and an administrator found it near the bottom of Setup among datasource and connector screens. "Agent" also reads as one of the agents built in Studio.Tests
packages/mcp/src/connect-agent-account-nav.test.ts: the account contribution targetsgrp_account_ai_assistant; the setup contribution targetsgroup_overviewat priority 110; new case: the page label, thepage:headertitle and both entries are Connect an AI Assistant.packages/cli/test/connect-agent-both-halves-wire.pin.test.ts(the composed wire pin): a permissionless caller getsgrp_account_ai_assistant=['nav_connect_agent']and Developer back to its two authored entries, 13 account nav ids; the admin's Setup hasgroup_overview=['nav_system_overview', 'nav_connect_agent']. The Setup count moves 32 to 31 becausegroup_integrationsheld only this entry in that composition and is now dropped as empty; the anti-widening control still compares the admin tree with and without the account half.packages/cli/test/setup-integrations-order.pin.test.ts: the Integrations tiers dropnav_connect_agent. The MCP bundle is still read, so the "nothing contributes into the group that this pin does not order" check reds if the entry moves back.AppHeader.hiddenAppAddress-29024.test.tsx(the avatar-menu harness with a settable app list), new top-level describe, 4 cases: opens/apps/com.objectstack.account/page/connect_agent; is labelled Connect an AI Assistant; draws nothing when the served Account app lacks the page; draws nothing when no Account app is served.Ablation (head 0264ecd)
node scripts/ablation-replace.mjsonAppHeader.tsx, anchoraccountApp && navCarriesPage((accountApp as any).navigation, CONNECT_ASSISTANT_PAGE)replaced byaccountApp && /* ABLATED */ true(the page gate removed), againstAppHeader.hiddenAppAddress-29024.test.tsx: anchor 1 to 0,1 failed | 7 passed(the MCP-off case red), thenok restored: blob == HEAD.Acceptance notes
Measured live on
main7d9682ffand on this branch (showcase,objectstack dev --fresh, Console fromui/src via Vite), asadmin@objectos.aiand as a member created by the admin (chen@example.test, no Setup access):In zh the avatar item, the Account group and entry, the Setup entry and the page header all read 连接 AI 助手 / AI 助手. The showcase item count (45) differs from the card's 40 because the showcase composes more Setup entries.
The Console's widget registry label in
ConnectAgentWidget.tsx(label: 'Connect an Agent', a palette label for themcp:connect-agenttype) is left as it is: the order puts that file off limits while The OAuth consent page promises you can revoke access from your account settings, but no page lists the AI assistants you authorized #30894 works there. The Integrations page's own "Connect an AI agent (MCP)" card (AgentConnectSection, console i18nconnectSectionand friends) is a different page and keeps its copy.Resolver and extractor test fixtures that use "Connect an Agent" / 连接智能体 as sample data (
packages/speci18n-resolver tests,packages/resttests,packages/clii18n-extract test, thecheck-app-nav-i18nself-test fixture) are left unchanged: they test the mechanism, not the shipped label.Released
CHANGELOG.mdentries andcontent/docs/releases/keep the old name, as release-owned history.Verification
Local gates and tests (head 0264ecd)
Derived with
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackagainst this diff, each run with stdin closed; reconciled with--ran: 100 derived, 100 run, 0 NOT-MEASURED, 0 UNRUN.check-plugin-teardown-shape.mjs --self-testfirst exited 3 because the shallow clone lacked its pinned commit; aftergit fetch origin 621a487607881c66b2899b7e3477115229a156b4 --depth=1it exits 0 (48 cases). Outside the derived list:pnpm check:app-nav-i18n(its script's comments changed) exit 0,setup: 56 merged nav id(s), account: 13;pnpm check:changeset-fixedexit 0;uicheck:new-line-citations0 new.Tests (on 0264ecd):
pnpm --filter @objectstack/mcp --filter @objectstack/platform-objects test: mcp 56 files / 681 tests passed; platform-objects 117 files / 1591 tests passed.pnpm --dir ui exec vitest run packages/i18n/ packages/app-shell/src/layout/: 237 files passed, 2431 tests passed, 13 skipped.packages/cli:connect-agent-both-halves-wire.pin.test.ts,setup-integrations-order.pin.test.ts,platform-page-i18n-parity.test.ts,i18n-extract.test.ts: 4 files passed.packages/runtime:keys-mint-interactive-session.pin.test.ts,keys-actions-method-not-allowed-allow.test.ts: 21 tests passed.typecheckfor@objectstack/mcp,platform-objects,runtime,cloud-connection,service-automation,cli, andtype-checkfor@object-ui/i18n,@object-ui/app-shell: all exit 0.