@caddis/cli 0.4.110 → 0.4.111
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 +4 -3
- 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
|
@@ -591,7 +591,8 @@ def _claim_stamp(folder: Path, now: float) -> Path | None:
|
|
|
591
591
|
deletes a claim that another racer may still be reading, so a racer that read an expired claim cannot remove a
|
|
592
592
|
fresh one. An empty claim (a racer has not written the time yet, or was killed before it did) dates from its
|
|
593
593
|
modified time, so it expires too. Claims older than the previous one are deleted; the previous one stays, so a
|
|
594
|
-
slow racer that read it fails its O_EXCL on ours.
|
|
594
|
+
slow racer that read it fails its O_EXCL on ours. A claim later than `now` is live while it is less than one
|
|
595
|
+
window ahead (the winner read its clock after this caller did); further ahead, the clock was wrong: expired.
|
|
595
596
|
"""
|
|
596
597
|
numbers = sorted((int(p.name) for p in folder.iterdir() if p.name.isascii() and p.name.isdigit()), reverse=True)
|
|
597
598
|
newest = numbers[0] if numbers else 0
|
|
@@ -603,8 +604,8 @@ def _claim_stamp(folder: Path, now: float) -> Path | None:
|
|
|
603
604
|
last = 0.0 # unreadable: treat as expired
|
|
604
605
|
except OSError:
|
|
605
606
|
return None
|
|
606
|
-
if
|
|
607
|
-
return None
|
|
607
|
+
if -ORCA_SWEEP_EVERY_S < now - last < ORCA_SWEEP_EVERY_S:
|
|
608
|
+
return None # a claim up to one window ahead is live: another session read its clock a little later
|
|
608
609
|
claim = folder / str(newest + 1)
|
|
609
610
|
try:
|
|
610
611
|
fd = os.open(claim, os.O_CREAT | os.O_EXCL | os.O_WRONLY)
|
|
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