@roblourens/dap-cli 0.2.0 → 0.3.0
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 +7 -4
- package/dist/index.js +375 -101
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Give your agent debugging skills!
|
|
4
4
|
|
|
5
|
-
A command-line debugger built for AI agents. Drive any [Debug Adapter Protocol](https://microsoft.github.io/debug-adapter-protocol/) target — Node.js, Python, Chrome, custom adapters — from shell commands, with stable JSON output and `.vscode/launch.json` support.
|
|
5
|
+
A command-line debugger built for AI agents. Drive any [Debug Adapter Protocol](https://microsoft.github.io/debug-adapter-protocol/) target — Node.js, Python, Go, Rust, Chrome, custom adapters — from shell commands, with stable JSON output and `.vscode/launch.json` support.
|
|
6
6
|
|
|
7
7
|
## Why
|
|
8
8
|
|
|
@@ -27,7 +27,9 @@ dap-cli --version
|
|
|
27
27
|
Install vscode-js-debug 1.117.0 into ~/.dap-cli/adapters/js-debug/ (~10MB)? [y/N]
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
Answer `y`. The adapter is downloaded into `~/.dap-cli/adapters/` once and reused for every subsequent session. Only the adapter you actually use is downloaded — if you only debug Python, you never download js-debug or
|
|
30
|
+
Answer `y`. The adapter is downloaded into `~/.dap-cli/adapters/` once and reused for every subsequent session. Only the adapter you actually use is downloaded — if you only debug Python, you never download js-debug, delve, or CodeLLDB.
|
|
31
|
+
|
|
32
|
+
Built-in adapters are `js-debug` for JavaScript/browser targets, `debugpy` for Python, `delve` for Go, and `codelldb` (CodeLLDB) for explicit compiled Rust executables.
|
|
31
33
|
|
|
32
34
|
**Non-interactive callers (agents, CI, scripts):** pre-consent so the prompt does not block:
|
|
33
35
|
|
|
@@ -38,11 +40,12 @@ DAP_CLI_ASSUME_YES=1 dap-cli launch ... # equivalent env var
|
|
|
38
40
|
|
|
39
41
|
When stdin is not a TTY and neither `--yes` nor `DAP_CLI_ASSUME_YES=1` is set, dap-cli fails fast with `provision_consent_required` rather than hanging on a prompt nobody can answer.
|
|
40
42
|
|
|
41
|
-
**Pre-warm the cache (optional):** for sealed CI images or fresh dev machines, install all
|
|
43
|
+
**Pre-warm the cache (optional):** for sealed CI images or fresh dev machines, install all four built-in adapters up front:
|
|
42
44
|
|
|
43
45
|
```bash
|
|
44
46
|
dap-cli setup-adapters --yes
|
|
45
47
|
dap-cli setup-adapters --adapter js-debug --yes # or one at a time
|
|
48
|
+
dap-cli setup-adapters --adapter codelldb --yes # Rust / CodeLLDB only
|
|
46
49
|
```
|
|
47
50
|
|
|
48
51
|
**Custom cache location:** set `DAP_CLI_ADAPTERS_DIR=/path/to/cache` to override the default `~/.dap-cli/adapters/` (useful for shared CI caches or air-gapped pre-staged installs).
|
|
@@ -53,7 +56,7 @@ See [docs/adapter-setup.md](docs/adapter-setup.md) for the full reference — pi
|
|
|
53
56
|
|
|
54
57
|
## Install the agent skill
|
|
55
58
|
|
|
56
|
-
The repo includes an [Open Plugins](https://open-plugins.com/) plugin. The [SKILL.md](dap-cli/skills/dap-cli/SKILL.md) teaches your agent how to use the CLI — common commands, the polling loop, breakpoint verification, and language-specific gotchas for `js-debug` and
|
|
59
|
+
The repo includes an [Open Plugins](https://open-plugins.com/) plugin. The [SKILL.md](dap-cli/skills/dap-cli/SKILL.md) teaches your agent how to use the CLI — common commands, the polling loop, breakpoint verification, and language-specific gotchas for `js-debug`, `debugpy`, Delve, and CodeLLDB.
|
|
57
60
|
|
|
58
61
|
**VS Code (Copilot Chat agent mode):**
|
|
59
62
|
|