@ryanfw/prompt-orchestration-pipeline 0.17.0 → 0.17.2

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.
@@ -11,8 +11,8 @@
11
11
  />
12
12
  <title>Prompt Pipeline Dashboard</title>
13
13
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
14
- <script type="module" crossorigin src="/assets/index-xx8otyG0.js"></script>
15
- <link rel="stylesheet" crossorigin href="/assets/style-CVd3RRU2.css">
14
+ <script type="module" crossorigin src="/assets/index-jIuZSALW.js"></script>
15
+ <link rel="stylesheet" crossorigin href="/assets/style-CdV-vuS0.css">
16
16
  </head>
17
17
  <body>
18
18
  <div id="root"></div>
@@ -438,7 +438,7 @@ export async function handleJobRestart(req, res, jobId, dataDir, sendJson) {
438
438
  // Note: Express's json() middleware already parsed the body into req.body
439
439
  const body = req.body || {};
440
440
 
441
- const { fromTask, singleTask } = body;
441
+ const { fromTask, singleTask, continueAfter } = body;
442
442
 
443
443
  // Begin restart guard
444
444
  beginRestart(jobId);
@@ -468,7 +468,7 @@ export async function handleJobRestart(req, res, jobId, dataDir, sendJson) {
468
468
  PO_CURRENT_DIR: path.join(base, "pipeline-data", "current"),
469
469
  PO_COMPLETE_DIR: path.join(base, "pipeline-data", "complete"),
470
470
  ...(fromTask && { PO_START_FROM_TASK: fromTask }),
471
- ...(singleTask && { PO_RUN_SINGLE_TASK: "true" }),
471
+ ...(singleTask && !continueAfter && { PO_RUN_SINGLE_TASK: "true" }),
472
472
  };
473
473
 
474
474
  const child = spawn(process.execPath, [runnerPath, jobId], {
@@ -482,11 +482,13 @@ export async function handleJobRestart(req, res, jobId, dataDir, sendJson) {
482
482
 
483
483
  // Send success response
484
484
  const mode =
485
- fromTask && singleTask === true
486
- ? "single-task"
487
- : fromTask
488
- ? "partial"
489
- : "clean-slate";
485
+ fromTask && singleTask && continueAfter
486
+ ? "single-task-continue"
487
+ : fromTask && singleTask
488
+ ? "single-task"
489
+ : fromTask
490
+ ? "partial"
491
+ : "clean-slate";
490
492
  sendJson(res, 202, {
491
493
  ok: true,
492
494
  jobId,
package/src/ui/server.js CHANGED
@@ -71,14 +71,10 @@ function initializeWatcher() {
71
71
  if (!base) {
72
72
  if (process.env.NODE_ENV !== "test") {
73
73
  console.error(
74
- "ERROR: PO_ROOT environment variable is required for non-test runs"
74
+ "ERROR: PO_ROOT environment variable is required for non-test runs",
75
75
  );
76
76
  throw new Error(
77
- "PO_ROOT environment variable is required for non-test runs"
78
- );
79
- } else {
80
- console.warn(
81
- "WARNING: PO_ROOT not set, using process.cwd() in test mode"
77
+ "PO_ROOT environment variable is required for non-test runs",
82
78
  );
83
79
  }
84
80
  }
@@ -123,7 +119,7 @@ function initializeWatcher() {
123
119
  // Broadcast updated state: prefer the result returned by recordChange when available
124
120
  broadcastStateUpdate(lastState || state.getState());
125
121
  },
126
- { baseDir: effectiveBase, debounceMs: 200 }
122
+ { baseDir: effectiveBase, debounceMs: 200 },
127
123
  );
128
124
  }
129
125
 
@@ -147,14 +143,10 @@ async function startServer({ dataDir, port: customPort }) {
147
143
  // Require PO_ROOT for non-test runs
148
144
  if (!process.env.PO_ROOT && process.env.NODE_ENV !== "test") {
149
145
  console.error(
150
- "ERROR: PO_ROOT environment variable is required for non-test runs"
146
+ "ERROR: PO_ROOT environment variable is required for non-test runs",
151
147
  );
152
148
  throw new Error(
153
- "PO_ROOT environment variable is required for non-test runs"
154
- );
155
- } else if (!process.env.PO_ROOT) {
156
- console.warn(
157
- "WARNING: PO_ROOT not set, using process.cwd() in test mode"
149
+ "PO_ROOT environment variable is required for non-test runs",
158
150
  );
159
151
  }
160
152