@dsh-brain-core/plugin-console-chat 1.0.0-rc.1 → 1.0.1-rc.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/README.md +24 -0
- package/package.json +15 -3
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# @dsh-brain-core/plugin-console-chat
|
|
2
|
+
|
|
3
|
+
墨潮控制台聊天通道插件(ID `console-chat`,kind `channel`),提供「与她对话」页面、入站消息、
|
|
4
|
+
身份关联、记忆写入、会话唤醒与 `send_message` 工具。当前预览版 `1.0.1-rc.1`。
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
brain plugin install @dsh-brain-core/plugin-console-chat@next --yes
|
|
8
|
+
brain plugin enable console-chat
|
|
9
|
+
brain console
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
需要已安装 `@dsh-brain-core/kernel@next`。也可在控制台「印谱」中安装同名 npm 包,
|
|
13
|
+
确认权限后启用。默认通道为 `console-chat:private:owner`,无需插件配置或外部聊天服务;
|
|
14
|
+
也支持 `console-chat:group:<id>`。
|
|
15
|
+
|
|
16
|
+
权限包括 `channel.provide`、`channel.send`、`agent.session`、`memory.ingest`、`identity.link`、`tools.register`。
|
|
17
|
+
消息记录为 `console-chat.message`,来源信任为 `owner`,默认可见性为 `subject`。
|
|
18
|
+
页面历史列表保存在插件运行期间的内存中;记忆通过内核管理。
|
|
19
|
+
插件还注册 `/messages`(GET / POST)和 `/ui`(GET),由宿主挂载在 `/api/v1/plugins/console-chat/` 下。
|
|
20
|
+
|
|
21
|
+
[开发者指南](https://github.com/y083245/dsh-brain-core-sdk/blob/main/packages/sdk/guides/README.md) ·
|
|
22
|
+
[权限指南](https://github.com/y083245/dsh-brain-core-sdk/blob/main/packages/sdk/guides/permissions.md)
|
|
23
|
+
|
|
24
|
+
许可协议:PolyForm Noncommercial License 1.0.0,商业用途需另行授权。
|
package/package.json
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-brain-core/plugin-console-chat",
|
|
3
|
-
"
|
|
3
|
+
"description": "Brain Core console chat channel with identity linking, message ingestion and agent wakeups.",
|
|
4
|
+
"keywords": [
|
|
5
|
+
"brain-core",
|
|
6
|
+
"dsh-brain-core",
|
|
7
|
+
"plugin",
|
|
8
|
+
"channel",
|
|
9
|
+
"chat"
|
|
10
|
+
],
|
|
11
|
+
"version": "1.0.1-rc.1",
|
|
4
12
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
5
13
|
"type": "module",
|
|
6
14
|
"main": "./src/index.js",
|
|
@@ -44,8 +52,8 @@
|
|
|
44
52
|
]
|
|
45
53
|
},
|
|
46
54
|
"dependencies": {
|
|
47
|
-
"@dsh-brain-core/chat-kit": "1.0.
|
|
48
|
-
"@dsh-brain-core/sdk": "1.0.
|
|
55
|
+
"@dsh-brain-core/chat-kit": "1.0.1-rc.1",
|
|
56
|
+
"@dsh-brain-core/sdk": "1.0.1-rc.1"
|
|
49
57
|
},
|
|
50
58
|
"engines": {
|
|
51
59
|
"node": ">=24.12.0"
|
|
@@ -54,6 +62,10 @@
|
|
|
54
62
|
"access": "public",
|
|
55
63
|
"registry": "https://registry.npmjs.org/"
|
|
56
64
|
},
|
|
65
|
+
"homepage": "https://github.com/y083245/dsh-brain-core-sdk#readme",
|
|
66
|
+
"bugs": {
|
|
67
|
+
"url": "https://github.com/y083245/dsh-brain-core-sdk/issues"
|
|
68
|
+
},
|
|
57
69
|
"repository": {
|
|
58
70
|
"type": "git",
|
|
59
71
|
"url": "git+https://github.com/y083245/dsh-brain-core-sdk.git",
|