Add research page with MCP write tools, longer hold for repeat offenders and svn/hg decoys
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a25072e6fb
commit
e88dc415f9
48 files changed
+1983
-57
No files matched your search
@@ -15,6 +15,7 @@ public static class RuntimeSettingsParser
|
||||
private const int MaxChunkSize = 4096;
|
||||
private const int MaxHeadStartSize = 65_536;
|
||||
private const int MaxLinkSpacing = 4096;
|
||||
private const int MaxRepeatWindowDays = 365;
|
||||
|
||||
public static RuntimeSettingsParseResult Parse(RuntimeSettingsInput input)
|
||||
{
|
||||
@@ -63,6 +64,8 @@ public static class RuntimeSettingsParser
|
||||
var linkSpacing = ParseInt(input.LinkSpacing, nameof(input.LinkSpacing), 0, MaxLinkSpacing, errors);
|
||||
var baits = ParseBaitPaths(input.BaitPaths, nameof(input.BaitPaths), errors);
|
||||
var hold = ParseTimeSpan(input.MaxHoldDuration, nameof(input.MaxHoldDuration), MinHold, MaxHold, errors);
|
||||
var repeatWindow = ParseInt(input.RepeatWindowDays, nameof(input.RepeatWindowDays), 0, MaxRepeatWindowDays, errors);
|
||||
var repeatHold = ParseTimeSpan(input.RepeatHoldDuration, nameof(input.RepeatHoldDuration), MinHold, MaxHold, errors);
|
||||
|
||||
if (minDelay > maxDelay)
|
||||
{
|
||||
@@ -90,7 +93,9 @@ public static class RuntimeSettingsParser
|
||||
input.MatchPath,
|
||||
linkSpacing!.Value,
|
||||
baits!,
|
||||
hold!.Value),
|
||||
hold!.Value,
|
||||
repeatWindow!.Value,
|
||||
repeatHold!.Value),
|
||||
errors);
|
||||
}
|
||||
|
||||
@@ -130,7 +135,7 @@ public static class RuntimeSettingsParser
|
||||
|
||||
if (!text.Contains(':') || !TimeSpan.TryParse(text, CultureInfo.InvariantCulture, out var value))
|
||||
{
|
||||
errors[field] = "Format hh:mm:ss, zum Beispiel 00:00:10.";
|
||||
errors[field] = "Format hh:mm:ss (ab einem Tag d.hh:mm:ss), zum Beispiel 00:00:10.";
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user