feat: complete TASK-WP0-01 toolchain skeleton

This commit is contained in:
suyx
2026-07-27 17:13:01 +08:00
parent 67e7a17d96
commit ae20eaf01f
39 changed files with 3588 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
const allowedServices = new Set(["ai", "resend", "amap"]);
function argument(name) {
const index = process.argv.indexOf(name);
return index >= 0 ? process.argv[index + 1] : undefined;
}
const service = argument("--service");
const runId = argument("--run-id");
if (!allowedServices.has(service) || !runId) {
console.error("Usage: pnpm validate:external -- --service <ai|resend|amap> --run-id <id>");
process.exit(2);
}
console.log(
JSON.stringify({
mode: "mock",
run_id: runId,
service,
status: "not_applicable_for_TASK-WP0-01",
}),
);