feat(fleet): integrate independent trackers, VPS pairing and recoverable commands

This commit is contained in:
DCCONSTRUCTIONS
2026-09-28 18:44:12 +03:00
parent d684eb7e05
commit f3a7592d90
45 changed files with 10006 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
"""Archive a local firmware file without contacting or flashing any device."""
import argparse
import json
from pathlib import Path
from k1link.device_plugins.arnavi_b2.firmware import KNOWN_IMAGES
from k1link.fleet.equipment_firmware import FirmwareArchive
def main() -> None:
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--fleet-root", required=True, type=Path)
parser.add_argument("--file", required=True, type=Path)
parser.add_argument("--filename")
args = parser.parse_args()
store = FirmwareArchive(args.fleet_root, {"arnavi-b2": KNOWN_IMAGES})
item = store.add("arnavi-b2", args.filename or args.file.name, args.file.read_bytes())
print(json.dumps(item, ensure_ascii=False))
if __name__ == "__main__":
main()