(outputDir: string, p: Partial<DeployConfig> = {})
| 51 | } |
| 52 | function cfgOf(outputDir: string, p: Partial<DeployConfig> = {}): DeployConfig { |
| 53 | return { llmKeys: {}, outputDir, force: false, logLevel: "info", hardware: {}, mqtt: {}, llmModels: {}, mlModels: {}, cameras: {}, ...p }; |
| 54 | } |
| 55 | |
| 56 | const tmp = () => fs.mkdtemp(path.join(os.tmpdir(), "fhwrite-")); |
| 57 | const names = async (dir: string) => (await fs.readdir(dir)).sort(); |
| 58 | const mode = async (file: string) => (await fs.stat(file)).mode & 0o777; |