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
2 changes: 1 addition & 1 deletion backend/app/api/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ async def _execute_tool(tool_name: str, arguments: dict) -> str:
return json.dumps({"skills": skills[:20], "total": len(skills)})
except (ImportError, AttributeError):
return json.dumps({"skills": [
{"id": "ecosystem-audit", "name": "Ecosystem Audit", "category": "system"},
{"id": "backup", "name": "Backup", "category": "maintenance"},
{"id": "vault_discovery", "name": "Vault Discovery", "category": "knowledge"},
{"id": "workflow_audit", "name": "Workflow Audit", "category": "workflow"},
], "total": 3, "source": "samples"})
Expand Down
11 changes: 4 additions & 7 deletions backend/app/api/dev_layer_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,10 @@ def _get_capabilities_hud() -> dict:


_QUICK_ACTIONS: list[dict] = [
{"id": "ecosystem-audit", "label": "Run Ecosystem Audit", "icon": "monitoring"},
{"id": "system-health", "label": "System Health Check", "icon": "favorite"},
{"id": "binder-refresh", "label": "Refresh Binder Context", "icon": "folder"},
{"id": "spool-prune", "label": "Prune Spool Logs", "icon": "cleaning_services"},
{"id": "vault-sync", "label": "Sync Vault", "icon": "sync"},
{"id": "tasker-sync", "label": "Sync Tasker", "icon": "assignment"},
{"id": "snapshot", "label": "Take Snapshot", "icon": "camera"},
{
"id": "system-health", "label": "System Health Check",
"icon": "favorite", "method": "GET", "path": "/api/health/full",
},
]


Expand Down
22 changes: 0 additions & 22 deletions backend/app/api/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,28 +359,6 @@ def register_routes(app: web.Application) -> None:
app.router.add_patch("/api/binder/update", handle_binder_update)
app.router.add_patch("/api/binder/score", handle_binder_score)

# ── Autonomy Engine ────────────────────────────────────────────
try:
import json
from pathlib import Path

from aiohttp import web

from app.core.settings import settings

STATE_FILE = settings.logs_dir / "autonomy_state.json"

async def handle_autonomy_state(_request: web.Request) -> web.Response:
"""GET /api/autonomy/state — return last autonomy check state."""
if STATE_FILE.exists():
return web.json_response(json.loads(STATE_FILE.read_text()))
return web.json_response({"healthy": False, "error": "No autonomy data yet"})

app.router.add_get("/api/autonomy/state", handle_autonomy_state)
log.debug("Autonomy state endpoint registered")
except Exception as e:
log.debug("Autonomy engine not available: %s", e)

register_surface_routes(app)
register_snack_routes(app)
register_container_routes(app)
Expand Down
46 changes: 0 additions & 46 deletions backend/app/mcp/mcp_bridge/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,6 @@ async function apiPost(
// ─── Tool definitions ─────────────────────────────────────────────

const TOOLS = [
{
name: "ucore_ecosystem_audit",
description:
"Run a full uCore ecosystem health audit. Returns health percentage, working/broken/orphaned counts across all 54 skills, surfaces, MCP servers, and tests.",
inputSchema: {
type: "object",
properties: {},
required: [],
},
},
{
name: "ucore_list_skills",
description:
Expand Down Expand Up @@ -146,16 +136,6 @@ const TOOLS = [
required: ["query"],
},
},
{
name: "ucore_autonomy_state",
description:
"Get the latest autonomy engine health state (from the overnight cron). Includes overall health %, Ollama status, and last audit timestamp.",
inputSchema: {
type: "object",
properties: {},
required: [],
},
},
{
name: "ucore_list_secrets",
description:
Expand Down Expand Up @@ -252,20 +232,6 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {

try {
switch (name) {
case "ucore_ecosystem_audit": {
const data = await apiPost("/api/skills/ecosystem-audit/run", {
action: "assess",
});
return {
content: [
{
type: "text",
text: JSON.stringify(data, null, 2),
},
],
};
}

case "ucore_list_skills": {
const search = args?.search as string | undefined;
let data = await apiGet("/api/skills");
Expand Down Expand Up @@ -360,18 +326,6 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
};
}

case "ucore_autonomy_state": {
const data = await apiGet("/api/autonomy/state");
return {
content: [
{
type: "text",
text: JSON.stringify(data, null, 2),
},
],
};
}

case "ucore_list_secrets": {
const data = await apiGet("/api/secrets");
return {
Expand Down
202 changes: 0 additions & 202 deletions backend/app/services/autonomy/autonomy_engine.py

This file was deleted.

Loading
Loading