Add vector infrastructure maps and persistent location experience
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
"""Package current source plus simulation adapters into a digest-addressed archive."""
|
||||
|
||||
import argparse
|
||||
import ast
|
||||
import hashlib
|
||||
import json
|
||||
import tarfile
|
||||
@@ -23,6 +24,11 @@ for profile in (root / "simulation/ai-polygon/robots").glob("*.json"):
|
||||
asset = root / json.loads(profile.read_text())["visual"]["source"]
|
||||
if asset not in files:
|
||||
files.append(asset)
|
||||
# Reject a broken Python artifact before staging or touching the running worker.
|
||||
for source in files:
|
||||
if source.suffix == ".py":
|
||||
ast.parse(source.read_bytes(), filename=str(source))
|
||||
|
||||
manifest = {
|
||||
p.relative_to(root).as_posix(): hashlib.sha256(p.read_bytes()).hexdigest() for p in files
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user