@dialpad/dialtone-cli 1.4.0 → 1.6.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.
Files changed (3) hide show
  1. package/README.md +16 -1
  2. package/build/index.js +26205 -4021
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -22,7 +22,7 @@ dialtone search "input|select|menu" # OR search
22
22
 
23
23
  ### `dialtone component <name>`
24
24
 
25
- Show full component documentation. The name must match exactly, ignoring case, separators, and the `Dt` prefix, so `button`, `dt-button`, and `DtButton` all work. For any other name, the CLI lists close matches on stderr and exits with an error.
25
+ Show full component documentation. The name must match exactly, ignoring case, separators, and the `Dt` prefix, so `button`, `dt-button`, and `DtButton` all work. Other names exit with an error, listing close matches when available. Directive identifiers such as `v-dt-tooltip` or `DtTooltipDirective` are not component names; use documentation search for their contracts.
26
26
 
27
27
  ```bash
28
28
  dialtone component button
@@ -35,6 +35,21 @@ dialtone component button --slots # slots only
35
35
  dialtone component button --examples # usage example
36
36
  ```
37
37
 
38
+ ### `dialtone docs [query]`
39
+
40
+ Search bundled reference documentation, including directive imports, registration and behavior.
41
+
42
+ ```bash
43
+ dialtone docs "v-dt-tooltip"
44
+ dialtone docs "DtModeDirective registration"
45
+ dialtone docs --id examples/button-default
46
+ dialtone docs --id examples/button-disabled-tooltip --format json
47
+ ```
48
+
49
+ Use `--id <id>` instead of a query to retrieve a complete documentation record. Minimal and Markdown formats print its content; JSON returns a one-record array with its metadata. Missing IDs, an empty ID, or combining a query with `--id` exit with an error. `--limit` controls search results, not exact-ID content.
50
+
51
+ The two selected Button examples include complete application files and pinned dependencies. Their tested profile does not establish installed-project compatibility; read each record's build/API and manual-review status and environment. `component --examples` text output lists available example IDs; complete example records stay out of documentation search. See [Retrieve a selected example](https://dialtone.dialpad.com/guides/cli/#retrieve-a-selected-example) for setup and qualification.
52
+
38
53
  ### `dialtone token [query]`
39
54
 
40
55
  Look up design tokens. Use `--name=--dt-*` for canonical CSS names so the leading dashes are parsed as a value. Exact legacy names retain their values and qualified migration guidance; add `--values --format json` to inspect that metadata.