@sparkelf/dsh-plus 0.2.9-alpha.65 → 0.2.9-alpha.67
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/LICENSE +21 -0
- package/package.json +506 -487
- package/patches/visibility-filters.patch +646 -0
- package/patches/workspace-hide-group-rooms.patch +15 -9
|
@@ -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..
|
|
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
|
|
11
|
-
+ *
|
|
12
|
-
+ *
|
|
13
|
-
+ *
|
|
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
|
|
17
|
-
+
|
|
18
|
-
+
|
|
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
|
-
@@ -
|
|
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
|
}
|