dsh-pisces 0.1.0 → 0.1.2
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 +12 -0
- package/client.js +52 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,3 +30,15 @@
|
|
|
30
30
|
- 插件不上传、不收集统计,也没有遥测。
|
|
31
31
|
- 只有你主动触发的联网动作才会出网:B 站公开接口(看热门、说一句)、自学搜索(需要 key)、夜间模型(本地或你自己配的)。
|
|
32
32
|
- 发布版不含开发者钥匙,也没有 `/devkey` 接口;本机路径、Cookie、私聊都不会进发布包。
|
|
33
|
+
|
|
34
|
+
## 鸣谢
|
|
35
|
+
|
|
36
|
+
这些是**思路借鉴**,不是代码依赖;每个项目的代码各自独立,本仓库没有复制它们的实现。
|
|
37
|
+
|
|
38
|
+
- **dsh-fish(@ssamurias/dsh-fish)** —— 设置页的页签组织、工具面收窄、look/speak 的产品思路;本项目的面板形态是从它长出来的。
|
|
39
|
+
- **DeepSeek Harness** —— 宿主、插件体系、slots / systemPrompt / tools 这些接口;没有它就没有这个插件。
|
|
40
|
+
- **dsh-whale-memory / dsh-memory-brain / dsh-slow-wave / dsh-school** —— 作者的前作;记忆分层、慢波、学校式训练的思路延续到这里。
|
|
41
|
+
- **双鱼座性格的公开资料**(经 Exa 检索整理)—— 派希丝"温和、先退一步、心里两条线"的起点。
|
|
42
|
+
- **所有养过鱼的人** —— 这条鱼最初的样子来自社区里那些"把 AI 当室友养"的尝试。
|
|
43
|
+
|
|
44
|
+
如果你觉得某个想法该被写在这里,发反馈告诉我们(反馈页有加群方式)。
|
package/client.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// 设置页(settings.section
|
|
1
|
+
// 设置页(settings.section):六个页签的只读面板。
|
|
2
2
|
//
|
|
3
3
|
// 形态照 dsh-fish / 知识库 n22:纯客户端 bundle,只 require('react'),不打包、不 JSX。
|
|
4
4
|
// 注册走宿主现行 API(参考文档 §1.3、app.asar 里的 ui-settings 同形):
|
|
@@ -27,6 +27,7 @@ window.__ModuleLoader__.load({
|
|
|
27
27
|
{ id: 'mind', label: '心理活动' },
|
|
28
28
|
{ id: 'principle', label: '原理' },
|
|
29
29
|
{ id: 'feedback', label: '反馈' },
|
|
30
|
+
{ id: 'thanks', label: '鸣谢' },
|
|
30
31
|
]
|
|
31
32
|
|
|
32
33
|
// 观测台 /events 的 type 过滤由服务端做;这里只列"哪些算她说的话"。
|
|
@@ -188,6 +189,9 @@ window.__ModuleLoader__.load({
|
|
|
188
189
|
.dp .qr { display: block; width: 200px; height: auto; margin-top: 8px; padding: 6px; border-radius: 8px; background: #fff; }
|
|
189
190
|
.dp .principle p { margin: 0 0 6px; color: var(--dsw-alias-label-secondary); line-height: 20px; }
|
|
190
191
|
.dp .principle p:last-child { margin-bottom: 0; }
|
|
192
|
+
.dp .thanksLink { color: var(--dsw-alias-state-business-primary, #4a7dff); font-size: 12px; line-height: 18px; text-decoration: none; word-break: break-all; }
|
|
193
|
+
.dp .thanksLink:hover { text-decoration: underline; }
|
|
194
|
+
.dp .thanksFoot { grid-column: 1 / -1; margin: 0; color: var(--dsw-alias-label-tertiary); font-size: 12px; line-height: 18px; }
|
|
191
195
|
`
|
|
192
196
|
|
|
193
197
|
function useStyleOnce() {
|
|
@@ -885,6 +889,51 @@ window.__ModuleLoader__.load({
|
|
|
885
889
|
)
|
|
886
890
|
}
|
|
887
891
|
|
|
892
|
+
// -------------------------------------------------------------------------
|
|
893
|
+
// 页签:鸣谢(列借鉴过的想法与项目;只读)
|
|
894
|
+
// -------------------------------------------------------------------------
|
|
895
|
+
|
|
896
|
+
const THANKS = [
|
|
897
|
+
{
|
|
898
|
+
name: 'dsh-fish(@ssamurias/dsh-fish)',
|
|
899
|
+
what: '设置页的页签组织、工具面收窄、look/speak 的产品思路;本项目的面板形态是从它长出来的。',
|
|
900
|
+
href: 'https://www.npmjs.com/package/@ssamurias/dsh-fish',
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
name: 'DeepSeek Harness',
|
|
904
|
+
what: '宿主、插件体系、slots / systemPrompt / tools 这些接口;没有它就没有这个插件。',
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
name: 'dsh-whale-memory / dsh-memory-brain / dsh-slow-wave / dsh-school',
|
|
908
|
+
what: '作者的前作;记忆分层、慢波、学校式训练的思路延续到这里。',
|
|
909
|
+
href: 'https://github.com/Xiaoclan-hub',
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
name: '双鱼座性格的公开资料',
|
|
913
|
+
what: '(经 Exa 检索整理)派希丝"温和、先退一步、心里两条线"的起点。',
|
|
914
|
+
href: 'https://exa.ai',
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
name: '所有养过鱼的人',
|
|
918
|
+
what: '这条鱼最初的样子来自社区里那些"把 AI 当室友养"的尝试。',
|
|
919
|
+
},
|
|
920
|
+
]
|
|
921
|
+
|
|
922
|
+
function ThanksTab() {
|
|
923
|
+
return h(
|
|
924
|
+
'div',
|
|
925
|
+
{ className: 'page' },
|
|
926
|
+
THANKS.map((t) =>
|
|
927
|
+
h(
|
|
928
|
+
Card,
|
|
929
|
+
{ key: t.name, title: t.name, note: t.what, right: '借鉴', full: true },
|
|
930
|
+
t.href ? h('a', { className: 'thanksLink', href: t.href, target: '_blank', rel: 'noreferrer' }, t.href) : null,
|
|
931
|
+
),
|
|
932
|
+
),
|
|
933
|
+
h('p', { className: 'thanksFoot' }, '如果你觉得某个想法该被写在这里,发反馈告诉我们。(反馈页有加群方式)'),
|
|
934
|
+
)
|
|
935
|
+
}
|
|
936
|
+
|
|
888
937
|
// -------------------------------------------------------------------------
|
|
889
938
|
// 面板外壳
|
|
890
939
|
// -------------------------------------------------------------------------
|
|
@@ -978,6 +1027,7 @@ window.__ModuleLoader__.load({
|
|
|
978
1027
|
else if (tab === 'principle') body = h(PrincipleTab)
|
|
979
1028
|
else if (tab === 'feedback')
|
|
980
1029
|
body = h(FeedbackTab, { value: feedback, note: feedbackNote, onChange: setFeedback, onSave: saveFeedback })
|
|
1030
|
+
else if (tab === 'thanks') body = h(ThanksTab)
|
|
981
1031
|
else body = h(StatusTab, { snap, loading, seed, onChanged: load })
|
|
982
1032
|
|
|
983
1033
|
return h(
|
|
@@ -1032,6 +1082,6 @@ window.__ModuleLoader__.load({
|
|
|
1032
1082
|
else mount()
|
|
1033
1083
|
}
|
|
1034
1084
|
|
|
1035
|
-
return { name: 'dsh-pisces-settings', inject, apply, Panel, StatusTab, SettingsTab, FeedbackTab, TABS }
|
|
1085
|
+
return { name: 'dsh-pisces-settings', inject, apply, Panel, StatusTab, SettingsTab, FeedbackTab, ThanksTab, TABS, THANKS }
|
|
1036
1086
|
},
|
|
1037
1087
|
})
|