@thready-web/dsh-bot-plugin 0.0.0-stage → 0.1.0-beta.1

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Thready
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,46 @@
1
- # Temporary Holding Version
1
+ # @thready-web/dsh-bot-plugin
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Cordis plugin for the DSH bot. `@thready-web/dsh-bot` is the launcher that starts DSH with this plugin already inserted. Install this package into a profile only when you are assembling DSH yourself.
4
+
5
+ | Entry | Role |
6
+ | --- | --- |
7
+ | `@thready-web/dsh-bot-plugin` | Persona, memory, skills, work, and inbox |
8
+ | `@thready-web/dsh-bot-plugin/http` | `/dsh-bot/api/*` (same routes as `/session-foundations/api/*`) and the workbench at `/dsh-bot/` |
9
+ | `@thready-web/dsh-bot-plugin/router` | Hash routing for the official web client |
10
+ | `@thready-web/dsh-bot-plugin/cli` | Admin commands. The `dsh-bot` binary calls this. |
11
+
12
+ Prompts, tool descriptions, and API messages are English. A stored persona may still start with a legacy CJK name label. New persona text uses `Name:`, `Style:`, and `Task:`. The workbench defaults to English. The language control switches the whole UI through the message catalog in `ui/src/i18n.ts`.
13
+
14
+ ```bash
15
+ npm install
16
+ npm test
17
+ npm run build
18
+ npm --prefix ui install
19
+ npm --prefix ui run build
20
+ ```
21
+
22
+ DSH itself is not in this package. Running a host needs `@deepseek-ai/dsh@0.2.2-rc.1` and Node.js `>= 24.9`. Plugin unit tests run on Node `>= 22.18`.
23
+
24
+ In `cordis.patch.yml` every new entry must be wrapped in `- insert:`:
25
+
26
+ ```yaml
27
+ - insert:
28
+ - id: ui-router
29
+ name: "@thready-web/dsh-bot-plugin/router"
30
+ - insert:
31
+ - id: session-foundations
32
+ name: "@thready-web/dsh-bot-plugin"
33
+ - insert:
34
+ - id: session-foundations-http
35
+ name: "@thready-web/dsh-bot-plugin/http"
36
+ ```
37
+
38
+ Start the host with `dsh --profile <name> --host 127.0.0.1 --port <port> --no-open` after the patch lists these entries. The official client is `/`. The workbench is `/dsh-bot/`. From the `dsh-plugins` repository, `npx dsh-bot` writes that patch and starts the process.
39
+
40
+ DSH loads `dist/`. Rebuild after changing `src/`. Until `npm --prefix ui run build` has run, `/dsh-bot/` is 404.
41
+
42
+ Host integration needs Node `>= 24.9` and `DSH_BIN`:
43
+
44
+ ```bash
45
+ npm run test:host
46
+ ```