feat(compiler): implement typed registry and production PBX conformance (AGD76)
This commit is contained in:
@@ -245,7 +245,9 @@ final class HeadlessProcessSession implements HeadlessGateway.Session {
|
||||
default -> AutomationFailure.Code.INFRASTRUCTURE_FAILURE;
|
||||
};
|
||||
pending.remove(item.id);
|
||||
item.result.completeExceptionally(new AutomationException(code, "Runtime " + error.path("code").asText() + ": " + error.path("message").asText()));
|
||||
Map<String, Object> runtimeError = mapper.convertValue(error, new com.fasterxml.jackson.core.type.TypeReference<>() {});
|
||||
item.result.completeExceptionally(new AutomationException(new AutomationFailure(code,
|
||||
"Runtime " + error.path("code").asText() + ": " + error.path("message").asText(), runtimeError)));
|
||||
} else {
|
||||
var result = message.get("result");
|
||||
if (item.command.equals("cancel") && (!result.path("requested").isBoolean() || !result.path("requested").booleanValue()
|
||||
|
||||
Reference in New Issue
Block a user