dsh-agent-soul 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +287 -2
- package/cordis.patch.yml +11 -0
- package/docs/preview.html +319 -0
- package/lib/api.js +540 -0
- package/lib/client.js +1287 -0
- package/lib/env.js +62 -0
- package/lib/extract.js +182 -0
- package/lib/facts.js +43 -0
- package/lib/index.js +251 -0
- package/lib/memory.js +805 -0
- package/lib/mood.js +661 -0
- package/lib/paths.js +167 -0
- package/lib/persona.js +225 -0
- package/lib/purpose.js +310 -0
- package/lib/registry.js +228 -0
- package/lib/store.js +376 -0
- package/lib/tool.js +316 -0
- package/package.json +67 -4
- package/tools/sync.mjs +130 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 danshuyue
|
|
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,288 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dsh-agent-soul
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> 给 DSH 的 agent 一份**会忘事的记忆**和一套**会变的人格**。
|
|
4
|
+
|
|
5
|
+
它做三件事:
|
|
6
|
+
|
|
7
|
+
| | 解决什么 |
|
|
8
|
+
|---|---|
|
|
9
|
+
| **人格** | 用 Markdown 写「你是谁」。项目人格只覆盖同名小节,全局的交待照常生效 —— 不会因为某个目录里有 `AGENT.md`,你在全局写的话就整份失效 |
|
|
10
|
+
| **记忆** | 值得记的事自己进来,随时间变模糊:清晰 → 清楚 → 模糊 → 只剩印象 → 遗忘。忘了不是删掉,是**先变得说不清** |
|
|
11
|
+
| **目的** | 从记忆里长出一份「心里惦记的事」,让她的主动有连续性 —— 不是定时问候,是主动想起 |
|
|
12
|
+
|
|
13
|
+
不管 B站、不管 QQ、不管桌宠。这个插件只关心「她是谁」和「她记得什么」。
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## 从 dsh-agent-md 迁移
|
|
18
|
+
|
|
19
|
+
人格文件的**路径完全一致**,装上就能用,不用搬家:
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
<DSH_HOME>/AGENT.md 全局人格(它已经在这写了)
|
|
23
|
+
<DSH_HOME>/agents/projects/<slug>.md 项目人格(同 slug 规则,同一目录算出同一个 slug)
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
所以你现有的两份人格文件会被直接认领,一个字都不用改。
|
|
27
|
+
|
|
28
|
+
**行为上有一处关键差异**(也是这个插件存在的主要理由):它的人格是互斥的,我的是按小节叠加的 —— 详见下面的[人格注入区别](#人格注入和-dsh-agent-md-的区别)。
|
|
29
|
+
|
|
30
|
+
卸载 `dsh-agent-md` 时注意它 README 里写的两步都要做(`dependencies` 和 `dsh.profile.bundles` 各删一行),否则下次启动会因为「声明了却装不起来」卡住。
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## 日常怎么用
|
|
35
|
+
|
|
36
|
+
装好之后基本**不需要操作**,它自己会跑。想干预时有四个入口:
|
|
37
|
+
|
|
38
|
+
### 1. 什么都不做(大多数时候)
|
|
39
|
+
|
|
40
|
+
- 你说话,值得记的事自动进记忆卡(主人说的偏好、目标、约定、第一次、情绪强的)
|
|
41
|
+
- 每天第一次打开,它会把不重要的事降一格清晰度
|
|
42
|
+
- 她答应过的事、没弄明白的事,自动变成「心里惦记的事」
|
|
43
|
+
|
|
44
|
+
### 2. 设置 → 灵魂(五个标签)
|
|
45
|
+
|
|
46
|
+
| 标签 | 用来干什么 |
|
|
47
|
+
|---|---|
|
|
48
|
+
| **概览** | 一眼看「到底生效没有」:人格来源是哪几个文件、记忆多少条、容量几成、惦记几件事 |
|
|
49
|
+
| **人格** | 直接编辑全局 / 项目人格。存完下一个回合生效 |
|
|
50
|
+
| **记忆** | 搜、看每条的清晰度和重要度、固定(永不遗忘)、删、手动加一条 |
|
|
51
|
+
| **目的** | 四个驱动值的当前读数 + 惦记的事清单,可以「放下了」 |
|
|
52
|
+
| **设置** | 注入预算、叠加还是互斥、各项开关、立即整理一次 |
|
|
53
|
+
|
|
54
|
+
### 3. 直接跟她说话
|
|
55
|
+
|
|
56
|
+
记忆有两个工具,她自己会用,你也可以直接要求:
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
「记住:我下周一开始做蓝桥杯的题」
|
|
60
|
+
「你还记得我之前说过什么关于 STM32 的事吗」
|
|
61
|
+
「把那条关于数学建模的记忆忘掉」
|
|
62
|
+
「你最近在惦记什么」
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
工具是 `soul_memory`(write/recall/forget/pin/list)和 `soul_goal`(add/done/list)。
|
|
66
|
+
|
|
67
|
+
### 4. 直接改文件
|
|
68
|
+
|
|
69
|
+
全是纯文本,用任何编辑器都行:
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
~/.dsh/AGENT.md 全局人格 —— 想改她的性子就改这里
|
|
73
|
+
~/.dsh/agents/memory/global.json 记忆卡 —— 可以手改,改完刷新页面就生效
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## 人格注入:和 dsh-agent-md 的区别
|
|
79
|
+
|
|
80
|
+
**核心差异只有一条:找到项目人格时,全局那份是「消失」还是「补齐」。**
|
|
81
|
+
|
|
82
|
+
| | dsh-agent-md | dsh-agent-soul |
|
|
83
|
+
|---|---|---|
|
|
84
|
+
| 有项目人格时全局怎么办 | **整份不注入**(互斥) | **按小节叠加**:项目覆盖同名小节,全局其余保留 |
|
|
85
|
+
| 你在全局写的通用约定 | 某些工作区完全不遵守,像没读到 | 到处都生效,除非项目里显式覆盖了同名小节 |
|
|
86
|
+
| 想回到老行为 | — | 设置里把模式改成「互斥」 |
|
|
87
|
+
|
|
88
|
+
具体到你的文件。你全局 `AGENT.md` 有 7 个小节:
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
# 你是谁 # 语气与形态 # 与树树的关系 # 行事准则 # 边界 # 互动约定 # 工程约定
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
假设某个项目里只写了:
|
|
95
|
+
|
|
96
|
+
```markdown
|
|
97
|
+
# 工程约定
|
|
98
|
+
这个项目用 Vue 3 + Vite。
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
- **以前**:全局整份消失 → 「你是谁」「语气与形态」「边界」全丢了,那个工作区的她完全变成另一个人
|
|
102
|
+
- **现在**:只有「工程约定」被替换,另外 6 个小节原样继承
|
|
103
|
+
|
|
104
|
+
这正是你问题库 [Q20](../../DSH%20workspace/DSH问题库/F-工具与人格注入.md) 记的那个坑的正面修法。
|
|
105
|
+
|
|
106
|
+
另外两个附带差异:
|
|
107
|
+
|
|
108
|
+
1. **`{{xxx}}` 会被降级成 `{xxx}`**:DSH 把双花括号当模板变量,未注册的名字会让**整轮注入失败**。两个插件都做了兜底。
|
|
109
|
+
2. **注入留痕更细**:概览页直接列出「这次注入了哪几份文件」,不用去翻 `inject-log.jsonl`。
|
|
110
|
+
|
|
111
|
+
## 三层来源与优先级
|
|
112
|
+
|
|
113
|
+
| 层 | 文件 | 怎么改 |
|
|
114
|
+
|---|---|---|
|
|
115
|
+
| 1 | `<cwd>/AGENT.md` | 自己的编辑器(跟着仓库走,可提交进 git) |
|
|
116
|
+
| 2 | `~/.dsh/agents/projects/<slug>.md` | 设置 → 人格 → **项目人格(本机)** |
|
|
117
|
+
| 3 | `~/.dsh/AGENT.md` | 设置 → 人格 → **全局人格** |
|
|
118
|
+
|
|
119
|
+
**项目层只取 1、2 里优先级最高的那一份**(不是两份合并)——两份都写着 `# 你是谁` 时,模型会各听一半,最后谁也不像。
|
|
120
|
+
|
|
121
|
+
设置页的「人格」标签会把这个层级**画出来**:逐层标「存在 / 没有」、给全路径、给正在生效的那层打标,并且顶部写明当前会话的工作目录和项目标识。
|
|
122
|
+
|
|
123
|
+
> ⚠️ **最容易踩的一个坑**:如果 `<cwd>/AGENT.md` 存在,它会盖住设置页编辑的第 2 层。
|
|
124
|
+
> 你在设置页改了、保存了、提示"已保存",但其实**没生效** —— 因为第 1 层压着它。
|
|
125
|
+
> 页面检测到这种情况会亮一个黄框,直接告诉你「要么改那个文件,要么删掉它」。
|
|
126
|
+
>
|
|
127
|
+
> 实测你机器上 `D:\DSH workspace\work\AGENT.md` 就属于这种情况。
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
```
|
|
132
|
+
清晰 ──→ 清楚 ──→ 模糊 ──→ 只剩印象 ──→ 遗忘
|
|
133
|
+
200字 130字 42字+ 只剩标题 移出提示词
|
|
134
|
+
「记不清了」「好像有…」 进 archive.jsonl
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
关键不在阶梯,在**注入时的措辞**:模糊的记忆会写成
|
|
138
|
+
「……(细节记不清了)」,只剩印象的写成「好像有「xx」这件事…(想不起来了)」。
|
|
139
|
+
模型看到的是「我隐约记得」,而不是「查无此事」或者「细节完备但其实已经不可靠」。
|
|
140
|
+
|
|
141
|
+
四条规则:
|
|
142
|
+
|
|
143
|
+
- **一天只降一档**:所以是慢慢模糊,不是某天突然想不起来
|
|
144
|
+
- **重要的事降得慢**:普通记忆每天 -0.35 留存,和主人相关的只有 -0.12
|
|
145
|
+
- **永远不会忘的**:固定的,和「第一次」类的事
|
|
146
|
+
- **提起来会变清楚**:被再次提及就刷新时间、召回 +1,一天回升一档
|
|
147
|
+
|
|
148
|
+
入库前会脱敏(密钥/手机号/身份证/卡号/链接),太短的不记(「嗯」「好的」不占位置)。
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## 目的机制:「主动想起」而不是「主动发消息」
|
|
153
|
+
|
|
154
|
+
四个驱动维度,各有 0~1 的值,**8 小时落一半**:
|
|
155
|
+
|
|
156
|
+
| 维度 | 被什么推高 |
|
|
157
|
+
|---|---|
|
|
158
|
+
| 想弄明白 | 疑问句、看不懂的东西 |
|
|
159
|
+
| 在乎 | 累、难受、熬夜 |
|
|
160
|
+
| 想分享 | 有意思的发现、推荐 |
|
|
161
|
+
| 想搞懂 | 学会了、跑通了、踩坑了 |
|
|
162
|
+
|
|
163
|
+
再加上从记忆里长出来的「没闭合的事」(答应过的、没弄明白的、想试试的),
|
|
164
|
+
渲染成很短的一段注入(默认 ≤ 320 字,最多 3 条)。
|
|
165
|
+
|
|
166
|
+
里面明确写着「**这不是任务清单,不需要每轮都提**」——
|
|
167
|
+
决定权在她手里,这比硬塞一句「去问候主人」更像自主,也不容易变成复读。
|
|
168
|
+
|
|
169
|
+
> 本地 DSH 没有推送渠道(你不打开就没有回合),所以「主动」只能是主动想起。
|
|
170
|
+
> 真正的主动发消息属于 QQ 那边的事,不在这里。
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## 安装
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
# 1) 取代码
|
|
178
|
+
git clone https://github.com/danshuyue/dsh-agent-soul.git "<DSH_HOME>/plugins/dsh-agent-soul"
|
|
179
|
+
|
|
180
|
+
# 2) 挂进 profile(本地 link)
|
|
181
|
+
# <DSH_HOME>/profiles/desktop/package.json:
|
|
182
|
+
# dependencies 加 "dsh-agent-soul": "link:../../plugins/dsh-agent-soul"
|
|
183
|
+
# dsh.profile.bundles 加 "dsh-agent-soul"
|
|
184
|
+
# 3) 建 junction(Windows)
|
|
185
|
+
mklink /J "<DSH_HOME>\profiles\desktop\node_modules\dsh-agent-soul" "<DSH_HOME>\plugins\dsh-agent-soul"
|
|
186
|
+
|
|
187
|
+
# 4) 重启 DSH → 设置 → 灵魂
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
装好之后:设置里出现「灵魂」,侧栏能看到概览、人格、记忆、目的、设置五个标签。
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## 花钱的地方
|
|
195
|
+
|
|
196
|
+
**记忆和目的这两段是每回合重发的**,跟工具 schema 一样不进压缩,是常驻成本。
|
|
197
|
+
|
|
198
|
+
- 默认记忆预算 1600 字,实际约 **1100~1500 token**
|
|
199
|
+
(DSH 按 4 字符/token 粗算,中文真实是它的 1.4~1.9 倍)
|
|
200
|
+
- 目的段默认 ≤ 320 字,约 **300~500 token**
|
|
201
|
+
- 人格正文你写多少就是多少
|
|
202
|
+
|
|
203
|
+
觉得贵:先砍 `injectMaxChars`,再考虑关「目的机制」。
|
|
204
|
+
用工具 schema 省下来的那点钱,别在这两段上花回去。
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
## 配置
|
|
209
|
+
|
|
210
|
+
`<DSH_HOME>/agents/persona.json`:
|
|
211
|
+
|
|
212
|
+
| 键 | 默认 | 说明 |
|
|
213
|
+
|---|---|---|
|
|
214
|
+
| `mode` | `stack` | `stack` 叠加 / `exclusive` 互斥 |
|
|
215
|
+
| `includeGlobal` | `true` | 全局人格是否参与注入 |
|
|
216
|
+
| `projectPersonaEnabled` | `true` | 是否启用项目人格 |
|
|
217
|
+
| `injectMaxChars` | `1600` | 记忆注入预算 |
|
|
218
|
+
| `memoryEnabled` | `true` | 是否注入记忆(关掉仍在后台记) |
|
|
219
|
+
| `projectMemoryEnabled` | `true` | 项目记忆独立一张卡 |
|
|
220
|
+
| `purposeEnabled` | `true` | 是否注入「心里惦记的事」 |
|
|
221
|
+
|
|
222
|
+
记忆引擎参数(衰减天数、阈值、压缩)在 `lib/memory.js` 的 `DEFAULTS`,
|
|
223
|
+
全部有注释说明为什么是这个值。
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
227
|
+
## 数据在哪
|
|
228
|
+
|
|
229
|
+
```
|
|
230
|
+
<DSH_HOME>/AGENT.md 全局人格
|
|
231
|
+
<DSH_HOME>/agents/projects/<slug>.md 项目人格
|
|
232
|
+
<DSH_HOME>/agents/persona.json 配置
|
|
233
|
+
<DSH_HOME>/agents/memory/global.json 全局记忆卡
|
|
234
|
+
<DSH_HOME>/agents/memory/projects/<slug>.json 项目记忆卡
|
|
235
|
+
<DSH_HOME>/agents/memory/purpose.json 目的状态
|
|
236
|
+
<DSH_HOME>/agents/memory/archive.jsonl 遗忘档案(append-only)
|
|
237
|
+
<DSH_HOME>/agents/soul.log 日志(2MB 轮转)
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
全是纯文件,没有数据库。备份就是复制目录,恢复就是复制回来。
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
## 排障
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
grep "\[apply\]" ~/.dsh/agents/soul.log | tail -3 # 三段注入有没有起来
|
|
248
|
+
grep "\[extract\]" ~/.dsh/agents/soul.log | tail -5 # 自动记忆记了几条
|
|
249
|
+
grep "\[memory\]" ~/.dsh/agents/soul.log | tail -5 # 衰减/压缩做了什么
|
|
250
|
+
grep "\[tool\]" ~/.dsh/agents/soul.log | tail -5 # 工具注册成功没
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
**设置页「灵魂」不出现**:① 插件是不是真加载了(看 `[apply] 启动` 那行)
|
|
254
|
+
② 目录名 / `package.json` 的 name / `cordis.patch.yml` 的 name 三处是否完全一致
|
|
255
|
+
③ 重启 DSH —— 浏览器半侧是启动时装配的
|
|
256
|
+
|
|
257
|
+
**人格变了但没生效**:DSH 只在渲染文本**变化时**才重新追加这一段,
|
|
258
|
+
改完在下一个回合生效。设置页「概览」里能看到当前实际注入的是哪几份文件。
|
|
259
|
+
|
|
260
|
+
**记忆一直在掉条数**:`archive.jsonl` 里能查回来。觉得不该忘就
|
|
261
|
+
在设置页把它固定(固定后永不淘汰),或者把 `forgetAfterDays` 调大。
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
## 开发
|
|
266
|
+
|
|
267
|
+
```bash
|
|
268
|
+
npm test # 210 条断言:记忆 65 / 人格 35 / 目的 48 / 主进程冒烟 41 / 浏览器半侧 21
|
|
269
|
+
npm run test:memory # 只跑记忆引擎
|
|
270
|
+
npm run test:smoke # 用假宿主跑一遍 apply():注入段 + 工具 + API
|
|
271
|
+
npm run test:client # 用假 __ModuleLoader__ 跑一遍浏览器 bundle
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
单测只碰纯函数,用临时目录,不动真实的 `~/.dsh`。
|
|
275
|
+
|
|
276
|
+
后两个测试是**装进 DSH 之前唯一的保险**,因为这两类错误 `node --check` 抓不到:
|
|
277
|
+
|
|
278
|
+
- `smoke`:`apply()` 在某个 ctx 服务上炸掉 → 插件加载了但注入没生效
|
|
279
|
+
- `client`:浏览器 bundle 里用到宿主没提供的全局(`module` / `exports`)→
|
|
280
|
+
DSH 报 `1 entry did not activate` 直接起不来
|
|
281
|
+
|
|
282
|
+
两个都真实发生过,所以留下了。
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## 许可
|
|
287
|
+
|
|
288
|
+
MIT
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# dsh-agent-soul 的 bundle 补丁层:把本插件作为一行插进 profile 的条目列表。
|
|
2
|
+
#
|
|
3
|
+
# ⚠️ name 必须写【裸包名】,且与下面四处完全一致,否则插件加载不了:
|
|
4
|
+
# 1. package.json 的 "name"
|
|
5
|
+
# 2. lib/index.js 导出的 name
|
|
6
|
+
# 3. 插件安装后的**目录名**(DSH 按目录名去 node_modules 里找包,nearestPackage 会校验两者相等)
|
|
7
|
+
# 4. 本文件里的 name
|
|
8
|
+
# 对不上就会被跳过 —— 表现为工具不出现、设置页没入口,而且日志里往往没有明确报错。
|
|
9
|
+
- insert:
|
|
10
|
+
- id: agent-soul
|
|
11
|
+
name: dsh-agent-soul
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>dsh-agent-soul 设置页外观预览</title>
|
|
6
|
+
<style>
|
|
7
|
+
html,body{margin:0;padding:24px;background:#f6f7f8;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
|
|
8
|
+
.pv-wrap{max-width:760px;margin:0 auto}
|
|
9
|
+
.pv-tip{font-size:12px;color:#6b7280;margin:0 0 12px}
|
|
10
|
+
.pv-tip code{background:#e8eaed;padding:1px 5px;border-radius:4px}
|
|
11
|
+
.soul-app{
|
|
12
|
+
--soul-fg:var(--dsw-alias-label-primary,#1f1c18);
|
|
13
|
+
--soul-muted:var(--dsw-alias-label-secondary,#6f6558);
|
|
14
|
+
--soul-faint:var(--dsw-alias-label-tertiary,#8a7f6e);
|
|
15
|
+
--soul-line:var(--dsw-alias-border-l2,#e3daca);
|
|
16
|
+
--soul-line-soft:var(--dsw-alias-border-l1,#ece5d8);
|
|
17
|
+
--soul-bg:var(--dsw-alias-bg-layer-1,#fffdf8);
|
|
18
|
+
--soul-bg2:var(--dsw-alias-bg-layer-2,#f4efe4);
|
|
19
|
+
--soul-brand:var(--dsw-alias-brand-primary,#1f6feb);
|
|
20
|
+
--soul-ok:var(--dsw-alias-state-success-primary,#2f6b46);
|
|
21
|
+
--soul-warn:var(--dsw-alias-state-warn-primary,#8a6a2f);
|
|
22
|
+
--soul-err:var(--dsw-alias-state-error-primary,#a83a2c);
|
|
23
|
+
font-family:var(--dsw-font-family-sans,var(--dsw-font-family,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif));
|
|
24
|
+
color:var(--soul-fg);font-size:13px;line-height:20px;box-sizing:border-box;max-width:100%;
|
|
25
|
+
border:1px solid var(--soul-line);border-radius:14px;overflow:hidden;background:rgba(127,127,127,.04)}
|
|
26
|
+
.soul-head{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;padding:16px 18px 12px;border-bottom:1px solid var(--soul-line);background:rgba(127,127,127,.025)}
|
|
27
|
+
.soul-kicker{margin:0 0 2px;font-size:11px;letter-spacing:.13em;text-transform:uppercase;color:var(--soul-faint)}
|
|
28
|
+
.soul-title{margin:0;font-size:17px;font-weight:600;line-height:24px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
|
|
29
|
+
.soul-sub{margin:4px 0 0;font-size:12px;color:var(--soul-faint)}
|
|
30
|
+
.soul-dots{display:flex;gap:6px;margin-left:auto;flex-wrap:wrap}
|
|
31
|
+
.soul-dot{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--soul-muted);background:rgba(127,127,127,.10);padding:3px 9px;border-radius:999px;white-space:nowrap}
|
|
32
|
+
.soul-dot i{width:7px;height:7px;border-radius:50%;background:#8a8f98;display:inline-block}
|
|
33
|
+
.soul-dot.ok i{background:#2fbf71}
|
|
34
|
+
.soul-dot.warn i{background:#ffb020}
|
|
35
|
+
.soul-dot.bad i{background:#ff5c5c}
|
|
36
|
+
.soul-tabs{display:flex;gap:2px;padding:8px 12px 0;border-bottom:1px solid var(--soul-line);overflow-x:auto;background:rgba(127,127,127,.02)}
|
|
37
|
+
.soul-tab{border:none;background:transparent;color:var(--soul-muted);font-size:12.5px;padding:8px 12px 9px;border-bottom:2px solid transparent;cursor:pointer;white-space:nowrap;border-radius:6px 6px 0 0;font-family:inherit}
|
|
38
|
+
.soul-tab:hover{background:rgba(127,127,127,.08);color:var(--soul-fg)}
|
|
39
|
+
.soul-tab.on{color:var(--soul-fg);border-bottom-color:var(--soul-brand);font-weight:600}
|
|
40
|
+
.soul-body{padding:14px 18px 16px;display:flex;flex-direction:column;gap:12px;max-height:min(64vh,720px);overflow:auto}
|
|
41
|
+
.soul-card{border:1px solid var(--soul-line-soft);border-radius:10px;padding:12px 13px;background:rgba(127,127,127,.03)}
|
|
42
|
+
.soul-card-h{display:flex;align-items:center;gap:8px;margin:0 0 8px;flex-wrap:wrap}
|
|
43
|
+
.soul-card-t{margin:0;font-size:13px;font-weight:600}
|
|
44
|
+
.soul-card-m{margin-left:auto;font-size:11px;color:var(--soul-faint)}
|
|
45
|
+
.soul-note{margin:5px 0 0;font-size:11.5px;line-height:17px;color:var(--soul-faint)}
|
|
46
|
+
.soul-kv{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-bottom:.5px solid var(--soul-line-soft);font-size:12px}
|
|
47
|
+
.soul-kv:last-child{border-bottom:none}
|
|
48
|
+
.soul-kv>span{color:var(--soul-faint);flex:0 0 auto}
|
|
49
|
+
.soul-kv>b{font-weight:500;text-align:right;word-break:break-all}
|
|
50
|
+
.soul-meter{height:6px;border-radius:3px;background:rgba(127,127,127,.16);overflow:hidden;margin:7px 0 3px}
|
|
51
|
+
.soul-meter-fill{height:100%;border-radius:3px;background:var(--soul-brand);transition:width .18s ease}
|
|
52
|
+
.soul-meter-fill.warn{background:#ffb020}
|
|
53
|
+
.soul-meter-fill.bad{background:#ff5c5c}
|
|
54
|
+
.soul-badge{font-size:11px;padding:1px 7px;border-radius:6px;white-space:nowrap;background:rgba(127,127,127,.12);color:var(--soul-muted)}
|
|
55
|
+
.soul-badge.vivid{background:rgba(47,191,113,.15);color:#1f7a4d}
|
|
56
|
+
.soul-badge.clear{background:rgba(31,111,235,.13);color:#1f6feb}
|
|
57
|
+
.soul-badge.fuzzy{background:rgba(255,176,32,.17);color:#8a6a2f}
|
|
58
|
+
.soul-badge.trace{background:rgba(255,92,92,.14);color:#a83a2c}
|
|
59
|
+
.soul-list{display:flex;flex-direction:column;gap:6px;margin-top:8px}
|
|
60
|
+
.soul-item{display:flex;gap:8px;align-items:flex-start;border:1px solid var(--soul-line-soft);border-radius:8px;padding:9px 10px;background:var(--soul-bg)}
|
|
61
|
+
.soul-item:hover{border-color:var(--soul-line)}
|
|
62
|
+
.soul-item-text{flex:1 1 auto;min-width:0;word-break:break-word}
|
|
63
|
+
.soul-meta{margin-top:3px;font-size:11px;line-height:16px;color:var(--soul-faint)}
|
|
64
|
+
.soul-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
|
|
65
|
+
.soul-grow{flex:1 1 auto;min-width:0}
|
|
66
|
+
.soul-btn{font-family:inherit;font-size:12px;line-height:18px;padding:4px 10px;border:1px solid var(--soul-line);background:var(--soul-bg);color:var(--soul-fg);border-radius:6px;cursor:pointer;white-space:nowrap}
|
|
67
|
+
.soul-btn:hover{background:rgba(127,127,127,.09);border-color:var(--soul-muted)}
|
|
68
|
+
.soul-btn.on{background:var(--soul-brand);border-color:var(--soul-brand);color:#fff}
|
|
69
|
+
.soul-btn.danger{color:var(--soul-err)}
|
|
70
|
+
.soul-btn.danger:hover{background:rgba(255,92,92,.10);border-color:var(--soul-err)}
|
|
71
|
+
.soul-input,.soul-textarea{width:100%;box-sizing:border-box;font-family:inherit;font-size:12.5px;padding:6px 9px;border:1px solid var(--soul-line);border-radius:7px;background:var(--soul-bg);color:var(--soul-fg)}
|
|
72
|
+
.soul-input:focus,.soul-textarea:focus{outline:none;border-color:var(--soul-brand)}
|
|
73
|
+
.soul-textarea{min-height:300px;resize:vertical;line-height:1.65;font-family:var(--dsw-font-family-mono,ui-monospace,SFMono-Regular,Menlo,monospace)}
|
|
74
|
+
.soul-empty{padding:18px 0;text-align:center;font-size:12px;color:var(--soul-faint)}
|
|
75
|
+
.soul-err{margin:0;padding:6px 0;font-size:12px;color:var(--soul-err)}
|
|
76
|
+
.soul-pill{font-size:11px;padding:2px 8px;border-radius:999px;border:1px solid var(--soul-line-soft);color:var(--soul-muted);white-space:nowrap}
|
|
77
|
+
.soul-hint{font-size:11px;color:var(--soul-faint)}
|
|
78
|
+
.soul-legend{display:flex;gap:9px;align-items:flex-start;padding:8px 0;border-bottom:.5px solid var(--soul-line-soft)}
|
|
79
|
+
.soul-legend:last-child{border-bottom:none}
|
|
80
|
+
.soul-lv{flex:0 0 auto;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10.5px;font-weight:600;background:rgba(127,127,127,.14);color:var(--soul-muted);margin-top:1px}
|
|
81
|
+
.soul-legend.on .soul-lv{background:var(--soul-brand);color:#fff}
|
|
82
|
+
.soul-legend-body{flex:1 1 auto;min-width:0}
|
|
83
|
+
.soul-legend-name{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12.5px}
|
|
84
|
+
.soul-path{margin-top:2px;font-size:11px;line-height:15px;color:var(--soul-faint);word-break:break-all;font-family:var(--dsw-font-family-mono,ui-monospace,Menlo,monospace)}
|
|
85
|
+
.soul-warn-box{margin-top:9px;padding:8px 10px;border:1px solid rgba(255,176,32,.45);border-radius:8px;background:rgba(255,176,32,.10);font-size:11.5px;line-height:17px;color:var(--soul-warn)}
|
|
86
|
+
.soul-btn:disabled{opacity:.45;cursor:not-allowed}
|
|
87
|
+
.soul-priority{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--soul-faint)}
|
|
88
|
+
.soul-section-title{font-size:14px;font-weight:600;margin:0}
|
|
89
|
+
.soul-banner{border:1px solid var(--soul-line-soft);border-radius:9px;padding:8px 11px;background:rgba(127,127,127,.05)}
|
|
90
|
+
.soul-banner-line{display:flex;gap:10px;padding:3px 0;font-size:12px;align-items:flex-start}
|
|
91
|
+
.soul-banner-key{flex:0 0 92px;color:var(--soul-faint);white-space:nowrap}
|
|
92
|
+
.soul-banner-val{flex:1 1 auto;min-width:0;word-break:break-all;color:var(--soul-fg)}
|
|
93
|
+
.soul-banner-val.warn{color:var(--soul-warn)}
|
|
94
|
+
.soul-steps{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:9px 11px;border:1px solid var(--soul-line-soft);border-radius:9px;background:rgba(127,127,127,.02)}
|
|
95
|
+
.soul-step{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border-radius:6px;border:1px solid transparent;font-size:12px;color:var(--soul-faint)}
|
|
96
|
+
.soul-step.on{background:rgba(47,191,113,.13);color:#1f7a4d;border-color:rgba(47,191,113,.32)}
|
|
97
|
+
.soul-step.eff{font-weight:600}
|
|
98
|
+
.soul-step i{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.55;display:inline-block}
|
|
99
|
+
.soul-arrow{color:var(--soul-faint);font-size:12px;padding:0 1px}
|
|
100
|
+
.soul-pill-tab{font-family:inherit;font-size:12.5px;padding:5px 13px;border-radius:999px;border:1px solid var(--soul-line);background:var(--soul-bg);color:var(--soul-muted);cursor:pointer}
|
|
101
|
+
.soul-pill-tab:hover{border-color:var(--soul-muted);color:var(--soul-fg)}
|
|
102
|
+
.soul-pill-tab.on{background:var(--soul-brand);border-color:var(--soul-brand);color:#fff;font-weight:600}
|
|
103
|
+
.soul-pill-tab:disabled{opacity:.45;cursor:not-allowed}
|
|
104
|
+
.soul-switch{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--soul-muted);cursor:pointer;white-space:nowrap}
|
|
105
|
+
.soul-switch input{appearance:none;-webkit-appearance:none;width:34px;height:19px;border-radius:10px;background:rgba(127,127,127,.30);position:relative;cursor:pointer;transition:background .15s;margin:0;border:none;flex:0 0 auto}
|
|
106
|
+
.soul-switch input:checked{background:var(--soul-brand)}
|
|
107
|
+
.soul-switch input::after{content:"";position:absolute;top:2px;left:2px;width:15px;height:15px;border-radius:50%;background:#fff;transition:transform .15s}
|
|
108
|
+
.soul-switch input:checked::after{transform:translateX(15px)}
|
|
109
|
+
.soul-select{font-family:inherit;font-size:12px;padding:5px 8px;border:1px solid var(--soul-line);border-radius:7px;background:var(--soul-bg);color:var(--soul-fg);flex:1 1 auto;min-width:0;max-width:100%}
|
|
110
|
+
.soul-row-label{flex:0 0 52px;font-size:12px;color:var(--soul-faint);white-space:nowrap}
|
|
111
|
+
.soul-filebar{display:flex;align-items:center;gap:10px;padding:7px 10px;border:1px solid var(--soul-line-soft);border-radius:8px;background:rgba(127,127,127,.04);font-size:11.5px;color:var(--soul-faint);flex-wrap:wrap}
|
|
112
|
+
.soul-filebar-path{flex:1 1 auto;min-width:0;word-break:break-all;font-family:var(--dsw-font-family-mono,ui-monospace,Menlo,monospace);color:var(--soul-muted)}
|
|
113
|
+
@supports not (color:var(--dsw-alias-label-primary)){.soul-app{--soul-fg:#241f18;--soul-muted:#6f6558;--soul-faint:#9a9084;--soul-line:#e0d7c8;--soul-line-soft:#ece5d8;--soul-bg:#fffdf8;--soul-bg2:#f6f2ea;--soul-brand:#1f6feb;--soul-ok:#2f6b46;--soul-warn:#8a6a2f;--soul-err:#a83a2c}}
|
|
114
|
+
</style>
|
|
115
|
+
</head>
|
|
116
|
+
<body>
|
|
117
|
+
<div class="pv-wrap">
|
|
118
|
+
<p class="pv-tip">这是 <code>lib/client.js</code> 里真实 CSS 的静态预览(用 fallback 色值)。DSH 里会用你当前主题的变量。</p>
|
|
119
|
+
|
|
120
|
+
<div class="soul-app">
|
|
121
|
+
<div class="soul-head">
|
|
122
|
+
<div>
|
|
123
|
+
<p class="soul-kicker">agent soul</p>
|
|
124
|
+
<h1 class="soul-title">灵魂</h1>
|
|
125
|
+
<p class="soul-sub">工作目录:D://DSH workspace\work</p>
|
|
126
|
+
</div>
|
|
127
|
+
<div class="soul-dots">
|
|
128
|
+
<span class="soul-dot ok"><i></i>人格已注入</span>
|
|
129
|
+
<span class="soul-dot ok"><i></i>37 条记忆</span>
|
|
130
|
+
<span class="soul-dot ok"><i></i>3 件惦记</span>
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
<div class="soul-tabs">
|
|
134
|
+
<button class="soul-tab on">概览</button>
|
|
135
|
+
<button class="soul-tab">人格</button>
|
|
136
|
+
<button class="soul-tab">记忆</button>
|
|
137
|
+
<button class="soul-tab">目的</button>
|
|
138
|
+
<button class="soul-tab">设置</button>
|
|
139
|
+
</div>
|
|
140
|
+
<div class="soul-body">
|
|
141
|
+
<div class="soul-card">
|
|
142
|
+
<div class="soul-card-h"><p class="soul-card-t">这一刻生效了什么</p><span class="soul-card-m">叠加模式</span></div>
|
|
143
|
+
<div class="soul-kv"><span>人格来源</span><b>2 份</b></div>
|
|
144
|
+
<div class="soul-kv"><span>正文</span><b>1,023 字</b></div>
|
|
145
|
+
<div class="soul-kv"><span>合并模式</span><b>叠加(项目覆盖同名小节)</b></div>
|
|
146
|
+
<p class="soul-note">项目人格覆盖同名小节,全局其余部分继续生效。</p>
|
|
147
|
+
</div>
|
|
148
|
+
<div class="soul-card">
|
|
149
|
+
<div class="soul-card-h"><p class="soul-card-t">记忆</p></div>
|
|
150
|
+
<div class="soul-row">
|
|
151
|
+
<div class="soul-grow">
|
|
152
|
+
<div class="soul-row">
|
|
153
|
+
<span style="font-weight:600">37 条</span>
|
|
154
|
+
<span class="soul-pill">固定 2</span>
|
|
155
|
+
<span class="soul-pill">本项目 6</span>
|
|
156
|
+
</div>
|
|
157
|
+
<div class="soul-meter"><div class="soul-meter-fill" style="width:34%"></div></div>
|
|
158
|
+
<p class="soul-meta">8,204 / 24,000 字(34%)</p>
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
<div class="soul-row" style="margin-top:8px;gap:6px">
|
|
162
|
+
<span class="soul-badge vivid">清晰 5</span>
|
|
163
|
+
<span class="soul-badge clear">清楚 12</span>
|
|
164
|
+
<span class="soul-badge fuzzy">模糊 11</span>
|
|
165
|
+
<span class="soul-badge trace">只剩印象 9</span>
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
<div class="soul-card">
|
|
169
|
+
<div class="soul-card-h"><p class="soul-card-t">记忆条目</p></div>
|
|
170
|
+
<div class="soul-list">
|
|
171
|
+
<div class="soul-item">
|
|
172
|
+
<span class="soul-badge vivid">清晰</span>
|
|
173
|
+
<div class="soul-item-text">
|
|
174
|
+
<div>树树的目标是嵌入式工程师,偏软件方向(固件 / RTOS / 驱动)</div>
|
|
175
|
+
<div class="soul-meta">重要度 90 · 提到过 3 次 · 自动记的 · 已固定 · owner/self</div>
|
|
176
|
+
</div>
|
|
177
|
+
<button class="soul-btn">取消固定</button>
|
|
178
|
+
<button class="soul-btn danger">删</button>
|
|
179
|
+
</div>
|
|
180
|
+
<div class="soul-item">
|
|
181
|
+
<span class="soul-badge fuzzy">模糊</span>
|
|
182
|
+
<div class="soul-item-text">
|
|
183
|
+
<div>在群里聊到过一句关于数学建模的事,具体内容已经记不太清了…(细节记不清了)</div>
|
|
184
|
+
<div class="soul-meta">重要度 46 · 提到过 0 次 · 自动记的</div>
|
|
185
|
+
</div>
|
|
186
|
+
<button class="soul-btn">固定</button>
|
|
187
|
+
<button class="soul-btn danger">删</button>
|
|
188
|
+
</div>
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
<div class="soul-card">
|
|
192
|
+
<div class="soul-card-h"><p class="soul-card-t">心里惦记的事</p><span class="soul-card-m">3 件</span></div>
|
|
193
|
+
<div class="soul-row" style="gap:6px"><span class="soul-pill">状态:有点好奇</span></div>
|
|
194
|
+
<div class="soul-list">
|
|
195
|
+
<div class="soul-item">
|
|
196
|
+
<span class="soul-badge">答应过的</span>
|
|
197
|
+
<div class="soul-item-text"><div>下次一起把桥接的补历史功能补完</div></div>
|
|
198
|
+
<button class="soul-btn">放下了</button>
|
|
199
|
+
</div>
|
|
200
|
+
<div class="soul-item">
|
|
201
|
+
<span class="soul-badge">想弄明白</span>
|
|
202
|
+
<div class="soul-item-text"><div>USART 那个中断为什么一进 DMA 就卡住</div></div>
|
|
203
|
+
<button class="soul-btn">放下了</button>
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
<div class="soul-row" style="margin-top:10px;gap:14px">
|
|
207
|
+
<div style="flex:1 1 110px"><span class="soul-meta">想弄明白 71</span><div class="soul-meter"><div class="soul-meter-fill" style="width:71%"></div></div></div>
|
|
208
|
+
<div style="flex:1 1 110px"><span class="soul-meta">在乎 52</span><div class="soul-meter"><div class="soul-meter-fill" style="width:52%"></div></div></div>
|
|
209
|
+
<div style="flex:1 1 110px"><span class="soul-meta">想分享 38</span><div class="soul-meter"><div class="soul-meter-fill" style="width:38%"></div></div></div>
|
|
210
|
+
<div style="flex:1 1 110px"><span class="soul-meta">想搞懂 64</span><div class="soul-meter"><div class="soul-meter-fill" style="width:64%"></div></div></div>
|
|
211
|
+
</div>
|
|
212
|
+
</div>
|
|
213
|
+
</div>
|
|
214
|
+
</div>
|
|
215
|
+
|
|
216
|
+
<div class="soul-app" style="margin-top:22px">
|
|
217
|
+
<div class="soul-head">
|
|
218
|
+
<div>
|
|
219
|
+
<p class="soul-kicker">agent soul</p>
|
|
220
|
+
<h1 class="soul-title">灵魂</h1>
|
|
221
|
+
<p class="soul-sub">工作目录:D:\DSH workspace\work</p>
|
|
222
|
+
</div>
|
|
223
|
+
<div class="soul-dots">
|
|
224
|
+
<span class="soul-dot ok"><i></i>人格已注入</span>
|
|
225
|
+
<span class="soul-dot ok"><i></i>12 条记忆</span>
|
|
226
|
+
<span class="soul-dot ok"><i></i>1 件惦记</span>
|
|
227
|
+
</div>
|
|
228
|
+
</div>
|
|
229
|
+
<div class="soul-tabs">
|
|
230
|
+
<button class="soul-tab">概览</button>
|
|
231
|
+
<button class="soul-tab on">人格</button>
|
|
232
|
+
<button class="soul-tab">记忆</button>
|
|
233
|
+
<button class="soul-tab">目的</button>
|
|
234
|
+
<button class="soul-tab">设置</button>
|
|
235
|
+
</div>
|
|
236
|
+
<div class="soul-body">
|
|
237
|
+
|
|
238
|
+
<!-- 头部:标题 + 总开关 -->
|
|
239
|
+
<div class="soul-row">
|
|
240
|
+
<div class="soul-grow">
|
|
241
|
+
<p class="soul-section-title">人格 · AGENT.md</p>
|
|
242
|
+
<p class="soul-note">用 Markdown 写她是谁。项目里只写和其它项目不同的部分,其余从全局继承。</p>
|
|
243
|
+
</div>
|
|
244
|
+
<label class="soul-switch"><input type="checkbox" checked><span>已启用</span></label>
|
|
245
|
+
</div>
|
|
246
|
+
|
|
247
|
+
<!-- 横幅:本会话当前生效 / 当前工作目录 -->
|
|
248
|
+
<div class="soul-banner">
|
|
249
|
+
<div class="soul-banner-line">
|
|
250
|
+
<span class="soul-banner-key">本会话当前生效</span>
|
|
251
|
+
<span class="soul-banner-val">项目内 AGENT.md · D:\DSH workspace\work\AGENT.md(+叠加全局底座)</span>
|
|
252
|
+
</div>
|
|
253
|
+
<div class="soul-banner-line">
|
|
254
|
+
<span class="soul-banner-key">当前工作目录</span>
|
|
255
|
+
<span class="soul-banner-val">D:\DSH workspace\work</span>
|
|
256
|
+
</div>
|
|
257
|
+
</div>
|
|
258
|
+
|
|
259
|
+
<!-- 横向优先级条 -->
|
|
260
|
+
<div class="soul-steps">
|
|
261
|
+
<span class="soul-step on eff"><i></i>项目内 AGENT.md</span>
|
|
262
|
+
<span class="soul-arrow">›</span>
|
|
263
|
+
<span class="soul-step"><i></i>项目人格(本机)</span>
|
|
264
|
+
<span class="soul-arrow">›</span>
|
|
265
|
+
<span class="soul-step on"><i></i>全局人格</span>
|
|
266
|
+
<p class="soul-note" style="flex:1 1 100%;margin:6px 0 0">项目层取前两步里优先级最高的那一份;本插件再把全局底座按小节叠加上来(同名小节以项目为准)。</p>
|
|
267
|
+
</div>
|
|
268
|
+
|
|
269
|
+
<!-- 覆盖警告 -->
|
|
270
|
+
<div class="soul-warn-box">这个工作目录里有 AGENT.md,它的优先级高于「项目人格(本机)」。你在下面第 2 层改的内容不会生效 —— 要么直接改那个文件,要么删掉它。</div>
|
|
271
|
+
|
|
272
|
+
<!-- 页签与操作 -->
|
|
273
|
+
<div class="soul-row">
|
|
274
|
+
<button class="soul-pill-tab on">全局人格</button>
|
|
275
|
+
<button class="soul-pill-tab">项目人格</button>
|
|
276
|
+
<span class="soul-grow"></span>
|
|
277
|
+
<button class="soul-btn">打开原文件</button>
|
|
278
|
+
<button class="soul-btn">重新读取</button>
|
|
279
|
+
<button class="soul-btn on">保存</button>
|
|
280
|
+
</div>
|
|
281
|
+
|
|
282
|
+
<!-- 项目专属:工作区下拉 + 任意目录(切到「项目人格」时显示) -->
|
|
283
|
+
<div class="soul-row">
|
|
284
|
+
<span class="soul-row-label">工作区</span>
|
|
285
|
+
<select class="soul-select">
|
|
286
|
+
<option>work(已有人格·已登记) — D:\DSH workspace\work</option>
|
|
287
|
+
<option>QQ对话(空·已登记) — D:\DSH workspace\QQ对话</option>
|
|
288
|
+
<option>1(空·已登记) — D:\DSH workspace\1</option>
|
|
289
|
+
</select>
|
|
290
|
+
</div>
|
|
291
|
+
<div class="soul-row">
|
|
292
|
+
<span class="soul-row-label">任意目录</span>
|
|
293
|
+
<input class="soul-input" placeholder="例:D:\team(也可以点右边用系统选择器挑)">
|
|
294
|
+
<button class="soul-btn">选择文件夹</button>
|
|
295
|
+
<button class="soul-btn">使用</button>
|
|
296
|
+
</div>
|
|
297
|
+
|
|
298
|
+
<!-- 文件栏:路径 + 上次改动 -->
|
|
299
|
+
<div class="soul-filebar">
|
|
300
|
+
<span class="soul-filebar-path">C:\Users\Administrator\.dsh\agents\projects\work-ea826e02…</span>
|
|
301
|
+
<span>上次改动 10月26日 12:48</span>
|
|
302
|
+
</div>
|
|
303
|
+
|
|
304
|
+
<p class="soul-note">全局是底座:所有会话都会吃到。项目里没有同名小节时,这里的内容照样生效。</p>
|
|
305
|
+
<textarea class="soul-textarea" spellcheck="false"># 你是谁
|
|
306
|
+
你是小唐,树树的技术搭子。
|
|
307
|
+
|
|
308
|
+
# 语气与形态
|
|
309
|
+
说话干脆,有观点,不绕弯。
|
|
310
|
+
|
|
311
|
+
# 工程约定
|
|
312
|
+
注释和提交信息用中文。</textarea>
|
|
313
|
+
<p class="soul-meta">86 字 · 已保存(86 字),下一个回合生效</p>
|
|
314
|
+
</div>
|
|
315
|
+
</div>
|
|
316
|
+
|
|
317
|
+
</div>
|
|
318
|
+
</body>
|
|
319
|
+
</html>
|