@adobe/design-data-spec 4.2.0 → 4.2.1
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/package.json +1 -1
- package/spec/agent-surface.md +3 -1
package/package.json
CHANGED
package/spec/agent-surface.md
CHANGED
|
@@ -66,12 +66,14 @@ An agent loop benefits from a small, structural overview at session start so tha
|
|
|
66
66
|
|
|
67
67
|
### CLI
|
|
68
68
|
|
|
69
|
-
The reference CLI is `design-data` (see [`sdk/cli/`](../../../sdk/cli/)). Install it via Homebrew (macOS), `cargo install design-data-cli`, or a [GitHub Release download](https://github.com/adobe/spectrum-design-data/releases) — see the [`sdk/cli/` README](../../../sdk/cli/README.md#install). RFC-C extends the existing subcommands (`validate`, `resolve`, `diff`, `query`) with:
|
|
69
|
+
The reference CLI is `design-data` (see [`sdk/cli/`](../../../sdk/cli/)). Install it via Homebrew (macOS), `cargo install design-data-cli`, or a [GitHub Release download](https://github.com/adobe/spectrum-design-data/releases) — see the [`sdk/cli/` README](../../../sdk/cli/README.md#install). RFC-C extends the existing subcommands (`validate`, `resolve`, `diff`, `query`, `export`) with:
|
|
70
70
|
|
|
71
71
|
* `design-data primer [PATH]` — emit the [Session primer](#session-primer) payload.
|
|
72
72
|
* `design-data suggest "<intent>" [--property <hint>]` — invoke `suggest_token`.
|
|
73
73
|
* `design-data explain <token-uuid|component-id>` — invoke `get_guidance`. (Deferred — not yet shipped; pending `get_guidance` wire-up.)
|
|
74
74
|
|
|
75
|
+
`resolve`, `query`, and `export` all accept `--format dtcg` to emit [W3C DTCG](https://tr.designtokens.org/format/)-conformant `$value`/`$type` output, resolved for a given mode context (`--color-scheme`/`--scale`/`--contrast`) — `export` emits the whole dataset as one flat document, `query --format dtcg` a filtered subset, `resolve --format dtcg` a single property. See the [`sdk/` README](../../../sdk/README.md#cli-usage) for examples.
|
|
76
|
+
|
|
75
77
|
**NORMATIVE:** All RFC-C CLI output MUST default to JSON when stdout is not a TTY, and MUST emit human-friendly output when stdout is a TTY. This makes the CLI directly composable from agent shells without per-call format flags.
|
|
76
78
|
|
|
77
79
|
### MCP server
|