sh-ui-cli 0.75.0 → 0.77.0
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.
- package/bin/sh-ui.mjs +1 -1
- package/data/changelog/versions.json +39 -0
- package/data/registry/react/components/switch/index.tailwind.tsx +1 -1
- package/data/registry/react/components/switch/styles.css +6 -0
- package/data/registry/react/components/switch/styles.module.css +6 -0
- package/data/registry/react/tokens-used.json +3 -1
- package/package.json +3 -3
- package/src/create/architectures/index.js +2 -1
- package/src/create/architectures/mes.js +53 -0
- package/src/mcp-init.mjs +161 -20
- package/templates/monorepo/packages/eslint-config/mes.js +82 -0
- package/templates/monorepo/packages/eslint-config/package.json +2 -1
- package/templates/nextjs-app/_arch/mes/app/api/proxy/[...path]/route.ts +112 -0
- package/templates/nextjs-app/_arch/mes/app/layout.tsx +16 -0
- package/templates/nextjs-app/_arch/mes/app/sign-in/page.tsx +1 -0
- package/templates/nextjs-app/_arch/mes/eslint.config.js +10 -0
- package/templates/nextjs-app/_arch/mes/src/components/common/.gitkeep +0 -0
- package/templates/nextjs-app/_arch/mes/src/components/common/FallbackBoundary/index.tsx +89 -0
- package/templates/nextjs-app/_arch/mes/src/components/common/PrefetchBoundary/index.tsx +35 -0
- package/templates/nextjs-app/_arch/mes/src/components/layouts/RootLayout.tsx +13 -0
- package/templates/nextjs-app/_arch/mes/src/components/providers/GlobalProvider/index.tsx +23 -0
- package/templates/nextjs-app/_arch/mes/src/components/providers/index.tsx +1 -0
- package/templates/nextjs-app/_arch/mes/src/components/providers/tanstack/QueryClientProvider.tsx +14 -0
- package/templates/nextjs-app/_arch/mes/src/components/providers/tanstack/TanstackDevtoolsProvider.tsx +13 -0
- package/templates/nextjs-app/_arch/mes/src/components/providers/theme/ThemeProvider.tsx +27 -0
- package/templates/nextjs-app/_arch/mes/src/hooks/.gitkeep +0 -0
- package/templates/nextjs-app/_arch/mes/src/hooks/useAppMutation.ts +59 -0
- package/templates/nextjs-app/_arch/mes/src/lib/api/.gitkeep +0 -0
- package/templates/nextjs-app/_arch/mes/src/lib/api/apiTypes.ts +21 -0
- package/templates/nextjs-app/_arch/mes/src/lib/api/clientFetch.ts +40 -0
- package/templates/nextjs-app/_arch/mes/src/lib/api/error.ts +12 -0
- package/templates/nextjs-app/_arch/mes/src/lib/api/errorMessages.ts +37 -0
- package/templates/nextjs-app/_arch/mes/src/lib/api/http.ts +13 -0
- package/templates/nextjs-app/_arch/mes/src/lib/api/observability.ts +20 -0
- package/templates/nextjs-app/_arch/mes/src/lib/api/queryClient.ts +30 -0
- package/templates/nextjs-app/_arch/mes/src/lib/api/serverFetch.ts +59 -0
- package/templates/nextjs-app/_arch/mes/src/lib/config/.gitkeep +0 -0
- package/templates/nextjs-app/_arch/mes/src/lib/test/createTestQueryClient.ts +18 -0
- package/templates/nextjs-app/_arch/mes/src/lib/test/index.ts +2 -0
- package/templates/nextjs-app/_arch/mes/src/lib/test/renderWithProviders.tsx +65 -0
- package/templates/nextjs-app/_arch/mes/src/lib/utils/.gitkeep +0 -0
- package/templates/nextjs-app/_arch/mes/src/lib/utils/formatDate.ts +26 -0
- package/templates/nextjs-app/_arch/mes/src/lib/utils/formatPrice.ts +18 -0
- package/templates/nextjs-app/_arch/mes/src/lib/utils/getQueryClient.ts +14 -0
- package/templates/nextjs-app/_arch/mes/src/pages/sign-in/api.ts +3 -0
- package/templates/nextjs-app/_arch/mes/src/pages/sign-in/components/.gitkeep +0 -0
- package/templates/nextjs-app/_arch/mes/src/pages/sign-in/hooks.ts +3 -0
- package/templates/nextjs-app/_arch/mes/src/pages/sign-in/index.tsx +14 -0
- package/templates/nextjs-app/_arch/mes/src/pages/sign-in/schema.ts +2 -0
- package/templates/nextjs-app/_arch/mes/tsconfig.json +24 -0
- package/templates/nextjs-standalone/_arch/mes/app/api/proxy/[...path]/route.ts +112 -0
- package/templates/nextjs-standalone/_arch/mes/app/globals.css +49 -0
- package/templates/nextjs-standalone/_arch/mes/app/layout.tsx +16 -0
- package/templates/nextjs-standalone/_arch/mes/app/sign-in/page.tsx +1 -0
- package/templates/nextjs-standalone/_arch/mes/eslint.config.js +137 -0
- package/templates/nextjs-standalone/_arch/mes/sh-ui.config.json +22 -0
- package/templates/nextjs-standalone/_arch/mes/src/components/common/.gitkeep +0 -0
- package/templates/nextjs-standalone/_arch/mes/src/components/common/FallbackBoundary/index.tsx +89 -0
- package/templates/nextjs-standalone/_arch/mes/src/components/common/PrefetchBoundary/index.tsx +35 -0
- package/templates/nextjs-standalone/_arch/mes/src/components/layouts/RootLayout.tsx +13 -0
- package/templates/nextjs-standalone/_arch/mes/src/components/providers/GlobalProvider/index.tsx +23 -0
- package/templates/nextjs-standalone/_arch/mes/src/components/providers/index.tsx +1 -0
- package/templates/nextjs-standalone/_arch/mes/src/components/providers/tanstack/QueryClientProvider.tsx +14 -0
- package/templates/nextjs-standalone/_arch/mes/src/components/providers/tanstack/TanstackDevtoolsProvider.tsx +13 -0
- package/templates/nextjs-standalone/_arch/mes/src/components/providers/theme/ThemeProvider.tsx +27 -0
- package/templates/nextjs-standalone/_arch/mes/src/hooks/.gitkeep +0 -0
- package/templates/nextjs-standalone/_arch/mes/src/hooks/useAppMutation.ts +59 -0
- package/templates/nextjs-standalone/_arch/mes/src/lib/api/.gitkeep +0 -0
- package/templates/nextjs-standalone/_arch/mes/src/lib/api/apiTypes.ts +21 -0
- package/templates/nextjs-standalone/_arch/mes/src/lib/api/clientFetch.ts +40 -0
- package/templates/nextjs-standalone/_arch/mes/src/lib/api/error.ts +12 -0
- package/templates/nextjs-standalone/_arch/mes/src/lib/api/errorMessages.ts +37 -0
- package/templates/nextjs-standalone/_arch/mes/src/lib/api/http.ts +13 -0
- package/templates/nextjs-standalone/_arch/mes/src/lib/api/observability.ts +20 -0
- package/templates/nextjs-standalone/_arch/mes/src/lib/api/queryClient.ts +30 -0
- package/templates/nextjs-standalone/_arch/mes/src/lib/api/serverFetch.ts +59 -0
- package/templates/nextjs-standalone/_arch/mes/src/lib/config/.gitkeep +0 -0
- package/templates/nextjs-standalone/_arch/mes/src/lib/styles/tokens.css +170 -0
- package/templates/nextjs-standalone/_arch/mes/src/lib/test/createTestQueryClient.ts +18 -0
- package/templates/nextjs-standalone/_arch/mes/src/lib/test/index.ts +2 -0
- package/templates/nextjs-standalone/_arch/mes/src/lib/test/renderWithProviders.tsx +65 -0
- package/templates/nextjs-standalone/_arch/mes/src/lib/utils/formatDate.ts +26 -0
- package/templates/nextjs-standalone/_arch/mes/src/lib/utils/formatPrice.ts +18 -0
- package/templates/nextjs-standalone/_arch/mes/src/lib/utils/getQueryClient.ts +14 -0
- package/templates/nextjs-standalone/_arch/mes/src/lib/utils/utils.ts +6 -0
- package/templates/nextjs-standalone/_arch/mes/src/pages/sign-in/api.ts +3 -0
- package/templates/nextjs-standalone/_arch/mes/src/pages/sign-in/components/.gitkeep +0 -0
- package/templates/nextjs-standalone/_arch/mes/src/pages/sign-in/hooks.ts +3 -0
- package/templates/nextjs-standalone/_arch/mes/src/pages/sign-in/index.tsx +14 -0
- package/templates/nextjs-standalone/_arch/mes/src/pages/sign-in/schema.ts +2 -0
- package/templates/nextjs-standalone/_arch/mes/tsconfig.json +39 -0
package/bin/sh-ui.mjs
CHANGED
|
@@ -35,7 +35,7 @@ const usage = `사용법:
|
|
|
35
35
|
(--apply 로 실제 적용)
|
|
36
36
|
sh-ui mcp MCP 서버(stdio) 시작 — IDE-내 AI용
|
|
37
37
|
sh-ui mcp init --client <name> IDE MCP 설정 파일에 sh-ui 엔트리 자동 추가
|
|
38
|
-
(claude-code | cursor | claude-desktop)
|
|
38
|
+
(claude-code | cursor | claude-desktop | codex)
|
|
39
39
|
옵션:
|
|
40
40
|
--skip-install (add, rename-app) 외부 패키지 자동 설치 생략
|
|
41
41
|
--diff (add) 파일을 쓰지 않고 변경 내역만 출력
|
|
@@ -2,6 +2,45 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$description": "sh-ui 릴리즈 노트 단일 소스. docs(React)와 showcase(Flutter)가 함께 읽는다. 새 릴리즈마다 맨 앞에 추가.",
|
|
4
4
|
"versions": [
|
|
5
|
+
{
|
|
6
|
+
"version": "0.77.0",
|
|
7
|
+
"date": "2026-05-11",
|
|
8
|
+
"title": "minor — `--arch mes` 프리셋 — 백오피스용 페이지 격리 구조",
|
|
9
|
+
"type": "minor",
|
|
10
|
+
"highlights": [
|
|
11
|
+
"**`sh-ui-cli create ... --arch mes` 신규 지원** — 스마트팩토리 MES·ERP·관리자 도구처럼 페이지 간 상호작용이 적은 CRUD-heavy 앱을 위한 페이지 격리 프리셋. FSD 의 6 레이어가 과한 백오피스 시나리오 전용.",
|
|
12
|
+
"**페이지 격리 구조** — 각 `src/pages/<name>/` 가 자기완결 슬롯 (index.tsx + components/ + api.ts + hooks.ts + schema.ts + columns.ts). `app/<route>/page.tsx` 는 `export { default } from '@/pages/<name>'` 한 줄 위임. 페이지 끼리는 import 금지 (eslint boundaries 강제).",
|
|
13
|
+
"**`src/pages/sign-in/` 스텁 동봉** — 슬롯 레이아웃을 보여주는 빈 페이지 (동작 X, 폴더 모양만). 새 페이지 추가 = 이 폴더 복사 → 이름 교체.",
|
|
14
|
+
"**tsconfig** — catch-all `@/*` → `./src/*`. 모든 import 가 `@/pages/...`, `@/components/...`, `@/lib/...` 처럼 짧고 일관.",
|
|
15
|
+
"monorepo (`apps/<name>` + `packages/ui/...`) 에서도 `--arch mes` 동작. nextjs-standalone / nextjs-app 두 템플릿 모두 mes overlay 포함."
|
|
16
|
+
],
|
|
17
|
+
"url": "https://github.com/sanghyeonKim0201/sh-ui/releases/tag/v0.77.0"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"version": "0.76.1",
|
|
21
|
+
"date": "2026-05-11",
|
|
22
|
+
"title": "patch — Switch ON 상태 thumb 가시성 (다크모드)",
|
|
23
|
+
"type": "patch",
|
|
24
|
+
"highlights": [
|
|
25
|
+
"**Switch — checked thumb 가 `--primary-foreground` 로 전환** — 다크모드는 `--primary` 가 거의 흰색(`#FAFAFA`)인데 thumb 가 하드코딩 `white` 라 ON 상태에서 thumb 와 트랙이 같은 색으로 묻혀 위치를 알 수 없던 문제 수정.",
|
|
26
|
+
"변종 4종 동기화 — `styles.css` / `styles.module.css` / `index.tailwind.tsx` / docs 복사본.",
|
|
27
|
+
"라이트/다크 양쪽 모두 트랙과 thumb 가 항상 반전 대비를 유지."
|
|
28
|
+
],
|
|
29
|
+
"url": "https://github.com/sanghyeonKim0201/sh-ui/releases/tag/v0.76.1"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"version": "0.76.0",
|
|
33
|
+
"date": "2026-05-11",
|
|
34
|
+
"title": "minor — `sh-ui mcp init` 가 codex CLI 도 자동 등록",
|
|
35
|
+
"type": "minor",
|
|
36
|
+
"highlights": [
|
|
37
|
+
"**`sh-ui mcp init --client codex` 신규 지원** — `~/.codex/config.toml` 의 `[mcp_servers.sh-ui]` 섹션을 자동 upsert. 이제 codex 사용자도 한 번에 sh-ui MCP 등록.",
|
|
38
|
+
"**TOML 텍스트 기반 머지** — 다른 섹션·주석·공백을 그대로 보존. `[mcp_servers.sh-ui]` 와 그 하위(`.env` 등)만 교체 후 새 블록을 append. 멱등 보장(연속 호출 결과 동일).",
|
|
39
|
+
"**inline-table 정의는 명시적 에러** — 기존 `[mcp_servers]` 부모 섹션 안에 `sh-ui = { ... }` 형태로 정의돼 있으면 자동 갱신 대신 명확한 메시지로 수동 정리 안내. 사용자 config 손상 방지.",
|
|
40
|
+
"claude-code / cursor / claude-desktop 동작은 변화 없음."
|
|
41
|
+
],
|
|
42
|
+
"url": "https://github.com/sanghyeonKim0201/sh-ui/releases/tag/v0.76.0"
|
|
43
|
+
},
|
|
5
44
|
{
|
|
6
45
|
"version": "0.75.0",
|
|
7
46
|
"date": "2026-05-11",
|
|
@@ -18,7 +18,7 @@ const switchRoot = cva(
|
|
|
18
18
|
);
|
|
19
19
|
|
|
20
20
|
const switchThumb = cva(
|
|
21
|
-
"block rounded-full bg-white shadow-[var(--shadow-sm)] transition-transform duration-150 ease-out motion-reduce:transition-none forced-colors:[background:ButtonText] forced-colors:data-[checked]:[background:HighlightText] forced-colors:data-[disabled]:[background:GrayText]",
|
|
21
|
+
"block rounded-full bg-white data-[checked]:bg-primary-foreground shadow-[var(--shadow-sm)] transition-transform duration-150 ease-out motion-reduce:transition-none forced-colors:[background:ButtonText] forced-colors:data-[checked]:[background:HighlightText] forced-colors:data-[disabled]:[background:GrayText]",
|
|
22
22
|
{
|
|
23
23
|
variants: {
|
|
24
24
|
size: {
|
|
@@ -74,6 +74,12 @@
|
|
|
74
74
|
transform: translateX(1.125rem);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
/* checked 상태에서 thumb 와 트랙(--primary)이 같은 색으로 보이지 않도록
|
|
78
|
+
--primary-foreground 로 전환 (다크모드: primary=near-white → thumb=dark). */
|
|
79
|
+
.sh-ui-switch[data-checked] .sh-ui-switch__thumb {
|
|
80
|
+
background: var(--primary-foreground);
|
|
81
|
+
}
|
|
82
|
+
|
|
77
83
|
/* reduced motion */
|
|
78
84
|
@media (prefers-reduced-motion: reduce) {
|
|
79
85
|
.sh-ui-switch,
|
|
@@ -74,6 +74,12 @@
|
|
|
74
74
|
transform: translateX(1.125rem);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
/* checked 상태에서 thumb 와 트랙(--primary)이 같은 색으로 보이지 않도록
|
|
78
|
+
--primary-foreground 로 전환 (다크모드: primary=near-white → thumb=dark). */
|
|
79
|
+
.switch[data-checked] .switch__thumb {
|
|
80
|
+
background: var(--primary-foreground);
|
|
81
|
+
}
|
|
82
|
+
|
|
77
83
|
/* reduced motion */
|
|
78
84
|
@media (prefers-reduced-motion: reduce) {
|
|
79
85
|
.switch,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$description": "컴포넌트별 토큰 의존성 (var(--*) 추출). build-registry-tokens.mjs 가 자동 생성.",
|
|
3
|
-
"$generated": "2026-05-
|
|
3
|
+
"$generated": "2026-05-11T07:02:18.245Z",
|
|
4
4
|
"components": {
|
|
5
5
|
"button": {
|
|
6
6
|
"plain": [
|
|
@@ -1556,6 +1556,7 @@
|
|
|
1556
1556
|
"--border-width-strong",
|
|
1557
1557
|
"--opacity-disabled",
|
|
1558
1558
|
"--primary",
|
|
1559
|
+
"--primary-foreground",
|
|
1559
1560
|
"--primary-hover",
|
|
1560
1561
|
"--ring",
|
|
1561
1562
|
"--shadow-sm"
|
|
@@ -1571,6 +1572,7 @@
|
|
|
1571
1572
|
"--border-width-strong",
|
|
1572
1573
|
"--opacity-disabled",
|
|
1573
1574
|
"--primary",
|
|
1575
|
+
"--primary-foreground",
|
|
1574
1576
|
"--primary-hover",
|
|
1575
1577
|
"--ring",
|
|
1576
1578
|
"--shadow-sm"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sh-ui-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.77.0",
|
|
4
4
|
"description": "sh-ui CLI — 프로젝트 스캐폴드(create) + 컴포넌트 추가(add/list/remove) + IDE-내 AI용 MCP 서버",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@inquirer/prompts": "^7.0.0",
|
|
29
29
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
30
|
-
"zod": "^4.3
|
|
30
|
+
"zod": "^4.4.3"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"fs-extra": "^11.
|
|
33
|
+
"fs-extra": "^11.3.5",
|
|
34
34
|
"vitest": "^3.2.4"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { fsdArch } from './fsd.js';
|
|
2
2
|
import { flatArch } from './flat.js';
|
|
3
|
+
import { mesArch } from './mes.js';
|
|
3
4
|
import { validateArchitectures } from './archSchema.js';
|
|
4
5
|
|
|
5
|
-
export const allArchitectures = [fsdArch, flatArch];
|
|
6
|
+
export const allArchitectures = [fsdArch, flatArch, mesArch];
|
|
6
7
|
|
|
7
8
|
// 모듈 로드 시점에 모든 arch 디스크립터를 schema 로 검증.
|
|
8
9
|
// 누락된 키, 잘못된 형태가 있으면 즉시 에러.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MES (Backoffice) 아키텍처 디스크립터.
|
|
3
|
+
*
|
|
4
|
+
* 스마트팩토리 MES·ERP·관리자 도구처럼 **페이지 간 상호작용이 거의 없고**
|
|
5
|
+
* 페이지마다 자기 컬럼/스키마/다이얼로그를 다시 정의하는 CRUD-heavy 앱을 위한
|
|
6
|
+
* 페이지 격리 구조.
|
|
7
|
+
*
|
|
8
|
+
* 핵심 컨벤션:
|
|
9
|
+
* - `app/<route>/page.tsx` 는 한 줄짜리 위임 (`export { default } from "@/pages/<name>"`)
|
|
10
|
+
* - 페이지 본체는 `src/pages/<name>/` 에 자기완결로 거주 — index.tsx, components/,
|
|
11
|
+
* api.ts, hooks.ts, schema.ts, columns.ts.
|
|
12
|
+
* - 두 페이지 이상에서 같은 코드가 보이기 시작하면 그때 `src/components/` `src/hooks/`
|
|
13
|
+
* `src/lib/` 로 승격. **두 번째 쓰임이 나타나기 전엔 공용 만들지 않기.**
|
|
14
|
+
*
|
|
15
|
+
* tsconfig 의 `paths` 는 FSD 처럼 catch-all `@/*` 를 쓰되 매핑 대상이 `./src/*` —
|
|
16
|
+
* 즉 모든 import 가 `@/pages/...`, `@/components/...`, `@/lib/...` 처럼 `src/` 루트
|
|
17
|
+
* 기준으로 짧게 정리된다.
|
|
18
|
+
*/
|
|
19
|
+
export const mesArch = {
|
|
20
|
+
name: 'mes',
|
|
21
|
+
label: 'MES (Backoffice)',
|
|
22
|
+
description:
|
|
23
|
+
'페이지 격리 구조 (src/pages/<name>/ 자기완결). 페이지 간 상호작용이 적은 CRUD-heavy 관리자 도구·MES 류에 적합.',
|
|
24
|
+
platforms: ['next'],
|
|
25
|
+
|
|
26
|
+
paths: {
|
|
27
|
+
layouts: 'src/components/layouts',
|
|
28
|
+
providers: 'src/components/providers',
|
|
29
|
+
api: 'src/lib/api',
|
|
30
|
+
config: 'src/lib/config',
|
|
31
|
+
hooks: 'src/hooks',
|
|
32
|
+
utils: 'src/lib/utils',
|
|
33
|
+
ui: 'src/components/common',
|
|
34
|
+
test: 'src/lib/test',
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
aliases: {
|
|
38
|
+
layouts: '@/components/layouts',
|
|
39
|
+
providers: '@/components/providers',
|
|
40
|
+
api: '@/lib/api',
|
|
41
|
+
config: '@/lib/config',
|
|
42
|
+
hooks: '@/hooks',
|
|
43
|
+
utils: '@/lib/utils',
|
|
44
|
+
ui: '@/components/common',
|
|
45
|
+
test: '@/lib/test',
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
// Catch-all `@/*` → `./src/*`. FSD 와 같은 결의 명명이지만 src/ 루트가 바뀜.
|
|
49
|
+
// `@/pages/customers`, `@/components/...`, `@/lib/api/...` 모두 자연스럽게 풀린다.
|
|
50
|
+
tsconfigPaths: {
|
|
51
|
+
'@/*': ['./src/*'],
|
|
52
|
+
},
|
|
53
|
+
};
|
package/src/mcp-init.mjs
CHANGED
|
@@ -4,20 +4,25 @@
|
|
|
4
4
|
// claude-code — project: <cwd>/.mcp.json, user: ~/.claude.json
|
|
5
5
|
// cursor — project: <cwd>/.cursor/mcp.json, user: ~/.cursor/mcp.json
|
|
6
6
|
// claude-desktop — user 만 (OS 별 경로 자동 분기)
|
|
7
|
+
// codex — user 만 (~/.codex/config.toml — TOML 포맷)
|
|
7
8
|
//
|
|
8
9
|
// 주의: Claude Code 의 user-scope 설정은 `~/.claude/mcp.json` 같은 별도
|
|
9
10
|
// 파일이 아니라 사용자 settings 전체가 들어가는 단일 JSON `~/.claude.json`
|
|
10
11
|
// 이다. 이 파일에는 mcpServers 외에도 projects·history 등 다른 키가 같이
|
|
11
|
-
// 들어 있으므로, 머지 시 다른 키를 절대 건드리지 않아야 한다.
|
|
12
|
+
// 들어 있으므로, 머지 시 다른 키를 절대 건드리지 않아야 한다. codex 의
|
|
13
|
+
// config.toml 도 같은 원칙 — 다른 섹션은 건드리지 않고 `[mcp_servers.sh-ui]`
|
|
14
|
+
// 만 upsert 한다.
|
|
12
15
|
//
|
|
13
|
-
// 동작:
|
|
16
|
+
// 동작: JSON 클라이언트는 mcpServers.sh-ui 머지(있으면 덮어쓰기). codex 는
|
|
17
|
+
// `[mcp_servers.sh-ui]` 섹션 텍스트를 통째로 교체(존재하지 않으면 append).
|
|
18
|
+
// 디렉토리는 자동 생성.
|
|
14
19
|
|
|
15
20
|
import { readFile, writeFile, mkdir } from "node:fs/promises";
|
|
16
21
|
import { existsSync } from "node:fs";
|
|
17
22
|
import { dirname, resolve, relative } from "node:path";
|
|
18
23
|
import { homedir, platform as osPlatform } from "node:os";
|
|
19
24
|
|
|
20
|
-
const CLIENTS = ["claude-code", "cursor", "claude-desktop"];
|
|
25
|
+
const CLIENTS = ["claude-code", "cursor", "claude-desktop", "codex"];
|
|
21
26
|
|
|
22
27
|
/**
|
|
23
28
|
* `npx -y <cliName> mcp` 형태의 MCP 엔트리 빌더.
|
|
@@ -68,12 +73,138 @@ function resolveConfigPath(client, scope, cwd) {
|
|
|
68
73
|
// linux + 기타
|
|
69
74
|
return resolve(home, ".config", "Claude", "claude_desktop_config.json");
|
|
70
75
|
}
|
|
76
|
+
if (client === "codex") {
|
|
77
|
+
if (scope !== "user") {
|
|
78
|
+
throw new Error(
|
|
79
|
+
"codex 는 user 스코프만 지원합니다. --scope user 또는 --scope 생략.",
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
return resolve(home, ".codex", "config.toml");
|
|
83
|
+
}
|
|
71
84
|
throw new Error(`알 수 없는 클라이언트: ${client}. 허용: ${CLIENTS.join(", ")}`);
|
|
72
85
|
}
|
|
73
86
|
|
|
74
|
-
/** 클라이언트별 기본 스코프. claude-desktop
|
|
87
|
+
/** 클라이언트별 기본 스코프. claude-desktop·codex 는 user 강제. */
|
|
75
88
|
function defaultScope(client) {
|
|
76
|
-
return client === "claude-desktop" ? "user" : "project";
|
|
89
|
+
return client === "claude-desktop" || client === "codex" ? "user" : "project";
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* codex `~/.codex/config.toml` 의 `[mcp_servers.<name>]` 섹션 upsert.
|
|
94
|
+
*
|
|
95
|
+
* 텍스트 기반 — 다른 섹션·주석·공백을 보존하기 위해 TOML 파서를 안 쓴다.
|
|
96
|
+
* `[mcp_servers.<name>]` 와 그 하위 (`[mcp_servers.<name>.env]` 등) 모두
|
|
97
|
+
* 제거 후, 새 블록을 파일 끝에 append.
|
|
98
|
+
*
|
|
99
|
+
* 한계: 사용자가 inline-table 형태(`[mcp_servers]` 부모 섹션 안에
|
|
100
|
+
* `sh-ui = { command = ... }`)로 정의해두면 그건 감지·정리하지 못한다.
|
|
101
|
+
* 그 경우 새 섹션과 충돌하므로 detect → 명시적 에러.
|
|
102
|
+
*/
|
|
103
|
+
export function upsertCodexMcpServer(raw, name, entry) {
|
|
104
|
+
detectInlineMcpServer(raw, name);
|
|
105
|
+
const had = hasCodexMcpServerSection(raw, name);
|
|
106
|
+
|
|
107
|
+
const lines = raw.split("\n");
|
|
108
|
+
const out = [];
|
|
109
|
+
let i = 0;
|
|
110
|
+
while (i < lines.length) {
|
|
111
|
+
if (isOurSectionHeader(lines[i], name)) {
|
|
112
|
+
// 섹션 본문 끝(다음 헤더 직전 또는 EOF)까지 skip
|
|
113
|
+
i++;
|
|
114
|
+
while (i < lines.length && !isAnySectionHeader(lines[i])) i++;
|
|
115
|
+
// 새 블록을 끝에 붙일 거라, 우리가 지운 섹션 직전의 빈 줄은 정리
|
|
116
|
+
while (out.length && out[out.length - 1].trim() === "") out.pop();
|
|
117
|
+
} else {
|
|
118
|
+
out.push(lines[i]);
|
|
119
|
+
i++;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
let head = out.join("\n").replace(/\s+$/, "");
|
|
124
|
+
const block = renderCodexBlock(name, entry);
|
|
125
|
+
const next = head === "" ? block + "\n" : head + "\n\n" + block + "\n";
|
|
126
|
+
return { text: next, had };
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function isAnySectionHeader(line) {
|
|
130
|
+
return /^\s*\[[^\]]+\]\s*$/.test(line);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function isOurSectionHeader(line, name) {
|
|
134
|
+
const m = line.match(/^\s*\[([^\]]+)\]\s*$/);
|
|
135
|
+
if (!m) return false;
|
|
136
|
+
const path = m[1].trim();
|
|
137
|
+
const bare = `mcp_servers.${name}`;
|
|
138
|
+
const quoted = `mcp_servers."${name}"`;
|
|
139
|
+
return (
|
|
140
|
+
path === bare ||
|
|
141
|
+
path === quoted ||
|
|
142
|
+
path.startsWith(bare + ".") ||
|
|
143
|
+
path.startsWith(quoted + ".")
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
function hasCodexMcpServerSection(raw, name) {
|
|
148
|
+
return raw.split("\n").some((line) => {
|
|
149
|
+
const m = line.match(/^\s*\[([^\]]+)\]\s*$/);
|
|
150
|
+
if (!m) return false;
|
|
151
|
+
const path = m[1].trim();
|
|
152
|
+
return path === `mcp_servers.${name}` || path === `mcp_servers."${name}"`;
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/** `[mcp_servers]` 부모 섹션 안에 `<name> =` 로 inline 정의돼 있으면 에러. */
|
|
157
|
+
function detectInlineMcpServer(raw, name) {
|
|
158
|
+
const lines = raw.split("\n");
|
|
159
|
+
let inMcpServers = false;
|
|
160
|
+
for (const line of lines) {
|
|
161
|
+
const headerMatch = line.match(/^\s*\[([^\]]+)\]\s*$/);
|
|
162
|
+
if (headerMatch) {
|
|
163
|
+
inMcpServers = headerMatch[1].trim() === "mcp_servers";
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
if (!inMcpServers) continue;
|
|
167
|
+
const keyRegex = new RegExp(`^\\s*(?:${escapeReg(name)}|"${escapeReg(name)}")\\s*=`);
|
|
168
|
+
if (keyRegex.test(line)) {
|
|
169
|
+
throw new Error(
|
|
170
|
+
`기존 config.toml 의 [mcp_servers] 섹션 안에 '${name}' 가 inline-table 로 정의돼 있습니다.\n` +
|
|
171
|
+
`자동 갱신을 지원하지 않으니, 해당 줄을 직접 제거한 뒤 다시 실행하세요.`,
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
function escapeReg(s) {
|
|
178
|
+
return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
function renderCodexBlock(name, entry) {
|
|
182
|
+
const header = `[mcp_servers.${tomlBareOrQuoted(name)}]`;
|
|
183
|
+
const lines = [header];
|
|
184
|
+
lines.push(`command = ${tomlBasicString(entry.command)}`);
|
|
185
|
+
lines.push(`args = ${tomlInlineArray(entry.args)}`);
|
|
186
|
+
if (entry.env && Object.keys(entry.env).length > 0) {
|
|
187
|
+
lines.push("");
|
|
188
|
+
lines.push(`[mcp_servers.${tomlBareOrQuoted(name)}.env]`);
|
|
189
|
+
for (const [k, v] of Object.entries(entry.env)) {
|
|
190
|
+
lines.push(`${tomlBareOrQuoted(k)} = ${tomlBasicString(v)}`);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
return lines.join("\n");
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
function tomlBareOrQuoted(key) {
|
|
197
|
+
return /^[A-Za-z0-9_-]+$/.test(key) ? key : tomlBasicString(key);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
function tomlBasicString(s) {
|
|
201
|
+
// TOML basic string 은 JSON string 과 escape 규칙이 호환 (\" \\ \n \t \r \b \f \uXXXX).
|
|
202
|
+
// ASCII 위주 값(npx, sh-ui-cli, mcp 등)에 한해 안전.
|
|
203
|
+
return JSON.stringify(String(s));
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
function tomlInlineArray(arr) {
|
|
207
|
+
return `[${arr.map(tomlBasicString).join(", ")}]`;
|
|
77
208
|
}
|
|
78
209
|
|
|
79
210
|
/** JSON 읽기 (없으면 빈 객체). 깨진 JSON 은 명시적 에러. */
|
|
@@ -116,28 +247,38 @@ export async function mcpInit({ cwd, args }) {
|
|
|
116
247
|
}
|
|
117
248
|
|
|
118
249
|
const configPath = resolveConfigPath(client, scope, cwd);
|
|
119
|
-
const
|
|
250
|
+
const entry = await buildShUiEntry();
|
|
120
251
|
|
|
121
|
-
|
|
122
|
-
|
|
252
|
+
let had;
|
|
253
|
+
if (client === "codex") {
|
|
254
|
+
const raw = existsSync(configPath) ? await readFile(configPath, "utf8") : "";
|
|
255
|
+
const { text, had: existed } = upsertCodexMcpServer(raw, "sh-ui", entry);
|
|
256
|
+
had = existed;
|
|
257
|
+
await mkdir(dirname(configPath), { recursive: true });
|
|
258
|
+
await writeFile(configPath, text, "utf8");
|
|
259
|
+
} else {
|
|
260
|
+
const config = await readJsonOrEmpty(configPath);
|
|
261
|
+
if (!config.mcpServers || typeof config.mcpServers !== "object") {
|
|
262
|
+
config.mcpServers = {};
|
|
263
|
+
}
|
|
264
|
+
had = Boolean(config.mcpServers["sh-ui"]);
|
|
265
|
+
config.mcpServers["sh-ui"] = entry;
|
|
266
|
+
await mkdir(dirname(configPath), { recursive: true });
|
|
267
|
+
await writeFile(configPath, JSON.stringify(config, null, 2) + "\n", "utf8");
|
|
123
268
|
}
|
|
124
269
|
|
|
125
|
-
const before = config.mcpServers["sh-ui"];
|
|
126
|
-
config.mcpServers["sh-ui"] = await buildShUiEntry();
|
|
127
|
-
|
|
128
|
-
await mkdir(dirname(configPath), { recursive: true });
|
|
129
|
-
await writeFile(configPath, JSON.stringify(config, null, 2) + "\n", "utf8");
|
|
130
|
-
|
|
131
270
|
const rel = relative(cwd, configPath);
|
|
132
271
|
const display = rel.startsWith("..") ? configPath : rel;
|
|
133
|
-
const verb =
|
|
272
|
+
const verb = had ? "갱신" : "추가";
|
|
134
273
|
console.log(`✓ sh-ui MCP 엔트리 ${verb} → ${display}`);
|
|
135
274
|
console.log(` client: ${client} (scope: ${scope})`);
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
275
|
+
const restartTarget = {
|
|
276
|
+
"claude-code": "Claude Code",
|
|
277
|
+
cursor: "Cursor",
|
|
278
|
+
"claude-desktop": "Claude Desktop",
|
|
279
|
+
codex: "codex CLI 세션",
|
|
280
|
+
}[client];
|
|
281
|
+
console.log(`\n다음 단계: ${restartTarget} 를 재시작하면 sh-ui 툴이 활성화됩니다.`);
|
|
141
282
|
}
|
|
142
283
|
|
|
143
284
|
/** --key=value / --key value 파싱 */
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import boundaries from "eslint-plugin-boundaries"
|
|
2
|
+
import checkFile from "eslint-plugin-check-file"
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* MES (Backoffice) ESLint configuration.
|
|
6
|
+
*
|
|
7
|
+
* 페이지 격리 + 단방향 의존을 강제:
|
|
8
|
+
*
|
|
9
|
+
* - `src/lib/*` — lib 끼리만 (UI/페이지 모름)
|
|
10
|
+
* - `src/hooks/*` — hooks / lib 만
|
|
11
|
+
* - `src/components/*` — components / hooks / lib 만
|
|
12
|
+
* - `src/pages/*` — components / hooks / lib 만. **다른 페이지 import 금지** (격리)
|
|
13
|
+
* - `app/` — pages / components / hooks / lib 모두 OK (한 줄 위임)
|
|
14
|
+
*
|
|
15
|
+
* @type {import("eslint").Linter.Config[]}
|
|
16
|
+
*/
|
|
17
|
+
export const mesConfig = [
|
|
18
|
+
// ── boundaries ──
|
|
19
|
+
{
|
|
20
|
+
plugins: { boundaries },
|
|
21
|
+
settings: {
|
|
22
|
+
"import/resolver": {
|
|
23
|
+
typescript: { alwaysTryTypes: true },
|
|
24
|
+
},
|
|
25
|
+
"boundaries/elements": [
|
|
26
|
+
{ type: "lib", pattern: ["src/lib/*"], mode: "folder" },
|
|
27
|
+
{ type: "hooks", pattern: ["src/hooks"], mode: "folder" },
|
|
28
|
+
{ type: "components", pattern: ["src/components/*"], mode: "folder" },
|
|
29
|
+
{ type: "pages", pattern: ["src/pages/*"], mode: "folder" },
|
|
30
|
+
{ type: "app", pattern: ["app"], mode: "folder" },
|
|
31
|
+
],
|
|
32
|
+
"boundaries/ignore": ["**/*.test.*", "**/*.spec.*"],
|
|
33
|
+
},
|
|
34
|
+
rules: {
|
|
35
|
+
"boundaries/element-types": [
|
|
36
|
+
"warn",
|
|
37
|
+
{
|
|
38
|
+
default: "disallow",
|
|
39
|
+
rules: [
|
|
40
|
+
{ from: "app", allow: ["pages", "components", "hooks", "lib"] },
|
|
41
|
+
// pages 끼리는 import 금지 — 페이지 격리 원칙
|
|
42
|
+
{ from: "pages", allow: ["components", "hooks", "lib"] },
|
|
43
|
+
{ from: "components", allow: ["components", "hooks", "lib"] },
|
|
44
|
+
{ from: "hooks", allow: ["hooks", "lib"] },
|
|
45
|
+
{ from: "lib", allow: ["lib"] },
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
// ── check-file (MES 는 .tsx PASCAL, .ts CAMEL) ──
|
|
53
|
+
{
|
|
54
|
+
plugins: { "check-file": checkFile },
|
|
55
|
+
rules: {
|
|
56
|
+
"check-file/filename-naming-convention": [
|
|
57
|
+
"error",
|
|
58
|
+
{
|
|
59
|
+
"**/components/**/*.tsx": "PASCAL_CASE",
|
|
60
|
+
"**/pages/**/components/**/*.tsx": "PASCAL_CASE",
|
|
61
|
+
"**/lib/**/*.ts": "CAMEL_CASE",
|
|
62
|
+
"**/hooks/**/*.ts": "CAMEL_CASE",
|
|
63
|
+
},
|
|
64
|
+
{ ignoreMiddleExtensions: true },
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
files: [
|
|
70
|
+
"**/index.tsx", "**/index.ts",
|
|
71
|
+
"**/layout.tsx", "**/page.tsx",
|
|
72
|
+
"**/error.tsx", "**/not-found.tsx",
|
|
73
|
+
"**/routing.ts", "**/navigation.ts", "**/request.ts",
|
|
74
|
+
// MES 페이지 concern 파일들
|
|
75
|
+
"**/pages/**/api.ts", "**/pages/**/schema.ts",
|
|
76
|
+
"**/pages/**/columns.ts", "**/pages/**/hooks.ts",
|
|
77
|
+
],
|
|
78
|
+
rules: {
|
|
79
|
+
"check-file/filename-naming-convention": "off",
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
]
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { cookies } from 'next/headers';
|
|
2
|
+
import { NextResponse, type NextRequest } from 'next/server';
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
captureApiError,
|
|
6
|
+
logApiError,
|
|
7
|
+
} from '@/lib/api/observability';
|
|
8
|
+
|
|
9
|
+
const API_URL = process.env.API_URL ?? 'http://localhost:8080/api';
|
|
10
|
+
const ACCESS_TOKEN_COOKIE = 'accessToken';
|
|
11
|
+
const LOCALE_COOKIE = 'NEXT_LOCALE';
|
|
12
|
+
|
|
13
|
+
const proxyRequest = async (
|
|
14
|
+
request: NextRequest,
|
|
15
|
+
ctx: { params: Promise<{ path: string[] }> },
|
|
16
|
+
method: string,
|
|
17
|
+
) => {
|
|
18
|
+
const { path } = await ctx.params;
|
|
19
|
+
const apiPath = path.join('/');
|
|
20
|
+
const url = new URL(`${API_URL}/${apiPath}`);
|
|
21
|
+
|
|
22
|
+
request.nextUrl.searchParams.forEach((value, key) => {
|
|
23
|
+
url.searchParams.set(key, value);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
const cookieStore = await cookies();
|
|
27
|
+
const accessToken = cookieStore.get(ACCESS_TOKEN_COOKIE)?.value;
|
|
28
|
+
const locale =
|
|
29
|
+
cookieStore.get(LOCALE_COOKIE)?.value ??
|
|
30
|
+
request.headers.get('Accept-Language') ??
|
|
31
|
+
undefined;
|
|
32
|
+
|
|
33
|
+
const headers: Record<string, string> = {};
|
|
34
|
+
if (accessToken) headers.Authorization = `Bearer ${accessToken}`;
|
|
35
|
+
if (locale) headers['Accept-Language'] = locale;
|
|
36
|
+
|
|
37
|
+
let body: BodyInit | undefined;
|
|
38
|
+
if (method !== 'GET' && method !== 'HEAD') {
|
|
39
|
+
const contentType = request.headers.get('Content-Type');
|
|
40
|
+
if (contentType?.includes('multipart/form-data')) {
|
|
41
|
+
body = await request.formData();
|
|
42
|
+
} else {
|
|
43
|
+
headers['Content-Type'] = 'application/json';
|
|
44
|
+
body = await request.text();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
let response: Response;
|
|
49
|
+
try {
|
|
50
|
+
response = await fetch(url.toString(), { method, headers, body });
|
|
51
|
+
} catch (error) {
|
|
52
|
+
console.error(`[PROXY] ${method} ${url.toString()} —`, error);
|
|
53
|
+
return NextResponse.json(
|
|
54
|
+
{
|
|
55
|
+
result: 'ERROR',
|
|
56
|
+
data: null,
|
|
57
|
+
error: {
|
|
58
|
+
code: 'NETWORK_ERROR',
|
|
59
|
+
message: 'Failed to reach upstream server.',
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
{ status: 502 },
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const data = await response.json();
|
|
67
|
+
|
|
68
|
+
if (!response.ok) {
|
|
69
|
+
logApiError('PROXY', {
|
|
70
|
+
url: url.toString(),
|
|
71
|
+
method,
|
|
72
|
+
status: response.status,
|
|
73
|
+
requestBody: typeof body === 'string' ? body : undefined,
|
|
74
|
+
responseBody: data,
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
captureApiError({
|
|
78
|
+
url: url.toString(),
|
|
79
|
+
apiPath,
|
|
80
|
+
method,
|
|
81
|
+
status: response.status,
|
|
82
|
+
responseBody: data,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return NextResponse.json(data, { status: response.status });
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export const GET = (
|
|
90
|
+
req: NextRequest,
|
|
91
|
+
ctx: { params: Promise<{ path: string[] }> },
|
|
92
|
+
) => proxyRequest(req, ctx, 'GET');
|
|
93
|
+
|
|
94
|
+
export const POST = (
|
|
95
|
+
req: NextRequest,
|
|
96
|
+
ctx: { params: Promise<{ path: string[] }> },
|
|
97
|
+
) => proxyRequest(req, ctx, 'POST');
|
|
98
|
+
|
|
99
|
+
export const PUT = (
|
|
100
|
+
req: NextRequest,
|
|
101
|
+
ctx: { params: Promise<{ path: string[] }> },
|
|
102
|
+
) => proxyRequest(req, ctx, 'PUT');
|
|
103
|
+
|
|
104
|
+
export const PATCH = (
|
|
105
|
+
req: NextRequest,
|
|
106
|
+
ctx: { params: Promise<{ path: string[] }> },
|
|
107
|
+
) => proxyRequest(req, ctx, 'PATCH');
|
|
108
|
+
|
|
109
|
+
export const DELETE = (
|
|
110
|
+
req: NextRequest,
|
|
111
|
+
ctx: { params: Promise<{ path: string[] }> },
|
|
112
|
+
) => proxyRequest(req, ctx, 'DELETE');
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Metadata } from 'next';
|
|
2
|
+
import '@workspace/ui-app-name/globals.css';
|
|
3
|
+
import { RootLayout } from '@/components/layouts/RootLayout';
|
|
4
|
+
|
|
5
|
+
export const metadata: Metadata = {
|
|
6
|
+
title: 'sh-ui app',
|
|
7
|
+
description: 'sh-ui 기반 앱 — metadata 를 변경하세요.',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export default function Layout({
|
|
11
|
+
children,
|
|
12
|
+
}: Readonly<{
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
}>) {
|
|
15
|
+
return <RootLayout>{children}</RootLayout>;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@/pages/sign-in';
|
|
File without changes
|