Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions desktop/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion desktop/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hugagent-desktop",
"version": "0.2.12",
"version": "0.2.13",
"private": true,
"description": "HugAgentOS 桌面客户端(远程连接 + Windows/macOS/Linux 离线本机服务)",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion desktop/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hugagent-desktop"
version = "0.2.12"
version = "0.2.13"
description = "HugAgentOS桌面客户端"
edition = "2021"
rust-version = "1.77"
Expand Down
2 changes: 1 addition & 1 deletion desktop/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "HugAgentOS",
"version": "0.2.12",
"version": "0.2.13",
"identifier": "com.hugagent.desktop",
"build": {
"frontendDist": "../../src/frontend/dist",
Expand Down
5 changes: 5 additions & 0 deletions src/backend/api/routes/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
("integrations", "router"),
("channels", "router"),
("meta", "router"),
# 个人进化的证据面与偏好开关(结算查询 / prefs / 个人候选审批)。CE 完整
# 可用;控制面(管理员审批/发布)在 EE。此前 CE 漏挂本路由,首启向导的
# PATCH /v1/evolution/prefs 落到桌面本机 server 的 GET catch-all 上,
# 「启动进化」直接 405。
("evolution", "router"),
("sites", "router"),
("desktop", "router"),
("local", "router"),
Expand Down
28 changes: 28 additions & 0 deletions src/backend/tests/ce_release/test_ce_release_regressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,34 @@ def test_ce_registers_all_local_auth_routes():
} <= actual


def test_ce_registers_personal_evolution_routes():
"""The evolution evidence plane is a CE capability, and it must be mounted.

When this router is missing, the first-run wizard's
``PATCH /v1/evolution/prefs`` falls through to the desktop local server's
GET-only SPA catch-all and surfaces as a bare 405 — the whole「启动进化」
step becomes a dead end.
"""
from api.app import app

operations = {"get", "post", "put", "patch", "delete"}
actual = {
(method.upper(), path)
for path, path_item in app.openapi()["paths"].items()
for method in path_item
if method in operations
}

assert {
("GET", "/v1/evolution/prefs"),
("PATCH", "/v1/evolution/prefs"),
("GET", "/v1/evolution/settings"),
("PATCH", "/v1/evolution/settings"),
("GET", "/v1/evolution/my-candidates"),
("POST", "/v1/evolution/my-cycle"),
} <= actual


def test_ce_self_service_skill_and_mcp_do_not_import_admin_routes(
initialized_ce_database,
monkeypatch,
Expand Down
Loading