feat: queue codex remote control actions

This commit is contained in:
AI Bot
2026-06-04 17:12:23 +08:00
parent b93bc22160
commit 025e749618
14 changed files with 958 additions and 500 deletions

View File

@@ -28,11 +28,12 @@ test("independent Boss admin web app uses the backoffice BFF with cookie session
assert.match(apiSource, /\/api\/v1\/admin\/risks\/actions/);
assert.match(apiSource, /\/api\/v1\/admin\/skills\/requests/);
assert.match(apiSource, /\/api\/v1\/admin\/backups/);
assert.match(apiSource, /\/api\/v1\/devices\/\$\{encodeURIComponent\(deviceId\)\}\/codex-remote-control/);
assert.match(apiSource, /credentials:\s*["']include["']/);
assert.match(apiSource, /menuTree/);
assert.match(apiSource, /tenants/);
assert.match(apiSource, /resourceGroups/);
for (const fn of ["postAdminAccess", "postRiskAction", "postSkillLifecycleRequest", "fetchAdminBackups", "createAdminBackup", "restoreAdminBackup"]) {
for (const fn of ["postAdminAccess", "postRiskAction", "postSkillLifecycleRequest", "postDeviceCodexRemoteControl", "fetchAdminBackups", "createAdminBackup", "restoreAdminBackup"]) {
assert.match(apiSource, new RegExp(`function\\s+${fn}|const\\s+${fn}`));
}
for (const action of ["create_snapshot", "restore_snapshot"]) {
@@ -103,6 +104,8 @@ test("independent Boss admin web app exposes management actions instead of read
"关闭风险",
"创建工单",
"创建 Skill 请求",
"启动远控",
"停止远控",
"创建状态快照",
"恢复到此快照",
"快照清单",
@@ -128,6 +131,7 @@ test("independent Boss admin web app exposes management actions instead of read
assert.match(appSource, /loadBackupSnapshots/);
assert.match(appSource, /createAdminBackup/);
assert.match(appSource, /restoreAdminBackup/);
assert.match(appSource, /handleCodexRemoteControl/);
});
test("root Next project isolates the independent Vue admin workspace", async () => {