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
|
@@ -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
|
-
|
|
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:
|
|
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);
|