@aleph-alpha/chat-kit 5.5.0 → 5.7.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/{CkHistory.vue_vue_type_script_setup_true_lang-C1busuyf.js → CkHistory.vue_vue_type_script_setup_true_lang-YHwE2DYx.js} +27 -9
- package/dist/adapters/responses-api.d.ts +3 -1
- package/dist/adapters/responses-api.d.ts.map +1 -1
- package/dist/adapters/responses-api.js +158 -3
- package/dist/chat-kit.css +1 -0
- package/dist/components/base/CkConversationLayout/CkConversationLayout.vue.d.ts +6 -0
- package/dist/components/base/CkConversationLayout/CkConversationLayout.vue.d.ts.map +1 -1
- package/dist/components/composed/CkConversation/CkConversation.vue.d.ts +6 -0
- package/dist/components/composed/CkConversation/CkConversation.vue.d.ts.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/composables/index.js +4 -4
- package/dist/handlers/index.js +4 -4
- package/dist/handlers/useMessageHandler.d.ts +7 -2
- package/dist/handlers/useMessageHandler.d.ts.map +1 -1
- package/dist/helpers/conversationTree.d.ts +44 -4
- package/dist/helpers/conversationTree.d.ts.map +1 -1
- package/dist/{index-CyrVnbS9.js → index-Dn4ctxk8.js} +7 -6
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -11
- package/dist/services/types.d.ts +7 -0
- package/dist/services/types.d.ts.map +1 -1
- package/dist/types.d.ts +38 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/{useChatKitLabels-DLy0BFx8.js → useChatKitLabels-CMOr3Kjq.js} +2 -2
- package/dist/{useMessageHandler-N50Yj-NU.js → useMessageHandler-Tellov3w.js} +112 -30
- package/package.json +4 -2
- package/src/adapters/arena.spec.ts +86 -0
- package/src/adapters/responses-api.ts +276 -2
- package/src/components/base/CkConversationLayout/CkConversationLayout.vue +28 -2
- package/src/components/composed/CkConversation/CkConversation.vue +10 -0
- package/src/composables/useConversations.spec.ts +2 -0
- package/src/composables/useConversations.ts +1 -0
- package/src/handlers/useMessageHandler.ts +46 -6
- package/src/helpers/comparison.spec.ts +114 -0
- package/src/helpers/conversationTree.spec.ts +98 -0
- package/src/helpers/conversationTree.ts +211 -26
- package/src/index.ts +10 -0
- package/src/services/types.ts +7 -0
- package/src/types.ts +40 -0
- package/src/uno-virtual.d.ts +2 -0
|
@@ -16,6 +16,12 @@ declare const __VLS_export: <T extends {
|
|
|
16
16
|
'agent-message': (props: {
|
|
17
17
|
message: T;
|
|
18
18
|
}) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Extra content appended after the last message, inside the scroll flow and
|
|
21
|
+
* aligned like an agent turn. Use for a trailing element that continues the
|
|
22
|
+
* thread but isn't a tree message (e.g. an in-progress preference comparison).
|
|
23
|
+
*/
|
|
24
|
+
'thread-footer': () => void;
|
|
19
25
|
};
|
|
20
26
|
emit: {};
|
|
21
27
|
}>) => import("vue").VNode & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CkConversationLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkConversationLayout/CkConversationLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CkConversationLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkConversationLayout/CkConversationLayout.vue"],"names":[],"mappings":"AAyRA,QAAA,MAAM,YAAY,GAAK,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAC5D,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WAkWO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB;kBA9V3C,CAAC,EAAE;MA8V2D,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC1I,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI;WACtB,GAAG;;wBA3VO,CAAC,KAAK,EAAE;YAAE,OAAO,EAAE,CAAC,CAAA;SAAE,KAAK,IAAI;yBAC9B,CAAC,KAAK,EAAE;YAAE,OAAO,EAAE,CAAC,CAAA;SAAE,KAAK,IAAI;QAChD;;;;WAIG;yBACc,MAAM,IAAI;;UAsVtB,EAAE;EAEL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAI,CAAC;wBACvD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -54,6 +54,12 @@ type __VLS_Slots = {
|
|
|
54
54
|
code: string;
|
|
55
55
|
language: string;
|
|
56
56
|
}) => void;
|
|
57
|
+
/**
|
|
58
|
+
* Trailing content appended after the last message, inside the scroll flow
|
|
59
|
+
* and aligned like an agent turn — e.g. an in-progress preference comparison
|
|
60
|
+
* that continues the thread but isn't a tree message.
|
|
61
|
+
*/
|
|
62
|
+
'thread-footer': () => void;
|
|
57
63
|
};
|
|
58
64
|
declare const __VLS_base: import("vue").DefineComponent<CkConversationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CkConversationProps> & Readonly<{}>, {
|
|
59
65
|
agentAvatarImage: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CkConversation.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/composed/CkConversation/CkConversation.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CkConversation.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/composed/CkConversation/CkConversation.vue"],"names":[],"mappings":"AAuPA,OAAO,KAAK,EAAE,WAAW,EAAsB,MAAM,gBAAgB,CAAC;AAOtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAkBnD,KAAK,WAAW,GAAG;IACjB,gDAAgD;IAChD,cAAc,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,WAAW,CAAA;KAAE,KAAK,IAAI,CAAC;IAC1D,yDAAyD;IACzD,sBAAsB,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,WAAW,CAAA;KAAE,KAAK,IAAI,CAAC;IAClE,iDAAiD;IACjD,eAAe,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,WAAW,CAAA;KAAE,KAAK,IAAI,CAAC;IAC3D,oCAAoC;IACpC,oBAAoB,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,WAAW,CAAA;KAAE,KAAK,IAAI,CAAC;IAChE,8EAA8E;IAC9E,4BAA4B,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,WAAW,CAAA;KAAE,KAAK,IAAI,CAAC;IACxE,iFAAiF;IACjF,sBAAsB,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,WAAW,CAAA;KAAE,KAAK,IAAI,CAAC;IAClE,6EAA6E;IAC7E,8BAA8B,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,WAAW,CAAA;KAAE,KAAK,IAAI,CAAC;IAC1E;;;;OAIG;IACH,+BAA+B,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,WAAW,CAAA;KAAE,KAAK,IAAI,CAAC;IAC3E;;;;OAIG;IACH,uBAAuB,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,WAAW,CAAA;KAAE,KAAK,IAAI,CAAC;IACnE,mDAAmD;IACnD,sBAAsB,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,WAAW,CAAA;KAAE,KAAK,IAAI,CAAC;IAClE,qEAAqE;IACrE,0BAA0B,EAAE,CAAC,KAAK,EAAE;QAClC,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;KAClB,KAAK,IAAI,CAAC;IACX;;;;OAIG;IACH,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAwXF,QAAA,MAAM,UAAU;;;;6EAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _, a, C, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z } from "../CkHistory.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _, a, C, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z } from "../CkHistory.vue_vue_type_script_setup_true_lang-YHwE2DYx.js";
|
|
2
2
|
export {
|
|
3
3
|
_ as CkAgentMessage,
|
|
4
4
|
a as CkAgentMessageHeader,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c, d, u, b, e
|
|
1
|
+
import { c, d, u, a, b, e } from "../index-Dn4ctxk8.js";
|
|
2
2
|
export {
|
|
3
3
|
c as createDocumentUploadProvider,
|
|
4
4
|
d as defaultDocumentUploadConfig,
|
|
5
5
|
u as useChat,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
a as useConversationSessions,
|
|
7
|
+
b as useConversations,
|
|
8
|
+
e as useDocumentUploadWithDefaultConfig
|
|
9
9
|
};
|
package/dist/handlers/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { u } from "../useMessageHandler-
|
|
2
|
-
import { C, d, n, p, r,
|
|
1
|
+
import { u } from "../useMessageHandler-Tellov3w.js";
|
|
2
|
+
import { C, d, n, p, r, a, u as u2, b } from "../useChatKitLabels-CMOr3Kjq.js";
|
|
3
3
|
export {
|
|
4
4
|
C as CHAT_KIT_LABELS,
|
|
5
5
|
d as defaultChatKitLabels,
|
|
6
6
|
n as normalizeMathDelimiters,
|
|
7
7
|
p as provideChatKitLabels,
|
|
8
8
|
r as remarkCitations,
|
|
9
|
-
|
|
9
|
+
a as remarkNormalizeMath,
|
|
10
10
|
u2 as useChatKitLabels,
|
|
11
|
-
|
|
11
|
+
b as useMarkdownParser,
|
|
12
12
|
u as useMessageHandler
|
|
13
13
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { BaseMessage, ConversationTree, MessageContent, MessageMetadata, MessageRole, MessageStatus } from '../types';
|
|
1
|
+
import type { ActiveComparison, BaseMessage, ConversationTree, MessageContent, MessageMetadata, MessageRole, MessageStatus } from '../types';
|
|
2
2
|
import { type Ref } from 'vue';
|
|
3
3
|
export declare const useMessageHandler: () => {
|
|
4
4
|
messages: Ref<BaseMessage[]>;
|
|
5
|
+
activeComparison: import("vue").ComputedRef<ActiveComparison | null>;
|
|
5
6
|
currentUserMessage: Readonly<Ref<string, string>>;
|
|
6
7
|
currentLeafId: import("vue").ComputedRef<string | null>;
|
|
7
8
|
updateMessage: (message: {
|
|
@@ -11,6 +12,7 @@ export declare const useMessageHandler: () => {
|
|
|
11
12
|
status: MessageStatus;
|
|
12
13
|
metadata?: MessageMetadata;
|
|
13
14
|
parentId?: string;
|
|
15
|
+
comparing?: boolean;
|
|
14
16
|
}) => void;
|
|
15
17
|
setCurrentUserMessage: (text: string) => void;
|
|
16
18
|
getMessageById: (id: string) => BaseMessage | undefined;
|
|
@@ -23,8 +25,9 @@ export declare const useMessageHandler: () => {
|
|
|
23
25
|
clearMessages: () => void;
|
|
24
26
|
setTree: (incoming: ConversationTree) => void;
|
|
25
27
|
navigate: (targetId: string) => void;
|
|
26
|
-
cutBranchAfter: (messageId: string) => void;
|
|
28
|
+
cutBranchAfter: (messageId: string, keepChildId?: string) => void;
|
|
27
29
|
cutBranchAt: (messageId: string) => void;
|
|
30
|
+
voteComparison: (parentId: string, winnerBranchId: string) => void;
|
|
28
31
|
getTree: () => {
|
|
29
32
|
readonly nodes: {
|
|
30
33
|
readonly [x: string]: {
|
|
@@ -55,6 +58,8 @@ export declare const useMessageHandler: () => {
|
|
|
55
58
|
readonly metadata?: {
|
|
56
59
|
readonly [x: string]: Readonly<unknown>;
|
|
57
60
|
} | undefined;
|
|
61
|
+
readonly comparing?: boolean | undefined;
|
|
62
|
+
readonly comparisonWinnerId?: string | undefined;
|
|
58
63
|
};
|
|
59
64
|
};
|
|
60
65
|
readonly rootId: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMessageHandler.d.ts","sourceRoot":"","sources":["../../src/handlers/useMessageHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useMessageHandler.d.ts","sourceRoot":"","sources":["../../src/handlers/useMessageHandler.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,WAAW,EACX,aAAa,EAEd,MAAM,UAAU,CAAC;AAClB,OAAO,EAAqC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAElE,eAAO,MAAM,iBAAiB;cA6NJ,GAAG,CAAC,WAAW,EAAE,CAAC;;;;6BA5HV;QAC9B,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,cAAc,EAAE,CAAC;QAC1B,IAAI,EAAE,WAAW,CAAC;QAClB,MAAM,EAAE,aAAa,CAAC;QACtB,QAAQ,CAAC,EAAE,eAAe,CAAC;QAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB;kCAvEoC,MAAM;yBAgHf,MAAM,KAAG,WAAW,GAAG,SAAS;;+BAhG1B;QAChC,QAAQ,CAAC,EAAE,eAAe,CAAC;QAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,KAAG,WAAW;6BA2GiB,MAAM,SAAS,MAAM;;wBAiB1B,gBAAgB;yBAKf,MAAM;gCAYC,MAAM,gBAAgB,MAAM;6BAS/B,MAAM;+BAaJ,MAAM,kBAAkB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBjE,CAAC"}
|
|
@@ -1,11 +1,38 @@
|
|
|
1
|
-
import type { BaseMessage, ConversationTree, TreeMessage } from '../types';
|
|
1
|
+
import type { ActiveComparison, BaseMessage, ConversationTree, TreeMessage } from '../types';
|
|
2
2
|
export declare function createEmptyTree(): ConversationTree;
|
|
3
3
|
/**
|
|
4
4
|
* Walks from rootId following activeChildIndex at each node.
|
|
5
5
|
* Enriches each node with sibling metadata for the UI.
|
|
6
|
+
*
|
|
7
|
+
* Comparison-unaware: it always descends the active child. Consumers that
|
|
8
|
+
* render comparisons should use {@link projectActivePath}, which stops the
|
|
9
|
+
* linear trunk at an active comparison fork and returns its lanes separately.
|
|
6
10
|
*/
|
|
7
11
|
export declare function getLinearPath(tree: ConversationTree): BaseMessage[];
|
|
8
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Single-pass projection of the active view into a linear `trunk` plus (at
|
|
14
|
+
* most) one `activeComparison`. The trunk follows `activeChildIndex` from the
|
|
15
|
+
* root and **stops at an active comparison fork** (the fork parent is the last
|
|
16
|
+
* trunk item); that fork's children become the comparison lanes. History
|
|
17
|
+
* comparisons (voted + continued) are transparent — the trunk flows through
|
|
18
|
+
* the winner as ordinary linear messages.
|
|
19
|
+
*/
|
|
20
|
+
export declare function projectActivePath(tree: ConversationTree): {
|
|
21
|
+
trunk: BaseMessage[];
|
|
22
|
+
activeComparison: ActiveComparison | null;
|
|
23
|
+
};
|
|
24
|
+
export declare function addNode(tree: ConversationTree, node: TreeMessage, opts?: {
|
|
25
|
+
activate?: boolean;
|
|
26
|
+
}): void;
|
|
27
|
+
/** Mark a node's children as an (unresolved) comparison. */
|
|
28
|
+
export declare function markComparison(tree: ConversationTree, parentId: string): void;
|
|
29
|
+
/**
|
|
30
|
+
* Record a comparison vote: set the winner (mirrored to `activeChildIndex`) and
|
|
31
|
+
* reveal. Leaves `comparing` set — the comparison stays a labelled, revealed
|
|
32
|
+
* view until the user continues past the winner (which collapses it to
|
|
33
|
+
* history). No-op if the parent/winner is unknown.
|
|
34
|
+
*/
|
|
35
|
+
export declare function voteComparison(tree: ConversationTree, parentId: string, winnerBranchId: string): void;
|
|
9
36
|
export declare function updateNode(tree: ConversationTree, id: string, updates: Partial<Pick<TreeMessage, 'content' | 'status' | 'role' | 'metadata'>>): void;
|
|
10
37
|
export declare function updateNodeId(tree: ConversationTree, oldId: string, newId: string): void;
|
|
11
38
|
/**
|
|
@@ -13,10 +40,20 @@ export declare function updateNodeId(tree: ConversationTree, oldId: string, newI
|
|
|
13
40
|
* itself intact. The node's `childrenIds` is cleared and `activeChildIndex`
|
|
14
41
|
* is reset to 0, which makes the node the new leaf of its branch.
|
|
15
42
|
*
|
|
43
|
+
* Pass `keepChildId` (a *direct* child of the node) to exempt one branch: that
|
|
44
|
+
* child and its subtree survive and become the node's sole, active child while
|
|
45
|
+
* every sibling branch is dropped. Useful when picking a comparison winner and
|
|
46
|
+
* discarding the alternatives. An unknown or non-child `keepChildId` is ignored
|
|
47
|
+
* (every branch is removed, as with no exception).
|
|
48
|
+
*
|
|
49
|
+
* Either way the node is left with at most one child, so any comparison state
|
|
50
|
+
* on it (`comparing` / `comparisonWinnerId`) — impossible with a single lane —
|
|
51
|
+
* is cleared.
|
|
52
|
+
*
|
|
16
53
|
* Useful when editing a message and discarding the conversation that was
|
|
17
54
|
* generated after it.
|
|
18
55
|
*/
|
|
19
|
-
export declare function cutBranchAfter(tree: ConversationTree, id: string): void;
|
|
56
|
+
export declare function cutBranchAfter(tree: ConversationTree, id: string, keepChildId?: string): void;
|
|
20
57
|
/**
|
|
21
58
|
* Remove the node with the given id *and* its entire subtree, then unlink it
|
|
22
59
|
* from its parent. Unlike {@link cutBranchAfter} (which keeps the target and
|
|
@@ -25,7 +62,10 @@ export declare function cutBranchAfter(tree: ConversationTree, id: string): void
|
|
|
25
62
|
* (e.g. an interrupted regenerate) without cropping the others.
|
|
26
63
|
*
|
|
27
64
|
* The parent's `activeChildIndex` is clamped to a remaining sibling so the
|
|
28
|
-
* active path stays valid
|
|
65
|
+
* active path stays valid, and its comparison state is reconciled: the whole
|
|
66
|
+
* comparison is dropped once fewer than two lanes survive, and a dangling
|
|
67
|
+
* `comparisonWinnerId` is cleared when the removed branch was the winner.
|
|
68
|
+
* Removing the root clears the tree.
|
|
29
69
|
*
|
|
30
70
|
* Prefer {@link cutBranchAfter} when it fits the case: unlinking here scans
|
|
31
71
|
* and splices the parent's `childrenIds` (O(siblings)), whereas
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversationTree.d.ts","sourceRoot":"","sources":["../../src/helpers/conversationTree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"conversationTree.d.ts","sourceRoot":"","sources":["../../src/helpers/conversationTree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,WAAW,EAEX,gBAAgB,EAChB,WAAW,EACZ,MAAM,UAAU,CAAC;AAElB,wBAAgB,eAAe,IAAI,gBAA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CpE;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAWvE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as generateId } from "./generateId-BHf0W4Rq.js";
|
|
2
2
|
import { ref, shallowRef, computed, readonly, toRaw, toValue, watch } from "vue";
|
|
3
|
-
import { u as useMessageHandler } from "./useMessageHandler-
|
|
3
|
+
import { u as useMessageHandler } from "./useMessageHandler-Tellov3w.js";
|
|
4
4
|
import "./katex.min-md74IFlY.js";
|
|
5
5
|
function secondsToDate(seconds) {
|
|
6
6
|
return new Date(seconds * 1e3);
|
|
@@ -188,7 +188,8 @@ function mapConversation(raw) {
|
|
|
188
188
|
id: raw.id,
|
|
189
189
|
title: raw.metadata?.title ?? "",
|
|
190
190
|
createdAt: secondsToDate(raw.created_at),
|
|
191
|
-
updatedAt: secondsToDate(raw.updated_at)
|
|
191
|
+
updatedAt: secondsToDate(raw.updated_at),
|
|
192
|
+
metadata: raw.metadata ?? null
|
|
192
193
|
};
|
|
193
194
|
}
|
|
194
195
|
function mapConversationList(raw) {
|
|
@@ -1661,11 +1662,11 @@ const defaultDocumentUploadConfig = {
|
|
|
1661
1662
|
const { useDocumentUpload: useDocumentUploadWithDefaultConfig } = createDocumentUploadProvider(defaultDocumentUploadConfig);
|
|
1662
1663
|
export {
|
|
1663
1664
|
SdkError as S,
|
|
1664
|
-
|
|
1665
|
-
|
|
1665
|
+
useConversationSessions as a,
|
|
1666
|
+
useConversations as b,
|
|
1666
1667
|
createDocumentUploadProvider as c,
|
|
1667
1668
|
defaultDocumentUploadConfig as d,
|
|
1668
|
-
|
|
1669
|
-
|
|
1669
|
+
useDocumentUploadWithDefaultConfig as e,
|
|
1670
|
+
defaultEndpoints as f,
|
|
1670
1671
|
useChat as u
|
|
1671
1672
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'uno:default.css';
|
|
1
2
|
export { type ChatConfig, type ChatMessage, type ChatResponse, type ConversationSummary, type HttpClient, type RawConversation, type RawConversationList, type StreamEvent, } from './services';
|
|
2
3
|
export { useMessageHandler, useMarkdownParser, provideChatKitLabels, useChatKitLabels, defaultChatKitLabels, CHAT_KIT_LABELS, } from './handlers';
|
|
3
4
|
export type { ChatKitLabels } from './handlers';
|
|
@@ -8,5 +9,5 @@ export type { DocumentUploadConfig, DocumentUploadProvider, FileEntry, FileStatu
|
|
|
8
9
|
export { CkAgentMessage, CkAgentMessageHeader, CkHeaderActivityButton, CkCitation, CkCitationCard, CkConversation, CkConversationLayout, CkCopyMessageButton, CkDropZoneOverlay, CkFeedbackButton, CkFeedbackDialog, CkFileItemsList, CkHistory, CkHistoryItem, CkHistoryWrapper, CkMarkdownRenderer, CkMessageButton, CkModelSelector, CkPromptSendButton, CkPromptMenuButton, CkPromptStopButton, CkPromptInput, CkPromptInputDisclaimer, CkRegenerateMessageButton, CkSendIcon, CkStopIcon, CkUserMessage, CkEditableUserMessage, } from './components';
|
|
9
10
|
export type { CkAgentMessageHeaderProps, CkHeaderActivityButtonProps, CkHeaderActivityButtonEmits, CkCitationProps, CkCitationEmits, CkCitationSource, CkCitationCardProps, CkCitationCardEmits, CkConversationLayoutProps, CkConversationProps, CkDropZoneOverlayProps, CkDropZoneOverlayEmits, CkDropZoneRejection, CkDropZoneRejectionReason, CkFeedbackButtonProps, CkFeedbackDialogEmits, CkFeedbackDialogProps, CkFeedbackDialogSubmitPayload, CkFeedbackReason, CkFeedbackSentiment, CkFeedbackValue, CkFileEntry, CkFileItemsListEmits, CkFileItemsListProps, CkHistoryEmits, CkHistoryItemEmits, CkHistoryItemProps, CkHistoryProps, CkHistoryWrapperProps, CkMarkdownElementClasses, CkMarkdownRendererProps, CkMarkdownRendererEmits, CkModelOption, CkModelSelectorProps, CkModelSelectorEmits, CkPromptMenuButtonProps, CkUserMessageProps, CkEditableUserMessageProps, CkEditableUserMessageEmits, } from './components';
|
|
10
11
|
export { formatRelativeTime } from './helpers';
|
|
11
|
-
export type { BaseMessage, Conversation, ConversationTree, MessageContent, MessageContentStatus, MessageMetadata, MessageReasoningContent, MessageRole, MessageStatus, MessageTextContent, MessageToolContent, TreeMessage, } from './types';
|
|
12
|
+
export type { ActiveComparison, BaseMessage, ComparisonLane, Conversation, ConversationTree, MessageContent, MessageContentStatus, MessageMetadata, MessageReasoningContent, MessageRole, MessageStatus, MessageTextContent, MessageToolContent, TreeMessage, } from './types';
|
|
12
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,iBAAiB,CAAC;AAGzB,OAAO,EACL,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,WAAW,GACjB,MAAM,YAAY,CAAC;AASpB,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAGhD,OAAO,EACL,OAAO,EACP,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,WAAW,EACX,SAAS,EACT,mBAAmB,EACnB,uBAAuB,EACvB,cAAc,EACd,eAAe,EACf,aAAa,EACb,6BAA6B,EAC7B,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,QAAQ,EACR,4BAA4B,EAC5B,2BAA2B,EAC3B,gBAAgB,EAChB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c,EACd,oBAAoB,EACpB,eAAe,EACf,uBAAuB,EACvB,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,GACZ,MAAM,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { u } from "./useMessageHandler-
|
|
2
|
-
import { C, d, p, u as u2,
|
|
3
|
-
import { S, c, d as d2,
|
|
4
|
-
import { _, a as
|
|
1
|
+
import { u } from "./useMessageHandler-Tellov3w.js";
|
|
2
|
+
import { C, d, p, u as u2, b } from "./useChatKitLabels-CMOr3Kjq.js";
|
|
3
|
+
import { S, c, d as d2, f, u as u3, a, b as b2, e } from "./index-Dn4ctxk8.js";
|
|
4
|
+
import { _, a as a2, C as C2, b as b3, c as c2, d as d3, e as e2, f as f2, g, h, i, j, k, l, m, n, o, p as p2, q, r, s, t, u as u4, v, w, x, y, z, A } from "./CkHistory.vue_vue_type_script_setup_true_lang-YHwE2DYx.js";
|
|
5
5
|
export {
|
|
6
6
|
C as CHAT_KIT_LABELS,
|
|
7
7
|
_ as CkAgentMessage,
|
|
8
|
-
|
|
8
|
+
a2 as CkAgentMessageHeader,
|
|
9
9
|
C2 as CkCitation,
|
|
10
|
-
|
|
10
|
+
b3 as CkCitationCard,
|
|
11
11
|
c2 as CkConversation,
|
|
12
12
|
d3 as CkConversationLayout,
|
|
13
13
|
e2 as CkCopyMessageButton,
|
|
@@ -36,14 +36,14 @@ export {
|
|
|
36
36
|
c as createDocumentUploadProvider,
|
|
37
37
|
d as defaultChatKitLabels,
|
|
38
38
|
d2 as defaultDocumentUploadConfig,
|
|
39
|
-
|
|
39
|
+
f as defaultEndpoints,
|
|
40
40
|
A as formatRelativeTime,
|
|
41
41
|
p as provideChatKitLabels,
|
|
42
42
|
u3 as useChat,
|
|
43
43
|
u2 as useChatKitLabels,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
a as useConversationSessions,
|
|
45
|
+
b2 as useConversations,
|
|
46
|
+
e as useDocumentUploadWithDefaultConfig,
|
|
47
|
+
b as useMarkdownParser,
|
|
48
48
|
u as useMessageHandler
|
|
49
49
|
};
|
package/dist/services/types.d.ts
CHANGED
|
@@ -25,6 +25,13 @@ export interface ConversationSummary {
|
|
|
25
25
|
title: string;
|
|
26
26
|
createdAt: Date;
|
|
27
27
|
updatedAt: Date;
|
|
28
|
+
/**
|
|
29
|
+
* The raw conversation metadata, passed through untouched — including the
|
|
30
|
+
* `title` (also surfaced above as a convenience). Lets consumers read
|
|
31
|
+
* app-specific keys — e.g. arena winners — from a `fetchById` result without
|
|
32
|
+
* a second request. `null` when the server returned no metadata.
|
|
33
|
+
*/
|
|
34
|
+
metadata?: Record<string, unknown> | null;
|
|
28
35
|
}
|
|
29
36
|
/**
|
|
30
37
|
* Raw server response for a single conversation, in the OpenAI-style API
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/services/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEzE;;;;;;;GAOG;AACH,MAAM,WAAW,UAAU;IACzB,GAAG,CAAC,CAAC,EACH,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,GAC7C,OAAO,CAAC,CAAC,CAAC,CAAC;IACd,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAClD,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACrC;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,C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AAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,eAAe,EAAE,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,WAAW,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -89,11 +89,49 @@ export interface TreeMessage {
|
|
|
89
89
|
status: MessageStatus;
|
|
90
90
|
createdAt: Date;
|
|
91
91
|
metadata?: MessageMetadata;
|
|
92
|
+
/**
|
|
93
|
+
* When set, this node's `childrenIds` are a **comparison** (a preference
|
|
94
|
+
* pair / draft set rendered side-by-side) rather than ordinary regenerate
|
|
95
|
+
* alternatives. Set when the comparison is opened and left set once voted —
|
|
96
|
+
* the comparison stays a distinct, labelled view until the user continues
|
|
97
|
+
* past the winner, at which point it collapses to linear history.
|
|
98
|
+
*/
|
|
99
|
+
comparing?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* The child id chosen when a `comparing` node is voted on (mirrored to
|
|
102
|
+
* `activeChildIndex`). Absent = not yet voted. Its presence flips the
|
|
103
|
+
* comparison from the blind "awaiting vote" state to the revealed "resolved"
|
|
104
|
+
* state; once the winner branch gains children the comparison is history.
|
|
105
|
+
*/
|
|
106
|
+
comparisonWinnerId?: string;
|
|
92
107
|
}
|
|
93
108
|
export interface ConversationTree {
|
|
94
109
|
nodes: Record<string, TreeMessage>;
|
|
95
110
|
rootId: string | null;
|
|
96
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* One side of an active comparison: the head child that defines the lane plus
|
|
114
|
+
* that lane's full active sub-path (length 1 for a fresh pair, longer once the
|
|
115
|
+
* conversation has continued inside the lane).
|
|
116
|
+
*/
|
|
117
|
+
export interface ComparisonLane {
|
|
118
|
+
branchId: string;
|
|
119
|
+
path: BaseMessage[];
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* The single active comparison surfaced alongside the linear `messages` path.
|
|
123
|
+
* Non-null only while the active path's tail fork is unresolved (blind) or
|
|
124
|
+
* voted-but-not-continued (revealed). Its `forkParentId` is the last item of
|
|
125
|
+
* `messages`; everything below the fork lives in `lanes`.
|
|
126
|
+
*/
|
|
127
|
+
export interface ActiveComparison {
|
|
128
|
+
forkParentId: string;
|
|
129
|
+
/** false = awaiting vote (blind); true = voted, not yet continued (revealed). */
|
|
130
|
+
resolved: boolean;
|
|
131
|
+
/** The chosen lane's head id once resolved. */
|
|
132
|
+
winnerBranchId: string | null;
|
|
133
|
+
lanes: ComparisonLane[];
|
|
134
|
+
}
|
|
97
135
|
/**
|
|
98
136
|
* High-level conversation record consumed by `CkHistory`.
|
|
99
137
|
*
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA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AgB;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,iFAAiF;IACjF,QAAQ,EAAE,OAAO,CAAC;IAClB,+CAA+C;IAC/C,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -28724,8 +28724,8 @@ function useChatKitLabels() {
|
|
|
28724
28724
|
}
|
|
28725
28725
|
export {
|
|
28726
28726
|
CHAT_KIT_LABELS as C,
|
|
28727
|
-
|
|
28728
|
-
|
|
28727
|
+
remarkNormalizeMath as a,
|
|
28728
|
+
useMarkdownParser as b,
|
|
28729
28729
|
defaultChatKitLabels as d,
|
|
28730
28730
|
normalizeMathDelimiters as n,
|
|
28731
28731
|
provideChatKitLabels as p,
|