@btst/stack 4.3.0 → 4.4.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/README.md +2 -2
- package/dist/packages/stack/src/plugins/ai-chat/api/compaction.cjs +249 -0
- package/dist/packages/stack/src/plugins/ai-chat/api/compaction.mjs +241 -0
- package/dist/packages/stack/src/plugins/ai-chat/api/operations.cjs +20 -0
- package/dist/packages/stack/src/plugins/ai-chat/api/operations.mjs +20 -0
- package/dist/packages/stack/src/plugins/ai-chat/api/plugin.cjs +5 -0
- package/dist/packages/stack/src/plugins/ai-chat/api/plugin.mjs +5 -0
- package/dist/packages/stack/src/plugins/ai-chat/client/components/chat-interface.cjs +38 -3
- package/dist/packages/stack/src/plugins/ai-chat/client/components/chat-interface.mjs +38 -3
- package/dist/packages/stack/src/plugins/ai-chat/client/context-checkpoint.cjs +30 -0
- package/dist/packages/stack/src/plugins/ai-chat/client/context-checkpoint.mjs +27 -0
- package/dist/packages/stack/src/plugins/ai-chat/schemas.cjs +2 -0
- package/dist/packages/stack/src/plugins/ai-chat/schemas.mjs +2 -0
- package/dist/packages/ui/src/components/markdown-content.cjs +9 -9
- package/dist/packages/ui/src/components/markdown-content.mjs +9 -9
- package/dist/plugins/ai-chat/api/index.d.cts +2 -2
- package/dist/plugins/ai-chat/api/index.d.mts +2 -2
- package/dist/plugins/ai-chat/api/index.d.ts +2 -2
- package/dist/plugins/ai-chat/client/components/index.d.cts +1 -1
- package/dist/plugins/ai-chat/client/components/index.d.mts +1 -1
- package/dist/plugins/ai-chat/client/components/index.d.ts +1 -1
- package/dist/plugins/ai-chat/client/hooks/index.d.cts +2 -2
- package/dist/plugins/ai-chat/client/hooks/index.d.mts +2 -2
- package/dist/plugins/ai-chat/client/hooks/index.d.ts +2 -2
- package/dist/plugins/ai-chat/client/index.d.cts +3 -3
- package/dist/plugins/ai-chat/client/index.d.mts +3 -3
- package/dist/plugins/ai-chat/client/index.d.ts +3 -3
- package/dist/plugins/ai-chat/query-keys.d.cts +1 -1
- package/dist/plugins/ai-chat/query-keys.d.mts +1 -1
- package/dist/plugins/ai-chat/query-keys.d.ts +1 -1
- package/dist/plugins/blog/api/index.d.cts +2 -2
- package/dist/plugins/blog/api/index.d.mts +2 -2
- package/dist/plugins/blog/api/index.d.ts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.cts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.mts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.ts +2 -2
- package/dist/plugins/blog/client/index.d.cts +2 -2
- package/dist/plugins/blog/client/index.d.mts +2 -2
- package/dist/plugins/blog/client/index.d.ts +2 -2
- package/dist/plugins/blog/query-keys.d.cts +2 -2
- package/dist/plugins/blog/query-keys.d.mts +2 -2
- package/dist/plugins/blog/query-keys.d.ts +2 -2
- package/dist/plugins/cms/api/index.d.cts +1 -1
- package/dist/plugins/cms/api/index.d.mts +1 -1
- package/dist/plugins/cms/api/index.d.ts +1 -1
- package/dist/plugins/cms/query-keys.d.cts +1 -1
- package/dist/plugins/cms/query-keys.d.mts +1 -1
- package/dist/plugins/cms/query-keys.d.ts +1 -1
- package/dist/plugins/ui-builder/client/hooks/index.d.cts +1 -1
- package/dist/plugins/ui-builder/client/hooks/index.d.mts +1 -1
- package/dist/plugins/ui-builder/client/hooks/index.d.ts +1 -1
- package/dist/plugins/ui-builder/client/index.d.cts +1 -1
- package/dist/plugins/ui-builder/client/index.d.mts +1 -1
- package/dist/plugins/ui-builder/client/index.d.ts +1 -1
- package/dist/plugins/ui-builder/query-keys.d.cts +1 -1
- package/dist/plugins/ui-builder/query-keys.d.mts +1 -1
- package/dist/plugins/ui-builder/query-keys.d.ts +1 -1
- package/dist/shared/{stack.rmWRtSjs.d.cts → stack.BGzgFx3R.d.cts} +4 -4
- package/dist/shared/{stack.DBH1Bjko.d.ts → stack.C4zspX0T.d.ts} +13 -2
- package/dist/shared/{stack.D2y4gl03.d.mts → stack.CjCSDfWy.d.mts} +4 -4
- package/dist/shared/{stack.DQpyA3Cq.d.ts → stack.Clil75lW.d.ts} +86 -86
- package/dist/shared/{stack.DzJgoNqJ.d.cts → stack.DDQlE2Pm.d.cts} +1 -0
- package/dist/shared/{stack.DiYg7Jw1.d.cts → stack.DNw6Hv5o.d.cts} +86 -86
- package/dist/shared/{stack.CZ1h_T4k.d.mts → stack.DhZtP2JZ.d.mts} +86 -86
- package/dist/shared/{stack.qMp2VzNw.d.ts → stack.DlehgNZZ.d.ts} +1 -0
- package/dist/shared/{stack.CnDMBj4z.d.ts → stack.Dpg_JjIo.d.ts} +4 -4
- package/dist/shared/{stack.B7Mj74BQ.d.mts → stack.Ps3MDhTC.d.mts} +13 -2
- package/dist/shared/{stack.CHrtGKLz.d.mts → stack.tAUeRAtd.d.mts} +1 -0
- package/dist/shared/{stack.Dgt3MCtW.d.cts → stack.ymWsP4HZ.d.cts} +13 -2
- package/package.json +1 -1
- package/src/__tests__/markdown-link-navigation.test.tsx +29 -0
- package/src/plugins/ai-chat/__tests__/compaction.test.ts +272 -0
- package/src/plugins/ai-chat/api/compaction.ts +310 -0
- package/src/plugins/ai-chat/api/operations.ts +25 -0
- package/src/plugins/ai-chat/api/plugin.ts +14 -0
- package/src/plugins/ai-chat/client/components/chat-interface.tsx +58 -3
- package/src/plugins/ai-chat/client/context-checkpoint.ts +47 -0
- package/src/plugins/ai-chat/client/localization/index.ts +1 -0
- package/src/plugins/ai-chat/schemas.ts +2 -0
- package/dist/shared/{stack.lsbdKRj7.d.mts → stack.B8PG21zX.d.mts} +16 -16
- package/dist/shared/{stack.DtZgEX84.d.cts → stack.Csi-4Mgz.d.cts} +6 -6
- package/dist/shared/{stack.DtZgEX84.d.mts → stack.Csi-4Mgz.d.mts} +6 -6
- package/dist/shared/{stack.DtZgEX84.d.ts → stack.Csi-4Mgz.d.ts} +6 -6
- package/dist/shared/{stack.BMlTZnZp.d.ts → stack.CyalJ0j6.d.ts} +16 -16
- package/dist/shared/{stack.BV0uNV4f.d.cts → stack.D6Pg-ufX.d.cts} +16 -16
|
@@ -21,6 +21,7 @@ const chatHooks = require('../hooks/chat-hooks.cjs');
|
|
|
21
21
|
const plugins_aiChat_client_context_pageAiContext = require('../../../../../../../plugins/ai-chat/client/context/page-ai-context.cjs');
|
|
22
22
|
const chatAnalytics = require('../context/chat-analytics.cjs');
|
|
23
23
|
const navigation = require('../navigation.cjs');
|
|
24
|
+
const contextCheckpoint = require('../context-checkpoint.cjs');
|
|
24
25
|
|
|
25
26
|
function reconcilePersistedMessageIds(messages, persistedMessages) {
|
|
26
27
|
const userMessages = messages.filter((message) => message.role === "user");
|
|
@@ -208,6 +209,9 @@ function ChatInterface({
|
|
|
208
209
|
const latestStreamRequestGeneration = React.useRef(0);
|
|
209
210
|
const pendingStreamRequests = React.useRef([]);
|
|
210
211
|
const latestMessages = React.useRef([]);
|
|
212
|
+
const contextCheckpoint$1 = React.useRef(void 0);
|
|
213
|
+
const submittedMessages = React.useRef([]);
|
|
214
|
+
const [isCompacting, setIsCompacting] = React.useState(false);
|
|
211
215
|
const conversationsListQueryKey = React.useMemo(() => {
|
|
212
216
|
if (isPublicMode) return ["ai-chat", "disabled"];
|
|
213
217
|
const client$1 = client.createApiClient({
|
|
@@ -307,6 +311,7 @@ function ChatInterface({
|
|
|
307
311
|
pendingStreamRequests.current.push(request);
|
|
308
312
|
activeStreamPartitionKey.current = request.identityPartitionKey;
|
|
309
313
|
}
|
|
314
|
+
setIsCompacting(false);
|
|
310
315
|
const currentPageContext = pageAIContextRef.current;
|
|
311
316
|
const pageContextBody = currentPageContext?.pageDescription ? {
|
|
312
317
|
pageContext: currentPageContext.pageDescription,
|
|
@@ -319,18 +324,20 @@ function ChatInterface({
|
|
|
319
324
|
if (newUserMessage) {
|
|
320
325
|
messagesToSend.push(newUserMessage);
|
|
321
326
|
}
|
|
327
|
+
submittedMessages.current = messagesToSend;
|
|
322
328
|
editMessagesRef.current = null;
|
|
323
329
|
return {
|
|
324
330
|
body: {
|
|
325
|
-
messages: messagesToSend,
|
|
331
|
+
...isPublicMode ? contextCheckpoint.contextRequest(messagesToSend, contextCheckpoint$1.current) : { messages: messagesToSend },
|
|
326
332
|
conversationId: conversationIdRef.current,
|
|
327
333
|
...pageContextBody
|
|
328
334
|
}
|
|
329
335
|
};
|
|
330
336
|
}
|
|
337
|
+
submittedMessages.current = hookMessages;
|
|
331
338
|
return {
|
|
332
339
|
body: {
|
|
333
|
-
messages: hookMessages,
|
|
340
|
+
...isPublicMode ? contextCheckpoint.contextRequest(hookMessages, contextCheckpoint$1.current) : { messages: hookMessages },
|
|
334
341
|
conversationId: conversationIdRef.current,
|
|
335
342
|
...pageContextBody
|
|
336
343
|
}
|
|
@@ -374,6 +381,20 @@ function ChatInterface({
|
|
|
374
381
|
} = react.useChat({
|
|
375
382
|
id: `${chatInstanceId}:${isPublicMode ? "public" : identitySessionVersion}`,
|
|
376
383
|
transport,
|
|
384
|
+
onData: ({ type, data }) => {
|
|
385
|
+
if (!isPublicMode || !mounted.current || !data || typeof data !== "object")
|
|
386
|
+
return;
|
|
387
|
+
if (type === "data-context-status" && "compacting" in data) {
|
|
388
|
+
setIsCompacting(data.compacting === true);
|
|
389
|
+
}
|
|
390
|
+
if (type === "data-context-checkpoint" && "summary" in data && "throughMessageId" in data && typeof data.summary === "string" && typeof data.throughMessageId === "string") {
|
|
391
|
+
contextCheckpoint$1.current = contextCheckpoint.captureContextCheckpoint(
|
|
392
|
+
submittedMessages.current,
|
|
393
|
+
data.summary,
|
|
394
|
+
data.throughMessageId
|
|
395
|
+
);
|
|
396
|
+
}
|
|
397
|
+
},
|
|
377
398
|
// Automatically resubmit after all client-side tool results are provided
|
|
378
399
|
sendAutomaticallyWhen: (options) => mounted.current && (isPublicMode || identitySessionVersion === identitySessionGeneration.current) && ai.lastAssistantMessageIsCompleteWithToolCalls(options),
|
|
379
400
|
onToolCall: async ({ toolCall }) => {
|
|
@@ -424,6 +445,7 @@ function ChatInterface({
|
|
|
424
445
|
}
|
|
425
446
|
},
|
|
426
447
|
onError: (err) => {
|
|
448
|
+
setIsCompacting(false);
|
|
427
449
|
if (!mounted.current) return;
|
|
428
450
|
console.error("useChat onError:", err);
|
|
429
451
|
if (!isPublicMode && identitySessionVersion !== identitySessionGeneration.current) {
|
|
@@ -437,6 +459,7 @@ function ChatInterface({
|
|
|
437
459
|
trackFailure();
|
|
438
460
|
},
|
|
439
461
|
onFinish: async (completion) => {
|
|
462
|
+
setIsCompacting(false);
|
|
440
463
|
if (!mounted.current || !isPublicMode && identitySessionVersion !== identitySessionGeneration.current)
|
|
441
464
|
return;
|
|
442
465
|
if (completion?.isError || completion?.isDisconnect) trackFailure();
|
|
@@ -932,7 +955,19 @@ function ChatInterface({
|
|
|
932
955
|
},
|
|
933
956
|
m.id || `msg-${index}`
|
|
934
957
|
)),
|
|
935
|
-
isLoading &&
|
|
958
|
+
isLoading && isCompacting && /* @__PURE__ */ jsxRuntime.jsx(
|
|
959
|
+
"div",
|
|
960
|
+
{
|
|
961
|
+
role: "status",
|
|
962
|
+
className: "text-muted-foreground text-sm py-4",
|
|
963
|
+
children: tr(
|
|
964
|
+
"CHAT_COMPACTING",
|
|
965
|
+
"aiChat.chat.compacting",
|
|
966
|
+
"Summarizing earlier conversation\u2026"
|
|
967
|
+
)
|
|
968
|
+
}
|
|
969
|
+
),
|
|
970
|
+
isLoading && !isCompacting && messages[messages.length - 1]?.role !== "assistant" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2 text-muted-foreground text-sm py-4", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "animate-pulse", children: tr("CHAT_LOADING", "aiChat.chat.loading", "Thinking...") }) }),
|
|
936
971
|
(error || historySyncError) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 text-destructive text-sm py-4 px-3 bg-destructive/10 rounded-md", children: [
|
|
937
972
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1", children: tr(
|
|
938
973
|
"CHAT_ERROR",
|
|
@@ -19,6 +19,7 @@ import { useAiChatIdentityPartition, useConversation, useConversations } from '.
|
|
|
19
19
|
import { usePageAIContext } from '../../../../../../../plugins/ai-chat/client/context/page-ai-context.mjs';
|
|
20
20
|
import { useChatAnalytics } from '../context/chat-analytics.mjs';
|
|
21
21
|
import { navigateAiChatCrossOrigin } from '../navigation.mjs';
|
|
22
|
+
import { contextRequest, captureContextCheckpoint } from '../context-checkpoint.mjs';
|
|
22
23
|
|
|
23
24
|
function reconcilePersistedMessageIds(messages, persistedMessages) {
|
|
24
25
|
const userMessages = messages.filter((message) => message.role === "user");
|
|
@@ -206,6 +207,9 @@ function ChatInterface({
|
|
|
206
207
|
const latestStreamRequestGeneration = useRef(0);
|
|
207
208
|
const pendingStreamRequests = useRef([]);
|
|
208
209
|
const latestMessages = useRef([]);
|
|
210
|
+
const contextCheckpoint = useRef(void 0);
|
|
211
|
+
const submittedMessages = useRef([]);
|
|
212
|
+
const [isCompacting, setIsCompacting] = useState(false);
|
|
209
213
|
const conversationsListQueryKey = useMemo(() => {
|
|
210
214
|
if (isPublicMode) return ["ai-chat", "disabled"];
|
|
211
215
|
const client = createApiClient({
|
|
@@ -305,6 +309,7 @@ function ChatInterface({
|
|
|
305
309
|
pendingStreamRequests.current.push(request);
|
|
306
310
|
activeStreamPartitionKey.current = request.identityPartitionKey;
|
|
307
311
|
}
|
|
312
|
+
setIsCompacting(false);
|
|
308
313
|
const currentPageContext = pageAIContextRef.current;
|
|
309
314
|
const pageContextBody = currentPageContext?.pageDescription ? {
|
|
310
315
|
pageContext: currentPageContext.pageDescription,
|
|
@@ -317,18 +322,20 @@ function ChatInterface({
|
|
|
317
322
|
if (newUserMessage) {
|
|
318
323
|
messagesToSend.push(newUserMessage);
|
|
319
324
|
}
|
|
325
|
+
submittedMessages.current = messagesToSend;
|
|
320
326
|
editMessagesRef.current = null;
|
|
321
327
|
return {
|
|
322
328
|
body: {
|
|
323
|
-
messages: messagesToSend,
|
|
329
|
+
...isPublicMode ? contextRequest(messagesToSend, contextCheckpoint.current) : { messages: messagesToSend },
|
|
324
330
|
conversationId: conversationIdRef.current,
|
|
325
331
|
...pageContextBody
|
|
326
332
|
}
|
|
327
333
|
};
|
|
328
334
|
}
|
|
335
|
+
submittedMessages.current = hookMessages;
|
|
329
336
|
return {
|
|
330
337
|
body: {
|
|
331
|
-
messages: hookMessages,
|
|
338
|
+
...isPublicMode ? contextRequest(hookMessages, contextCheckpoint.current) : { messages: hookMessages },
|
|
332
339
|
conversationId: conversationIdRef.current,
|
|
333
340
|
...pageContextBody
|
|
334
341
|
}
|
|
@@ -372,6 +379,20 @@ function ChatInterface({
|
|
|
372
379
|
} = useChat({
|
|
373
380
|
id: `${chatInstanceId}:${isPublicMode ? "public" : identitySessionVersion}`,
|
|
374
381
|
transport,
|
|
382
|
+
onData: ({ type, data }) => {
|
|
383
|
+
if (!isPublicMode || !mounted.current || !data || typeof data !== "object")
|
|
384
|
+
return;
|
|
385
|
+
if (type === "data-context-status" && "compacting" in data) {
|
|
386
|
+
setIsCompacting(data.compacting === true);
|
|
387
|
+
}
|
|
388
|
+
if (type === "data-context-checkpoint" && "summary" in data && "throughMessageId" in data && typeof data.summary === "string" && typeof data.throughMessageId === "string") {
|
|
389
|
+
contextCheckpoint.current = captureContextCheckpoint(
|
|
390
|
+
submittedMessages.current,
|
|
391
|
+
data.summary,
|
|
392
|
+
data.throughMessageId
|
|
393
|
+
);
|
|
394
|
+
}
|
|
395
|
+
},
|
|
375
396
|
// Automatically resubmit after all client-side tool results are provided
|
|
376
397
|
sendAutomaticallyWhen: (options) => mounted.current && (isPublicMode || identitySessionVersion === identitySessionGeneration.current) && lastAssistantMessageIsCompleteWithToolCalls(options),
|
|
377
398
|
onToolCall: async ({ toolCall }) => {
|
|
@@ -422,6 +443,7 @@ function ChatInterface({
|
|
|
422
443
|
}
|
|
423
444
|
},
|
|
424
445
|
onError: (err) => {
|
|
446
|
+
setIsCompacting(false);
|
|
425
447
|
if (!mounted.current) return;
|
|
426
448
|
console.error("useChat onError:", err);
|
|
427
449
|
if (!isPublicMode && identitySessionVersion !== identitySessionGeneration.current) {
|
|
@@ -435,6 +457,7 @@ function ChatInterface({
|
|
|
435
457
|
trackFailure();
|
|
436
458
|
},
|
|
437
459
|
onFinish: async (completion) => {
|
|
460
|
+
setIsCompacting(false);
|
|
438
461
|
if (!mounted.current || !isPublicMode && identitySessionVersion !== identitySessionGeneration.current)
|
|
439
462
|
return;
|
|
440
463
|
if (completion?.isError || completion?.isDisconnect) trackFailure();
|
|
@@ -930,7 +953,19 @@ function ChatInterface({
|
|
|
930
953
|
},
|
|
931
954
|
m.id || `msg-${index}`
|
|
932
955
|
)),
|
|
933
|
-
isLoading &&
|
|
956
|
+
isLoading && isCompacting && /* @__PURE__ */ jsx(
|
|
957
|
+
"div",
|
|
958
|
+
{
|
|
959
|
+
role: "status",
|
|
960
|
+
className: "text-muted-foreground text-sm py-4",
|
|
961
|
+
children: tr(
|
|
962
|
+
"CHAT_COMPACTING",
|
|
963
|
+
"aiChat.chat.compacting",
|
|
964
|
+
"Summarizing earlier conversation\u2026"
|
|
965
|
+
)
|
|
966
|
+
}
|
|
967
|
+
),
|
|
968
|
+
isLoading && !isCompacting && messages[messages.length - 1]?.role !== "assistant" && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 text-muted-foreground text-sm py-4", children: /* @__PURE__ */ jsx("div", { className: "animate-pulse", children: tr("CHAT_LOADING", "aiChat.chat.loading", "Thinking...") }) }),
|
|
934
969
|
(error || historySyncError) && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-destructive text-sm py-4 px-3 bg-destructive/10 rounded-md", children: [
|
|
935
970
|
/* @__PURE__ */ jsx("span", { className: "flex-1", children: tr(
|
|
936
971
|
"CHAT_ERROR",
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function captureContextCheckpoint(messages, summary, throughMessageId) {
|
|
4
|
+
const index = messages.findIndex(
|
|
5
|
+
(message) => message.id === throughMessageId
|
|
6
|
+
);
|
|
7
|
+
if (index < 0) return void 0;
|
|
8
|
+
return {
|
|
9
|
+
summary,
|
|
10
|
+
throughMessageId,
|
|
11
|
+
prefix: JSON.stringify(messages.slice(0, index + 1))
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function contextRequest(messages, checkpoint) {
|
|
15
|
+
if (checkpoint) {
|
|
16
|
+
const index = messages.findIndex(
|
|
17
|
+
(message) => message.id === checkpoint.throughMessageId
|
|
18
|
+
);
|
|
19
|
+
if (index >= 0 && JSON.stringify(messages.slice(0, index + 1)) === checkpoint.prefix) {
|
|
20
|
+
return {
|
|
21
|
+
messages: messages.slice(index + 1),
|
|
22
|
+
contextSummary: checkpoint.summary
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return { messages };
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
exports.captureContextCheckpoint = captureContextCheckpoint;
|
|
30
|
+
exports.contextRequest = contextRequest;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
function captureContextCheckpoint(messages, summary, throughMessageId) {
|
|
2
|
+
const index = messages.findIndex(
|
|
3
|
+
(message) => message.id === throughMessageId
|
|
4
|
+
);
|
|
5
|
+
if (index < 0) return void 0;
|
|
6
|
+
return {
|
|
7
|
+
summary,
|
|
8
|
+
throughMessageId,
|
|
9
|
+
prefix: JSON.stringify(messages.slice(0, index + 1))
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function contextRequest(messages, checkpoint) {
|
|
13
|
+
if (checkpoint) {
|
|
14
|
+
const index = messages.findIndex(
|
|
15
|
+
(message) => message.id === checkpoint.throughMessageId
|
|
16
|
+
);
|
|
17
|
+
if (index >= 0 && JSON.stringify(messages.slice(0, index + 1)) === checkpoint.prefix) {
|
|
18
|
+
return {
|
|
19
|
+
messages: messages.slice(index + 1),
|
|
20
|
+
contextSummary: checkpoint.summary
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return { messages };
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { captureContextCheckpoint, contextRequest };
|
|
@@ -34,6 +34,8 @@ const chatRequestSchema = z.z.object({
|
|
|
34
34
|
])
|
|
35
35
|
),
|
|
36
36
|
conversationId: z.z.string().optional(),
|
|
37
|
+
/** Untrusted continuation summary for opt-in public context compaction. */
|
|
38
|
+
contextSummary: z.z.string().max(32e3).optional(),
|
|
37
39
|
model: z.z.string().optional(),
|
|
38
40
|
/**
|
|
39
41
|
* Description of the current page context, injected into the AI system prompt.
|
|
@@ -32,6 +32,8 @@ const chatRequestSchema = z.object({
|
|
|
32
32
|
])
|
|
33
33
|
),
|
|
34
34
|
conversationId: z.string().optional(),
|
|
35
|
+
/** Untrusted continuation summary for opt-in public context compaction. */
|
|
36
|
+
contextSummary: z.string().max(32e3).optional(),
|
|
35
37
|
model: z.string().optional(),
|
|
36
38
|
/**
|
|
37
39
|
* Description of the current page context, injected into the AI system prompt.
|
|
@@ -77,7 +77,7 @@ function createTaskListItemRenderer() {
|
|
|
77
77
|
] });
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
function createHeadingRenderer(tag) {
|
|
80
|
+
function createHeadingRenderer(tag, LinkComponent) {
|
|
81
81
|
return function HeadingRenderer(props) {
|
|
82
82
|
const { children, ...rest } = props;
|
|
83
83
|
const text = getNodeText(children);
|
|
@@ -87,7 +87,7 @@ function createHeadingRenderer(tag) {
|
|
|
87
87
|
{ id, ...rest },
|
|
88
88
|
children,
|
|
89
89
|
text ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
90
|
-
|
|
90
|
+
LinkComponent,
|
|
91
91
|
{
|
|
92
92
|
className: "heading-anchor",
|
|
93
93
|
href: `#${id}`,
|
|
@@ -276,15 +276,15 @@ function MarkdownContent({
|
|
|
276
276
|
),
|
|
277
277
|
code: CodeRenderer,
|
|
278
278
|
pre: PreRenderer,
|
|
279
|
-
h1: createHeadingRenderer("h1"),
|
|
280
|
-
h2: createHeadingRenderer("h2"),
|
|
281
|
-
h3: createHeadingRenderer("h3"),
|
|
282
|
-
h4: createHeadingRenderer("h4"),
|
|
283
|
-
h5: createHeadingRenderer("h5"),
|
|
284
|
-
h6: createHeadingRenderer("h6"),
|
|
279
|
+
h1: createHeadingRenderer("h1", LinkComponent),
|
|
280
|
+
h2: createHeadingRenderer("h2", LinkComponent),
|
|
281
|
+
h3: createHeadingRenderer("h3", LinkComponent),
|
|
282
|
+
h4: createHeadingRenderer("h4", LinkComponent),
|
|
283
|
+
h5: createHeadingRenderer("h5", LinkComponent),
|
|
284
|
+
h6: createHeadingRenderer("h6", LinkComponent),
|
|
285
285
|
li: createTaskListItemRenderer()
|
|
286
286
|
};
|
|
287
|
-
}, [AnchorRenderer, ImgRenderer]);
|
|
287
|
+
}, [AnchorRenderer, ImgRenderer, LinkComponent]);
|
|
288
288
|
const remarkPlugins = React.useMemo(() => {
|
|
289
289
|
const plugins = [remarkGfm__default];
|
|
290
290
|
if (hasMath && mathPlugins?.remarkMath) {
|
|
@@ -68,7 +68,7 @@ function createTaskListItemRenderer() {
|
|
|
68
68
|
] });
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
function createHeadingRenderer(tag) {
|
|
71
|
+
function createHeadingRenderer(tag, LinkComponent) {
|
|
72
72
|
return function HeadingRenderer(props) {
|
|
73
73
|
const { children, ...rest } = props;
|
|
74
74
|
const text = getNodeText(children);
|
|
@@ -78,7 +78,7 @@ function createHeadingRenderer(tag) {
|
|
|
78
78
|
{ id, ...rest },
|
|
79
79
|
children,
|
|
80
80
|
text ? /* @__PURE__ */ jsx(
|
|
81
|
-
|
|
81
|
+
LinkComponent,
|
|
82
82
|
{
|
|
83
83
|
className: "heading-anchor",
|
|
84
84
|
href: `#${id}`,
|
|
@@ -267,15 +267,15 @@ function MarkdownContent({
|
|
|
267
267
|
),
|
|
268
268
|
code: CodeRenderer,
|
|
269
269
|
pre: PreRenderer,
|
|
270
|
-
h1: createHeadingRenderer("h1"),
|
|
271
|
-
h2: createHeadingRenderer("h2"),
|
|
272
|
-
h3: createHeadingRenderer("h3"),
|
|
273
|
-
h4: createHeadingRenderer("h4"),
|
|
274
|
-
h5: createHeadingRenderer("h5"),
|
|
275
|
-
h6: createHeadingRenderer("h6"),
|
|
270
|
+
h1: createHeadingRenderer("h1", LinkComponent),
|
|
271
|
+
h2: createHeadingRenderer("h2", LinkComponent),
|
|
272
|
+
h3: createHeadingRenderer("h3", LinkComponent),
|
|
273
|
+
h4: createHeadingRenderer("h4", LinkComponent),
|
|
274
|
+
h5: createHeadingRenderer("h5", LinkComponent),
|
|
275
|
+
h6: createHeadingRenderer("h6", LinkComponent),
|
|
276
276
|
li: createTaskListItemRenderer()
|
|
277
277
|
};
|
|
278
|
-
}, [AnchorRenderer, ImgRenderer]);
|
|
278
|
+
}, [AnchorRenderer, ImgRenderer, LinkComponent]);
|
|
279
279
|
const remarkPlugins = useMemo(() => {
|
|
280
280
|
const plugins = [remarkGfm];
|
|
281
281
|
if (hasMath && mathPlugins?.remarkMath) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as Conversation, M as Message } from '../../../shared/stack.
|
|
2
|
-
export {
|
|
1
|
+
import { c as Conversation, M as Message } from '../../../shared/stack.ymWsP4HZ.cjs';
|
|
2
|
+
export { p as AI_CHAT_OPERATION_INVENTORY, q as AI_CHAT_RAW_ESCAPE_HATCH_INVENTORY, m as AiChatAccess, j as AiChatApiRouter, h as AiChatBackendConfig, n as AiChatBackendHooks, k as AiChatCompactionConfig, A as AiChatIdentityPartition, r as AiChatOperationError, l as AiChatPageContentConfig, g as AiChatQueryKeys, o as ChatApiContext, s as ChatOperationInputSchema, t as ConversationOperationInputSchema, C as ConversationWithMessages, b as CreateConversationInput, R as RenameConversationInput, U as UpdateConversationOperationInputSchema, i as aiChatBackendPlugin, d as aiChatIdentityKey, e as aiChatResources, f as createAiChatQueryKeys } from '../../../shared/stack.ymWsP4HZ.cjs';
|
|
3
3
|
import { DBAdapter } from '@btst/db';
|
|
4
4
|
import '@btst/stack/plugins/client';
|
|
5
5
|
import '@btst/stack/plugins/api';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as Conversation, M as Message } from '../../../shared/stack.
|
|
2
|
-
export {
|
|
1
|
+
import { c as Conversation, M as Message } from '../../../shared/stack.Ps3MDhTC.mjs';
|
|
2
|
+
export { p as AI_CHAT_OPERATION_INVENTORY, q as AI_CHAT_RAW_ESCAPE_HATCH_INVENTORY, m as AiChatAccess, j as AiChatApiRouter, h as AiChatBackendConfig, n as AiChatBackendHooks, k as AiChatCompactionConfig, A as AiChatIdentityPartition, r as AiChatOperationError, l as AiChatPageContentConfig, g as AiChatQueryKeys, o as ChatApiContext, s as ChatOperationInputSchema, t as ConversationOperationInputSchema, C as ConversationWithMessages, b as CreateConversationInput, R as RenameConversationInput, U as UpdateConversationOperationInputSchema, i as aiChatBackendPlugin, d as aiChatIdentityKey, e as aiChatResources, f as createAiChatQueryKeys } from '../../../shared/stack.Ps3MDhTC.mjs';
|
|
3
3
|
import { DBAdapter } from '@btst/db';
|
|
4
4
|
import '@btst/stack/plugins/client';
|
|
5
5
|
import '@btst/stack/plugins/api';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as Conversation, M as Message } from '../../../shared/stack.
|
|
2
|
-
export {
|
|
1
|
+
import { c as Conversation, M as Message } from '../../../shared/stack.C4zspX0T.js';
|
|
2
|
+
export { p as AI_CHAT_OPERATION_INVENTORY, q as AI_CHAT_RAW_ESCAPE_HATCH_INVENTORY, m as AiChatAccess, j as AiChatApiRouter, h as AiChatBackendConfig, n as AiChatBackendHooks, k as AiChatCompactionConfig, A as AiChatIdentityPartition, r as AiChatOperationError, l as AiChatPageContentConfig, g as AiChatQueryKeys, o as ChatApiContext, s as ChatOperationInputSchema, t as ConversationOperationInputSchema, C as ConversationWithMessages, b as CreateConversationInput, R as RenameConversationInput, U as UpdateConversationOperationInputSchema, i as aiChatBackendPlugin, d as aiChatIdentityKey, e as aiChatResources, f as createAiChatQueryKeys } from '../../../shared/stack.C4zspX0T.js';
|
|
3
3
|
import { DBAdapter } from '@btst/db';
|
|
4
4
|
import '@btst/stack/plugins/client';
|
|
5
5
|
import '@btst/stack/plugins/api';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { j as ChatInput, C as ChatInterface, f as ChatLayout, g as ChatLayoutProps, i as ChatMessage, h as ChatSidebar, k as ToolCallDisplay } from '../../../../shared/stack.
|
|
1
|
+
export { j as ChatInput, C as ChatInterface, f as ChatLayout, g as ChatLayoutProps, i as ChatMessage, h as ChatSidebar, k as ToolCallDisplay } from '../../../../shared/stack.DDQlE2Pm.cjs';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
4
4
|
import 'ai';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { j as ChatInput, C as ChatInterface, f as ChatLayout, g as ChatLayoutProps, i as ChatMessage, h as ChatSidebar, k as ToolCallDisplay } from '../../../../shared/stack.
|
|
1
|
+
export { j as ChatInput, C as ChatInterface, f as ChatLayout, g as ChatLayoutProps, i as ChatMessage, h as ChatSidebar, k as ToolCallDisplay } from '../../../../shared/stack.tAUeRAtd.mjs';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
4
4
|
import 'ai';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { j as ChatInput, C as ChatInterface, f as ChatLayout, g as ChatLayoutProps, i as ChatMessage, h as ChatSidebar, k as ToolCallDisplay } from '../../../../shared/stack.
|
|
1
|
+
export { j as ChatInput, C as ChatInterface, f as ChatLayout, g as ChatLayoutProps, i as ChatMessage, h as ChatSidebar, k as ToolCallDisplay } from '../../../../shared/stack.DlehgNZZ.js';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
4
4
|
import 'ai';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UseMutationResult } from '@tanstack/react-query';
|
|
2
2
|
import { ResourceFormResult } from '@btst/stack/plugins/client/hooks';
|
|
3
|
-
import { A as AiChatIdentityPartition, S as SerializedConversation, C as ConversationWithMessages, b as CreateConversationInput, R as RenameConversationInput } from '../../../../shared/stack.
|
|
4
|
-
export { a as SerializedMessage } from '../../../../shared/stack.
|
|
3
|
+
import { A as AiChatIdentityPartition, S as SerializedConversation, C as ConversationWithMessages, b as CreateConversationInput, R as RenameConversationInput } from '../../../../shared/stack.ymWsP4HZ.cjs';
|
|
4
|
+
export { a as SerializedMessage } from '../../../../shared/stack.ymWsP4HZ.cjs';
|
|
5
5
|
import '@btst/stack/plugins/client';
|
|
6
6
|
import '@btst/stack/plugins/api';
|
|
7
7
|
import '@btst/stack/authorization';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UseMutationResult } from '@tanstack/react-query';
|
|
2
2
|
import { ResourceFormResult } from '@btst/stack/plugins/client/hooks';
|
|
3
|
-
import { A as AiChatIdentityPartition, S as SerializedConversation, C as ConversationWithMessages, b as CreateConversationInput, R as RenameConversationInput } from '../../../../shared/stack.
|
|
4
|
-
export { a as SerializedMessage } from '../../../../shared/stack.
|
|
3
|
+
import { A as AiChatIdentityPartition, S as SerializedConversation, C as ConversationWithMessages, b as CreateConversationInput, R as RenameConversationInput } from '../../../../shared/stack.Ps3MDhTC.mjs';
|
|
4
|
+
export { a as SerializedMessage } from '../../../../shared/stack.Ps3MDhTC.mjs';
|
|
5
5
|
import '@btst/stack/plugins/client';
|
|
6
6
|
import '@btst/stack/plugins/api';
|
|
7
7
|
import '@btst/stack/authorization';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UseMutationResult } from '@tanstack/react-query';
|
|
2
2
|
import { ResourceFormResult } from '@btst/stack/plugins/client/hooks';
|
|
3
|
-
import { A as AiChatIdentityPartition, S as SerializedConversation, C as ConversationWithMessages, b as CreateConversationInput, R as RenameConversationInput } from '../../../../shared/stack.
|
|
4
|
-
export { a as SerializedMessage } from '../../../../shared/stack.
|
|
3
|
+
import { A as AiChatIdentityPartition, S as SerializedConversation, C as ConversationWithMessages, b as CreateConversationInput, R as RenameConversationInput } from '../../../../shared/stack.C4zspX0T.js';
|
|
4
|
+
export { a as SerializedMessage } from '../../../../shared/stack.C4zspX0T.js';
|
|
5
5
|
import '@btst/stack/plugins/client';
|
|
6
6
|
import '@btst/stack/plugins/api';
|
|
7
7
|
import '@btst/stack/authorization';
|
|
@@ -2,9 +2,9 @@ import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
|
|
|
2
2
|
import * as _btst_yar from '@btst/yar';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { ComponentType } from 'react';
|
|
5
|
-
import { S as SerializedConversation, a as SerializedMessage, A as AiChatIdentityPartition } from '../../../shared/stack.
|
|
6
|
-
import { A as AiChatMode, a as AiChatPluginOverrides } from '../../../shared/stack.
|
|
7
|
-
export { l as AiChatAnalyticsEvent, b as AiChatProviderConfig, c as AllowedFileType, j as ChatInput, C as ChatInterface, f as ChatLayout, g as ChatLayoutProps, i as ChatMessage, h as ChatSidebar, D as DEFAULT_ALLOWED_FILE_TYPES, k as ToolCallDisplay, T as ToolCallProps, e as ToolCallRenderer, d as ToolCallState } from '../../../shared/stack.
|
|
5
|
+
import { S as SerializedConversation, a as SerializedMessage, A as AiChatIdentityPartition } from '../../../shared/stack.ymWsP4HZ.cjs';
|
|
6
|
+
import { A as AiChatMode, a as AiChatPluginOverrides } from '../../../shared/stack.DDQlE2Pm.cjs';
|
|
7
|
+
export { l as AiChatAnalyticsEvent, b as AiChatProviderConfig, c as AllowedFileType, j as ChatInput, C as ChatInterface, f as ChatLayout, g as ChatLayoutProps, i as ChatMessage, h as ChatSidebar, D as DEFAULT_ALLOWED_FILE_TYPES, k as ToolCallDisplay, T as ToolCallProps, e as ToolCallRenderer, d as ToolCallState } from '../../../shared/stack.DDQlE2Pm.cjs';
|
|
8
8
|
export { UIMessage } from 'ai';
|
|
9
9
|
import '@btst/stack/plugins/api';
|
|
10
10
|
import '@btst/stack/authorization';
|
|
@@ -2,9 +2,9 @@ import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
|
|
|
2
2
|
import * as _btst_yar from '@btst/yar';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { ComponentType } from 'react';
|
|
5
|
-
import { S as SerializedConversation, a as SerializedMessage, A as AiChatIdentityPartition } from '../../../shared/stack.
|
|
6
|
-
import { A as AiChatMode, a as AiChatPluginOverrides } from '../../../shared/stack.
|
|
7
|
-
export { l as AiChatAnalyticsEvent, b as AiChatProviderConfig, c as AllowedFileType, j as ChatInput, C as ChatInterface, f as ChatLayout, g as ChatLayoutProps, i as ChatMessage, h as ChatSidebar, D as DEFAULT_ALLOWED_FILE_TYPES, k as ToolCallDisplay, T as ToolCallProps, e as ToolCallRenderer, d as ToolCallState } from '../../../shared/stack.
|
|
5
|
+
import { S as SerializedConversation, a as SerializedMessage, A as AiChatIdentityPartition } from '../../../shared/stack.Ps3MDhTC.mjs';
|
|
6
|
+
import { A as AiChatMode, a as AiChatPluginOverrides } from '../../../shared/stack.tAUeRAtd.mjs';
|
|
7
|
+
export { l as AiChatAnalyticsEvent, b as AiChatProviderConfig, c as AllowedFileType, j as ChatInput, C as ChatInterface, f as ChatLayout, g as ChatLayoutProps, i as ChatMessage, h as ChatSidebar, D as DEFAULT_ALLOWED_FILE_TYPES, k as ToolCallDisplay, T as ToolCallProps, e as ToolCallRenderer, d as ToolCallState } from '../../../shared/stack.tAUeRAtd.mjs';
|
|
8
8
|
export { UIMessage } from 'ai';
|
|
9
9
|
import '@btst/stack/plugins/api';
|
|
10
10
|
import '@btst/stack/authorization';
|
|
@@ -2,9 +2,9 @@ import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
|
|
|
2
2
|
import * as _btst_yar from '@btst/yar';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { ComponentType } from 'react';
|
|
5
|
-
import { S as SerializedConversation, a as SerializedMessage, A as AiChatIdentityPartition } from '../../../shared/stack.
|
|
6
|
-
import { A as AiChatMode, a as AiChatPluginOverrides } from '../../../shared/stack.
|
|
7
|
-
export { l as AiChatAnalyticsEvent, b as AiChatProviderConfig, c as AllowedFileType, j as ChatInput, C as ChatInterface, f as ChatLayout, g as ChatLayoutProps, i as ChatMessage, h as ChatSidebar, D as DEFAULT_ALLOWED_FILE_TYPES, k as ToolCallDisplay, T as ToolCallProps, e as ToolCallRenderer, d as ToolCallState } from '../../../shared/stack.
|
|
5
|
+
import { S as SerializedConversation, a as SerializedMessage, A as AiChatIdentityPartition } from '../../../shared/stack.C4zspX0T.js';
|
|
6
|
+
import { A as AiChatMode, a as AiChatPluginOverrides } from '../../../shared/stack.DlehgNZZ.js';
|
|
7
|
+
export { l as AiChatAnalyticsEvent, b as AiChatProviderConfig, c as AllowedFileType, j as ChatInput, C as ChatInterface, f as ChatLayout, g as ChatLayoutProps, i as ChatMessage, h as ChatSidebar, D as DEFAULT_ALLOWED_FILE_TYPES, k as ToolCallDisplay, T as ToolCallProps, e as ToolCallRenderer, d as ToolCallState } from '../../../shared/stack.DlehgNZZ.js';
|
|
8
8
|
export { UIMessage } from 'ai';
|
|
9
9
|
import '@btst/stack/plugins/api';
|
|
10
10
|
import '@btst/stack/authorization';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@btst/stack/plugins/client';
|
|
2
|
-
export { A as AiChatIdentityPartition, g as AiChatQueryKeys, C as ConversationWithMessages, b as CreateConversationInput, R as RenameConversationInput, d as aiChatIdentityKey, e as aiChatResources, f as createAiChatQueryKeys } from '../../shared/stack.
|
|
2
|
+
export { A as AiChatIdentityPartition, g as AiChatQueryKeys, C as ConversationWithMessages, b as CreateConversationInput, R as RenameConversationInput, d as aiChatIdentityKey, e as aiChatResources, f as createAiChatQueryKeys } from '../../shared/stack.ymWsP4HZ.cjs';
|
|
3
3
|
import '@btst/stack/context';
|
|
4
4
|
import '@btst/stack/plugins/api';
|
|
5
5
|
import '@btst/stack/authorization';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@btst/stack/plugins/client';
|
|
2
|
-
export { A as AiChatIdentityPartition, g as AiChatQueryKeys, C as ConversationWithMessages, b as CreateConversationInput, R as RenameConversationInput, d as aiChatIdentityKey, e as aiChatResources, f as createAiChatQueryKeys } from '../../shared/stack.
|
|
2
|
+
export { A as AiChatIdentityPartition, g as AiChatQueryKeys, C as ConversationWithMessages, b as CreateConversationInput, R as RenameConversationInput, d as aiChatIdentityKey, e as aiChatResources, f as createAiChatQueryKeys } from '../../shared/stack.Ps3MDhTC.mjs';
|
|
3
3
|
import '@btst/stack/context';
|
|
4
4
|
import '@btst/stack/plugins/api';
|
|
5
5
|
import '@btst/stack/authorization';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@btst/stack/plugins/client';
|
|
2
|
-
export { A as AiChatIdentityPartition, g as AiChatQueryKeys, C as ConversationWithMessages, b as CreateConversationInput, R as RenameConversationInput, d as aiChatIdentityKey, e as aiChatResources, f as createAiChatQueryKeys } from '../../shared/stack.
|
|
2
|
+
export { A as AiChatIdentityPartition, g as AiChatQueryKeys, C as ConversationWithMessages, b as CreateConversationInput, R as RenameConversationInput, d as aiChatIdentityKey, e as aiChatResources, f as createAiChatQueryKeys } from '../../shared/stack.C4zspX0T.js';
|
|
3
3
|
import '@btst/stack/context';
|
|
4
4
|
import '@btst/stack/plugins/api';
|
|
5
5
|
import '@btst/stack/authorization';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { B as BLOG_QUERY_KEYS, i as BlogApiRouter, k as BlogBackendHooks, f as BlogBackendOptions, l as BlogCreateErrorContext, m as BlogCreateOperationContext, n as BlogCreateResultContext, o as BlogDeleteErrorContext, p as BlogDeleteOperationContext, q as BlogDeleteResultContext, r as BlogListErrorContext, s as BlogListOperationContext, t as BlogListResultContext, u as BlogNextPreviousErrorContext, v as BlogNextPreviousOperationContext, w as BlogNextPreviousResultContext, e as BlogRouteKey, x as BlogUpdateErrorContext, y as BlogUpdateOperationContext, z as BlogUpdateResultContext, C as CreatePostOperationInputSchema, N as NextPreviousPostsQuerySchema, P as PostListParams, j as PostListQuerySchema, c as PostListResult, S as SerializedNextPreviousPostsResult, A as SerializedPostListResult, U as UpdatePostOperationInputSchema, h as blogBackendPlugin, d as createBlogQueryKeys, g as getAllPosts, b as getAllTags, a as getPostBySlug } from '../../../shared/stack.
|
|
1
|
+
export { B as BLOG_QUERY_KEYS, i as BlogApiRouter, k as BlogBackendHooks, f as BlogBackendOptions, l as BlogCreateErrorContext, m as BlogCreateOperationContext, n as BlogCreateResultContext, o as BlogDeleteErrorContext, p as BlogDeleteOperationContext, q as BlogDeleteResultContext, r as BlogListErrorContext, s as BlogListOperationContext, t as BlogListResultContext, u as BlogNextPreviousErrorContext, v as BlogNextPreviousOperationContext, w as BlogNextPreviousResultContext, e as BlogRouteKey, x as BlogUpdateErrorContext, y as BlogUpdateOperationContext, z as BlogUpdateResultContext, C as CreatePostOperationInputSchema, N as NextPreviousPostsQuerySchema, P as PostListParams, j as PostListQuerySchema, c as PostListResult, S as SerializedNextPreviousPostsResult, A as SerializedPostListResult, U as UpdatePostOperationInputSchema, h as blogBackendPlugin, d as createBlogQueryKeys, g as getAllPosts, b as getAllTags, a as getPostBySlug } from '../../../shared/stack.DNw6Hv5o.cjs';
|
|
2
2
|
import { DBAdapter } from '@btst/db';
|
|
3
3
|
import { P as Post, T as Tag, S as SerializedPost, a as SerializedTag } from '../../../shared/stack.Dsatjh0B.cjs';
|
|
4
4
|
export { blogPermissions } from '../permissions.cjs';
|
|
5
5
|
import '@btst/stack/plugins/client';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../../../shared/stack.
|
|
7
|
+
import '../../../shared/stack.Csi-4Mgz.cjs';
|
|
8
8
|
import '@btst/stack/plugins/api';
|
|
9
9
|
import '../../../authorization/index.cjs';
|
|
10
10
|
import 'zod/v4/core';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { B as BLOG_QUERY_KEYS, i as BlogApiRouter, k as BlogBackendHooks, f as BlogBackendOptions, l as BlogCreateErrorContext, m as BlogCreateOperationContext, n as BlogCreateResultContext, o as BlogDeleteErrorContext, p as BlogDeleteOperationContext, q as BlogDeleteResultContext, r as BlogListErrorContext, s as BlogListOperationContext, t as BlogListResultContext, u as BlogNextPreviousErrorContext, v as BlogNextPreviousOperationContext, w as BlogNextPreviousResultContext, e as BlogRouteKey, x as BlogUpdateErrorContext, y as BlogUpdateOperationContext, z as BlogUpdateResultContext, C as CreatePostOperationInputSchema, N as NextPreviousPostsQuerySchema, P as PostListParams, j as PostListQuerySchema, c as PostListResult, S as SerializedNextPreviousPostsResult, A as SerializedPostListResult, U as UpdatePostOperationInputSchema, h as blogBackendPlugin, d as createBlogQueryKeys, g as getAllPosts, b as getAllTags, a as getPostBySlug } from '../../../shared/stack.
|
|
1
|
+
export { B as BLOG_QUERY_KEYS, i as BlogApiRouter, k as BlogBackendHooks, f as BlogBackendOptions, l as BlogCreateErrorContext, m as BlogCreateOperationContext, n as BlogCreateResultContext, o as BlogDeleteErrorContext, p as BlogDeleteOperationContext, q as BlogDeleteResultContext, r as BlogListErrorContext, s as BlogListOperationContext, t as BlogListResultContext, u as BlogNextPreviousErrorContext, v as BlogNextPreviousOperationContext, w as BlogNextPreviousResultContext, e as BlogRouteKey, x as BlogUpdateErrorContext, y as BlogUpdateOperationContext, z as BlogUpdateResultContext, C as CreatePostOperationInputSchema, N as NextPreviousPostsQuerySchema, P as PostListParams, j as PostListQuerySchema, c as PostListResult, S as SerializedNextPreviousPostsResult, A as SerializedPostListResult, U as UpdatePostOperationInputSchema, h as blogBackendPlugin, d as createBlogQueryKeys, g as getAllPosts, b as getAllTags, a as getPostBySlug } from '../../../shared/stack.DhZtP2JZ.mjs';
|
|
2
2
|
import { DBAdapter } from '@btst/db';
|
|
3
3
|
import { P as Post, T as Tag, S as SerializedPost, a as SerializedTag } from '../../../shared/stack.Dsatjh0B.mjs';
|
|
4
4
|
export { blogPermissions } from '../permissions.mjs';
|
|
5
5
|
import '@btst/stack/plugins/client';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../../../shared/stack.
|
|
7
|
+
import '../../../shared/stack.Csi-4Mgz.mjs';
|
|
8
8
|
import '@btst/stack/plugins/api';
|
|
9
9
|
import '../../../authorization/index.mjs';
|
|
10
10
|
import 'zod/v4/core';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { B as BLOG_QUERY_KEYS, i as BlogApiRouter, k as BlogBackendHooks, f as BlogBackendOptions, l as BlogCreateErrorContext, m as BlogCreateOperationContext, n as BlogCreateResultContext, o as BlogDeleteErrorContext, p as BlogDeleteOperationContext, q as BlogDeleteResultContext, r as BlogListErrorContext, s as BlogListOperationContext, t as BlogListResultContext, u as BlogNextPreviousErrorContext, v as BlogNextPreviousOperationContext, w as BlogNextPreviousResultContext, e as BlogRouteKey, x as BlogUpdateErrorContext, y as BlogUpdateOperationContext, z as BlogUpdateResultContext, C as CreatePostOperationInputSchema, N as NextPreviousPostsQuerySchema, P as PostListParams, j as PostListQuerySchema, c as PostListResult, S as SerializedNextPreviousPostsResult, A as SerializedPostListResult, U as UpdatePostOperationInputSchema, h as blogBackendPlugin, d as createBlogQueryKeys, g as getAllPosts, b as getAllTags, a as getPostBySlug } from '../../../shared/stack.
|
|
1
|
+
export { B as BLOG_QUERY_KEYS, i as BlogApiRouter, k as BlogBackendHooks, f as BlogBackendOptions, l as BlogCreateErrorContext, m as BlogCreateOperationContext, n as BlogCreateResultContext, o as BlogDeleteErrorContext, p as BlogDeleteOperationContext, q as BlogDeleteResultContext, r as BlogListErrorContext, s as BlogListOperationContext, t as BlogListResultContext, u as BlogNextPreviousErrorContext, v as BlogNextPreviousOperationContext, w as BlogNextPreviousResultContext, e as BlogRouteKey, x as BlogUpdateErrorContext, y as BlogUpdateOperationContext, z as BlogUpdateResultContext, C as CreatePostOperationInputSchema, N as NextPreviousPostsQuerySchema, P as PostListParams, j as PostListQuerySchema, c as PostListResult, S as SerializedNextPreviousPostsResult, A as SerializedPostListResult, U as UpdatePostOperationInputSchema, h as blogBackendPlugin, d as createBlogQueryKeys, g as getAllPosts, b as getAllTags, a as getPostBySlug } from '../../../shared/stack.Clil75lW.js';
|
|
2
2
|
import { DBAdapter } from '@btst/db';
|
|
3
3
|
import { P as Post, T as Tag, S as SerializedPost, a as SerializedTag } from '../../../shared/stack.Dsatjh0B.js';
|
|
4
4
|
export { blogPermissions } from '../permissions.js';
|
|
5
5
|
import '@btst/stack/plugins/client';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../../../shared/stack.
|
|
7
|
+
import '../../../shared/stack.Csi-4Mgz.js';
|
|
8
8
|
import '@btst/stack/plugins/api';
|
|
9
9
|
import '../../../authorization/index.js';
|
|
10
10
|
import 'zod/v4/core';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { P as PostCreateInput, e as PostUpdateInput, p as UseNextPreviousPostsOptions, q as UseNextPreviousPostsResult, d as UsePostResult, b as UsePostSearchOptions, c as UsePostSearchResult, U as UsePostsOptions, a as UsePostsResult, s as UseRecentPostsOptions, t as UseRecentPostsResult, l as useCreatePost, n as useDeletePost, r as useNextPreviousPosts, g as usePost, k as usePostForm, o as usePostSearch, u as usePosts, v as useRecentPosts, h as useSuspensePost, f as useSuspensePosts, j as useSuspenseTags, i as useTags, m as useUpdatePost } from '../../../../shared/stack.
|
|
1
|
+
export { P as PostCreateInput, e as PostUpdateInput, p as UseNextPreviousPostsOptions, q as UseNextPreviousPostsResult, d as UsePostResult, b as UsePostSearchOptions, c as UsePostSearchResult, U as UsePostsOptions, a as UsePostsResult, s as UseRecentPostsOptions, t as UseRecentPostsResult, l as useCreatePost, n as useDeletePost, r as useNextPreviousPosts, g as usePost, k as usePostForm, o as usePostSearch, u as usePosts, v as useRecentPosts, h as useSuspensePost, f as useSuspensePosts, j as useSuspenseTags, i as useTags, m as useUpdatePost } from '../../../../shared/stack.BGzgFx3R.cjs';
|
|
2
2
|
export { useDebounce } from '@btst/stack/plugins/client/hooks';
|
|
3
3
|
import '@tanstack/react-query';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../../../shared/stack.Dsatjh0B.cjs';
|
|
6
|
-
import '../../../../shared/stack.
|
|
6
|
+
import '../../../../shared/stack.Csi-4Mgz.cjs';
|
|
7
7
|
|
|
8
8
|
declare function useThrottle<T>(value: T, wait?: number): T;
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { P as PostCreateInput, e as PostUpdateInput, p as UseNextPreviousPostsOptions, q as UseNextPreviousPostsResult, d as UsePostResult, b as UsePostSearchOptions, c as UsePostSearchResult, U as UsePostsOptions, a as UsePostsResult, s as UseRecentPostsOptions, t as UseRecentPostsResult, l as useCreatePost, n as useDeletePost, r as useNextPreviousPosts, g as usePost, k as usePostForm, o as usePostSearch, u as usePosts, v as useRecentPosts, h as useSuspensePost, f as useSuspensePosts, j as useSuspenseTags, i as useTags, m as useUpdatePost } from '../../../../shared/stack.
|
|
1
|
+
export { P as PostCreateInput, e as PostUpdateInput, p as UseNextPreviousPostsOptions, q as UseNextPreviousPostsResult, d as UsePostResult, b as UsePostSearchOptions, c as UsePostSearchResult, U as UsePostsOptions, a as UsePostsResult, s as UseRecentPostsOptions, t as UseRecentPostsResult, l as useCreatePost, n as useDeletePost, r as useNextPreviousPosts, g as usePost, k as usePostForm, o as usePostSearch, u as usePosts, v as useRecentPosts, h as useSuspensePost, f as useSuspensePosts, j as useSuspenseTags, i as useTags, m as useUpdatePost } from '../../../../shared/stack.CjCSDfWy.mjs';
|
|
2
2
|
export { useDebounce } from '@btst/stack/plugins/client/hooks';
|
|
3
3
|
import '@tanstack/react-query';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../../../shared/stack.Dsatjh0B.mjs';
|
|
6
|
-
import '../../../../shared/stack.
|
|
6
|
+
import '../../../../shared/stack.Csi-4Mgz.mjs';
|
|
7
7
|
|
|
8
8
|
declare function useThrottle<T>(value: T, wait?: number): T;
|
|
9
9
|
|