@caddis/cli 0.4.105 → 0.4.106
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/bundles/antigravity-plugin/plugin.json +1 -1
- package/bundles/antigravity-plugin/repo_hygiene.py +3 -4
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_exit.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_file_lock.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_frontmatter.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_redact.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_roadmap.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_rows.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_status.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_tidy.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_todo.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_workstreams.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_worktree_safety.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/caddis_guide.json +2 -2
- package/bundles/manifest.json +2 -2
- package/package.json +1 -1
|
@@ -586,7 +586,8 @@ def _claim_stamp(stamp: Path, now: float) -> bool:
|
|
|
586
586
|
"""True when this process won the sweep for this window. Two sessions that start at once: exactly one wins.
|
|
587
587
|
|
|
588
588
|
The stamp is created with O_EXCL. An existing stamp inside the window means no. An expired one is moved aside
|
|
589
|
-
with one rename (only one racer's rename succeeds), then created again with O_EXCL.
|
|
589
|
+
with one rename (only one racer's rename succeeds), then created again with O_EXCL. An empty stamp (a racer
|
|
590
|
+
has not written the time yet, or was killed before it did) dates from its modified time, so it expires too.
|
|
590
591
|
"""
|
|
591
592
|
for _ in range(2):
|
|
592
593
|
try:
|
|
@@ -594,9 +595,7 @@ def _claim_stamp(stamp: Path, now: float) -> bool:
|
|
|
594
595
|
except FileExistsError:
|
|
595
596
|
try:
|
|
596
597
|
text = stamp.read_text(encoding="utf-8").strip()
|
|
597
|
-
|
|
598
|
-
return False
|
|
599
|
-
last = float(text)
|
|
598
|
+
last = float(text) if text else stamp.stat().st_mtime
|
|
600
599
|
except ValueError:
|
|
601
600
|
last = 0.0 # unreadable: treat as expired
|
|
602
601
|
except OSError:
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bundles/antigravity-plugin/scripts/__pycache__/caddis_worktree_safety.cpython-311.pyc
CHANGED
|
Binary file
|
package/bundles/manifest.json
CHANGED
package/package.json
CHANGED