Item 7: tools/live_contract_check.py (real headless agent, hooks from this clone, temporary sisi data; ordinary and careless scenarios, replay mode); the message says parking loses nothing; unit show finds the open unit by id. done / next: repeat runs, timing, report
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d21fb60f84
commit
2ed9c69b3a
3 files changed
+414
-3
No files matched your search
@@ -937,6 +937,14 @@ def cmd_unit(args, cwd=None, out=print):
|
||||
return 0
|
||||
p = C.find(cwd)
|
||||
project = C.project_dir(p) if p else None
|
||||
if p:
|
||||
try:
|
||||
cur = C.load(p)
|
||||
except (OSError, ValueError):
|
||||
cur = None
|
||||
if isinstance(cur, dict) and cur.get("id") == uid and not is_closed(cur):
|
||||
out(json.dumps(cur, indent=2)) # the open unit, asked for by its id
|
||||
return 0
|
||||
if project:
|
||||
for rec in list_archives(project):
|
||||
if rec.get("id") == uid:
|
||||
|
||||
Reference in new issue
Block a user