gencow 0.1.71 → 0.1.73

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/gencow.mjs CHANGED
@@ -413,14 +413,14 @@ process.exit(0);
413
413
  // ─── README Codegen (Vibe-coding AI Guide) ────────────────
414
414
  //
415
415
  // Generates gencow/README.md alongside api.ts.
416
- // This file acts as a living AI context document:
417
- // - Paste it into Cursor/Claude to let AI generate matching Next.js UI
418
- // - The MCP server also injects it as context automatically
416
+ // Pure logic lives in lib/readme-codegen.mjs (testable).
417
+ // This wrapper handles only file I/O.
419
418
 
420
419
  function generateReadmeMd(config, apiObj) {
421
420
  const absoluteFunctions = resolve(process.cwd(), config.functionsDir);
422
421
  const readmePath = resolve(absoluteFunctions, "README.md");
423
422
 
423
+
424
424
  const now = new Date().toLocaleString("ko-KR");
425
425
  const namespaces = Object.keys(apiObj);
426
426
 
@@ -713,6 +713,7 @@ function generateReadmeMd(config, apiObj) {
713
713
  // ── 5. 기존 컴포넌트 섹션 보존 (gencow add로 추가된 부분) ──
714
714
  const COMP_START = "<!-- gencow-components-start -->";
715
715
  const COMP_END = "<!-- gencow-components-end -->";
716
+
716
717
  try {
717
718
  const existingReadme = readFileSync(readmePath, "utf-8");
718
719
  if (existingReadme.includes(COMP_START)) {