slots-cli 0.1.0__tar.gz → 0.1.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.
@@ -0,0 +1,221 @@
1
+ Metadata-Version: 2.4
2
+ Name: slots-cli
3
+ Version: 0.1.1
4
+ Summary: Save slots for coding projects.
5
+ Home-page: https://slots.hohohocch.com
6
+ Author: hohohocch
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3.10
9
+ Classifier: Programming Language :: Python :: 3.11
10
+ Classifier: Programming Language :: Python :: 3.12
11
+ Classifier: Programming Language :: Python :: 3.13
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Environment :: Console
14
+ Classifier: Topic :: Software Development :: Version Control
15
+ Requires-Python: >=3.10
16
+ Description-Content-Type: text/markdown
17
+ Requires-Dist: colorama
18
+ Provides-Extra: dev
19
+ Requires-Dist: pytest; extra == "dev"
20
+ Provides-Extra: mcp
21
+ Requires-Dist: mcp[cli]; extra == "mcp"
22
+ Dynamic: author
23
+ Dynamic: classifier
24
+ Dynamic: description
25
+ Dynamic: description-content-type
26
+ Dynamic: home-page
27
+ Dynamic: provides-extra
28
+ Dynamic: requires-dist
29
+ Dynamic: requires-python
30
+ Dynamic: summary
31
+
32
+ ![Slots repo banner](repo_banner.png)
33
+
34
+ # Slots
35
+
36
+ [![PyPI version](https://img.shields.io/pypi/v/slots-cli.svg)](https://pypi.org/project/slots-cli/)
37
+ [![Python versions](https://img.shields.io/pypi/pyversions/slots-cli.svg)](https://pypi.org/project/slots-cli/)
38
+ [![Install](https://img.shields.io/badge/pip%20install-slots--cli-blue)](https://pypi.org/project/slots-cli/)
39
+
40
+ Save slots for your local directory - Checkpoint your progress along the way with no commitment.
41
+
42
+ Slots is a small CLI for creating save slots inside a coding project. It is useful when you want to attempt a refactor, compare approaches, or let an AI coding agent make changes while keeping an easy restore point.
43
+
44
+ ## Installation
45
+
46
+ ```powershell
47
+ pip install slots-cli
48
+ ```
49
+
50
+ For MCP support:
51
+
52
+ ```powershell
53
+ pip install "slots-cli[mcp]"
54
+ ```
55
+
56
+ ## Quickstart
57
+
58
+ Create a save slot before making risky changes:
59
+
60
+ ```powershell
61
+ slots init
62
+ slots save before-refactor
63
+ ```
64
+
65
+ Make your edits, then check what changed:
66
+
67
+ ```powershell
68
+ slots status
69
+ ```
70
+
71
+ ```diff
72
+ Difference from base state
73
+ 3 changed: 1 added, 1 modified, 1 removed
74
+
75
+ Added (1)
76
+ + new_feature.py
77
+
78
+ Modified (1)
79
+ ! app.py
80
+
81
+ Removed (1)
82
+ - old_utils.py
83
+ ```
84
+
85
+ Restore the save slot if you want to go back:
86
+
87
+ ```powershell
88
+ slots load before-refactor
89
+ ```
90
+
91
+ Undo the most recent load if you change your mind:
92
+
93
+ ```powershell
94
+ slots revert
95
+ ```
96
+
97
+ ## Commands
98
+
99
+ ### Initialize
100
+
101
+ ```powershell
102
+ slots init
103
+ ```
104
+
105
+ Creates `.slots/` and records the base state. All saves are tied to the same base state.
106
+
107
+ Refresh the base state:
108
+
109
+ ```powershell
110
+ slots init --refresh
111
+ ```
112
+
113
+ This clears existing save slots and aligns the base state with the current respository.
114
+
115
+ ### Save
116
+
117
+ ```powershell
118
+ slots save before-refactor
119
+ ```
120
+
121
+ Creates a named save slot from the current project state.
122
+
123
+ ### Status
124
+
125
+ ```powershell
126
+ slots status
127
+ ```
128
+
129
+ Shows differences between the current project and the base state.
130
+
131
+ ```powershell
132
+ slots status --latest
133
+ ```
134
+
135
+ Shows differences between the current project and the most recent save slot.
136
+
137
+ ### List
138
+
139
+ ```powershell
140
+ slots list
141
+ ```
142
+
143
+ Lists save slots.
144
+
145
+ ### Load
146
+
147
+ ```powershell
148
+ slots load before-refactor
149
+ ```
150
+
151
+ Loads added and modified files from a save slot.
152
+
153
+ ```powershell
154
+ slots load before-refactor --remove-files
155
+ ```
156
+
157
+ Also removes files that were deleted in the save slot.
158
+
159
+ ### Revert
160
+
161
+ ```powershell
162
+ slots revert
163
+ ```
164
+
165
+ Reverts the most recent load using the automatic pre-load backup.
166
+
167
+ ### Delete
168
+
169
+ ```powershell
170
+ slots delete before-refactor
171
+ ```
172
+
173
+ Deletes a save slot.
174
+
175
+ ### Reset
176
+
177
+ ```powershell
178
+ slots reset
179
+ ```
180
+
181
+ Deletes all Slots data from the project.
182
+
183
+ ## MCP Support
184
+
185
+ Slots includes a MCP server so AI coding tools can create and restore save slots.
186
+
187
+ Install with MCP support:
188
+
189
+ ```powershell
190
+ pip install "slots-cli[mcp]"
191
+ ```
192
+
193
+ Then run the MCP server:
194
+
195
+ ```powershell
196
+ slots-mcp
197
+ ```
198
+
199
+ ### Common Installation commands:
200
+
201
+ **Codex**
202
+
203
+ ```powershell
204
+ codex mcp add slots -- slots-mcp
205
+ ```
206
+
207
+ **Claude Code**
208
+
209
+ ```powershell
210
+ claude mcp add slots -- slots-mcp
211
+ ```
212
+
213
+ ## Notes
214
+
215
+ Slots is not a replacement for Git - it is designed to work alongside it as a lightweight local checkpoint tool.
216
+
217
+ Before loading a slot, Slots creates a backup in `.slots/backups/`. You can restore the latest load with:
218
+
219
+ ```powershell
220
+ slots revert
221
+ ```
@@ -2,6 +2,10 @@
2
2
 
3
3
  # Slots
4
4
 
5
+ [![PyPI version](https://img.shields.io/pypi/v/slots-cli.svg)](https://pypi.org/project/slots-cli/)
6
+ [![Python versions](https://img.shields.io/pypi/pyversions/slots-cli.svg)](https://pypi.org/project/slots-cli/)
7
+ [![Install](https://img.shields.io/badge/pip%20install-slots--cli-blue)](https://pypi.org/project/slots-cli/)
8
+
5
9
  Save slots for your local directory - Checkpoint your progress along the way with no commitment.
6
10
 
7
11
  Slots is a small CLI for creating save slots inside a coding project. It is useful when you want to attempt a refactor, compare approaches, or let an AI coding agent make changes while keeping an easy restore point.
@@ -0,0 +1,3 @@
1
+ [build-system]
2
+ requires = ["setuptools>=77.0.3", "wheel"]
3
+ build-backend = "setuptools.build_meta"
@@ -0,0 +1,38 @@
1
+ from pathlib import Path
2
+
3
+ from setuptools import find_packages, setup
4
+
5
+ readme = Path("README.md").read_text(encoding="utf-8")
6
+
7
+ setup(
8
+ name="slots-cli",
9
+ version="0.1.1",
10
+ packages=find_packages(),
11
+ description="Save slots for coding projects.",
12
+ long_description=readme,
13
+ long_description_content_type="text/markdown",
14
+ author="hohohocch",
15
+ url="https://slots.hohohocch.com",
16
+ python_requires=">=3.10",
17
+ classifiers=[
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3.10",
20
+ "Programming Language :: Python :: 3.11",
21
+ "Programming Language :: Python :: 3.12",
22
+ "Programming Language :: Python :: 3.13",
23
+ "Operating System :: OS Independent",
24
+ "Environment :: Console",
25
+ "Topic :: Software Development :: Version Control",
26
+ ],
27
+ install_requires=["colorama"],
28
+ entry_points={
29
+ "console_scripts": [
30
+ "slots = slots.__main__:main",
31
+ "slots-mcp = slots.slots_mcp:main",
32
+ ],
33
+ },
34
+ extras_require={
35
+ "dev": ["pytest"],
36
+ "mcp": ["mcp[cli]"],
37
+ },
38
+ )
@@ -0,0 +1,221 @@
1
+ Metadata-Version: 2.4
2
+ Name: slots-cli
3
+ Version: 0.1.1
4
+ Summary: Save slots for coding projects.
5
+ Home-page: https://slots.hohohocch.com
6
+ Author: hohohocch
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3.10
9
+ Classifier: Programming Language :: Python :: 3.11
10
+ Classifier: Programming Language :: Python :: 3.12
11
+ Classifier: Programming Language :: Python :: 3.13
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Environment :: Console
14
+ Classifier: Topic :: Software Development :: Version Control
15
+ Requires-Python: >=3.10
16
+ Description-Content-Type: text/markdown
17
+ Requires-Dist: colorama
18
+ Provides-Extra: dev
19
+ Requires-Dist: pytest; extra == "dev"
20
+ Provides-Extra: mcp
21
+ Requires-Dist: mcp[cli]; extra == "mcp"
22
+ Dynamic: author
23
+ Dynamic: classifier
24
+ Dynamic: description
25
+ Dynamic: description-content-type
26
+ Dynamic: home-page
27
+ Dynamic: provides-extra
28
+ Dynamic: requires-dist
29
+ Dynamic: requires-python
30
+ Dynamic: summary
31
+
32
+ ![Slots repo banner](repo_banner.png)
33
+
34
+ # Slots
35
+
36
+ [![PyPI version](https://img.shields.io/pypi/v/slots-cli.svg)](https://pypi.org/project/slots-cli/)
37
+ [![Python versions](https://img.shields.io/pypi/pyversions/slots-cli.svg)](https://pypi.org/project/slots-cli/)
38
+ [![Install](https://img.shields.io/badge/pip%20install-slots--cli-blue)](https://pypi.org/project/slots-cli/)
39
+
40
+ Save slots for your local directory - Checkpoint your progress along the way with no commitment.
41
+
42
+ Slots is a small CLI for creating save slots inside a coding project. It is useful when you want to attempt a refactor, compare approaches, or let an AI coding agent make changes while keeping an easy restore point.
43
+
44
+ ## Installation
45
+
46
+ ```powershell
47
+ pip install slots-cli
48
+ ```
49
+
50
+ For MCP support:
51
+
52
+ ```powershell
53
+ pip install "slots-cli[mcp]"
54
+ ```
55
+
56
+ ## Quickstart
57
+
58
+ Create a save slot before making risky changes:
59
+
60
+ ```powershell
61
+ slots init
62
+ slots save before-refactor
63
+ ```
64
+
65
+ Make your edits, then check what changed:
66
+
67
+ ```powershell
68
+ slots status
69
+ ```
70
+
71
+ ```diff
72
+ Difference from base state
73
+ 3 changed: 1 added, 1 modified, 1 removed
74
+
75
+ Added (1)
76
+ + new_feature.py
77
+
78
+ Modified (1)
79
+ ! app.py
80
+
81
+ Removed (1)
82
+ - old_utils.py
83
+ ```
84
+
85
+ Restore the save slot if you want to go back:
86
+
87
+ ```powershell
88
+ slots load before-refactor
89
+ ```
90
+
91
+ Undo the most recent load if you change your mind:
92
+
93
+ ```powershell
94
+ slots revert
95
+ ```
96
+
97
+ ## Commands
98
+
99
+ ### Initialize
100
+
101
+ ```powershell
102
+ slots init
103
+ ```
104
+
105
+ Creates `.slots/` and records the base state. All saves are tied to the same base state.
106
+
107
+ Refresh the base state:
108
+
109
+ ```powershell
110
+ slots init --refresh
111
+ ```
112
+
113
+ This clears existing save slots and aligns the base state with the current respository.
114
+
115
+ ### Save
116
+
117
+ ```powershell
118
+ slots save before-refactor
119
+ ```
120
+
121
+ Creates a named save slot from the current project state.
122
+
123
+ ### Status
124
+
125
+ ```powershell
126
+ slots status
127
+ ```
128
+
129
+ Shows differences between the current project and the base state.
130
+
131
+ ```powershell
132
+ slots status --latest
133
+ ```
134
+
135
+ Shows differences between the current project and the most recent save slot.
136
+
137
+ ### List
138
+
139
+ ```powershell
140
+ slots list
141
+ ```
142
+
143
+ Lists save slots.
144
+
145
+ ### Load
146
+
147
+ ```powershell
148
+ slots load before-refactor
149
+ ```
150
+
151
+ Loads added and modified files from a save slot.
152
+
153
+ ```powershell
154
+ slots load before-refactor --remove-files
155
+ ```
156
+
157
+ Also removes files that were deleted in the save slot.
158
+
159
+ ### Revert
160
+
161
+ ```powershell
162
+ slots revert
163
+ ```
164
+
165
+ Reverts the most recent load using the automatic pre-load backup.
166
+
167
+ ### Delete
168
+
169
+ ```powershell
170
+ slots delete before-refactor
171
+ ```
172
+
173
+ Deletes a save slot.
174
+
175
+ ### Reset
176
+
177
+ ```powershell
178
+ slots reset
179
+ ```
180
+
181
+ Deletes all Slots data from the project.
182
+
183
+ ## MCP Support
184
+
185
+ Slots includes a MCP server so AI coding tools can create and restore save slots.
186
+
187
+ Install with MCP support:
188
+
189
+ ```powershell
190
+ pip install "slots-cli[mcp]"
191
+ ```
192
+
193
+ Then run the MCP server:
194
+
195
+ ```powershell
196
+ slots-mcp
197
+ ```
198
+
199
+ ### Common Installation commands:
200
+
201
+ **Codex**
202
+
203
+ ```powershell
204
+ codex mcp add slots -- slots-mcp
205
+ ```
206
+
207
+ **Claude Code**
208
+
209
+ ```powershell
210
+ claude mcp add slots -- slots-mcp
211
+ ```
212
+
213
+ ## Notes
214
+
215
+ Slots is not a replacement for Git - it is designed to work alongside it as a lightweight local checkpoint tool.
216
+
217
+ Before loading a slot, Slots creates a backup in `.slots/backups/`. You can restore the latest load with:
218
+
219
+ ```powershell
220
+ slots revert
221
+ ```
@@ -1,4 +1,5 @@
1
1
  README.md
2
+ pyproject.toml
2
3
  setup.py
3
4
  slots/__init__.py
4
5
  slots/__main__.py
slots_cli-0.1.0/PKG-INFO DELETED
@@ -1,18 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: slots-cli
3
- Version: 0.1.0
4
- Summary: Save slots for coding projects.
5
- Home-page: https://slots.hohohocch.com
6
- Author: hohohocch
7
- Requires-Python: >=3.10
8
- Requires-Dist: colorama
9
- Provides-Extra: dev
10
- Requires-Dist: pytest; extra == "dev"
11
- Provides-Extra: mcp
12
- Requires-Dist: mcp[cli]; extra == "mcp"
13
- Dynamic: author
14
- Dynamic: home-page
15
- Dynamic: provides-extra
16
- Dynamic: requires-dist
17
- Dynamic: requires-python
18
- Dynamic: summary
slots_cli-0.1.0/setup.py DELETED
@@ -1,22 +0,0 @@
1
- from setuptools import find_packages, setup
2
-
3
- setup(
4
- name="slots-cli",
5
- version="0.1.0",
6
- packages=find_packages(),
7
- description="Save slots for coding projects.",
8
- author="hohohocch",
9
- url="https://slots.hohohocch.com",
10
- python_requires=">=3.10",
11
- install_requires=["colorama"],
12
- entry_points={
13
- "console_scripts": [
14
- "slots = slots.__main__:main",
15
- "slots-mcp = slots.slots_mcp:main",
16
- ],
17
- },
18
- extras_require={
19
- "dev": ["pytest"],
20
- "mcp": ["mcp[cli]"],
21
- },
22
- )
@@ -1,18 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: slots-cli
3
- Version: 0.1.0
4
- Summary: Save slots for coding projects.
5
- Home-page: https://slots.hohohocch.com
6
- Author: hohohocch
7
- Requires-Python: >=3.10
8
- Requires-Dist: colorama
9
- Provides-Extra: dev
10
- Requires-Dist: pytest; extra == "dev"
11
- Provides-Extra: mcp
12
- Requires-Dist: mcp[cli]; extra == "mcp"
13
- Dynamic: author
14
- Dynamic: home-page
15
- Dynamic: provides-extra
16
- Dynamic: requires-dist
17
- Dynamic: requires-python
18
- Dynamic: summary
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes