@deepseek-ai/dsh-client-ui-chat 0.2.0-rc.2 → 0.2.1-alpha.1

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.
@@ -52,13 +52,20 @@ export declare function cacheHitPercent(usage: TokenUsageProjection): string | n
52
52
  * @returns billed input tokens.
53
53
  */
54
54
  export declare function billedInputTokens(usage: TokenUsageProjection): number;
55
- /** Props: the conversation-snapshot selector plus the projection read seat. */
56
- export interface StatsPillsProps extends InjectFace<PerformanceUsageInjected> {
55
+ type Translate = ChatViewSlotProps['t'];
56
+ /** Props shared by every composer stats pill: the conversation-snapshot selector plus the projection read seat. */
57
+ export interface StatPillProps extends InjectFace<PerformanceUsageInjected> {
57
58
  useChat: SnapshotSelectorHook<ChatSnapshot>;
58
59
  useProjection: UseProjection;
59
60
  /** The owning dock's locale seat. */
60
- t: ChatViewSlotProps['t'];
61
+ t: Translate;
61
62
  }
62
- export declare const StatsPills: import("react").MemoExoticComponent<({ useChat, useProjection, usePerformanceUsage, t }: StatsPillsProps) => import("react").JSX.Element | null>;
63
+ /**
64
+ * Turn and step counts with whole-session speed, opening the time and speed
65
+ * dialog; Compact keeps only the speed reading.
66
+ */
67
+ export declare const ActivityPill: import("react").MemoExoticComponent<({ useChat, useProjection, usePerformanceUsage, t }: StatPillProps) => import("react").JSX.Element | null>;
68
+ /** Whole-log token total and cache hit; Compact keeps only the cache hit. */
69
+ export declare const UsagePill: import("react").MemoExoticComponent<({ useProjection, usePerformanceUsage, t }: StatPillProps) => import("react").JSX.Element | null>;
63
70
  export {};
64
71
  //# sourceMappingURL=StatsPills.d.ts.map
@@ -14,9 +14,7 @@ export interface StatDialogSeat {
14
14
  }
15
15
  /**
16
16
  * One trigger-anchored dialog seat: open state, viewport-clamped placement, outside-close.
17
- * @param controlled - external open state; when given the seat reads and writes
18
- * it instead of owning its own, letting sibling dialogs share one exclusive slot.
19
17
  * @returns the seat; spread `pos ?? MEASURE_STYLE` onto the portaled panel.
20
18
  */
21
- export declare function useStatDialog(controlled?: Pick<StatDialogSeat, 'open' | 'setOpen'>): StatDialogSeat;
19
+ export declare function useStatDialog(): StatDialogSeat;
22
20
  //# sourceMappingURL=stat-dialog.d.ts.map
@@ -2,7 +2,7 @@ import type { ConversationNode, ConversationTimelineSnapshot, PartialAssistant,
2
2
  import type { ChatConversationViewNode, ChatNodeDataMap, ChatNodeKind } from './chat-nodes.ts';
3
3
  import type { ObservableSnapshot } from '@deepseek-ai/dsh-client-store';
4
4
  import type { TurnProcessSpec } from './turn-process.ts';
5
- export type { AssistantBlock, AssistantMessageNode, AssistantProviderMetadataView, AssistantRequestConfig, AssistantTiming, CommandNode, CompactionSummaryNode, ContextMessageNode, ConversationNode, ModelRetryNode, PartialAssistant, PreparingToolCall, RunningToolCall, StartedToolCall, SteeringMessageNode, TodoItem, ToolCallBlock, ToolResultNode, TurnErrorNode, TurnMaxTokensNode, UnknownSurfaceNode, UserMessageNode, } from '@deepseek-ai/dsh-client-ui-conversation/client';
5
+ export type { AssistantBlock, AssistantMessageNode, AssistantProviderMetadataView, AssistantRequestConfig, AssistantTiming, CommandNode, CompactionSummaryNode, ContextMessageNode, ConversationNode, ModelRetryNode, PartialAssistant, PreparingToolCall, RunningToolCall, StartedToolCall, SteeringMessageNode, TodoItem, ToolArgs, ToolCallBlock, ToolResultNode, TurnErrorNode, TurnMaxTokensNode, UnknownSurfaceNode, UserMessageNode, } from '@deepseek-ai/dsh-client-ui-conversation/client';
6
6
  /** Per-key observable used by one mounted Chat Node Seat. */
7
7
  export interface ChatNodeSource {
8
8
  /** @returns the current Node for this source's stable key. */
@@ -75,7 +75,7 @@ export interface ChatTurnProcessPresentation {
75
75
  readonly hasInterleavedInput: boolean;
76
76
  readonly compactAnswer: boolean;
77
77
  }
78
- /** Compatibility projection backing StatsPills and the legacy top-level snapshot fields. */
78
+ /** Compatibility projection backing the composer stats pills (StatsPills.tsx) and the legacy top-level snapshot fields. */
79
79
  export interface LegacyConversationSlice {
80
80
  readonly nodes: readonly ConversationNode[];
81
81
  readonly turnTimings: ReadonlyMap<number, {
@@ -1,4 +1,3 @@
1
- /** Tool-category and live-detail interpretation owned by Chat grouping. */
2
1
  import type { ProcessActivitySummary } from '../contract/process-groups.ts';
3
2
  import type { ChatNode } from '../contract/chat-nodes.ts';
4
3
  /**
@@ -7,7 +7,8 @@ declare module '../contract/chat-nodes.ts' {
7
7
  }
8
8
  }
9
9
  interface ToolState {
10
- readonly root: ToolCallBlock;
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,7 +12,7 @@ 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';
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.0-rc.2",
4
+ "version": "0.2.1-alpha.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "license": "MIT",
47
47
  "peerDependencies": {
48
- "@deepseek-ai/cordis": "~4.0.4"
48
+ "@deepseek-ai/cordis": "~4.0.5-alpha.1"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@tanstack/react-virtual": "^3.14.9",
@@ -53,46 +53,46 @@
53
53
  "@types/react-dom": "~18.3.0",
54
54
  "react": "^18.2.0",
55
55
  "react-dom": "^18.2.0",
56
- "@deepseek-ai/cordis": "~4.0.4",
57
- "@deepseek-ai/dsh-agent": "0.2.0-rc.2",
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"
56
+ "@deepseek-ai/cordis": "~4.0.5-alpha.1",
57
+ "@deepseek-ai/dsh-agent": "0.2.1-alpha.1",
58
+ "@deepseek-ai/dsh-api-remotes": "0.2.1-alpha.1",
59
+ "@deepseek-ai/dsh-api-session-controller": "0.2.1-alpha.1",
60
+ "@deepseek-ai/dsh-api-workspace-controller": "0.2.1-alpha.1",
61
+ "@deepseek-ai/dsh-api-workspace-files": "0.2.1-alpha.1",
62
+ "@deepseek-ai/dsh-attachment": "0.2.1-alpha.1",
63
+ "@deepseek-ai/dsh-brand": "0.2.1-alpha.1",
64
+ "@deepseek-ai/dsh-client-locale": "0.2.1-alpha.1",
65
+ "@deepseek-ai/dsh-client-store": "0.2.1-alpha.1",
66
+ "@deepseek-ai/dsh-client-ui-approval": "0.2.1-alpha.1",
67
+ "@deepseek-ai/dsh-client-ui-conversation": "0.2.1-alpha.1",
68
+ "@deepseek-ai/dsh-client-ui-input-trigger": "0.2.1-alpha.1",
69
+ "@deepseek-ai/dsh-client-ui-layout": "0.2.1-alpha.1",
70
+ "@deepseek-ai/dsh-client-ui-primitives": "0.2.1-alpha.1",
71
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-alpha.1",
72
+ "@deepseek-ai/dsh-client-ui-session": "0.2.1-alpha.1",
73
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.1-alpha.1",
74
+ "@deepseek-ai/dsh-client-ui-sidebar-browser": "0.2.1-alpha.1",
75
+ "@deepseek-ai/dsh-client-ui-sidebar-documentpreview": "0.2.1-alpha.1",
76
+ "@deepseek-ai/dsh-client-ui-workspace": "0.2.1-alpha.1",
77
+ "@deepseek-ai/dsh-commands": "0.2.1-alpha.1",
78
+ "@deepseek-ai/dsh-compaction": "0.2.1-alpha.1",
79
+ "@deepseek-ai/dsh-llm": "0.2.1-alpha.1",
80
+ "@deepseek-ai/dsh-llm-retry": "0.2.1-alpha.1",
81
+ "@deepseek-ai/dsh-session": "0.2.1-alpha.1",
82
+ "@deepseek-ai/dsh-session-stats": "0.2.1-alpha.1",
83
+ "@deepseek-ai/dsh-session-turn-outline": "0.2.1-alpha.1",
84
+ "@deepseek-ai/dsh-token-meter": "0.2.1-alpha.1",
85
+ "@deepseek-ai/dsh-tools": "0.2.1-alpha.1",
86
+ "@deepseek-ai/dsh-subagent": "0.2.1-alpha.1",
87
+ "@deepseek-ai/dsh-util-workspace-path": "0.2.1-alpha.1",
88
+ "@deepseek-ai/dsh-util-values": "0.2.1-alpha.1",
89
+ "@deepseek-ai/dsh-settings": "0.2.1-alpha.1",
90
+ "@deepseek-ai/dsh-client-product-analytics": "0.2.1-alpha.1",
91
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.1-alpha.1",
92
+ "@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.1-alpha.1"
93
93
  },
94
94
  "dependencies": {
95
- "@deepseek-ai/schemastery": "~3.18.4"
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