feat: add NAS management UI and operation history

This commit is contained in:
OpenClaw Agent
2026-09-18 06:53:57 +08:00
parent 0660d1f874
commit a0673ab79e
8 changed files with 247 additions and 7 deletions
+9
View File
@@ -7,6 +7,7 @@ from .exact import exact_dedupe
from .l2 import acoustic_dedupe
from .scanner import scan
from .watcher import watch
from .web import serve
def _db_path(root: Path, explicit: Path | None) -> Path:
@@ -28,12 +29,20 @@ def main() -> None:
if name != "scan":
sp.add_argument("--dry-run", action="store_true")
srv = sub.add_parser("server")
srv.add_argument("--host", default="0.0.0.0")
srv.add_argument("--port", type=int, default=8080)
wp = sub.add_parser("watch")
wp.add_argument("root", type=Path)
wp.add_argument("--db", type=Path, default=None)
wp.add_argument("--l2", action="store_true", help="enable acoustic matching")
args = parser.parse_args()
if args.cmd == "server":
serve(args.host, args.port)
return
db = _db_path(args.root, args.db)
if args.cmd == "watch":