@testdriverai/mcp 7.11.264-test → 7.11.266-canary
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.
- package/ai/skills/testdriver-quickstart/SKILL.md +1 -1
- package/ai/skills/testdriver-quickstart-claude/SKILL.md +47 -10
- package/docs/_scripts/generate-skills.js +76 -24
- package/docs/quickstart-claude.mdx +47 -10
- package/docs/quickstart.mdx +1 -1
- package/package.json +2 -2
- package/ai/skills/testdriver-ai/SKILL.md +0 -204
- package/ai/skills/testdriver-claude-mcp-plugin/SKILL.md +0 -245
- package/ai/skills/testdriver-cloud/SKILL.md +0 -119
- package/ai/skills/testdriver-device-config/SKILL.md +0 -317
- package/ai/skills/testdriver-elements/SKILL.md +0 -605
- package/ai/skills/testdriver-examples/SKILL.md +0 -7
- package/ai/skills/testdriver-machine-setup/SKILL.md +0 -331
- package/ai/skills/testdriver-running-tests/SKILL.md +0 -185
- package/ai/skills/testdriver-test-writer/SKILL.md +0 -446
- package/ai/skills/testdriver-waiting-for-elements/SKILL.md +0 -90
- package/ai/skills/testdriver:ai/SKILL.md +0 -204
- package/ai/skills/testdriver:assert/SKILL.md +0 -315
- package/ai/skills/testdriver:aws-setup/SKILL.md +0 -448
- package/ai/skills/testdriver:cache/SKILL.md +0 -221
- package/ai/skills/testdriver:caching/SKILL.md +0 -124
- package/ai/skills/testdriver:captcha/SKILL.md +0 -158
- package/ai/skills/testdriver:ci-cd/SKILL.md +0 -659
- package/ai/skills/testdriver:click/SKILL.md +0 -286
- package/ai/skills/testdriver:client/SKILL.md +0 -481
- package/ai/skills/testdriver:customizing-devices/SKILL.md +0 -319
- package/ai/skills/testdriver:dashcam/SKILL.md +0 -451
- package/ai/skills/testdriver:debugging-with-screenshots/SKILL.md +0 -415
- package/ai/skills/testdriver:device-config/SKILL.md +0 -317
- package/ai/skills/testdriver:double-click/SKILL.md +0 -102
- package/ai/skills/testdriver:elements/SKILL.md +0 -605
- package/ai/skills/testdriver:enterprise/SKILL.md +0 -7
- package/ai/skills/testdriver:errors/SKILL.md +0 -246
- package/ai/skills/testdriver:events/SKILL.md +0 -356
- package/ai/skills/testdriver:exec/SKILL.md +0 -317
- package/ai/skills/testdriver:find/SKILL.md +0 -856
- package/ai/skills/testdriver:focus-application/SKILL.md +0 -293
- package/ai/skills/testdriver:generating-tests/SKILL.md +0 -25
- package/ai/skills/testdriver:hosted/SKILL.md +0 -155
- package/ai/skills/testdriver:hover/SKILL.md +0 -278
- package/ai/skills/testdriver:locating-elements/SKILL.md +0 -71
- package/ai/skills/testdriver:making-assertions/SKILL.md +0 -32
- package/ai/skills/testdriver:mcp/SKILL.md +0 -7
- package/ai/skills/testdriver:mouse-down/SKILL.md +0 -161
- package/ai/skills/testdriver:mouse-up/SKILL.md +0 -164
- package/ai/skills/testdriver:parse/SKILL.md +0 -236
- package/ai/skills/testdriver:performing-actions/SKILL.md +0 -53
- package/ai/skills/testdriver:press-keys/SKILL.md +0 -348
- package/ai/skills/testdriver:provision/SKILL.md +0 -331
- package/ai/skills/testdriver:quickstart/SKILL.md +0 -172
- package/ai/skills/testdriver:redraw/SKILL.md +0 -214
- package/ai/skills/testdriver:reusable-code/SKILL.md +0 -249
- package/ai/skills/testdriver:right-click/SKILL.md +0 -123
- package/ai/skills/testdriver:running-tests/SKILL.md +0 -185
- package/ai/skills/testdriver:screenshot/SKILL.md +0 -248
- package/ai/skills/testdriver:screenshots/SKILL.md +0 -184
- package/ai/skills/testdriver:scroll/SKILL.md +0 -205
- package/ai/skills/testdriver:secrets/SKILL.md +0 -115
- package/ai/skills/testdriver:self-hosted/SKILL.md +0 -147
- package/ai/skills/testdriver:test-results-json/SKILL.md +0 -257
- package/ai/skills/testdriver:testdriver/SKILL.md +0 -624
- package/ai/skills/testdriver:type/SKILL.md +0 -357
- package/ai/skills/testdriver:variables/SKILL.md +0 -111
- package/ai/skills/testdriver:wait/SKILL.md +0 -50
- package/ai/skills/testdriver:waiting-for-elements/SKILL.md +0 -90
- package/ai/skills/testdriver:what-is-testdriver/SKILL.md +0 -54
- 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.`);
|