- 핵심 규칙 6: 완료의 정의는 게이트 통과. 사용자를 QA로 쓰지 않는다 - 5단계 기계 검사 4번째: design-gate 실행 의무화 - references/audit-gate.md: 사고-검사 매핑, SEO/meta 체크리스트, OS/브라우저 특성, 하니스 규칙 - tools/design-gate.mjs: 범용 게이트(메타/SEO·대비·수축·리듬·트랙·스케일×폭 + 옵션 L0/L3/L4, checks 깊은 병합) - 리듬·트랙 불변식: 숫자 라벨 등폭·빈 셀 트랙 균일·등간격 — 시간표 자동배치 결함 재현 픽스처 검출, 앱 15뷰 통과(오탐 0) feat(site): 관리 앱 2종 프로덕션 콘솔(v6→v18) - 가온 학적부 9뷰·두레 수강신청 6뷰: shadcn 문법, Pretendard/Noto Serif/IBM Plex 폰트 전략, 볼드 금지(400/500/600), WCAG AA 대비 전면 교정, 한글 keep-all 조판 - LMS 필수 요소(알림 센터·공지·진도·평가 유형·출결 사유·학점 경고), 12명 기준 데이터 정합, SEO 구조(h1 유일·OG/twitter·og.png) - 시간표 자동배치 결함 수리(명시적 격자 좌표) - QA 게이트: L0 stylelint/html-validate · L1 단위 30 · L2 감사 61+불변식 · L3 시각회귀 30화면 · L4 WebKit · L5 키보드 탐색 — npm run verify 실패 시 배포 금지 체인
This commit is contained in:
parent
78ddc8b61a
commit
72337b7ee0
226 changed files with 18212 additions and 380 deletions
78
apps/site/tools/collect-images.mjs
Normal file
78
apps/site/tools/collect-images.mjs
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
/**
|
||||
* 직렬 생성 세션 회수 — 디렉터리 생성 시각(13:02:30+ )순 = JOBS 실행 순서.
|
||||
* 각 세션의 exec-*.png 을 JOBS 순서에 매핑해 .gen/<slug>--<name>.png 로 복사.
|
||||
* 이후 webp 변환은 convert-images.mjs 가 담당한다.
|
||||
*/
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import os from "node:os";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
const staging = path.join(__dirname, ".gen");
|
||||
const genDir = path.join(os.homedir(), ".codex", "generated_images");
|
||||
const START = new Date("2026-08-21T13:02:30").getTime();
|
||||
|
||||
// gen-images.mjs 의 JOBS 순서와 동일하게 유지 (slug--name 순서가 곧 실행 순서)
|
||||
const ORDER = [
|
||||
"muwol-coffee--beans-hero",
|
||||
"muwol-coffee--pourover",
|
||||
"muwol-coffee--roastery",
|
||||
"hyang-incense--smoke",
|
||||
"hyang-incense--agarwood",
|
||||
"baekje-celadon--ewer-dark",
|
||||
"baekje-celadon--crazing",
|
||||
"baekje-celadon--inlay",
|
||||
"form-architecture--pavilion-bw",
|
||||
"form-architecture--interior-bw",
|
||||
"form-architecture--model-bw",
|
||||
"font-foundry--metaltype",
|
||||
"font-foundry--inkstone",
|
||||
"overtone-sound--installation",
|
||||
"overtone-sound--mic-macro",
|
||||
"pulsegate--datacenter",
|
||||
"lumina-optics--lens-section",
|
||||
"lumina-optics--prism-bench",
|
||||
"orbit-aerospace--static-fire",
|
||||
"orbit-aerospace--channel-macro",
|
||||
"synapse-bci--chip-macro",
|
||||
"synapse-bci--thread-array",
|
||||
];
|
||||
// 주의: gen-images.mjs 실제 JOBS 순서는 위와 다를 수 있다 — 아래에서 스크립트에서
|
||||
// 직접 읽어오지 않고 수동 대조했는지 확인 필요. 안전장치: 개수 일치 검사.
|
||||
|
||||
const sessions = fs
|
||||
.readdirSync(genDir)
|
||||
.map((s) => {
|
||||
const dir = path.join(genDir, s);
|
||||
let st;
|
||||
try {
|
||||
st = fs.statSync(dir);
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
if (!st.isDirectory() || st.birthtimeMs < START) return null;
|
||||
const pngs = fs
|
||||
.readdirSync(dir)
|
||||
.filter((f) => f.startsWith("exec-") && f.endsWith(".png"))
|
||||
.map((f) => ({ f: path.join(dir, f), t: fs.statSync(path.join(dir, f)).mtimeMs }))
|
||||
.sort((a, b) => a.t - b.t);
|
||||
if (!pngs.length) return null;
|
||||
return { dir, born: st.birthtimeMs, png: pngs[pngs.length - 1].f };
|
||||
})
|
||||
.filter(Boolean)
|
||||
.sort((a, b) => a.born - b.born);
|
||||
|
||||
console.log(`sessions after START: ${sessions.length} / expected: ${ORDER.length}`);
|
||||
if (sessions.length !== ORDER.length) {
|
||||
console.error("세션 수가 JOBS 수와 다릅니다 — 자동 매핑 중단. 수동 검토 필요.");
|
||||
sessions.forEach((s, i) => console.log(i, path.basename(s.dir), new Date(s.born).toISOString()));
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
fs.mkdirSync(staging, { recursive: true });
|
||||
sessions.forEach((s, i) => {
|
||||
const out = path.join(staging, `${ORDER[i]}.png`);
|
||||
fs.copyFileSync(s.png, out);
|
||||
console.log(`ok: ${ORDER[i]} <- ${path.basename(s.dir)}`);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue