feat: add test-preflight runner and deployer prepare adapters

agent-runtime executes fixed tester node operations over JSON stdin.
deployer prepare brings up the local test Compose service the same way.
test-preflight now passes the tester binding; tester select skips
unauthorized cases before creating a runner.
This commit is contained in:
2026-10-19 09:28:50 +08:00
parent 9075ff6a5a
commit adaa8e4edd
9 changed files with 1179 additions and 11 deletions
+3
View File
@@ -210,6 +210,9 @@ def android_identity(path: Path, context: RuntimeContext) -> str:
for command in commands:
result = run_command(command, context=context)
if result.code == 0:
plain = result.output.strip()
if re.fullmatch(r"[A-Za-z][A-Za-z0-9_.-]*", plain):
return plain
match = re.search(r"(?:name|application-id)[=:]['\"]?([A-Za-z0-9_.]+)", result.output)
if match:
return match.group(1)