(rules: CommandRule[])
| 67 | .map(r => parseInt(r.id || '0')) |
| 68 | .filter(id => !isNaN(id)); |
| 69 | |
| 70 | return existingIds.length > 0 ? Math.max(...existingIds) : 0; |
| 71 | } |
| 72 | |
| 73 | // 生成规则唯一ID - 使用简单数字 |
| 74 | function generateRuleId(existingRules: CommandRule[]): string { |
| 75 | return (getMaxRuleId(existingRules) + 1).toString(); |
| 76 | } |
| 77 | |
| 78 | // 当前配置文件版本号 |
no outgoing calls
no test coverage detected