@juho0719/cckit 0.2.4 → 0.2.6

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.
Files changed (46) hide show
  1. package/assets/skills/plan-viewer/SKILL.md +162 -0
  2. package/assets/skills/plan-viewer/scripts/frame-template.html +266 -0
  3. package/assets/skills/plan-viewer/scripts/helper.js +84 -0
  4. package/assets/skills/plan-viewer/scripts/server.js +334 -0
  5. package/assets/skills/plan-viewer/scripts/start-server.sh +122 -0
  6. package/assets/skills/plan-viewer/scripts/stop-server.sh +27 -0
  7. package/assets/skills/plan-viewer/spec-reviewer-prompt.md +47 -0
  8. package/assets/skills/plan-viewer/visual-guide.md +234 -0
  9. package/assets/skills/scaffold/SKILL.md +119 -0
  10. package/assets/skills/scaffold/presets.md +94 -0
  11. package/assets/skills/scaffold/scripts/common.sh +73 -0
  12. package/assets/skills/scaffold/scripts/monorepo.sh +449 -0
  13. package/assets/skills/scaffold/scripts/nextjs-fullstack.sh +305 -0
  14. package/dist/agents-LI3AHTTX.js +10 -0
  15. package/dist/{chunk-3Y26YU4R.js → chunk-33CGM7PI.js} +7 -3
  16. package/dist/{chunk-5XOKKPAA.js → chunk-4NEXS2FY.js} +5 -0
  17. package/dist/{chunk-W7RWPDBH.js → chunk-52Q6TDAH.js} +7 -3
  18. package/dist/{chunk-E3INXQNO.js → chunk-6COBMJZ6.js} +5 -1
  19. package/dist/{chunk-SW3OJLHC.js → chunk-7VVGOZDZ.js} +5 -1
  20. package/dist/{chunk-K25UZZVG.js → chunk-FLBB3OH4.js} +5 -0
  21. package/dist/{chunk-ID643AV4.js → chunk-H4YDYF2X.js} +7 -3
  22. package/dist/{chunk-KEENFBLL.js → chunk-MSCXXA2X.js} +6 -2
  23. package/dist/{chunk-3GUKEMND.js → chunk-T5VPG46W.js} +5 -0
  24. package/dist/chunk-TLOORH3N.js +50 -0
  25. package/dist/{chunk-W63UKEIT.js → chunk-VN5S6JGZ.js} +5 -0
  26. package/dist/{chunk-EYY2IZ7N.js → chunk-ZBGGTONN.js} +7 -3
  27. package/dist/claudemd-NWG63O2G.js +8 -0
  28. package/dist/cli-KHRWBZPV.js +2735 -0
  29. package/dist/commands-UAOYWGUX.js +10 -0
  30. package/dist/hooks-NONUWI6V.js +10 -0
  31. package/dist/index.js +21 -17
  32. package/dist/mcps-ISPG3F7T.js +7 -0
  33. package/dist/{paths-FT6KBIRD.js → paths-B754SP2D.js} +2 -1
  34. package/dist/{registry-KRLOB4TH.js → registry-6CLDID6R.js} +3 -2
  35. package/dist/rules-GZEAGCSL.js +10 -0
  36. package/dist/skills-ML3QLXUK.js +9 -0
  37. package/dist/{uninstall-cli-GLYJG5V2.js → uninstall-cli-XU7E26JX.js} +14 -2
  38. package/package.json +1 -1
  39. package/dist/agents-AEKT67A6.js +0 -9
  40. package/dist/claudemd-KKQ2DL7P.js +0 -7
  41. package/dist/cli-KZYBSIXO.js +0 -314
  42. package/dist/commands-P5LILVZ5.js +0 -9
  43. package/dist/hooks-A2WQ2LGG.js +0 -9
  44. package/dist/mcps-67Q7TBGW.js +0 -6
  45. package/dist/rules-EFSJ3L3A.js +0 -9
  46. package/dist/skills-ULMW3UCM.js +0 -8
@@ -0,0 +1,305 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5
+ source "$SCRIPT_DIR/common.sh"
6
+
7
+ # ── Defaults ──────────────────────────────────────────────────────────────────
8
+ DB="sqlite"
9
+ UI="shadcn"
10
+ PM="bun"
11
+
12
+ # ── Usage ─────────────────────────────────────────────────────────────────────
13
+ usage() {
14
+ error "사용법: bash nextjs-fullstack.sh <project-name> [--db sqlite|postgres] [--ui shadcn|none] [--pm bun|npm|pnpm]"
15
+ exit 1
16
+ }
17
+
18
+ if [ $# -lt 1 ]; then
19
+ usage
20
+ fi
21
+
22
+ PROJECT_ARG="$1"
23
+ shift
24
+
25
+ # ── Flag parsing ───────────────────────────────────────────────────────────────
26
+ while [ $# -gt 0 ]; do
27
+ case "$1" in
28
+ --db)
29
+ DB="$2"; shift 2 ;;
30
+ --ui)
31
+ UI="$2"; shift 2 ;;
32
+ --pm)
33
+ PM="$2"; shift 2 ;;
34
+ *)
35
+ error "알 수 없는 옵션: $1"; usage ;;
36
+ esac
37
+ done
38
+
39
+ # ── Package manager helpers ────────────────────────────────────────────────────
40
+ case "$PM" in
41
+ bun)
42
+ PKG_X="bunx"
43
+ PKG_ADD="bun add"
44
+ PKG_ADD_DEV="bun add -d"
45
+ PKG_RUN="bun run"
46
+ CREATE_FLAG="--use-bun"
47
+ ;;
48
+ npm)
49
+ PKG_X="npx"
50
+ PKG_ADD="npm install"
51
+ PKG_ADD_DEV="npm install --save-dev"
52
+ PKG_RUN="npm run"
53
+ CREATE_FLAG="--use-npm"
54
+ ;;
55
+ pnpm)
56
+ PKG_X="pnpm dlx"
57
+ PKG_ADD="pnpm add"
58
+ PKG_ADD_DEV="pnpm add -D"
59
+ PKG_RUN="pnpm run"
60
+ CREATE_FLAG="--use-pnpm"
61
+ ;;
62
+ *)
63
+ error "지원하지 않는 패키지 매니저: $PM (bun|npm|pnpm)"; exit 1 ;;
64
+ esac
65
+
66
+ # ── Prerequisite check ─────────────────────────────────────────────────────────
67
+ step "사전 조건 확인"
68
+ check_command "$PM" "https://bun.sh / https://npmjs.com / https://pnpm.io"
69
+ check_command git "https://git-scm.com"
70
+ check_command node "https://nodejs.org"
71
+
72
+ # ── Resolve target directory ───────────────────────────────────────────────────
73
+ resolve_target_dir "$PROJECT_ARG"
74
+
75
+ # ── create-next-app ────────────────────────────────────────────────────────────
76
+ step "create-next-app 실행"
77
+ if [ "$INIT_IN_PLACE" = true ]; then
78
+ $PKG_X create-next-app@latest . --typescript --tailwind --eslint --app --src-dir --import-alias "@/*" $CREATE_FLAG --yes
79
+ else
80
+ $PKG_X create-next-app@latest "$PROJECT_NAME" --typescript --tailwind --eslint --app --src-dir --import-alias "@/*" $CREATE_FLAG --yes
81
+ fi
82
+ success "create-next-app 완료"
83
+
84
+ cd "$TARGET_DIR"
85
+
86
+ # ── Drizzle installation ───────────────────────────────────────────────────────
87
+ if [ "$DB" = "sqlite" ]; then
88
+ step "Drizzle ORM + better-sqlite3 설치"
89
+ $PKG_ADD drizzle-orm better-sqlite3
90
+ $PKG_ADD_DEV drizzle-kit @types/better-sqlite3
91
+ success "Drizzle (sqlite) 설치 완료"
92
+ elif [ "$DB" = "postgres" ]; then
93
+ step "Drizzle ORM + pg 설치"
94
+ $PKG_ADD drizzle-orm pg
95
+ $PKG_ADD_DEV drizzle-kit @types/pg
96
+ success "Drizzle (postgres) 설치 완료"
97
+ else
98
+ error "지원하지 않는 DB: $DB (sqlite|postgres)"; exit 1
99
+ fi
100
+
101
+ # ── DB schema & index ─────────────────────────────────────────────────────────
102
+ step "DB 디렉토리 및 기본 스키마 생성"
103
+ mkdir -p src/lib/db
104
+ mkdir -p src/lib/db/migrations
105
+
106
+ if [ "$DB" = "sqlite" ]; then
107
+ cat > src/lib/db/schema.ts <<'EOF'
108
+ import { int, sqliteTable, text } from 'drizzle-orm/sqlite-core'
109
+
110
+ export const users = sqliteTable('users', {
111
+ id: int('id').primaryKey({ autoIncrement: true }),
112
+ name: text('name').notNull(),
113
+ email: text('email').notNull().unique(),
114
+ createdAt: int('created_at', { mode: 'timestamp' })
115
+ .$defaultFn(() => new Date())
116
+ .notNull(),
117
+ })
118
+
119
+ export type User = typeof users.$inferSelect
120
+ export type NewUser = typeof users.$inferInsert
121
+ EOF
122
+
123
+ cat > src/lib/db/index.ts <<'EOF'
124
+ import Database from 'better-sqlite3'
125
+ import { drizzle } from 'drizzle-orm/better-sqlite3'
126
+ import * as schema from './schema'
127
+
128
+ const sqlite = new Database(process.env.DATABASE_URL ?? 'sqlite.db')
129
+ sqlite.pragma('journal_mode = WAL')
130
+
131
+ export const db = drizzle(sqlite, { schema })
132
+ EOF
133
+
134
+ elif [ "$DB" = "postgres" ]; then
135
+ cat > src/lib/db/schema.ts <<'EOF'
136
+ import { pgTable, serial, text, timestamp } from 'drizzle-orm/pg-core'
137
+
138
+ export const users = pgTable('users', {
139
+ id: serial('id').primaryKey(),
140
+ name: text('name').notNull(),
141
+ email: text('email').notNull().unique(),
142
+ createdAt: timestamp('created_at').defaultNow().notNull(),
143
+ })
144
+
145
+ export type User = typeof users.$inferSelect
146
+ export type NewUser = typeof users.$inferInsert
147
+ EOF
148
+
149
+ cat > src/lib/db/index.ts <<EOF
150
+ import { Pool } from 'pg'
151
+ import { drizzle } from 'drizzle-orm/node-postgres'
152
+ import * as schema from './schema'
153
+
154
+ const pool = new Pool({
155
+ connectionString: process.env.DATABASE_URL,
156
+ })
157
+
158
+ export const db = drizzle(pool, { schema })
159
+ EOF
160
+ fi
161
+
162
+ success "DB 파일 생성 완료"
163
+
164
+ # ── drizzle.config.ts ─────────────────────────────────────────────────────────
165
+ step "drizzle.config.ts 생성"
166
+ if [ "$DB" = "sqlite" ]; then
167
+ cat > drizzle.config.ts <<'EOF'
168
+ import type { Config } from 'drizzle-kit'
169
+
170
+ export default {
171
+ schema: './src/lib/db/schema.ts',
172
+ out: './src/lib/db/migrations',
173
+ dialect: 'sqlite',
174
+ dbCredentials: {
175
+ url: process.env.DATABASE_URL ?? 'sqlite.db',
176
+ },
177
+ } satisfies Config
178
+ EOF
179
+ elif [ "$DB" = "postgres" ]; then
180
+ cat > drizzle.config.ts <<'EOF'
181
+ import type { Config } from 'drizzle-kit'
182
+
183
+ export default {
184
+ schema: './src/lib/db/schema.ts',
185
+ out: './src/lib/db/migrations',
186
+ dialect: 'postgresql',
187
+ dbCredentials: {
188
+ url: process.env.DATABASE_URL!,
189
+ },
190
+ } satisfies Config
191
+ EOF
192
+ fi
193
+ success "drizzle.config.ts 생성 완료"
194
+
195
+ # ── .env.local ────────────────────────────────────────────────────────────────
196
+ step ".env.local 생성"
197
+ if [ "$DB" = "sqlite" ]; then
198
+ ENV_DB_LINE="DATABASE_URL=sqlite.db"
199
+ elif [ "$DB" = "postgres" ]; then
200
+ ENV_DB_LINE="DATABASE_URL=postgresql://localhost:5432/${PROJECT_NAME}"
201
+ fi
202
+
203
+ if [ ! -f ".env.local" ]; then
204
+ echo "$ENV_DB_LINE" > .env.local
205
+ success ".env.local 생성 완료"
206
+ else
207
+ if ! grep -q "^DATABASE_URL=" .env.local; then
208
+ echo "" >> .env.local
209
+ echo "$ENV_DB_LINE" >> .env.local
210
+ success ".env.local에 DATABASE_URL 추가 완료"
211
+ else
212
+ info ".env.local에 이미 DATABASE_URL 존재 — 건너뜀"
213
+ fi
214
+ fi
215
+
216
+ # ── .gitignore ────────────────────────────────────────────────────────────────
217
+ step ".gitignore 업데이트"
218
+ if [ "$DB" = "sqlite" ]; then
219
+ if ! grep -q "sqlite.db" .gitignore 2>/dev/null; then
220
+ cat >> .gitignore <<'EOF'
221
+
222
+ # SQLite
223
+ *.db
224
+ *.db-shm
225
+ *.db-wal
226
+ EOF
227
+ success ".gitignore에 sqlite.db 패턴 추가"
228
+ else
229
+ info ".gitignore에 이미 sqlite.db 패턴 존재 — 건너뜀"
230
+ fi
231
+ fi
232
+
233
+ # ── package.json scripts ───────────────────────────────────────────────────────
234
+ step "package.json에 Drizzle 스크립트 추가"
235
+ node -e "
236
+ const fs = require('fs');
237
+ const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));
238
+ pkg.scripts = {
239
+ ...pkg.scripts,
240
+ 'db:generate': 'drizzle-kit generate',
241
+ 'db:migrate': 'drizzle-kit migrate',
242
+ 'db:push': 'drizzle-kit push',
243
+ 'db:studio': 'drizzle-kit studio',
244
+ };
245
+ fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2) + '\n');
246
+ "
247
+ success "package.json 스크립트 추가 완료"
248
+
249
+ # ── shadcn/ui ─────────────────────────────────────────────────────────────────
250
+ if [ "$UI" = "shadcn" ]; then
251
+ step "shadcn/ui 초기화"
252
+ printf '\n' | $PKG_X shadcn@latest init --yes
253
+ success "shadcn/ui 초기화 완료"
254
+
255
+ step "기본 shadcn/ui 컴포넌트 설치 (button, input, card)"
256
+ $PKG_X shadcn@latest add button input card --yes
257
+ success "shadcn/ui 컴포넌트 설치 완료"
258
+ elif [ "$UI" = "none" ]; then
259
+ info "UI 라이브러리 건너뜀 (--ui none)"
260
+ else
261
+ error "지원하지 않는 UI: $UI (shadcn|none)"; exit 1
262
+ fi
263
+
264
+ # ── Initial DB migration ───────────────────────────────────────────────────────
265
+ step "초기 DB 마이그레이션 생성"
266
+ $PKG_RUN db:generate
267
+ success "마이그레이션 파일 생성 완료"
268
+
269
+ # ── Git commit ────────────────────────────────────────────────────────────────
270
+ step "Git 커밋"
271
+ COMMIT_MSG="chore: add"
272
+ [ "$UI" = "shadcn" ] && COMMIT_MSG="$COMMIT_MSG shadcn/ui +"
273
+ COMMIT_MSG="$COMMIT_MSG drizzle ${DB} setup"
274
+ git_init_commit "$COMMIT_MSG"
275
+
276
+ # ── Summary ───────────────────────────────────────────────────────────────────
277
+ echo ""
278
+ echo -e "${GREEN}${BOLD}✓ 프로젝트 초기화 완료: ${PROJECT_NAME}${RESET}"
279
+ echo ""
280
+ echo -e " ${BOLD}옵션:${RESET} DB=${DB} UI=${UI} PM=${PM}"
281
+ echo ""
282
+ echo -e " ${BOLD}주요 구조:${RESET}"
283
+ echo -e " src/"
284
+ echo -e " app/ — Next.js App Router"
285
+ echo -e " ${CYAN}lib/db/${RESET} — Drizzle ORM"
286
+ echo -e " index.ts — DB 연결"
287
+ echo -e " schema.ts — 테이블 스키마"
288
+ echo -e " migrations/ — 마이그레이션 파일"
289
+ if [ "$UI" = "shadcn" ]; then
290
+ echo -e " ${CYAN}components/ui/${RESET} — shadcn/ui 컴포넌트"
291
+ fi
292
+ echo ""
293
+ echo -e " ${BOLD}DB 명령어:${RESET}"
294
+ echo -e " $PKG_RUN db:generate — 스키마 변경 후 마이그레이션 생성"
295
+ echo -e " $PKG_RUN db:migrate — 마이그레이션 적용"
296
+ echo -e " $PKG_RUN db:push — 마이그레이션 없이 스키마 직접 적용"
297
+ echo -e " $PKG_RUN db:studio — Drizzle Studio (DB GUI)"
298
+ echo ""
299
+ echo -e " ${BOLD}개발 시작:${RESET}"
300
+ if [ "$INIT_IN_PLACE" = false ]; then
301
+ echo -e " cd ${PROJECT_NAME}"
302
+ fi
303
+ echo -e " $PKG_RUN db:migrate — 첫 마이그레이션 적용"
304
+ echo -e " $PKG_RUN dev — 개발 서버 시작"
305
+ echo ""
@@ -0,0 +1,10 @@
1
+ import {
2
+ installAgents
3
+ } from "./chunk-ZBGGTONN.js";
4
+ import "./chunk-FLBB3OH4.js";
5
+ import "./chunk-T5VPG46W.js";
6
+ import "./chunk-4NEXS2FY.js";
7
+ import "./chunk-TLOORH3N.js";
8
+ export {
9
+ installAgents
10
+ };
@@ -1,15 +1,19 @@
1
1
  import {
2
2
  backupIfExists
3
- } from "./chunk-K25UZZVG.js";
3
+ } from "./chunk-FLBB3OH4.js";
4
4
  import {
5
5
  copyFileUtil,
6
6
  ensureDir
7
- } from "./chunk-3GUKEMND.js";
7
+ } from "./chunk-T5VPG46W.js";
8
8
  import {
9
9
  getAssetsDir
10
- } from "./chunk-5XOKKPAA.js";
10
+ } from "./chunk-4NEXS2FY.js";
11
+ import {
12
+ init_esm_shims
13
+ } from "./chunk-TLOORH3N.js";
11
14
 
12
15
  // src/installers/commands.ts
16
+ init_esm_shims();
13
17
  import { join } from "path";
14
18
  async function installCommands(commands, targetDir) {
15
19
  const destDir = join(targetDir, "commands");
@@ -1,4 +1,9 @@
1
+ import {
2
+ init_esm_shims
3
+ } from "./chunk-TLOORH3N.js";
4
+
1
5
  // src/utils/paths.ts
6
+ init_esm_shims();
2
7
  import { fileURLToPath } from "url";
3
8
  import { dirname, join } from "path";
4
9
  import { homedir } from "os";
@@ -1,15 +1,19 @@
1
1
  import {
2
2
  backupIfExists
3
- } from "./chunk-K25UZZVG.js";
3
+ } from "./chunk-FLBB3OH4.js";
4
4
  import {
5
5
  copyFileUtil,
6
6
  ensureDir
7
- } from "./chunk-3GUKEMND.js";
7
+ } from "./chunk-T5VPG46W.js";
8
8
  import {
9
9
  getAssetsDir
10
- } from "./chunk-5XOKKPAA.js";
10
+ } from "./chunk-4NEXS2FY.js";
11
+ import {
12
+ init_esm_shims
13
+ } from "./chunk-TLOORH3N.js";
11
14
 
12
15
  // src/installers/hooks.ts
16
+ init_esm_shims();
13
17
  import { join } from "path";
14
18
  import { readFile, writeFile, access, chmod } from "fs/promises";
15
19
  import { constants } from "fs";
@@ -1,8 +1,12 @@
1
1
  import {
2
2
  getAssetsDir
3
- } from "./chunk-5XOKKPAA.js";
3
+ } from "./chunk-4NEXS2FY.js";
4
+ import {
5
+ init_esm_shims
6
+ } from "./chunk-TLOORH3N.js";
4
7
 
5
8
  // src/registry.ts
9
+ init_esm_shims();
6
10
  import { readFile, readdir } from "fs/promises";
7
11
  import { join, basename } from "path";
8
12
  function parseFrontmatter(content) {
@@ -1,8 +1,12 @@
1
1
  import {
2
2
  getAssetsDir
3
- } from "./chunk-5XOKKPAA.js";
3
+ } from "./chunk-4NEXS2FY.js";
4
+ import {
5
+ init_esm_shims
6
+ } from "./chunk-TLOORH3N.js";
4
7
 
5
8
  // src/installers/claudemd.ts
9
+ init_esm_shims();
6
10
  import { join } from "path";
7
11
  import { readFile, writeFile, access } from "fs/promises";
8
12
  import { constants } from "fs";
@@ -1,4 +1,9 @@
1
+ import {
2
+ init_esm_shims
3
+ } from "./chunk-TLOORH3N.js";
4
+
1
5
  // src/utils/backup.ts
6
+ init_esm_shims();
2
7
  import { copyFile, access } from "fs/promises";
3
8
  import { constants } from "fs";
4
9
  async function backupFile(filePath) {
@@ -1,15 +1,19 @@
1
1
  import {
2
2
  backupIfExists
3
- } from "./chunk-K25UZZVG.js";
3
+ } from "./chunk-FLBB3OH4.js";
4
4
  import {
5
5
  copyFileUtil,
6
6
  ensureDir
7
- } from "./chunk-3GUKEMND.js";
7
+ } from "./chunk-T5VPG46W.js";
8
8
  import {
9
9
  getAssetsDir
10
- } from "./chunk-5XOKKPAA.js";
10
+ } from "./chunk-4NEXS2FY.js";
11
+ import {
12
+ init_esm_shims
13
+ } from "./chunk-TLOORH3N.js";
11
14
 
12
15
  // src/installers/rules.ts
16
+ init_esm_shims();
13
17
  import { join } from "path";
14
18
  import { readdir } from "fs/promises";
15
19
  async function installRules(categories, targetDir) {
@@ -1,12 +1,16 @@
1
1
  import {
2
2
  copyDir,
3
3
  ensureDir
4
- } from "./chunk-3GUKEMND.js";
4
+ } from "./chunk-T5VPG46W.js";
5
5
  import {
6
6
  getAssetsDir
7
- } from "./chunk-5XOKKPAA.js";
7
+ } from "./chunk-4NEXS2FY.js";
8
+ import {
9
+ init_esm_shims
10
+ } from "./chunk-TLOORH3N.js";
8
11
 
9
12
  // src/installers/skills.ts
13
+ init_esm_shims();
10
14
  import { join } from "path";
11
15
  async function installSkills(skills, targetDir) {
12
16
  const destBase = join(targetDir, "skills");
@@ -1,4 +1,9 @@
1
+ import {
2
+ init_esm_shims
3
+ } from "./chunk-TLOORH3N.js";
4
+
1
5
  // src/utils/file.ts
6
+ init_esm_shims();
2
7
  import { mkdir, copyFile, readdir } from "fs/promises";
3
8
  import { join } from "path";
4
9
  async function ensureDir(dirPath) {
@@ -0,0 +1,50 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
+ }) : x)(function(x) {
10
+ if (typeof require !== "undefined") return require.apply(this, arguments);
11
+ throw Error('Dynamic require of "' + x + '" is not supported');
12
+ });
13
+ var __esm = (fn, res) => function __init() {
14
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
15
+ };
16
+ var __commonJS = (cb, mod) => function __require2() {
17
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
+ };
19
+ var __copyProps = (to, from, except, desc) => {
20
+ if (from && typeof from === "object" || typeof from === "function") {
21
+ for (let key of __getOwnPropNames(from))
22
+ if (!__hasOwnProp.call(to, key) && key !== except)
23
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
24
+ }
25
+ return to;
26
+ };
27
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
28
+ // If the importer is in node compatibility mode or this is not an ESM
29
+ // file that has been converted to a CommonJS file using a Babel-
30
+ // compatible transform (i.e. "__esModule" has not been set), then set
31
+ // "default" to the CommonJS "module.exports" for node compatibility.
32
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
33
+ mod
34
+ ));
35
+
36
+ // node_modules/tsup/assets/esm_shims.js
37
+ import path from "path";
38
+ import { fileURLToPath } from "url";
39
+ var init_esm_shims = __esm({
40
+ "node_modules/tsup/assets/esm_shims.js"() {
41
+ "use strict";
42
+ }
43
+ });
44
+
45
+ export {
46
+ __require,
47
+ __commonJS,
48
+ __toESM,
49
+ init_esm_shims
50
+ };
@@ -1,4 +1,9 @@
1
+ import {
2
+ init_esm_shims
3
+ } from "./chunk-TLOORH3N.js";
4
+
1
5
  // src/installers/mcps.ts
6
+ init_esm_shims();
2
7
  import { join } from "path";
3
8
  import { readFile, writeFile, access } from "fs/promises";
4
9
  import { constants } from "fs";
@@ -1,15 +1,19 @@
1
1
  import {
2
2
  backupIfExists
3
- } from "./chunk-K25UZZVG.js";
3
+ } from "./chunk-FLBB3OH4.js";
4
4
  import {
5
5
  copyFileUtil,
6
6
  ensureDir
7
- } from "./chunk-3GUKEMND.js";
7
+ } from "./chunk-T5VPG46W.js";
8
8
  import {
9
9
  getAssetsDir
10
- } from "./chunk-5XOKKPAA.js";
10
+ } from "./chunk-4NEXS2FY.js";
11
+ import {
12
+ init_esm_shims
13
+ } from "./chunk-TLOORH3N.js";
11
14
 
12
15
  // src/installers/agents.ts
16
+ init_esm_shims();
13
17
  import { join } from "path";
14
18
  async function installAgents(agents, targetDir) {
15
19
  const destDir = join(targetDir, "agents");
@@ -0,0 +1,8 @@
1
+ import {
2
+ installClaudemd
3
+ } from "./chunk-7VVGOZDZ.js";
4
+ import "./chunk-4NEXS2FY.js";
5
+ import "./chunk-TLOORH3N.js";
6
+ export {
7
+ installClaudemd
8
+ };