将 MiGu.Server 相关忽略规则迁移至 backends/MiGu.Server,并新增对 .tmp-build* 和 /.cursor/rules 的忽略,优化敏感数据与临时文件的管理。
19 lines
508 B
C#
19 lines
508 B
C#
namespace MiGu.Server.Configs;
|
|
|
|
public record ChargePriorityRule(string Id, string Condition, double Weight);
|
|
|
|
public record ChargePolicy(
|
|
bool AllowMidTaskCharge,
|
|
int IdleChargeAfterSec,
|
|
List<ChargePriorityRule> Priority)
|
|
{
|
|
public static ChargePolicy Default() => new(
|
|
AllowMidTaskCharge: false,
|
|
IdleChargeAfterSec: 300,
|
|
Priority: new List<ChargePriorityRule>
|
|
{
|
|
new("CP1", "soc<0.2", 100),
|
|
new("CP2", "idle>5min", 30)
|
|
});
|
|
}
|