dsh-more 0.0.3 → 0.0.5

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.
Files changed (32) hide show
  1. package/CONTRIBUTING.md +1 -1
  2. package/README.md +5 -3
  3. package/README.zh-CN.md +5 -3
  4. package/dist/client.js +88 -513
  5. package/dist/index.js +154 -58
  6. package/dist/types/client/index.d.ts +5 -1
  7. package/dist/types/generated/host-settings-schema.d.ts +2 -2
  8. package/dist/types/generated/patch-catalog.d.ts +4 -4
  9. package/dist/types/kernel/client/activation.d.ts +2 -1
  10. package/dist/types/kernel/client/config-card.d.ts +2 -2
  11. package/dist/types/kernel/client/message-actions.d.ts +4 -0
  12. package/dist/types/kernel/client/patch.d.ts +1 -1
  13. package/dist/types/kernel/host/settings.d.ts +1 -1
  14. package/dist/types/patches/message-delete/client/index.d.ts +1 -1
  15. package/dist/types/patches/message-delete/host/message-selection.d.ts +3 -3
  16. package/dist/types/patches/message-delete/host/projection.d.ts +26 -3
  17. package/dist/types/patches/message-edit/client/index.d.ts +1 -1
  18. package/dist/types/patches/message-edit/host/edit-continuation.d.ts +3 -3
  19. package/dist/types/patches/model-reasoning-efforts/client/index.d.ts +17 -2
  20. package/dist/types/patches/session-auto-title/client/index.d.ts +2 -0
  21. package/dist/types/patches/session-auto-title/host/generate.d.ts +6 -0
  22. package/dist/types/patches/session-auto-title/shared.d.ts +2 -0
  23. package/dist/types/platform/dsh/client/message-targets.d.ts +3 -2
  24. package/dist/types/platform/dsh/client/runtime.d.ts +2 -1
  25. package/dist/types/platform/dsh/client/session-sync.d.ts +4 -2
  26. package/dist/types/platform/dsh/host/session-history.d.ts +3 -3
  27. package/dsh.plugin.json +1 -1
  28. package/package.json +65 -46
  29. package/dist/types/patches/conversation-quick-navigation/client/index.d.ts +0 -22
  30. package/dist/types/patches/conversation-quick-navigation/client/navigation.d.ts +0 -26
  31. package/dist/types/patches/conversation-quick-navigation/shared.d.ts +0 -1
  32. /package/dist/types/patches/{conversation-quick-navigation → session-auto-title}/host/index.d.ts +0 -0
@@ -1,4 +1,5 @@
1
- import type { ISessions, IWorkspaces } from '@deepseek-ai/dsh-client-runtime/client';
1
+ import type { ISessions } from '@deepseek-ai/dsh-api-session-controller/client';
2
+ import type { IWorkspaces } from '@deepseek-ai/dsh-api-workspace-controller/client';
2
3
  export interface RefreshableSessions extends ISessions {
3
4
  refresh(): Promise<void>;
4
5
  }
@@ -1,4 +1,6 @@
1
- import type { SessionId, SessionListState, WorkspaceListState } from '@deepseek-ai/dsh-client-runtime/client';
1
+ import type { SessionId } from '@deepseek-ai/dsh-session/types';
2
+ import type { SessionListState } from '@deepseek-ai/dsh-api-session-controller/client';
3
+ import type { WorkspaceSnapshot } from '@deepseek-ai/dsh-api-workspace-controller/client';
2
4
  import type { RefreshableSessions, RefreshableWorkspaces } from './runtime.js';
3
5
  /** Switch synchronously so a following archive/removal frame cannot expose the empty view. */
4
6
  export declare function openSessionWithoutGap(sessions: RefreshableSessions, sessionId: SessionId): void;
@@ -15,4 +17,4 @@ export declare function followSessionHandoff(sessions: RefreshableSessions, targ
15
17
  /** Prefer push-frame convergence after deletion; re-pull both baselines only as a fallback. */
16
18
  export declare function settleSessionRemoval(sessions: RefreshableSessions, workspaces: RefreshableWorkspaces, sessionId: SessionId): Promise<void>;
17
19
  /** Pick the nearest non-archived row so deleting the current session never exposes a blank gap. */
18
- export declare function adjacentVisibleSession(sessions: SessionListState, workspaces: WorkspaceListState, deletingSessionId: SessionId): SessionId | undefined;
20
+ export declare function adjacentVisibleSession(sessions: SessionListState, workspaces: WorkspaceSnapshot, deletingSessionId: SessionId): SessionId | undefined;
@@ -1,8 +1,8 @@
1
- import type { SessionEvent } from '@deepseek-ai/dsh-session';
1
+ import type { SessionEvent, SessionSeq } from '@deepseek-ai/dsh-session';
2
2
  export interface CompletedTurn {
3
3
  turn: number;
4
- startSeq: number;
5
- endSeq: number;
4
+ startSeq: SessionSeq;
5
+ endSeq: SessionSeq;
6
6
  }
7
7
  /** Return only turns with a durable start/end pair, in log order. */
8
8
  export declare function completedTurns(events: readonly SessionEvent[]): CompletedTurn[];
package/dsh.plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-more",
3
3
  "description": "Practical patches for missing DSH Web context and history controls",
4
- "version": "0.0.3",
4
+ "version": "0.0.5",
5
5
  "entry": {
6
6
  "name": "dsh-more",
7
7
  "inject": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-more",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "Practical patches for missing DeepSeek Harness Web context and history controls.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -56,12 +56,16 @@
56
56
  "client": {
57
57
  "platform": "web",
58
58
  "inject": [
59
- "@deepseek-ai/dsh-client-runtime",
60
59
  "@deepseek-ai/dsh-client-ui-slots",
61
60
  "@deepseek-ai/dsh-client-ui-conversation",
62
61
  "@deepseek-ai/dsh-client-ui-primitives",
63
62
  "@deepseek-ai/dsh-client-ui-settings",
64
- "@deepseek-ai/dsh-client-ui-settings-plugins"
63
+ "@deepseek-ai/dsh-client-ui-settings-plugins",
64
+ "@deepseek-ai/dsh-api-session-controller",
65
+ "@deepseek-ai/dsh-api-workspace-controller",
66
+ "@deepseek-ai/dsh-client-ui-chat",
67
+ "@deepseek-ai/dsh-client-ui-session",
68
+ "@deepseek-ai/dsh-client-ui-renderer"
65
69
  ]
66
70
  }
67
71
  },
@@ -84,52 +88,58 @@
84
88
  "prepack": "npm run check"
85
89
  },
86
90
  "peerDependencies": {
87
- "@deepseek-ai/cordis": "^4.0.1",
88
- "@deepseek-ai/dsh-agent": "^0.1.0-rc.7",
89
- "@deepseek-ai/dsh-client-runtime": "^0.1.0-rc.7",
90
- "@deepseek-ai/dsh-client-ui-conversation": "^0.1.0-rc.7",
91
- "@deepseek-ai/dsh-client-ui-primitives": "^0.1.0-rc.7",
92
- "@deepseek-ai/dsh-client-ui-settings": "^0.1.0-rc.7",
93
- "@deepseek-ai/dsh-client-ui-settings-plugins": "^0.1.0-rc.7",
94
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.0-rc.7",
95
- "@deepseek-ai/dsh-compaction": "^0.1.0-rc.7",
96
- "@deepseek-ai/dsh-agent-presets": "^0.1.0-rc.7",
97
- "@deepseek-ai/dsh-host-webserver": "^0.1.0-rc.7",
98
- "@deepseek-ai/dsh-llm": "^0.1.0-rc.7",
99
- "@deepseek-ai/dsh-session": "^0.1.0-rc.7",
100
- "@deepseek-ai/dsh-session-persistence": "^0.1.0-rc.7",
101
- "@deepseek-ai/dsh-session-projection": "^0.1.0-rc.7",
102
- "@deepseek-ai/dsh-settings": "^0.1.0-rc.7",
103
- "@deepseek-ai/dsh-system-prompt": "^0.1.0-rc.7",
104
- "@deepseek-ai/dsh-workspace": "^0.1.0-rc.7",
105
- "@deepseek-ai/dsh-web-app": "^0.1.0-rc.7",
106
- "@deepseek-ai/schemastery": "^3.18.1",
91
+ "@deepseek-ai/cordis": "^4.0.2",
92
+ "@deepseek-ai/dsh-agent": "^0.1.2-rc.1",
93
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.1.2-rc.1",
94
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.1.2-rc.1",
95
+ "@deepseek-ai/dsh-client-ui-settings": "^0.1.2-rc.1",
96
+ "@deepseek-ai/dsh-client-ui-settings-plugins": "^0.1.2-rc.1",
97
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.2-rc.1",
98
+ "@deepseek-ai/dsh-compaction": "^0.1.2-rc.1",
99
+ "@deepseek-ai/dsh-agent-presets": "^0.1.2-rc.1",
100
+ "@deepseek-ai/dsh-host-webserver": "^0.1.2-rc.1",
101
+ "@deepseek-ai/dsh-llm": "^0.1.2-rc.1",
102
+ "@deepseek-ai/dsh-session": "^0.1.2-rc.1",
103
+ "@deepseek-ai/dsh-session-persistence": "^0.1.2-rc.1",
104
+ "@deepseek-ai/dsh-session-projection": "^0.1.2-rc.1",
105
+ "@deepseek-ai/dsh-settings": "^0.1.2-rc.1",
106
+ "@deepseek-ai/dsh-system-prompt": "^0.1.2-rc.1",
107
+ "@deepseek-ai/dsh-workspace": "^0.1.2-rc.1",
108
+ "@deepseek-ai/dsh-web-app": "^0.1.2-rc.1",
109
+ "@deepseek-ai/schemastery": "^3.18.2",
107
110
  "react": "^18.2.0",
108
111
  "react-dom": "^18.2.0",
109
- "zod": "^4.4.3"
112
+ "zod": "^4.4.3",
113
+ "@deepseek-ai/dsh-api-session-controller": "^0.1.2-rc.1",
114
+ "@deepseek-ai/dsh-api-workspace-controller": "^0.1.2-rc.1",
115
+ "@deepseek-ai/dsh-client-ui-chat": "^0.1.2-rc.1",
116
+ "@deepseek-ai/dsh-client-ui-session": "^0.1.2-rc.1",
117
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.1.2-rc.1",
118
+ "@deepseek-ai/dsh-client-store": "^0.1.2-rc.1",
119
+ "@deepseek-ai/dsh-llm-retry": "^0.1.2-rc.1",
120
+ "@deepseek-ai/dsh-session-title": "^0.1.2-rc.1"
110
121
  },
111
122
  "devDependencies": {
112
- "@deepseek-ai/cordis": "4.0.1",
113
- "@deepseek-ai/dsh-agent": "0.1.0-rc.7",
114
- "@deepseek-ai/dsh-client-runtime": "0.1.0-rc.7",
115
- "@deepseek-ai/dsh-client-ui-conversation": "0.1.0-rc.7",
116
- "@deepseek-ai/dsh-client-ui-layout": "0.1.0-rc.7",
117
- "@deepseek-ai/dsh-client-ui-primitives": "0.1.0-rc.7",
118
- "@deepseek-ai/dsh-client-ui-settings": "0.1.0-rc.7",
119
- "@deepseek-ai/dsh-client-ui-settings-plugins": "0.1.0-rc.7",
120
- "@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.7",
121
- "@deepseek-ai/dsh-compaction": "0.1.0-rc.7",
122
- "@deepseek-ai/dsh-agent-presets": "0.1.0-rc.7",
123
- "@deepseek-ai/dsh-host-webserver": "0.1.0-rc.7",
124
- "@deepseek-ai/dsh-llm": "0.1.0-rc.7",
125
- "@deepseek-ai/dsh-session": "0.1.0-rc.7",
126
- "@deepseek-ai/dsh-session-persistence": "0.1.0-rc.7",
127
- "@deepseek-ai/dsh-session-projection": "0.1.0-rc.7",
128
- "@deepseek-ai/dsh-settings": "0.1.0-rc.7",
129
- "@deepseek-ai/dsh-system-prompt": "0.1.0-rc.7",
130
- "@deepseek-ai/dsh-workspace": "0.1.0-rc.7",
131
- "@deepseek-ai/dsh-web-app": "0.1.0-rc.7",
132
- "@deepseek-ai/schemastery": "3.18.1",
123
+ "@deepseek-ai/cordis": "4.0.2",
124
+ "@deepseek-ai/dsh-agent": "0.1.2-rc.1",
125
+ "@deepseek-ai/dsh-client-ui-conversation": "0.1.2-rc.1",
126
+ "@deepseek-ai/dsh-client-ui-layout": "0.1.2-rc.1",
127
+ "@deepseek-ai/dsh-client-ui-primitives": "0.1.2-rc.1",
128
+ "@deepseek-ai/dsh-client-ui-settings": "0.1.2-rc.1",
129
+ "@deepseek-ai/dsh-client-ui-settings-plugins": "0.1.2-rc.1",
130
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.2-rc.1",
131
+ "@deepseek-ai/dsh-compaction": "0.1.2-rc.1",
132
+ "@deepseek-ai/dsh-agent-presets": "0.1.2-rc.1",
133
+ "@deepseek-ai/dsh-host-webserver": "0.1.2-rc.1",
134
+ "@deepseek-ai/dsh-llm": "0.1.2-rc.1",
135
+ "@deepseek-ai/dsh-session": "0.1.2-rc.1",
136
+ "@deepseek-ai/dsh-session-persistence": "0.1.2-rc.1",
137
+ "@deepseek-ai/dsh-session-projection": "0.1.2-rc.1",
138
+ "@deepseek-ai/dsh-settings": "0.1.2-rc.1",
139
+ "@deepseek-ai/dsh-system-prompt": "0.1.2-rc.1",
140
+ "@deepseek-ai/dsh-workspace": "0.1.2-rc.1",
141
+ "@deepseek-ai/dsh-web-app": "0.1.2-rc.1",
142
+ "@deepseek-ai/schemastery": "3.18.2",
133
143
  "@types/node": "^24.0.0",
134
144
  "@types/react": "~18.3.0",
135
145
  "@types/react-dom": "~18.3.0",
@@ -138,6 +148,15 @@
138
148
  "react-dom": "18.3.1",
139
149
  "typescript": "^5.9.2",
140
150
  "vitest": "^4.0.0",
141
- "zod": "4.4.3"
151
+ "zod": "4.4.3",
152
+ "@deepseek-ai/dsh-api-session-controller": "0.1.2-rc.1",
153
+ "@deepseek-ai/dsh-api-workspace-controller": "0.1.2-rc.1",
154
+ "@deepseek-ai/dsh-client-ui-chat": "0.1.2-rc.1",
155
+ "@deepseek-ai/dsh-client-ui-session": "0.1.2-rc.1",
156
+ "@deepseek-ai/dsh-client-ui-renderer": "0.1.2-rc.1",
157
+ "@deepseek-ai/dsh-client-store": "0.1.2-rc.1",
158
+ "@deepseek-ai/dsh-llm-retry": "0.1.2-rc.1",
159
+ "happy-dom": "20.14.0",
160
+ "@deepseek-ai/dsh-session-title": "0.1.2-rc.1"
142
161
  }
143
162
  }
@@ -1,22 +0,0 @@
1
- import type { PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
2
- import type { PatchActivationSource } from '../../../kernel/client/activation.js';
3
- import type { ClientPatch } from '../../../kernel/client/patch.js';
4
- import { type ConversationTurnSummary } from './navigation.js';
5
- type HeaderUtilityProps = PropsRuntime<'conversation.session.header.utilities'>;
6
- export declare function ConversationNavigationMenu({ turns, activeKey, hasMore, loadingOlder, autoLoadPaused, collapsed, onRetry, onToggleCollapsed, onJump, listRef, }: {
7
- turns: readonly ConversationTurnSummary[];
8
- activeKey: string | null;
9
- hasMore: boolean;
10
- loadingOlder: boolean;
11
- autoLoadPaused: boolean;
12
- collapsed: boolean;
13
- onRetry: () => void;
14
- onToggleCollapsed: () => void;
15
- onJump: (key: string) => void;
16
- listRef: React.RefObject<HTMLDivElement>;
17
- }): JSX.Element;
18
- export declare function ConversationQuickNavigation(props: HeaderUtilityProps & {
19
- activation: PatchActivationSource;
20
- }): JSX.Element | null;
21
- export declare const clientPatch: ClientPatch;
22
- export {};
@@ -1,26 +0,0 @@
1
- import type { ConversationSnapshot } from '@deepseek-ai/dsh-client-runtime/client';
2
- export interface ConversationTurnSummary {
3
- key: string;
4
- seq: number;
5
- label: string;
6
- }
7
- export interface TurnPosition {
8
- key: string;
9
- top: number;
10
- }
11
- export interface AutoLoadOlderState {
12
- enabled: boolean;
13
- surfaceAvailable: boolean;
14
- hasMore: boolean;
15
- loadingOlder: boolean;
16
- paused: boolean;
17
- }
18
- /** Select stable user-authored turn summaries without observing assistant streaming frames. */
19
- export declare function createConversationTurnSelector(): (snapshot: ConversationSnapshot) => readonly ConversationTurnSummary[];
20
- /** Stable evidence that an older history page prepended visible conversation material. */
21
- export declare function historyWindowSignature(snapshot: ConversationSnapshot): string;
22
- export declare function shouldAutoLoadOlder(state: AutoLoadOlderState): boolean;
23
- /** Pick the last turn at or above the reading line, falling back to the first turn. */
24
- export declare function activeTurnAt(positions: readonly TurnPosition[], readingLine: number): string | null;
25
- /** Translate a row's viewport coordinate into a bounded scrollport offset. */
26
- export declare function scrollOffsetForRow(currentScrollTop: number, scrollportTop: number, rowTop: number, topInset?: number): number;
@@ -1 +0,0 @@
1
- export declare const CONVERSATION_QUICK_NAVIGATION_PATCH_ID = "conversation-quick-navigation";