feat: expose codex fs command governance
This commit is contained in:
@@ -127,6 +127,8 @@ export function buildDeviceWorkspaceDetailCards(workspace: DeviceWorkspaceView)
|
||||
const codexPluginGovernanceSummary = objectFromMetadata(codexAppServerMetadata.pluginGovernanceSummary);
|
||||
const codexAccountGovernanceSummary = objectFromMetadata(codexAppServerMetadata.accountGovernanceSummary);
|
||||
const codexConfigGovernanceSummary = objectFromMetadata(codexAppServerMetadata.configGovernanceSummary);
|
||||
const codexFileSystemGovernanceSummary = objectFromMetadata(codexAppServerMetadata.fileSystemGovernanceSummary);
|
||||
const codexCommandSessionSummary = objectFromMetadata(codexAppServerMetadata.commandSessionSummary);
|
||||
|
||||
return {
|
||||
capabilities: {
|
||||
@@ -201,6 +203,16 @@ export function buildDeviceWorkspaceDetailCards(workspace: DeviceWorkspaceView)
|
||||
)} 项 · 写入 ${numberFromMetadata(codexConfigGovernanceSummary.writeActionCount)} 项 · 重载 ${numberFromMetadata(
|
||||
codexConfigGovernanceSummary.reloadActionCount,
|
||||
)} 项 · ${codexConfigGovernanceSummary.readActionAvailable === true ? "读取可用" : "读取不可用"}`,
|
||||
codexFileSystemGovernance: `文件治理:${numberFromMetadata(
|
||||
codexFileSystemGovernanceSummary.actionCount,
|
||||
)} 项 · 读 ${numberFromMetadata(codexFileSystemGovernanceSummary.readActionCount)} 项 · 写 ${numberFromMetadata(
|
||||
codexFileSystemGovernanceSummary.writeActionCount,
|
||||
)} 项 · 监听 ${numberFromMetadata(codexFileSystemGovernanceSummary.watchActionCount)} 项`,
|
||||
codexCommandSession: `命令会话:${numberFromMetadata(
|
||||
codexCommandSessionSummary.actionCount,
|
||||
)} 项 · 控制 ${numberFromMetadata(codexCommandSessionSummary.controlActionCount)} 项 · ${
|
||||
codexCommandSessionSummary.streamAvailable === true ? "输出流可用" : "输出流不可用"
|
||||
} · ${codexCommandSessionSummary.terminationAvailable === true ? "可终止" : "不可终止"}`,
|
||||
preferredExecutionMode: `默认执行模式:${
|
||||
selectedDevice?.preferredExecutionMode === "gui"
|
||||
? "GUI"
|
||||
@@ -865,6 +877,12 @@ export function DeviceEditorCard({
|
||||
<div className="rounded-2xl bg-[#F7F8FA] px-3 py-2">
|
||||
{detailCards.capabilities.items.codexConfigGovernance}
|
||||
</div>
|
||||
<div className="rounded-2xl bg-[#F7F8FA] px-3 py-2">
|
||||
{detailCards.capabilities.items.codexFileSystemGovernance}
|
||||
</div>
|
||||
<div className="rounded-2xl bg-[#F7F8FA] px-3 py-2">
|
||||
{detailCards.capabilities.items.codexCommandSession}
|
||||
</div>
|
||||
<div className="rounded-2xl bg-[#F7F8FA] px-3 py-2">
|
||||
{detailCards.capabilities.items.preferredExecutionMode}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user