@rpcbase/agents-sdk 0.22.0 → 0.23.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 +2 -2
- package/dist/chat-models.browser.js +1 -1
- package/dist/chat-models.js +1 -1
- package/dist/{chatDb-Cz7QrJEO.js → chatDb-BdJ9YtaF.js} +2 -2
- package/dist/{chatDb-DN3gG0rE.js → chatDb-LLLcarPc.js} +2 -2
- package/dist/client-routes.browser.js +25 -25
- package/dist/client-routes.js +25 -25
- package/dist/components/custom-rendered-tool-part.d.ts +10 -0
- package/dist/components/custom-rendered-tool-part.d.ts.map +1 -0
- package/dist/components/message.d.ts.map +1 -1
- package/dist/{data-stream-handler-CwI5YJZh.js → data-stream-handler-B2V3HKGV.js} +30416 -11009
- package/dist/{data-stream-handler-BbCmRDVC.js → data-stream-handler-Dp949DCd.js} +31475 -9945
- package/dist/{handler-D6etcNwD.js → handler-B0k7hbtU.js} +16 -14
- package/dist/{handler-DxEfTi-F.js → handler-BKV_TbTS.js} +2 -2
- package/dist/{handler-DUaBZkpS.js → handler-BSG39XdY.js} +2 -2
- package/dist/{handler-CvmHrkz9.js → handler-BWYFYUnk.js} +2 -2
- package/dist/{handler-jQOdtyET.js → handler-BYacFO-Y.js} +2 -2
- package/dist/{handler-pmPm2R2f.js → handler-B_gQzTyu.js} +2 -2
- package/dist/{handler-Du7LuJB1.js → handler-BttWvqmo.js} +2 -2
- package/dist/{handler-moTb7fZ2.js → handler-BylXkLvi.js} +2 -2
- package/dist/{handler-D63zn0W5.js → handler-CNsGVuBn.js} +2 -2
- package/dist/{handler-DAXyqx4y.js → handler-CQ06rgy5.js} +1 -1
- package/dist/{handler-yu9qDThP.js → handler-CatyrM3e.js} +1 -1
- package/dist/{handler-DhvGNj_T.js → handler-CtaN3xX-.js} +3 -3
- package/dist/{handler-DkRxnOUN.js → handler-CxqZ99zm.js} +2 -2
- package/dist/{handler-C6oMmAvW.js → handler-DGoBAAu-.js} +2 -2
- package/dist/{handler-Qw_JrLDo.js → handler-DGw6yvzu.js} +15 -13
- package/dist/{handler-Do5xRfzR.js → handler-DawIiGx7.js} +2 -2
- package/dist/{handler-8zojwqU7.js → handler-DgGZGHdP.js} +1 -1
- package/dist/{handler-Clz26ndM.js → handler-HdMkAycE.js} +1 -1
- package/dist/{handler-DS1_E7Zc.js → handler-eE-ZIb0w.js} +2 -2
- package/dist/{handler-DdjrldqF.js → handler-rwSMomTA.js} +3 -3
- package/dist/{handler-DXYE_QcX.js → handler-w5WPgO2_.js} +2 -2
- package/dist/{highlighted-body-OFNGDK62-kzg9WvPK.js → highlighted-body-OFNGDK62-Bo_Nbn3N.js} +1 -1
- package/dist/{highlighted-body-OFNGDK62-yqCKh6K1.js → highlighted-body-OFNGDK62-kcHa9q-o.js} +1 -1
- package/dist/index.browser.js +3 -3
- package/dist/index.js +3 -3
- package/dist/mermaid-GHXKKRXX-D0w136ew.js +2 -0
- package/dist/mermaid-GHXKKRXX-DzX9f260.js +2 -0
- package/dist/message-visibility-uK3_gpMi.js +27 -0
- package/dist/{resumableSse-CmmkOGyv.js → resumableSse-DtRkqH19.js} +21 -21
- package/dist/routes.browser.js +15 -15
- package/dist/routes.js +15 -15
- package/dist/runtime.js +2 -2
- package/dist/tailwind-source.js +1 -1
- package/package.json +4 -5
- package/dist/apiErrors-DKcH9vz9.js +0 -19
- package/dist/chunk-BO2N2NFS-BXeXbvYU.js +0 -19355
- package/dist/chunk-BO2N2NFS-C0c-iJhV.js +0 -21478
- package/dist/handler-YvSCKKjM.js +0 -18
- package/dist/mermaid-GHXKKRXX-BdyS-O1X.js +0 -2
- package/dist/mermaid-GHXKKRXX-g_KMuIEW.js +0 -2
- package/dist/message-visibility-zTseZa3P.js +0 -27
- package/dist/resumableSse-BRFonw_y.js +0 -106
- /package/dist/{apiErrors-Ck5tynNE.js → apiErrors-RWc9tGd8.js} +0 -0
- /package/dist/{chatCtx-CJF05uCy.js → chatCtx-CWJXZURe.js} +0 -0
- /package/dist/{chatCtx-C8Ba-LB7.js → chatCtx-epoE4Pyt.js} +0 -0
- /package/dist/{handler-DdF_Xz9w.js → handler-BK9cWKoI.js} +0 -0
- /package/dist/{handler-eWXBUnfH.js → handler-BMYOlmTp.js} +0 -0
- /package/dist/{handler-CtJQ0h8J.js → handler-DGWoNsXk.js} +0 -0
- /package/dist/{models-Bvdwv_p7.js → models-CQvbIFoQ.js} +0 -0
- /package/dist/{openai-reasoning-CmTuRHwM.js → openai-reasoning-BAkAwD4A.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as t, o as n } from "./message-visibility-
|
|
3
|
-
import { i as r } from "./openai-reasoning-
|
|
4
|
-
import { a as i, i as a, t as o } from "./chatCtx-
|
|
5
|
-
import { t as s } from "./apiErrors-
|
|
6
|
-
import { C as c, S as l, _ as u, a as d, b as f, f as p, g as m, h, l as g, m as ee, n as _, s as v, v as y, x as te, y as ne } from "./chatDb-
|
|
1
|
+
import { b as e } from "./data-stream-handler-Dp949DCd.js";
|
|
2
|
+
import { c as t, o as n } from "./message-visibility-uK3_gpMi.js";
|
|
3
|
+
import { i as r } from "./openai-reasoning-BAkAwD4A.js";
|
|
4
|
+
import { a as i, i as a, t as o } from "./chatCtx-CWJXZURe.js";
|
|
5
|
+
import { t as s } from "./apiErrors-RWc9tGd8.js";
|
|
6
|
+
import { C as c, S as l, _ as u, a as d, b as f, f as p, g as m, h, l as g, m as ee, n as _, s as v, v as y, x as te, y as ne } from "./chatDb-LLLcarPc.js";
|
|
7
7
|
import { calculateAgentUsageBilling as b, getReportedAgentUsage as re } from "./usage.js";
|
|
8
|
-
import { n as x, t as S } from "./resumableSse-
|
|
8
|
+
import { n as x, t as S } from "./resumableSse-DtRkqH19.js";
|
|
9
9
|
import { createHash as C, randomUUID as w } from "node:crypto";
|
|
10
10
|
import { openai as T } from "@ai-sdk/openai";
|
|
11
11
|
import { getTenantFilesystemDb as ie } from "@rpcbase/db";
|
|
@@ -22,7 +22,7 @@ var fe = /-thinking$/, I = "openai/", L = "google/", R = "xai/", pe = [
|
|
|
22
22
|
"openai/gpt-5.6-luna",
|
|
23
23
|
"google/gemini-3.5-flash",
|
|
24
24
|
"xai/grok-4.3-thinking"
|
|
25
|
-
], z = ["openai/gpt-5.4-mini", "openai/gpt-5.5"], B = new Set([...pe, ...z]), me = (e) => e.startsWith(I), he = (e) => e.startsWith(L), ge = (e) => e.startsWith(R), _e = (e) => e.endsWith("-thinking"), ve = (e) => e.includes("/") ? me(e) || he(e) || ge(e) : !1, V = P({
|
|
25
|
+
], z = ["openai/gpt-5.4-mini", "openai/gpt-5.5"], B = /* @__PURE__ */ new Set([...pe, ...z]), me = (e) => e.startsWith(I), he = (e) => e.startsWith(L), ge = (e) => e.startsWith(R), _e = (e) => e.endsWith("-thinking"), ve = (e) => e.includes("/") ? me(e) || he(e) || ge(e) : !1, V = P({
|
|
26
26
|
baseURL: process.env.XAI_BASE_URL ?? "https://api.x.ai/v1",
|
|
27
27
|
apiKey: process.env.XAI_API_KEY
|
|
28
28
|
}), ye = N({ apiKey: process.env.GOOGLE_GENERATIVE_AI_API_KEY ?? process.env.GOOGLE_API_KEY }), be = (e) => {
|
|
@@ -954,7 +954,7 @@ ${e}`;
|
|
|
954
954
|
...e,
|
|
955
955
|
parts: n
|
|
956
956
|
} : e;
|
|
957
|
-
}), Yt = (e) => e
|
|
957
|
+
}), Yt = (e) => !e || !e.trim(), Xt = (e) => (Array.isArray(e) ? e : []).filter((e) => !!e && typeof e == "object" && !!e && "type" in e && "text" in e && e.type === "text" && typeof e.text == "string").map((e) => e.text).join("").trim(), Zt = (e) => {
|
|
958
958
|
let t = e.trim();
|
|
959
959
|
return t = t.replaceAll("\n", " "), t = t.replaceAll("\r", " "), t = t.replace(/\s+/g, " ").trim(), t = t.replace(/^(?:chat\s+)?title\s*[:\-–—]\s*/i, ""), t = t.replace(/^[#*\-•>"'`\s]+/, ""), t = t.replace(/[#:]/g, " "), t = t.replace(/[`"'*_~[\]()\\]/g, ""), t = t.replace(/\s+/g, " ").trim(), t.length > 30 && (t = t.slice(0, 30).trimEnd()), t;
|
|
960
960
|
}, Qt = (e) => {
|
|
@@ -991,7 +991,7 @@ F.any(), F.any();
|
|
|
991
991
|
var nn = /* @__PURE__ */ e({
|
|
992
992
|
default: () => ar,
|
|
993
993
|
runAgentLoop: () => nr
|
|
994
|
-
}), rn = 1024 * 1024 * 20, an = 1e5, on = /^\/api\/rb\/files\/([^/]+)\/?$/, sn = "test-model", cn = "openai/gpt-5.6-luna", ln = 9e3, un = 5, dn = new Set([
|
|
994
|
+
}), rn = 1024 * 1024 * 20, an = 1e5, on = /^\/api\/rb\/files\/([^/]+)\/?$/, sn = "test-model", cn = "openai/gpt-5.6-luna", ln = 9e3, un = 5, dn = /* @__PURE__ */ new Set([
|
|
995
995
|
"start",
|
|
996
996
|
"start-step",
|
|
997
997
|
"finish-step",
|
|
@@ -1015,7 +1015,7 @@ var nn = /* @__PURE__ */ e({
|
|
|
1015
1015
|
}, _n = (e) => {
|
|
1016
1016
|
if (typeof e == "boolean") return e;
|
|
1017
1017
|
let t = Y(e)?.toLowerCase();
|
|
1018
|
-
return t ? t === "true"
|
|
1018
|
+
return t ? t === "true" || t !== "false" && null : null;
|
|
1019
1019
|
}, vn = (e) => {
|
|
1020
1020
|
let t = e.req?.session?.user?.currentTenantId;
|
|
1021
1021
|
return Y(t);
|
|
@@ -1236,7 +1236,7 @@ var nn = /* @__PURE__ */ e({
|
|
|
1236
1236
|
}
|
|
1237
1237
|
let [, n] = e.split("/", 2);
|
|
1238
1238
|
return n || e;
|
|
1239
|
-
}, Vn = (e) => typeof e.type == "string"
|
|
1239
|
+
}, Vn = (e) => typeof e.type == "string" && !dn.has(e.type), X = (e) => typeof e == "number" && Number.isFinite(e) ? e : void 0, Hn = (e) => e instanceof Error && e.message.trim() ? e.message : "Unknown error", Un = (e, t) => {
|
|
1240
1240
|
let n = Hn(e).toLowerCase(), r = Rn(t);
|
|
1241
1241
|
return n.includes("api key") || n.includes("apikey") || n.includes("unauthorized") || n.includes("invalid authentication") || n.includes("401") ? `${r} API key is missing or invalid. ${zn(t)}` : n.includes("quota") || n.includes("rate limit") || n.includes("rate_limit") || n.includes("billing") || n.includes("credit") || n.includes("429") ? `${r} could not process this request because of quota, rate limit, or billing limits. Check provider usage and billing, then try again.` : n.includes("tool approval") || n.includes("approvalid") || n.includes("approval id") || n.includes("tool call") || n.includes("tool result") || n.includes("missing tool") ? "The tool approval state for this message is out of date. Please retry the tool call." : n.includes("model not found") || n.includes("not found") || n.includes("unsupported model") || n.includes("404") ? `${r} could not use the selected model "${t}". Check the model configuration and provider access.` : "Something went wrong.";
|
|
1242
1242
|
}, Wn = (e) => e instanceof Error ? {
|
|
@@ -1582,13 +1582,15 @@ var nn = /* @__PURE__ */ e({
|
|
|
1582
1582
|
if (Array.isArray(h.messages) && !I) {
|
|
1583
1583
|
let e = h.messages.flatMap((e) => {
|
|
1584
1584
|
let t = typeof e?.id == "string" ? e.id : null, n = typeof e?.role == "string" ? e.role : null, r = Array.isArray(e?.parts) ? e.parts : [];
|
|
1585
|
-
|
|
1585
|
+
if (!t || !n) return [];
|
|
1586
|
+
let i = Fn(e?.metadata) ?? /* @__PURE__ */ new Date();
|
|
1587
|
+
return [{
|
|
1586
1588
|
id: t,
|
|
1587
1589
|
chatId: p,
|
|
1588
1590
|
role: n,
|
|
1589
1591
|
parts: r,
|
|
1590
1592
|
attachments: [],
|
|
1591
|
-
createdAt:
|
|
1593
|
+
createdAt: i
|
|
1592
1594
|
}];
|
|
1593
1595
|
});
|
|
1594
1596
|
e.length > 0 && await m(i, e);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./apiErrors-
|
|
2
|
-
import { u as t } from "./chatDb-
|
|
1
|
+
import { t as e } from "./apiErrors-RWc9tGd8.js";
|
|
2
|
+
import { u as t } from "./chatDb-LLLcarPc.js";
|
|
3
3
|
import { z as n } from "zod";
|
|
4
4
|
//#region src/api/suggestions/index.ts
|
|
5
5
|
var r = "/api/rb/agents/suggestions";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./apiErrors-
|
|
2
|
-
import { a as t, c as n, i as r } from "./chatDb-
|
|
1
|
+
import { t as e } from "./apiErrors-RWc9tGd8.js";
|
|
2
|
+
import { a as t, c as n, i as r } from "./chatDb-BdJ9YtaF.js";
|
|
3
3
|
import { z as i } from "zod";
|
|
4
4
|
//#region src/api/chat/messages/trailing/index.ts
|
|
5
5
|
var a = "/api/rb/agents/chat/messages/trailing";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./apiErrors-
|
|
2
|
-
import { n as t } from "./chatCtx-
|
|
1
|
+
import { t as e } from "./apiErrors-RWc9tGd8.js";
|
|
2
|
+
import { n as t } from "./chatCtx-epoE4Pyt.js";
|
|
3
3
|
import { z as n } from "zod";
|
|
4
4
|
//#region src/api/session/tenant/index.ts
|
|
5
5
|
var r = "/api/rb/agents/session/tenant", i = n.object({ tenantId: n.string().trim().min(1) }), a = n.object({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./apiErrors-
|
|
2
|
-
import { u as t } from "./chatDb-
|
|
1
|
+
import { t as e } from "./apiErrors-RWc9tGd8.js";
|
|
2
|
+
import { u as t } from "./chatDb-BdJ9YtaF.js";
|
|
3
3
|
import { z as n } from "zod";
|
|
4
4
|
//#region src/api/suggestions/index.ts
|
|
5
5
|
var r = "/api/rb/agents/suggestions";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./apiErrors-
|
|
2
|
-
import { a as t, c as n, i as r } from "./chatDb-
|
|
1
|
+
import { t as e } from "./apiErrors-RWc9tGd8.js";
|
|
2
|
+
import { a as t, c as n, i as r } from "./chatDb-LLLcarPc.js";
|
|
3
3
|
import { z as i } from "zod";
|
|
4
4
|
//#region src/api/chat/messages/trailing/index.ts
|
|
5
5
|
var a = "/api/rb/agents/chat/messages/trailing";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./apiErrors-
|
|
2
|
-
import { n as t } from "./resumableSse-
|
|
1
|
+
import { t as e } from "./apiErrors-RWc9tGd8.js";
|
|
2
|
+
import { n as t } from "./resumableSse-DtRkqH19.js";
|
|
3
3
|
import { z as n } from "zod";
|
|
4
4
|
//#region src/api/chat/stream/index.ts
|
|
5
5
|
var r = "/api/rb/agents/chat/:id/stream";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./apiErrors-
|
|
2
|
-
import { h as t, r as n, s as r } from "./chatDb-
|
|
1
|
+
import { t as e } from "./apiErrors-RWc9tGd8.js";
|
|
2
|
+
import { h as t, r as n, s as r } from "./chatDb-BdJ9YtaF.js";
|
|
3
3
|
import { z as i } from "zod";
|
|
4
4
|
//#region src/api/document/index.ts
|
|
5
5
|
var a = "/api/rb/agents/document";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./apiErrors-
|
|
2
|
-
import { a as t, l as n } from "./chatDb-
|
|
1
|
+
import { t as e } from "./apiErrors-RWc9tGd8.js";
|
|
2
|
+
import { a as t, l as n } from "./chatDb-BdJ9YtaF.js";
|
|
3
3
|
import { z as r } from "zod";
|
|
4
4
|
//#region src/api/chat/messages/index.ts
|
|
5
5
|
var i = "/api/rb/agents/chat/messages";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./chatCtx-
|
|
2
|
-
import { t } from "./apiErrors-
|
|
3
|
-
import { o as n, t as r } from "./chatDb-
|
|
1
|
+
import { t as e } from "./chatCtx-CWJXZURe.js";
|
|
2
|
+
import { t } from "./apiErrors-RWc9tGd8.js";
|
|
3
|
+
import { o as n, t as r } from "./chatDb-LLLcarPc.js";
|
|
4
4
|
import { z as i } from "zod";
|
|
5
5
|
//#region src/api/history/index.ts
|
|
6
6
|
var a = "/api/rb/agents/history";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./apiErrors-
|
|
2
|
-
import { a as t, l as n } from "./chatDb-
|
|
1
|
+
import { t as e } from "./apiErrors-RWc9tGd8.js";
|
|
2
|
+
import { a as t, l as n } from "./chatDb-LLLcarPc.js";
|
|
3
3
|
import { z as r } from "zod";
|
|
4
4
|
//#region src/api/chat/messages/index.ts
|
|
5
5
|
var i = "/api/rb/agents/chat/messages";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./apiErrors-
|
|
2
|
-
import { d as t, w as n } from "./chatDb-
|
|
1
|
+
import { t as e } from "./apiErrors-RWc9tGd8.js";
|
|
2
|
+
import { d as t, w as n } from "./chatDb-BdJ9YtaF.js";
|
|
3
3
|
import { z as r } from "zod";
|
|
4
4
|
//#region src/api/vote/index.ts
|
|
5
5
|
var i = "/api/rb/agents/vote";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as e, o as t } from "./message-visibility-
|
|
2
|
-
import { i as n } from "./openai-reasoning-
|
|
3
|
-
import { t as r } from "./apiErrors-
|
|
4
|
-
import { i, r as a, t as o } from "./chatCtx-
|
|
5
|
-
import { C as s, S as c, _ as l, a as u, b as d, f, g as p, h as m, l as h, m as ee, n as g, s as _, v, x as te, y as ne } from "./chatDb-
|
|
6
|
-
import { n as y, t as b } from "./resumableSse-
|
|
1
|
+
import { c as e, o as t } from "./message-visibility-uK3_gpMi.js";
|
|
2
|
+
import { i as n } from "./openai-reasoning-BAkAwD4A.js";
|
|
3
|
+
import { t as r } from "./apiErrors-RWc9tGd8.js";
|
|
4
|
+
import { i, r as a, t as o } from "./chatCtx-epoE4Pyt.js";
|
|
5
|
+
import { C as s, S as c, _ as l, a as u, b as d, f, g as p, h as m, l as h, m as ee, n as g, s as _, v, x as te, y as ne } from "./chatDb-BdJ9YtaF.js";
|
|
6
|
+
import { n as y, t as b } from "./resumableSse-DtRkqH19.js";
|
|
7
7
|
import { Output as x, convertToModelMessages as re, createUIMessageStream as S, extractReasoningMiddleware as ie, generateText as ae, smoothStream as C, stepCountIs as oe, streamObject as w, streamText as se, tool as T, wrapLanguageModel as E } from "ai";
|
|
8
8
|
import { getTenantFilesystemDb as D } from "@rpcbase/db";
|
|
9
9
|
import { createHash as ce, randomUUID as O } from "node:crypto";
|
|
@@ -48,7 +48,7 @@ var F = 1e6, I = (e) => typeof e != "number" || !Number.isFinite(e) || e <= 0 ?
|
|
|
48
48
|
"openai/gpt-5.6-luna",
|
|
49
49
|
"google/gemini-3.5-flash",
|
|
50
50
|
"xai/grok-4.3-thinking"
|
|
51
|
-
], me = ["openai/gpt-5.4-mini", "openai/gpt-5.5"], he = new Set([...pe, ...me]), ge = (e) => e.startsWith(B), _e = (e) => e.startsWith(V), ve = (e) => e.startsWith(H), ye = (e) => e.endsWith("-thinking"), be = (e) => e.includes("/") ? ge(e) || _e(e) || ve(e) : !1, xe = M({
|
|
51
|
+
], me = ["openai/gpt-5.4-mini", "openai/gpt-5.5"], he = /* @__PURE__ */ new Set([...pe, ...me]), ge = (e) => e.startsWith(B), _e = (e) => e.startsWith(V), ve = (e) => e.startsWith(H), ye = (e) => e.endsWith("-thinking"), be = (e) => e.includes("/") ? ge(e) || _e(e) || ve(e) : !1, xe = M({
|
|
52
52
|
baseURL: process.env.XAI_BASE_URL ?? "https://api.x.ai/v1",
|
|
53
53
|
apiKey: process.env.XAI_API_KEY
|
|
54
54
|
}), Se = j({ apiKey: process.env.GOOGLE_GENERATIVE_AI_API_KEY ?? process.env.GOOGLE_API_KEY }), Ce = (e) => {
|
|
@@ -980,7 +980,7 @@ ${e}`;
|
|
|
980
980
|
...e,
|
|
981
981
|
parts: n
|
|
982
982
|
} : e;
|
|
983
|
-
}), $t = (e) => e
|
|
983
|
+
}), $t = (e) => !e || !e.trim(), en = (e) => (Array.isArray(e) ? e : []).filter((e) => !!e && typeof e == "object" && !!e && "type" in e && "text" in e && e.type === "text" && typeof e.text == "string").map((e) => e.text).join("").trim(), tn = (e) => {
|
|
984
984
|
let t = e.trim();
|
|
985
985
|
return t = t.replaceAll("\n", " "), t = t.replaceAll("\r", " "), t = t.replace(/\s+/g, " ").trim(), t = t.replace(/^(?:chat\s+)?title\s*[:\-–—]\s*/i, ""), t = t.replace(/^[#*\-•>"'`\s]+/, ""), t = t.replace(/[#:]/g, " "), t = t.replace(/[`"'*_~[\]()\\]/g, ""), t = t.replace(/\s+/g, " ").trim(), t.length > 30 && (t = t.slice(0, 30).trimEnd()), t;
|
|
986
986
|
}, nn = (e) => {
|
|
@@ -1012,7 +1012,7 @@ ${e}`;
|
|
|
1012
1012
|
};
|
|
1013
1013
|
}, on = "/api/rb/agents/chat";
|
|
1014
1014
|
N.any(), N.any();
|
|
1015
|
-
var sn = 1024 * 1024 * 20, cn = 1e5, ln = /^\/api\/rb\/files\/([^/]+)\/?$/, un = "test-model", dn = "openai/gpt-5.6-luna", fn = 9e3, pn = 5, mn = new Set([
|
|
1015
|
+
var sn = 1024 * 1024 * 20, cn = 1e5, ln = /^\/api\/rb\/files\/([^/]+)\/?$/, un = "test-model", dn = "openai/gpt-5.6-luna", fn = 9e3, pn = 5, mn = /* @__PURE__ */ new Set([
|
|
1016
1016
|
"start",
|
|
1017
1017
|
"start-step",
|
|
1018
1018
|
"finish-step",
|
|
@@ -1036,7 +1036,7 @@ var sn = 1024 * 1024 * 20, cn = 1e5, ln = /^\/api\/rb\/files\/([^/]+)\/?$/, un =
|
|
|
1036
1036
|
}, bn = (e) => {
|
|
1037
1037
|
if (typeof e == "boolean") return e;
|
|
1038
1038
|
let t = Y(e)?.toLowerCase();
|
|
1039
|
-
return t ? t === "true"
|
|
1039
|
+
return t ? t === "true" || t !== "false" && null : null;
|
|
1040
1040
|
}, xn = (e) => {
|
|
1041
1041
|
let t = e.req?.session?.user?.currentTenantId;
|
|
1042
1042
|
return Y(t);
|
|
@@ -1257,7 +1257,7 @@ var sn = 1024 * 1024 * 20, cn = 1e5, ln = /^\/api\/rb\/files\/([^/]+)\/?$/, un =
|
|
|
1257
1257
|
}
|
|
1258
1258
|
let [, n] = e.split("/", 2);
|
|
1259
1259
|
return n || e;
|
|
1260
|
-
}, Wn = (e) => typeof e.type == "string"
|
|
1260
|
+
}, Wn = (e) => typeof e.type == "string" && !mn.has(e.type), X = (e) => typeof e == "number" && Number.isFinite(e) ? e : void 0, Gn = (e) => e instanceof Error && e.message.trim() ? e.message : "Unknown error", Kn = (e, t) => {
|
|
1261
1261
|
let n = Gn(e).toLowerCase(), r = Vn(t);
|
|
1262
1262
|
return n.includes("api key") || n.includes("apikey") || n.includes("unauthorized") || n.includes("invalid authentication") || n.includes("401") ? `${r} API key is missing or invalid. ${Hn(t)}` : n.includes("quota") || n.includes("rate limit") || n.includes("rate_limit") || n.includes("billing") || n.includes("credit") || n.includes("429") ? `${r} could not process this request because of quota, rate limit, or billing limits. Check provider usage and billing, then try again.` : n.includes("tool approval") || n.includes("approvalid") || n.includes("approval id") || n.includes("tool call") || n.includes("tool result") || n.includes("missing tool") ? "The tool approval state for this message is out of date. Please retry the tool call." : n.includes("model not found") || n.includes("not found") || n.includes("unsupported model") || n.includes("404") ? `${r} could not use the selected model "${t}". Check the model configuration and provider access.` : "Something went wrong.";
|
|
1263
1263
|
}, qn = (e) => e instanceof Error ? {
|
|
@@ -1603,13 +1603,15 @@ var sn = 1024 * 1024 * 20, cn = 1e5, ln = /^\/api\/rb\/files\/([^/]+)\/?$/, un =
|
|
|
1603
1603
|
if (Array.isArray(g.messages) && !R) {
|
|
1604
1604
|
let e = g.messages.flatMap((e) => {
|
|
1605
1605
|
let t = typeof e?.id == "string" ? e.id : null, n = typeof e?.role == "string" ? e.role : null, r = Array.isArray(e?.parts) ? e.parts : [];
|
|
1606
|
-
|
|
1606
|
+
if (!t || !n) return [];
|
|
1607
|
+
let i = Rn(e?.metadata) ?? /* @__PURE__ */ new Date();
|
|
1608
|
+
return [{
|
|
1607
1609
|
id: t,
|
|
1608
1610
|
chatId: m,
|
|
1609
1611
|
role: n,
|
|
1610
1612
|
parts: r,
|
|
1611
1613
|
attachments: [],
|
|
1612
|
-
createdAt:
|
|
1614
|
+
createdAt: i
|
|
1613
1615
|
}];
|
|
1614
1616
|
});
|
|
1615
1617
|
e.length > 0 && await p(i, e);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./apiErrors-
|
|
2
|
-
import { d as t, w as n } from "./chatDb-
|
|
1
|
+
import { t as e } from "./apiErrors-RWc9tGd8.js";
|
|
2
|
+
import { d as t, w as n } from "./chatDb-LLLcarPc.js";
|
|
3
3
|
import { z as r } from "zod";
|
|
4
4
|
//#region src/api/vote/index.ts
|
|
5
5
|
var i = "/api/rb/agents/vote";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./chatCtx-
|
|
2
|
-
import { t } from "./apiErrors-
|
|
1
|
+
import { n as e } from "./chatCtx-CWJXZURe.js";
|
|
2
|
+
import { t } from "./apiErrors-RWc9tGd8.js";
|
|
3
3
|
import { z as n } from "zod";
|
|
4
4
|
//#region src/api/session/tenant/index.ts
|
|
5
5
|
var r = "/api/rb/agents/session/tenant", i = n.object({ tenantId: n.string().trim().min(1) }), a = n.object({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./apiErrors-
|
|
2
|
-
import { t } from "./chatCtx-
|
|
3
|
-
import { o as n, t as r } from "./chatDb-
|
|
1
|
+
import { t as e } from "./apiErrors-RWc9tGd8.js";
|
|
2
|
+
import { t } from "./chatCtx-epoE4Pyt.js";
|
|
3
|
+
import { o as n, t as r } from "./chatDb-BdJ9YtaF.js";
|
|
4
4
|
import { z as i } from "zod";
|
|
5
5
|
//#region src/api/history/index.ts
|
|
6
6
|
var a = "/api/rb/agents/history";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./apiErrors-
|
|
2
|
-
import { h as t, r as n, s as r } from "./chatDb-
|
|
1
|
+
import { t as e } from "./apiErrors-RWc9tGd8.js";
|
|
2
|
+
import { h as t, r as n, s as r } from "./chatDb-LLLcarPc.js";
|
|
3
3
|
import { z as i } from "zod";
|
|
4
4
|
//#region src/api/document/index.ts
|
|
5
5
|
var a = "/api/rb/agents/document";
|
package/dist/{highlighted-body-OFNGDK62-kzg9WvPK.js → highlighted-body-OFNGDK62-Bo_Nbn3N.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as e, i as t, r as n } from "./data-stream-handler-Dp949DCd.js";
|
|
2
2
|
import { useContext as r, useEffect as i, useState as a } from "react";
|
|
3
3
|
import { jsx as o } from "react/jsx-runtime";
|
|
4
4
|
//#region ../../node_modules/streamdown/dist/highlighted-body-OFNGDK62.js
|
package/dist/{highlighted-body-OFNGDK62-yqCKh6K1.js → highlighted-body-OFNGDK62-kcHa9q-o.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as e, i as t, r as n } from "./data-stream-handler-B2V3HKGV.js";
|
|
2
2
|
import { useContext as r, useEffect as i, useState as a } from "react";
|
|
3
3
|
import { jsx as o } from "react/jsx-runtime";
|
|
4
4
|
//#region ../../node_modules/streamdown/dist/highlighted-body-OFNGDK62.js
|
package/dist/index.browser.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as d, i as f, n as p, o as m, r as h, s as g, t as _ } from "./models-
|
|
1
|
+
import { _ as e, c as t, g as n, h as r, l as i, m as a, n as o, s, t as c, v as l, y as u } from "./data-stream-handler-B2V3HKGV.js";
|
|
2
|
+
import { a as d, i as f, n as p, o as m, r as h, s as g, t as _ } from "./models-CQvbIFoQ.js";
|
|
3
3
|
//#region src/index.ts
|
|
4
4
|
var v = () => "hello world";
|
|
5
5
|
//#endregion
|
|
6
|
-
export {
|
|
6
|
+
export { i as AgentsChatHistory, r as AgentsChatNavigationProvider, s as AgentsChatRouteLayout, t as AgentsChatSidebarPanel, o as Chat, _ as DEFAULT_CHAT_MODEL, c as DataStreamHandler, a as DataStreamProvider, p as allowedModelIds, h as chatModels, n as getAgentsChatBasePath, f as getAllowedModelIds, e as getChatIdFromPathname, d as getModelsByProvider, v as helloWorld, l as joinAgentsChatPath, m as modelsByProvider, g as resolveDefaultChatModel, u as useAgentsChatNavigation };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as d, i as f, n as p, o as m, r as h, s as g, t as _ } from "./models-
|
|
1
|
+
import { _ as e, c as t, g as n, h as r, l as i, m as a, n as o, s, t as c, v as l, y as u } from "./data-stream-handler-Dp949DCd.js";
|
|
2
|
+
import { a as d, i as f, n as p, o as m, r as h, s as g, t as _ } from "./models-CQvbIFoQ.js";
|
|
3
3
|
//#region src/index.ts
|
|
4
4
|
var v = () => "hello world";
|
|
5
5
|
//#endregion
|
|
6
|
-
export {
|
|
6
|
+
export { i as AgentsChatHistory, r as AgentsChatNavigationProvider, s as AgentsChatRouteLayout, t as AgentsChatSidebarPanel, o as Chat, _ as DEFAULT_CHAT_MODEL, c as DataStreamHandler, a as DataStreamProvider, p as allowedModelIds, h as chatModels, n as getAgentsChatBasePath, f as getAllowedModelIds, e as getChatIdFromPathname, d as getModelsByProvider, v as helloWorld, l as joinAgentsChatPath, m as modelsByProvider, g as resolveDefaultChatModel, u as useAgentsChatNavigation };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region src/lib/chat-streaming.ts
|
|
2
|
+
var e = 60 * 1e3, t = (e) => {
|
|
3
|
+
if (!e) return null;
|
|
4
|
+
let t = e instanceof Date ? e.getTime() : new Date(e).getTime();
|
|
5
|
+
return Number.isFinite(t) ? t : null;
|
|
6
|
+
}, n = (e) => t(e.streamingUpdatedAt) ?? t(e.createdAt), r = (e, t = Date.now()) => {
|
|
7
|
+
if (!e.isStreaming) return !1;
|
|
8
|
+
let r = n(e);
|
|
9
|
+
return r == null || (t instanceof Date ? t.getTime() : t) - r > 18e5;
|
|
10
|
+
}, i = (e, t = Date.now()) => {
|
|
11
|
+
let n = r(e, t);
|
|
12
|
+
return {
|
|
13
|
+
isStreaming: !!e.isStreaming && !n,
|
|
14
|
+
isStaleStreaming: n
|
|
15
|
+
};
|
|
16
|
+
}, a = (e) => typeof e == "object" && !!e, o = (e) => typeof e == "string" && (e === "dynamic-tool" || e.startsWith("tool-")), s = (e) => a(e) && o(e.type), c = /* @__PURE__ */ new Set([
|
|
17
|
+
"custom",
|
|
18
|
+
"source-url",
|
|
19
|
+
"source-document",
|
|
20
|
+
"reasoning-file"
|
|
21
|
+
]), l = (e) => typeof e == "string" && (c.has(e) || e.startsWith("data-")), u = (e) => a(e) && l(e.type), d = (e) => {
|
|
22
|
+
if (!a(e) || e.type !== "reasoning") return !1;
|
|
23
|
+
let t = typeof e.text == "string" ? e.text : "", n = e.state === "streaming", r = !!e.providerMetadata;
|
|
24
|
+
return !!t.trim() || n || r;
|
|
25
|
+
}, f = (e) => a(e) ? e.type === "text" ? typeof e.text == "string" && e.text.trim() !== "" : e.type === "reasoning" ? d(e) : e.type === "file" ? typeof e.url == "string" && e.url.trim() !== "" : s(e) || u(e) : !1, p = (e) => e.role === "assistant" && (e.parts?.some((e) => f(e)) ?? !1), m = (e) => e.role === "assistant" && !p(e), h = (e) => !m(e);
|
|
26
|
+
//#endregion
|
|
27
|
+
export { h as a, r as c, o as i, d as n, e as o, m as r, i as s, p as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var e =
|
|
1
|
+
var e = /* @__PURE__ */ new Map(), t = (e) => {
|
|
2
2
|
e.res.status(200), e.res.setHeader("content-type", "text/event-stream"), e.res.setHeader("cache-control", "no-cache"), e.res.setHeader("connection", "keep-alive"), e.res.setHeader("x-vercel-ai-ui-message-stream", "v1"), e.res.setHeader("x-accel-buffering", "no"), e.res.flushHeaders?.();
|
|
3
|
-
},
|
|
3
|
+
}, n = (e) => Buffer.byteLength(e, "utf8"), r = class {
|
|
4
4
|
chatId;
|
|
5
5
|
abortController;
|
|
6
6
|
#e = [];
|
|
@@ -11,14 +11,14 @@ var e = 1024 * 1024, t = 6e4, n = 3e4, r = /* @__PURE__ */ new Map(), i = (e) =>
|
|
|
11
11
|
maxBufferBytes;
|
|
12
12
|
cleanupAfterMs;
|
|
13
13
|
abortWhenNoSubscribersMs;
|
|
14
|
-
constructor({ chatId:
|
|
15
|
-
this.chatId =
|
|
14
|
+
constructor({ chatId: e, abortController: t, maxBufferBytes: n = 1048576, cleanupAfterMs: r = 6e4, abortWhenNoSubscribersMs: i = 3e4 }) {
|
|
15
|
+
this.chatId = e, this.abortController = t ?? new AbortController(), this.maxBufferBytes = n, this.cleanupAfterMs = r, this.abortWhenNoSubscribersMs = i;
|
|
16
16
|
}
|
|
17
17
|
get isDone() {
|
|
18
18
|
return this.#r;
|
|
19
19
|
}
|
|
20
20
|
subscribe(e) {
|
|
21
|
-
|
|
21
|
+
t(e);
|
|
22
22
|
for (let t of this.#e) try {
|
|
23
23
|
e.res.write(t);
|
|
24
24
|
} catch {
|
|
@@ -30,13 +30,13 @@ var e = 1024 * 1024, t = 6e4, n = 3e4, r = /* @__PURE__ */ new Map(), i = (e) =>
|
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
32
|
this.#a();
|
|
33
|
-
let
|
|
33
|
+
let n = {
|
|
34
34
|
res: e.res,
|
|
35
35
|
onClose: () => {
|
|
36
|
-
this.#n.delete(
|
|
36
|
+
this.#n.delete(n), this.#o();
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
this.#n.add(
|
|
39
|
+
this.#n.add(n), e.res.on("close", n.onClose);
|
|
40
40
|
}
|
|
41
41
|
publishJson(e) {
|
|
42
42
|
this.publishRaw(`data: ${JSON.stringify(e)}\n\n`);
|
|
@@ -46,10 +46,10 @@ var e = 1024 * 1024, t = 6e4, n = 3e4, r = /* @__PURE__ */ new Map(), i = (e) =>
|
|
|
46
46
|
}
|
|
47
47
|
publishRaw(e) {
|
|
48
48
|
if (this.#r) return;
|
|
49
|
-
let t =
|
|
49
|
+
let t = n(e);
|
|
50
50
|
for (this.#e.push(e), this.#t += t; this.#t > this.maxBufferBytes && this.#e.length > 0;) {
|
|
51
51
|
let e = this.#e.shift();
|
|
52
|
-
e != null && (this.#t -=
|
|
52
|
+
e != null && (this.#t -= n(e));
|
|
53
53
|
}
|
|
54
54
|
for (let t of this.#n) try {
|
|
55
55
|
t.res.write(e);
|
|
@@ -68,7 +68,7 @@ var e = 1024 * 1024, t = 6e4, n = 3e4, r = /* @__PURE__ */ new Map(), i = (e) =>
|
|
|
68
68
|
e.res.off("close", e.onClose), e.res.end();
|
|
69
69
|
} catch {}
|
|
70
70
|
this.#n.clear(), setTimeout(() => {
|
|
71
|
-
|
|
71
|
+
e.delete(this.chatId);
|
|
72
72
|
}, this.cleanupAfterMs);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -91,16 +91,16 @@ var e = 1024 * 1024, t = 6e4, n = 3e4, r = /* @__PURE__ */ new Map(), i = (e) =>
|
|
|
91
91
|
this.abort("No subscribers for resumable stream.");
|
|
92
92
|
}, this.abortWhenNoSubscribersMs));
|
|
93
93
|
}
|
|
94
|
-
},
|
|
95
|
-
let
|
|
96
|
-
|
|
97
|
-
let s = new
|
|
98
|
-
chatId:
|
|
99
|
-
maxBufferBytes:
|
|
100
|
-
cleanupAfterMs:
|
|
101
|
-
abortWhenNoSubscribersMs:
|
|
94
|
+
}, i = (t) => e.get(t) ?? null, a = ({ chatId: t, maxBufferBytes: n, cleanupAfterMs: i, abortWhenNoSubscribersMs: a }) => {
|
|
95
|
+
let o = e.get(t);
|
|
96
|
+
o && !o.isDone && o.abort("Replaced by new chat stream.");
|
|
97
|
+
let s = new r({
|
|
98
|
+
chatId: t,
|
|
99
|
+
maxBufferBytes: n,
|
|
100
|
+
cleanupAfterMs: i,
|
|
101
|
+
abortWhenNoSubscribersMs: a
|
|
102
102
|
});
|
|
103
|
-
return
|
|
103
|
+
return e.set(t, s), s;
|
|
104
104
|
};
|
|
105
105
|
//#endregion
|
|
106
|
-
export {
|
|
106
|
+
export { i as n, a as t };
|
package/dist/routes.browser.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
//#region src/routes.ts
|
|
2
|
-
var e = Object.entries({ .../*
|
|
3
|
-
"./api/chat/handler.ts": () => import("./handler-
|
|
4
|
-
"./api/chat/messages/handler.ts": () => import("./handler-
|
|
5
|
-
"./api/chat/messages/trailing/handler.ts": () => import("./handler-
|
|
6
|
-
"./api/chat/stream/handler.ts": () => import("./handler-
|
|
7
|
-
"./api/document/handler.ts": () => import("./handler-
|
|
8
|
-
"./api/history/handler.ts": () => import("./handler-
|
|
9
|
-
"./api/ping/handler.ts": () => import("./handler-
|
|
10
|
-
"./api/session/current/handler.ts": () => import("./handler-
|
|
11
|
-
"./api/session/tenant/handler.ts": () => import("./handler-
|
|
12
|
-
"./api/stream-test/handler.ts": () => import("./handler-
|
|
13
|
-
"./api/suggestions/handler.ts": () => import("./handler-
|
|
14
|
-
"./api/test/reset/handler.ts": () => import("./handler-
|
|
15
|
-
"./api/upload/handler.ts": () => import("./handler-
|
|
16
|
-
"./api/vote/handler.ts": () => import("./handler-
|
|
2
|
+
var e = Object.entries({ .../* #__PURE__ */ Object.assign({
|
|
3
|
+
"./api/chat/handler.ts": () => import("./handler-DGw6yvzu.js"),
|
|
4
|
+
"./api/chat/messages/handler.ts": () => import("./handler-CNsGVuBn.js"),
|
|
5
|
+
"./api/chat/messages/trailing/handler.ts": () => import("./handler-BSG39XdY.js"),
|
|
6
|
+
"./api/chat/stream/handler.ts": () => import("./handler-BttWvqmo.js"),
|
|
7
|
+
"./api/document/handler.ts": () => import("./handler-BylXkLvi.js"),
|
|
8
|
+
"./api/history/handler.ts": () => import("./handler-rwSMomTA.js"),
|
|
9
|
+
"./api/ping/handler.ts": () => import("./handler-BK9cWKoI.js"),
|
|
10
|
+
"./api/session/current/handler.ts": () => import("./handler-CQ06rgy5.js"),
|
|
11
|
+
"./api/session/tenant/handler.ts": () => import("./handler-BWYFYUnk.js"),
|
|
12
|
+
"./api/stream-test/handler.ts": () => import("./handler-DGWoNsXk.js"),
|
|
13
|
+
"./api/suggestions/handler.ts": () => import("./handler-BYacFO-Y.js"),
|
|
14
|
+
"./api/test/reset/handler.ts": () => import("./handler-HdMkAycE.js"),
|
|
15
|
+
"./api/upload/handler.ts": () => import("./handler-BMYOlmTp.js"),
|
|
16
|
+
"./api/vote/handler.ts": () => import("./handler-DGoBAAu-.js")
|
|
17
17
|
}) }).reduce((e, [t, n]) => (e[t.replace("./api/", "@rpcbase/agents-sdk/api/")] = n, e), {});
|
|
18
18
|
//#endregion
|
|
19
19
|
export { e as routes };
|
package/dist/routes.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
//#region src/routes.ts
|
|
2
|
-
var e = Object.entries({ .../*
|
|
3
|
-
"./api/chat/handler.ts": () => import("./handler-
|
|
4
|
-
"./api/chat/messages/handler.ts": () => import("./handler-
|
|
5
|
-
"./api/chat/messages/trailing/handler.ts": () => import("./handler-
|
|
6
|
-
"./api/chat/stream/handler.ts": () => import("./handler-
|
|
7
|
-
"./api/document/handler.ts": () => import("./handler-
|
|
8
|
-
"./api/history/handler.ts": () => import("./handler-
|
|
9
|
-
"./api/ping/handler.ts": () => import("./handler-
|
|
10
|
-
"./api/session/current/handler.ts": () => import("./handler-
|
|
11
|
-
"./api/session/tenant/handler.ts": () => import("./handler-
|
|
12
|
-
"./api/stream-test/handler.ts": () => import("./handler-
|
|
13
|
-
"./api/suggestions/handler.ts": () => import("./handler-
|
|
14
|
-
"./api/test/reset/handler.ts": () => import("./handler-
|
|
15
|
-
"./api/upload/handler.ts": () => import("./handler-
|
|
16
|
-
"./api/vote/handler.ts": () => import("./handler-
|
|
2
|
+
var e = Object.entries({ .../* #__PURE__ */ Object.assign({
|
|
3
|
+
"./api/chat/handler.ts": () => import("./handler-B0k7hbtU.js").then((e) => e.t),
|
|
4
|
+
"./api/chat/messages/handler.ts": () => import("./handler-CxqZ99zm.js"),
|
|
5
|
+
"./api/chat/messages/trailing/handler.ts": () => import("./handler-B_gQzTyu.js"),
|
|
6
|
+
"./api/chat/stream/handler.ts": () => import("./handler-BttWvqmo.js"),
|
|
7
|
+
"./api/document/handler.ts": () => import("./handler-w5WPgO2_.js"),
|
|
8
|
+
"./api/history/handler.ts": () => import("./handler-CtaN3xX-.js"),
|
|
9
|
+
"./api/ping/handler.ts": () => import("./handler-BK9cWKoI.js"),
|
|
10
|
+
"./api/session/current/handler.ts": () => import("./handler-DgGZGHdP.js"),
|
|
11
|
+
"./api/session/tenant/handler.ts": () => import("./handler-eE-ZIb0w.js"),
|
|
12
|
+
"./api/stream-test/handler.ts": () => import("./handler-DGWoNsXk.js"),
|
|
13
|
+
"./api/suggestions/handler.ts": () => import("./handler-BKV_TbTS.js"),
|
|
14
|
+
"./api/test/reset/handler.ts": () => import("./handler-CatyrM3e.js"),
|
|
15
|
+
"./api/upload/handler.ts": () => import("./handler-BMYOlmTp.js"),
|
|
16
|
+
"./api/vote/handler.ts": () => import("./handler-DawIiGx7.js")
|
|
17
17
|
}) }).reduce((e, [t, n]) => (e[t.replace("./api/", "@rpcbase/agents-sdk/api/")] = n, e), {});
|
|
18
18
|
//#endregion
|
|
19
19
|
export { e as routes };
|
package/dist/runtime.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, r as t } from "./chatCtx-
|
|
2
|
-
import { n } from "./handler-
|
|
1
|
+
import { i as e, r as t } from "./chatCtx-CWJXZURe.js";
|
|
2
|
+
import { n } from "./handler-B0k7hbtU.js";
|
|
3
3
|
import { publishRtsMessage as r } from "@rpcbase/server/rts";
|
|
4
4
|
//#region src/runtime.ts
|
|
5
5
|
var i = () => ({
|