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 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.3&path:/dsh-session-history
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
  ## 兼容与限制
@@ -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: `技能已生效(经 ${a.via})`, missing: '技能未生效', conflict: `技能冲突:${a.conflict?.path}`, nodir: '未设技能目录' }[a.state];
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} 建软链可让 ${t.agents.join('、')} 生效:session-history link all`);
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
- const legacy = logFolders(home).filter(f => !byFolder(f, config));
109
- if (legacy.length) lines.push(` 已停用来源的旧日志:${legacy.join('、')}`);
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-session-history",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "把各个 agent(Claude Code、Codex 等)的对话整理成可检索的原文日志,以一个共用技能提供给所有 agent;保留原话,不做摘要,不用向量,不调用模型。",
5
5
  "author": "youxia",
6
6
  "repository": {