@anvia/studio 1.3.15 → 1.3.18

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.d.ts CHANGED
@@ -961,7 +961,7 @@ type StudioSessionLogEvent = {
961
961
  log: StudioSessionLogEntry;
962
962
  };
963
963
  type StudioPipelineLogLevel = "debug" | "info" | "warn" | "error";
964
- type StudioPipelineLogCategory = "pipeline" | "run" | "stage" | "parallel" | "agent" | "extractor" | "api";
964
+ type StudioPipelineLogCategory = "pipeline" | "run" | "stage" | "parallel" | "agent" | "extractor" | "decision" | "api";
965
965
  type StudioPipelineLogEntry = {
966
966
  id: string;
967
967
  pipelineId: string;
package/dist/index.js CHANGED
@@ -25135,7 +25135,10 @@ function pipelineStageLog(event, studioPipelineId = event.pipelineId) {
25135
25135
  };
25136
25136
  }
25137
25137
  function stageCategory(node2) {
25138
- if (node2.kind === "parallel" || node2.kind === "branch") {
25138
+ if (node2.kind === "branch") {
25139
+ return node2.branchOf === "route" ? "decision" : "parallel";
25140
+ }
25141
+ if (node2.kind === "parallel") {
25139
25142
  return "parallel";
25140
25143
  }
25141
25144
  if (node2.kind === "agent") {
@@ -25144,6 +25147,9 @@ function stageCategory(node2) {
25144
25147
  if (node2.kind === "extractor") {
25145
25148
  return "extractor";
25146
25149
  }
25150
+ if (node2.kind === "decision" || node2.kind === "route") {
25151
+ return "decision";
25152
+ }
25147
25153
  return "stage";
25148
25154
  }
25149
25155
  function nodeMetadata(node2) {
@@ -25156,6 +25162,7 @@ function nodeMetadata(node2) {
25156
25162
  if (node2.agentId !== void 0) metadata.agentId = node2.agentId;
25157
25163
  if (node2.pipelineId !== void 0) metadata.pipelineId = node2.pipelineId;
25158
25164
  if (node2.branchKey !== void 0) metadata.branchKey = node2.branchKey;
25165
+ if (node2.branchOf !== void 0) metadata.branchOf = node2.branchOf;
25159
25166
  return metadata;
25160
25167
  }
25161
25168
  function byteLength3(value) {