mirror of
https://github.com/hanzoai/bot.git
synced 2026-11-01 18:02:28 +00:00
Squash merge of 1,462 upstream commits with openclaw→hanzo-bot naming transforms applied. Conflicts resolved favoring our main branch to preserve existing customizations. Key upstream additions: - iOS Security Stack (concurrency locks, runtime guards, TTS fallback) - Discord CDN hostname allowlisting for SSRF protection - Discord mention handling improvements - Various bug fixes and stability improvements
14 lines
513 B
TypeScript
14 lines
513 B
TypeScript
import fs from "node:fs/promises";
|
|
import path from "node:path";
|
|
|
|
export async function createWindowsCmdShimFixture(params: {
|
|
shimPath: string;
|
|
scriptPath: string;
|
|
shimLine: string;
|
|
}): Promise<void> {
|
|
await fs.mkdir(path.dirname(params.scriptPath), { recursive: true });
|
|
await fs.mkdir(path.dirname(params.shimPath), { recursive: true });
|
|
await fs.writeFile(params.scriptPath, "module.exports = {};\n", "utf8");
|
|
await fs.writeFile(params.shimPath, `@echo off\r\n${params.shimLine}\r\n`, "utf8");
|
|
}
|