MCPcopy Create free account
hub / github.com/echoVic/blade-code / mapPriority

Method mapPriority

src/prompt/WorkflowManager.ts:262–268  ·  view source on GitHub ↗

* 映射优先级

(priorityStr: string)

Source from the content-addressed store, hash-verified

260 * 映射优先级
261 */
262 private mapPriority(priorityStr: string): 'low' | 'medium' | 'high' | 'critical' {
263 const priority = priorityStr.toLowerCase();
264 if (priority.includes('低') || priority === 'low') return 'low';
265 if (priority.includes('高') || priority === 'high') return 'high';
266 if (priority.includes('紧急') || priority.includes('critical')) return 'critical';
267 return 'medium';
268 }
269
270 /**
271 * 生成任务ID

Callers 1

parseTaskLineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected