@t3q-ui/design-system 1.60.0 → 1.61.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
3
  * t3q-design — @t3q-ui/design-system 소비 레포 설치·점검 CLI (로드맵 §7).
4
- * t3q-design setup [--registry <url>] [--mcp-url <url>] [--cwd <dir>] AI 작업용 파일을 만들거나 갱신한다
4
+ * t3q-design setup [--registry <url>] [--mcp <local|off|url>] [--cwd <dir>] AI 작업용 파일을 만들거나 갱신한다
5
5
  * t3q-design doctor [--cwd <dir>] 상태를 검사하고 조치를 알려 준다
6
- * 이 파일은 출력과 종료 코드만 맡는다. 동작은 setup.mjs / doctor.mjs, 검사는 cli.test.mjs.
6
+ * t3q-design mcp 패키지 안 Storybook MCP 를 stdio 로 띄운다 (AI 도구가 켠다)
7
+ * 이 파일은 출력과 종료 코드만 맡는다. 동작은 setup.mjs / doctor.mjs / mcp.mjs, 검사는 cli.test.mjs · mcp.test.mjs.
7
8
  */
8
9
  import path from 'node:path'
9
10
 
@@ -24,14 +25,17 @@ const cmd = argv.find((a) => !a.startsWith('-'))
24
25
  const HELP = `t3q-design — ${PKG_NAME} 설치·점검
25
26
 
26
27
  사용:
27
- t3q-design setup [--registry <url>] [--mcp-url <url>] [--cwd <dir>]
28
+ t3q-design setup [--registry <url>] [--mcp <local|off|url>] [--cwd <dir>]
28
29
  t3q-design doctor [--cwd <dir>]
30
+ t3q-design mcp
29
31
 
30
- setup CSS import · AGENTS.md 블록 · CLAUDE.md · .claude/skills/tds 를 만들거나 갱신. 플래그를 줄 때만 .npmrc(--registry)·.mcp.json·.codex/config.toml(--mcp-url) 도 기록
31
- doctor Node · 패키지/peer · CSS · Skill · 규칙을 검사 (실패 시 종료 코드 1). .npmrc 에 @t3q-ui:registry 줄이 있으면 토큰·레지스트리도, .mcp.json 에 항목이 있으면 MCP 도 점검
32
+ setup CSS import · AGENTS.md 블록 · CLAUDE.md · .claude/skills/tds · .mcp.json · .codex/config.toml 을 만들거나 갱신. --registry 를 줄 때만 .npmrc 도 기록
33
+ doctor Node · 패키지/peer · CSS · Skill · 규칙 · MCP 를 검사 (실패 시 종료 코드 1). .npmrc 에 @t3q-ui:registry 줄이 있으면 토큰·레지스트리도 점검
34
+ mcp 패키지 안 Storybook MCP(stdio). setup 이 .mcp.json·.codex/config.toml 에 등록하고 AI 도구가 켠다 — 직접 실행할 일은 없다
32
35
 
33
36
  --registry 사내 npm 레지스트리 주소 (사내 설치 전용 — docs/INTERNAL_SETUP.md)
34
- --mcp-url Storybook MCP 주소 (예: 로컬 Storybook http://localhost:6006/mcp). 없으면 MCP 항목을 쓰지 않는다
37
+ --mcp local = 패키지 안 MCP (기본. 이미 원격 주소가 적혀 있으면 그대로 둔다) · off = MCP 항목을 건드리지 않음 · <url> = 원격 MCP 주소
38
+ --mcp-url --mcp <url> 과 같다
35
39
  --cwd 대상 레포 (기본: 현재 디렉터리)
36
40
  `
37
41
 
@@ -52,7 +56,10 @@ async function main() {
52
56
  const cwd = path.resolve(arg('--cwd', process.cwd()))
53
57
  if (cmd === 'setup') {
54
58
  console.log(`t3q-design setup (${PKG_NAME} ${ownVersion()}) — ${cwd}\n`)
55
- const results = await setup(cwd, { registry: normRegistry(arg('--registry')), mcpUrl: arg('--mcp-url') })
59
+ const results = await setup(cwd, {
60
+ registry: normRegistry(arg('--registry')),
61
+ mcp: arg('--mcp', arg('--mcp-url')),
62
+ })
56
63
  print(results)
57
64
  return results.some((r) => r.status === 'fail') ? 1 : 0
58
65
  }
@@ -64,6 +71,11 @@ async function main() {
64
71
  console.log(fails ? `\n✗ ${fails}개 실패` : '\n✓ 준비 완료')
65
72
  return fails ? 1 : 0
66
73
  }
74
+ if (cmd === 'mcp') {
75
+ // stdout 은 JSON-RPC 전용 — 여기서는 아무것도 출력하지 않는다. 띄우면 끝나지 않고, stdin 이 닫히면 transport 가 종료한다
76
+ const { runMcp } = await import('./mcp.mjs')
77
+ return runMcp({ manifestDir: arg('--manifest-dir') && path.resolve(arg('--manifest-dir')) })
78
+ }
67
79
  console.error(`알 수 없는 명령: ${cmd}\n`)
68
80
  console.log(HELP)
69
81
  return 1
@@ -4499,5 +4499,5 @@ function TwoLineCellRenderer(params) {
4499
4499
  }
4500
4500
 
4501
4501
  export { AG_GRID_LOCALE_KR, AgGridContext, AgGridTable, Alert, AlertActions, AlertDescription, AlertTitle, BADGE_OUTLINE_ACCENT, BALANCED_FILL_MIN_WIDTH, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyBoxIllustration, Form, FormControl, FormDescription, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, HeaderCheckboxRenderer, IconButton, LucideIcon, NUMBER_COLUMN_CLASS, NUMBER_COLUMN_WIDTH, PageHeader, PageHeaderProvider, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, PaginationWrapper, Panel, RowCheckboxRenderer, SORT_ICON_OFFSET_CLASS, Separator, Skeleton, SortIcon, Spinner, Stack, Table, TableBody, TableCell, TableHead, TableHeader, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TwoLineCellRenderer, alignFromClassName, badgeVariants, buttonVariants, cn, estimateHeaderTextWidth, fitColumnsToContent, getPaginationRange, getSortedColumnState, growColumnIds, sanitizeUserText, useFormControlContext, useFormField, usePageHeader, useRestoreFocusToOpener, withBalancedFill, withExplicitSortIcons, withFlexFill, withHeaderMinWidth, withNumberColumnWidth, withSortIconOffset, withTypeClasses, withWidthFloor };
4502
- //# sourceMappingURL=chunk-PDSWUEB2.js.map
4503
- //# sourceMappingURL=chunk-PDSWUEB2.js.map
4502
+ //# sourceMappingURL=chunk-BGQ5WONC.js.map
4503
+ //# sourceMappingURL=chunk-BGQ5WONC.js.map