@just-every/design 0.1.32 → 0.1.34

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
@@ -1,6 +1,6 @@
1
1
  # @just-every/design
2
2
 
3
- MCP (Model Context Protocol) stdio server that proxies the **Design App API** (default: `https://design.justevery.com`) so MCP clients can create and inspect design runs.
3
+ MCP (Model Context Protocol) stdio server that proxies the **Design App API** (default: `https://design.justevery.com`) so MCP clients can create, sync, and check design runs.
4
4
 
5
5
  ## Quick start
6
6
 
@@ -120,47 +120,12 @@ This avoids needing long-lived client secrets and is the lowest-friction path fo
120
120
 
121
121
  ## MCP tools
122
122
 
123
- Current tools are focused on runs + artifacts:
124
-
125
- - `design.create`
126
- - `design.list`
127
- - `design.get`
128
- - `design.watch`
129
- - `design.extractAssets` (opt-in: extract assets for interface runs)
130
- - `design.generateHtml` (opt-in: generate HTML/CSS + assets for interface runs)
131
- - `design.iterate` (iterate on a run using screenshot feedback)
132
- - `design.refineDraft` (non-fork: refine a specific draft within a run)
133
- - `design.uploadTarget` (upload an image and set it as the run target)
134
- - `design.setTarget` (select which draft should be treated as the run target)
135
- - `design.clearTarget` (clear explicit target selection)
136
- - `design.events`
137
- - `design.artifacts.list`
138
- - `design.artifacts.download` (downloads and caches locally)
139
-
140
- CLI helper commands (non-MCP):
141
-
142
- - `every-design create --json '{...}'`
143
- - `every-design watch --json '{...}'`
144
- - `every-design get --json '{...}'`
145
- - `every-design list --json '{...}'`
146
- - `every-design events --json '{...}'`
147
- - `every-design artifacts list --json '{...}'`
148
- - `every-design artifacts download --json '{...}'`
149
- - `every-design extract-assets --json '{...}'`
150
- - `every-design generate-html --json '{...}'`
151
- - `every-design refine-draft --json '{...}'`
152
- - `every-design upload-target --json '{...}'`
153
- - `every-design set-target --json '{...}'`
154
- - `every-design clear-target --json '{...}'`
155
- - `every-design screenshot <url>`
156
- - `every-design iterate --json '{"runId":"<run-id>","render":[...],"concerns":"..."}'`
157
-
158
- ## Output kinds (CLI/MCP)
159
-
160
- When using this package via MCP/CLI:
161
-
162
- - HTML output is **opt-in**: use `output.designKind: "interface"` plus `progression.autoGenerateHtml: true` (or call `design.generateHtml`).
163
- - Asset extraction is **opt-in**: use `progression.autoExtractAssets: true` (or call `design.extractAssets`).
164
- - For web/app UI prompts with no explicit `output`, the CLI/MCP path defaults to `output.designKind: "interface"` to avoid expensive code builds while still producing a UI design.
165
- - For `interface` runs created via MCP/CLI, asset extraction and HTML generation are **deferred by default**. Use `design.extractAssets` / `design.generateHtml` (or the CLI helpers `extract-assets` / `generate-html`) when you explicitly want those outputs.
166
- - If you explicitly set `output.designKind` to `auto`, the backend will infer the best kind from the prompt.
123
+ CLIs MUST follow this order when creating a user interface or visual element:
124
+ `design.create` → `design.sync` → `design.check`.
125
+
126
+ Available tools:
127
+
128
+ - `design.create` — Create a new design. Returns run id.
129
+ - `design.sync` Wait for completion, extract assets, and sync to a folder (can take up to 30 mins).
130
+ - `design.check` Capture a screenshot and return guidance; accepts URL or local HTML file path.
131
+ - `design.instructions` Return the required workflow instructions for CLIs.