@sparkelf/dsh-plus 0.2.9-alpha.65 → 0.2.9-alpha.66

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sparkelf/dsh-plus",
3
3
  "description": "DeepSeek Harness Plus official-base Web distribution profile and ranged compatibility patchset",
4
- "version": "0.2.9-alpha.65",
4
+ "version": "0.2.9-alpha.66",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -112,7 +112,7 @@
112
112
  "@sparkelf/dsh-dataops-managed": "0.3.42",
113
113
  "@sparkelf/dsh-sql-workbench": "0.6.0",
114
114
  "@sparkelf/dsh-query-result-analysis": "0.1.4",
115
- "@sparkelf/dsh-knowledge-base": "0.1.32",
115
+ "@sparkelf/dsh-knowledge-base": "0.1.33",
116
116
  "@sparkelf/dsh-credential-manager": "0.1.3",
117
117
  "@sparkelf/dsh-group-chat": "0.5.9",
118
118
  "@sparkelf/dsh-kb-citation": "0.1.3",
@@ -1,5 +1,5 @@
1
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
2
+ index 054c584..4c2bf0d 100644
3
3
  --- a/packages/client/ui-workspace/src/client/tree.ts
4
4
  +++ b/packages/client/ui-workspace/src/client/tree.ts
5
5
  @@ -17,6 +17,17 @@ import { workspaceTitleOf } from '@deepseek-ai/dsh-util-workspace-path'
@@ -7,20 +7,26 @@ index 054c584..1df953b 100644
7
7
  export const UNGROUPED_KEY = ''
8
8
 
9
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.
10
+ + * Group-chat rooms own a Workspace and a Session only so the room stays selectable. Those rows
11
+ + * belong to the group-chat section: the Workspace browser must not list them as folders or as
12
+ + * sessions under any folder. Rooms are recognized by their directory and by the title prefix
13
+ + * the plugin gives both the Workspace and the Session.
14
14
  + */
15
15
  +const GROUP_ROOM_PATH_MARKER = '/group-chat/rooms/'
16
- +const isGroupRoomWorkspace = (path: string | undefined, title: string | undefined): boolean =>
17
- + (typeof path === 'string' && path.includes(GROUP_ROOM_PATH_MARKER))
18
- + || (typeof title === 'string' && title.startsWith('群聊·'))
16
+ +const GROUP_ROOM_SESSION_PREFIX = '群聊·'
17
+ +const isGroupRoomWorkspace = (path: string | undefined, title: string): boolean =>
18
+ + (typeof path === 'string' && path.includes(GROUP_ROOM_PATH_MARKER)) || title.startsWith(GROUP_ROOM_SESSION_PREFIX)
19
19
  +
20
20
  /**
21
21
  * Resolve the Workspace browser group that owns one Session.
22
22
  * @param workspaces - authoritative Workspace membership.
23
- @@ -341,6 +352,9 @@ function groupByWorkspace(
23
+ @@ -338,9 +349,15 @@ function groupByWorkspace(
24
+ const summary = list.byId[id]
25
+ if (summary === undefined) continue // account may lead the list pull; the row appears when the summary lands
26
+ accounted.add(id)
27
+ + // A room Session stays accounted (so it never falls into Ungrouped) but is never a row of
28
+ + // a Workspace group; the bottom group-chat section is its only listing.
29
+ + if (sessionTitle(summary).startsWith(GROUP_ROOM_SESSION_PREFIX)) continue
24
30
  if (!sessionVisible(summary, current, archived, archivedFilter)) continue
25
31
  members.push(summary)
26
32
  }