diff --git a/apps/web/app/approvals/page.tsx b/apps/web/app/approvals/page.tsx
new file mode 100644
index 0000000..8d7e281
--- /dev/null
+++ b/apps/web/app/approvals/page.tsx
@@ -0,0 +1,41 @@
+import type { Metadata } from "next";
+import { getPendingApprovals } from "@/lib/data";
+import { formatDate } from "@/lib/format";
+
+export const metadata: Metadata = { title: "승인함" };
+
+export default async function ApprovalsPage() {
+ const approvals = await getPendingApprovals();
+
+ return (
+ <>
+
+
+
승인함
+
+ 에이전트가 의존성 추가, DB 스키마 적용처럼 사람 확인이 필요한 명령을 실행하려 하면 여기서 멈춥니다.
+
+
+
+
+ {approvals.length === 0 ? (
+
+ ) : (
+
+ )}
+ >
+ );
+}
diff --git a/apps/web/app/globals.css b/apps/web/app/globals.css
new file mode 100644
index 0000000..3df5c2a
--- /dev/null
+++ b/apps/web/app/globals.css
@@ -0,0 +1,718 @@
+:root {
+ --bg: #fafaf9;
+ --surface: #ffffff;
+ --text: #1c1917;
+ --muted: #78716c;
+ --line: #e7e5e4;
+ --line-strong: #d6d3d1;
+ --accent: #2f54eb;
+ --accent-soft: #eef2ff;
+ --human: #b45309;
+ --human-soft: #fef3c7;
+ --stage-implement: #2563eb;
+ --stage-verify: #7c3aed;
+ --stage-release: #0f766e;
+ --stage-operate: #57534e;
+ --radius: 8px;
+ --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
+ system-ui, sans-serif;
+ --mono: ui-monospace, "SF Mono", Menlo, monospace;
+ color-scheme: light;
+}
+
+@media (prefers-color-scheme: dark) {
+ :root {
+ --bg: #121110;
+ --surface: #1c1b19;
+ --text: #f5f5f4;
+ --muted: #a8a29e;
+ --line: #2e2c2a;
+ --line-strong: #44403c;
+ --accent: #7c9bff;
+ --accent-soft: #1e2440;
+ --human: #fbbf24;
+ --human-soft: #3a2a0a;
+ --stage-implement: #60a5fa;
+ --stage-verify: #a78bfa;
+ --stage-release: #2dd4bf;
+ --stage-operate: #a8a29e;
+ color-scheme: dark;
+ }
+}
+
+* {
+ box-sizing: border-box;
+}
+
+html,
+body {
+ margin: 0;
+}
+
+body {
+ background: var(--bg);
+ color: var(--text);
+ font-family: var(--font);
+ font-size: 15px;
+ line-height: 1.55;
+ -webkit-font-smoothing: antialiased;
+}
+
+h1,
+h2,
+h3,
+p {
+ margin: 0;
+}
+
+ul,
+ol {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+
+a {
+ color: inherit;
+}
+
+:focus-visible {
+ outline: 2px solid var(--accent);
+ outline-offset: 2px;
+ border-radius: 4px;
+}
+
+.muted {
+ color: var(--muted);
+}
+
+/* header */
+.site-header {
+ border-bottom: 1px solid var(--line);
+ background: var(--surface);
+ position: sticky;
+ top: 0;
+ z-index: 10;
+}
+
+.site-header__inner {
+ max-width: 1360px;
+ margin: 0 auto;
+ padding: 0 24px;
+ height: 56px;
+ display: flex;
+ align-items: center;
+ gap: 32px;
+}
+
+.brand {
+ font-weight: 700;
+ font-size: 17px;
+ letter-spacing: -0.01em;
+ text-decoration: none;
+}
+
+.nav {
+ display: flex;
+ gap: 4px;
+}
+
+.nav__link {
+ display: block;
+ padding: 6px 12px;
+ border-radius: 6px;
+ color: var(--muted);
+ text-decoration: none;
+ font-weight: 500;
+}
+
+.nav__link:hover {
+ color: var(--text);
+ background: var(--bg);
+}
+
+.nav__link[aria-current="page"] {
+ color: var(--text);
+ background: var(--bg);
+}
+
+/* page */
+.page {
+ max-width: 1360px;
+ margin: 0 auto;
+ padding: 32px 24px 64px;
+}
+
+.page-head {
+ display: flex;
+ align-items: flex-end;
+ justify-content: space-between;
+ gap: 24px;
+ flex-wrap: wrap;
+ margin-bottom: 28px;
+}
+
+.page-head h1 {
+ font-size: 24px;
+ letter-spacing: -0.02em;
+ margin-bottom: 4px;
+}
+
+.crumbs {
+ display: flex;
+ gap: 8px;
+ color: var(--muted);
+ font-size: 13px;
+ margin-bottom: 12px;
+}
+
+.crumbs a {
+ text-decoration: none;
+}
+
+.crumbs a:hover {
+ color: var(--text);
+ text-decoration: underline;
+}
+
+.stats {
+ display: flex;
+ gap: 28px;
+ margin: 0;
+}
+
+.stats div {
+ display: flex;
+ flex-direction: column;
+}
+
+.stats dt {
+ font-size: 12px;
+ color: var(--muted);
+}
+
+.stats dd {
+ margin: 0;
+ font-size: 20px;
+ font-weight: 600;
+ font-variant-numeric: tabular-nums;
+}
+
+/* org chart */
+.chart {
+ --connector: var(--line-strong);
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+}
+
+.chart__root {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ padding: 12px 28px;
+ border-radius: var(--radius);
+ background: var(--text);
+ color: var(--bg);
+ position: relative;
+}
+
+.chart__root::after {
+ content: "";
+ position: absolute;
+ left: 50%;
+ bottom: -24px;
+ height: 24px;
+ border-left: 1px solid var(--connector);
+}
+
+.chart__root-name {
+ font-weight: 700;
+ font-size: 16px;
+}
+
+.chart__root-meta {
+ font-size: 12px;
+ opacity: 0.7;
+}
+
+.chart__divisions {
+ margin-top: 24px;
+ width: 100%;
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
+ gap: 20px;
+ position: relative;
+ padding-top: 24px;
+}
+
+/* 본부를 잇는 가로선: 첫 열 중앙부터 마지막 열 중앙까지 */
+.chart__divisions::before {
+ content: "";
+ position: absolute;
+ top: 0;
+ left: calc(100% / 6);
+ right: calc(100% / 6);
+ border-top: 1px solid var(--connector);
+}
+
+.division {
+ position: relative;
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+}
+
+.division::before {
+ content: "";
+ position: absolute;
+ top: -24px;
+ left: 50%;
+ height: 24px;
+ border-left: 1px solid var(--connector);
+}
+
+.division__head {
+ padding: 14px 16px;
+ border: 1px solid var(--line-strong);
+ border-radius: var(--radius);
+ background: var(--surface);
+}
+
+.division__head h2 {
+ font-size: 16px;
+ margin-bottom: 2px;
+}
+
+.division__head p {
+ color: var(--muted);
+ font-size: 13px;
+}
+
+.budget {
+ margin-top: 10px;
+ display: flex;
+ align-items: center;
+ gap: 10px;
+}
+
+.budget__bar {
+ flex: 1;
+ height: 4px;
+ border-radius: 2px;
+ background: var(--line);
+ overflow: hidden;
+}
+
+.budget__bar span {
+ display: block;
+ height: 100%;
+ background: var(--accent);
+}
+
+.budget__text {
+ font-size: 12px;
+ color: var(--muted);
+ font-variant-numeric: tabular-nums;
+ white-space: nowrap;
+}
+
+.division__teams {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+ padding-left: 16px;
+ border-left: 1px solid var(--connector);
+ margin-left: 16px;
+}
+
+.team {
+ position: relative;
+}
+
+.team::before {
+ content: "";
+ position: absolute;
+ left: -16px;
+ top: 22px;
+ width: 16px;
+ border-top: 1px solid var(--connector);
+}
+
+.team__link {
+ display: block;
+ padding: 12px 14px;
+ border: 1px solid var(--line);
+ border-radius: var(--radius);
+ background: var(--surface);
+ text-decoration: none;
+ transition: border-color 0.15s ease;
+}
+
+.team__link:hover {
+ border-color: var(--accent);
+}
+
+.team__head {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 8px;
+ margin-bottom: 8px;
+}
+
+.team__head h3 {
+ font-size: 15px;
+}
+
+.stage {
+ --stage: var(--stage-operate);
+ font-size: 12px;
+ font-weight: 600;
+ color: var(--stage);
+ padding: 1px 8px;
+ border-radius: 999px;
+ border: 1px solid color-mix(in srgb, var(--stage) 35%, transparent);
+ white-space: nowrap;
+}
+
+.stage--implement {
+ --stage: var(--stage-implement);
+}
+.stage--verify {
+ --stage: var(--stage-verify);
+}
+.stage--release {
+ --stage: var(--stage-release);
+}
+.stage--operate {
+ --stage: var(--stage-operate);
+}
+
+.roles {
+ display: flex;
+ flex-direction: column;
+ gap: 2px;
+}
+
+.role {
+ display: flex;
+ justify-content: space-between;
+ gap: 8px;
+ font-size: 13px;
+ padding: 3px 0;
+}
+
+.role__name::before {
+ content: "";
+ display: inline-block;
+ width: 6px;
+ height: 6px;
+ border-radius: 50%;
+ background: var(--line-strong);
+ margin-right: 8px;
+ vertical-align: middle;
+}
+
+.role--lead .role__name {
+ font-weight: 600;
+}
+
+.role--lead .role__name::before {
+ background: var(--text);
+}
+
+.role__model {
+ color: var(--muted);
+ font-size: 12px;
+ font-variant-numeric: tabular-nums;
+}
+
+.team__foot {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 4px 12px;
+ margin-top: 10px;
+ padding-top: 8px;
+ border-top: 1px solid var(--line);
+ font-size: 12px;
+ color: var(--muted);
+}
+
+/* flow */
+.flow {
+ margin-top: 48px;
+ padding-top: 24px;
+ border-top: 1px solid var(--line);
+}
+
+.flow h2 {
+ font-size: 16px;
+ margin-bottom: 14px;
+}
+
+.flow__steps {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ margin-bottom: 12px;
+ counter-reset: step;
+}
+
+.flow__steps li {
+ display: flex;
+ flex-direction: column;
+ padding: 8px 14px;
+ border: 1px solid var(--line);
+ border-radius: var(--radius);
+ background: var(--surface);
+ min-width: 112px;
+}
+
+.flow__steps li strong {
+ font-size: 14px;
+}
+
+.flow__steps li span {
+ font-size: 12px;
+ color: var(--muted);
+}
+
+.flow__steps .flow__human {
+ border-color: color-mix(in srgb, var(--human) 40%, transparent);
+ background: var(--human-soft);
+}
+
+.flow__steps .flow__human span {
+ color: var(--human);
+ font-weight: 600;
+}
+
+/* team detail */
+.role-details {
+ display: grid;
+ gap: 12px;
+ max-width: 880px;
+}
+
+.role-detail {
+ padding: 18px 20px;
+ border: 1px solid var(--line);
+ border-radius: var(--radius);
+ background: var(--surface);
+}
+
+.role-detail__head h2 {
+ font-size: 16px;
+ display: flex;
+ align-items: center;
+ gap: 10px;
+}
+
+.role-detail__head p {
+ color: var(--muted);
+ margin-top: 2px;
+}
+
+.tag {
+ font-size: 12px;
+ font-weight: 500;
+ color: var(--accent);
+ background: var(--accent-soft);
+ padding: 1px 8px;
+ border-radius: 999px;
+}
+
+.role-detail__meta {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 24px;
+ margin: 14px 0 0;
+}
+
+.role-detail__meta dt {
+ font-size: 12px;
+ color: var(--muted);
+}
+
+.role-detail__meta dd {
+ margin: 0;
+ font-weight: 500;
+}
+
+.role-detail__prompt {
+ margin-top: 14px;
+}
+
+.role-detail__prompt summary {
+ cursor: pointer;
+ color: var(--muted);
+ font-size: 13px;
+}
+
+.role-detail__prompt summary:hover {
+ color: var(--text);
+}
+
+.role-detail__prompt pre,
+.approval__command {
+ white-space: pre-wrap;
+ word-break: break-word;
+ font-family: var(--mono);
+ font-size: 13px;
+ background: var(--bg);
+ border: 1px solid var(--line);
+ border-radius: 6px;
+ padding: 12px 14px;
+ margin: 10px 0 0;
+}
+
+/* empty */
+.empty {
+ padding: 56px 24px;
+ text-align: center;
+ border: 1px dashed var(--line-strong);
+ border-radius: var(--radius);
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 6px;
+}
+
+.empty__title {
+ font-weight: 600;
+}
+
+/* board */
+.board {
+ display: grid;
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ gap: 16px;
+}
+
+.board__column h2 {
+ font-size: 14px;
+ margin-bottom: 10px;
+}
+
+.board__column ul {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+}
+
+.count {
+ color: var(--muted);
+ font-weight: 500;
+}
+
+.task {
+ padding: 12px 14px;
+ border: 1px solid var(--line);
+ border-radius: var(--radius);
+ background: var(--surface);
+}
+
+.task__meta {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ font-size: 12px;
+ color: var(--muted);
+ margin-bottom: 6px;
+}
+
+.task__title {
+ font-weight: 600;
+ text-decoration: none;
+}
+
+.task__title:hover {
+ text-decoration: underline;
+}
+
+.task__reason {
+ margin-top: 6px;
+ font-size: 13px;
+ color: var(--human);
+}
+
+.task__foot {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 4px 12px;
+ margin-top: 8px;
+ font-size: 12px;
+ color: var(--muted);
+}
+
+/* approvals */
+.approvals {
+ display: grid;
+ gap: 12px;
+ max-width: 880px;
+}
+
+.approval {
+ padding: 16px 18px;
+ border: 1px solid var(--line);
+ border-radius: var(--radius);
+ background: var(--surface);
+}
+
+.approval__head {
+ display: flex;
+ justify-content: space-between;
+ gap: 12px;
+}
+
+.approval__head time {
+ color: var(--muted);
+ font-size: 13px;
+}
+
+@media (max-width: 960px) {
+ .board {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ }
+
+ .chart__divisions::before,
+ .division::before,
+ .chart__root::after {
+ display: none;
+ }
+
+ .chart__divisions {
+ padding-top: 0;
+ }
+}
+
+@media (max-width: 640px) {
+ .site-header__inner,
+ .page {
+ padding-left: 16px;
+ padding-right: 16px;
+ }
+
+ .site-header__inner {
+ gap: 16px;
+ }
+
+ .stats {
+ gap: 20px;
+ }
+
+ .board {
+ grid-template-columns: 1fr;
+ }
+
+ .chart__root {
+ align-self: stretch;
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ * {
+ transition: none !important;
+ }
+}
diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx
new file mode 100644
index 0000000..e682ad3
--- /dev/null
+++ b/apps/web/app/layout.tsx
@@ -0,0 +1,28 @@
+import type { Metadata } from "next";
+import Link from "next/link";
+import { Nav } from "./nav";
+import "./globals.css";
+
+export const metadata: Metadata = {
+ title: { default: "offAI", template: "%s · offAI" },
+ description: "AI 조직 운영 콘솔",
+ robots: { index: false, follow: false },
+};
+
+export default function RootLayout({ children }: { children: React.ReactNode }) {
+ return (
+
+
+
+ {children}
+
+
+ );
+}
diff --git a/apps/web/app/nav.tsx b/apps/web/app/nav.tsx
new file mode 100644
index 0000000..f4c4afa
--- /dev/null
+++ b/apps/web/app/nav.tsx
@@ -0,0 +1,30 @@
+"use client";
+
+import Link from "next/link";
+import { usePathname } from "next/navigation";
+
+const LINKS = [
+ { href: "/", label: "조직도" },
+ { href: "/tasks", label: "작업" },
+ { href: "/approvals", label: "승인함" },
+] as const;
+
+export function Nav() {
+ const pathname = usePathname();
+ return (
+
+ );
+}
diff --git a/apps/web/app/not-found.tsx b/apps/web/app/not-found.tsx
new file mode 100644
index 0000000..7477924
--- /dev/null
+++ b/apps/web/app/not-found.tsx
@@ -0,0 +1,10 @@
+import Link from "next/link";
+
+export default function NotFound() {
+ return (
+
+
찾는 페이지가 없습니다
+
조직도로 돌아가기
+
+ );
+}
diff --git a/apps/web/app/page.tsx b/apps/web/app/page.tsx
new file mode 100644
index 0000000..b9a76b8
--- /dev/null
+++ b/apps/web/app/page.tsx
@@ -0,0 +1,143 @@
+import Link from "next/link";
+import { STAGE_LABEL, leadOf, type Division, type Team } from "@offai/core";
+import { getMonthlySpend, getOrg } from "@/lib/data";
+import { MODEL_LABEL, formatUsd } from "@/lib/format";
+
+export default async function OrgChartPage() {
+ const [org, spend] = await Promise.all([getOrg(), getMonthlySpend()]);
+ const teams = org.divisions.flatMap((division) => division.teams);
+ const roles = teams.flatMap((team) => team.roles);
+ const monthlyBudget = org.divisions.reduce((sum, division) => sum + division.monthlyBudgetCents, 0);
+
+ return (
+ <>
+
+
+
조직도
+
+ {org.name} · 대상 레포 {org.repos.join(", ")}
+
+
+
+
+
- 본부
+ - {org.divisions.length}
+
+
+
- 팀
+ - {teams.length}
+
+
+
- 역할
+ - {roles.length}
+
+
+
- 월 예산
+ - {formatUsd(monthlyBudget)}
+
+
+
+
+
+
+ {org.name}
+ 사람 승인: merge · production 배포
+
+
+ {org.divisions.map((division) => (
+
+ ))}
+
+
+
+
+ 작업 흐름
+
+ -
+ 구현
+ 제품개발본부
+
+ -
+ 검증
+ 품질본부
+
+ -
+ merge
+ 사람
+
+ -
+ 배포 준비
+ 운영본부
+
+ -
+ production 배포
+ 사람
+
+ -
+ 운영
+ 운영본부
+
+
+
+ 검증에서 수정 요청이 나오면 구현으로 돌아갑니다. 최대 {org.maxReworks}회까지 반복하고, 넘으면 사람에게 넘깁니다.
+
+
+ >
+ );
+}
+
+function DivisionColumn({ division, spentCents }: { division: Division; spentCents: number }) {
+ const usage = Math.min(spentCents / division.monthlyBudgetCents, 1);
+ return (
+
+
+
{division.name}
+
{division.mission}
+
+
+
+
+
+ {formatUsd(spentCents)} / {formatUsd(division.monthlyBudgetCents)}
+
+
+
+
+ {division.teams.map((team) => (
+
+ ))}
+
+
+ );
+}
+
+function TeamCard({ team }: { team: Team }) {
+ const lead = leadOf(team);
+ const members = team.roles.filter((role) => !role.lead);
+ return (
+
+
+
+
{team.name}
+ {STAGE_LABEL[team.stage]}
+
+
+ -
+ {lead.name}
+ {MODEL_LABEL[lead.model]}
+
+ {members.map((role) => (
+ -
+ {role.name}
+ {MODEL_LABEL[role.model]}
+
+ ))}
+
+
+ 세션 상한 {formatUsd(team.sessionBudgetCents)}
+ {team.labels.length > 0 && {team.labels.join(" ")}}
+
+
+
+ );
+}
diff --git a/apps/web/app/tasks/page.tsx b/apps/web/app/tasks/page.tsx
new file mode 100644
index 0000000..9134bc0
--- /dev/null
+++ b/apps/web/app/tasks/page.tsx
@@ -0,0 +1,79 @@
+import type { Metadata } from "next";
+import { HUMAN_STATUSES, STAGE_LABEL, STATUS_LABEL, type TaskStatus } from "@offai/core";
+import { getTasks, type TaskSummary } from "@/lib/data";
+import { formatDate, formatUsd } from "@/lib/format";
+
+export const metadata: Metadata = { title: "작업" };
+
+const COLUMNS: { title: string; statuses: TaskStatus[] }[] = [
+ { title: "대기", statuses: ["queued"] },
+ { title: "진행 중", statuses: ["running"] },
+ { title: "사람 확인", statuses: [...HUMAN_STATUSES] },
+ { title: "완료", statuses: ["done"] },
+];
+
+export default async function TasksPage() {
+ const tasks = await getTasks();
+
+ return (
+ <>
+
+
+
작업
+
GitHub Issue 하나가 작업 하나입니다. Issue에 `offai` label을 붙이면 접수됩니다.
+
+
+
+ {tasks.length === 0 ? (
+
+
아직 접수된 작업이 없습니다
+
worker가 실행 중이고 GitHub App이 대상 레포에 설치되어 있어야 Issue가 들어옵니다.
+
+ ) : (
+
+ {COLUMNS.map((column) => {
+ const items = tasks.filter((task) => column.statuses.includes(task.status));
+ return (
+
+
+ {column.title} {items.length}
+
+
+ {items.map((task) => (
+
+ ))}
+
+
+ );
+ })}
+
+ )}
+ >
+ );
+}
+
+function TaskCard({ task }: { task: TaskSummary }) {
+ const issueUrl = `https://github.com/${task.repo}/issues/${task.issueNumber}`;
+ return (
+
+
+ {STAGE_LABEL[task.stage]}
+ {STATUS_LABEL[task.status]}
+
+
+ #{task.issueNumber} {task.title}
+
+ {task.reason && {task.reason}
}
+
+
{task.repo}
+ {task.prNumber !== null && (
+
+ PR #{task.prNumber}
+
+ )}
+
{formatUsd(task.spentCents)}
+
+
+
+ );
+}
diff --git a/apps/web/app/teams/[teamId]/page.tsx b/apps/web/app/teams/[teamId]/page.tsx
new file mode 100644
index 0000000..e70b392
--- /dev/null
+++ b/apps/web/app/teams/[teamId]/page.tsx
@@ -0,0 +1,74 @@
+import type { Metadata } from "next";
+import Link from "next/link";
+import { notFound } from "next/navigation";
+import { STAGE_LABEL, findTeam } from "@offai/core";
+import { getOrg } from "@/lib/data";
+import { MODEL_LABEL, formatUsd } from "@/lib/format";
+
+type Props = { params: Promise<{ teamId: string }> };
+
+export async function generateMetadata({ params }: Props): Promise {
+ const { teamId } = await params;
+ const ref = findTeam(await getOrg(), teamId);
+ return { title: ref?.team.name ?? "팀" };
+}
+
+export default async function TeamPage({ params }: Props) {
+ const { teamId } = await params;
+ const ref = findTeam(await getOrg(), teamId);
+ if (!ref) notFound();
+ const { division, team } = ref;
+
+ return (
+ <>
+
+
+
+
{team.name}
+
+ {STAGE_LABEL[team.stage]} 담당 · 세션 상한 {formatUsd(team.sessionBudgetCents)}
+ {team.labels.length > 0 && ` · label ${team.labels.join(", ")}`}
+
+
+
+
+
+ {team.roles.map((role) => (
+ -
+
+
+
+ {role.name}
+ {role.lead && 팀장 · 세션 coordinator}
+
+ {role.responsibility}
+
+
+
+
- 모델
+ - {MODEL_LABEL[role.model]}
+
+
+
- effort
+ - {role.effort}
+
+
+
- 도구
+ - {role.tools === "full" ? "읽기·쓰기·bash" : "읽기 전용"}
+
+
+
+ 역할 지침 보기
+ {role.instructions}
+
+
+
+ ))}
+
+ >
+ );
+}
diff --git a/apps/web/lib/data.ts b/apps/web/lib/data.ts
new file mode 100644
index 0000000..15edd8a
--- /dev/null
+++ b/apps/web/lib/data.ts
@@ -0,0 +1,47 @@
+import "server-only";
+import { DEFAULT_ORG, type Org, type Stage, type TaskStatus } from "@offai/core";
+
+/** 작업 목록 화면에서 쓰는 작업 요약 */
+export type TaskSummary = {
+ id: string;
+ repo: string;
+ issueNumber: number;
+ title: string;
+ stage: Stage;
+ status: TaskStatus;
+ teamId: string | null;
+ prNumber: number | null;
+ reworks: number;
+ reason: string | null;
+ spentCents: number;
+ updatedAt: Date;
+};
+
+export type ApprovalSummary = {
+ id: string;
+ taskId: string;
+ taskTitle: string;
+ teamId: string;
+ command: string;
+ reason: string;
+ requestedAt: Date;
+};
+
+/**
+ * 데이터 접근 계층. DB 연결(#4) 전에는 기본 조직과 빈 작업 목록을 돌려준다.
+ */
+export async function getOrg(): Promise {
+ return DEFAULT_ORG;
+}
+
+export async function getTasks(): Promise {
+ return [];
+}
+
+export async function getPendingApprovals(): Promise {
+ return [];
+}
+
+export async function getMonthlySpend(): Promise