feat: add motion design pipeline and restore Korean showcase corpus

This commit is contained in:
Yun Chan 2026-10-31 16:28:41 +09:00
parent b5f59ca87a
commit 047df4d08b
63 changed files with 2181 additions and 919 deletions

View file

@ -10,17 +10,32 @@ import { bad, dim, heading, info, ok, table, warn } from "../ui.ts";
*/
export async function runTools(opts: { install: boolean }): Promise<number> {
const status = await checkTools();
const browserTools = status.filter((s) => (s.tool.category ?? "browser") === "browser");
const motionTools = status.filter((s) => s.tool.category === "motion");
console.log(heading("브라우저 도구"));
console.log(
table(
status.map(({ tool, installed }) => [
browserTools.map(({ tool, installed }) => [
tool.label,
installed ? "설치됨" : dim("설치되지 않음"),
]),
),
);
if (motionTools.length > 0) {
console.log();
console.log(heading("모션·미디어 도구"));
console.log(
table(
motionTools.map(({ tool, installed }) => [
tool.label,
installed ? "설치됨" : dim("설치되지 않음"),
]),
),
);
}
const missing = status.filter((s) => !s.installed);
if (missing.length === 0) {

View file

@ -212,7 +212,7 @@ export async function offerTools(): Promise<void> {
label: tool.label,
hint: `${tool.why} · ${tool.size}`,
})),
initialValues: missing.map((m) => m.tool.id),
initialValues: missing.filter((m) => m.tool.defaultSelected !== false).map((m) => m.tool.id),
required: false,
});
if (p.isCancel(picked) || picked.length === 0) {

View file

@ -13,6 +13,7 @@ test("tools 는 --yes 없이 아무것도 설치하지 않는다", async () => {
// 상태만 보이거나, 이미 다 있으면 그렇다고 말해야 한다.
const { stdout } = await exec(process.execPath, [CLI, "tools", "--no-update-check"]);
assert.match(stdout, /브라우저 도구/);
assert.match(stdout, /모션·미디어 도구/);
assert.doesNotMatch(stdout, /설치 중/);
});