claude-code streaming chat, desktop remote viewer, new-automation route, tiktok task v4, misc fixes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-02 20:00:45 +00:00
co-authored by Claude Opus 4.6
parent 0068244356
commit 40a9768cb3
91 changed files with 17872 additions and 85 deletions
+20 -6
View File
@@ -29,13 +29,27 @@ async function cleanOldCacheDirs(userDataDir: string) {
}
}
async function syncOnboarding(homeDir: string) {
const target = join(homeDir, 'Onboarding');
if (!existsSync(ONBOARDING_SEED)) return;
await mkdir(target, { recursive: true });
// Copy any files from seed that are missing in the user's dir
const seedEntries = await readdir(ONBOARDING_SEED, { withFileTypes: true });
for (const entry of seedEntries) {
const dest = join(target, entry.name);
if (existsSync(dest)) continue;
await cp(join(ONBOARDING_SEED, entry.name), dest, { recursive: true });
}
}
async function seedHomeDir(homeDir: string) {
for (const dir of DEFAULT_HOME_DIRS) {
const target = join(homeDir, dir);
if (existsSync(target)) continue;
if (dir === 'Onboarding' && existsSync(ONBOARDING_SEED)) {
await cp(ONBOARDING_SEED, target, { recursive: true });
} else {
if (dir === 'Onboarding') {
await syncOnboarding(homeDir);
} else if (!existsSync(target)) {
await mkdir(target, { recursive: true });
}
}
@@ -905,8 +919,8 @@ router.post('/download-video', async (ctx) => {
const absPath = resolveUserPath(rootDir, path);
await mkdir(absPath, { recursive: true });
const cookiesPath = join(DATA_PATH, '..', 'yt-dlp-cookies.txt');
const args = ['yt-dlp', '--js-runtimes', 'bun', '--cookies', cookiesPath, '-o', '%(title)s.%(ext)s'];
const ytdlp = Bun.which('yt-dlp') ?? `${process.env.HOME}/.local/bin/yt-dlp`;
const args = [ytdlp, '--remote-components', 'ejs:github', '--js-runtimes', 'node', '--cookies-from-browser', 'brave', '-o', '%(title)s.%(ext)s'];
if (audioOnly) args.push('-x', '--audio-format', 'mp3');
args.push(url);