Summary
Add a dictionary.tokens.json workspace-level emitter to specs-cli that aggregates the token usage data across all component {component}.tokens.json files into a single cross-component usage map.
RFC
This emitter is specified in RFC 001: Component Dictionary — emitter group workspace, priority high, complexity low.
Union of token refs across all components with usage counts.
This is one of the workspace-level dictionary files that serves as a direct input for report and audit scripts — token-usage maps, naming-consistency audits, and token-impact analysis walk this contract rather than re-traversing the component YAML directory each time.
Source
This emitter depends on the per-component {component}.tokens.json emitter (#140) being implemented first. dictionary.tokens.json is the union of all component token files: each token path gets an aggregated usage count across all components, plus a per-component breakdown.
Acceptance criteria
Summary
Add a
dictionary.tokens.jsonworkspace-level emitter tospecs-clithat aggregates the token usage data across all component{component}.tokens.jsonfiles into a single cross-component usage map.RFC
This emitter is specified in RFC 001: Component Dictionary — emitter group
workspace, priority high, complexity low.This is one of the workspace-level dictionary files that serves as a direct input for report and audit scripts — token-usage maps, naming-consistency audits, and token-impact analysis walk this contract rather than re-traversing the component YAML directory each time.
Source
This emitter depends on the per-component
{component}.tokens.jsonemitter (#140) being implemented first.dictionary.tokens.jsonis the union of all component token files: each token path gets an aggregated usage count across all components, plus a per-component breakdown.Acceptance criteria
workspacegroup