feat: implement service management API for VLM control

- Add /api/v1/mbe/health endpoint for status checks
- Add /api/v2/service/start to start llama-server
- Add /api/v2/service/stop to stop llama-server
- Use TCP connection test for port detection (more reliable than lsof)
- Add ps aux fallback for PID detection
- Implement structured bilingual VLM tags
- Add VLM integration documentation for Studio team

Endpoints tested and working with Momentry Studio AdminView UI.
This commit is contained in:
Accusys
2026-10-24 02:37:53 +08:00
parent d14cd9f3de
commit c151b49334
33 changed files with 3175 additions and 229 deletions
+23
View File
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<title>Monitor Test</title>
</head>
<body>
<h1>Monitor API Test</h1>
<pre id="output">Loading...</pre>
<script>
async function test() {
try {
const res = await fetch('/api/v1/monitor/running_jobs');
const data = await res.json();
document.getElementById('output').textContent = JSON.stringify(data, null, 2);
} catch (e) {
document.getElementById('output').textContent = 'Error: ' + e.message;
}
}
test();
setInterval(test, 5000);
</script>
</body>
</html>