Discript shall provide stable, structured output suitable for consumption by AI agents, coding harnesses, and shell pipelines.
Diagnostics should be separable from command results. The CLI should provide predictable exit statuses, non-interactive operation by default, and safe error reporting without exposing credentials.
Long-running programs should be able to emit structured results incrementally.
Operation and process failures shall include stable exit codes. Dry-run previews shall be structured results and shall never be confused with applied changes.
The current CLI emits one JSON result with --json, newline-delimited values with --output jsonl, and human-readable output with --pretty. Structured failures include an error message, stable code, and exitCode; sanitized Discord request metadata may be included without credentials. Script operation results can be inspected and branched on internally, while an explicit script exit(...) controls the final process status.