feat(scripts): ScriptAlarm.IsMesReportable + Alarms.MesReportableAsync() mirrored on both compile surfaces
Claude-Session: https://claude.ai/code/session_01Y5ef34iUUMjmwnMpL9xgmB
This commit is contained in:
@@ -154,6 +154,12 @@ public sealed class ScriptCompileSurface
|
||||
/// <returns>The instance's current alarm conditions.</returns>
|
||||
public Task<IReadOnlyList<ScriptAlarm>> CurrentAsync(CancellationToken cancellationToken = default)
|
||||
=> throw new NotSupportedException(CompileOnly);
|
||||
|
||||
/// <summary>Mirrors <c>AlarmsAccessor.MesReportableAsync</c>.</summary>
|
||||
/// <param name="cancellationToken">Token used to cancel the read.</param>
|
||||
/// <returns>The MES-reportable subset of the instance's current alarm conditions.</returns>
|
||||
public Task<IReadOnlyList<ScriptAlarm>> MesReportableAsync(CancellationToken cancellationToken = default)
|
||||
=> throw new NotSupportedException(CompileOnly);
|
||||
}
|
||||
|
||||
/// <summary>Compile-only mirror of <c>ScriptRuntimeContext.ExternalSystemHelper</c>.</summary>
|
||||
|
||||
Reference in New Issue
Block a user