feat: surface codex thread collaboration capabilities

This commit is contained in:
AI Bot
2026-06-04 14:34:34 +08:00
parent de9f85bd21
commit 5bf2216cb0
12 changed files with 359 additions and 121 deletions

View File

@@ -124,6 +124,9 @@ export function buildDeviceWorkspaceDetailCards(workspace: DeviceWorkspaceView)
const codexThreadSummary = objectFromMetadata(codexAppServerMetadata.threadSummary);
const codexThreadTurnSummary = objectFromMetadata(codexAppServerMetadata.threadTurnSummary);
const codexThreadActionSummary = objectFromMetadata(codexAppServerMetadata.threadActionSummary);
const codexThreadCollaborationSummary = objectFromMetadata(
codexAppServerMetadata.threadCollaborationSummary,
);
const codexPluginGovernanceSummary = objectFromMetadata(codexAppServerMetadata.pluginGovernanceSummary);
const codexAccountGovernanceSummary = objectFromMetadata(codexAppServerMetadata.accountGovernanceSummary);
const codexConfigGovernanceSummary = objectFromMetadata(codexAppServerMetadata.configGovernanceSummary);
@@ -211,6 +214,13 @@ export function buildDeviceWorkspaceDetailCards(workspace: DeviceWorkspaceView)
)} 项 · 生命周期 ${numberFromMetadata(codexThreadActionSummary.lifecycleActionCount)} 项 · 活跃干预 ${numberFromMetadata(
codexThreadActionSummary.liveTurnActionCount,
)} 项 · ${codexThreadActionSummary.shellActionAvailable === true ? "Shell 可用" : "Shell 不可用"}`,
codexThreadCollaboration: `线程协作:${
codexThreadCollaborationSummary.bossBrokerAvailable === true ? "Boss Broker 可用" : "Boss Broker 不可用"
} · ${
codexThreadCollaborationSummary.collabToolCallHandlerAvailable === true ? "协作事件可处理" : "协作事件不可处理"
} · ${numberFromMetadata(codexThreadCollaborationSummary.collaborationModeCount)} 种模式 · ${
codexThreadCollaborationSummary.directThreadChatSupported === true ? "原生私聊" : "非原生私聊"
}`,
codexPluginGovernance: `插件治理:${numberFromMetadata(
codexPluginGovernanceSummary.actionCount,
)} 项 · 安装/卸载 ${numberFromMetadata(codexPluginGovernanceSummary.lifecycleActionCount)} 项 · 共享 ${numberFromMetadata(
@@ -958,6 +968,9 @@ export function DeviceEditorCard({
<div className="rounded-2xl bg-[#F7F8FA] px-3 py-2">
{detailCards.capabilities.items.codexThreadActions}
</div>
<div className="rounded-2xl bg-[#F7F8FA] px-3 py-2">
{detailCards.capabilities.items.codexThreadCollaboration}
</div>
<div className="rounded-2xl bg-[#F7F8FA] px-3 py-2">
{detailCards.capabilities.items.codexPluginGovernance}
</div>