Preserve SCUM local debug log sources
This commit is contained in:
@@ -306,6 +306,7 @@ const missing = [];
|
|||||||
const declaredPermissions = Array.isArray(plugin.declaredPermissions) ? plugin.declaredPermissions : [];
|
const declaredPermissions = Array.isArray(plugin.declaredPermissions) ? plugin.declaredPermissions : [];
|
||||||
const bridgeActions = Array.isArray(plugin.bridgeActions) ? plugin.bridgeActions : [];
|
const bridgeActions = Array.isArray(plugin.bridgeActions) ? plugin.bridgeActions : [];
|
||||||
const lifecycleProfiles = plugin.runtimeProfiles?.lifecycleProfiles ?? [];
|
const lifecycleProfiles = plugin.runtimeProfiles?.lifecycleProfiles ?? [];
|
||||||
|
const logSources = plugin.runtimeProfiles?.logSources ?? [];
|
||||||
const pageKeys = (plugin.pages ?? []).map((page) => page.key);
|
const pageKeys = (plugin.pages ?? []).map((page) => page.key);
|
||||||
if (plugin.version !== expectedVersion) {
|
if (plugin.version !== expectedVersion) {
|
||||||
missing.push(`version ${expectedVersion}`);
|
missing.push(`version ${expectedVersion}`);
|
||||||
@@ -319,6 +320,12 @@ if (!bridgeActions.includes("run.distribution.request")) {
|
|||||||
if (!lifecycleProfiles.some((profile) => profile.key === "run-local")) {
|
if (!lifecycleProfiles.some((profile) => profile.key === "run-local")) {
|
||||||
missing.push("run-local runtime profile");
|
missing.push("run-local runtime profile");
|
||||||
}
|
}
|
||||||
|
if (!logSources.some((source) => source.kind === "process.stdout" && source.streamKey === "scum.console.stdout")) {
|
||||||
|
missing.push("SCUM process stdout log source");
|
||||||
|
}
|
||||||
|
if (!logSources.some((source) => source.kind === "process.stderr" && source.streamKey === "scum.console.stderr")) {
|
||||||
|
missing.push("SCUM process stderr log source");
|
||||||
|
}
|
||||||
if (!plugin.gameClientBridge?.commands?.length) {
|
if (!plugin.gameClientBridge?.commands?.length) {
|
||||||
missing.push("game client bridge declarations");
|
missing.push("game client bridge declarations");
|
||||||
}
|
}
|
||||||
@@ -752,6 +759,7 @@ const localRuntimeProfiles = {
|
|||||||
stop: "actions/stop.json"
|
stop: "actions/stop.json"
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
|
logSources: source.runtimeProfiles?.logSources ?? [],
|
||||||
transportProfiles: source.runtimeProfiles?.transportProfiles ?? [],
|
transportProfiles: source.runtimeProfiles?.transportProfiles ?? [],
|
||||||
clientManagers: []
|
clientManagers: []
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user