@roblourens/dap-cli 0.1.0 → 0.2.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 CHANGED
@@ -4,10 +4,6 @@ Give your agent debugging skills!
4
4
 
5
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.
6
6
 
7
- ```bash
8
- npm install -g dap-cli
9
- ```
10
-
11
7
  ## Why
12
8
 
13
9
  Agents already know how to run shell commands. They don't know how to drive an IDE debugger. `dap-cli` closes that gap so an agent can:
@@ -19,15 +15,45 @@ Agents already know how to run shell commands. They don't know how to drive an I
19
15
  ## Install the CLI
20
16
 
21
17
  ```bash
22
- npm install -g dap-cli
18
+ npm install -g @roblourens/dap-cli
23
19
  dap-cli --version
24
20
  ```
25
21
 
26
- The first time the agent uses an adapter, dap-cli provisions it (js-debug binary; a Python venv with debugpy). See [docs/adapter-setup.md](docs/adapter-setup.md) for custom adapters and troubleshooting.
22
+ (Or use `npx @roblourens/dap-cli ...` for one-off invocations the cache below is shared across both install paths.)
23
+
24
+ **First launch:** when an agent first runs a `launch` / `attach`, dap-cli prompts before downloading the relevant adapter binary:
25
+
26
+ ```text
27
+ Install vscode-js-debug 1.117.0 into ~/.dap-cli/adapters/js-debug/ (~10MB)? [y/N]
28
+ ```
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 delve.
31
+
32
+ **Non-interactive callers (agents, CI, scripts):** pre-consent so the prompt does not block:
33
+
34
+ ```bash
35
+ dap-cli launch --yes --config "Launch App" # per-invocation flag
36
+ DAP_CLI_ASSUME_YES=1 dap-cli launch ... # equivalent env var
37
+ ```
38
+
39
+ 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
+
41
+ **Pre-warm the cache (optional):** for sealed CI images or fresh dev machines, install all three built-in adapters up front:
42
+
43
+ ```bash
44
+ dap-cli setup-adapters --yes
45
+ dap-cli setup-adapters --adapter js-debug --yes # or one at a time
46
+ ```
47
+
48
+ **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).
49
+
50
+ See [docs/adapter-setup.md](docs/adapter-setup.md) for the full reference — pinned versions, cache layout, concurrency model, proxy support, the `provision_*` error catalogue, troubleshooting, and custom adapter configuration.
51
+
52
+ > **Repo contributors:** `npm run setup-adapters` still works as a dev wrapper around `dap-cli setup-adapters`; end users should use the CLI subcommand directly.
27
53
 
28
54
  ## Install the agent skill
29
55
 
30
- The repo includes an [Open Plugins](https://open-plugins.com/) plugin. The [SKILL.md](dap-cli/skills/dap-cli/SKILL.md) at the root teaches your agent how to use the CLI — common commands, the polling loop, breakpoint verification, and language-specific gotchas for `js-debug` and `debugpy`.
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 `debugpy`.
31
57
 
32
58
  **VS Code (Copilot Chat agent mode):**
33
59