Download src/shared/utils/machine.ts from automindy/fiemwl: direct link, hf CLI and curl.
- Browser
- Download file 655 Bytes
-
https://huggingface.co/spaces/automindy/fiemwl/resolve/main/src/shared/utils/machine.ts
- Command line
-
hf download hf://spaces/automindy/fiemwl/src/shared/utils/machine.ts
-
curl -L -o machine.ts https://huggingface.co/spaces/automindy/fiemwl/resolve/main/src/shared/utils/machine.ts
655 Bytes
| import { getConsistentMachineId } from "./machineId"; | |
| // Get machine ID using node-machine-id with salt | |
| export async function getMachineId() { | |
| return await getConsistentMachineId(); | |
| } | |
| // Keep sync functions for backward compatibility but make them no-ops | |
| // (Frontend sync is disabled - use backend sync instead) | |
| export async function syncProviderDataToCloud(cloudUrl) { | |
| console.log("Frontend sync is disabled. Use backend sync instead."); | |
| return Promise.resolve(true); | |
| } | |
| export async function getProvidersNeedingRefresh() { | |
| console.log("Frontend sync is disabled. Use backend sync instead."); | |
| return Promise.resolve([]); | |
| } | |