@soffits/dsh-matrix-bot 0.0.0-stage → 0.2.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/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +129 -2
- package/bin/dsh-matrix.js +132 -0
- package/cordis.patch.yml +9 -0
- package/icon.svg +6 -0
- package/index.js +4 -0
- package/locale/en.json +6 -0
- package/package.json +68 -4
- package/src/app.js +446 -0
- package/src/commands.js +459 -0
- package/src/config.js +67 -0
- package/src/constants.js +70 -0
- package/src/controls.js +214 -0
- package/src/events.js +251 -0
- package/src/helpers.js +179 -0
- package/src/inbound.js +150 -0
- package/src/matrix.js +507 -0
- package/src/models.js +191 -0
- package/src/operations.js +150 -0
- package/src/outbound.js +141 -0
- package/src/prompts.js +244 -0
- package/src/reactions.js +127 -0
- package/src/sender.js +165 -0
- package/src/sessions.js +390 -0
- package/src/spaces.js +278 -0
- package/src/spool.js +172 -0
- package/src/state.js +203 -0
- package/src/text.js +125 -0
- package/src/titles.js +174 -0
- package/src/turns.js +331 -0
- package/src/voice.js +126 -0
- package/tools.js +60 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
## 0.2.0
|
|
6
|
+
|
|
7
|
+
- Prompts carry metadata only: the sender on `source.principal` (the room is now `chat: { id, name }`, was `room`), and the send time and the replied-to message on `source.envelope` (`sentAt`, `replyTo`), the shape [dsh-message-context](https://github.com/soffits/dsh-message-context) reads. The bot no longer adds its own `matrix-sender` notice or reply text; install dsh-message-context to show the model who wrote each message.
|
|
8
|
+
|
|
9
|
+
## 0.1.0
|
|
10
|
+
|
|
11
|
+
First release: a Matrix bot for DSH with end-to-end encryption (cross-signing, recovery key, key backup), a private Space per allowed person with one room per session, rooms joined from the Space or made with `!new`, streamed answers, typing notices and working reactions, files and voice messages, tool approvals and agent questions answered with reactions, Telegram-style commands published for bot command completion, `Matrix-<person>-<task>` session titles, the `matrixRooms` send service, the `matrix_send` tool and the `dsh-matrix` command.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Sakina
|
|
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,130 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dsh-matrix-bot
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Talk to your [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) sessions over [Matrix](https://matrix.org). The plugin logs in as its own Matrix account and gives every allowed person a private Space: each room in it is one DSH session, so a new room is a new conversation. Answers stream into the room as they are written, files and voice messages go both ways, and tool approvals and agent questions are answered right there. End-to-end encryption is on: the bot sets up its own cross-signing, secret storage and key backup the first time it starts.
|
|
4
|
+
|
|
5
|
+
It is made with [Element X](https://element.io/app) in mind and works in any Matrix client.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Use the DSH Plugins page, or install from a shell:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
dsh plugin --profile web add @soffits/dsh-matrix-bot
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
You need Node.js 24 or newer. Encryption uses `@matrix-org/matrix-sdk-crypto-nodejs`, which downloads its prebuilt native library in an install script. pnpm 10 and newer skip such scripts until you approve them, so in the profile directory run:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
pnpm approve-builds @matrix-org/matrix-sdk-crypto-nodejs
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
The bundle adds two plugin rows: `matrix-bot` (the bot) and `matrix-bot-tools` (which gives agents the `matrix_send` tool).
|
|
22
|
+
|
|
23
|
+
## Setup
|
|
24
|
+
|
|
25
|
+
Make a Matrix account for the bot on any homeserver, put its password in a file only you can read, and fill in the settings:
|
|
26
|
+
|
|
27
|
+
```yaml
|
|
28
|
+
- id: matrix-bot
|
|
29
|
+
config:
|
|
30
|
+
homeserver: https://matrix.example.org
|
|
31
|
+
userId: '@mybot:example.org'
|
|
32
|
+
passwordFile: /home/me/secrets/matrix-bot-password # mode 0600
|
|
33
|
+
displayName: My Assistant
|
|
34
|
+
allowedUsers:
|
|
35
|
+
- userId: '@alex:example.org'
|
|
36
|
+
name: Alex
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
The password is read only to log in. Servers that use Matrix Authentication Service accept this through their password login compatibility, so it works there too.
|
|
40
|
+
|
|
41
|
+
On the first start the bot logs in, creates its cross-signing keys, a recovery key and a server-side key backup. The recovery key is written to `recoveryKeyFile` (by default `$DSH_HOME/matrix/recovery-key`, mode 0600) and nowhere else: move it to your password manager or secret store and point `recoveryKeyFile` at where it lives. A later new device of the bot (after its data is lost) reads it from there to verify itself; without it, the bot runs unverified and says so in `!status`.
|
|
42
|
+
|
|
43
|
+
## Talking to it
|
|
44
|
+
|
|
45
|
+
Invite the bot to a direct chat. It makes you a private Space (named after the bot, or `spaceName`), makes you an admin there, adds the chat to it as your first room and pins a short help message. Accept the Space invite, and from then on:
|
|
46
|
+
|
|
47
|
+
- Every room in your Space is its own session. Create a room inside the Space in your client, or send `!new <name>` and the bot makes one and invites you.
|
|
48
|
+
- If you made a Space yourself, invite the bot to it and it adopts it instead, as long as it may add rooms there (it tells you which power level it needs if not).
|
|
49
|
+
- Each person gets their own Space; one person's rooms never answer another.
|
|
50
|
+
|
|
51
|
+
Only people in `allowedUsers` get replies; everyone else is ignored, and their invites are turned down. `dsh-matrix status` lists who was ignored, and `dsh-matrix allow '@alex:example.org' --name Alex` adds someone through DSH's configuration editor.
|
|
52
|
+
|
|
53
|
+
While a turn runs, the bot shows it is typing, and your message gets ⏳ (or 👀 when it went into the running turn). The answer appears as one message that grows as it is written. Turns started elsewhere, such as the Web UI or a scheduled task, are shown in the room too unless `mirrorTurns` is off.
|
|
54
|
+
|
|
55
|
+
When the agent needs approval for a tool, the bot asks in the room with 👍 and 👎 already added: tap one. Questions list numbered options with number reactions to tap, or you can reply with a number or your own answer.
|
|
56
|
+
|
|
57
|
+
### Commands
|
|
58
|
+
|
|
59
|
+
Commands start with `!`, which works in every Matrix client. `/` works too in clients that send unknown slash commands as text (Element X on iPhone does; Element Web asks first). The bot also publishes its commands in each room for clients that offer bot command completion (MSC4332 and MSC4391).
|
|
60
|
+
|
|
61
|
+
| Command | What it does |
|
|
62
|
+
|---|---|
|
|
63
|
+
| `!help` | List commands |
|
|
64
|
+
| `!new [name]` | Open a new room with a new session |
|
|
65
|
+
| `!reset` | Start a new session in this room |
|
|
66
|
+
| `!stop` | Stop the running turn |
|
|
67
|
+
| `!clear` | Drop messages still waiting for the session |
|
|
68
|
+
| `!status` | Bot and session status |
|
|
69
|
+
| `!current` | Show this room's session |
|
|
70
|
+
| `!last [1-5]` | Show the latest answers |
|
|
71
|
+
| `!agents` | List this session's helpers and their last reports |
|
|
72
|
+
| `!sessions` | Browse workspaces and sessions, continue one here |
|
|
73
|
+
| `!workspace <n>` | Start a new session in another workspace |
|
|
74
|
+
| `!fork [name]` | Fork this session into a new room |
|
|
75
|
+
| `!rename <name>` | Rename this room's session |
|
|
76
|
+
| `!goal` | Set, edit, pause, resume or clear the goal |
|
|
77
|
+
| `!menu`, `!model`, `!effort`, `!mode`, `!context` | Model, reasoning effort, access mode and context use |
|
|
78
|
+
| `!allow`, `!deny` | Answer the waiting tool request |
|
|
79
|
+
| `!id`, `!ping`, `!restart` | Ids, a check, and reconnecting |
|
|
80
|
+
|
|
81
|
+
Lists such as `!model` are numbered; the same command with the numbers picks one (`!model 2 5`).
|
|
82
|
+
|
|
83
|
+
## Sending from scripts, agents and other plugins
|
|
84
|
+
|
|
85
|
+
```sh
|
|
86
|
+
dsh-matrix send --room '!abc:example.org' 'The backup finished.'
|
|
87
|
+
dsh-matrix send --room '!abc:example.org' --file /tmp/report.pdf --job nightly
|
|
88
|
+
dsh-matrix rooms
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Agents get the `matrix_send` tool. Other plugins can use the `matrixRooms` service: `send({ to, text, files, from, replyTo, reaction })`. Sends are recorded in the session bound to the room, without starting a turn. A session cannot send text into its own room while that room receives its turn's answer, since it would arrive twice.
|
|
92
|
+
|
|
93
|
+
## Configuration
|
|
94
|
+
|
|
95
|
+
| Setting | Default | Meaning |
|
|
96
|
+
|---|---|---|
|
|
97
|
+
| `enabled` | `true` | Run the bot with this profile |
|
|
98
|
+
| `homeserver`, `userId`, `passwordFile` | | The bot's account |
|
|
99
|
+
| `recoveryKeyFile` | `$DSH_HOME/matrix/recovery-key` | Where the recovery key is written, and read on a new device |
|
|
100
|
+
| `deviceName` | `DSH` | Name of the bot's device |
|
|
101
|
+
| `displayName`, `avatar` | | The bot's name and picture; empty keeps them |
|
|
102
|
+
| `spaceName` | the display name | Name of new Spaces |
|
|
103
|
+
| `allowedUsers` | `[]` | `{ userId, name }` of the people who may talk to it |
|
|
104
|
+
| `cwd`, `agentPreset` | | Directory and preset of new sessions |
|
|
105
|
+
| `mirrorTurns` | `true` | Show turns started elsewhere in their room |
|
|
106
|
+
| `busyMessages` | `steer` | `steer` sends messages into a running turn; `queue` waits for it to end |
|
|
107
|
+
| `streaming` | `true` | Show answers while they are written |
|
|
108
|
+
| `transcriber`, `transcribeLanguage`, `transcribeCommand`, `ffmpegPath` | `dsh` | How voice messages become text |
|
|
109
|
+
|
|
110
|
+
## Where files live
|
|
111
|
+
|
|
112
|
+
Everything is under `$DSH_HOME/matrix`, whose directories are 0700 so only the user DSH runs as can read them (the bot's own files are 0600 as well): `account/` holds the login (`session.json`), the sync position and the crypto store; `state.json` maps rooms to sessions and remembers each person's Space; `media/` keeps received files; `spool/` carries requests from `dsh-matrix`; `status.json` is the last state. Keep this directory with the DSH home: the crypto store is the bot's identity in encrypted rooms.
|
|
113
|
+
|
|
114
|
+
## Removal
|
|
115
|
+
|
|
116
|
+
Remove the plugin from the Plugins page. The bot's device stays signed in on the server until you sign it out in your account's device list (or the homeserver's account page). Delete `$DSH_HOME/matrix` to forget the login and keys.
|
|
117
|
+
|
|
118
|
+
## Development
|
|
119
|
+
|
|
120
|
+
```sh
|
|
121
|
+
npm test # unit and bridge tests on a fake Matrix connection
|
|
122
|
+
npm run check # syntax check
|
|
123
|
+
npm run e2e # the real bot against a throwaway local homeserver (Tuwunel)
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
`npm run e2e` downloads a pinned Tuwunel release into `.e2e/` unless `TUWUNEL` names a server binary.
|
|
127
|
+
|
|
128
|
+
## License
|
|
129
|
+
|
|
130
|
+
MIT
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Talk to the running DSH Matrix bot from a shell: send messages, list
|
|
4
|
+
* rooms, allow a person, show its status.
|
|
5
|
+
*
|
|
6
|
+
* Requests go through the plugin's file spool under $DSH_HOME/matrix, so
|
|
7
|
+
* no network access to DSH is needed, and a send waits there while DSH is
|
|
8
|
+
* not running.
|
|
9
|
+
*/
|
|
10
|
+
import { readFileSync } from 'node:fs'
|
|
11
|
+
import { join, resolve } from 'node:path'
|
|
12
|
+
import { parseArgs } from 'node:util'
|
|
13
|
+
import { dataDir } from '../src/constants.js'
|
|
14
|
+
import { enqueue, waitForResult, withdraw } from '../src/spool.js'
|
|
15
|
+
|
|
16
|
+
const usage = `Usage: dsh-matrix <command> [options]
|
|
17
|
+
|
|
18
|
+
Commands:
|
|
19
|
+
send --room <id> [--file <path>]... [--reply-to <event>] [--job <name>] [text...]
|
|
20
|
+
Send text (from the arguments, or stdin when none are given) and files
|
|
21
|
+
into a room. The message is also recorded in the room's session.
|
|
22
|
+
react --room <id> --reply-to <event> <emoji>
|
|
23
|
+
React to a message.
|
|
24
|
+
allow <user-id> [--name <label>]
|
|
25
|
+
Add a Matrix user id to allowedUsers (writes the profile's configuration).
|
|
26
|
+
rooms
|
|
27
|
+
List the rooms of allowed people and their sessions.
|
|
28
|
+
status
|
|
29
|
+
Show the bot's state, encryption, Spaces and the senders it ignored.
|
|
30
|
+
|
|
31
|
+
Options:
|
|
32
|
+
--timeout <seconds> how long to wait for the bot (default 30)
|
|
33
|
+
--no-wait queue a send and return at once
|
|
34
|
+
|
|
35
|
+
Exit codes: 0 done, 1 failed, 2 bad arguments, 3 the bot did not answer in time.`
|
|
36
|
+
|
|
37
|
+
function fail(message, code = 2) {
|
|
38
|
+
process.stderr.write(`${message}\n`)
|
|
39
|
+
process.exit(code)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
let parsed
|
|
43
|
+
try {
|
|
44
|
+
parsed = parseArgs({
|
|
45
|
+
allowPositionals: true,
|
|
46
|
+
options: {
|
|
47
|
+
room: { type: 'string', short: 'r' },
|
|
48
|
+
file: { type: 'string', short: 'f', multiple: true },
|
|
49
|
+
'reply-to': { type: 'string' },
|
|
50
|
+
job: { type: 'string', short: 'j' },
|
|
51
|
+
'from-session': { type: 'string' },
|
|
52
|
+
name: { type: 'string' },
|
|
53
|
+
timeout: { type: 'string' },
|
|
54
|
+
'no-wait': { type: 'boolean' },
|
|
55
|
+
help: { type: 'boolean', short: 'h' },
|
|
56
|
+
},
|
|
57
|
+
})
|
|
58
|
+
} catch (error) {
|
|
59
|
+
fail(`${error.message}\n\n${usage}`)
|
|
60
|
+
}
|
|
61
|
+
const { values, positionals } = parsed
|
|
62
|
+
const [command, ...rest] = positionals
|
|
63
|
+
if (values.help || command === undefined) {
|
|
64
|
+
process.stdout.write(`${usage}\n`)
|
|
65
|
+
process.exit(values.help ? 0 : 2)
|
|
66
|
+
}
|
|
67
|
+
const timeoutMs = Math.max(1, Number(values.timeout ?? 30)) * 1000
|
|
68
|
+
|
|
69
|
+
function readStdin() {
|
|
70
|
+
try {
|
|
71
|
+
return readFileSync(0, 'utf8')
|
|
72
|
+
} catch {
|
|
73
|
+
return ''
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
let request
|
|
78
|
+
if (command === 'send' || command === 'react') {
|
|
79
|
+
if (values.room === undefined || !values.room.trim().startsWith('!')) fail('--room takes the room id, which starts with ! (!id in the room shows it).')
|
|
80
|
+
const sessionId = values['from-session'] ?? process.env.DSH_SESSION_ID
|
|
81
|
+
const from = {
|
|
82
|
+
...(values.job ? { job: values.job } : {}),
|
|
83
|
+
...(sessionId ? { sessionId } : {}),
|
|
84
|
+
...(!values.job && !sessionId ? { label: 'dsh-matrix' } : {}),
|
|
85
|
+
}
|
|
86
|
+
if (command === 'react') {
|
|
87
|
+
if (values['reply-to'] === undefined || rest.length === 0) fail('react needs --reply-to <event id> and an emoji.')
|
|
88
|
+
request = { op: 'send', to: values.room.trim(), replyTo: values['reply-to'], reaction: rest.join(' '), from }
|
|
89
|
+
} else {
|
|
90
|
+
const text = rest.length > 0 ? rest.join(' ') : (values.file?.length ? '' : readStdin())
|
|
91
|
+
request = {
|
|
92
|
+
op: 'send',
|
|
93
|
+
to: values.room.trim(),
|
|
94
|
+
text,
|
|
95
|
+
files: (values.file ?? []).map((path) => resolve(path)),
|
|
96
|
+
...(values['reply-to'] === undefined ? {} : { replyTo: values['reply-to'] }),
|
|
97
|
+
from,
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
} else if (command === 'rooms' || command === 'status') {
|
|
101
|
+
request = { op: command }
|
|
102
|
+
} else if (command === 'allow') {
|
|
103
|
+
if (rest.length !== 1) fail('allow takes one Matrix user id.')
|
|
104
|
+
request = { op: 'allow', userId: rest[0], name: values.name ?? '' }
|
|
105
|
+
} else {
|
|
106
|
+
fail(`Unknown command ${command}.\n\n${usage}`)
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
const id = await enqueue(request)
|
|
110
|
+
if (values['no-wait'] && request.op === 'send') {
|
|
111
|
+
process.stdout.write(`queued ${id}\n`)
|
|
112
|
+
process.exit(0)
|
|
113
|
+
}
|
|
114
|
+
const result = await waitForResult(id, timeoutMs)
|
|
115
|
+
if (result === undefined) {
|
|
116
|
+
// Only sends keep waiting for the bot; other requests are withdrawn.
|
|
117
|
+
if (request.op !== 'send') await withdraw(id)
|
|
118
|
+
let state = ''
|
|
119
|
+
try {
|
|
120
|
+
const status = JSON.parse(readFileSync(join(dataDir(), 'status.json'), 'utf8'))
|
|
121
|
+
state = ` (last state: ${status.state}${status.detail ? `, ${status.detail}` : ''})`
|
|
122
|
+
} catch {
|
|
123
|
+
// No status yet.
|
|
124
|
+
}
|
|
125
|
+
process.stderr.write(`The Matrix bot did not answer in time${state}.${request.op === 'send' ? ' The message stays queued and goes out when the bot runs.' : ''}\n`)
|
|
126
|
+
process.exit(3)
|
|
127
|
+
}
|
|
128
|
+
if (!result.ok) {
|
|
129
|
+
process.stderr.write(`${result.error}\n`)
|
|
130
|
+
process.exit(1)
|
|
131
|
+
}
|
|
132
|
+
process.stdout.write(`${JSON.stringify(result.result, null, 2)}\n`)
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Bundle layer for @soffits/dsh-matrix-bot. The bot row's id is also its
|
|
2
|
+
# settings namespace. The tools row registers matrix_send for every agent;
|
|
3
|
+
# disable it, or mount `@soffits/dsh-matrix-bot/tools` in one agent preset,
|
|
4
|
+
# to limit who gets it.
|
|
5
|
+
- insert:
|
|
6
|
+
- id: matrix-bot
|
|
7
|
+
name: '@soffits/dsh-matrix-bot'
|
|
8
|
+
- id: matrix-bot-tools
|
|
9
|
+
name: '@soffits/dsh-matrix-bot/tools'
|
package/icon.svg
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64" role="img" aria-label="Matrix bot">
|
|
2
|
+
<rect width="64" height="64" rx="14" fill="#0D1F1A"/>
|
|
3
|
+
<path d="M16 14h-5v36h5" fill="none" stroke="#E8F2EE" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M48 14h5v36h-5" fill="none" stroke="#E8F2EE" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
<path d="M21 42V25m0 4c0-3 2.5-5 5.5-5S32 26 32 29v13m0-13c0-3 2.5-5 5.5-5S43 26 43 29v13" fill="none" stroke="#0DBD8B" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
</svg>
|
package/index.js
ADDED
package/locale/en.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "Matrix Bot",
|
|
4
|
+
"description": "Chat with DSH sessions over Matrix: an end-to-end encrypted bot account, a private Space per person with one room per session, streamed answers, commands, files, voice messages, tool approvals and questions."
|
|
5
|
+
}
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,70 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soffits/dsh-matrix-bot",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Matrix bot for DeepSeek Harness: an end-to-end encrypted Matrix account, a private Space per person with one room per DSH session, streamed answers, commands, files, voice messages, tool approvals and agent questions.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"dsh-matrix": "./bin/dsh-matrix.js"
|
|
9
|
+
},
|
|
10
|
+
"exports": {
|
|
11
|
+
".": "./index.js",
|
|
12
|
+
"./tools": "./tools.js",
|
|
13
|
+
"./locale/*.json": "./locale/*.json",
|
|
14
|
+
"./icon": "./icon.svg",
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"bin",
|
|
19
|
+
"index.js",
|
|
20
|
+
"tools.js",
|
|
21
|
+
"src/*.js",
|
|
22
|
+
"cordis.patch.yml",
|
|
23
|
+
"locale/*.json",
|
|
24
|
+
"icon.svg",
|
|
25
|
+
"README.md",
|
|
26
|
+
"CHANGELOG.md",
|
|
27
|
+
"LICENSE"
|
|
28
|
+
],
|
|
29
|
+
"dsh": {
|
|
30
|
+
"bundle": {
|
|
31
|
+
"patch": "./cordis.patch.yml"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">=24",
|
|
36
|
+
"dsh": ">=0.2.1-rc.2 <0.3.0-0"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"test": "NODE_ENV=test node --import ./test/home.js --test \"test/*.test.js\"",
|
|
40
|
+
"check": "for f in index.js tools.js bin/*.js src/*.js test/*.js scripts/*.js; do node --check \"$f\" || exit 1; done",
|
|
41
|
+
"e2e": "node scripts/e2e.js"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@deepseek-ai/schemastery": "^3.19.0",
|
|
45
|
+
"@matrix-org/matrix-sdk-crypto-nodejs": "0.7.0",
|
|
46
|
+
"@vector-im/matrix-bot-sdk": "0.11.0-element.0",
|
|
47
|
+
"markdown-it": "15.0.3"
|
|
48
|
+
},
|
|
49
|
+
"keywords": [
|
|
50
|
+
"dsh-plugin",
|
|
51
|
+
"deepseek-harness",
|
|
52
|
+
"dsh",
|
|
53
|
+
"matrix",
|
|
54
|
+
"e2ee",
|
|
55
|
+
"bot"
|
|
56
|
+
],
|
|
57
|
+
"author": "Sakina",
|
|
58
|
+
"license": "MIT",
|
|
59
|
+
"repository": {
|
|
60
|
+
"type": "git",
|
|
61
|
+
"url": "git+https://github.com/soffits/dsh-matrix-bot.git"
|
|
62
|
+
},
|
|
63
|
+
"homepage": "https://github.com/soffits/dsh-matrix-bot#readme",
|
|
64
|
+
"bugs": {
|
|
65
|
+
"url": "https://github.com/soffits/dsh-matrix-bot/issues"
|
|
66
|
+
},
|
|
67
|
+
"publishConfig": {
|
|
68
|
+
"access": "public"
|
|
69
|
+
}
|
|
70
|
+
}
|