@bnviking/dsh-bnv-workspace 0.0.0-stage → 0.4.0
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/README.md +85 -2
- package/client.js +1268 -0
- package/cordis.patch.yml +5 -0
- package/icon.svg +6 -0
- package/index.js +155 -0
- package/locale/en.json +6 -0
- package/locale/ru.json +6 -0
- package/package.json +44 -4
- package/safety.js +48 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 BNViking
|
|
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.
|
package/README.md
CHANGED
|
@@ -1,3 +1,86 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Sidebar names and permanent delete
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A local DSH bundle for the workspace sidebar with two independent parts.
|
|
4
|
+
|
|
5
|
+
## Name display (global)
|
|
6
|
+
|
|
7
|
+
**Settings → BNV WorkSpace** holds the shared look of every chat title and
|
|
8
|
+
every project title. The page states that these settings are common to all
|
|
9
|
+
chats and all projects. It has three tabs — **General**, then **Projects**, then
|
|
10
|
+
**Chats**. The last two store their settings separately, apply instantly, and
|
|
11
|
+
are kept in the browser's `localStorage`:
|
|
12
|
+
|
|
13
|
+
- case: as is / uppercase / lowercase / capitalize
|
|
14
|
+
- font: as in DSH / monospace / serif, or any installed family (Arial, Times New
|
|
15
|
+
Roman, …) picked from the list; the list is filled from the system's local
|
|
16
|
+
fonts when the browser exposes them, with a common-font fallback
|
|
17
|
+
- weight: as is / medium / bold
|
|
18
|
+
- color: as in DSH / accent / muted, or any custom text color picked with the swatch
|
|
19
|
+
- size: 60 % to 130 % in 10 % steps
|
|
20
|
+
- letter spacing: as is / narrow / wide
|
|
21
|
+
|
|
22
|
+
**Reset** (right of a separator, after a confirmation) returns the active tab to
|
|
23
|
+
the DSH default. With no changes the sidebar looks exactly like the shipped one.
|
|
24
|
+
|
|
25
|
+
### General: panel top menu
|
|
26
|
+
|
|
27
|
+
The **General** tab chooses the sidebar's top menu. **Default** keeps the
|
|
28
|
+
shipped row: a wide New session button above the panel sections. **Compact**
|
|
29
|
+
puts New session as a single icon right after the DeepSeek logo and leaves a
|
|
30
|
+
row of the panel section icons in that same top row — icons only, no labels,
|
|
31
|
+
each opening its panel. The built-in panel list and its More menu are hidden in
|
|
32
|
+
compact mode; the collapsed rail keeps the shipped panel icons. Compact is the
|
|
33
|
+
default for a fresh install; the choice is stored in `localStorage`.
|
|
34
|
+
|
|
35
|
+
The compact top row is right-aligned: New session, the panel icons, and a
|
|
36
|
+
Settings icon that replaces the sidebar-foot account launcher and opens the
|
|
37
|
+
Settings panel.
|
|
38
|
+
|
|
39
|
+
The sidebar's built-in **Workspaces** section title is displayed as
|
|
40
|
+
**Projects** (Russian: **Проекты**); the flat-list title is left untouched.
|
|
41
|
+
|
|
42
|
+
All plugin text follows the active DSH language: Russian when DSH runs in
|
|
43
|
+
Russian, English for every other language.
|
|
44
|
+
|
|
45
|
+
### Icons (per row)
|
|
46
|
+
|
|
47
|
+
A chat row's **...** menu and a project header's **...** menu both offer
|
|
48
|
+
**Customize view…** (RU: **Настроить вид…**), which assigns an icon and a text
|
|
49
|
+
color to that exact chat or project:
|
|
50
|
+
pick one of the built-in glyphs, upload an image (downscaled to 64 px and stored
|
|
51
|
+
as a data URL), or remove the icon. The dialog only sets the icon — the label
|
|
52
|
+
styling lives in Settings and is shared (the per-row color overrides it for that
|
|
53
|
+
row only). A chat icon renders in the row's
|
|
54
|
+
leading seat while the row is idle; a project icon replaces the folder glyph of
|
|
55
|
+
that project's header. Icons live in the browser's `localStorage` and disappear
|
|
56
|
+
with a deleted row.
|
|
57
|
+
|
|
58
|
+
## Permanent delete
|
|
59
|
+
|
|
60
|
+
- A chat row's **...** menu offers **Delete permanently…** after the built-in
|
|
61
|
+
actions.
|
|
62
|
+
- A project header's **...** menu offers the same action.
|
|
63
|
+
|
|
64
|
+
Each action asks for confirmation in its own dialog, then erases the
|
|
65
|
+
session-owned directories of the chat and every subagent session below it from
|
|
66
|
+
`<DSH_HOME>/sessions/...`, drops the ids from pin, archive, and project
|
|
67
|
+
accounts, and — for a project — removes its registration from
|
|
68
|
+
`storages/workspace.json`. The project folder on disk is never touched.
|
|
69
|
+
|
|
70
|
+
### Limitations
|
|
71
|
+
|
|
72
|
+
- A chat that is currently open cannot be erased: the Host keeps a writer on
|
|
73
|
+
its log. The action refuses and asks you to switch to another chat first.
|
|
74
|
+
- The plugin has no private Client-to-Host channel, so it uses the
|
|
75
|
+
authenticated `/api` RPC through the built-in `bnv-delete` command. The
|
|
76
|
+
command lifecycle is recorded in the chat that is open when you delete
|
|
77
|
+
something, and that chat must stay open for the action to run.
|
|
78
|
+
- Attachment blobs live in a separate store (`~/.dsh/attachments`) and are not
|
|
79
|
+
swept, and derived search indexes may briefly retain an erased chat until
|
|
80
|
+
their next reconciliation.
|
|
81
|
+
|
|
82
|
+
## Requirements
|
|
83
|
+
|
|
84
|
+
DSH with the JSONL session persistence backend and the workspace registry
|
|
85
|
+
(`sessions`, `sessionPersistence`, `workspaceRegistry`, `commands`). Without
|
|
86
|
+
them the Host half stays inactive.
|