@hasna/shortlinks 0.2.4 → 0.2.7

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
@@ -71,6 +71,41 @@ Errors are emitted as:
71
71
  { "error": "message" }
72
72
  ```
73
73
 
74
+ ## Compact Defaults and Details
75
+
76
+ Human output is compact by default so agent terminals do not fill with full
77
+ records. List and status commands show essential fields, truncate long URLs or
78
+ text, cap human rows, and print the next command to use for details.
79
+
80
+ Use these gradual disclosure paths when you need more:
81
+
82
+ ```bash
83
+ shortlinks link list --limit 50
84
+ shortlinks link get home --verbose
85
+ shortlinks stats home --verbose
86
+ shortlinks doctor --verbose
87
+ shortlinks domain check has.na --verbose
88
+ shortlinks events list --limit 50
89
+ shortlinks webhooks list --limit 50
90
+ shortlinks --json link get home
91
+ ```
92
+
93
+ `--json` remains the machine-readable path and keeps full objects where commands
94
+ already returned them. Prefer `--json` for automation and `--verbose` for human
95
+ debugging.
96
+
97
+ Example compact output:
98
+
99
+ ```text
100
+ https://has.na/home -> https://example.com/landing-page-with-a-very-long-path... active
101
+ Showing 1 link(s).
102
+ Use `shortlinks link get <slug>` for details.
103
+ ```
104
+
105
+ Before this behavior, detail/status commands such as `shortlinks link get home`,
106
+ `shortlinks stats home`, and `shortlinks doctor` printed full JSON-like objects
107
+ by default.
108
+
74
109
  ## CLI
75
110
 
76
111
  ```bash