stackprep-pro 0.2.21__py3-none-any.whl → 0.2.22__py3-none-any.whl

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.
stackprep_pro/server.py CHANGED
@@ -406,9 +406,14 @@ def list_sessions(mode: str = "") -> str:
406
406
  continue
407
407
  if mode and data.get("mode", "") != mode:
408
408
  continue
409
- # Only show sessions the user explicitly saved (named). Unnamed auto-persisted
410
- # sessions are not surfaced unless the user named them via save_session.
411
- if not data.get("session_name", "").strip():
409
+ # Show a session if EITHER it was explicitly saved (named via save_session)
410
+ # OR it is still in progress (not ended). An unnamed in-progress session on disk
411
+ # means the process ended without a clean exit (a crash / hard-close) — we surface
412
+ # it so progress isn't lost. Sessions the user explicitly discards on exit are
413
+ # deleted by discard_session, so they never reach here.
414
+ named = data.get("session_name", "").strip()
415
+ in_progress = not data.get("ended", False)
416
+ if not (named or in_progress):
412
417
  continue
413
418
  rows.append((f.stem, data))
414
419
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stackprep-pro
3
- Version: 0.2.21
3
+ Version: 0.2.22
4
4
  Summary: stackprep-pro — interview & certification prep MCP server for any AI client
5
5
  Project-URL: Homepage, https://github.com/youngpada1/stackprep-pro
6
6
  Project-URL: Repository, https://github.com/youngpada1/stackprep-pro
@@ -0,0 +1,8 @@
1
+ stackprep_pro/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ stackprep_pro/server.py,sha256=h04Z3oiP4Gi-nZEWfZSQ63747bLVwTHWzWXI8vfva88,20822
3
+ stackprep_pro/skills/certification.md,sha256=XeDicaQyRVC5PeV0eawwkb31SIylOVG7DqAWtIOBlNs,6724
4
+ stackprep_pro/skills/interview.md,sha256=G2debQDqIU-UpIfRbjKwalx9_4dZrr1BwjZi5F2VMRo,6704
5
+ stackprep_pro-0.2.22.dist-info/METADATA,sha256=Bu1rGesWhn-9X8ON8bMY4RCuxr-r9F372YFQrH420ME,8085
6
+ stackprep_pro-0.2.22.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
7
+ stackprep_pro-0.2.22.dist-info/entry_points.txt,sha256=DGlPLlB4ZCqcNBs8PVMfOR8iklxbucEeIFvaECa_XuA,60
8
+ stackprep_pro-0.2.22.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- stackprep_pro/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- stackprep_pro/server.py,sha256=jrRAgLqw0Summk_NHvrwCtA_jj45G3cOJzSmS4FVuQk,20483
3
- stackprep_pro/skills/certification.md,sha256=XeDicaQyRVC5PeV0eawwkb31SIylOVG7DqAWtIOBlNs,6724
4
- stackprep_pro/skills/interview.md,sha256=G2debQDqIU-UpIfRbjKwalx9_4dZrr1BwjZi5F2VMRo,6704
5
- stackprep_pro-0.2.21.dist-info/METADATA,sha256=8RhUBD4onhDKRRnzARyQjjwNX0Z-ALdFOsIpX1tVw7Q,8085
6
- stackprep_pro-0.2.21.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
7
- stackprep_pro-0.2.21.dist-info/entry_points.txt,sha256=DGlPLlB4ZCqcNBs8PVMfOR8iklxbucEeIFvaECa_XuA,60
8
- stackprep_pro-0.2.21.dist-info/RECORD,,