feat: add HWLAB test account sync

This commit is contained in:
Codex
2026-06-15 04:25:52 +00:00
parent c4cbe70b6d
commit a51b091387
6 changed files with 693 additions and 4 deletions
+7 -1
View File
@@ -134,12 +134,16 @@ export async function runHwlabNodeCommand(_config: Config, args: string[]): Prom
if (args.length === 2 || args.includes("--help") || args.includes("-h") || args[2] === "help") return hwlabNodeControlPlaneInfraHelp();
return runHwlabNodeControlPlaneInfra(args.slice(2));
}
if (domain === "test-accounts") {
const { runHwlabTestAccountsCommand } = await import("./hwlab-test-accounts");
return runHwlabTestAccountsCommand(args.slice(1));
}
if (args.includes("--help") || args.includes("-h")) return hwlabNodeHelp();
if (domain === "control-plane" || domain === "git-mirror") {
return runNodeDelegatedDomain(_config, domain, args.slice(1));
}
if (domain !== "secret") {
return { ok: false, command: `hwlab nodes ${domain ?? ""}`.trim(), message: "supported commands: hwlab nodes control-plane, hwlab nodes git-mirror, hwlab nodes secret" };
return { ok: false, command: `hwlab nodes ${domain ?? ""}`.trim(), message: "supported commands: hwlab nodes control-plane, hwlab nodes git-mirror, hwlab nodes secret, hwlab nodes test-accounts" };
}
const options = parseSecretOptions(args.slice(1));
return runNodeSecret(options);
@@ -183,6 +187,8 @@ export function hwlabNodeHelp(): Record<string, unknown> {
"bun scripts/cli.ts hwlab nodes secret cleanup-obsolete --node G14 --lane v03 --name hwpod-v03-db --confirm",
"bun scripts/cli.ts hwlab nodes secret status --node G14 --lane v03 --name hwlab-v03-code-agent-provider",
"bun scripts/cli.ts hwlab nodes secret ensure --node G14 --lane v03 --name hwlab-v03-code-agent-provider --confirm",
"bun scripts/cli.ts hwlab nodes test-accounts status --node D601 --lane v03",
"bun scripts/cli.ts hwlab nodes test-accounts sync --node D601 --lane v03 --confirm",
],
};
}