reconstruct: autocraft algorithm; feature: rust-style result

reconstruct:
- move queue and sortedarray to dir datatype
- move semaphore and readwritelock to dir mutex
- reconstruct autocraft search algorithm, use hashmap instead of forloop
- adjust some code style
feature:
- add rust-style result lib
This commit is contained in:
2025-10-26 10:06:50 +08:00
parent ac70e1acd3
commit 119bc1997a
13 changed files with 1077 additions and 108 deletions

View File

@@ -4,7 +4,7 @@ import { createAccessControlCLI } from "./cli";
import { launchAccessControlTUI } from "./tui";
import * as peripheralManager from "../lib/PeripheralManager";
import { deepCopy } from "@/lib/common";
import { ReadWriteLock } from "@/lib/ReadWriteLock";
import { ReadWriteLock } from "@/lib/mutex/ReadWriteLock";
const args = [...$vararg];