feat(studio): deliver asset authoring and automation workflows
Add shared human/task asset batches with reviewed atomic publication, explicit reference rebinds, ownership inspection and qualified glyph/scene budgets. Expose the same authoring and capacity results through Assets and MCP. Deliver isolated guest test targets, retained visual evidence and immutable runtime lifecycle/control observations. Preserve provider qualification and installed authoring examples alongside the completed discussion lessons. Close AGD-106 coordination and the delivered discussion workflows through housekeeping, updating lesson references and preserving qualification limits. Sound remains outside the asset delivery wave. Validation: 579 module tests and 31 additional desktop, process and installed checks passed; native glyph/scene 16/17 boundaries qualified. Discussion validation passed after housekeeping.
This commit is contained in:
@@ -3,8 +3,8 @@ package p.studio.api.diagnostic;
|
||||
import java.util.Objects;
|
||||
import java.util.Map;
|
||||
import java.util.LinkedHashMap;
|
||||
import p.studio.utilities.json.ImmutableJson;
|
||||
import p.studio.utilities.json.DiagnosticPayloads;
|
||||
import p.studio.api.values.ValueMaps;
|
||||
import p.studio.api.diagnostic.DiagnosticValues;
|
||||
|
||||
public record StudioDiagnostic(String code, DiagnosticSeverity severity, String message, Map<String, Object> details) {
|
||||
public StudioDiagnostic(String code, DiagnosticSeverity severity, String message) { this(code, severity, message, Map.of()); }
|
||||
@@ -15,11 +15,11 @@ public record StudioDiagnostic(String code, DiagnosticSeverity severity, String
|
||||
if (code.isBlank()) {
|
||||
throw new IllegalArgumentException("code must not be blank");
|
||||
}
|
||||
var complete = new LinkedHashMap<>(DiagnosticPayloads.issue(code, severity.name(), message));
|
||||
var complete = new LinkedHashMap<>(DiagnosticValues.issue(code, severity.name(), message));
|
||||
if (details != null) complete.putAll(details);
|
||||
if (!(complete.get("issueId") instanceof String identity) || identity.isBlank())
|
||||
complete.put("issueId", java.util.UUID.randomUUID().toString());
|
||||
details = ImmutableJson.object(complete);
|
||||
details = ValueMaps.object(complete);
|
||||
}
|
||||
|
||||
public static StudioDiagnostic fromMap(Map<String, Object> value) {
|
||||
@@ -30,6 +30,6 @@ public record StudioDiagnostic(String code, DiagnosticSeverity severity, String
|
||||
public Map<String, Object> toMap() {
|
||||
var value = new LinkedHashMap<>(details);
|
||||
value.put("code", code); value.put("severity", severity.name()); value.put("message", message);
|
||||
return ImmutableJson.object(value);
|
||||
return ValueMaps.object(value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user