create-claude-pipeline 0.4.0 → 0.4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-claude-pipeline",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Claude Code 파이프라인 시스템을 프로젝트에 설치하고 대시보드를 실행합니다",
5
5
  "bin": {
6
6
  "create-claude-pipeline": "./bin/cli.js"
@@ -56,9 +56,12 @@ export async function POST(request: Request) {
56
56
 
57
57
  // Spawn pipeline-runner (wrapper that manages Claude CLI + state)
58
58
  try {
59
+ // process.cwd() = .claude-pipeline/dashboard/
60
+ // .. = .claude-pipeline/
61
+ // ../.. = project root
62
+ const projectRoot = path.resolve(process.cwd(), "..", "..");
59
63
  const runnerScript = path.resolve(
60
- process.cwd(),
61
- "..",
64
+ projectRoot,
62
65
  ".claude-pipeline",
63
66
  "runner",
64
67
  "dist",
@@ -66,7 +69,7 @@ export async function POST(request: Request) {
66
69
  );
67
70
 
68
71
  const child = spawn("node", [runnerScript], {
69
- cwd: path.resolve(process.cwd(), ".."),
72
+ cwd: projectRoot,
70
73
  detached: true,
71
74
  stdio: "ignore",
72
75
  env: {
@@ -2,8 +2,9 @@ import fs from "fs";
2
2
  import path from "path";
3
3
  import type { PipelineState, PipelineSummary } from "@/types/pipeline";
4
4
 
5
+ // process.cwd() = .claude-pipeline/dashboard/ → ../.. = project root
5
6
  const PIPELINES_DIR = process.env.PIPELINES_DIR
6
- || path.resolve(process.cwd(), "..", "pipelines");
7
+ || path.resolve(process.cwd(), "..", "..", "pipelines");
7
8
 
8
9
  export function getPipelinesDir(): string {
9
10
  return path.resolve(PIPELINES_DIR);