feat(device-manager): add full device profile workspace

This commit is contained in:
Codex
2026-08-13 11:38:26 +03:00
parent bbb50e06b4
commit 19f0d97e23
8 changed files with 1416 additions and 15 deletions
@@ -140,7 +140,9 @@ export async function createConfiguredDeviceManagerServer({ env = process.env }
if (String(env.NODE_ENV || "").toLowerCase() === "production") {
throw new Error("device_manager_local_preview_forbidden");
}
coreClient = createLocalPreviewDeviceCore();
coreClient = createLocalPreviewDeviceCore({
fixture: String(env.NODEDC_DEVICE_MANAGER_PREVIEW_FIXTURE || "").trim() || null,
});
} else {
const tokenFile = String(env.NODEDC_DEVICE_CORE_TOKEN_FILE || "").trim();
if (!tokenFile) throw new Error("device_core_token_file_required");