Reports a bug in dapi itself or in the app behind it: a command that errors, contradicts this reference, or returns something it shouldn't. Bundles the description with diagnostics (dapi version, platform, node version, the app's recent console output) and files it as a GitHub issue on diffusionstudio/editor, printing the URL of the created issue.
The issue is submitted immediately, in the background, with no review step: the command returns once the issue exists. Filing goes through the gh CLI, which must be installed and authenticated (gh auth login); without it the command exits 1 and files nothing.
This is for defects in the tooling, not for problems inside a project: a composition that looks wrong, a node in the wrong place, or a generation that missed the prompt are editing problems, fixed with node patch / mount, not reported here.
Does not require the app to be running. If the app is down or unreachable, the report records that instead of failing, since that is often the bug being reported.
<title>: one-line summary of the problem, used as the issue title.
-b, --body <text>: what happened, in markdown: what you expected, what you got, and anything the diagnostics won't show.-c, --command <cmd...>: thedapicommand(s) that reproduce it, in order. Repeatable (-c "dapi node ls 5" -c "dapi node capture 5"); rendered as a shell block under## Repro.--logs <n>: trailing app log entries to attach (default: 50).--logs 0omits the section, and then the app is not contacted at all.
One JSON object:
{
url: string // the created github.com/diffusionstudio/editor issue
}The title is the issue title; the body is assembled from the options and the diagnostics:
<body>
## Repro
```sh
dapi node capture 42
```
## Environment
| | |
| --- | --- |
| dapi | 0.129.0 |
| platform | darwin 25.5.0 (arm64) |
| node | v20.19.0 |
| app | running |
## App logs
```
19:37:17.538 [info] Finalizing file (…)
```The app row reads running, not running, not checked (with --logs 0), or the reason it was unreachable.
- Attached logs are the same entries
logsprints, and can contain project names, file paths, and prompt text. They go straight to a public issue: pass--logs 0, or check whatlogscurrently holds, before reporting from a sensitive project. - Exits non-zero on an empty title, an invalid
--logs, a missinggh, or a failure fromgh(not authenticated, no access to the repo); the message fromghis passed through. dapi issueis an alias of this command.