palmier 0.5.7 → 0.5.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.
@@ -307,6 +307,9 @@ async function runCommandTriggeredMode(ctx) {
307
307
  invocationsFailed++;
308
308
  }
309
309
  appendLog(line, "", result.outcome);
310
+ // Append monitoring status so the UI shows the task is waiting for more input
311
+ appendRunMessage(ctx.taskDir, ctx.runId, { role: "status", time: Date.now(), content: "", type: "monitoring" });
312
+ await publishHostEvent(ctx.nc, ctx.config.hostId, ctx.taskId, { event_type: "result-updated", run_id: ctx.runId });
310
313
  }
311
314
  async function drainQueue() {
312
315
  if (processing)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "palmier",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
4
4
  "description": "Palmier host CLI - provisions, executes tasks, and serves NATS RPC",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Hongxu Cai",
@@ -375,6 +375,10 @@ async function runCommandTriggeredMode(
375
375
  invocationsFailed++;
376
376
  }
377
377
  appendLog(line, "", result.outcome);
378
+
379
+ // Append monitoring status so the UI shows the task is waiting for more input
380
+ appendRunMessage(ctx.taskDir, ctx.runId, { role: "status", time: Date.now(), content: "", type: "monitoring" });
381
+ await publishHostEvent(ctx.nc, ctx.config.hostId, ctx.taskId, { event_type: "result-updated", run_id: ctx.runId });
378
382
  }
379
383
 
380
384
  async function drainQueue(): Promise<void> {