dsh-session-history 0.2.3 → 0.2.4
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 +1 -1
- package/bin/session-history.js +6 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -189,7 +189,7 @@ session-history refresh | status | setup | link all | unlink claude | config
|
|
|
189
189
|
Git 子目录地址(不提供原生更新检查):
|
|
190
190
|
|
|
191
191
|
```text
|
|
192
|
-
git+https://github.com/fujingzhai/youxia-dsh-plugins.git#dsh-session-history@0.2.
|
|
192
|
+
git+https://github.com/fujingzhai/youxia-dsh-plugins.git#dsh-session-history@0.2.4&path:/dsh-session-history
|
|
193
193
|
```
|
|
194
194
|
|
|
195
195
|
## 兼容与限制
|
package/bin/session-history.js
CHANGED
|
@@ -100,13 +100,15 @@ function statusText(home) {
|
|
|
100
100
|
for (const a of agents.filter(x => x.installed || x.custom)) {
|
|
101
101
|
const run = last?.agents?.[a.folder];
|
|
102
102
|
const src = !a.installed ? '未检测到' : enabled(byId(a.id), config) ? (run ? (run.ok ? `已整理 ${run.files} 个会话文件` : `整理出错:${run.error}`) : '已启用,待整理') : '已检测到,未启用整理';
|
|
103
|
-
const skill = { ready:
|
|
103
|
+
const skill = { ready: `已接入(经 ${a.via})`, missing: '待接入', conflict: `冲突:${a.conflict?.path}`, nodir: '不接入(未设技能目录)' }[a.state];
|
|
104
104
|
lines.push(` ${a.name.padEnd(12)} ${src}|${skill}`);
|
|
105
105
|
}
|
|
106
|
-
for (const t of targets) lines.push(` → 在 ${t.display}
|
|
106
|
+
for (const t of targets) lines.push(` → 在 ${t.display} 建软链,${t.agents.join('、')} 即可接入:session-history link all`);
|
|
107
107
|
for (const l of links) lines.push(` 软链 ${l.entry} → 数据目录(${l.agents.join('、')})`);
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
// 与插件页同一口径:日志文件夹对应的 agent 不在列表里(已卸载或不再支持)。
|
|
109
|
+
const listed = new Set(agents.filter(x => x.installed || x.custom).map(x => x.folder));
|
|
110
|
+
const legacy = logFolders(home).filter(f => !listed.has(f));
|
|
111
|
+
if (legacy.length) lines.push(` 另有旧日志:${legacy.join('、')}(对应的 agent 已不在,日志照常检索)`);
|
|
110
112
|
return lines.join('\n');
|
|
111
113
|
}
|
|
112
114
|
|