kantban-cli 0.1.26 → 0.1.27
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/index.js
CHANGED
|
@@ -31,10 +31,10 @@ async function main() {
|
|
|
31
31
|
}
|
|
32
32
|
case "pipeline": {
|
|
33
33
|
if (args[0] === "stop") {
|
|
34
|
-
const { stopPipeline } = await import("./pipeline-
|
|
34
|
+
const { stopPipeline } = await import("./pipeline-TYHC3WQ6.js");
|
|
35
35
|
await stopPipeline(args.slice(1));
|
|
36
36
|
} else {
|
|
37
|
-
const { runPipeline } = await import("./pipeline-
|
|
37
|
+
const { runPipeline } = await import("./pipeline-TYHC3WQ6.js");
|
|
38
38
|
await runPipeline(client, args);
|
|
39
39
|
}
|
|
40
40
|
break;
|
|
@@ -3859,12 +3859,24 @@ node "${hookScript}" "${event}" "${configFile}" < "$STDIN_FILE"
|
|
|
3859
3859
|
* which contains lines like "YOLO mode is enabled..." and "Loaded cached credentials."
|
|
3860
3860
|
* that corrupt JSON parsing in downstream consumers (advisor, light-call). */
|
|
3861
3861
|
static stripCliPreamble(text) {
|
|
3862
|
+
const lines = text.split("\n");
|
|
3863
|
+
const jsonStart = lines.findIndex((line) => {
|
|
3864
|
+
const trimmed = line.trim();
|
|
3865
|
+
return trimmed.startsWith("{") || trimmed.startsWith("[");
|
|
3866
|
+
});
|
|
3867
|
+
if (jsonStart >= 0) {
|
|
3868
|
+
return lines.slice(jsonStart).join("\n").trim();
|
|
3869
|
+
}
|
|
3862
3870
|
const preamblePatterns = [
|
|
3863
|
-
/^YOLO mode is enabled
|
|
3864
|
-
/^Loaded cached credentials
|
|
3865
|
-
/^Sandbox mode:
|
|
3871
|
+
/^YOLO mode is enabled\./,
|
|
3872
|
+
/^Loaded cached credentials\./,
|
|
3873
|
+
/^Sandbox mode: /,
|
|
3874
|
+
/^WARNING:/,
|
|
3875
|
+
/^These hooks will be executed\./,
|
|
3876
|
+
/^please review the project/,
|
|
3877
|
+
/^- \//
|
|
3878
|
+
// indented hook paths
|
|
3866
3879
|
];
|
|
3867
|
-
const lines = text.split("\n");
|
|
3868
3880
|
const filtered = lines.filter((line) => {
|
|
3869
3881
|
const trimmed = line.trim();
|
|
3870
3882
|
return trimmed !== "" && !preamblePatterns.some((p) => p.test(trimmed));
|
|
@@ -4826,4 +4838,4 @@ export {
|
|
|
4826
4838
|
runPipeline,
|
|
4827
4839
|
stopPipeline
|
|
4828
4840
|
};
|
|
4829
|
-
//# sourceMappingURL=pipeline-
|
|
4841
|
+
//# sourceMappingURL=pipeline-TYHC3WQ6.js.map
|