secufusion-mcp 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +14 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -524,24 +524,32 @@ function generateNewTaskFolder(workItemId, title, tasksRoot) {
524
524
  let numericId = workItemId.replace(/\D/g, ''); // Extract just the digits
525
525
  if (!numericId)
526
526
  numericId = workItemId; // fallback
527
- let taskTypeStr = "task";
527
+ let taskTypeStr = "Task";
528
528
  // Try to load the classification to get the true task_type
529
529
  const classifPath = path.join(tasksRoot, '..', 'classifications', `${workItemId}.json`);
530
530
  const classif = readJson(classifPath);
531
531
  if (classif && typeof classif.task_type === 'string') {
532
532
  const rawType = classif.task_type.toLowerCase();
533
533
  if (rawType === 'user_story')
534
- taskTypeStr = 'story';
534
+ taskTypeStr = 'US';
535
+ else if (rawType === 'bug')
536
+ taskTypeStr = 'Bug';
535
537
  else
536
- taskTypeStr = rawType;
538
+ taskTypeStr = rawType.charAt(0).toUpperCase() + rawType.slice(1);
537
539
  }
538
540
  else {
539
541
  // Fallback: guess from the workItemId string itself if passed as "BUG-1173"
540
542
  const prefixMatch = workItemId.match(/^([a-zA-Z]+)-/);
541
543
  if (prefixMatch) {
542
- taskTypeStr = prefixMatch[1].toLowerCase();
543
- if (taskTypeStr === 'wi')
544
- taskTypeStr = 'task'; // Generic WI to task
544
+ const lowerPrefix = prefixMatch[1].toLowerCase();
545
+ if (lowerPrefix === 'wi')
546
+ taskTypeStr = 'Task';
547
+ else if (lowerPrefix === 'bug')
548
+ taskTypeStr = 'Bug';
549
+ else if (lowerPrefix === 'us')
550
+ taskTypeStr = 'US';
551
+ else
552
+ taskTypeStr = lowerPrefix.charAt(0).toUpperCase() + lowerPrefix.slice(1);
545
553
  }
546
554
  }
547
555
  return path.join(tasksRoot, `${taskTypeStr}-${numericId}-${slug}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secufusion-mcp",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "type": "module",
5
5
  "description": "SecuFusion MCP server - developer workflow tooling with guardrails",
6
6
  "main": "index.js",