copy(server): 刮削原因与登录提示补改;同步数据清理、整理守卫等断言

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-10-07 02:05:14 +08:00
1 parent 0019dc1afe
commit c7a7d7ec2c
8 files changed
+14 -14

No files matched your search

@@ -355,7 +355,7 @@ export function organizeDecisionHook(d: AoDeps): DecisionHook {
`decision-${key}`,
);
if (r.status !== "running" && r.status !== "queued")
throw new HookError("conflict", `重新整理仍未能执行:${r.reason ?? r.status}`);
throw new HookError("conflict", `重新整理没能执行:${r.reason ?? r.status}`);
return { kind: "organize", choice: key, ...r };
},
};
@@ -494,7 +494,7 @@ export async function refreshSiteAccount(
if (r.kind === "ok") return await succeed(r.info);
return await succeed(
null,
`登录成功;用户数据未取到:${r.kind === "no_parser" ? "站点没有用户数据解析器" : r.message}`,
`登录成功,但没取到用户数据:${r.kind === "no_parser" ? "站点没有用户数据解析器" : r.message}`,
);
}
const plain = await secrets.resolve(acc.secret_ref);