@deepseek-ai/dsh-client-ui-chat 0.2.0-rc.2 → 0.2.1-alpha.2
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.i18n.yaml +10 -10
- package/README.md +17 -7
- package/README.zh.md +17 -7
- package/lib/client.js +6675 -5246
- package/lib/types/client/apply.d.ts +5 -0
- package/lib/types/client/chat/AssistantMarkdown.d.ts +6 -3
- package/lib/types/client/chat/AssistantNodeView.d.ts +3 -3
- package/lib/types/client/chat/ChatFlow.d.ts +4 -0
- package/lib/types/client/chat/ChatGroupSeat.d.ts +4 -3
- package/lib/types/client/chat/ChatNodeSeat.d.ts +11 -8
- package/lib/types/client/chat/ChatView.d.ts +1 -1
- package/lib/types/client/chat/ReasoningContent.d.ts +16 -0
- package/lib/types/client/chat/ReasoningRow.d.ts +5 -3
- package/lib/types/client/chat/StatsPills.d.ts +11 -4
- package/lib/types/client/chat/flow-motion.d.ts +59 -0
- package/lib/types/client/chat/searchable-hidden.d.ts +10 -2
- package/lib/types/client/chat/stat-dialog.d.ts +1 -3
- package/lib/types/client/chat/turn-trigger.d.ts +1 -1
- package/lib/types/client/chat/use-chat-reading.d.ts +12 -4
- package/lib/types/client/chat/use-chat-scroll.d.ts +4 -0
- package/lib/types/client/chat/use-chat-viewport.d.ts +28 -4
- package/lib/types/client/chat/use-scroll-follow.d.ts +4 -3
- package/lib/types/client/contract/slots.d.ts +85 -4
- package/lib/types/client/contract/snapshot.d.ts +4 -2
- package/lib/types/client/contract/store.d.ts +3 -1
- package/lib/types/client/conversation-nodes/process-activity.d.ts +0 -1
- package/lib/types/client/conversation-nodes/tool.d.ts +2 -1
- package/lib/types/client/index.d.ts +2 -2
- package/lib/types/client/locale.d.ts +8 -0
- package/lib/types/client/presentation-policy.d.ts +15 -13
- package/lib/types/client/settings/TranscriptViewRow.d.ts +7 -2
- package/lib/types/client/stores.d.ts +11 -1
- package/lib/types/client/transcript-view.d.ts +9 -1
- package/package.json +41 -41
- package/lib/types/client/conversation-nodes/partial.d.ts +0 -34
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/** Chat-owned per-Session view state. */
|
|
2
2
|
/** Tool call identity as carried by Chat nodes. */
|
|
3
3
|
export type ToolCallId = string;
|
|
4
|
-
/** One
|
|
4
|
+
/** One manual whole-Turn disclosure choice for a Turn answer generation. */
|
|
5
5
|
export interface TurnProcessViewEntry {
|
|
6
6
|
readonly turn: number;
|
|
7
7
|
readonly answerStep: number;
|
|
8
|
+
/** Explicitly collapsed; absent means explicitly opened. */
|
|
9
|
+
readonly collapsed?: true;
|
|
8
10
|
}
|
|
9
11
|
/** Per-Session state shared only by the Chat view and details surface. */
|
|
10
12
|
export interface ChatStoreState {
|
|
@@ -7,7 +7,8 @@ declare module '../contract/chat-nodes.ts' {
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
interface ToolState {
|
|
10
|
-
|
|
10
|
+
/** Absent until a named delta or `tool/call` identifies the call. */
|
|
11
|
+
readonly root: ToolCallBlock | undefined;
|
|
11
12
|
readonly children: ReadonlyMap<string, readonly ToolCallBlock[]>;
|
|
12
13
|
readonly parents: ReadonlyMap<string, string>;
|
|
13
14
|
}
|
|
@@ -12,13 +12,13 @@ export type {} from './conversation-nodes/turn-error.ts';
|
|
|
12
12
|
export type {} from './conversation-nodes/turn-max-tokens.ts';
|
|
13
13
|
export type {} from './conversation-nodes/turn-process.ts';
|
|
14
14
|
export type {} from './conversation-nodes/turn-tail.ts';
|
|
15
|
-
export type { AssistantBlock, AssistantMessageNode, AssistantProviderMetadataView, AssistantRequestConfig, AssistantTiming, ChatLocationNodeIndex, ChatNodeProcessSource, ChatNodeSource, ChatNodeStore, ChatSnapshot, ChatTurnNavigationIndex, ChatTurnProcessPresentation, CommandNode, CompactionSummaryNode, ContextMessageNode, ConversationNode, LegacyConversationSlice, ModelRetryNode, PartialAssistant, PreparingToolCall, RunningToolCall, StartedToolCall, SteeringMessageNode, ToolCallBlock, ToolResultNode, TurnErrorNode, TurnMaxTokensNode, TurnNavigationItem, UnknownSurfaceNode, UserMessageNode, } from './contract/snapshot.ts';
|
|
15
|
+
export type { AssistantBlock, AssistantMessageNode, AssistantProviderMetadataView, AssistantRequestConfig, AssistantTiming, ChatLocationNodeIndex, ChatNodeProcessSource, ChatNodeSource, ChatNodeStore, ChatSnapshot, ChatTurnNavigationIndex, ChatTurnProcessPresentation, CommandNode, CompactionSummaryNode, ContextMessageNode, ConversationNode, LegacyConversationSlice, ModelRetryNode, PartialAssistant, PreparingToolCall, RunningToolCall, StartedToolCall, SteeringMessageNode, ToolArgs, ToolCallBlock, ToolResultNode, TurnErrorNode, TurnMaxTokensNode, TurnNavigationItem, UnknownSurfaceNode, UserMessageNode, } from './contract/snapshot.ts';
|
|
16
16
|
export type { AssistantChatData, ChatConversationViewNode, ChatNode, ChatNodeKind, FinalAssistantChatData, ManualCompactionChatData, RetryChatData, ToolChatData, TurnProcessChatData, TurnTailChatData, } from './contract/chat-nodes.ts';
|
|
17
17
|
export type { ChatStoreState, ToolCallId, TurnProcessViewEntry } from './contract/store.ts';
|
|
18
18
|
export type { TranscriptViewRowInjected, TranscriptViewRowProps } from './settings/TranscriptViewRow.tsx';
|
|
19
19
|
export type { TranscriptViewMode } from '../chat-settings.ts';
|
|
20
20
|
export type { ChatPresentationPolicy } from './presentation-policy.ts';
|
|
21
|
-
export type { AssistantActionOwnerProps, ChatFileMentions, ChatNodeHookContext, ChatNodeInjected, ChatNodeOwnerProps, ChatNodeViewProps, ChatScrollPosition, ChatStore, ChatViewInjected, ChatViewSlotProps, CommandRowOwnerProps, CommandRowProps, MessageImagesProps, OpenFileOptions, PresentationInjected, QuotaNoticeCode, QuotaNoticeHostProps, QuotaNoticeInjected, QuotaNoticeOwnerProps, QuotaNoticeState, TurnProcessOwnerProps, TurnTailOwnerProps, UseChat, UseChatNodeTurnData, UseDisclosure, UsePresentation, } from './contract/slots.ts';
|
|
21
|
+
export type { AssistantActionOwnerProps, ChatFileMentions, ChatNodeHookContext, ChatNodeInjected, ChatNodeOwnerProps, ChatNodeViewProps, ChatScrollPosition, ChatStore, ChatViewInjected, ChatViewSlotProps, ChatFlowDataInjected, ChatFlowHookContext, ChatFlowInjected, ChatFlowOwnerProps, ChatFlowSlotProps, UseGroupHeaderAction, CommandRowOwnerProps, CommandRowProps, MessageImagesProps, OpenFileOptions, PresentationInjected, QuotaNoticeCode, QuotaNoticeHostProps, QuotaNoticeInjected, QuotaNoticeOwnerProps, QuotaNoticeState, ReasoningBodyOwnerProps, ReasoningContentInput, TurnProcessOwnerProps, TurnTailOwnerProps, UseChat, UseChatNodeTurnData, UseDisclosure, UsePresentation, UseGroupAction, } from './contract/slots.ts';
|
|
22
22
|
export type { TurnProcessSpec, } from './contract/turn-process.ts';
|
|
23
23
|
export type { ChatKey } from './locale.ts';
|
|
24
24
|
export type { ConversationContext, ConversationContextOriginKind } from './model/conversation-context.ts';
|
|
@@ -100,6 +100,10 @@ export declare const zh: {
|
|
|
100
100
|
'settings.links.newTab': string;
|
|
101
101
|
'settings.transcript.title': string;
|
|
102
102
|
'settings.transcript.description': string;
|
|
103
|
+
'settings.collapse.title': string;
|
|
104
|
+
'settings.collapse.description': string;
|
|
105
|
+
'settings.collapse.completion': string;
|
|
106
|
+
'settings.collapse.nextInput': string;
|
|
103
107
|
'settings.transcript.compact': string;
|
|
104
108
|
'settings.transcript.standard': string;
|
|
105
109
|
'settings.transcript.detailed': string;
|
|
@@ -291,6 +295,10 @@ export declare const en: {
|
|
|
291
295
|
'settings.links.newTab': string;
|
|
292
296
|
'settings.transcript.title': string;
|
|
293
297
|
'settings.transcript.description': string;
|
|
298
|
+
'settings.collapse.title': string;
|
|
299
|
+
'settings.collapse.description': string;
|
|
300
|
+
'settings.collapse.completion': string;
|
|
301
|
+
'settings.collapse.nextInput': string;
|
|
294
302
|
'settings.transcript.compact': string;
|
|
295
303
|
'settings.transcript.standard': string;
|
|
296
304
|
'settings.transcript.detailed': string;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Runtime vocabulary derived from the persisted work-details mode. Renderers
|
|
3
|
-
* and seats select single fields of this policy; none of them compares the
|
|
4
|
-
* mode enum, so adding a mode changes only the table below.
|
|
5
|
-
*/
|
|
1
|
+
/** Chat presentation derived from Host-backed detail and in-memory collapse timing. */
|
|
6
2
|
import type { ObservableSnapshot } from '@deepseek-ai/dsh-client-store';
|
|
7
3
|
import type { TranscriptViewMode } from '../chat-settings.ts';
|
|
4
|
+
/** Available points when a completed Turn returns to its historical presentation. */
|
|
5
|
+
export declare const COLLAPSE_TIMINGS: readonly ["completion", "next-input"];
|
|
6
|
+
/** When a completed Turn returns to its historical presentation. */
|
|
7
|
+
export type CollapseTiming = typeof COLLAPSE_TIMINGS[number];
|
|
8
8
|
/** Presentation capabilities that one work-details mode enables. */
|
|
9
9
|
export interface ChatPresentationPolicy {
|
|
10
10
|
/** Mode this policy was derived from; for diagnostics, never for branching in renderers. */
|
|
11
11
|
readonly mode: TranscriptViewMode;
|
|
12
|
+
/** Browser-local experiment; completion retains the default immediate folding and scrolling. */
|
|
13
|
+
readonly collapseTiming: CollapseTiming;
|
|
12
14
|
/** Whether a normally completed Turn folds its process rows behind the whole-Turn control. */
|
|
13
15
|
readonly foldCompletedTurns: boolean;
|
|
14
16
|
/** Collapsible group headers for all Turns, historical Turns only, or no Turns. */
|
|
@@ -19,17 +21,17 @@ export interface ChatPresentationPolicy {
|
|
|
19
21
|
readonly settledReasoningPreview: boolean;
|
|
20
22
|
}
|
|
21
23
|
/**
|
|
22
|
-
* Resolve
|
|
23
|
-
* same object, so selectors over a policy see stable identities.
|
|
24
|
+
* Resolve a stable policy for one detail mode and collapse timing.
|
|
24
25
|
* @param mode - persisted work-details mode.
|
|
25
|
-
* @
|
|
26
|
+
* @param collapseTiming - in-memory timing; defaults to immediate completion folding.
|
|
27
|
+
* @returns the same policy object for the same pair of choices.
|
|
26
28
|
*/
|
|
27
|
-
export declare function presentationPolicyFor(mode: TranscriptViewMode): ChatPresentationPolicy;
|
|
29
|
+
export declare function presentationPolicyFor(mode: TranscriptViewMode, collapseTiming?: CollapseTiming): ChatPresentationPolicy;
|
|
28
30
|
/**
|
|
29
|
-
*
|
|
30
|
-
* its own: reads are a table lookup and change notifications are the mode's.
|
|
31
|
+
* Combine Host-backed detail and in-memory timing without owning subscriptions.
|
|
31
32
|
* @param mode - live work-details mode.
|
|
32
|
-
* @
|
|
33
|
+
* @param collapseTiming - live, in-memory collapse timing.
|
|
34
|
+
* @returns observable policy whose subscriptions follow both preferences.
|
|
33
35
|
*/
|
|
34
|
-
export declare function derivePresentationPolicy(mode: ObservableSnapshot<TranscriptViewMode>): ObservableSnapshot<ChatPresentationPolicy>;
|
|
36
|
+
export declare function derivePresentationPolicy(mode: ObservableSnapshot<TranscriptViewMode>, collapseTiming: ObservableSnapshot<CollapseTiming>): ObservableSnapshot<ChatPresentationPolicy>;
|
|
35
37
|
//# sourceMappingURL=presentation-policy.d.ts.map
|
|
@@ -2,21 +2,26 @@
|
|
|
2
2
|
import type { SnapshotStore } from '@deepseek-ai/dsh-client-store';
|
|
3
3
|
import type { InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
|
|
4
4
|
import { type TranscriptViewMode } from '../../chat-settings.ts';
|
|
5
|
+
import { type CollapseTiming } from '../presentation-policy.ts';
|
|
5
6
|
/** Registration-side work-details preference face. */
|
|
6
7
|
export interface TranscriptViewRowInjected {
|
|
7
8
|
hooks: {
|
|
8
9
|
/** Persisted work-details preference bound as useTranscriptView. */
|
|
9
10
|
transcriptView: SnapshotStore<TranscriptViewMode>;
|
|
11
|
+
/** Browser-local timing bound as useCollapseTiming. */
|
|
12
|
+
collapseTiming: SnapshotStore<CollapseTiming>;
|
|
10
13
|
};
|
|
11
14
|
/** Change the work-details presentation. */
|
|
12
15
|
setTranscriptView: (mode: TranscriptViewMode) => void;
|
|
16
|
+
/** Retain collapse timing for this Client lifetime without changing Host settings. */
|
|
17
|
+
setCollapseTiming: (timing: CollapseTiming) => void;
|
|
13
18
|
}
|
|
14
19
|
/** Full Settings-row props. */
|
|
15
20
|
export type TranscriptViewRowProps = PropsRuntime<'settings.general.item'> & PropsLocale<'chat'> & InjectFace<TranscriptViewRowInjected>;
|
|
16
21
|
/**
|
|
17
|
-
* Render
|
|
22
|
+
* Render work-details and browser-local collapse-timing selectors.
|
|
18
23
|
* @param props - composed Settings slot props.
|
|
19
24
|
* @returns the preference row.
|
|
20
25
|
*/
|
|
21
|
-
export declare function TranscriptViewRow({ useTranscriptView, setTranscriptView, t }: TranscriptViewRowProps): import("react").JSX.Element;
|
|
26
|
+
export declare function TranscriptViewRow({ useTranscriptView, setTranscriptView, useCollapseTiming, setCollapseTiming, t, }: TranscriptViewRowProps): import("react").JSX.Element;
|
|
22
27
|
//# sourceMappingURL=TranscriptViewRow.d.ts.map
|
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
/** Per-Session Chat view store. */
|
|
2
2
|
import { type EngineStoreHandle } from '@deepseek-ai/dsh-client-store';
|
|
3
3
|
import type { ChatStoreState, TurnProcessViewEntry } from './contract/store.ts';
|
|
4
|
+
import type { TurnProcessSpec } from './contract/turn-process.ts';
|
|
4
5
|
type ChatActions = {
|
|
5
6
|
setTurnProcessOpen: (draft: ChatStoreState, turn: number, answerStep: number, open: boolean) => void;
|
|
6
7
|
};
|
|
7
8
|
/**
|
|
8
|
-
* Resolve the
|
|
9
|
+
* Resolve the manual disclosure choice for one Turn.
|
|
9
10
|
* @param state - Chat store snapshot.
|
|
10
11
|
* @param turn - owning Turn.
|
|
11
12
|
* @returns the Turn's stored entry, when present.
|
|
12
13
|
*/
|
|
13
14
|
export declare function storedTurnProcessEntry(state: Readonly<ChatStoreState>, turn: number): Readonly<TurnProcessViewEntry> | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Whether a foldable Turn's process is open: the reader's choice for the current answer generation
|
|
17
|
+
* wins; otherwise the latest completed Turn stays open until the next input, and older Turns fold.
|
|
18
|
+
* @param state - Chat store snapshot.
|
|
19
|
+
* @param spec - the Turn's process specification.
|
|
20
|
+
* @param defaultOpen - whether this Turn is exempt from automatic folding.
|
|
21
|
+
* @returns the effective open state.
|
|
22
|
+
*/
|
|
23
|
+
export declare function turnProcessOpen(state: Readonly<ChatStoreState>, spec: Pick<TurnProcessSpec, 'turn' | 'answerStep'>, defaultOpen: boolean): boolean;
|
|
14
24
|
/**
|
|
15
25
|
* Create the Chat view store handle.
|
|
16
26
|
* @returns a handle instantiated once per rendered Session scope.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
/** Host-backed work
|
|
1
|
+
/** Host-backed work details and independent, in-memory collapse timing. */
|
|
2
2
|
import { type SnapshotStore } from '@deepseek-ai/dsh-client-store';
|
|
3
3
|
import type { ConfigForm } from '@deepseek-ai/dsh-client-ui-settings/client';
|
|
4
|
+
import type { CollapseTiming } from './presentation-policy.ts';
|
|
4
5
|
import { type ChatSettings, type TranscriptViewMode } from '../chat-settings.ts';
|
|
5
6
|
/** Live work-details preference consumed by Chat and its Settings row. */
|
|
6
7
|
export declare class TranscriptViewPolicy {
|
|
@@ -9,6 +10,8 @@ export declare class TranscriptViewPolicy {
|
|
|
9
10
|
private readonly unsubscribe;
|
|
10
11
|
/** Reactive current mode, including the client default before Host settings arrive. */
|
|
11
12
|
readonly mode: SnapshotStore<TranscriptViewMode>;
|
|
13
|
+
/** Independent Client-lifetime choice; each new instance starts with completion-time folding. */
|
|
14
|
+
readonly collapseTiming: SnapshotStore<CollapseTiming>;
|
|
12
15
|
/**
|
|
13
16
|
* @param host - durable Chat settings scope.
|
|
14
17
|
* @param defaultMode - presentation used without an explicit saved mode.
|
|
@@ -21,6 +24,11 @@ export declare class TranscriptViewPolicy {
|
|
|
21
24
|
* @param mode - Compact, Standard, Detailed, or Verbose work details.
|
|
22
25
|
*/
|
|
23
26
|
setMode(mode: TranscriptViewMode): void;
|
|
27
|
+
/**
|
|
28
|
+
* Keep collapse timing in memory without writing Host or browser storage.
|
|
29
|
+
* @param timing - immediate completion folding or deferred folding at the next input.
|
|
30
|
+
*/
|
|
31
|
+
setCollapseTiming(timing: CollapseTiming): void;
|
|
24
32
|
/** Adopt the latest accepted Host section without writing it back. */
|
|
25
33
|
private adopt;
|
|
26
34
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-client-ui-chat",
|
|
3
3
|
"description": "Chat Conversation target, node definitions, renderers, and details surface",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.1-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -45,54 +45,54 @@
|
|
|
45
45
|
},
|
|
46
46
|
"license": "MIT",
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
48
|
+
"@deepseek-ai/cordis": "~4.0.5-alpha.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@
|
|
51
|
+
"@deepseek-ai/cordis": "~4.0.5-alpha.1",
|
|
52
|
+
"@deepseek-ai/dsh-agent": "0.2.1-alpha.2",
|
|
53
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.1-alpha.2",
|
|
54
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.1-alpha.2",
|
|
55
|
+
"@deepseek-ai/dsh-api-workspace-controller": "0.2.1-alpha.2",
|
|
56
|
+
"@deepseek-ai/dsh-api-workspace-files": "0.2.1-alpha.2",
|
|
57
|
+
"@deepseek-ai/dsh-attachment": "0.2.1-alpha.2",
|
|
58
|
+
"@deepseek-ai/dsh-brand": "0.2.1-alpha.2",
|
|
59
|
+
"@deepseek-ai/dsh-client-locale": "0.2.1-alpha.2",
|
|
60
|
+
"@deepseek-ai/dsh-client-store": "0.2.1-alpha.2",
|
|
61
|
+
"@deepseek-ai/dsh-client-ui-approval": "0.2.1-alpha.2",
|
|
62
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.1-alpha.2",
|
|
63
|
+
"@deepseek-ai/dsh-client-ui-input-trigger": "0.2.1-alpha.2",
|
|
64
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.1-alpha.2",
|
|
65
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-alpha.2",
|
|
66
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-alpha.2",
|
|
67
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.1-alpha.2",
|
|
68
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-alpha.2",
|
|
69
|
+
"@deepseek-ai/dsh-client-ui-sidebar-browser": "0.2.1-alpha.2",
|
|
70
|
+
"@deepseek-ai/dsh-client-ui-sidebar-documentpreview": "0.2.1-alpha.2",
|
|
71
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.1-alpha.2",
|
|
72
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-alpha.2",
|
|
73
|
+
"@deepseek-ai/dsh-client-ui-workspace": "0.2.1-alpha.2",
|
|
74
|
+
"@deepseek-ai/dsh-commands": "0.2.1-alpha.2",
|
|
75
|
+
"@deepseek-ai/dsh-compaction": "0.2.1-alpha.2",
|
|
76
|
+
"@deepseek-ai/dsh-llm": "0.2.1-alpha.2",
|
|
77
|
+
"@deepseek-ai/dsh-llm-retry": "0.2.1-alpha.2",
|
|
78
|
+
"@deepseek-ai/dsh-session": "0.2.1-alpha.2",
|
|
79
|
+
"@deepseek-ai/dsh-session-stats": "0.2.1-alpha.2",
|
|
80
|
+
"@deepseek-ai/dsh-session-turn-outline": "0.2.1-alpha.2",
|
|
81
|
+
"@deepseek-ai/dsh-subagent": "0.2.1-alpha.2",
|
|
82
|
+
"@deepseek-ai/dsh-token-meter": "0.2.1-alpha.2",
|
|
83
|
+
"@deepseek-ai/dsh-tools": "0.2.1-alpha.2",
|
|
84
|
+
"@deepseek-ai/dsh-util-workspace-path": "0.2.1-alpha.2",
|
|
85
|
+
"@deepseek-ai/dsh-util-values": "0.2.1-alpha.2",
|
|
86
|
+
"@tanstack/react-virtual": "^3.14.10",
|
|
52
87
|
"@types/react": "~18.3.1",
|
|
53
88
|
"@types/react-dom": "~18.3.0",
|
|
54
89
|
"react": "^18.2.0",
|
|
55
90
|
"react-dom": "^18.2.0",
|
|
56
|
-
"@deepseek-ai/
|
|
57
|
-
"@deepseek-ai/dsh-
|
|
58
|
-
"@deepseek-ai/dsh-api-remotes": "0.2.0-rc.2",
|
|
59
|
-
"@deepseek-ai/dsh-api-workspace-controller": "0.2.0-rc.2",
|
|
60
|
-
"@deepseek-ai/dsh-api-workspace-files": "0.2.0-rc.2",
|
|
61
|
-
"@deepseek-ai/dsh-attachment": "0.2.0-rc.2",
|
|
62
|
-
"@deepseek-ai/dsh-brand": "0.2.0-rc.2",
|
|
63
|
-
"@deepseek-ai/dsh-client-store": "0.2.0-rc.2",
|
|
64
|
-
"@deepseek-ai/dsh-client-ui-approval": "0.2.0-rc.2",
|
|
65
|
-
"@deepseek-ai/dsh-client-locale": "0.2.0-rc.2",
|
|
66
|
-
"@deepseek-ai/dsh-api-session-controller": "0.2.0-rc.2",
|
|
67
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.2.0-rc.2",
|
|
68
|
-
"@deepseek-ai/dsh-client-ui-input-trigger": "0.2.0-rc.2",
|
|
69
|
-
"@deepseek-ai/dsh-client-ui-layout": "0.2.0-rc.2",
|
|
70
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.2.0-rc.2",
|
|
71
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.2",
|
|
72
|
-
"@deepseek-ai/dsh-client-ui-sidebar-browser": "0.2.0-rc.2",
|
|
73
|
-
"@deepseek-ai/dsh-client-ui-sidebar-documentpreview": "0.2.0-rc.2",
|
|
74
|
-
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.0-rc.2",
|
|
75
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.2",
|
|
76
|
-
"@deepseek-ai/dsh-client-ui-workspace": "0.2.0-rc.2",
|
|
77
|
-
"@deepseek-ai/dsh-commands": "0.2.0-rc.2",
|
|
78
|
-
"@deepseek-ai/dsh-compaction": "0.2.0-rc.2",
|
|
79
|
-
"@deepseek-ai/dsh-llm-retry": "0.2.0-rc.2",
|
|
80
|
-
"@deepseek-ai/dsh-session": "0.2.0-rc.2",
|
|
81
|
-
"@deepseek-ai/dsh-session-stats": "0.2.0-rc.2",
|
|
82
|
-
"@deepseek-ai/dsh-session-turn-outline": "0.2.0-rc.2",
|
|
83
|
-
"@deepseek-ai/dsh-llm": "0.2.0-rc.2",
|
|
84
|
-
"@deepseek-ai/dsh-subagent": "0.2.0-rc.2",
|
|
85
|
-
"@deepseek-ai/dsh-token-meter": "0.2.0-rc.2",
|
|
86
|
-
"@deepseek-ai/dsh-tools": "0.2.0-rc.2",
|
|
87
|
-
"@deepseek-ai/dsh-util-workspace-path": "0.2.0-rc.2",
|
|
88
|
-
"@deepseek-ai/dsh-util-values": "0.2.0-rc.2",
|
|
89
|
-
"@deepseek-ai/dsh-settings": "0.2.0-rc.2",
|
|
90
|
-
"@deepseek-ai/dsh-client-ui-session": "0.2.0-rc.2",
|
|
91
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.2",
|
|
92
|
-
"@deepseek-ai/dsh-client-product-analytics": "0.2.0-rc.2"
|
|
91
|
+
"@deepseek-ai/dsh-settings": "0.2.1-alpha.2",
|
|
92
|
+
"@deepseek-ai/dsh-client-product-analytics": "0.2.1-alpha.2"
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@deepseek-ai/schemastery": "~3.18.
|
|
95
|
+
"@deepseek-ai/schemastery": "~3.18.5-alpha.1"
|
|
96
96
|
},
|
|
97
97
|
"files": [
|
|
98
98
|
"lib/index.js",
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { StreamChunk } from '@deepseek-ai/dsh-llm/types';
|
|
2
|
-
import type { AssistantBlock, PartialAssistant } from '@deepseek-ai/dsh-client-ui-conversation/client';
|
|
3
|
-
/**
|
|
4
|
-
* Whether a stream chunk changes the partial assistant projection shown by the UI.
|
|
5
|
-
* @param type - Stream chunk discriminant.
|
|
6
|
-
* @returns Whether publishing the accumulated partial can change the visible snapshot.
|
|
7
|
-
*/
|
|
8
|
-
export declare function isVisibleAssistantChunk(type: string): boolean;
|
|
9
|
-
/** Live Assistant-frame accumulator: folds StreamChunks into AssistantBlock[] with block-level immutability. */
|
|
10
|
-
export declare class PartialAccumulator {
|
|
11
|
-
readonly turn: number;
|
|
12
|
-
readonly step: number;
|
|
13
|
-
private blocks;
|
|
14
|
-
private changed;
|
|
15
|
-
private snapshot;
|
|
16
|
-
/**
|
|
17
|
-
* @param turn - Owning agent turn.
|
|
18
|
-
* @param step - Owning model step.
|
|
19
|
-
* @param initialBlocks - Materialized prefix when accumulation begins after history replay.
|
|
20
|
-
*/
|
|
21
|
-
constructor(turn: number, step: number, initialBlocks?: readonly AssistantBlock[]);
|
|
22
|
-
/**
|
|
23
|
-
* Fold one chunk.
|
|
24
|
-
* @param chunk - the stream chunk.
|
|
25
|
-
* @returns whether it caused a visible change (usage/finish return false, skipping notification).
|
|
26
|
-
*/
|
|
27
|
-
push(chunk: StreamChunk): boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Current partial projection.
|
|
30
|
-
* @returns the cached snapshot (the blocks array reference only changes after a mutation).
|
|
31
|
-
*/
|
|
32
|
-
toPartial(): PartialAssistant;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=partial.d.ts.map
|