diff --git a/apps/admin/src/features/workspace/WorkspacePage.tsx b/apps/admin/src/features/workspace/WorkspacePage.tsx
index 887870d..86f72ce 100644
--- a/apps/admin/src/features/workspace/WorkspacePage.tsx
+++ b/apps/admin/src/features/workspace/WorkspacePage.tsx
@@ -14,7 +14,11 @@ import {
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { createApiClient } from "../../lib/api.js";
import { ApiClientError } from "@personal-brand/api-client";
-import type { BrandFieldDefinition, BrandModule } from "@personal-brand/api-client";
+import type {
+ BrandFieldDefinition,
+ BrandModule,
+ PublicWorkspace,
+} from "@personal-brand/api-client";
import { useState } from "react";
import { AdminPageHeader } from "../../components/AdminPageHeader.js";
import { MutationError } from "../../components/QueryState.js";
@@ -30,6 +34,10 @@ export function WorkspacePage() {
queryKey: ["admin-workspace"],
queryFn: () => client.getAdminWorkspace(),
});
+ const runtimeQuery = useQuery({
+ queryKey: ["public-runtime-workspace"],
+ queryFn: () => client.getPublicWorkspace(),
+ });
const install = useMutation({
mutationFn: (key: "personal" | "food") => client.installAdminTemplate(key),
onSuccess: () => {
@@ -129,6 +137,29 @@ export function WorkspacePage() {
title="模板与设置"
description="用行业模板组织业务表达,同时保留个人品牌定位、信任内容和合作方式的长期扩展空间。"
/>
+
+ {runtimeQuery.isError ? (
+ 公开运行时工作空间暂时无法加载。
+ ) : (
+
+
+ Schema {runtimeQuery.data?.schemaVersion ?? "-"}
+ 模块 {runtimeQuery.data?.runtimeModules?.length ?? 0}
+ 能力 {runtimeQuery.data?.runtimeCapabilities?.length ?? 0}
+
+ 公开业务{" "}
+ {runtimeQuery.data?.runtimeOfferings?.length ??
+ runtimeQuery.data?.offerings?.length ??
+ 0}
+
+
+
+ 小程序和后台预览消费同一份 Runtime Workspace;模板 key
+ 只用于安装和版本管理,不作为客户端业务分支。
+
+
+ )}
+