去敏感提交

This commit is contained in:
2026-09-13 18:43:25 +08:00
parent 89021eb9f8
commit 599eea40d6
249 changed files with 16272 additions and 31659 deletions
+4 -4
View File
@@ -11,11 +11,11 @@ const REPO = process.env.REPO;
if (!REPO) throw new Error("REPO env required");
// ---- 构造一局日志:复刻"原点换频道"致病模式(第一步原地检测且换频道) ----
function base(id) { return { arena_id: "default", robot_id: "2026001", request_id: id }; }
function base(id) { return { arena_id: "default", robot_id: "TEAM-0001", request_id: id }; }
const sources = [{ channel: 4, x: 100, y: 0, r_eff_m: 1200, directional: false, heading_deg: 0 }];
const refereeLog = [
JSON.stringify({ event: "session_start", case_code: "TEST-CASE-0001", module: "q3_practice",
robot_id: "2026001", seed: 9, truth: sources }),
robot_id: "TEAM-0001", seed: 9, truth: sources }),
JSON.stringify({ event: "action", seq: 1, method: "POST", path: "/enter", status: 200,
request: base("e1"), response: { accepted: true, virtual_time_s: 0,
remaining_real_duration_s: 1200 } }),
@@ -99,10 +99,10 @@ const replayEvents = refereeLog.split("\n").map((l) => JSON.parse(l));
globalThis.fetch = async (url) => {
const json = async () => {
if (url.startsWith("/ui/api/sessions"))
return { sessions: [{ case_code: "TEST-CASE-0001", module: "q3_practice", robot_id: "2026001" }] };
return { sessions: [{ case_code: "TEST-CASE-0001", module: "q3_practice", robot_id: "TEAM-0001" }] };
if (url.startsWith("/ui/api/replay"))
return { case_code: "TEST-CASE-0001", module: "q3_practice",
meta: { module: "q3_practice", robot_id: "2026001", truth: sources }, events: replayEvents };
meta: { module: "q3_practice", robot_id: "TEAM-0001", truth: sources }, events: replayEvents };
if (url.startsWith("/ui/api/state"))
return { phase: "idle", action_port: 2026, display_limit: 1000, modules: {}, attempts: {} };
throw new Error("unexpected fetch " + url);