@nbakka/mcp-appium 3.0.7 → 3.0.8

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/lib/server.js +21 -3
  2. package/package.json +1 -1
package/lib/server.js CHANGED
@@ -1457,9 +1457,27 @@ tool(
1457
1457
 
1458
1458
  // Format the approved test cases properly
1459
1459
  const formattedTestCases = result.testCases.map((tc, index) => {
1460
- const title = Array.isArray(tc) ? tc[0] : String(tc);
1461
- const status = Array.isArray(tc) && tc[2] ? ` (${tc[2]})` : '';
1462
- return `${index + 1}. ${title}${status}`;
1460
+ if (!Array.isArray(tc)) {
1461
+ return `${index + 1}. ${String(tc)} (New)`;
1462
+ }
1463
+
1464
+ const title = tc[0] || `Test Case ${index + 1}`;
1465
+ const description = tc[1] || '';
1466
+ const status = tc[2] || 'New';
1467
+ const originalCase = tc[3] || '';
1468
+
1469
+ const statusLower = status.toLowerCase();
1470
+
1471
+ if (statusLower === 'modify') {
1472
+ // For modify cases: show "Original: ... Changed to: ..." format
1473
+ return `${index + 1}. Original: ${description || 'Not specified'}\n Changed to: ${title} (Modify) (${originalCase})`;
1474
+ } else if (statusLower === 'remove') {
1475
+ // For remove cases: show title with Remove label and reference
1476
+ return `${index + 1}. ${title} (Remove) (${originalCase})`;
1477
+ } else {
1478
+ // For new cases: just show title with New label
1479
+ return `${index + 1}. ${title} (New)`;
1480
+ }
1463
1481
  }).join('\n');
1464
1482
 
1465
1483
  // Clean up session after returning result
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nbakka/mcp-appium",
3
- "version": "3.0.7",
3
+ "version": "3.0.8",
4
4
  "description": "Appium MCP",
5
5
  "engines": {
6
6
  "node": ">=18"