Complete 3axis tutorial native and Web/WASM parity tools
This commit is contained in:
@@ -27,7 +27,8 @@ export class AxisOperationController {
|
||||
async execute(kind, payload = {}, { state = {}, action = COMMAND_ACTIONS[kind] ?? null, gate = true } = {}) {
|
||||
const operationId = this.nextOperationId(kind);
|
||||
const gateResult = action ? axisGate(action, state) : { action: null, enabled: true, reason: "axis_unrestricted_internal_command" };
|
||||
if (gate && !gateResult.enabled) {
|
||||
const authoritativeGate = action && state?.gates?.[action];
|
||||
if (gate && !gateResult.enabled && !authoritativeGate) {
|
||||
this.trace.push(Object.freeze({ operation_id: operationId, kind, action, phase: "blocked", reason: gateResult.reason }));
|
||||
throw new AxisGateError(gateResult);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user