Full review of the template-agent code surfaced and fixed: - [frontend, critical] deploy/stop/delete treated HTTP-200-with-success:false as success (backend agentError returns 200 per new-api convention) -> a failed call wrongly toasted success. Added okOrThrow() that inspects the envelope and throws the server (or a friendly Chinese) message so onError fires. - [frontend] "我的 Agent" showed the raw template key (architect) instead of the Chinese name; now resolves name via the templates list. - [backend] ensureAgentTemplatesSeeded consumed sync.Once even when model.DB was nil (would permanently skip seeding) -> DB check moved outside the Once. - [backend] AdminUpdateAgentTemplate could wipe name_zh/definition with empty values -> guard those critical fields. - [security] warn when starting an agent with secret-bearing env over a non-HTTPS AM URL (secrets must not transit the network in clear). Go + frontend build/tests green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
29 lines
1.4 KiB
HTML
Vendored
29 lines
1.4 KiB
HTML
Vendored
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" type="image/svg+xml" href="/heicode-logo.svg?v=h-glass-2" />
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/logo.png?v=h-glass-2" />
|
|
<link rel="shortcut icon" href="/favicon.ico?v=h-glass-2" />
|
|
<link rel="apple-touch-icon" href="/logo.png?v=h-glass-2" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<!-- Primary Meta Tags -->
|
|
<title>Heicode Manager</title>
|
|
<meta name="title" content="Heicode Manager" />
|
|
<meta
|
|
name="description"
|
|
content="Heicode Manager — multi-tenant control plane for Agent deployments, events and audit."
|
|
/>
|
|
<meta property="og:title" content="Heicode Manager" />
|
|
<meta property="og:image" content="/logo.png?v=h-glass-2" />
|
|
<meta property="og:type" content="website" />
|
|
|
|
<meta name="theme-color" content="#7B6BE3" />
|
|
<link rel="icon" href="/favicon.ico"><script defer src="/static/js/vendor-radix.829c7e3fad.js"></script><script defer src="/static/js/vendor-tanstack.632dbe8908.js"></script><script defer src="/static/js/lib-react.5c8909c28c.js"></script><script defer src="/static/js/6374.bc21d8b214.js"></script><script defer src="/static/js/index.deee68f4fa.js"></script><link href="/static/css/index.592272f49e.css" rel="stylesheet"></head>
|
|
|
|
<body>
|
|
<div id="root"></div>
|
|
</body>
|
|
</html>
|