- Главная
- Плагины
- Сеансы и сообщения
- dsh-chat
dsh-chat
baixianger/dsh-chat
Group chat rooms for DSH sessions with explicit @mentions, cold-session wake-up delivery, and optional cross-host transport through dsh-weave.
Установка
dsh plugin --profile web add github:baixianger/dsh-chatREADME
DSH Chat
Web group chat for local DSH sessions and trusted remote nodes.
DSH Chat is the user-facing layer of the DSH family. It owns group rooms, members, the message timeline, and room sessions in the DSH Web client. It does not own local delivery or network transport.
| Package | Role |
|---|---|
dsh-bridge | Local session events and same-process delivery |
dsh-weave | Trusted cross-machine transport over Iroh |
dsh-chat | The human conversation and task-control surface |
Status
0.1.0-rc.27 represents every room as a dedicated DSH session inside a
Chatrooms workspace. Opening that session uses the native Chat view: a
conversation node renders the authoritative room timeline and a
selector-routed composer sends room messages. The room timeline uses member
avatars and keeps membership and Weave configuration in a dedicated settings
drawer. Local members are selected from the host's live session catalog rather
than entered as raw ids. Reachable paired Weave hosts contribute their own
workspace-grouped session catalogs, labeled by host name; archived sessions
are excluded. Iroh identity and pairing remain owned by dsh-weave's Settings
page. Its composer follows the native session input layout. There is no
separate Group Chat view tab. Existing rooms are assigned room sessions on
startup. When Weave is installed, the same room service can also deliver to
its explicit remote members. The Host → Workspace → Session picker follows
the same token-based field, select, focus, and disabled-state contract as DSH
Settings without depending on Settings' private CSS-module class names.
dsh plugin --profile web add dsh-chat@next
Product principles
- A local chat and a remote handoff look like one continuous conversation.
- A room has one authoritative host. Remote nodes store a room link (host id, capability, and cursor), not an endpoint ticket, second room, or message-history replica.
- Public messages without
@belong only to the room view;@session-iddirects delivery and@allis the explicit agent broadcast. - Without Weave, a room can contain local sessions only. When Weave is installed, the same room can include explicitly approved remote nodes.
- Every remote action exposes its target node, requested capability, and approval state.
- Network loss is visible; no hidden retries that make work appear completed.
- Credentials and private workspace files stay with their owning DSH node.
Agent commands
Agents receive chat_create, chat_join, chat_invite, and chat_send. This
makes plain requests such as “create group chat release” or “join group chat
release” actionable without asking the operator for a session id. A send with
no mentions is a room-only public event. The UI displays and inserts a session's
human-readable alias, while a deliberate selection records its stable id in the
separate mentions field. Plain text—including at, email addresses, or a
literal @alias—never wakes an agent by itself. mentions: ["all"] remains the
only agent broadcast.
An explicitly mentioned live agent is woken through Bridge. Its injected
message explains that an ordinary assistant response remains private to that
session and that replying to the room requires chat_send; the hint includes
the room name and sender alias so an agent can answer without handling ids.
Agent senders receive a structured reply mention. Human senders instead receive
a room-only reply with no mentions, so the response is visible without waking
another agent.
Same-host membership is immediate. Cross-host membership requires an explicit trusted peer and creates a capability-bearing room link, rather than copying room state from a text message. A remote room view cursor-long-polls its host; the host retains an unacknowledged targeted delivery for seven days and retries it without turning normal public room traffic into agent follow-ups.
The room session stores only a durable chat/room-link marker and a closed,
step-free initialization turn so DSH treats it as a visible session. Room
messages remain in the authoritative room store; linked machines keep the
host id, room capability, cursor, and a bounded read-only timeline cache rather
than copying room messages into their DSH session logs. The cache lets linked
hosts retain visible history across page and process restarts while the room
owner remains authoritative.
Roadmap
- Native Chat room sessions with a composer takeover
- Node and task handoff timeline
- Remote approval and result cards
- Session export, replay, and audit view
Development
npm run check
License
MIT © Xiang Bai
Похожие плагины
dsh-turn-rewind
anionex/dsh-turn-rewind
dsh-chat-import
nwflower/dsh-chat-import
dsh-suite (plugin-session-export)
whyihaveyou/dsh-suite
dsh-interconnect
chinesezjc/dsh-interconnect