@rpcbase/agents-sdk 0.17.0 → 0.19.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar-history-item.d.ts","sourceRoot":"","sources":["../../src/components/sidebar-history-item.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AA4CnF,QAAA,MAAM,YAAY,mGAQf;IACD,IAAI,EAAE,oBAAoB,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,iBAAiB,CAAC,EAAE,0BAA0B,CAAC;IAC/C,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC,gCAuGA,CAAA;AAED,eAAO,MAAM,QAAQ,qBAAe,CAAA"}
1
+ {"version":3,"file":"sidebar-history-item.d.ts","sourceRoot":"","sources":["../../src/components/sidebar-history-item.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AA6CnF,QAAA,MAAM,YAAY,mGAQf;IACD,IAAI,EAAE,oBAAoB,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,iBAAiB,CAAC,EAAE,0BAA0B,CAAC;IAC/C,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC,gCAiFA,CAAA;AAED,eAAO,MAAM,QAAQ,qBAAe,CAAA"}
@@ -44043,20 +44043,13 @@ var uy = ({ chat: e, isActive: t, isStaleStreaming: n, isStreaming: r, onDelete:
44043
44043
  isStaleStreaming: n,
44044
44044
  isStreaming: r,
44045
44045
  title: s
44046
- }), { getChatPath: l } = Qe(), u = sy(e.id), [d, f] = z(!1), p = R(null), m = R(null), h = r ? /* @__PURE__ */ V("span", {
44047
- className: "mr-0.5 shrink-0",
44046
+ }), { getChatPath: l } = Qe(), u = sy(e.id), d = r ? /* @__PURE__ */ V("span", {
44047
+ className: U("mr-0.5 shrink-0", c !== void 0 && "self-start"),
44048
44048
  children: /* @__PURE__ */ V(cy, { label: "Conversation is streaming" })
44049
44049
  }) : n ? /* @__PURE__ */ V("span", {
44050
- className: "mr-0.5 shrink-0",
44050
+ className: U("mr-0.5 shrink-0", c !== void 0 && "self-start"),
44051
44051
  children: /* @__PURE__ */ V(ly, {})
44052
- }) : null, g = (e) => {
44053
- let t = e.relatedTarget;
44054
- if (!(t instanceof Node)) {
44055
- f(!1);
44056
- return;
44057
- }
44058
- p.current?.contains(t) || m.current?.contains(t) || f(!1);
44059
- };
44052
+ }) : null;
44060
44053
  return /* @__PURE__ */ H(b_, { children: [/* @__PURE__ */ V(S_, {
44061
44054
  asChild: !0,
44062
44055
  className: c === void 0 ? void 0 : "h-auto min-h-12 py-2",
@@ -44068,19 +44061,15 @@ var uy = ({ chat: e, isActive: t, isStaleStreaming: n, isStreaming: r, onDelete:
44068
44061
  children: c === void 0 ? /* @__PURE__ */ H(ce, { children: [/* @__PURE__ */ V("span", {
44069
44062
  className: "min-w-0 flex-1 truncate",
44070
44063
  children: s
44071
- }), h] }) : /* @__PURE__ */ H(ce, { children: [c, h] })
44064
+ }), d] }) : /* @__PURE__ */ H(ce, { children: [c, d] })
44072
44065
  })
44073
44066
  }), /* @__PURE__ */ H(Yv, {
44074
44067
  modal: !0,
44075
- onOpenChange: f,
44076
- open: d,
44077
44068
  children: [/* @__PURE__ */ V(Xv, {
44078
44069
  asChild: !0,
44079
44070
  children: /* @__PURE__ */ H(C_, {
44080
44071
  className: "mr-0.5 data-open:bg-sidebar-accent data-open:text-sidebar-accent-foreground",
44081
44072
  id: u,
44082
- onMouseLeave: g,
44083
- ref: p,
44084
44073
  showOnHover: r || n || !t,
44085
44074
  children: [/* @__PURE__ */ V(mt, {}), /* @__PURE__ */ V("span", {
44086
44075
  className: "sr-only",
@@ -44089,8 +44078,6 @@ var uy = ({ chat: e, isActive: t, isStaleStreaming: n, isStreaming: r, onDelete:
44089
44078
  })
44090
44079
  }), /* @__PURE__ */ V(Qv, {
44091
44080
  align: "end",
44092
- onMouseLeave: g,
44093
- ref: m,
44094
44081
  side: "bottom",
44095
44082
  children: /* @__PURE__ */ H(ty, {
44096
44083
  className: "cursor-pointer text-destructive focus:bg-destructive/15 focus:text-destructive",
@@ -44043,20 +44043,13 @@ var uy = ({ chat: e, isActive: t, isStaleStreaming: n, isStreaming: r, onDelete:
44043
44043
  isStaleStreaming: n,
44044
44044
  isStreaming: r,
44045
44045
  title: s
44046
- }), { getChatPath: l } = Qe(), u = sy(e.id), [d, f] = z(!1), p = R(null), m = R(null), h = r ? /* @__PURE__ */ V("span", {
44047
- className: "mr-0.5 shrink-0",
44046
+ }), { getChatPath: l } = Qe(), u = sy(e.id), d = r ? /* @__PURE__ */ V("span", {
44047
+ className: U("mr-0.5 shrink-0", c !== void 0 && "self-start"),
44048
44048
  children: /* @__PURE__ */ V(cy, { label: "Conversation is streaming" })
44049
44049
  }) : n ? /* @__PURE__ */ V("span", {
44050
- className: "mr-0.5 shrink-0",
44050
+ className: U("mr-0.5 shrink-0", c !== void 0 && "self-start"),
44051
44051
  children: /* @__PURE__ */ V(ly, {})
44052
- }) : null, g = (e) => {
44053
- let t = e.relatedTarget;
44054
- if (!(t instanceof Node)) {
44055
- f(!1);
44056
- return;
44057
- }
44058
- p.current?.contains(t) || m.current?.contains(t) || f(!1);
44059
- };
44052
+ }) : null;
44060
44053
  return /* @__PURE__ */ H(b_, { children: [/* @__PURE__ */ V(S_, {
44061
44054
  asChild: !0,
44062
44055
  className: c === void 0 ? void 0 : "h-auto min-h-12 py-2",
@@ -44068,19 +44061,15 @@ var uy = ({ chat: e, isActive: t, isStaleStreaming: n, isStreaming: r, onDelete:
44068
44061
  children: c === void 0 ? /* @__PURE__ */ H(ce, { children: [/* @__PURE__ */ V("span", {
44069
44062
  className: "min-w-0 flex-1 truncate",
44070
44063
  children: s
44071
- }), h] }) : /* @__PURE__ */ H(ce, { children: [c, h] })
44064
+ }), d] }) : /* @__PURE__ */ H(ce, { children: [c, d] })
44072
44065
  })
44073
44066
  }), /* @__PURE__ */ H(Yv, {
44074
44067
  modal: !0,
44075
- onOpenChange: f,
44076
- open: d,
44077
44068
  children: [/* @__PURE__ */ V(Xv, {
44078
44069
  asChild: !0,
44079
44070
  children: /* @__PURE__ */ H(C_, {
44080
44071
  className: "mr-0.5 data-open:bg-sidebar-accent data-open:text-sidebar-accent-foreground",
44081
44072
  id: u,
44082
- onMouseLeave: g,
44083
- ref: p,
44084
44073
  showOnHover: r || n || !t,
44085
44074
  children: [/* @__PURE__ */ V(mt, {}), /* @__PURE__ */ V("span", {
44086
44075
  className: "sr-only",
@@ -44089,8 +44078,6 @@ var uy = ({ chat: e, isActive: t, isStaleStreaming: n, isStreaming: r, onDelete:
44089
44078
  })
44090
44079
  }), /* @__PURE__ */ V(Qv, {
44091
44080
  align: "end",
44092
- onMouseLeave: g,
44093
- ref: m,
44094
44081
  side: "bottom",
44095
44082
  children: /* @__PURE__ */ H(ty, {
44096
44083
  className: "cursor-pointer text-destructive focus:bg-destructive/15 focus:text-destructive",