@sparkelf/dsh-plus 0.2.9-alpha.60 → 0.2.9-alpha.61

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.
@@ -0,0 +1,31 @@
1
+ diff --git a/packages/client/ui-workspace/src/client/tree.ts b/packages/client/ui-workspace/src/client/tree.ts
2
+ index 054c584..1df953b 100644
3
+ --- a/packages/client/ui-workspace/src/client/tree.ts
4
+ +++ b/packages/client/ui-workspace/src/client/tree.ts
5
+ @@ -17,6 +17,16 @@ import { workspaceTitleOf } from '@deepseek-ai/dsh-util-workspace-path'
6
+ /** Group key for Sessions outside every Workspace. */
7
+ export const UNGROUPED_KEY = ''
8
+
9
+ +/**
10
+ + * Group-chat rooms own a Workspace only to keep their Session selectable. Those
11
+ + * Workspaces live under the rooms directory (`<dsh-home>/group-chat/rooms/<room>`)
12
+ + * and the room already has an entry in the group-chat section, so the Workspace
13
+ + * browser must not repeat it as a folder.
14
+ + */
15
+ +const GROUP_ROOM_PATH_MARKER = '/group-chat/rooms/'
16
+ +const isGroupRoomWorkspace = (path: string | undefined): boolean =>
17
+ + typeof path === 'string' && path.includes(GROUP_ROOM_PATH_MARKER)
18
+ +
19
+ /**
20
+ * Resolve the Workspace browser group that owns one Session.
21
+ * @param workspaces - authoritative Workspace membership.
22
+ @@ -341,6 +351,9 @@ function groupByWorkspace(
23
+ if (!sessionVisible(summary, current, archived, archivedFilter)) continue
24
+ members.push(summary)
25
+ }
26
+ + // A room Workspace still owns its Session (accounted above), but that Session belongs to
27
+ + // the group-chat section rather than this browser's folder list.
28
+ + if (isGroupRoomWorkspace(workspace.path)) continue
29
+ // The archived-only view lists archives, not the Workspace inventory, so
30
+ // a Workspace without archived Sessions contributes no group.
31
+ if (archivedFilter === 'only' && members.length === 0) continue
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 DeepSeek
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.