@testdriverai/mcp 7.11.264-test → 7.11.265-test

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 (67) hide show
  1. package/ai/skills/testdriver-quickstart/SKILL.md +1 -1
  2. package/ai/skills/testdriver-quickstart-claude/SKILL.md +47 -10
  3. package/docs/_scripts/generate-skills.js +76 -24
  4. package/docs/quickstart-claude.mdx +47 -10
  5. package/docs/quickstart.mdx +1 -1
  6. package/package.json +2 -2
  7. package/ai/skills/testdriver-ai/SKILL.md +0 -204
  8. package/ai/skills/testdriver-claude-mcp-plugin/SKILL.md +0 -245
  9. package/ai/skills/testdriver-cloud/SKILL.md +0 -119
  10. package/ai/skills/testdriver-device-config/SKILL.md +0 -317
  11. package/ai/skills/testdriver-elements/SKILL.md +0 -605
  12. package/ai/skills/testdriver-examples/SKILL.md +0 -7
  13. package/ai/skills/testdriver-machine-setup/SKILL.md +0 -331
  14. package/ai/skills/testdriver-running-tests/SKILL.md +0 -185
  15. package/ai/skills/testdriver-test-writer/SKILL.md +0 -446
  16. package/ai/skills/testdriver-waiting-for-elements/SKILL.md +0 -90
  17. package/ai/skills/testdriver:ai/SKILL.md +0 -204
  18. package/ai/skills/testdriver:assert/SKILL.md +0 -315
  19. package/ai/skills/testdriver:aws-setup/SKILL.md +0 -448
  20. package/ai/skills/testdriver:cache/SKILL.md +0 -221
  21. package/ai/skills/testdriver:caching/SKILL.md +0 -124
  22. package/ai/skills/testdriver:captcha/SKILL.md +0 -158
  23. package/ai/skills/testdriver:ci-cd/SKILL.md +0 -659
  24. package/ai/skills/testdriver:click/SKILL.md +0 -286
  25. package/ai/skills/testdriver:client/SKILL.md +0 -481
  26. package/ai/skills/testdriver:customizing-devices/SKILL.md +0 -319
  27. package/ai/skills/testdriver:dashcam/SKILL.md +0 -451
  28. package/ai/skills/testdriver:debugging-with-screenshots/SKILL.md +0 -415
  29. package/ai/skills/testdriver:device-config/SKILL.md +0 -317
  30. package/ai/skills/testdriver:double-click/SKILL.md +0 -102
  31. package/ai/skills/testdriver:elements/SKILL.md +0 -605
  32. package/ai/skills/testdriver:enterprise/SKILL.md +0 -7
  33. package/ai/skills/testdriver:errors/SKILL.md +0 -246
  34. package/ai/skills/testdriver:events/SKILL.md +0 -356
  35. package/ai/skills/testdriver:exec/SKILL.md +0 -317
  36. package/ai/skills/testdriver:find/SKILL.md +0 -856
  37. package/ai/skills/testdriver:focus-application/SKILL.md +0 -293
  38. package/ai/skills/testdriver:generating-tests/SKILL.md +0 -25
  39. package/ai/skills/testdriver:hosted/SKILL.md +0 -155
  40. package/ai/skills/testdriver:hover/SKILL.md +0 -278
  41. package/ai/skills/testdriver:locating-elements/SKILL.md +0 -71
  42. package/ai/skills/testdriver:making-assertions/SKILL.md +0 -32
  43. package/ai/skills/testdriver:mcp/SKILL.md +0 -7
  44. package/ai/skills/testdriver:mouse-down/SKILL.md +0 -161
  45. package/ai/skills/testdriver:mouse-up/SKILL.md +0 -164
  46. package/ai/skills/testdriver:parse/SKILL.md +0 -236
  47. package/ai/skills/testdriver:performing-actions/SKILL.md +0 -53
  48. package/ai/skills/testdriver:press-keys/SKILL.md +0 -348
  49. package/ai/skills/testdriver:provision/SKILL.md +0 -331
  50. package/ai/skills/testdriver:quickstart/SKILL.md +0 -172
  51. package/ai/skills/testdriver:redraw/SKILL.md +0 -214
  52. package/ai/skills/testdriver:reusable-code/SKILL.md +0 -249
  53. package/ai/skills/testdriver:right-click/SKILL.md +0 -123
  54. package/ai/skills/testdriver:running-tests/SKILL.md +0 -185
  55. package/ai/skills/testdriver:screenshot/SKILL.md +0 -248
  56. package/ai/skills/testdriver:screenshots/SKILL.md +0 -184
  57. package/ai/skills/testdriver:scroll/SKILL.md +0 -205
  58. package/ai/skills/testdriver:secrets/SKILL.md +0 -115
  59. package/ai/skills/testdriver:self-hosted/SKILL.md +0 -147
  60. package/ai/skills/testdriver:test-results-json/SKILL.md +0 -257
  61. package/ai/skills/testdriver:testdriver/SKILL.md +0 -624
  62. package/ai/skills/testdriver:type/SKILL.md +0 -357
  63. package/ai/skills/testdriver:variables/SKILL.md +0 -111
  64. package/ai/skills/testdriver:wait/SKILL.md +0 -50
  65. package/ai/skills/testdriver:waiting-for-elements/SKILL.md +0 -90
  66. package/ai/skills/testdriver:what-is-testdriver/SKILL.md +0 -54
  67. package/scripts/generate-skills.js +0 -94
@@ -1,94 +0,0 @@
1
- const fs = require("fs");
2
- const path = require("path");
3
-
4
- const docsDir = path.resolve(__dirname, "../docs");
5
- const skillsDir = path.resolve(__dirname, "../ai/skills");
6
-
7
- console.log(`Generating skills from ${docsDir} to ${skillsDir}`);
8
-
9
- if (!fs.existsSync(skillsDir)) {
10
- fs.mkdirSync(skillsDir, { recursive: true });
11
- }
12
-
13
- // Function to clean up markdown content
14
- function processContent(content) {
15
- // Remove frontmatter
16
- const frontmatterRegex = /^---\n([\s\S]*?)\n---/;
17
- const match = content.match(frontmatterRegex);
18
-
19
- let description = "";
20
- let body = content;
21
-
22
- if (match) {
23
- const frontmatter = match[1];
24
- // Parse description
25
- const descMatch = frontmatter.match(/description:\s*["']?(.*?)["']?$/m);
26
- if (descMatch) {
27
- description = descMatch[1];
28
- }
29
-
30
- // Remove frontmatter from body
31
- body = content.replace(frontmatterRegex, "").trim();
32
- }
33
-
34
- return { description, body };
35
- }
36
-
37
- // Read all MDX files
38
- let count = 0;
39
-
40
- // Function to process a directory
41
- function processDirectory(sourceDir) {
42
- if (!fs.existsSync(sourceDir)) {
43
- console.log(`Directory not found: ${sourceDir}`);
44
- return;
45
- }
46
-
47
- const files = fs.readdirSync(sourceDir);
48
-
49
- files.forEach((file) => {
50
- if (!file.endsWith(".mdx") && !file.endsWith(".md")) return;
51
-
52
- const filePath = path.join(sourceDir, file);
53
- if (fs.lstatSync(filePath).isDirectory()) return;
54
-
55
- // Use filename handling for both .md and .mdx
56
- const skillName = path.basename(file, path.extname(file));
57
- const skillPath = path.join(skillsDir, `testdriver:${skillName}`);
58
-
59
- // Read content
60
- const content = fs.readFileSync(filePath, "utf-8");
61
- const { description, body } = processContent(content);
62
-
63
- // Ensure description exists
64
- const finalDescription = description || `TestDriver ${skillName} skill`;
65
-
66
- // Ensure skill directory exists
67
- if (!fs.existsSync(skillPath)) {
68
- fs.mkdirSync(skillPath, { recursive: true });
69
- }
70
-
71
- // Create SKILL.md content
72
- const skillContent = `---
73
- name: testdriver:${skillName}
74
- description: ${finalDescription}
75
- ---
76
- <!-- Generated from ${file}. DO NOT EDIT. -->
77
-
78
- ${body}
79
- `;
80
-
81
- fs.writeFileSync(path.join(skillPath, "SKILL.md"), skillContent);
82
- count++;
83
- });
84
- }
85
-
86
- // Process docs
87
- processDirectory(docsDir);
88
-
89
- // Process agents
90
- const agentsDir = path.resolve(__dirname, "../ai/agents");
91
- console.log(`Generating skills from ${agentsDir} to ${skillsDir}`);
92
- processDirectory(agentsDir);
93
-
94
- console.log(`Successfully generated ${count} skills.`);