📦 deps(thirdparty): update snapshots

This commit is contained in:
ci[bot]
2026-07-04 16:04:20 +00:00
parent b40381458b
commit 9dc81e18a7
194 changed files with 3039 additions and 755 deletions
+8 -2
View File
@@ -1,3 +1,4 @@
import { existsSync } from 'node:fs';
import { join, dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
import chalk from 'chalk';
@@ -19,8 +20,13 @@ import {
} from '../utils/github.js';
const __dirname = dirname(fileURLToPath(import.meta.url));
// From dist/index.js -> ../assets (one level up to cli/, then assets/)
const ASSETS_DIR = join(__dirname, '..', 'assets');
const ASSETS_CANDIDATES = [
// Bun bundle: dist/index.js
join(__dirname, '..', 'assets'),
// TypeScript fallback: dist/commands/init.js
join(__dirname, '..', '..', 'assets'),
];
const ASSETS_DIR = ASSETS_CANDIDATES.find(path => existsSync(path)) ?? ASSETS_CANDIDATES[0];
interface InitOptions {
ai?: AIType;
+8 -2
View File
@@ -1,11 +1,17 @@
import { existsSync } from 'node:fs';
import { readFile, mkdir, writeFile, cp, access, readdir, lstat, rm } from 'node:fs/promises';
import { join, dirname } from 'node:path';
import { homedir } from 'node:os';
import { fileURLToPath } from 'node:url';
const __dirname = dirname(fileURLToPath(import.meta.url));
// After bun build: dist/index.js -> ../assets = cli/assets ✓
const ASSETS_DIR = join(__dirname, '..', 'assets');
const ASSETS_CANDIDATES = [
// Bun bundle: dist/index.js
join(__dirname, '..', 'assets'),
// TypeScript fallback: dist/utils/template.js
join(__dirname, '..', '..', 'assets'),
];
const ASSETS_DIR = ASSETS_CANDIDATES.find(path => existsSync(path)) ?? ASSETS_CANDIDATES[0];
export interface PlatformConfig {
platform: string;