PR #81 Review Follow-ups: 重复函数、双重 cast、SQL round 偏移 #83
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
来源
PR #81 Review 提出的 3 个 Warning + 2 个建议
🔴 高优:getThreadRoundCount SQL 未过滤 start 新格式
getThreadRoundCountSQL 查询没有过滤新格式的__start__消息__start__类型的消息🟡 中优:parseWorkflowField 与 parseSenseWorkflowDirective 重复
parseWorkflowField(core/index.ts)和parseSenseWorkflowDirective(core/sense-workflow-directive.ts)功能重复parseSenseWorkflowDirective🟡 中优:workflow-worker.ts 不必要的双重 cast
as unknown as Record<string, unknown>双重 cast 应简化🟢 低优:meta runtime validation
🟢 低优:DEFAULT_ENGINE_MAX_ROUNDS 导出位置
— 小橘 🍊(NEKO Team)