@flumecode/runner 0.24.0 → 0.25.0-preview.39
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/dist/cli.js
CHANGED
|
@@ -2524,15 +2524,28 @@ async function openPullRequest(ctx) {
|
|
|
2524
2524
|
}
|
|
2525
2525
|
throw new Error(`PR creation failed: ${res.status} ${await res.text()}`);
|
|
2526
2526
|
}
|
|
2527
|
-
async function gitCommittedFiles(dir) {
|
|
2527
|
+
async function gitCommittedFiles(ctx, dir) {
|
|
2528
|
+
const { mergeBranch } = ctx.repo;
|
|
2529
|
+
if (!mergeBranch) {
|
|
2530
|
+
const { stdout: stdout3 } = await git([
|
|
2531
|
+
"-C",
|
|
2532
|
+
dir,
|
|
2533
|
+
"--no-pager",
|
|
2534
|
+
"show",
|
|
2535
|
+
"--name-only",
|
|
2536
|
+
"--format=",
|
|
2537
|
+
"HEAD"
|
|
2538
|
+
]);
|
|
2539
|
+
return stdout3;
|
|
2540
|
+
}
|
|
2541
|
+
await git(["-C", dir, "fetch", "--quiet", "origin", mergeBranch]);
|
|
2528
2542
|
const { stdout: stdout2 } = await git([
|
|
2529
2543
|
"-C",
|
|
2530
2544
|
dir,
|
|
2531
2545
|
"--no-pager",
|
|
2532
|
-
"
|
|
2546
|
+
"diff",
|
|
2533
2547
|
"--name-only",
|
|
2534
|
-
"
|
|
2535
|
-
"HEAD"
|
|
2548
|
+
"FETCH_HEAD...HEAD"
|
|
2536
2549
|
]);
|
|
2537
2550
|
return stdout2;
|
|
2538
2551
|
}
|
|
@@ -3240,7 +3253,7 @@ ${reply}`;
|
|
|
3240
3253
|
let preview;
|
|
3241
3254
|
if (outcome.kind !== "none") {
|
|
3242
3255
|
console.log(` \u2026checking UI preview for implement ${ctx.jobId}`);
|
|
3243
|
-
const committedFileNames = await gitCommittedFiles(dir);
|
|
3256
|
+
const committedFileNames = await gitCommittedFiles(ctx, dir);
|
|
3244
3257
|
preview = await buildPreview(ctx, dir, committedFileNames, config, abort);
|
|
3245
3258
|
if (preview.status !== "ready")
|
|
3246
3259
|
console.log(` UI preview ${preview.status}: ${preview.reason}`);
|
|
@@ -3307,7 +3320,7 @@ async function processReviseJob(ctx, dir, resumed, config, abort) {
|
|
|
3307
3320
|
let preview;
|
|
3308
3321
|
if (outcome.kind !== "none") {
|
|
3309
3322
|
console.log(` \u2026checking UI preview for revise ${ctx.jobId}`);
|
|
3310
|
-
const committedFileNames = await gitCommittedFiles(dir);
|
|
3323
|
+
const committedFileNames = await gitCommittedFiles(ctx, dir);
|
|
3311
3324
|
preview = await buildPreview(ctx, dir, committedFileNames, config, abort);
|
|
3312
3325
|
if (preview.status !== "ready")
|
|
3313
3326
|
console.log(` UI preview ${preview.status}: ${preview.reason}`);
|
package/package.json
CHANGED
|
@@ -47,3 +47,4 @@ description: >-
|
|
|
47
47
|
## Documentation
|
|
48
48
|
|
|
49
49
|
- When behavior or conventions change, update the matching project docs (`CLAUDE.md` or rule files) in the same PR.
|
|
50
|
+
- FlumeCode plugin recipes (`.flumecode/plugins/*.json`) record how to install, build, run, or preview the app. If your change invalidates one — you altered the install/build/run/dev-server command, how the port or env is supplied, where the app lives (`appDir`), or which files count as the relevant change — update the matching recipe in the same PR so it doesn't go stale. They are not regenerated automatically; a stale recipe silently breaks the capability (e.g. the UI Preview pass) until someone re-installs.
|