docs(接口): 328 路由全量目录、存客宝对接图与 OpenAPI 重导出

补齐 5、接口 全量索引、BFF 映射表、分类浏览 HTML 与冒烟脚本;同步 php/ts SDK AI Brain 四方法;openapi 315 paths 从 main.py 导出。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Manus AI
2026-05-24 09:31:13 +08:00
parent 77f4e1796a
commit becd65bc46
25 changed files with 22813 additions and 11260 deletions

View File

@@ -367,6 +367,44 @@ class WorkPhoneClient
{
return $this->post("/api/v3/agent/stop/{$deviceId}");
}
/**
* 获取设备 AI Brain 状态
*/
public function getAIBrainStatus(string $deviceId): array
{
return $this->get("/api/v3/devices/{$deviceId}/ai/status");
}
/**
* 推送 AI 任务(排队执行)
*/
public function pushAITask(string $deviceId, string $instruction, int $priority = 5): array
{
return $this->post("/api/v3/devices/{$deviceId}/ai/task", [
'instruction' => $instruction,
'priority' => $priority,
]);
}
/**
* 推送 AI 常驻指令
*/
public function pushAIStandingOrder(string $deviceId, string $order): array
{
return $this->post("/api/v3/devices/{$deviceId}/ai/standing-order", [
'order' => $order,
]);
}
/**
* 同步执行 AI 自然语言任务
*/
public function executeAITask(string $deviceId, string $task, int $timeout = 60): array
{
$query = http_build_query(['task' => $task, 'timeout' => $timeout]);
return $this->post("/api/v3/devices/{$deviceId}/ai/execute?{$query}");
}
// ========== 设备管理接口 ==========