palmier 0.5.8 → 0.5.9

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.
@@ -41,7 +41,10 @@ function parseResultFrontmatter(raw) {
41
41
  // determine if it's a task run or follow-up
42
42
  const activeStates = ["started", "monitoring", "confirmation"];
43
43
  let runningState;
44
- if (activeStates.includes(lastStatus?.type ?? "")) {
44
+ if (lastStatus?.type === "monitoring") {
45
+ runningState = "monitoring";
46
+ }
47
+ else if (activeStates.includes(lastStatus?.type ?? "")) {
45
48
  runningState = terminalMsg ? "followup" : "started";
46
49
  }
47
50
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "palmier",
3
- "version": "0.5.8",
3
+ "version": "0.5.9",
4
4
  "description": "Palmier host CLI - provisions, executes tasks, and serves NATS RPC",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Hongxu Cai",
@@ -51,7 +51,9 @@ function parseResultFrontmatter(raw: string): Record<string, unknown> {
51
51
  // determine if it's a task run or follow-up
52
52
  const activeStates = ["started", "monitoring", "confirmation"];
53
53
  let runningState: string | undefined;
54
- if (activeStates.includes(lastStatus?.type ?? "")) {
54
+ if (lastStatus?.type === "monitoring") {
55
+ runningState = "monitoring";
56
+ } else if (activeStates.includes(lastStatus?.type ?? "")) {
55
57
  runningState = terminalMsg ? "followup" : "started";
56
58
  } else {
57
59
  runningState = lastStatus?.type;