@dexhq/canvas 0.0.0-stage → 0.13.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.
- package/CHANGELOG.md +911 -0
- package/LICENSE +21 -0
- package/README.md +525 -2
- package/app/app.tsx +194 -0
- package/app/base.ts +99 -0
- package/app/canvas/activity-bar.tsx +223 -0
- package/app/canvas/activity-model.ts +461 -0
- package/app/canvas/activity-parts.tsx +237 -0
- package/app/canvas/activity.tsx +947 -0
- package/app/canvas/add-to-spec.ts +131 -0
- package/app/canvas/agent-changes.ts +122 -0
- package/app/canvas/anchoring.ts +439 -0
- package/app/canvas/canvas-chrome.tsx +531 -0
- package/app/canvas/canvas-clipboard.ts +172 -0
- package/app/canvas/canvas-commands.ts +542 -0
- package/app/canvas/canvas-context-menu.tsx +54 -0
- package/app/canvas/canvas-context.tsx +151 -0
- package/app/canvas/canvas-corners.tsx +86 -0
- package/app/canvas/canvas-document.ts +1024 -0
- package/app/canvas/canvas-input.ts +554 -0
- package/app/canvas/canvas-keys.ts +360 -0
- package/app/canvas/canvas-menus.tsx +289 -0
- package/app/canvas/canvas-merge.ts +547 -0
- package/app/canvas/canvas-model.ts +1048 -0
- package/app/canvas/canvas-panels.ts +187 -0
- package/app/canvas/canvas-scene.ts +679 -0
- package/app/canvas/canvas-ui.ts +119 -0
- package/app/canvas/canvas.css +1017 -0
- package/app/canvas/change-notice.tsx +133 -0
- package/app/canvas/command-menu.tsx +154 -0
- package/app/canvas/comment-layer.tsx +449 -0
- package/app/canvas/comments.tsx +2210 -0
- package/app/canvas/device-edits.ts +207 -0
- package/app/canvas/device-icons.ts +26 -0
- package/app/canvas/device-picker.tsx +117 -0
- package/app/canvas/devices-panel.tsx +287 -0
- package/app/canvas/draw-layer.tsx +373 -0
- package/app/canvas/draw-model.ts +105 -0
- package/app/canvas/editable-text.tsx +167 -0
- package/app/canvas/element-picker.ts +577 -0
- package/app/canvas/engine/camera.ts +263 -0
- package/app/canvas/engine/canvas-gestures.ts +816 -0
- package/app/canvas/engine/canvas-store.ts +407 -0
- package/app/canvas/engine/canvas-view.tsx +345 -0
- package/app/canvas/engine/engine.css +97 -0
- package/app/canvas/floating-panel.tsx +155 -0
- package/app/canvas/flow-canvas.tsx +808 -0
- package/app/canvas/flow-naming.ts +23 -0
- package/app/canvas/flow-renames.ts +118 -0
- package/app/canvas/follow-pin.ts +49 -0
- package/app/canvas/forced-states.ts +219 -0
- package/app/canvas/frame-choices.tsx +85 -0
- package/app/canvas/frame-context-menu.tsx +554 -0
- package/app/canvas/frame-copies.ts +538 -0
- package/app/canvas/frame-drops.ts +159 -0
- package/app/canvas/frame-node.tsx +1519 -0
- package/app/canvas/frame-pictures.ts +573 -0
- package/app/canvas/frame-resize.tsx +193 -0
- package/app/canvas/frame-shown.ts +31 -0
- package/app/canvas/frame-source.ts +107 -0
- package/app/canvas/frame-thumb.tsx +69 -0
- package/app/canvas/grid-overlay.tsx +50 -0
- package/app/canvas/grid-panel.tsx +379 -0
- package/app/canvas/imported-reviews.tsx +843 -0
- package/app/canvas/insert-hint.tsx +163 -0
- package/app/canvas/inspect-layer.tsx +66 -0
- package/app/canvas/inspect-tools.ts +134 -0
- package/app/canvas/jpeg-pdf.ts +141 -0
- package/app/canvas/label-action.tsx +50 -0
- package/app/canvas/large-canvas-notice.tsx +51 -0
- package/app/canvas/layout.ts +1253 -0
- package/app/canvas/live-page.ts +416 -0
- package/app/canvas/measure-box.tsx +23 -0
- package/app/canvas/new-frame.ts +279 -0
- package/app/canvas/note-placing.ts +110 -0
- package/app/canvas/number-field.tsx +89 -0
- package/app/canvas/open-page.ts +50 -0
- package/app/canvas/page-heights.tsx +134 -0
- package/app/canvas/page-scroll.ts +66 -0
- package/app/canvas/pass-wheel.ts +48 -0
- package/app/canvas/pasted-cuts.ts +38 -0
- package/app/canvas/person-busy.ts +32 -0
- package/app/canvas/picks-menu.tsx +178 -0
- package/app/canvas/picks.ts +139 -0
- package/app/canvas/point-menu.tsx +77 -0
- package/app/canvas/props-model.ts +123 -0
- package/app/canvas/props-panel.tsx +371 -0
- package/app/canvas/quick-bar.tsx +149 -0
- package/app/canvas/removed-views-panel.tsx +500 -0
- package/app/canvas/review-marker.tsx +74 -0
- package/app/canvas/review-panel.tsx +1422 -0
- package/app/canvas/row-node.tsx +59 -0
- package/app/canvas/scene-context.tsx +74 -0
- package/app/canvas/section-node.tsx +278 -0
- package/app/canvas/selection.ts +49 -0
- package/app/canvas/server-notice.tsx +71 -0
- package/app/canvas/size-label.tsx +31 -0
- package/app/canvas/sketch-boxes.css +57 -0
- package/app/canvas/sketch-boxes.tsx +407 -0
- package/app/canvas/sketch-layer.tsx +448 -0
- package/app/canvas/sketch-model.ts +542 -0
- package/app/canvas/slide-frame.tsx +165 -0
- package/app/canvas/slide-full-screen.tsx +201 -0
- package/app/canvas/slide-page.tsx +197 -0
- package/app/canvas/slide-pdf.tsx +222 -0
- package/app/canvas/snapping.ts +182 -0
- package/app/canvas/spec-copies.ts +117 -0
- package/app/canvas/spec-frame.tsx +440 -0
- package/app/canvas/spec-full-screen.tsx +351 -0
- package/app/canvas/spec-margin.tsx +323 -0
- package/app/canvas/spec-mode.tsx +147 -0
- package/app/canvas/spec-placing.tsx +273 -0
- package/app/canvas/spec-threads.ts +63 -0
- package/app/canvas/spec-title.tsx +63 -0
- package/app/canvas/spot-pins.tsx +67 -0
- package/app/canvas/stack-node.tsx +92 -0
- package/app/canvas/state-store.ts +52 -0
- package/app/canvas/sticker-model.ts +124 -0
- package/app/canvas/sticker-sheet.tsx +545 -0
- package/app/canvas/stored-viewport.ts +64 -0
- package/app/canvas/styles-layer.tsx +301 -0
- package/app/canvas/tell-open-page.tsx +76 -0
- package/app/canvas/text-layer.tsx +274 -0
- package/app/canvas/thread-focus.tsx +75 -0
- package/app/canvas/thread-place.ts +77 -0
- package/app/canvas/tip.tsx +118 -0
- package/app/canvas/tool-cursors.ts +170 -0
- package/app/canvas/tool-icons.tsx +68 -0
- package/app/canvas/toolbar-parts.tsx +173 -0
- package/app/canvas/toolbar.tsx +345 -0
- package/app/canvas/tools.ts +61 -0
- package/app/canvas/typing.ts +47 -0
- package/app/canvas/unknown-frame.tsx +70 -0
- package/app/canvas/use-activity.ts +293 -0
- package/app/canvas/use-agent-changes.tsx +327 -0
- package/app/canvas/use-canvas-clipboard.tsx +401 -0
- package/app/canvas/use-canvas-commands.ts +91 -0
- package/app/canvas/use-canvas-editor.ts +267 -0
- package/app/canvas/use-component-drops.ts +161 -0
- package/app/canvas/use-spec-copies.ts +102 -0
- package/app/canvas/viewports.ts +21 -0
- package/app/canvas/wireframe-panel.tsx +330 -0
- package/app/canvas/xray.ts +28 -0
- package/app/client.d.ts +27 -0
- package/app/content.d.ts +17 -0
- package/app/design-system/components-address.ts +6 -0
- package/app/design-system/components-canvas.ts +379 -0
- package/app/design-system/components-prototype.tsx +468 -0
- package/app/design-system/pseudo-states.ts +187 -0
- package/app/editor/annotations.ts +250 -0
- package/app/editor/blocks.ts +570 -0
- package/app/editor/document-context.tsx +75 -0
- package/app/editor/embed-arrange.tsx +405 -0
- package/app/editor/embed-box.ts +301 -0
- package/app/editor/extensions.ts +56 -0
- package/app/editor/markdown-source.ts +245 -0
- package/app/editor/node-views.tsx +376 -0
- package/app/editor/quote-bubble.tsx +84 -0
- package/app/editor/two-versions.ts +82 -0
- package/app/flags.ts +14 -0
- package/app/frame/file-errors.ts +39 -0
- package/app/frame/frame-app.tsx +147 -0
- package/app/frame/frame-history.ts +58 -0
- package/app/frame/frame-links.ts +66 -0
- package/app/frame/hold-window-focus.ts +45 -0
- package/app/frame/left-view.tsx +57 -0
- package/app/frame/studio-view.tsx +36 -0
- package/app/frame/view-files.ts +13 -0
- package/app/frame/views.ts +161 -0
- package/app/frame.css +14 -0
- package/app/frame.html +31 -0
- package/app/frame.tsx +40 -0
- package/app/git/branch-panel.tsx +831 -0
- package/app/git/change-list.tsx +119 -0
- package/app/git/clash.tsx +114 -0
- package/app/git/git-controls.tsx +424 -0
- package/app/git/git-state.ts +206 -0
- package/app/git/git-toasts.tsx +507 -0
- package/app/git/paused.tsx +192 -0
- package/app/git/saved-list.tsx +96 -0
- package/app/git/sync-panel.tsx +334 -0
- package/app/i18n/locales/en/messages.po +4902 -0
- package/app/i18n/locales/en/messages.ts +1 -0
- package/app/i18n/locales/pseudo/messages.po +4902 -0
- package/app/i18n/locales/pseudo/messages.ts +1 -0
- package/app/i18n/locales.ts +41 -0
- package/app/i18n/provider.tsx +27 -0
- package/app/icons/index.tsx +38 -0
- package/app/icons/sets/hugeicons.tsx +259 -0
- package/app/icons/sets/lucide.tsx +253 -0
- package/app/icons/sets/phosphor.tsx +251 -0
- package/app/icons/types.ts +19 -0
- package/app/index.html +46 -0
- package/app/kit/inspect-runtime.ts +292 -0
- package/app/kit/sample-people.ts +77 -0
- package/app/kit/use-flow.ts +23 -0
- package/app/kit/use-simulated-load.ts +24 -0
- package/app/kit/use-simulated-stream.ts +50 -0
- package/app/kit/use-view-control.ts +31 -0
- package/app/kit/use-view-param.ts +9 -0
- package/app/live/deployed-preview.ts +34 -0
- package/app/live/focus-reporter.ts +96 -0
- package/app/live/guest-review.ts +515 -0
- package/app/live/restart-wait.ts +68 -0
- package/app/live/server-connection.ts +98 -0
- package/app/live/studio-action.ts +42 -0
- package/app/live/studio-api.ts +769 -0
- package/app/live/studio-data.ts +177 -0
- package/app/live/studio-live.ts +343 -0
- package/app/live/studio-request.ts +133 -0
- package/app/live/thread-state.ts +59 -0
- package/app/live/use-devices.ts +92 -0
- package/app/live/use-focus.ts +39 -0
- package/app/live/use-last-edited.ts +31 -0
- package/app/live/use-show-requests.ts +27 -0
- package/app/live/use-workspace.ts +88 -0
- package/app/main.tsx +50 -0
- package/app/next/fonts.ts +34 -0
- package/app/next/image.tsx +117 -0
- package/app/next/navigation.ts +64 -0
- package/app/next/router.ts +41 -0
- package/app/pages/agent-settings.tsx +57 -0
- package/app/pages/ask-the-agent.tsx +40 -0
- package/app/pages/canvas.tsx +789 -0
- package/app/pages/chrome-extension.tsx +132 -0
- package/app/pages/commands-settings.tsx +709 -0
- package/app/pages/deployment-settings.tsx +190 -0
- package/app/pages/doc.tsx +31 -0
- package/app/pages/file-sort.ts +49 -0
- package/app/pages/git-checks.tsx +174 -0
- package/app/pages/guidelines.tsx +202 -0
- package/app/pages/home.tsx +515 -0
- package/app/pages/host.tsx +21 -0
- package/app/pages/markup-demo.jpg +0 -0
- package/app/pages/markup-settings.tsx +274 -0
- package/app/pages/not-found.tsx +18 -0
- package/app/pages/people.tsx +115 -0
- package/app/pages/play-bar.tsx +433 -0
- package/app/pages/play-size.ts +86 -0
- package/app/pages/play.tsx +992 -0
- package/app/pages/profile.tsx +57 -0
- package/app/pages/prototype.tsx +136 -0
- package/app/pages/render.tsx +162 -0
- package/app/pages/settings.tsx +37 -0
- package/app/pages/workspace-general.tsx +323 -0
- package/app/pages/workspace-git.tsx +385 -0
- package/app/pages/your-guidelines.tsx +77 -0
- package/app/pages/your-picture.tsx +205 -0
- package/app/public/apple-touch-icon.png +0 -0
- package/app/public/favicon-32.png +0 -0
- package/app/public/favicon.svg +1 -0
- package/app/public/sudio-192.png +0 -0
- package/app/public/sudio-512.png +0 -0
- package/app/public/sudio-maskable-512.png +0 -0
- package/app/registry-files.ts +53 -0
- package/app/registry.ts +243 -0
- package/app/renamed-storage.ts +42 -0
- package/app/save-file.ts +13 -0
- package/app/shell/about.tsx +125 -0
- package/app/shell/agent-logos.tsx +98 -0
- package/app/shell/agent-manual.tsx +172 -0
- package/app/shell/avatar-pictures.ts +131 -0
- package/app/shell/avatar.tsx +128 -0
- package/app/shell/bell.tsx +382 -0
- package/app/shell/broke.tsx +46 -0
- package/app/shell/chrome-theme.tsx +91 -0
- package/app/shell/connect-agent.tsx +538 -0
- package/app/shell/copy-text.tsx +53 -0
- package/app/shell/deployed-preview-bar.tsx +23 -0
- package/app/shell/desktop-app.tsx +290 -0
- package/app/shell/empty-state.tsx +35 -0
- package/app/shell/feedback-details.ts +114 -0
- package/app/shell/feedback-form.tsx +630 -0
- package/app/shell/feedback-link.tsx +82 -0
- package/app/shell/file-bytes.ts +11 -0
- package/app/shell/host.ts +96 -0
- package/app/shell/info-tip.tsx +15 -0
- package/app/shell/install-prompt.ts +55 -0
- package/app/shell/instructions-editor.tsx +842 -0
- package/app/shell/instructions.tsx +114 -0
- package/app/shell/main-sidebar.tsx +346 -0
- package/app/shell/markdown.tsx +9 -0
- package/app/shell/open-agent.tsx +90 -0
- package/app/shell/page-header.tsx +154 -0
- package/app/shell/page-title.ts +129 -0
- package/app/shell/presence.tsx +500 -0
- package/app/shell/prototype-menu.tsx +293 -0
- package/app/shell/quick-start.tsx +311 -0
- package/app/shell/recents.ts +113 -0
- package/app/shell/report-issue.ts +130 -0
- package/app/shell/restart-toast.tsx +258 -0
- package/app/shell/save-state.tsx +45 -0
- package/app/shell/scaled-frame.tsx +151 -0
- package/app/shell/settings-sections.ts +190 -0
- package/app/shell/settings-sidebar.tsx +81 -0
- package/app/shell/settings-ui.tsx +185 -0
- package/app/shell/shell-bar.ts +16 -0
- package/app/shell/sidebar.tsx +88 -0
- package/app/shell/skeleton.ts +376 -0
- package/app/shell/status-badge.tsx +29 -0
- package/app/shell/studio-shell.tsx +217 -0
- package/app/shell/thread-list.tsx +217 -0
- package/app/shell/time-ago.ts +45 -0
- package/app/shell/toasts.tsx +119 -0
- package/app/shell/update-notice.tsx +883 -0
- package/app/shell/use-copied.ts +26 -0
- package/app/shell/use-space.ts +27 -0
- package/app/shell/watch-switch.tsx +32 -0
- package/app/shell/welcome.tsx +205 -0
- package/app/shell/window-buttons.tsx +103 -0
- package/app/shell/working-on.tsx +35 -0
- package/app/shell/workspace-mark.tsx +278 -0
- package/app/shell/workspace-tile.jpg +0 -0
- package/app/studio-ui.d.ts +106 -0
- package/app/styles.css +571 -0
- package/app/types.ts +257 -0
- package/app/ui/boundary.tsx +48 -0
- package/app/ui/prompt-editor.tsx +474 -0
- package/app/ui/reference.tsx +114 -0
- package/app/ui/segmented.tsx +73 -0
- package/app/ui/shadcn/attachment.tsx +207 -0
- package/app/ui/shadcn/badge.tsx +51 -0
- package/app/ui/shadcn/button.tsx +62 -0
- package/app/ui/shadcn/card.tsx +102 -0
- package/app/ui/shadcn/checkbox.tsx +28 -0
- package/app/ui/shadcn/dialog.tsx +157 -0
- package/app/ui/shadcn/dropdown-menu.tsx +276 -0
- package/app/ui/shadcn/input-group.tsx +158 -0
- package/app/ui/shadcn/input.tsx +19 -0
- package/app/ui/shadcn/kbd.tsx +26 -0
- package/app/ui/shadcn/native-select.tsx +65 -0
- package/app/ui/shadcn/popover.tsx +89 -0
- package/app/ui/shadcn/separator.tsx +24 -0
- package/app/ui/shadcn/sheet.tsx +135 -0
- package/app/ui/shadcn/spinner.tsx +17 -0
- package/app/ui/shadcn/switch.tsx +31 -0
- package/app/ui/shadcn/tabs.tsx +82 -0
- package/app/ui/shadcn/textarea.tsx +17 -0
- package/app/ui/shadcn/toggle-group.tsx +89 -0
- package/app/ui/shadcn/toggle.tsx +44 -0
- package/app/ui/shadcn/tooltip.tsx +67 -0
- package/app/ui/theme-provider.tsx +31 -0
- package/app/ui/theme-switch.tsx +27 -0
- package/app/ui/theme.css +715 -0
- package/bin/dex.mjs +44 -0
- package/bin/sudio.mjs +9 -0
- package/dist/cli/banner.d.mts +75 -0
- package/dist/cli/banner.mjs +206 -0
- package/dist/cli/command.d.mts +47 -0
- package/dist/cli/command.mjs +40 -0
- package/dist/cli/commands/agents/add.d.mts +11 -0
- package/dist/cli/commands/agents/add.mjs +24 -0
- package/dist/cli/commands/agents.d.mts +5 -0
- package/dist/cli/commands/agents.mjs +13 -0
- package/dist/cli/commands/app.d.mts +5 -0
- package/dist/cli/commands/app.mjs +104 -0
- package/dist/cli/commands/build.d.mts +4 -0
- package/dist/cli/commands/build.mjs +33 -0
- package/dist/cli/commands/claude.d.mts +10 -0
- package/dist/cli/commands/claude.mjs +44 -0
- package/dist/cli/commands/cloud/args.d.mts +17 -0
- package/dist/cli/commands/cloud/args.mjs +18 -0
- package/dist/cli/commands/cloud/link.d.mts +15 -0
- package/dist/cli/commands/cloud/link.mjs +20 -0
- package/dist/cli/commands/cloud/live.d.mts +38 -0
- package/dist/cli/commands/cloud/live.mjs +29 -0
- package/dist/cli/commands/cloud/login.d.mts +15 -0
- package/dist/cli/commands/cloud/login.mjs +19 -0
- package/dist/cli/commands/cloud/publish.d.mts +5 -0
- package/dist/cli/commands/cloud/publish.mjs +51 -0
- package/dist/cli/commands/cloud/push.d.mts +4 -0
- package/dist/cli/commands/cloud/push.mjs +15 -0
- package/dist/cli/commands/cloud/status.d.mts +4 -0
- package/dist/cli/commands/cloud/status.mjs +15 -0
- package/dist/cli/commands/cloud/unlink.d.mts +4 -0
- package/dist/cli/commands/cloud/unlink.mjs +15 -0
- package/dist/cli/commands/cloud.d.mts +5 -0
- package/dist/cli/commands/cloud.mjs +21 -0
- package/dist/cli/commands/components.d.mts +14 -0
- package/dist/cli/commands/components.mjs +26 -0
- package/dist/cli/commands/create.d.mts +233 -0
- package/dist/cli/commands/create.mjs +147 -0
- package/dist/cli/commands/dev.d.mts +24 -0
- package/dist/cli/commands/dev.mjs +135 -0
- package/dist/cli/commands/doctor.d.mts +9 -0
- package/dist/cli/commands/doctor.mjs +24 -0
- package/dist/cli/commands/extension.d.mts +10 -0
- package/dist/cli/commands/extension.mjs +32 -0
- package/dist/cli/commands/hook.d.mts +19 -0
- package/dist/cli/commands/hook.mjs +72 -0
- package/dist/cli/commands/init.d.mts +94 -0
- package/dist/cli/commands/init.mjs +22 -0
- package/dist/cli/commands/mcp.d.mts +15 -0
- package/dist/cli/commands/mcp.mjs +48 -0
- package/dist/cli/commands/merge-contributors.d.mts +24 -0
- package/dist/cli/commands/merge-contributors.mjs +43 -0
- package/dist/cli/commands/merge-spec.d.mts +32 -0
- package/dist/cli/commands/merge-spec.mjs +75 -0
- package/dist/cli/commands/preview.d.mts +4 -0
- package/dist/cli/commands/preview.mjs +15 -0
- package/dist/cli/commands/stop.d.mts +4 -0
- package/dist/cli/commands/stop.mjs +21 -0
- package/dist/cli/commands/upgrade.d.mts +14 -0
- package/dist/cli/commands/upgrade.mjs +47 -0
- package/dist/cli/commands/work/args.d.mts +33 -0
- package/dist/cli/commands/work/args.mjs +34 -0
- package/dist/cli/commands/work/check.d.mts +4 -0
- package/dist/cli/commands/work/check.mjs +19 -0
- package/dist/cli/commands/work/contributor.d.mts +25 -0
- package/dist/cli/commands/work/contributor.mjs +36 -0
- package/dist/cli/commands/work/new.d.mts +30 -0
- package/dist/cli/commands/work/new.mjs +33 -0
- package/dist/cli/commands/work/presence.d.mts +34 -0
- package/dist/cli/commands/work/presence.mjs +38 -0
- package/dist/cli/commands/work/scope.d.mts +21 -0
- package/dist/cli/commands/work/scope.mjs +25 -0
- package/dist/cli/commands/work/snapshot.d.mts +20 -0
- package/dist/cli/commands/work/snapshot.mjs +28 -0
- package/dist/cli/commands/work/thread.d.mts +36 -0
- package/dist/cli/commands/work/thread.mjs +40 -0
- package/dist/cli/commands/work/threads.d.mts +14 -0
- package/dist/cli/commands/work/threads.mjs +25 -0
- package/dist/cli/commands/work/whoami.d.mts +4 -0
- package/dist/cli/commands/work/whoami.mjs +14 -0
- package/dist/cli/help.d.mts +9 -0
- package/dist/cli/help.mjs +161 -0
- package/dist/cli/main.d.mts +463 -0
- package/dist/cli/main.mjs +113 -0
- package/dist/cli/mcp-relay.d.mts +60 -0
- package/dist/cli/mcp-relay.mjs +342 -0
- package/dist/cli/recovery-server.d.mts +25 -0
- package/dist/cli/recovery-server.mjs +68 -0
- package/dist/cli/strict-flags.d.mts +30 -0
- package/dist/cli/strict-flags.mjs +115 -0
- package/dist/cli/supervise.d.mts +42 -0
- package/dist/cli/supervise.mjs +300 -0
- package/dist/cli/ui.d.mts +109 -0
- package/dist/cli/ui.mjs +240 -0
- package/dist/config/design-system.d.mts +75 -0
- package/dist/config/design-system.mjs +202 -0
- package/dist/config/index.d.mts +260 -0
- package/dist/config/index.mjs +20 -0
- package/dist/config/load.d.mts +55 -0
- package/dist/config/load.mjs +121 -0
- package/dist/config/package-manager.d.mts +15 -0
- package/dist/config/package-manager.mjs +61 -0
- package/dist/config/project-files.d.mts +94 -0
- package/dist/config/project-files.mjs +507 -0
- package/dist/config/renamed.d.mts +22 -0
- package/dist/config/renamed.mjs +34 -0
- package/dist/config/schema.d.mts +240 -0
- package/dist/config/schema.mjs +172 -0
- package/dist/content/biome.d.mts +10 -0
- package/dist/content/biome.mjs +35 -0
- package/dist/content/capture.d.mts +81 -0
- package/dist/content/capture.mjs +723 -0
- package/dist/content/commands.d.mts +67 -0
- package/dist/content/commands.mjs +180 -0
- package/dist/content/comments-log.d.mts +61 -0
- package/dist/content/comments-log.mjs +161 -0
- package/dist/content/component-props.d.mts +17 -0
- package/dist/content/component-props.mjs +354 -0
- package/dist/content/content.d.mts +581 -0
- package/dist/content/content.mjs +1369 -0
- package/dist/content/devices.d.mts +17 -0
- package/dist/content/devices.mjs +49 -0
- package/dist/content/file-turns.d.mts +9 -0
- package/dist/content/file-turns.mjs +35 -0
- package/dist/content/first-run.d.mts +9 -0
- package/dist/content/first-run.mjs +45 -0
- package/dist/content/flow-specs.d.mts +68 -0
- package/dist/content/flow-specs.mjs +161 -0
- package/dist/content/insert-edit.d.mts +24 -0
- package/dist/content/insert-edit.mjs +139 -0
- package/dist/content/jsx-source.d.mts +9 -0
- package/dist/content/jsx-source.mjs +30 -0
- package/dist/content/last-edited.d.mts +10 -0
- package/dist/content/last-edited.mjs +34 -0
- package/dist/content/layout.d.mts +10 -0
- package/dist/content/layout.mjs +23 -0
- package/dist/content/merge-rules.d.mts +16 -0
- package/dist/content/merge-rules.mjs +61 -0
- package/dist/content/prop-edit.d.mts +45 -0
- package/dist/content/prop-edit.mjs +151 -0
- package/dist/content/prototype-checks.d.mts +30 -0
- package/dist/content/prototype-checks.mjs +117 -0
- package/dist/content/prototype-summary.d.mts +93 -0
- package/dist/content/prototype-summary.mjs +86 -0
- package/dist/content/prototypes.d.mts +117 -0
- package/dist/content/prototypes.mjs +232 -0
- package/dist/content/read-text.d.mts +4 -0
- package/dist/content/read-text.mjs +12 -0
- package/dist/content/review-import.d.mts +13 -0
- package/dist/content/review-import.mjs +54 -0
- package/dist/content/review-pages.d.mts +26 -0
- package/dist/content/review-pages.mjs +240 -0
- package/dist/content/screenshot.d.mts +60 -0
- package/dist/content/screenshot.mjs +274 -0
- package/dist/content/snapshot-client.d.mts +25 -0
- package/dist/content/snapshot-client.mjs +60 -0
- package/dist/content/store.d.mts +52 -0
- package/dist/content/store.mjs +123 -0
- package/dist/content/text-edit.d.mts +24 -0
- package/dist/content/text-edit.mjs +92 -0
- package/dist/content/thread-module.d.mts +79 -0
- package/dist/content/thread-module.mjs +201 -0
- package/dist/content/threads.d.mts +29 -0
- package/dist/content/threads.mjs +193 -0
- package/dist/content/trash.d.mts +69 -0
- package/dist/content/trash.mjs +206 -0
- package/dist/paste/figma/appearance.d.mts +7 -0
- package/dist/paste/figma/appearance.mjs +156 -0
- package/dist/paste/figma/captures.d.mts +14 -0
- package/dist/paste/figma/captures.mjs +112 -0
- package/dist/paste/figma/decode.d.mts +376 -0
- package/dist/paste/figma/decode.mjs +235 -0
- package/dist/paste/figma/document.d.mts +70 -0
- package/dist/paste/figma/document.mjs +323 -0
- package/dist/paste/figma/layout.d.mts +19 -0
- package/dist/paste/figma/layout.mjs +190 -0
- package/dist/paste/figma/paint.d.mts +9 -0
- package/dist/paste/figma/paint.mjs +198 -0
- package/dist/paste/figma/render.d.mts +8 -0
- package/dist/paste/figma/render.mjs +102 -0
- package/dist/paste/figma/styles.d.mts +52 -0
- package/dist/paste/figma/styles.mjs +53 -0
- package/dist/paste/figma/text.d.mts +6 -0
- package/dist/paste/figma/text.mjs +282 -0
- package/dist/paste/figma/vector.d.mts +15 -0
- package/dist/paste/figma/vector.mjs +254 -0
- package/dist/paste/fonts.d.mts +9 -0
- package/dist/paste/fonts.mjs +81 -0
- package/dist/paste/paste.d.mts +27 -0
- package/dist/paste/paste.mjs +131 -0
- package/dist/paths.d.mts +66 -0
- package/dist/paths.mjs +138 -0
- package/dist/server/agent-env.d.mts +12 -0
- package/dist/server/agent-env.mjs +47 -0
- package/dist/server/agent-session.d.mts +62 -0
- package/dist/server/agent-session.mjs +131 -0
- package/dist/server/agents.d.mts +133 -0
- package/dist/server/agents.mjs +771 -0
- package/dist/server/allowed-request.d.mts +31 -0
- package/dist/server/allowed-request.mjs +54 -0
- package/dist/server/avatars.d.mts +18 -0
- package/dist/server/avatars.mjs +60 -0
- package/dist/server/brief.d.mts +37 -0
- package/dist/server/brief.mjs +242 -0
- package/dist/server/briefing.d.mts +97 -0
- package/dist/server/briefing.mjs +99 -0
- package/dist/server/build-pictures.d.mts +55 -0
- package/dist/server/build-pictures.mjs +209 -0
- package/dist/server/build-settings.d.mts +13 -0
- package/dist/server/build-settings.mjs +30 -0
- package/dist/server/changelog.d.mts +10 -0
- package/dist/server/changelog.mjs +39 -0
- package/dist/server/channel.d.mts +244 -0
- package/dist/server/channel.mjs +654 -0
- package/dist/server/close-check.d.mts +31 -0
- package/dist/server/close-check.mjs +129 -0
- package/dist/server/cloud.d.mts +89 -0
- package/dist/server/cloud.mjs +229 -0
- package/dist/server/command-settings.d.mts +23 -0
- package/dist/server/command-settings.mjs +59 -0
- package/dist/server/component-catalogue.d.mts +47 -0
- package/dist/server/component-catalogue.mjs +166 -0
- package/dist/server/config-settings.d.mts +19 -0
- package/dist/server/config-settings.mjs +44 -0
- package/dist/server/content-type.d.mts +3 -0
- package/dist/server/content-type.mjs +25 -0
- package/dist/server/dependency-clash.d.mts +23 -0
- package/dist/server/dependency-clash.mjs +225 -0
- package/dist/server/dev-server.d.mts +11 -0
- package/dist/server/dev-server.mjs +189 -0
- package/dist/server/features.d.mts +29 -0
- package/dist/server/features.mjs +34 -0
- package/dist/server/file-errors.d.mts +17 -0
- package/dist/server/file-errors.mjs +88 -0
- package/dist/server/file-lock.d.mts +18 -0
- package/dist/server/file-lock.mjs +68 -0
- package/dist/server/git-asks.d.mts +23 -0
- package/dist/server/git-asks.mjs +57 -0
- package/dist/server/git-host.d.mts +38 -0
- package/dist/server/git-host.mjs +182 -0
- package/dist/server/git-paused.d.mts +19 -0
- package/dist/server/git-paused.mjs +163 -0
- package/dist/server/git-settings.d.mts +18 -0
- package/dist/server/git-settings.mjs +64 -0
- package/dist/server/git-sync.d.mts +67 -0
- package/dist/server/git-sync.mjs +499 -0
- package/dist/server/git.d.mts +148 -0
- package/dist/server/git.mjs +652 -0
- package/dist/server/icon-set.d.mts +15 -0
- package/dist/server/icon-set.mjs +31 -0
- package/dist/server/instructions.d.mts +27 -0
- package/dist/server/instructions.mjs +71 -0
- package/dist/server/live-mirror.d.mts +60 -0
- package/dist/server/live-mirror.mjs +319 -0
- package/dist/server/live.d.mts +10 -0
- package/dist/server/live.mjs +155 -0
- package/dist/server/machine-update.d.mts +77 -0
- package/dist/server/machine-update.mjs +486 -0
- package/dist/server/mcp-handover.d.mts +37 -0
- package/dist/server/mcp-handover.mjs +76 -0
- package/dist/server/mcp.d.mts +63 -0
- package/dist/server/mcp.mjs +156 -0
- package/dist/server/me.d.mts +30 -0
- package/dist/server/me.mjs +43 -0
- package/dist/server/next.d.mts +21 -0
- package/dist/server/next.mjs +96 -0
- package/dist/server/notices.d.mts +84 -0
- package/dist/server/notices.mjs +281 -0
- package/dist/server/open-page.d.mts +58 -0
- package/dist/server/open-page.mjs +101 -0
- package/dist/server/own-copies.d.mts +64 -0
- package/dist/server/own-copies.mjs +260 -0
- package/dist/server/people.d.mts +19 -0
- package/dist/server/people.mjs +57 -0
- package/dist/server/personal-folder.d.mts +7 -0
- package/dist/server/personal-folder.mjs +32 -0
- package/dist/server/pictures.d.mts +39 -0
- package/dist/server/pictures.mjs +248 -0
- package/dist/server/port.d.mts +60 -0
- package/dist/server/port.mjs +106 -0
- package/dist/server/preferences.d.mts +7 -0
- package/dist/server/preferences.mjs +22 -0
- package/dist/server/presence.d.mts +40 -0
- package/dist/server/presence.mjs +98 -0
- package/dist/server/project-id.d.mts +4 -0
- package/dist/server/project-id.mjs +13 -0
- package/dist/server/project-public.d.mts +4 -0
- package/dist/server/project-public.mjs +53 -0
- package/dist/server/prototype-brief.d.mts +26 -0
- package/dist/server/prototype-brief.mjs +117 -0
- package/dist/server/push-notice.d.mts +23 -0
- package/dist/server/push-notice.mjs +43 -0
- package/dist/server/quiet-run.d.mts +25 -0
- package/dist/server/quiet-run.mjs +47 -0
- package/dist/server/registry.d.mts +23 -0
- package/dist/server/registry.mjs +113 -0
- package/dist/server/requests.d.mts +63 -0
- package/dist/server/requests.mjs +1483 -0
- package/dist/server/response-budget.d.mts +66 -0
- package/dist/server/response-budget.mjs +78 -0
- package/dist/server/restart.d.mts +77 -0
- package/dist/server/restart.mjs +115 -0
- package/dist/server/roster.d.mts +76 -0
- package/dist/server/roster.mjs +191 -0
- package/dist/server/saved.d.mts +18 -0
- package/dist/server/saved.mjs +46 -0
- package/dist/server/source-stamp.d.mts +19 -0
- package/dist/server/source-stamp.mjs +120 -0
- package/dist/server/spec-decisions.d.mts +31 -0
- package/dist/server/spec-decisions.mjs +59 -0
- package/dist/server/spec-suggestions.d.mts +21 -0
- package/dist/server/spec-suggestions.mjs +59 -0
- package/dist/server/state.d.mts +118 -0
- package/dist/server/state.mjs +165 -0
- package/dist/server/stop-studio.d.mts +17 -0
- package/dist/server/stop-studio.mjs +37 -0
- package/dist/server/studio-for.d.mts +58 -0
- package/dist/server/studio-for.mjs +73 -0
- package/dist/server/sync-install.d.mts +44 -0
- package/dist/server/sync-install.mjs +66 -0
- package/dist/server/thread-forms.d.mts +50 -0
- package/dist/server/thread-forms.mjs +159 -0
- package/dist/server/thread-place.d.mts +39 -0
- package/dist/server/thread-place.mjs +87 -0
- package/dist/server/thread-source.d.mts +60 -0
- package/dist/server/thread-source.mjs +197 -0
- package/dist/server/tools/close-reply.d.mts +6 -0
- package/dist/server/tools/close-reply.mjs +138 -0
- package/dist/server/tools/comment.d.mts +6 -0
- package/dist/server/tools/comment.mjs +49 -0
- package/dist/server/tools/context.d.mts +67 -0
- package/dist/server/tools/context.mjs +66 -0
- package/dist/server/tools/describe.d.mts +18 -0
- package/dist/server/tools/describe.mjs +35 -0
- package/dist/server/tools/feedback.d.mts +7 -0
- package/dist/server/tools/feedback.mjs +142 -0
- package/dist/server/tools/place-frame.d.mts +6 -0
- package/dist/server/tools/place-frame.mjs +104 -0
- package/dist/server/tools/prototype-name.d.mts +12 -0
- package/dist/server/tools/prototype-name.mjs +20 -0
- package/dist/server/tools/reading.d.mts +10 -0
- package/dist/server/tools/reading.mjs +152 -0
- package/dist/server/tools/result.d.mts +16 -0
- package/dist/server/tools/result.mjs +35 -0
- package/dist/server/tools/show.d.mts +7 -0
- package/dist/server/tools/show.mjs +87 -0
- package/dist/server/tools/snapshot.d.mts +10 -0
- package/dist/server/tools/snapshot.mjs +72 -0
- package/dist/server/tools/thread-list.d.mts +6 -0
- package/dist/server/tools/thread-list.mjs +105 -0
- package/dist/server/tools/watch.d.mts +6 -0
- package/dist/server/tools/watch.mjs +286 -0
- package/dist/server/unresolved-imports.d.mts +5 -0
- package/dist/server/unresolved-imports.mjs +82 -0
- package/dist/server/update-branch.d.mts +14 -0
- package/dist/server/update-branch.mjs +153 -0
- package/dist/server/update-studio.d.mts +38 -0
- package/dist/server/update-studio.mjs +101 -0
- package/dist/server/updates.d.mts +81 -0
- package/dist/server/updates.mjs +187 -0
- package/dist/server/vite.d.mts +115 -0
- package/dist/server/vite.mjs +754 -0
- package/dist/server/web-app.d.mts +24 -0
- package/dist/server/web-app.mjs +182 -0
- package/dist/server/welcome.d.mts +7 -0
- package/dist/server/welcome.mjs +43 -0
- package/dist/server/work-groups.d.mts +50 -0
- package/dist/server/work-groups.mjs +247 -0
- package/dist/server/workspace-settings.d.mts +55 -0
- package/dist/server/workspace-settings.mjs +340 -0
- package/dist/server/zip.d.mts +29 -0
- package/dist/server/zip.mjs +124 -0
- package/dist/setup/apply.d.mts +76 -0
- package/dist/setup/apply.mjs +464 -0
- package/dist/setup/commit-lint.d.mts +71 -0
- package/dist/setup/commit-lint.mjs +286 -0
- package/dist/setup/components.d.mts +27 -0
- package/dist/setup/components.mjs +67 -0
- package/dist/setup/config-choices.d.mts +14 -0
- package/dist/setup/config-choices.mjs +32 -0
- package/dist/setup/config-source.d.mts +58 -0
- package/dist/setup/config-source.mjs +384 -0
- package/dist/setup/create.d.mts +50 -0
- package/dist/setup/create.mjs +983 -0
- package/dist/setup/design-md-setup.d.mts +91 -0
- package/dist/setup/design-md-setup.mjs +164 -0
- package/dist/setup/design-md.d.mts +144 -0
- package/dist/setup/design-md.mjs +773 -0
- package/dist/setup/design-system-checks.d.mts +39 -0
- package/dist/setup/design-system-checks.mjs +264 -0
- package/dist/setup/design-system-guide.d.mts +10 -0
- package/dist/setup/design-system-guide.mjs +41 -0
- package/dist/setup/desktop-app-script.d.mts +28 -0
- package/dist/setup/desktop-app-script.mjs +774 -0
- package/dist/setup/desktop-app-start.d.mts +59 -0
- package/dist/setup/desktop-app-start.mjs +114 -0
- package/dist/setup/desktop-app.d.mts +166 -0
- package/dist/setup/desktop-app.mjs +535 -0
- package/dist/setup/detect/workspace.d.mts +207 -0
- package/dist/setup/detect/workspace.mjs +747 -0
- package/dist/setup/detect.d.mts +81 -0
- package/dist/setup/detect.mjs +346 -0
- package/dist/setup/doctor.d.mts +48 -0
- package/dist/setup/doctor.mjs +290 -0
- package/dist/setup/existing-setup.d.mts +60 -0
- package/dist/setup/existing-setup.mjs +323 -0
- package/dist/setup/findings.d.mts +16 -0
- package/dist/setup/findings.mjs +9 -0
- package/dist/setup/git-checks.d.mts +41 -0
- package/dist/setup/git-checks.mjs +247 -0
- package/dist/setup/hints.d.mts +20 -0
- package/dist/setup/hints.mjs +171 -0
- package/dist/setup/host-format.d.mts +13 -0
- package/dist/setup/host-format.mjs +89 -0
- package/dist/setup/migrate/agent-files.d.mts +23 -0
- package/dist/setup/migrate/agent-files.mjs +112 -0
- package/dist/setup/migrate/config-name.d.mts +21 -0
- package/dist/setup/migrate/config-name.mjs +68 -0
- package/dist/setup/migrate/design-system.d.mts +62 -0
- package/dist/setup/migrate/design-system.mjs +484 -0
- package/dist/setup/migrate/explorations.d.mts +5 -0
- package/dist/setup/migrate/explorations.mjs +31 -0
- package/dist/setup/migrate/files-folder.d.mts +43 -0
- package/dist/setup/migrate/files-folder.mjs +293 -0
- package/dist/setup/migrate/guides.d.mts +5 -0
- package/dist/setup/migrate/guides.mjs +55 -0
- package/dist/setup/migrate/migration.d.mts +67 -0
- package/dist/setup/migrate/migration.mjs +7 -0
- package/dist/setup/migrate/migrations.d.mts +22 -0
- package/dist/setup/migrate/migrations.mjs +52 -0
- package/dist/setup/migrate/people-folders.d.mts +26 -0
- package/dist/setup/migrate/people-folders.mjs +206 -0
- package/dist/setup/migrate/project-files.d.mts +5 -0
- package/dist/setup/migrate/project-files.mjs +28 -0
- package/dist/setup/migrate/row-titles.d.mts +5 -0
- package/dist/setup/migrate/row-titles.mjs +35 -0
- package/dist/setup/migrate/studio-state.d.mts +22 -0
- package/dist/setup/migrate/studio-state.mjs +130 -0
- package/dist/setup/own-app.d.mts +69 -0
- package/dist/setup/own-app.mjs +259 -0
- package/dist/setup/placement.d.mts +32 -0
- package/dist/setup/placement.mjs +249 -0
- package/dist/setup/plan.d.mts +157 -0
- package/dist/setup/plan.mjs +397 -0
- package/dist/setup/project.d.mts +156 -0
- package/dist/setup/project.mjs +299 -0
- package/dist/setup/prompts.d.mts +78 -0
- package/dist/setup/prompts.mjs +786 -0
- package/dist/setup/provider.d.mts +19 -0
- package/dist/setup/provider.mjs +118 -0
- package/dist/setup/questions.d.mts +140 -0
- package/dist/setup/questions.mjs +232 -0
- package/dist/setup/starters.d.mts +68 -0
- package/dist/setup/starters.mjs +166 -0
- package/dist/setup/templates.d.mts +75 -0
- package/dist/setup/templates.mjs +148 -0
- package/dist/setup/workspace-setup.d.mts +38 -0
- package/dist/setup/workspace-setup.mjs +159 -0
- package/dist/setup/write.d.mts +117 -0
- package/dist/setup/write.mjs +205 -0
- package/dist/shared/agent-prompts.d.mts +10 -0
- package/dist/shared/agent-prompts.mjs +11 -0
- package/dist/shared/annotations-core.d.mts +158 -0
- package/dist/shared/annotations-core.mjs +263 -0
- package/dist/shared/avatar-file.d.mts +11 -0
- package/dist/shared/avatar-file.mjs +12 -0
- package/dist/shared/block-merge.d.mts +28 -0
- package/dist/shared/block-merge.mjs +176 -0
- package/dist/shared/build-settings.d.mts +13 -0
- package/dist/shared/build-settings.mjs +9 -0
- package/dist/shared/built-pictures.d.mts +29 -0
- package/dist/shared/built-pictures.mjs +34 -0
- package/dist/shared/canvas-core.d.mts +478 -0
- package/dist/shared/canvas-core.mjs +859 -0
- package/dist/shared/checks.d.mts +8 -0
- package/dist/shared/checks.mjs +9 -0
- package/dist/shared/commands-core.d.mts +117 -0
- package/dist/shared/commands-core.mjs +90 -0
- package/dist/shared/contributors-merge.d.mts +8 -0
- package/dist/shared/contributors-merge.mjs +54 -0
- package/dist/shared/design-system.d.mts +89 -0
- package/dist/shared/design-system.mjs +1 -0
- package/dist/shared/devices.d.mts +59 -0
- package/dist/shared/devices.mjs +172 -0
- package/dist/shared/element-steps.d.mts +38 -0
- package/dist/shared/element-steps.mjs +40 -0
- package/dist/shared/feedback.d.mts +79 -0
- package/dist/shared/feedback.mjs +192 -0
- package/dist/shared/file-errors.d.mts +25 -0
- package/dist/shared/file-errors.mjs +25 -0
- package/dist/shared/fix-prompt.d.mts +30 -0
- package/dist/shared/fix-prompt.mjs +43 -0
- package/dist/shared/frame-grids.d.mts +43 -0
- package/dist/shared/frame-grids.mjs +107 -0
- package/dist/shared/front-matter.d.mts +37 -0
- package/dist/shared/front-matter.mjs +74 -0
- package/dist/shared/generated-sections.d.mts +29 -0
- package/dist/shared/generated-sections.mjs +117 -0
- package/dist/shared/git-core.d.mts +207 -0
- package/dist/shared/git-core.mjs +122 -0
- package/dist/shared/icon-sets.d.mts +9 -0
- package/dist/shared/icon-sets.mjs +21 -0
- package/dist/shared/json-style.d.mts +11 -0
- package/dist/shared/json-style.mjs +50 -0
- package/dist/shared/listing.d.mts +4 -0
- package/dist/shared/listing.mjs +10 -0
- package/dist/shared/live-core.d.mts +59 -0
- package/dist/shared/live-core.mjs +157 -0
- package/dist/shared/live-presence.d.mts +75 -0
- package/dist/shared/live-presence.mjs +128 -0
- package/dist/shared/markup-prompt.d.mts +17 -0
- package/dist/shared/markup-prompt.mjs +56 -0
- package/dist/shared/open-page-core.d.mts +38 -0
- package/dist/shared/open-page-core.mjs +39 -0
- package/dist/shared/page-messages.d.mts +68 -0
- package/dist/shared/page-messages.mjs +66 -0
- package/dist/shared/page-review.d.mts +100 -0
- package/dist/shared/page-review.mjs +138 -0
- package/dist/shared/paste-arrangement.d.mts +20 -0
- package/dist/shared/paste-arrangement.mjs +31 -0
- package/dist/shared/pasted-image.d.mts +16 -0
- package/dist/shared/pasted-image.mjs +11 -0
- package/dist/shared/people-core.d.mts +158 -0
- package/dist/shared/people-core.mjs +469 -0
- package/dist/shared/presence-core.d.mts +22 -0
- package/dist/shared/presence-core.mjs +7 -0
- package/dist/shared/product.d.mts +3 -0
- package/dist/shared/product.mjs +4 -0
- package/dist/shared/prototypes-core.d.mts +168 -0
- package/dist/shared/prototypes-core.mjs +270 -0
- package/dist/shared/references-core.d.mts +30 -0
- package/dist/shared/references-core.mjs +46 -0
- package/dist/shared/removed-views-core.d.mts +101 -0
- package/dist/shared/removed-views-core.mjs +115 -0
- package/dist/shared/review-file.d.mts +101 -0
- package/dist/shared/review-file.mjs +97 -0
- package/dist/shared/server-page.d.mts +74 -0
- package/dist/shared/server-page.mjs +294 -0
- package/dist/shared/signup.d.mts +42 -0
- package/dist/shared/signup.mjs +97 -0
- package/dist/shared/sketch-core.d.mts +61 -0
- package/dist/shared/sketch-core.mjs +329 -0
- package/dist/shared/snapshot-clipboard.d.mts +90 -0
- package/dist/shared/snapshot-clipboard.mjs +50 -0
- package/dist/shared/snapshot-images.d.mts +23 -0
- package/dist/shared/snapshot-images.mjs +80 -0
- package/dist/shared/spec-quote.d.mts +25 -0
- package/dist/shared/spec-quote.mjs +100 -0
- package/dist/shared/studio-events.d.mts +136 -0
- package/dist/shared/studio-events.mjs +95 -0
- package/dist/shared/studio-files.d.mts +50 -0
- package/dist/shared/studio-files.mjs +58 -0
- package/dist/shared/studio-routes.d.mts +844 -0
- package/dist/shared/studio-routes.mjs +137 -0
- package/dist/shared/threads-core.d.mts +455 -0
- package/dist/shared/threads-core.mjs +678 -0
- package/dist/shared/unzip.d.mts +9 -0
- package/dist/shared/unzip.mjs +56 -0
- package/dist/shared/update-core.d.mts +111 -0
- package/dist/shared/update-core.mjs +21 -0
- package/dist/shared/word-diff.d.mts +33 -0
- package/dist/shared/word-diff.mjs +118 -0
- package/dist/shared/workspace.d.mts +26 -0
- package/dist/shared/workspace.mjs +17 -0
- package/extension/dist/background.js +1 -0
- package/extension/dist/feedback.html +19 -0
- package/extension/dist/feedback.js +699 -0
- package/extension/dist/icons/128.png +0 -0
- package/extension/dist/icons/16.png +0 -0
- package/extension/dist/icons/32.png +0 -0
- package/extension/dist/icons/48.png +0 -0
- package/extension/dist/inter.woff2 +0 -0
- package/extension/dist/manifest.json +54 -0
- package/extension/dist/offscreen.html +9 -0
- package/extension/dist/offscreen.js +1 -0
- package/extension/dist/picker.js +678 -0
- package/package.json +207 -4
- package/src/cli/banner.ts +374 -0
- package/src/cli/command.ts +87 -0
- package/src/cli/commands/agents/add.ts +31 -0
- package/src/cli/commands/agents.ts +13 -0
- package/src/cli/commands/app.ts +128 -0
- package/src/cli/commands/build.ts +33 -0
- package/src/cli/commands/claude.ts +65 -0
- package/src/cli/commands/cloud/args.ts +19 -0
- package/src/cli/commands/cloud/link.ts +19 -0
- package/src/cli/commands/cloud/live.ts +26 -0
- package/src/cli/commands/cloud/login.ts +14 -0
- package/src/cli/commands/cloud/publish.ts +63 -0
- package/src/cli/commands/cloud/push.ts +16 -0
- package/src/cli/commands/cloud/status.ts +17 -0
- package/src/cli/commands/cloud/unlink.ts +17 -0
- package/src/cli/commands/cloud.ts +20 -0
- package/src/cli/commands/components.ts +25 -0
- package/src/cli/commands/create.ts +183 -0
- package/src/cli/commands/dev.ts +234 -0
- package/src/cli/commands/doctor.ts +34 -0
- package/src/cli/commands/extension.ts +33 -0
- package/src/cli/commands/hook.ts +99 -0
- package/src/cli/commands/init.ts +24 -0
- package/src/cli/commands/mcp.ts +58 -0
- package/src/cli/commands/merge-contributors.ts +39 -0
- package/src/cli/commands/merge-spec.ts +54 -0
- package/src/cli/commands/preview.ts +18 -0
- package/src/cli/commands/stop.ts +27 -0
- package/src/cli/commands/upgrade.ts +76 -0
- package/src/cli/commands/work/args.ts +38 -0
- package/src/cli/commands/work/check.ts +21 -0
- package/src/cli/commands/work/contributor.ts +34 -0
- package/src/cli/commands/work/new.ts +28 -0
- package/src/cli/commands/work/presence.ts +37 -0
- package/src/cli/commands/work/scope.ts +23 -0
- package/src/cli/commands/work/snapshot.ts +27 -0
- package/src/cli/commands/work/thread.ts +40 -0
- package/src/cli/commands/work/threads.ts +20 -0
- package/src/cli/commands/work/whoami.ts +12 -0
- package/src/cli/help.ts +213 -0
- package/src/cli/main.ts +140 -0
- package/src/cli/mcp-relay.ts +538 -0
- package/src/cli/recovery-server.ts +123 -0
- package/src/cli/strict-flags.ts +208 -0
- package/src/cli/supervise.ts +416 -0
- package/src/cli/ui.ts +402 -0
- package/src/config/design-system.ts +349 -0
- package/src/config/index.ts +288 -0
- package/src/config/load.ts +201 -0
- package/src/config/package-manager.ts +93 -0
- package/src/config/project-files.ts +856 -0
- package/src/config/renamed.ts +59 -0
- package/src/config/schema.ts +195 -0
- package/src/content/biome.ts +51 -0
- package/src/content/capture.ts +1114 -0
- package/src/content/commands.ts +288 -0
- package/src/content/comments-log.ts +288 -0
- package/src/content/component-props.ts +642 -0
- package/src/content/content.ts +2470 -0
- package/src/content/devices.ts +63 -0
- package/src/content/file-turns.ts +60 -0
- package/src/content/first-run.ts +62 -0
- package/src/content/flow-specs.ts +267 -0
- package/src/content/insert-edit.ts +225 -0
- package/src/content/jsx-source.ts +54 -0
- package/src/content/last-edited.ts +58 -0
- package/src/content/layout.ts +32 -0
- package/src/content/merge-rules.ts +77 -0
- package/src/content/prop-edit.ts +262 -0
- package/src/content/prototype-checks.ts +239 -0
- package/src/content/prototype-summary.ts +216 -0
- package/src/content/prototypes.ts +413 -0
- package/src/content/read-text.ts +12 -0
- package/src/content/review-import.ts +77 -0
- package/src/content/review-pages.ts +329 -0
- package/src/content/screenshot.ts +457 -0
- package/src/content/snapshot-client.ts +99 -0
- package/src/content/store.ts +237 -0
- package/src/content/text-edit.ts +134 -0
- package/src/content/thread-module.ts +368 -0
- package/src/content/threads.ts +328 -0
- package/src/content/trash.ts +350 -0
- package/src/paste/figma/appearance.ts +253 -0
- package/src/paste/figma/captures.ts +175 -0
- package/src/paste/figma/decode.ts +604 -0
- package/src/paste/figma/document.ts +541 -0
- package/src/paste/figma/layout.ts +233 -0
- package/src/paste/figma/paint.ts +327 -0
- package/src/paste/figma/render.ts +149 -0
- package/src/paste/figma/styles.ts +119 -0
- package/src/paste/figma/text.ts +439 -0
- package/src/paste/figma/vector.ts +405 -0
- package/src/paste/fonts.ts +119 -0
- package/src/paste/paste.ts +202 -0
- package/src/paths.ts +208 -0
- package/src/server/agent-env.ts +60 -0
- package/src/server/agent-session.ts +209 -0
- package/src/server/agents.ts +1220 -0
- package/src/server/allowed-request.ts +95 -0
- package/src/server/avatars.ts +87 -0
- package/src/server/brief.ts +506 -0
- package/src/server/briefing.ts +235 -0
- package/src/server/build-pictures.ts +302 -0
- package/src/server/build-settings.ts +47 -0
- package/src/server/changelog.ts +59 -0
- package/src/server/channel.ts +1092 -0
- package/src/server/close-check.ts +218 -0
- package/src/server/cloud.ts +404 -0
- package/src/server/command-settings.ts +100 -0
- package/src/server/component-catalogue.ts +294 -0
- package/src/server/config-settings.ts +63 -0
- package/src/server/content-type.ts +25 -0
- package/src/server/dependency-clash.ts +345 -0
- package/src/server/dev-server.ts +343 -0
- package/src/server/features.ts +58 -0
- package/src/server/file-errors.ts +167 -0
- package/src/server/file-lock.ts +114 -0
- package/src/server/git-asks.ts +91 -0
- package/src/server/git-host.ts +263 -0
- package/src/server/git-paused.ts +204 -0
- package/src/server/git-settings.ts +88 -0
- package/src/server/git-sync.ts +729 -0
- package/src/server/git.ts +991 -0
- package/src/server/icon-set.ts +56 -0
- package/src/server/instructions.ts +124 -0
- package/src/server/live-mirror.ts +483 -0
- package/src/server/live.ts +275 -0
- package/src/server/machine-update.ts +780 -0
- package/src/server/mcp-handover.ts +147 -0
- package/src/server/mcp.ts +294 -0
- package/src/server/me.ts +68 -0
- package/src/server/next.ts +135 -0
- package/src/server/notices.ts +580 -0
- package/src/server/open-page.ts +192 -0
- package/src/server/own-copies.ts +419 -0
- package/src/server/people.ts +98 -0
- package/src/server/personal-folder.ts +34 -0
- package/src/server/pictures.ts +365 -0
- package/src/server/port.ts +178 -0
- package/src/server/preferences.ts +34 -0
- package/src/server/presence.ts +175 -0
- package/src/server/project-id.ts +17 -0
- package/src/server/project-public.ts +73 -0
- package/src/server/prototype-brief.ts +208 -0
- package/src/server/push-notice.ts +69 -0
- package/src/server/quiet-run.ts +85 -0
- package/src/server/registry.ts +161 -0
- package/src/server/requests.ts +2387 -0
- package/src/server/response-budget.ts +109 -0
- package/src/server/restart.ts +187 -0
- package/src/server/roster.ts +302 -0
- package/src/server/saved.ts +77 -0
- package/src/server/source-stamp.ts +194 -0
- package/src/server/spec-decisions.ts +113 -0
- package/src/server/spec-suggestions.ts +87 -0
- package/src/server/state.ts +287 -0
- package/src/server/stop-studio.ts +44 -0
- package/src/server/studio-for.ts +161 -0
- package/src/server/sync-install.ts +87 -0
- package/src/server/thread-forms.ts +246 -0
- package/src/server/thread-place.ts +160 -0
- package/src/server/thread-source.ts +328 -0
- package/src/server/tools/close-reply.ts +271 -0
- package/src/server/tools/comment.ts +96 -0
- package/src/server/tools/context.ts +179 -0
- package/src/server/tools/describe.ts +53 -0
- package/src/server/tools/feedback.ts +225 -0
- package/src/server/tools/place-frame.ts +167 -0
- package/src/server/tools/prototype-name.ts +50 -0
- package/src/server/tools/reading.ts +271 -0
- package/src/server/tools/result.ts +32 -0
- package/src/server/tools/show.ts +159 -0
- package/src/server/tools/snapshot.ts +114 -0
- package/src/server/tools/thread-list.ts +185 -0
- package/src/server/tools/watch.ts +436 -0
- package/src/server/unresolved-imports.ts +103 -0
- package/src/server/update-branch.ts +226 -0
- package/src/server/update-studio.ts +164 -0
- package/src/server/updates.ts +360 -0
- package/src/server/vite.ts +1186 -0
- package/src/server/web-app.ts +235 -0
- package/src/server/welcome.ts +57 -0
- package/src/server/work-groups.ts +373 -0
- package/src/server/workspace-settings.ts +508 -0
- package/src/server/zip.ts +151 -0
- package/src/setup/apply.ts +802 -0
- package/src/setup/commit-lint.ts +403 -0
- package/src/setup/components.ts +124 -0
- package/src/setup/config-choices.ts +56 -0
- package/src/setup/config-source.ts +660 -0
- package/src/setup/create.ts +1705 -0
- package/src/setup/design-md-setup.ts +319 -0
- package/src/setup/design-md.ts +1293 -0
- package/src/setup/design-system-checks.ts +487 -0
- package/src/setup/design-system-guide.ts +106 -0
- package/src/setup/desktop-app-script.ts +814 -0
- package/src/setup/desktop-app-start.ts +152 -0
- package/src/setup/desktop-app.ts +828 -0
- package/src/setup/detect/workspace.ts +1487 -0
- package/src/setup/detect.ts +552 -0
- package/src/setup/doctor.ts +526 -0
- package/src/setup/existing-setup.ts +567 -0
- package/src/setup/findings.ts +27 -0
- package/src/setup/git-checks.ts +434 -0
- package/src/setup/hints.ts +308 -0
- package/src/setup/host-format.ts +153 -0
- package/src/setup/migrate/agent-files.ts +161 -0
- package/src/setup/migrate/config-name.ts +109 -0
- package/src/setup/migrate/design-system.ts +888 -0
- package/src/setup/migrate/explorations.ts +49 -0
- package/src/setup/migrate/files-folder.ts +470 -0
- package/src/setup/migrate/guides.ts +93 -0
- package/src/setup/migrate/migration.ts +80 -0
- package/src/setup/migrate/migrations.ts +82 -0
- package/src/setup/migrate/people-folders.ts +347 -0
- package/src/setup/migrate/project-files.ts +35 -0
- package/src/setup/migrate/row-titles.ts +56 -0
- package/src/setup/migrate/studio-state.ts +186 -0
- package/src/setup/own-app.ts +442 -0
- package/src/setup/placement.ts +408 -0
- package/src/setup/plan.ts +783 -0
- package/src/setup/project.ts +612 -0
- package/src/setup/prompts.ts +1272 -0
- package/src/setup/provider.ts +180 -0
- package/src/setup/questions.ts +426 -0
- package/src/setup/starters.ts +272 -0
- package/src/setup/templates.ts +280 -0
- package/src/setup/workspace-setup.ts +267 -0
- package/src/setup/write.ts +337 -0
- package/src/shared/agent-prompts.ts +14 -0
- package/src/shared/annotations-core.ts +478 -0
- package/src/shared/avatar-file.ts +22 -0
- package/src/shared/block-merge.ts +271 -0
- package/src/shared/build-settings.ts +22 -0
- package/src/shared/built-pictures.ts +62 -0
- package/src/shared/canvas-core.ts +1408 -0
- package/src/shared/checks.ts +16 -0
- package/src/shared/commands-core.ts +237 -0
- package/src/shared/contributors-merge.ts +93 -0
- package/src/shared/design-system.ts +136 -0
- package/src/shared/devices.ts +292 -0
- package/src/shared/element-steps.ts +99 -0
- package/src/shared/feedback.ts +284 -0
- package/src/shared/file-errors.ts +57 -0
- package/src/shared/fix-prompt.ts +85 -0
- package/src/shared/frame-grids.ts +182 -0
- package/src/shared/front-matter.ts +119 -0
- package/src/shared/generated-sections.ts +185 -0
- package/src/shared/git-core.ts +398 -0
- package/src/shared/icon-sets.ts +23 -0
- package/src/shared/json-style.ts +74 -0
- package/src/shared/listing.ts +13 -0
- package/src/shared/live-core.ts +255 -0
- package/src/shared/live-presence.ts +217 -0
- package/src/shared/markup-prompt.ts +69 -0
- package/src/shared/open-page-core.ts +89 -0
- package/src/shared/page-messages.ts +156 -0
- package/src/shared/page-review.ts +287 -0
- package/src/shared/paste-arrangement.ts +52 -0
- package/src/shared/pasted-image.ts +23 -0
- package/src/shared/people-core.ts +826 -0
- package/src/shared/presence-core.ts +30 -0
- package/src/shared/product.ts +4 -0
- package/src/shared/prototypes-core.ts +450 -0
- package/src/shared/references-core.ts +89 -0
- package/src/shared/removed-views-core.ts +223 -0
- package/src/shared/review-file.ts +216 -0
- package/src/shared/server-page.ts +384 -0
- package/src/shared/signup.ts +103 -0
- package/src/shared/sketch-core.ts +425 -0
- package/src/shared/snapshot-clipboard.ts +139 -0
- package/src/shared/snapshot-images.ts +130 -0
- package/src/shared/spec-quote.ts +153 -0
- package/src/shared/studio-events.ts +215 -0
- package/src/shared/studio-files.ts +131 -0
- package/src/shared/studio-routes.ts +684 -0
- package/src/shared/threads-core.ts +1485 -0
- package/src/shared/unzip.ts +95 -0
- package/src/shared/update-core.ts +126 -0
- package/src/shared/word-diff.ts +163 -0
- package/src/shared/workspace.ts +38 -0
- package/templates/DESIGN.md +0 -0
- package/templates/context/.gitkeep +0 -0
- package/templates/feedback-workflow.md +1 -0
- package/templates/mcp-instructions.md +1 -0
- package/templates/methods/component-examples.md +75 -0
- package/templates/methods/components.md +78 -0
- package/templates/methods/critique.md +54 -0
- package/templates/methods/design-md.md +92 -0
- package/templates/methods/explore.md +101 -0
- package/templates/methods/handoff.md +40 -0
- package/templates/methods/hifi.md +24 -0
- package/templates/methods/review.md +156 -0
- package/templates/rules/always.md +38 -0
- package/templates/rules/canvas.md +307 -0
- package/templates/rules/commands.md +30 -0
- package/templates/rules/prototypes.md +171 -0
- package/templates/rules/scope.md +41 -0
- package/templates/rules/studio.md +89 -0
- package/templates/skills/break/SKILL.md +16 -0
- package/templates/skills/connect-frames/SKILL.md +9 -0
- package/templates/skills/duplicate-and-refine/SKILL.md +9 -0
- package/templates/skills/polish-responsive/SKILL.md +9 -0
- package/templates/skills/remember-as-guideline/SKILL.md +9 -0
- package/templates/skills/remove/SKILL.md +8 -0
- package/templates/skills/tighten-copy/SKILL.md +8 -0
- package/templates/skills/use-design-system/SKILL.md +10 -0
- package/templates/starter-prototype/welcome.tsx +47 -0
- package/templates/starters/standalone/README.md +21 -0
- package/templates/starters/standalone/components.json +25 -0
- package/templates/starters/standalone/gitignore +4 -0
- package/templates/starters/standalone/package.json +24 -0
- package/templates/starters/standalone/tsconfig.json +14 -0
- package/templates/starters/turborepo/README.md +22 -0
- package/templates/starters/turborepo/apps/web/components.json +25 -0
- package/templates/starters/turborepo/apps/web/index.html +12 -0
- package/templates/starters/turborepo/apps/web/package.json +28 -0
- package/templates/starters/turborepo/apps/web/src/app.tsx +44 -0
- package/templates/starters/turborepo/apps/web/src/index.css +5 -0
- package/templates/starters/turborepo/apps/web/src/main.tsx +13 -0
- package/templates/starters/turborepo/apps/web/tsconfig.json +11 -0
- package/templates/starters/turborepo/apps/web/vite.config.ts +11 -0
- package/templates/starters/turborepo/gitignore +5 -0
- package/templates/starters/turborepo/package.json +19 -0
- package/templates/starters/turborepo/packages/ui/components.json +25 -0
- package/templates/starters/turborepo/packages/ui/package.json +33 -0
- package/templates/starters/turborepo/packages/ui/src/hooks/.gitkeep +0 -0
- package/templates/starters/turborepo/packages/ui/tsconfig.json +7 -0
- package/templates/starters/turborepo/tsconfig.json +14 -0
- package/templates/starters/turborepo/turbo.json +19 -0
- package/templates/starters/vite/README.md +18 -0
- package/templates/starters/vite/components.json +25 -0
- package/templates/starters/vite/gitignore +4 -0
- package/templates/starters/vite/index.html +12 -0
- package/templates/starters/vite/package.json +32 -0
- package/templates/starters/vite/src/app.tsx +43 -0
- package/templates/starters/vite/src/components/ui/attachment.tsx +207 -0
- package/templates/starters/vite/src/components/ui/badge.tsx +51 -0
- package/templates/starters/vite/src/components/ui/button.tsx +57 -0
- package/templates/starters/vite/src/components/ui/card.tsx +102 -0
- package/templates/starters/vite/src/components/ui/dialog.tsx +157 -0
- package/templates/starters/vite/src/components/ui/dropdown-menu.tsx +264 -0
- package/templates/starters/vite/src/components/ui/field.tsx +236 -0
- package/templates/starters/vite/src/components/ui/input-group.tsx +156 -0
- package/templates/starters/vite/src/components/ui/input.tsx +19 -0
- package/templates/starters/vite/src/components/ui/label.tsx +17 -0
- package/templates/starters/vite/src/components/ui/native-select.tsx +61 -0
- package/templates/starters/vite/src/components/ui/popover.tsx +89 -0
- package/templates/starters/vite/src/components/ui/separator.tsx +22 -0
- package/templates/starters/vite/src/components/ui/spinner.tsx +14 -0
- package/templates/starters/vite/src/components/ui/switch.tsx +31 -0
- package/templates/starters/vite/src/components/ui/textarea.tsx +17 -0
- package/templates/starters/vite/src/components/ui/toggle-group.tsx +89 -0
- package/templates/starters/vite/src/components/ui/toggle.tsx +42 -0
- package/templates/starters/vite/src/index.css +130 -0
- package/templates/starters/vite/src/lib/utils.ts +1 -0
- package/templates/starters/vite/src/main.tsx +13 -0
- package/templates/starters/vite/tsconfig.json +15 -0
- package/templates/starters/vite/vite.config.ts +11 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Connor Forsyth
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,526 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Dex Canvas
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Dex as a package, `@dexhq/canvas`: the app, the canvas, the dev server and
|
|
4
|
+
the `dex` CLI. A project installs it, owns its content, and upgrades when
|
|
5
|
+
it likes, the way Storybook works.
|
|
6
|
+
|
|
7
|
+
## Quick start
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm create dex@latest # finds your components, wires up your agent
|
|
11
|
+
npm run studio # http://localhost:3008
|
|
12
|
+
npx playwright install chromium # once, for `dex snapshot`
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
`dex snapshot` screenshots every frame of a prototype in light and dark,
|
|
16
|
+
so an agent can look at its own work. It drives Playwright's Chromium, which
|
|
17
|
+
a fresh install does not have yet: install it once with
|
|
18
|
+
`npx playwright install chromium`. Until you do, `dex snapshot` stops and
|
|
19
|
+
names that command, and `dex doctor` warns about it.
|
|
20
|
+
|
|
21
|
+
Then open **Quick start** in the studio and click through it:
|
|
22
|
+
|
|
23
|
+
1. **Add yourself**, so prototypes and comments carry your name.
|
|
24
|
+
2. **Write the team's instructions** on the Instructions page. They are
|
|
25
|
+
`DESIGN.md`, edited as rich text; your agent gets every edit with your
|
|
26
|
+
next message. Design tokens in YAML front matter (Google's DESIGN.md
|
|
27
|
+
format) show above the editor, read-only, and are kept exactly as written.
|
|
28
|
+
A DESIGN.md the design system links from elsewhere (`designSystem.guide`)
|
|
29
|
+
is listed too, as "Design system guide" with its path, read-only.
|
|
30
|
+
3. **Connect your agent.** Pick Claude Code, Codex, Cursor, GitHub Copilot
|
|
31
|
+
or OpenCode and click Add MCP config: the studio writes its MCP server
|
|
32
|
+
into that agent's own config, and only then. Open <agent> starts it in a
|
|
33
|
+
Terminal window where agents start (Claude Code listening to the studio),
|
|
34
|
+
and Open terminal here opens a plain one there; away from a Mac, each
|
|
35
|
+
gives the command to copy. Make it your default agent, and wherever you
|
|
36
|
+
ask an agent while none is connected, the studio offers to open it. The
|
|
37
|
+
choice is yours, in `~/.config/dex/preferences.json`, never committed.
|
|
38
|
+
4. **Create a prototype** with New prototype. You get a folder, a first view
|
|
39
|
+
and a canvas.
|
|
40
|
+
5. **Review it.** On the canvas, comment on anything (C), measure it (M), or
|
|
41
|
+
click a dashed cell to ask for a new view. With Watch on, new comments
|
|
42
|
+
reach a listening Claude Code, or any agent asked to watch the studio, as
|
|
43
|
+
they are posted; turned off, they wait. It resolves each thread
|
|
44
|
+
with what changed.
|
|
45
|
+
|
|
46
|
+
## Feedback between people and agents
|
|
47
|
+
|
|
48
|
+
Every comment is a thread in the prototype's `comments/` folder (one file per
|
|
49
|
+
thread, so teammates never conflict in git), tracked until it
|
|
50
|
+
is resolved or dismissed, and committed with the prototype.
|
|
51
|
+
|
|
52
|
+
- **For the agent or for people.** Threads for the agent are work: agents
|
|
53
|
+
watching the studio pick them up, say when they start and resolve them with
|
|
54
|
+
what changed. Threads for people are a discussion agents leave alone. Hand a
|
|
55
|
+
thread over either way at any time. Requests for new views are always for
|
|
56
|
+
the agent.
|
|
57
|
+
- **Questions come back to you.** When an agent replies with a question, the
|
|
58
|
+
thread shows as waiting for you: on its pin, in the canvas's Comments panel,
|
|
59
|
+
on the Feedback page and beside Feedback in the sidebar. Answer it and the
|
|
60
|
+
agent picks it up again.
|
|
61
|
+
- **Snapshots.** The browser extension copies any element from any page
|
|
62
|
+
(including localhost and pages behind a login), with its styles,
|
|
63
|
+
animations and the menus it opens; paste it
|
|
64
|
+
on a canvas as a view to iterate on, which reflows as its frame is resized.
|
|
65
|
+
`npx dex extension` installs it. Frames copied in Figma paste onto the
|
|
66
|
+
canvas the same way, from Figma's own data: auto layout as flexbox, text,
|
|
67
|
+
vectors, components and variables.
|
|
68
|
+
- **Reactions and who it is for.** React to any message, and choose in the
|
|
69
|
+
composer whether a comment is for the agent or for people.
|
|
70
|
+
- **Agents comment too.** With `comment` an agent pins notes to the
|
|
71
|
+
element they are about, for example each finding of a critique.
|
|
72
|
+
- **On the canvas.** Pins sit on their element and follow it, the open
|
|
73
|
+
thread's element is outlined, a note appears when an agent answers, and
|
|
74
|
+
`/files/<slug>/canvas?thread=<id>` opens a thread where it is.
|
|
75
|
+
|
|
76
|
+
The MCP tools for threads are `threads`, `watch`,
|
|
77
|
+
`close`, `reply` and `comment`; without MCP, `dex
|
|
78
|
+
threads` and `dex thread` do the same from the command line.
|
|
79
|
+
|
|
80
|
+
## The canvas
|
|
81
|
+
|
|
82
|
+
A canvas is made of sections, each laid out as a grid. Steps run left to
|
|
83
|
+
right; rows below the first are iterations of the section: states, errors,
|
|
84
|
+
alternatives, other sizes. Frames snap into cells when dragged, so nothing
|
|
85
|
+
overlaps and every state stays on show. See `templates/rules/canvas.md`.
|
|
86
|
+
|
|
87
|
+
## Cloud workspaces (Team plan)
|
|
88
|
+
|
|
89
|
+
A studio on its own keeps comments in each prototype's `comments/` folder. Link it
|
|
90
|
+
to a cloud workspace and they live there instead, shared by every teammate's
|
|
91
|
+
studio and every teammate's agent within a few seconds. Views, canvases and
|
|
92
|
+
instructions stay in git.
|
|
93
|
+
|
|
94
|
+
```sh
|
|
95
|
+
npx dex cloud link --workspace <slug> [--url <service url>] # writes studio.cloud.json; commit it
|
|
96
|
+
npx dex cloud login --token <token> [--url <service url>] # token from the workspace's settings, Tokens
|
|
97
|
+
npx dex cloud push # bring existing comment threads
|
|
98
|
+
npx dex cloud publish # host the studio at <service>/s/<slug>/
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
`STUDIO_CLOUD_TOKEN` overrides the stored token, for CI and hosted agents. The
|
|
102
|
+
service holds workspaces, members and roles (viewers are free), tokens and
|
|
103
|
+
the published studio.
|
|
104
|
+
|
|
105
|
+
### Pages from the host
|
|
106
|
+
|
|
107
|
+
Whoever serves the studio for others can add pages of its own to the sidebar,
|
|
108
|
+
such as a cloud workspace's settings, opened inside the studio. The page they
|
|
109
|
+
serve carries a tag:
|
|
110
|
+
|
|
111
|
+
```html
|
|
112
|
+
<meta name="studio-host" content='{"name":"Acme design","pages":[{"id":"settings","label":"Workspace settings","url":"https://studio.example.com/app/acme/settings"}]}'>
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Each page shows under the `name` group at `/host/<id>`, framed, with the
|
|
116
|
+
studio's theme as `?theme=light` or `dark` on its address. `dex dev`
|
|
117
|
+
writes the tag from `STUDIO_HOST_PAGES` (the same JSON). A studio you run
|
|
118
|
+
yourself has no tag, so it shows no such pages.
|
|
119
|
+
|
|
120
|
+
## Add a studio to a project
|
|
121
|
+
|
|
122
|
+
```sh
|
|
123
|
+
npm create dex@latest
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
`pnpm create dex`, `yarn create dex` and `bun create dex` work too;
|
|
127
|
+
with npm, flags go after `--` (`npm create dex@latest -- --yes`). It runs
|
|
128
|
+
`dex create` from `@dexhq/canvas`, which `npx @dexhq/canvas create` runs
|
|
129
|
+
directly.
|
|
130
|
+
|
|
131
|
+
Run it where the project's `package.json` is, or anywhere in a workspace
|
|
132
|
+
(monorepo). In an empty folder it starts a new project from the shadcn
|
|
133
|
+
starter instead (Vite, React and shadcn on Base UI, with every component the
|
|
134
|
+
studio's own interface uses), then sets the studio up in it the same way. It
|
|
135
|
+
says what it does at each step:
|
|
136
|
+
|
|
137
|
+
1. **Looks.** It finds the project's own components, so prototypes use them
|
|
138
|
+
instead of new copies: from `components.json` (here or in any workspace
|
|
139
|
+
package) or the usual folders (`components/ui`, `src/components`…).
|
|
140
|
+
Components can be files (`button.tsx`, `Button.tsx`) or folders with an
|
|
141
|
+
index file. It finds the global stylesheet (tokens, fonts, Tailwind), the
|
|
142
|
+
agents you use (Claude Code, Codex, Cursor, GitHub Copilot, OpenCode) and
|
|
143
|
+
the package manager (`packageManager` or the lockfile). MUI, Mantine,
|
|
144
|
+
Chakra, Ant Design and Radix Themes are read from dependencies; Mantine,
|
|
145
|
+
Chakra and Radix Themes also need a provider around every view (below).
|
|
146
|
+
Each finding says where it came from (`components.json → aliases.ui`).
|
|
147
|
+
2. **Asks.** In a terminal it confirms the components, the styles, whether
|
|
148
|
+
the studio's own buttons and menus should be built from your components
|
|
149
|
+
(shadcn on Base UI only), the provider when the design system needs one,
|
|
150
|
+
how `DESIGN.md` starts (below) and which agents to connect. "Yes" is first each time; "No" lets you pick another folder or
|
|
151
|
+
file, and shows how prototypes will import it. If it cannot tell, it asks
|
|
152
|
+
for the import.
|
|
153
|
+
3. **Plans.** It lists every file it will create or edit and every command it
|
|
154
|
+
will run, then asks "Go ahead?". `--dry-run` stops here.
|
|
155
|
+
4. **Writes** `dex.config.ts` with the choices made, and nothing your
|
|
156
|
+
project's own files say (components.json, a package's name and exports,
|
|
157
|
+
the defaults): Dex reads those on every start. `studio/` gets
|
|
158
|
+
`DESIGN.md` (drafted, imported or empty; below), a `tsconfig.json` that
|
|
159
|
+
extends your project's, so views import through its `paths` and
|
|
160
|
+
`baseUrl` as they are on any day, its own `.gitignore` (the studio's
|
|
161
|
+
`.studio/` state and comments' temporary files) and, for a design system
|
|
162
|
+
that needs one, `provider.tsx`. `package.json` gets one `studio` script;
|
|
163
|
+
your own `.gitignore` is left alone. Each agent's config (for Claude Code
|
|
164
|
+
the hooks and the MCP server in `.mcp.json`), and two lines in the root
|
|
165
|
+
`AGENTS.md` (or `CLAUDE.md`), when there is one, saying prototypes live in
|
|
166
|
+
`studio/`. `contributors.json` and `files/` are made when the studio
|
|
167
|
+
first starts. Codex's server goes in `.codex/config.toml`. It never overwrites a
|
|
168
|
+
file of yours, and stops if the studio folder has an `AGENTS.md` it did not write.
|
|
169
|
+
5. **Installs** `@dexhq/canvas` with your package manager, showing its
|
|
170
|
+
output (`npm i -D @dexhq/canvas`). A studio linked into the project
|
|
171
|
+
(`bun link`) is kept, not installed from npm.
|
|
172
|
+
6. **Checks** the setup with `dex doctor` and prints what to do next,
|
|
173
|
+
with the command that repeats the same setup without questions.
|
|
174
|
+
|
|
175
|
+
Run it again where a studio is set up (in a workspace, any package's) and
|
|
176
|
+
it plans only what differs from what this version writes, as `storybook
|
|
177
|
+
automigrate` does. The choices come from `dex.config.ts` first, then flags,
|
|
178
|
+
then what it finds. Facts the project's files say are dropped from
|
|
179
|
+
`designSystem`, only where the design system resolves the same without them;
|
|
180
|
+
`ui.icons` and `plugins: [next()]` are added; a studio `tsconfig.json` that
|
|
181
|
+
copies the project's paths extends its tsconfig instead; a file, an agent's
|
|
182
|
+
config or the install an earlier run left out is made; and a `@dexhq/canvas`
|
|
183
|
+
range too old for what it writes is raised. The config keeps its other keys,
|
|
184
|
+
comments and formatting. What an older setup added to the project's own files
|
|
185
|
+
(`.gitignore` lines, the `studio:build` and `studio:claude` scripts) stays,
|
|
186
|
+
and the plan says so in a `note`; `DESIGN.md`, `provider.tsx`,
|
|
187
|
+
`contributors.json` and files are never touched. It asks "Go ahead?" once;
|
|
188
|
+
`--yes` takes it, and a second run plans nothing.
|
|
189
|
+
|
|
190
|
+
### DESIGN.md
|
|
191
|
+
|
|
192
|
+
`DESIGN.md` tells agents your design language. It is written in Google's
|
|
193
|
+
DESIGN.md format (`@google/design.md`): tokens in YAML front matter, then
|
|
194
|
+
sections. Setup finds any DESIGN.md already there (in the project and its
|
|
195
|
+
`docs/`, the workspace root, and the package that holds your components)
|
|
196
|
+
and offers four starts (`--design-md`):
|
|
197
|
+
|
|
198
|
+
- **A draft from your design system** (`draft`, recommended, the default even
|
|
199
|
+
when one exists). Tokens come from the chosen stylesheet and the project's
|
|
200
|
+
own files it `@import`s (`:root`, `.dark` and `@theme` custom properties,
|
|
201
|
+
colours converted to hex), and the component list from the components
|
|
202
|
+
folder, each with its import. It writes Colors, Typography, Layout, Shapes
|
|
203
|
+
and Components from those facts only: no placeholder text, no guesses. Values
|
|
204
|
+
the format cannot hold (`calc()`, a font a loader sets at runtime) are
|
|
205
|
+
listed in prose. Then ask your agent "Finish DESIGN.md with me": it follows
|
|
206
|
+
`methods/design-md.md`, asks you a few questions, writes the rest and runs
|
|
207
|
+
the format's linter. `--dry-run` shows what the draft would hold.
|
|
208
|
+
- **An existing DESIGN.md, linked** (a path inside the repository, such as
|
|
209
|
+
`--design-md ./DESIGN.md`). It goes into the config as
|
|
210
|
+
`designSystem.guide`, not copied: the design system owns it. The studio's
|
|
211
|
+
own `DESIGN.md` starts empty, for the team's prototyping instructions.
|
|
212
|
+
`brief` names the guide for agents to read, the Claude hook says
|
|
213
|
+
when it changes, and the Instructions page shows it read-only.
|
|
214
|
+
- **A file or URL to import** (a path outside the repository, or
|
|
215
|
+
`https://…`): copied into the studio's `DESIGN.md`, for example a template
|
|
216
|
+
or a Stitch export. It warns when the front matter does not parse.
|
|
217
|
+
- **Nothing for now** (`none`): an empty `DESIGN.md`.
|
|
218
|
+
|
|
219
|
+
### In a workspace (Turborepo, pnpm, npm, Bun or Yarn workspaces, Nx)
|
|
220
|
+
|
|
221
|
+
It finds the workspace root from wherever you run it (`pnpm-workspace.yaml`,
|
|
222
|
+
`workspaces` in `package.json`, `turbo.json`, `nx.json`), its package
|
|
223
|
+
manager from the root, its packages and which of them hold components, and
|
|
224
|
+
asks where the studio goes:
|
|
225
|
+
|
|
226
|
+
- **Its own app, `apps/studio`**, when the components are in a shared
|
|
227
|
+
package (`packages/ui`). It depends on that package as your apps do
|
|
228
|
+
(`workspace:*`, or `*` with npm), with React's version copied from an app
|
|
229
|
+
that uses it, so prototypes import `@acme/ui/components/button` with no
|
|
230
|
+
path rewriting.
|
|
231
|
+
- **Inside the app that has them** (`apps/web/studio`), when the components
|
|
232
|
+
live in one app only, behind its `@/` aliases. Run from another app, it
|
|
233
|
+
still recommends the app that has them, and offers yours next with a
|
|
234
|
+
warning that it could not import them.
|
|
235
|
+
- **You choose**, when they are in several apps and no shared package:
|
|
236
|
+
without a terminal it exits with code 2 and lists `--in apps/web`,
|
|
237
|
+
`--in apps/admin`.
|
|
238
|
+
- Run from inside an app that has components, or when no package has any:
|
|
239
|
+
inside that app first.
|
|
240
|
+
|
|
241
|
+
`--app <name>` (its own app, `apps/<name>`) or `--in <package>` (inside a
|
|
242
|
+
package, by folder or name) decides without asking.
|
|
243
|
+
|
|
244
|
+
For its own app it writes `apps/studio/package.json` (scripts `dev`,
|
|
245
|
+
`preview` and `studio:build`: no `build`, which `pnpm -r build` or turbo's
|
|
246
|
+
build would run with the repo's own), `dex.config.ts` (its content folder is the app's
|
|
247
|
+
own, the default), a `tsconfig.json` that extends the workspace's shared one (a
|
|
248
|
+
`*typescript-config*` package, `tsconfig.base.json`, or a root
|
|
249
|
+
`tsconfig.json` of options only) and the studio's files. At the root it adds
|
|
250
|
+
a `studio` script (`turbo run dev --filter=@acme/studio` with Turborepo, else
|
|
251
|
+
`pnpm --filter`, `bun run --filter`, `npm run -w` or `yarn workspace`).
|
|
252
|
+
`turbo.json` is left alone; `apps/studio/turbo.json`
|
|
253
|
+
is written only when the root has no persistent `dev` task, or its `dev`
|
|
254
|
+
does not build dependencies first while the design system package has a
|
|
255
|
+
build. It warns when the shared package's components import with its own
|
|
256
|
+
aliases (`@/lib/utils`), which another app cannot resolve. Inside an app, it
|
|
257
|
+
adds the `studio` script and `@dexhq/canvas` to that app's `package.json` and
|
|
258
|
+
the `studio` script at the root.
|
|
259
|
+
|
|
260
|
+
Either way the agents' configs (`.mcp.json`, `.claude/settings.json`, the
|
|
261
|
+
skill) go at the workspace root, where agents start, pointing at the studio
|
|
262
|
+
(`--root apps/studio`), and the hooks and MCP server run the `dex`
|
|
263
|
+
command from wherever the install puts it: with the project's own runner
|
|
264
|
+
(`pnpm exec dex`, `yarn dex`, `bun x dex` or `npx dex`) where it is
|
|
265
|
+
at the root, and by its path in the app where the package manager keeps it
|
|
266
|
+
there (pnpm, Bun). Setup's next steps and `doctor`'s fixes name the same
|
|
267
|
+
runner, and the brief tells agents to read the rules' `npx dex` as it. It
|
|
268
|
+
installs once, from the root, with the root's package manager (`bun
|
|
269
|
+
install`). Then `bun run studio` at the root starts it.
|
|
270
|
+
|
|
271
|
+
Every question has a flag, so agents and CI can run it without a terminal:
|
|
272
|
+
|
|
273
|
+
| Flag | Answers |
|
|
274
|
+
| --- | --- |
|
|
275
|
+
| `[folder]` | Where: the project, or a new one (default: here) |
|
|
276
|
+
| `--app <name>` \| `--in <package>` | In a workspace: its own app, `apps/<name>`, or inside a package |
|
|
277
|
+
| `--components <folder>` \| `none`, `--shadcn` | The components; `--shadcn` sets up shadcn first |
|
|
278
|
+
| `--import <specifier>` | How prototypes import them, when it cannot tell |
|
|
279
|
+
| `--styles <file>` \| `none` | The global stylesheet |
|
|
280
|
+
| `--primitives`, `--no-primitives` | The studio's own interface from your components |
|
|
281
|
+
| `--icons lucide\|phosphor\|hugeicons` | The icon set the interface draws with (`ui.icons`, always written). Default: `components.json`'s `iconLibrary`, else the set in your dependencies, else Lucide. Lucide comes with Dex; Phosphor and Hugeicons are optional peers, which setup installs when the project lacks them |
|
|
282
|
+
| `--provider <module>` \| `none` | What wraps every view (`designSystem.provider`): your own module, or none. Default: for Mantine, Chakra UI (its version decides which provider) or Radix Themes, a `provider.tsx` it writes in the studio's folder; otherwise none |
|
|
283
|
+
| `--design-md draft` \| `none` \| `<path>` \| `<url>` | How `DESIGN.md` starts: a draft (default), empty, a file in the repository linked as the design system's guide, or a file or URL copied in |
|
|
284
|
+
| `--agent <ids>` \| `none` | The agents: `claude,codex,cursor,copilot,opencode` |
|
|
285
|
+
| `--dir <folder>` | The studio's folder in a project or app (default `studio`) |
|
|
286
|
+
| `--pm bun\|pnpm\|yarn\|npm` | The package manager (default: the project's) |
|
|
287
|
+
| `--studio <spec>`, `--skip-install` | Install from elsewhere (`file:./dexhq-canvas-0.2.0.tgz`, `^0.2.0`), or not at all |
|
|
288
|
+
| `-y, --yes` | Take what it finds, asking nothing |
|
|
289
|
+
| `--dry-run` | Show the plan and write nothing |
|
|
290
|
+
| `--json` | One JSON object per line |
|
|
291
|
+
|
|
292
|
+
Without a terminal (a pipe, CI, an agent) or with `--yes`, it takes what it
|
|
293
|
+
found and prints each choice beside its flag, warning about a guess (the
|
|
294
|
+
components in `src/components`, beside the app's own). When nothing it found
|
|
295
|
+
is safe to take, such as components in two folders and nothing to say which,
|
|
296
|
+
it writes nothing and exits with code 2, listing the flags to choose with.
|
|
297
|
+
`--dry-run` goes on with the first choice instead, to show the rest.
|
|
298
|
+
|
|
299
|
+
With `--json`, each line is one event, `step` first. What it isn't sure of
|
|
300
|
+
is a `question`, each choice with the exact flags that answer it, so an
|
|
301
|
+
agent asks the person, runs it again with those flags, and gets no
|
|
302
|
+
questions. A `hint` is for the agent's part: a provider the design system
|
|
303
|
+
exports, components that aren't React, a Tailwind 3 config.
|
|
304
|
+
|
|
305
|
+
```json
|
|
306
|
+
{"step":"detect","key":"components","value":{"folder":"src/components/ui","import":"@/components/ui","count":12},"evidence":"components.json → aliases.ui","confidence":"certain"}
|
|
307
|
+
{"step":"decide","key":"components","value":{"folder":"src/components/ui","import":"@/components/ui"},"source":"components.json → aliases.ui","flag":"--components"}
|
|
308
|
+
{"step":"question","key":"icons","question":"Which icon set should Dex's interface draw with?","choices":[{"value":"phosphor","label":"Phosphor","flags":["--icons","phosphor"]},{"value":"hugeicons","label":"Hugeicons","flags":["--icons","hugeicons"]}],"default":"phosphor","flag":"--icons"}
|
|
309
|
+
{"step":"hint","key":"provider","message":"@primer/react exports BaseStyles and ThemeProvider: if its components need them, wrap every view in them with a provider module (designSystem.provider).","evidence":"node_modules/@primer/react/lib/index.d.ts"}
|
|
310
|
+
{"step":"plan","action":"create","path":"dex.config.ts","detail":"design system acme, scanned from src/components/ui"}
|
|
311
|
+
{"step":"write","action":"create","path":"dex.config.ts"}
|
|
312
|
+
{"step":"run","command":"npm i -D @dexhq/canvas","status":"done"}
|
|
313
|
+
{"step":"check","level":"ok","message":"Node 22.19.0"}
|
|
314
|
+
{"step":"done","ok":true,"installed":true,"next":["…"]}
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
| `step` | Fields |
|
|
318
|
+
| --- | --- |
|
|
319
|
+
| `detect` | `key` (`studio` where one is set up: `{config, content}`; `workspace`, `components`, `styles`, `primitives`, `icons`, `designMd`, `agents`, `packageManager`, and `provider` when the design system needs one: `{library, component}`), `value`, `evidence`, `confidence` (`certain`, `likely`, `guess`) |
|
|
320
|
+
| `decide` | `key` (those, `dir`, and `placement` in a workspace: `{kind, folder, name}` or `{kind, folder, package}`), `value`, `source` (the flag, or the evidence), `flag`, `warning` for a guess. `designMd`'s value is `{kind: "draft", summary}` (counts of colours, typography, radii, spacing and components, the sections and the stylesheets), `{kind: "link", file}`, `{kind: "import", from, lines, problem}` or `{kind: "none"}`. `provider` (when the design system needs one, or `--provider` names one) is `{kind: "write", file, component}`, `{kind: "module", module}` or `"none"` |
|
|
321
|
+
| `question` | A decision it took without being sure: `key` (`components`, `styles`, `icons`, `designMd`, `packageManager` or `placement`), `question` (one sentence), `choices` (what it found, plus `none` where that is an answer: each `{value, label, evidence, flags}`, `flags` the exact arguments that answer with it), `default` (the `value` it takes; left out when no choice is safe, and then a run that writes stops with code 2), `flag` |
|
|
322
|
+
| `hint` | For the agent's part, changing nothing setup does: `key` (`provider`: a provider or theme the design system exports; `framework`: components that are Svelte, Vue, Lit or Astro; `tailwind`: a Tailwind 3 config views get; `next`: `next()` written), `message`, `evidence` |
|
|
323
|
+
| `plan` | `action` (`create`, `edit`, `run`, `ask`, or `note` for what it leaves in your own files), `path` or `command`, `detail`: on a set-up studio, only what differs |
|
|
324
|
+
| `write` | `action`, `path` |
|
|
325
|
+
| `run` | `command`, `status` (`start`, `done`, `failed`) |
|
|
326
|
+
| `check` | `level` (`ok`, `note`, `warn`, `fail`), `message`, `fix` |
|
|
327
|
+
| `done` | `ok`; `dryRun`, `installed`, `designMd` (`{kind, written}`), `next`; `changed: false` when a set-up studio needed nothing; or `exitCode`, `message` and `choices` when it needs a choice |
|
|
328
|
+
|
|
329
|
+
`dex init` still works, with its old flags, as `dex create` here.
|
|
330
|
+
|
|
331
|
+
`npx dex agents add <agent>` adds the studio to an agent later, as the
|
|
332
|
+
studio's "Add MCP config" button does.
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
`npx dex doctor` checks the setup and says how to fix what is wrong
|
|
336
|
+
(`--json` for one JSON object per check).
|
|
337
|
+
|
|
338
|
+
## The CLI
|
|
339
|
+
|
|
340
|
+
`npx dex --help` lists the commands, and `npx dex <command> --help`
|
|
341
|
+
one command's options. An unknown flag is an error that names the nearest
|
|
342
|
+
one (`--breif`: "Did you mean --brief?"). Without a terminal (an agent, CI,
|
|
343
|
+
a pipe) the CLI asks nothing and prints plain lines without colour.
|
|
344
|
+
`dex claude` passes every argument after it to Claude Code. It needs
|
|
345
|
+
Node 20.12 or later.
|
|
346
|
+
|
|
347
|
+
## What the project owns
|
|
348
|
+
|
|
349
|
+
Everything in the content folder: prototypes, `DESIGN.md`, contributors, and
|
|
350
|
+
any rules and methods of its own. The design system is set in
|
|
351
|
+
`dex.config.ts`; the studio imports components through the project's own
|
|
352
|
+
`tsconfig` paths, so a prototype imports `@/components/ui/button` exactly as
|
|
353
|
+
the app does.
|
|
354
|
+
|
|
355
|
+
The studio keeps its own state in `studio/.studio/`: presence, `studio
|
|
356
|
+
snapshot` screenshots, the Watch switch, the prototype you have open, the
|
|
357
|
+
agents connected over MCP, the stylesheet it generates and Vite's cache. It
|
|
358
|
+
is machine-local and gitignored, and deleting it loses nothing that matters
|
|
359
|
+
(Watch turns back on and the open prototype is forgotten). Its `README.md`
|
|
360
|
+
says what each file is, who writes it and how long it lasts.
|
|
361
|
+
|
|
362
|
+
```ts
|
|
363
|
+
import { defineConfig } from "@dexhq/canvas/config";
|
|
364
|
+
|
|
365
|
+
export default defineConfig({
|
|
366
|
+
content: "./studio",
|
|
367
|
+
designSystem: {
|
|
368
|
+
name: "Acme UI",
|
|
369
|
+
// Scanned on every start: a new component file is listed for agents
|
|
370
|
+
// without setting anything up again.
|
|
371
|
+
components: { folder: "./src/components/ui", import: "@/components/ui" },
|
|
372
|
+
styles: ["./src/index.css"], // Tailwind is added first if this lacks it
|
|
373
|
+
provider: "./src/studio-provider.tsx", // wraps every view: themes, global setup
|
|
374
|
+
},
|
|
375
|
+
ui: { primitives: true }, // the studio's buttons and menus are yours
|
|
376
|
+
plugins: [], // next() in a Next app; StyleX, vanilla-extract…
|
|
377
|
+
vite: (config) => ({ ...config, define: { __FLAG__: "true" } }),
|
|
378
|
+
});
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
What `designSystem` leaves out is read from the project's own files on
|
|
382
|
+
every start, and a value written in it wins. A shadcn `components.json`
|
|
383
|
+
gives the components, the stylesheet, the styling and the marker, so a
|
|
384
|
+
shadcn app's config can be `ui` alone. `components` can also name a package
|
|
385
|
+
whose entry exports them (`components: "@primer/react"`): its components are
|
|
386
|
+
listed from what it exports, and views import them from it. With Tailwind 3,
|
|
387
|
+
views get your `tailwind.config`'s theme; with a design system not styled
|
|
388
|
+
with Tailwind, they get Tailwind's utilities without its reset.
|
|
389
|
+
|
|
390
|
+
In a Next app, `create` writes `plugins: [next()]`, imported from
|
|
391
|
+
`@dexhq/canvas/next`, and nothing else about Next. It gives views what Next's
|
|
392
|
+
bundler gives the app's components: `process.env`, `next/link`, an `<img>`
|
|
393
|
+
for `next/image`, `next/font` with no font files, and a router for
|
|
394
|
+
`next/navigation` and `next/router` whose moves go nowhere. A config from
|
|
395
|
+
before it has none, and `dex dev` applies it in a Next app anyway.
|
|
396
|
+
|
|
397
|
+
`designSystem.provider` is a module whose default export wraps every
|
|
398
|
+
prototype view wherever it renders: the canvas, Play, a view opened on its
|
|
399
|
+
own and a built studio. Put what your components need around them there,
|
|
400
|
+
such as `MantineProvider` or MUI's `ThemeProvider` with your theme:
|
|
401
|
+
|
|
402
|
+
```tsx
|
|
403
|
+
// src/studio-provider.tsx
|
|
404
|
+
import "@mantine/core/styles.css"; // Mantine 7 and later
|
|
405
|
+
import { MantineProvider } from "@mantine/core";
|
|
406
|
+
import type { ReactNode } from "react";
|
|
407
|
+
import { theme } from "./theme";
|
|
408
|
+
|
|
409
|
+
export default function Provider({ children }: { children: ReactNode }) {
|
|
410
|
+
return <MantineProvider theme={theme}>{children}</MantineProvider>;
|
|
411
|
+
}
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
It can be a package's module instead (`"@acme/ui/provider"`). Without one,
|
|
415
|
+
views render as they are, with nothing around them. `npx dex doctor`
|
|
416
|
+
checks that the module is there and has a default export, and agents are
|
|
417
|
+
told views are wrapped already, so they never wrap them again.
|
|
418
|
+
|
|
419
|
+
The config is checked when it loads, and a mistake names its path
|
|
420
|
+
(`designSystem.components.folder`). Agents read what views may import from
|
|
421
|
+
`brief`; `npx dex components --json` lists the components. The studio no longer reads `design-system/index.ts`, the
|
|
422
|
+
adapter older versions wrote: a studio that still has one has no design
|
|
423
|
+
system until `npx dex upgrade` moves it into the config, and
|
|
424
|
+
`npx dex doctor` fails until then (see Upgrading).
|
|
425
|
+
|
|
426
|
+
## Upgrading
|
|
427
|
+
|
|
428
|
+
The studio is one versioned package, like Storybook: update `@dexhq/canvas`
|
|
429
|
+
with your package manager and the app, canvas, CLI, and the rules and methods
|
|
430
|
+
agents follow all update with it. `AGENTS.md` is regenerated from the installed
|
|
431
|
+
version whenever the studio starts. A file in your studio's `rules/` or
|
|
432
|
+
`methods/` replaces the installed one of the same name.
|
|
433
|
+
|
|
434
|
+
A studio set up by an older version runs `npx dex upgrade` once
|
|
435
|
+
(`--dry-run` first shows what would change, writing nothing). It is safe to
|
|
436
|
+
run again:
|
|
437
|
+
|
|
438
|
+
- **The config** is renamed from `studio.config.ts`, its name before Dex,
|
|
439
|
+
to `dex.config.ts` (any extension). Until then the studio reads the old
|
|
440
|
+
name, and `npx dex doctor` says so.
|
|
441
|
+
- **The design system** moves from `design-system/index.ts` into
|
|
442
|
+
`designSystem` in `dex.config.ts`. The studio no longer reads
|
|
443
|
+
`index.ts`, so until then it has no design system, and
|
|
444
|
+
`npx dex doctor` fails. A component list `init` wrote becomes
|
|
445
|
+
the folder it came from (what people wrote about each goes in `about`), a
|
|
446
|
+
`styles.css` that only imports becomes `styles`, `chromeTheme` moves to
|
|
447
|
+
`ui.chromeTheme`, and the foundations, guidance and contributing notes people
|
|
448
|
+
wrote become sections of `DESIGN.md`. `index.ts` and its README are deleted,
|
|
449
|
+
and the content `tsconfig.json` loses the adapter's paths. A config not
|
|
450
|
+
written as `export default defineConfig({ … })` is left alone: upgrade
|
|
451
|
+
prints what to add, writes nothing and exits with code 2.
|
|
452
|
+
- **The studio's state.** Studios from before `.studio/` held presence
|
|
453
|
+
(`.presence.json`) and snapshots (`.snapshots/`) beside it, each with a
|
|
454
|
+
`.gitignore` line. The old lines become the one `.studio/` line, the old
|
|
455
|
+
presence file goes, and snapshots move into `.studio/snapshots/`.
|
|
456
|
+
`npx dex doctor` warns until this is done.
|
|
457
|
+
- **Rules and methods** copied in before versioned rules (the studio has
|
|
458
|
+
`studio.lock.json`): the copies nobody edited are removed, and edited ones
|
|
459
|
+
kept as your own.
|
|
460
|
+
|
|
461
|
+
## Working on the package
|
|
462
|
+
|
|
463
|
+
- `app/` is the studio UI. It ships as source and compiles inside each
|
|
464
|
+
project, so it imports project files only through aliases:
|
|
465
|
+
- `@studio-content`
|
|
466
|
+
- `@studio-entry.css` (the interface's stylesheet)
|
|
467
|
+
- `@studio-frame.css` (the frame page's: the design system's CSS)
|
|
468
|
+
|
|
469
|
+
It has two pages. `index.html` is the interface. `frame.html` shows one
|
|
470
|
+
view, at `/frame.html#/files/<slug>/views/<view>?<params>`,
|
|
471
|
+
and has its own bundle with none of the interface (`app/frame/`). Canvas
|
|
472
|
+
frames, Play and thumbnails load it. Its router keeps its place in memory,
|
|
473
|
+
and links in a view go only to the prototype's other views or to other
|
|
474
|
+
sites (`frame/frame-links.ts`).
|
|
475
|
+
|
|
476
|
+
and reads the config through virtual modules: `virtual:studio-ui` (the
|
|
477
|
+
`ui` settings), `virtual:studio-design-system` (the design system's
|
|
478
|
+
name and components) and `virtual:studio-provider` (what wraps every view:
|
|
479
|
+
`designSystem.provider`'s default export, or a passthrough).
|
|
480
|
+
- `src/` is the CLI (`src/cli/main.ts`), setup, the dev server and the
|
|
481
|
+
shared cores, built into `dist/` (`bun run build`). Its layout and rules
|
|
482
|
+
are in the repository's `CONTRIBUTING.md`.
|
|
483
|
+
- `templates/` holds the agents' guide, rules and methods (read from the
|
|
484
|
+
installed package, never copied), what `create` writes once when it is
|
|
485
|
+
missing (`DESIGN.md`, `CLAUDE.md`), and the starters `create` copies for a
|
|
486
|
+
new project (`starters/`: `vite`, `standalone` and `turborepo`; the shadcn
|
|
487
|
+
components are kept once, in `vite`, and the others take them from there),
|
|
488
|
+
with the first prototype in `starter-prototype/`.
|
|
489
|
+
- The interface's buttons, menus and dialogs (`app/ui/shadcn`) are stock
|
|
490
|
+
shadcn on Base UI (Vega style, Hugeicons), and its theme is plain shadcn
|
|
491
|
+
neutral with Inter: the studio's own look, never the design system's.
|
|
492
|
+
`node scripts/interface-components.mjs` brings them back to stock. A
|
|
493
|
+
project's own Base UI components replace them with `ui.primitives`.
|
|
494
|
+
- Icons (`app/icons`): one vocabulary of names (lucide's, which shadcn uses)
|
|
495
|
+
and a set per library in `sets/`, each drawing every name. `ui.icons`
|
|
496
|
+
picks the set and only it is bundled. To add an icon, add its name to
|
|
497
|
+
`names.ts` and draw it in every set; TypeScript lists any set missing it.
|
|
498
|
+
- Languages (`app/i18n`): Lingui. Write interface text with its macros
|
|
499
|
+
(`<Trans>`, t`…`, msg`…`), then `npm run i18n --workspace dex`
|
|
500
|
+
to extract and compile the catalogs in `app/i18n/locales` (committed).
|
|
501
|
+
`pseudo` is a test locale: `?locale=pseudo` shows any text left out.
|
|
502
|
+
- `examples/shadcn-starter` in this repository is the first consumer: the
|
|
503
|
+
shadcn starter as `create` makes it. Run it with `bun run shadcn-starter`
|
|
504
|
+
from the repository root.
|
|
505
|
+
|
|
506
|
+
Keep the interface quiet. No eyebrows, no all-caps labels and no monospace.
|
|
507
|
+
|
|
508
|
+
```sh
|
|
509
|
+
bun run test # src/ and app/, on Vitest (vitest.config.ts at the root)
|
|
510
|
+
bun run typecheck
|
|
511
|
+
```
|
|
512
|
+
|
|
513
|
+
To try the package the way people install it, from the repository root:
|
|
514
|
+
|
|
515
|
+
```sh
|
|
516
|
+
npm run studio:playground # pack it, create ~/studio-playground with it
|
|
517
|
+
npm run studio:playground -- --update # repack after a change
|
|
518
|
+
npm run studio:playground -- --fresh # start again
|
|
519
|
+
npm run studio:playground -- /tmp/turbo --template turborepo --pm bun
|
|
520
|
+
# another starter, package manager
|
|
521
|
+
```
|
|
522
|
+
|
|
523
|
+
It packs `@dexhq/canvas` exactly as `npm publish` would and creates a brand-new
|
|
524
|
+
project from a starter (the Vite + React app by default) that installs that
|
|
525
|
+
package, so it catches what only shows outside the monorepo (missing files,
|
|
526
|
+
dependencies, paths).
|