feat(supporters): 승인 UI·입력 반영·워커 — §7-5 ClinicInputsPanel + supporter_builds/inputs 마이그레이션 + apply_inputs, §12-2 상단 고지·개설자 승인·색인 빌드 필터, §7-6 워커 E2E(뷰성형외과 URL → 5편 → 게이트 0오류)
- 게이트: DISCLOSURE_TOP_MISSING, APPROVED_*, UNAPPROVED_IN_INDEXABLE_BUILD, PRESS_VOICE 규칙화, 픽스처 추가 (16/16) - 생성기: --site 옵션, 병원 확인 답변(clinicAnswers) 근거 [A] - default_briefs.mjs 첫 배치 자동 기획, workers/supporters-build/run.mjs - 랜딩: SAMPLE REPORT 라벨 "실제 사례"로 (haewon 지시) - v2 §11-6·§11-7 기록, E2E 리포트 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
64a3bce9a3
commit
7e515b70ae
56 files changed
+2530
-41
No files matched your search
@@ -62,14 +62,17 @@ function loadEnv() {
|
||||
loadEnv();
|
||||
|
||||
// ---------- 데이터 ----------
|
||||
const DATA = join(SUP, 'src/data');
|
||||
const POSTS = join(SUP, 'src/content/posts');
|
||||
// --site <dir> : 다른 사이트 디렉터리(템플릿 복제본)의 데이터·글을 쓴다. 워커가 병원별 작업 폴더로 돌릴 때.
|
||||
const SITE = resolve(opt('site', SUP));
|
||||
const DATA = join(SITE, 'src/data');
|
||||
const POSTS = join(SITE, 'src/content/posts');
|
||||
const EV = resolve(opt('evidence', join(SUP, '..', 'evidence', clinic)));
|
||||
const readJson = (p) => JSON.parse(readFileSync(p, 'utf8'));
|
||||
const fact = readJson(join(DATA, 'factSheet.json'));
|
||||
const authors = readJson(join(DATA, 'authors.json'));
|
||||
const videos = readJson(join(DATA, 'videos.json'));
|
||||
const news = existsSync(join(DATA, 'news.json')) ? readJson(join(DATA, 'news.json')) : { items: [] };
|
||||
const answers = existsSync(join(DATA, 'clinicAnswers.json')) ? readJson(join(DATA, 'clinicAnswers.json')) : { items: [] };
|
||||
if (!existsSync(join(EV, 'index.json'))) { console.error(`근거 없음: ${EV}. 먼저 node scripts/collect_evidence.mjs --clinic ${clinic} --url <홈>`); process.exit(1); }
|
||||
const ev = loadEvidence(EV);
|
||||
const authorId = opt('author', Object.keys(authors.supporters ?? {})[0]);
|
||||
@@ -252,7 +255,7 @@ for (const brief of briefs) {
|
||||
report.posts.push(row);
|
||||
if (shouldStop({ spentUsd: spent })) { row.status = 'skipped_cost_cap'; console.log(` – ${brief.id}: 비용 상한 도달, 건너뜀`); continue; }
|
||||
|
||||
const ctx = buildContext(brief, { ev, fact, authors, videos, news, today });
|
||||
const ctx = buildContext(brief, { ev, fact, authors, videos, news, answers, today });
|
||||
row.missingEvidence = ctx.missing;
|
||||
row.contextChars = ctx.text.length;
|
||||
const reviewerName = brief.reviewerCandidate && authors.physicians?.[brief.reviewerCandidate]?.name;
|
||||
|
||||
Reference in new issue
Block a user