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
@@ -13,7 +13,9 @@ public sealed record HoldMethodSettings(
|
||||
bool MatchPath,
|
||||
int LinkSpacing,
|
||||
string BaitPaths,
|
||||
TimeSpan MaxHoldDuration)
|
||||
TimeSpan MaxHoldDuration,
|
||||
int RepeatWindowDays,
|
||||
TimeSpan RepeatHoldDuration)
|
||||
{
|
||||
public double BytesPerSecond => AverageBytesPerSecond(MinDelay, MaxDelay, MinChunkSize, MaxChunkSize);
|
||||
|
||||
@@ -28,7 +30,9 @@ public sealed record HoldMethodSettings(
|
||||
[SettingKeys.DripMatchPath] = MatchPath ? "true" : "false",
|
||||
[SettingKeys.DripLinkSpacing] = LinkSpacing.ToString(CultureInfo.InvariantCulture),
|
||||
[SettingKeys.DripBaitPaths] = BaitPaths,
|
||||
[SettingKeys.MaxHoldDuration] = MaxHoldDuration.ToString("c", CultureInfo.InvariantCulture)
|
||||
[SettingKeys.MaxHoldDuration] = MaxHoldDuration.ToString("c", CultureInfo.InvariantCulture),
|
||||
[SettingKeys.RepeatWindowDays] = RepeatWindowDays.ToString(CultureInfo.InvariantCulture),
|
||||
[SettingKeys.RepeatHoldDuration] = RepeatHoldDuration.ToString("c", CultureInfo.InvariantCulture)
|
||||
};
|
||||
|
||||
public static double AverageBytesPerSecond(TimeSpan minDelay, TimeSpan maxDelay, int minChunkSize, int maxChunkSize)
|
||||
@@ -48,6 +52,8 @@ public sealed record HoldMethodInput(
|
||||
bool MatchPath,
|
||||
string? LinkSpacing,
|
||||
string? BaitPaths,
|
||||
string? MaxHoldDuration);
|
||||
string? MaxHoldDuration,
|
||||
string? RepeatWindowDays,
|
||||
string? RepeatHoldDuration);
|
||||
|
||||
public sealed record HoldMethodParseResult(HoldMethodSettings? Settings, IReadOnlyDictionary<string, string> Errors);
|
||||
Reference in new issue
Block a user