@streamoid/agent 0.5.6 → 0.5.7

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
@@ -6394,26 +6394,40 @@ function AgentStepsImpl({
6394
6394
  }, [e, t, n, o]);
6395
6395
  if (c.length === 0 && !t) return null;
6396
6396
  const f = groupIntoLanes(c), g = f[f.length - 1]?.agentLabel ?? null, E = [...c].reverse().find((R) => R.kind === "step" && R.status === "pending")?.message ?? "Planning next steps";
6397
- return /* @__PURE__ */ jsxs(motion$1.div, { layout: !0, className: "max-w-full mt-[4px] flex flex-col gap-1", transition: stepsTransition, children: [
6398
- f.map((R, T) => /* @__PURE__ */ jsx(
6399
- AgentLane,
6400
- {
6401
- lane: R,
6402
- animateIn: t,
6403
- showHeader: R.agentName !== null && f[T - 1]?.agentName !== R.agentName
6404
- },
6405
- R.key
6406
- )),
6407
- t && /* @__PURE__ */ jsx(
6408
- ActivityLine,
6397
+ return (
6398
+ /* `sa-trace-block` zeroes the 4px when the trace is the row's FIRST child --
6399
+ * see index.css. Written as a rule rather than `first:mt-0` because our
6400
+ * stylesheet is concatenated ahead of the host's, so a variant utility of
6401
+ * ours loses to a plain one of theirs on source order. */
6402
+ /* @__PURE__ */ jsxs(
6403
+ motion$1.div,
6409
6404
  {
6410
- agent: g,
6411
- activity: E,
6412
- startedAt: s ?? null,
6413
- onStop: l
6405
+ layout: !0,
6406
+ className: "sa-trace-block max-w-full mt-[4px] flex flex-col gap-1",
6407
+ transition: stepsTransition,
6408
+ children: [
6409
+ f.map((R, T) => /* @__PURE__ */ jsx(
6410
+ AgentLane,
6411
+ {
6412
+ lane: R,
6413
+ animateIn: t,
6414
+ showHeader: R.agentName !== null && f[T - 1]?.agentName !== R.agentName
6415
+ },
6416
+ R.key
6417
+ )),
6418
+ t && /* @__PURE__ */ jsx(
6419
+ ActivityLine,
6420
+ {
6421
+ agent: g,
6422
+ activity: E,
6423
+ startedAt: s ?? null,
6424
+ onStop: l
6425
+ }
6426
+ )
6427
+ ]
6414
6428
  }
6415
6429
  )
6416
- ] });
6430
+ );
6417
6431
  }
6418
6432
  function groupIntoLanes(e) {
6419
6433
  const t = [];
@@ -6484,7 +6498,7 @@ function AgentLane({
6484
6498
  motion$1.div,
6485
6499
  {
6486
6500
  layout: "position",
6487
- initial: n ? { opacity: 0, y: 6 } : !1,
6501
+ initial: n && c.kind !== "planLine" ? { opacity: 0, y: 6 } : !1,
6488
6502
  animate: { opacity: 1, y: 0 },
6489
6503
  transition: stepsTransition,
6490
6504
  children: /* @__PURE__ */ jsx(LaneItem, { step: c })