@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 +10 -45
- package/dist/cli.js +114 -657
- package/dist/cli.js.map +1 -1
- package/dist/install.d.ts.map +1 -1
- package/dist/install.js +36 -53
- package/dist/install.js.map +1 -1
- package/dist/instructions.d.ts +2 -0
- package/dist/instructions.d.ts.map +1 -0
- package/dist/instructions.js +69 -0
- package/dist/instructions.js.map +1 -0
- package/dist/progress.d.ts +9 -0
- package/dist/progress.d.ts.map +1 -0
- package/dist/progress.js +88 -0
- package/dist/progress.js.map +1 -0
- package/dist/response-guidance.d.ts +3 -0
- package/dist/response-guidance.d.ts.map +1 -1
- package/dist/response-guidance.js +428 -92
- package/dist/response-guidance.js.map +1 -1
- package/dist/screenshot.d.ts +17 -0
- package/dist/screenshot.d.ts.map +1 -0
- package/dist/screenshot.js +222 -0
- package/dist/screenshot.js.map +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +131 -465
- package/dist/server.js.map +1 -1
- package/dist/tool-logic.d.ts +1 -0
- package/dist/tool-logic.d.ts.map +1 -1
- package/dist/tool-logic.js +19 -96
- package/dist/tool-logic.js.map +1 -1
- package/package.json +1 -1
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
|
|
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
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
- `design.
|
|
129
|
-
- `design.
|
|
130
|
-
- `design.
|
|
131
|
-
- `design.
|
|
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.
|