@dialpad/dialtone-cli 1.3.0 → 1.5.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 +18 -6
  2. package/build/index.js +71400 -23177
  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,16 +35,26 @@ dialtone component button --slots # slots only
35
35
  dialtone component button --examples # usage example
36
36
  ```
37
37
 
38
- ### `dialtone token <query>`
38
+ ### `dialtone docs <query>`
39
39
 
40
- Look up design tokens.
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
+ ```
46
+
47
+ ### `dialtone token [query]`
48
+
49
+ 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.
41
50
 
42
51
  ```bash
43
52
  dialtone token "color foreground"
44
- dialtone token "space 400"
53
+ dialtone token "spacing 100"
45
54
  dialtone token "color foreground" --values # show theme values
46
55
  dialtone token "color foreground" --all # include HSL tokens
47
56
  dialtone token "color foreground" --limit 0 # show all results
57
+ dialtone token --name=--dt-spacing-100 --values # canonical CSS token identifier
48
58
  ```
49
59
 
50
60
  ### `dialtone utility <query>`
@@ -119,8 +129,10 @@ When working with Dialtone components, tokens, or utility classes, use the `dial
119
129
  - Structured data: add `--format json` to any command
120
130
 
121
131
  Prefer the CLI over reading source files for design system information. It searches
122
- the full published API and leaves deprecated items out of search results. An exact
123
- deprecated component name still works, with a warning naming its replacement.
132
+ the generated API and leaves deprecated items out of general discovery. Exact
133
+ legacy component, utility or token names retain their contract. Use `--format json`
134
+ to inspect utility migration metadata. Token lookups print migration notes to stderr
135
+ in all formats; add `--values --format json` for structured metadata.
124
136
  ```
125
137
 
126
138
  ### Skills