session-trail 0.3.0__tar.gz → 0.3.1__tar.gz

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.
Files changed (43) hide show
  1. {session_trail-0.3.0/src/session_trail.egg-info → session_trail-0.3.1}/PKG-INFO +2 -2
  2. {session_trail-0.3.0 → session_trail-0.3.1}/README.en.md +1 -1
  3. {session_trail-0.3.0 → session_trail-0.3.1}/README.md +1 -1
  4. {session_trail-0.3.0 → session_trail-0.3.1}/pyproject.toml +1 -1
  5. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/adapters/claude_code.py +6 -1
  6. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/adapters/codex.py +5 -1
  7. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/adapters/opencode.py +14 -0
  8. {session_trail-0.3.0 → session_trail-0.3.1/src/session_trail.egg-info}/PKG-INFO +2 -2
  9. {session_trail-0.3.0 → session_trail-0.3.1}/LICENSE +0 -0
  10. {session_trail-0.3.0 → session_trail-0.3.1}/MANIFEST.in +0 -0
  11. {session_trail-0.3.0 → session_trail-0.3.1}/setup.cfg +0 -0
  12. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/__init__.py +0 -0
  13. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/__main__.py +0 -0
  14. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/adapters/__init__.py +0 -0
  15. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/adapters/base.py +0 -0
  16. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/adapters/codebuddy.py +0 -0
  17. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/adapters/deepseek_harness.py +0 -0
  18. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/adapters/jsonl_utils.py +0 -0
  19. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/adapters/kimi_code.py +0 -0
  20. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/adapters/minimax_code.py +0 -0
  21. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/adapters/pi.py +0 -0
  22. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/adapters/sqlite_utils.py +0 -0
  23. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/adapters/zcode.py +0 -0
  24. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/cli.py +0 -0
  25. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/launcher.py +0 -0
  26. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/models.py +0 -0
  27. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/scanner.py +0 -0
  28. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/server.py +0 -0
  29. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/static/app.js +0 -0
  30. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/static/i18n.js +0 -0
  31. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/static/index.html +0 -0
  32. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/static/styles.css +0 -0
  33. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/store.py +0 -0
  34. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/tray/__init__.py +0 -0
  35. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/tray/app.py +0 -0
  36. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/tray/desktop.template +0 -0
  37. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/tray/icon.png +0 -0
  38. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/tray/sni.py +0 -0
  39. {session_trail-0.3.0 → session_trail-0.3.1}/src/agent_trail/watcher.py +0 -0
  40. {session_trail-0.3.0 → session_trail-0.3.1}/src/session_trail.egg-info/SOURCES.txt +0 -0
  41. {session_trail-0.3.0 → session_trail-0.3.1}/src/session_trail.egg-info/dependency_links.txt +0 -0
  42. {session_trail-0.3.0 → session_trail-0.3.1}/src/session_trail.egg-info/entry_points.txt +0 -0
  43. {session_trail-0.3.0 → session_trail-0.3.1}/src/session_trail.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: session-trail
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Local cross-agent work timeline: discover, browse and resume coding-agent sessions on your machine
5
5
  Author: fwt11
6
6
  License-Expression: MIT
@@ -55,7 +55,7 @@ Dynamic: license-file
55
55
  | 系统托盘 + 内嵌窗口 | ✅(原生 SNI + WebKit2GTK) | 规划中 | 规划中 |
56
56
  | 回到原会话(已验证工具) | ✅ | 取决于该 Agent 的 CLI 是否存在 | 同左 |
57
57
 
58
- 说明:各 Agent 的会话数据路径按 Linux 布局实现(`~/.kimi-code` 等,`Path.home()` 在全平台生效);部分工具在其他平台的实际目录(如 opencode 的 XDG 变体)尚待真机验证,未发现数据源的适配器会诚实显示"未发现"。
58
+ 数据目录路径:开源工具的 Windows/macOS 路径已按其源码/官方文档确认——Codex(`dirs::home_dir()/.codex`,全平台同布局)、Claude Code(`%USERPROFILE%/.claude`)、OpenCode(Windows = `%LOCALAPPDATA%/opencode`,macOS 同 Linux)、Pi(`~/.pi/agent` 全平台一致);三者并尊重各自的官方覆盖变量(`CODEX_HOME` / `CLAUDE_CONFIG_DIR` / `OPENCODE_DATA`)。闭源工具(Kimi/CodeBuddy/MiniMax/ZCode/DeepSeek)其他平台的目录未验证,未发现数据源的适配器会诚实显示"未发现"。
59
59
 
60
60
  ## 支持的 Agent
61
61
 
@@ -26,7 +26,7 @@ A local-first work memory for people who use multiple coding agents: it discover
26
26
  | System tray + embedded window | ✅ (native SNI + WebKit2GTK) | planned | planned |
27
27
  | Resume original session (verified tools) | ✅ | depends on each agent's CLI availability | same |
28
28
 
29
- Note: agent data paths follow the Linux layout (`~/.kimi-code`, etc. — `Path.home()` resolves everywhere). Actual directories on other platforms (e.g. opencode's XDG variants) still need real-machine verification; adapters that find no data honestly report "Not found".
29
+ Data paths: Windows/macOS locations for the open-source CLIs are confirmed from their sources/docs — Codex (`dirs::home_dir()/.codex`, same layout everywhere), Claude Code (`%USERPROFILE%/.claude`), OpenCode (Windows = `%LOCALAPPDATA%/opencode`, macOS same as Linux), Pi (`~/.pi/agent` everywhere); the adapters also honor their official override vars (`CODEX_HOME` / `CLAUDE_CONFIG_DIR` / `OPENCODE_DATA`). Directories for the closed-source tools (Kimi/CodeBuddy/MiniMax/ZCode/DeepSeek) are unverified off Linux; adapters that find no data honestly report "Not found".
30
30
 
31
31
  ## Supported agents
32
32
 
@@ -27,7 +27,7 @@
27
27
  | 系统托盘 + 内嵌窗口 | ✅(原生 SNI + WebKit2GTK) | 规划中 | 规划中 |
28
28
  | 回到原会话(已验证工具) | ✅ | 取决于该 Agent 的 CLI 是否存在 | 同左 |
29
29
 
30
- 说明:各 Agent 的会话数据路径按 Linux 布局实现(`~/.kimi-code` 等,`Path.home()` 在全平台生效);部分工具在其他平台的实际目录(如 opencode 的 XDG 变体)尚待真机验证,未发现数据源的适配器会诚实显示"未发现"。
30
+ 数据目录路径:开源工具的 Windows/macOS 路径已按其源码/官方文档确认——Codex(`dirs::home_dir()/.codex`,全平台同布局)、Claude Code(`%USERPROFILE%/.claude`)、OpenCode(Windows = `%LOCALAPPDATA%/opencode`,macOS 同 Linux)、Pi(`~/.pi/agent` 全平台一致);三者并尊重各自的官方覆盖变量(`CODEX_HOME` / `CLAUDE_CONFIG_DIR` / `OPENCODE_DATA`)。闭源工具(Kimi/CodeBuddy/MiniMax/ZCode/DeepSeek)其他平台的目录未验证,未发现数据源的适配器会诚实显示"未发现"。
31
31
 
32
32
  ## 支持的 Agent
33
33
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "session-trail"
7
- version = "0.3.0"
7
+ version = "0.3.1"
8
8
  description = "Local cross-agent work timeline: discover, browse and resume coding-agent sessions on your machine"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -1,5 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
+ import os
3
4
  from datetime import datetime
4
5
  from pathlib import Path
5
6
 
@@ -14,7 +15,11 @@ class ClaudeCodeAdapter(BaseAdapter):
14
15
 
15
16
  @property
16
17
  def root(self) -> Path:
17
- return self.home / ".claude" / "projects"
18
+ # 官方行为:CLAUDE_CONFIG_DIR 重定向整个配置目录(含 projects/),
19
+ # Windows 默认 %USERPROFILE%/.claude —— Path.home() 全平台一致。
20
+ base = os.environ.get("CLAUDE_CONFIG_DIR")
21
+ root = Path(base) if base else self.home / ".claude"
22
+ return root / "projects"
18
23
 
19
24
  def discover(self) -> AdapterStatus:
20
25
  if not self.root.is_dir():
@@ -1,6 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  import json
4
+ import os
4
5
  import sqlite3
5
6
  from contextlib import closing
6
7
  from datetime import datetime
@@ -18,7 +19,10 @@ class CodexAdapter(BaseAdapter):
18
19
 
19
20
  @property
20
21
  def root(self) -> Path:
21
- return self.home / ".codex"
22
+ # 官方行为(源码 codex-rs/utils/home-dir):CODEX_HOME 优先,否则
23
+ # dirs::home_dir()/.codex —— 全平台同布局(Windows = %USERPROFILE%/.codex)。
24
+ override = os.environ.get("CODEX_HOME")
25
+ return Path(override) if override else self.home / ".codex"
22
26
 
23
27
  @property
24
28
  def database_path(self) -> Path:
@@ -1,7 +1,9 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  import json
4
+ import os
4
5
  import sqlite3
6
+ import sys
5
7
  from contextlib import closing
6
8
  from datetime import datetime
7
9
  from pathlib import Path
@@ -19,6 +21,18 @@ class OpenCodeAdapter(BaseAdapter):
19
21
 
20
22
  @property
21
23
  def root(self) -> Path:
24
+ # 平台差异(调研依据见 README 平台矩阵):
25
+ # - Linux/macOS: ~/.local/share/opencode(官方 troubleshooting 文档确认
26
+ # macOS 同 Linux,不走 Library/Application Support)
27
+ # - Windows: %LOCALAPPDATA%/opencode(XDG data home 在 Windows 解析为
28
+ # %LOCALAPPDATA%)
29
+ # - 官方覆盖变量 OPENCODE_DATA 优先于以上全部
30
+ override = os.environ.get("OPENCODE_DATA")
31
+ if override:
32
+ return Path(override)
33
+ if sys.platform == "win32":
34
+ base = os.environ.get("LOCALAPPDATA") or self.home / "AppData" / "Local"
35
+ return Path(base) / "opencode"
22
36
  return self.home / ".local" / "share" / "opencode"
23
37
 
24
38
  @property
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: session-trail
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Local cross-agent work timeline: discover, browse and resume coding-agent sessions on your machine
5
5
  Author: fwt11
6
6
  License-Expression: MIT
@@ -55,7 +55,7 @@ Dynamic: license-file
55
55
  | 系统托盘 + 内嵌窗口 | ✅(原生 SNI + WebKit2GTK) | 规划中 | 规划中 |
56
56
  | 回到原会话(已验证工具) | ✅ | 取决于该 Agent 的 CLI 是否存在 | 同左 |
57
57
 
58
- 说明:各 Agent 的会话数据路径按 Linux 布局实现(`~/.kimi-code` 等,`Path.home()` 在全平台生效);部分工具在其他平台的实际目录(如 opencode 的 XDG 变体)尚待真机验证,未发现数据源的适配器会诚实显示"未发现"。
58
+ 数据目录路径:开源工具的 Windows/macOS 路径已按其源码/官方文档确认——Codex(`dirs::home_dir()/.codex`,全平台同布局)、Claude Code(`%USERPROFILE%/.claude`)、OpenCode(Windows = `%LOCALAPPDATA%/opencode`,macOS 同 Linux)、Pi(`~/.pi/agent` 全平台一致);三者并尊重各自的官方覆盖变量(`CODEX_HOME` / `CLAUDE_CONFIG_DIR` / `OPENCODE_DATA`)。闭源工具(Kimi/CodeBuddy/MiniMax/ZCode/DeepSeek)其他平台的目录未验证,未发现数据源的适配器会诚实显示"未发现"。
59
59
 
60
60
  ## 支持的 Agent
61
61
 
File without changes
File without changes
File without changes