- {/* Tier 1: Status */}
+ {/* Tier 1: Status (template-agent model) */}
-
+
{/* Usage & cost — the CURRENT user's OWN lifetime usage (from /api/user/self),
not the admin-global aggregate. */}
- {t('Usage & cost')}
+ 费用与消耗
- {t('Recent deployments')}
+ 最近部署
-
- {t('Live code delivery runs')}
-
+
我的 Agent
@@ -286,7 +273,7 @@ export function CockpitView() {
) : recentDeployments.length === 0 ? (
- {t('No deployments yet. Trigger a run to populate the cockpit.')}
+ 还没有部署 Agent。去「部署 Sub Agent」部署一个。
) : (
@@ -317,7 +304,7 @@ export function CockpitView() {
>
- {t('Inspect')}
+ 详情
diff --git a/heicode/web/default/src/features/deploy-agent/deploy-agent-page.tsx b/heicode/web/default/src/features/deploy-agent/deploy-agent-page.tsx
index ed1d88c..156092c 100644
--- a/heicode/web/default/src/features/deploy-agent/deploy-agent-page.tsx
+++ b/heicode/web/default/src/features/deploy-agent/deploy-agent-page.tsx
@@ -138,12 +138,11 @@ export function DeploySubAgentPage() {
s.includes(id) ? s.filter((x) => x !== id) : [...s, id]
)
- // Only resource types the agent runtime currently supports (git / mysql /
- // postgres / azure-blob). vm & others are hidden until AM adds them.
+ // Resource types the agent runtime currently supports (git / mysql / postgres
+ // / azure-blob). Others (e.g. vm) are SHOWN but disabled, with an "暂不支持"
+ // hint, until AM adds support — don't hide the user's bindings.
const SUPPORTED_TYPES = new Set(['git', 'database', 'blob'])
- const resources = (resourcesQ.data ?? []).filter((r) =>
- SUPPORTED_TYPES.has(r.resource_type)
- )
+ const resources = resourcesQ.data ?? []
const templates = templatesQ.data ?? []
const canDeploy = Boolean(selectedTemplate) && !deploy.isPending
@@ -182,17 +181,22 @@ export function DeploySubAgentPage() {
{resources.map((r) => {
const Icon = RESOURCE_ICON[r.resource_type] ?? Database
- const on = selectedBindings.includes(r.id)
+ const supported = SUPPORTED_TYPES.has(r.resource_type)
+ const on = supported && selectedBindings.includes(r.id)
return (
)
})}