261117_01_ENH: ui cn을 npm cn 패키지로 교체(clsx·tailwind-merge 제거) 및 Node 22 이상 명시

This commit is contained in:
2026-11-17 08:53:32 +09:00
parent ea25f47fce
commit 8ac215c667
5 changed files with 32 additions and 32 deletions

View File

@@ -17,6 +17,12 @@ Before each related task, read the current contents of every matching reference,
If a task spans multiple scopes, read every matching reference. Generated files under `.agent-harness/references/` are read-only copies; edit KriFrontCommon's `.agent/consumer.md` or `.agent/consumer-references/` and recompose instead.
## Class Name Helper
- `@kri/common/ui` exports `cn` and `ClassValue` from the npm `cn` package (pinned exactly). It replaces `clsx` + `tailwind-merge` with the same public signature and merge results; consumers keep importing `cn` through their `@/lib/utils` re-export.
- `@kri/common` now declares `engines.node >=22` because `cn` requires Node.js 22 or later.
- shadcn CLI may add `cn` to a consumer's own dependencies when installing components; that is expected and harmless.
## Noti-hub SMS Types
- `MessageType.SMS = 21`, `LMS = 22`, `MMS = 23`; `ChannelType.SMS = 2` is unchanged. `SMS_TYPE_ARRAY` and `SmsType` include all three.