create-claude-workspace 2.1.7 → 2.1.8
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.
|
@@ -19,6 +19,8 @@ export async function watchPipeline(branch, platform, projectDir, logger, signal
|
|
|
19
19
|
return { status: 'not-found' };
|
|
20
20
|
}
|
|
21
21
|
const startTime = Date.now();
|
|
22
|
+
let notFoundCount = 0;
|
|
23
|
+
const MAX_NOT_FOUND = 3; // Give CI a few polls to appear, then give up
|
|
22
24
|
while (Date.now() - startTime < MAX_POLL_TIME) {
|
|
23
25
|
if (signal?.stopped)
|
|
24
26
|
return { status: 'canceled' };
|
|
@@ -31,6 +33,16 @@ export async function watchPipeline(branch, platform, projectDir, logger, signal
|
|
|
31
33
|
: undefined;
|
|
32
34
|
return { status, logs };
|
|
33
35
|
}
|
|
36
|
+
if (status === 'not-found') {
|
|
37
|
+
notFoundCount++;
|
|
38
|
+
if (notFoundCount >= MAX_NOT_FOUND) {
|
|
39
|
+
logger.info('No CI pipeline found — skipping CI watch');
|
|
40
|
+
return { status: 'not-found' };
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
notFoundCount = 0;
|
|
45
|
+
}
|
|
34
46
|
logger.info(`CI: ${status}, waiting ${POLL_INTERVAL / 1000}s...`);
|
|
35
47
|
await sleep(POLL_INTERVAL);
|
|
36
48
|
}
|