fix: separate Fifth Domain source deployment identities

This commit is contained in:
冰朔 2026-07-26 17:56:47 +08:00
commit 83589aa2c2
27 changed files with 620 additions and 73 deletions

View file

@ -67,6 +67,14 @@ class WorkOrderManager {
return { ok: true, approvalToken, order: publicOrder(order) };
}
bindApprover(handoffToken, authorizerId) {
const order = this.findByHandoff(handoffToken);
if (!order || order.state !== "pending") return false;
order.authorizerId = String(authorizerId || "");
this.persist();
return true;
}
failApprovalEmail(handoffToken) {
const order = this.findByHandoff(handoffToken);
if (!order || order.state !== "pending") return false;
@ -112,6 +120,7 @@ class WorkOrderManager {
action: order.action,
actions: order.allowedActions || [order.action],
resource: order.resource || "",
authorizerId: order.authorizerId || "",
createdAt: now,
expiresAt: now + this.sessionTtl,
maxExpiresAt: now + this.maxSessionLifetime,