sede 0.1.4__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.
sede-0.1.4/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ilya Popov
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.
sede-0.1.4/PKG-INFO ADDED
@@ -0,0 +1,110 @@
1
+ Metadata-Version: 2.4
2
+ Name: sede
3
+ Version: 0.1.4
4
+ Summary: Session deleter for coding assistants
5
+ Author-email: Ilya Popov <ilypopv@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/ilypopv/sede
8
+ Project-URL: Repository, https://github.com/ilypopv/sede
9
+ Requires-Python: >=3.9
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Requires-Dist: typer<1.0,>=0.12
13
+ Requires-Dist: questionary<3.0,>=2.0
14
+ Requires-Dist: rich<14.0,>=13.7
15
+ Provides-Extra: dev
16
+ Requires-Dist: pytest<9.0,>=8.2; extra == "dev"
17
+ Requires-Dist: pytest-cov<6.0,>=5.0; extra == "dev"
18
+ Dynamic: license-file
19
+
20
+ # sede: SEssion DEleter
21
+
22
+ _Delete archived coding assistant sessions from terminal, fast and safely._
23
+
24
+ [![CI](https://img.shields.io/github/actions/workflow/status/ilypopv/sede/ci.yml?style=flat-square&label=CI)](https://github.com/ilypopv/sede/actions/workflows/ci.yml)
25
+ [![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE)
26
+
27
+ ## Features
28
+
29
+ - Interactive TUI flow for provider selection and session deletion
30
+ - Supports `Claude Code` and `GitHub Copilot`
31
+ - Multi-select deletion with confirmation
32
+ - Storage-aware list: title, project path, storage path, size, updated-at
33
+ - Safe Claude cleanup: removes selected session file and prunes empty project directory
34
+
35
+ ## Installation
36
+
37
+ ```bash
38
+ pipx install sede
39
+ ```
40
+
41
+ ## Run
42
+
43
+ After installation, run:
44
+
45
+ ```bash
46
+ sede
47
+ ```
48
+
49
+ ## TUI Preview
50
+
51
+ Main screen:
52
+
53
+ ```text
54
+ _
55
+ ___ ___ __| | ___
56
+ / __|/ _ \/ _` |/ _ \
57
+ \__ \ __/ (_| | __/
58
+ |___/\___|\__,_|\___|
59
+
60
+ Session Deleter v0.1.4
61
+ https://github.com/ilypopv/sede/
62
+ Deep clean archived coding assistant sessions from your device.
63
+
64
+ Choose coding assistant
65
+ ➤ 1. Claude Code
66
+ Delete archived Claude Code sessions
67
+
68
+ 2. GitHub Copilot
69
+ Delete archived Copilot sessions
70
+
71
+ ↑↓ Navigate | Enter / → Select | Ctrl+C / Q Quit
72
+ ```
73
+
74
+ Session selection screen:
75
+
76
+ ```text
77
+ Available sessions: Claude Code
78
+ 1 session(s) loaded. Total size: 1.5 MB.
79
+
80
+ Choose sessions to delete
81
+ » ○ Session title...
82
+ /Users/you/project-path
83
+ ~/.claude/projects/-Users-you-project/
84
+ 1.5 MB | 2026-07-03 09:44 UTC
85
+
86
+ ↑↓ Navigate | ← Back | Space Select | A Toggle All | Enter Delete | Ctrl+C / Q Quit
87
+ ```
88
+
89
+ When no sessions are found for a provider, the same screen layout is shown instead:
90
+
91
+ ```text
92
+ Available sessions: Claude Code
93
+ 0 session(s) loaded. Total size: 0 B.
94
+
95
+ No sessions found for Claude Code.
96
+
97
+ Press any key to go back...
98
+ ```
99
+
100
+ ## Safety Notes
101
+
102
+ - Deletion is permanent.
103
+ - Claude: deletes selected `.jsonl` session file, then removes parent project dir only if empty.
104
+ - Copilot: deletes the selected session directory recursively.
105
+ - Always review selected entries before confirming.
106
+
107
+ ## Session Sources
108
+
109
+ - Claude: `~/.claude/projects/*/*.jsonl`
110
+ - Copilot: `~/.copilot/session-state/<session-id>/`
sede-0.1.4/README.md ADDED
@@ -0,0 +1,91 @@
1
+ # sede: SEssion DEleter
2
+
3
+ _Delete archived coding assistant sessions from terminal, fast and safely._
4
+
5
+ [![CI](https://img.shields.io/github/actions/workflow/status/ilypopv/sede/ci.yml?style=flat-square&label=CI)](https://github.com/ilypopv/sede/actions/workflows/ci.yml)
6
+ [![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE)
7
+
8
+ ## Features
9
+
10
+ - Interactive TUI flow for provider selection and session deletion
11
+ - Supports `Claude Code` and `GitHub Copilot`
12
+ - Multi-select deletion with confirmation
13
+ - Storage-aware list: title, project path, storage path, size, updated-at
14
+ - Safe Claude cleanup: removes selected session file and prunes empty project directory
15
+
16
+ ## Installation
17
+
18
+ ```bash
19
+ pipx install sede
20
+ ```
21
+
22
+ ## Run
23
+
24
+ After installation, run:
25
+
26
+ ```bash
27
+ sede
28
+ ```
29
+
30
+ ## TUI Preview
31
+
32
+ Main screen:
33
+
34
+ ```text
35
+ _
36
+ ___ ___ __| | ___
37
+ / __|/ _ \/ _` |/ _ \
38
+ \__ \ __/ (_| | __/
39
+ |___/\___|\__,_|\___|
40
+
41
+ Session Deleter v0.1.4
42
+ https://github.com/ilypopv/sede/
43
+ Deep clean archived coding assistant sessions from your device.
44
+
45
+ Choose coding assistant
46
+ ➤ 1. Claude Code
47
+ Delete archived Claude Code sessions
48
+
49
+ 2. GitHub Copilot
50
+ Delete archived Copilot sessions
51
+
52
+ ↑↓ Navigate | Enter / → Select | Ctrl+C / Q Quit
53
+ ```
54
+
55
+ Session selection screen:
56
+
57
+ ```text
58
+ Available sessions: Claude Code
59
+ 1 session(s) loaded. Total size: 1.5 MB.
60
+
61
+ Choose sessions to delete
62
+ » ○ Session title...
63
+ /Users/you/project-path
64
+ ~/.claude/projects/-Users-you-project/
65
+ 1.5 MB | 2026-07-03 09:44 UTC
66
+
67
+ ↑↓ Navigate | ← Back | Space Select | A Toggle All | Enter Delete | Ctrl+C / Q Quit
68
+ ```
69
+
70
+ When no sessions are found for a provider, the same screen layout is shown instead:
71
+
72
+ ```text
73
+ Available sessions: Claude Code
74
+ 0 session(s) loaded. Total size: 0 B.
75
+
76
+ No sessions found for Claude Code.
77
+
78
+ Press any key to go back...
79
+ ```
80
+
81
+ ## Safety Notes
82
+
83
+ - Deletion is permanent.
84
+ - Claude: deletes selected `.jsonl` session file, then removes parent project dir only if empty.
85
+ - Copilot: deletes the selected session directory recursively.
86
+ - Always review selected entries before confirming.
87
+
88
+ ## Session Sources
89
+
90
+ - Claude: `~/.claude/projects/*/*.jsonl`
91
+ - Copilot: `~/.copilot/session-state/<session-id>/`
@@ -0,0 +1,41 @@
1
+ [build-system]
2
+ requires = ["setuptools>=69.0", "wheel>=0.42"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "sede"
7
+ version = "0.1.4"
8
+ description = "Session deleter for coding assistants"
9
+ readme = { file = "README.md", content-type = "text/markdown" }
10
+ license = { text = "MIT" }
11
+ authors = [{ name = "Ilya Popov", email = "ilypopv@gmail.com" }]
12
+ requires-python = ">=3.9"
13
+ dependencies = ["typer>=0.12,<1.0", "questionary>=2.0,<3.0", "rich>=13.7,<14.0"]
14
+
15
+ [project.optional-dependencies]
16
+ dev = ["pytest>=8.2,<9.0", "pytest-cov>=5.0,<6.0"]
17
+
18
+ [project.urls]
19
+ Homepage = "https://github.com/ilypopv/sede"
20
+ Repository = "https://github.com/ilypopv/sede"
21
+
22
+ [project.scripts]
23
+ sede = "sede.cli:app"
24
+
25
+ [tool.setuptools]
26
+ package-dir = { "" = "src" }
27
+
28
+ [tool.setuptools.packages.find]
29
+ where = ["src"]
30
+
31
+ [tool.pytest.ini_options]
32
+ testpaths = ["tests"]
33
+ addopts = "-ra --strict-markers --strict-config --cov=src/sede --cov-report=term-missing --cov-report=xml --cov-fail-under=90"
34
+
35
+ [tool.coverage.run]
36
+ branch = true
37
+ source = ["src/sede"]
38
+
39
+ [tool.coverage.report]
40
+ show_missing = true
41
+ skip_covered = false
sede-0.1.4/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,10 @@
1
+ """Top-level package for the sede CLI application."""
2
+
3
+ from importlib.metadata import PackageNotFoundError, version
4
+
5
+ __all__ = ["__version__"]
6
+
7
+ try:
8
+ __version__ = version("sede")
9
+ except PackageNotFoundError:
10
+ __version__ = "0+unknown"
@@ -0,0 +1,6 @@
1
+ """Module entrypoint for running sede as `python -m sede`."""
2
+
3
+ from .cli import app
4
+
5
+ if __name__ == "__main__":
6
+ app()