debug-run 0.5.2 → 0.5.3
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/README.md +3 -7
- package/dist/index.cjs +46 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,17 +34,13 @@ npx debug-run --help
|
|
|
34
34
|
|
|
35
35
|
### Claude Code Skill (Recommended)
|
|
36
36
|
|
|
37
|
-
To enable Claude Code to use debug-run effectively,
|
|
37
|
+
To enable Claude Code to use debug-run effectively, install the skill:
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
|
|
41
|
-
mkdir -p ~/.claude/skills
|
|
42
|
-
|
|
43
|
-
# Copy the debug-run skill
|
|
44
|
-
cp -r node_modules/debug-run/.claude/skills/debug-run ~/.claude/skills/
|
|
40
|
+
debug-run install-skill
|
|
45
41
|
```
|
|
46
42
|
|
|
47
|
-
This
|
|
43
|
+
This copies the skill files to `~/.claude/skills/debug-run/`, teaching Claude how to use debug-run for debugging .NET, Python, and TypeScript applications. The skill includes:
|
|
48
44
|
- `SKILL.md` - Main skill with options reference and best practices
|
|
49
45
|
- `DOTNET.md` - .NET-specific guide (vsdbg, ASP.NET, NUnit)
|
|
50
46
|
- `PYTHON.md` - Python-specific guide (debugpy)
|
package/dist/index.cjs
CHANGED
|
@@ -6959,6 +6959,9 @@ function createCli() {
|
|
|
6959
6959
|
program2.command("install-adapter <name>").description("Download and install a debug adapter").action(async (name) => {
|
|
6960
6960
|
await installAdapter(name);
|
|
6961
6961
|
});
|
|
6962
|
+
program2.command("install-skill").description("Install the Claude Code skill for debug-run to ~/.claude/skills/").action(async () => {
|
|
6963
|
+
await installSkill();
|
|
6964
|
+
});
|
|
6962
6965
|
return program2;
|
|
6963
6966
|
}
|
|
6964
6967
|
async function runTestDebugSession(options) {
|
|
@@ -7160,6 +7163,49 @@ Successfully installed js-debug!`);
|
|
|
7160
7163
|
process.exit(1);
|
|
7161
7164
|
}
|
|
7162
7165
|
}
|
|
7166
|
+
async function installSkill() {
|
|
7167
|
+
const os4 = await import("node:os");
|
|
7168
|
+
const path12 = await import("node:path");
|
|
7169
|
+
const homeDir = os4.homedir();
|
|
7170
|
+
const targetDir = path12.join(homeDir, ".claude", "skills", "debug-run");
|
|
7171
|
+
const moduleDir = path12.dirname(new URL(__importMetaUrl).pathname);
|
|
7172
|
+
const possibleSources = [
|
|
7173
|
+
path12.join(moduleDir, "..", ".claude", "skills", "debug-run"),
|
|
7174
|
+
path12.join(moduleDir, ".claude", "skills", "debug-run"),
|
|
7175
|
+
path12.join(process.cwd(), ".claude", "skills", "debug-run")
|
|
7176
|
+
];
|
|
7177
|
+
let sourceDir = null;
|
|
7178
|
+
for (const src of possibleSources) {
|
|
7179
|
+
if (fs2.existsSync(path12.join(src, "SKILL.md"))) {
|
|
7180
|
+
sourceDir = src;
|
|
7181
|
+
break;
|
|
7182
|
+
}
|
|
7183
|
+
}
|
|
7184
|
+
if (!sourceDir) {
|
|
7185
|
+
console.error("Error: Could not find skill files.");
|
|
7186
|
+
console.error("Expected to find SKILL.md in .claude/skills/debug-run/");
|
|
7187
|
+
process.exit(1);
|
|
7188
|
+
}
|
|
7189
|
+
fs2.mkdirSync(targetDir, { recursive: true });
|
|
7190
|
+
const files = ["SKILL.md", "DOTNET.md", "PYTHON.md", "TYPESCRIPT.md"];
|
|
7191
|
+
let copiedCount = 0;
|
|
7192
|
+
for (const file of files) {
|
|
7193
|
+
const srcPath = path12.join(sourceDir, file);
|
|
7194
|
+
const destPath = path12.join(targetDir, file);
|
|
7195
|
+
if (fs2.existsSync(srcPath)) {
|
|
7196
|
+
fs2.copyFileSync(srcPath, destPath);
|
|
7197
|
+
copiedCount++;
|
|
7198
|
+
}
|
|
7199
|
+
}
|
|
7200
|
+
console.log(`Installed debug-run skill to: ${targetDir}`);
|
|
7201
|
+
console.log(`Copied ${copiedCount} files:`);
|
|
7202
|
+
for (const file of files) {
|
|
7203
|
+
if (fs2.existsSync(path12.join(targetDir, file))) {
|
|
7204
|
+
console.log(` - ${file}`);
|
|
7205
|
+
}
|
|
7206
|
+
}
|
|
7207
|
+
console.log("\nClaude Code will now use this skill when debugging.");
|
|
7208
|
+
}
|
|
7163
7209
|
|
|
7164
7210
|
// src/index.ts
|
|
7165
7211
|
var cli = createCli();
|