@rpcbase/agents-sdk 0.18.0 → 0.20.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.
- package/dist/agents-sdk.css +1 -1
- package/dist/api/chat/handler.d.ts.map +1 -1
- package/dist/api/chat/runtimeConfig.d.ts +6 -0
- package/dist/api/chat/runtimeConfig.d.ts.map +1 -1
- package/dist/api/chat/tools.d.ts +26 -0
- package/dist/api/chat/tools.d.ts.map +1 -1
- package/dist/api-catalog-search.d.ts +48 -0
- package/dist/api-catalog-search.d.ts.map +1 -0
- package/dist/api-catalog-search.js +271 -0
- package/dist/client-routes.browser.js +1 -1
- package/dist/client-routes.js +1 -1
- package/dist/components/sidebar-history-item.d.ts.map +1 -1
- package/dist/components/weather.d.ts +1 -0
- package/dist/components/weather.d.ts.map +1 -1
- package/dist/{data-stream-handler-nmD-b7vk.js → data-stream-handler-CNyBIzQ7.js} +4914 -4924
- package/dist/{data-stream-handler-BF2hMP90.js → data-stream-handler-DQ9kBtgD.js} +26 -36
- package/dist/{handler-CfmidRGk.js → handler-DS4HXmLA.js} +276 -255
- package/dist/{handler-4LDG9nm7.js → handler-akLHP-CG.js} +532 -511
- package/dist/index.browser.js +1 -1
- package/dist/index.js +1 -1
- package/dist/models/RBAgentsApiCatalogEmbedding.d.ts +17 -0
- package/dist/models/RBAgentsApiCatalogEmbedding.d.ts.map +1 -0
- package/dist/routes.browser.js +1 -1
- package/dist/routes.js +1 -1
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +1 -1
- package/dist/tailwind-source.js +1 -1
- package/package.json +6 -1
|
@@ -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),
|
|
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
|
|
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
|
-
}),
|
|
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",
|
|
@@ -56668,17 +56655,20 @@ function yB(e) {
|
|
|
56668
56655
|
return Math.ceil(e);
|
|
56669
56656
|
}
|
|
56670
56657
|
function bB({ weatherAtLocation: e = vB }) {
|
|
56671
|
-
let t = Math.max(
|
|
56672
|
-
start: new Date(e.daily.sunrise[0]),
|
|
56673
|
-
end: new Date(e.daily.sunset[0])
|
|
56674
|
-
}), [i, a] = z(!1);
|
|
56658
|
+
let t = e.current.time.slice(0, 10), n = e.requestedDate, r = n && e.daily.time.includes(n) ? n : t, i = Math.max(e.daily.time.indexOf(r), 0), a = e.hourly.time.flatMap((e, t) => e.slice(0, 10) === r ? [t] : []), o = e.hourly.time.slice(0, 24).map((e, t) => t), s = a.length > 0 ? a : o, c = s.map((t) => e.hourly.temperature_2m[t]), l = Math.max(...c), u = Math.min(...c), d = r === t, [f, p] = z(!1);
|
|
56675
56659
|
j(() => {
|
|
56676
56660
|
let e = () => {
|
|
56677
|
-
|
|
56661
|
+
p(window.innerWidth < 768);
|
|
56678
56662
|
};
|
|
56679
56663
|
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
56680
56664
|
}, []);
|
|
56681
|
-
let
|
|
56665
|
+
let m = f ? 5 : 6, h = new Date(e.current.time).getHours(), g = s.find((t) => {
|
|
56666
|
+
let n = e.hourly.time[t];
|
|
56667
|
+
return d ? new Date(n) >= new Date(e.current.time) : new Date(n).getHours() >= h;
|
|
56668
|
+
}) ?? s[0] ?? 0, _ = Math.max(s.indexOf(g), 0), v = s.slice(_, _ + m), y = v.map((t) => e.hourly.time[t]), b = v.map((t) => e.hourly.temperature_2m[t]), x = y[0] ?? e.current.time, S = d ? e.current.temperature_2m : b[0] ?? e.current.temperature_2m, C = e.daily.sunrise[i], w = e.daily.sunset[i], T = C && w ? ui(new Date(x), {
|
|
56669
|
+
start: new Date(C),
|
|
56670
|
+
end: new Date(w)
|
|
56671
|
+
}) : !0, E = e.cityName || `${e.latitude?.toFixed(1)}°, ${e.longitude?.toFixed(1)}°`;
|
|
56682
56672
|
return /* @__PURE__ */ H("div", {
|
|
56683
56673
|
className: "relative flex w-full flex-col gap-3 overflow-hidden rounded-2xl bg-primary p-4 text-primary-foreground shadow-lg backdrop-blur-sm",
|
|
56684
56674
|
children: [/* @__PURE__ */ V("div", { className: "absolute inset-0 bg-primary-foreground/10 backdrop-blur-sm" }), /* @__PURE__ */ H("div", {
|
|
@@ -56688,10 +56678,10 @@ function bB({ weatherAtLocation: e = vB }) {
|
|
|
56688
56678
|
className: "mb-2 flex items-center justify-between",
|
|
56689
56679
|
children: [/* @__PURE__ */ V("div", {
|
|
56690
56680
|
className: "font-medium text-primary-foreground/80 text-xs",
|
|
56691
|
-
children:
|
|
56681
|
+
children: E
|
|
56692
56682
|
}), /* @__PURE__ */ V("div", {
|
|
56693
56683
|
className: "text-primary-foreground/60 text-xs",
|
|
56694
|
-
children: sr(new Date(
|
|
56684
|
+
children: sr(new Date(x), "MMM d, h:mm a")
|
|
56695
56685
|
})]
|
|
56696
56686
|
}),
|
|
56697
56687
|
/* @__PURE__ */ H("div", {
|
|
@@ -56700,10 +56690,10 @@ function bB({ weatherAtLocation: e = vB }) {
|
|
|
56700
56690
|
className: "flex items-center gap-3",
|
|
56701
56691
|
children: [/* @__PURE__ */ V("div", {
|
|
56702
56692
|
className: "text-primary-foreground/90",
|
|
56703
|
-
children: V(
|
|
56693
|
+
children: V(T ? hB : gB, { size: 32 })
|
|
56704
56694
|
}), /* @__PURE__ */ H("div", {
|
|
56705
56695
|
className: "font-light text-3xl text-primary-foreground",
|
|
56706
|
-
children: [yB(
|
|
56696
|
+
children: [yB(S), /* @__PURE__ */ V("span", {
|
|
56707
56697
|
className: "text-lg text-primary-foreground/80",
|
|
56708
56698
|
children: e.current_units.temperature_2m
|
|
56709
56699
|
})]
|
|
@@ -56714,14 +56704,14 @@ function bB({ weatherAtLocation: e = vB }) {
|
|
|
56714
56704
|
className: "font-medium text-primary-foreground/90 text-xs",
|
|
56715
56705
|
children: [
|
|
56716
56706
|
"H: ",
|
|
56717
|
-
yB(
|
|
56707
|
+
yB(l),
|
|
56718
56708
|
"°"
|
|
56719
56709
|
]
|
|
56720
56710
|
}), /* @__PURE__ */ H("div", {
|
|
56721
56711
|
className: "text-primary-foreground/70 text-xs",
|
|
56722
56712
|
children: [
|
|
56723
56713
|
"L: ",
|
|
56724
|
-
yB(
|
|
56714
|
+
yB(u),
|
|
56725
56715
|
"°"
|
|
56726
56716
|
]
|
|
56727
56717
|
})]
|
|
@@ -56734,14 +56724,14 @@ function bB({ weatherAtLocation: e = vB }) {
|
|
|
56734
56724
|
children: "Hourly Forecast"
|
|
56735
56725
|
}), /* @__PURE__ */ V("div", {
|
|
56736
56726
|
className: "flex justify-between gap-1",
|
|
56737
|
-
children:
|
|
56738
|
-
let n = new Date(e), r =
|
|
56727
|
+
children: y.map((e, t) => {
|
|
56728
|
+
let n = new Date(e), r = d && t === 0;
|
|
56739
56729
|
return /* @__PURE__ */ H("div", {
|
|
56740
56730
|
className: Ee("flex min-w-0 flex-1 flex-col items-center gap-1 rounded-md px-1 py-1.5", { "bg-primary-foreground/20": r }),
|
|
56741
56731
|
children: [
|
|
56742
56732
|
/* @__PURE__ */ V("div", {
|
|
56743
56733
|
className: "font-medium text-primary-foreground/70 text-xs",
|
|
56744
|
-
children: t === 0 ? "Now" : sr(n, "ha")
|
|
56734
|
+
children: t === 0 && d ? "Now" : sr(n, "ha")
|
|
56745
56735
|
}),
|
|
56746
56736
|
/* @__PURE__ */ V("div", {
|
|
56747
56737
|
className: "text-primary-foreground/60",
|
|
@@ -56749,7 +56739,7 @@ function bB({ weatherAtLocation: e = vB }) {
|
|
|
56749
56739
|
}),
|
|
56750
56740
|
/* @__PURE__ */ H("div", {
|
|
56751
56741
|
className: "font-medium text-primary-foreground text-xs",
|
|
56752
|
-
children: [yB(
|
|
56742
|
+
children: [yB(b[t]), "°"]
|
|
56753
56743
|
})
|
|
56754
56744
|
]
|
|
56755
56745
|
}, e);
|
|
@@ -56761,11 +56751,11 @@ function bB({ weatherAtLocation: e = vB }) {
|
|
|
56761
56751
|
children: [/* @__PURE__ */ H("div", { children: [
|
|
56762
56752
|
"Sunrise:",
|
|
56763
56753
|
" ",
|
|
56764
|
-
sr(new Date(
|
|
56754
|
+
sr(new Date(C), "h:mm a")
|
|
56765
56755
|
] }), /* @__PURE__ */ H("div", { children: [
|
|
56766
56756
|
"Sunset:",
|
|
56767
56757
|
" ",
|
|
56768
|
-
sr(new Date(
|
|
56758
|
+
sr(new Date(w), "h:mm a")
|
|
56769
56759
|
] })]
|
|
56770
56760
|
})
|
|
56771
56761
|
]
|