@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
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// Which commands the / menu offers, against what their skills say:
|
|
2
|
+
// `commands.shown` and `commands.hidden` in dex.config.ts; the quick
|
|
3
|
+
// bar's, in order, `commands.quick` once chosen; and the switches for
|
|
4
|
+
// commands as a whole (`builtIn`, `codebase`, `quickBar`). Written from Settings'
|
|
5
|
+
// Commands page (config-settings.ts), so the whole team gets the same once
|
|
6
|
+
// it is committed.
|
|
7
|
+
|
|
8
|
+
import { existsSync } from "node:fs";
|
|
9
|
+
import { dirname, join, relative, sep } from "node:path";
|
|
10
|
+
import {
|
|
11
|
+
INSTALLED_SKILLS,
|
|
12
|
+
type SkillFolders,
|
|
13
|
+
teamSkillsIn,
|
|
14
|
+
} from "../content/commands.ts";
|
|
15
|
+
import {
|
|
16
|
+
COMMAND_SWITCHES,
|
|
17
|
+
type CommandMenu,
|
|
18
|
+
SWITCH_DEFAULTS,
|
|
19
|
+
switchOn,
|
|
20
|
+
} from "../shared/commands-core.ts";
|
|
21
|
+
import { editProjectConfig, readConfig } from "./config-settings.ts";
|
|
22
|
+
|
|
23
|
+
/** Where a codebase's agents keep their skills, from its root. */
|
|
24
|
+
const CODEBASE_SKILLS = [".agents/skills", ".claude/skills"];
|
|
25
|
+
|
|
26
|
+
/** The config's switches: `{}` when it sets none. */
|
|
27
|
+
export const readCommandMenu = async (root: string): Promise<CommandMenu> =>
|
|
28
|
+
(await readConfig(root))?.commands ?? {};
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Write the switches into the config: an empty list of either is left out,
|
|
32
|
+
* and a switch where it starts; the quick bar's list is kept even empty, as
|
|
33
|
+
* choosing none is a choice.
|
|
34
|
+
*/
|
|
35
|
+
export const writeCommandMenu = (
|
|
36
|
+
root: string,
|
|
37
|
+
menu: CommandMenu
|
|
38
|
+
): Promise<void> => {
|
|
39
|
+
const { hidden = [], quick, shown = [] } = menu;
|
|
40
|
+
// Only a switch Settings moved from where it starts.
|
|
41
|
+
const switches = Object.fromEntries(
|
|
42
|
+
COMMAND_SWITCHES.filter(
|
|
43
|
+
(which) => switchOn(menu, which) !== SWITCH_DEFAULTS[which]
|
|
44
|
+
).map((which) => [which, switchOn(menu, which)])
|
|
45
|
+
);
|
|
46
|
+
return editProjectConfig(root, {
|
|
47
|
+
set: {
|
|
48
|
+
commands: {
|
|
49
|
+
...switches,
|
|
50
|
+
...(shown.length > 0 ? { shown: [...shown] } : {}),
|
|
51
|
+
...(hidden.length > 0 ? { hidden: [...hidden] } : {}),
|
|
52
|
+
...(quick ? { quick: [...quick] } : {}),
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** The codebase the project is in: the folder above it holding .git. */
|
|
59
|
+
const codebaseRoot = (from: string): string => {
|
|
60
|
+
let dir = from;
|
|
61
|
+
while (!existsSync(join(dir, ".git"))) {
|
|
62
|
+
if (dir === dirname(dir)) {
|
|
63
|
+
return from;
|
|
64
|
+
}
|
|
65
|
+
dir = dirname(dir);
|
|
66
|
+
}
|
|
67
|
+
return dir;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/** The codebase's skill folders there are, from its root and on disk. */
|
|
71
|
+
export const codebaseSkills = (
|
|
72
|
+
root: string
|
|
73
|
+
): { folders: string[]; shown: string[] } => {
|
|
74
|
+
const base = codebaseRoot(root);
|
|
75
|
+
const folders = CODEBASE_SKILLS.map((folder) => join(base, folder)).filter(
|
|
76
|
+
(folder) => existsSync(folder)
|
|
77
|
+
);
|
|
78
|
+
return {
|
|
79
|
+
folders,
|
|
80
|
+
shown: folders.map((folder) => relative(base, folder).split(sep).join("/")),
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Where the project's skills are, from its config: the Dex project's own,
|
|
86
|
+
* the codebase's when Settings turned them on, and Dex's unless it
|
|
87
|
+
* turned them off.
|
|
88
|
+
*/
|
|
89
|
+
export async function skillFolders(from: string): Promise<SkillFolders> {
|
|
90
|
+
const project = await readConfig(from);
|
|
91
|
+
const menu = project?.commands ?? {};
|
|
92
|
+
return {
|
|
93
|
+
team: teamSkillsIn(project?.root ?? from),
|
|
94
|
+
codebase:
|
|
95
|
+
project && switchOn(menu, "codebase")
|
|
96
|
+
? codebaseSkills(project.root).folders
|
|
97
|
+
: [],
|
|
98
|
+
...(switchOn(menu, "builtIn") ? { installed: INSTALLED_SKILLS } : {}),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
// The design system's components, as an agent looks them up: find the ones
|
|
2
|
+
// that fit a need, then describe one with the props its code takes. The
|
|
3
|
+
// props come from the same reader the components canvas and the inspector
|
|
4
|
+
// use (component-props.ts), with the config's on top, so agents and the
|
|
5
|
+
// studio see the same components.
|
|
6
|
+
|
|
7
|
+
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
8
|
+
import { createRequire } from "node:module";
|
|
9
|
+
import { dirname, join } from "node:path";
|
|
10
|
+
import type { ResolvedDesignSystem } from "../config/design-system.ts";
|
|
11
|
+
import { findConfigFile } from "../config/load.ts";
|
|
12
|
+
import { resolveAlias } from "../config/project-files.ts";
|
|
13
|
+
import {
|
|
14
|
+
componentFileProps,
|
|
15
|
+
withConfiguredProps,
|
|
16
|
+
} from "../content/component-props.ts";
|
|
17
|
+
import { shownFrom } from "../paths.ts";
|
|
18
|
+
import type { DesignComponent, PropSpec } from "../shared/design-system.ts";
|
|
19
|
+
import { firstOf } from "./response-budget.ts";
|
|
20
|
+
|
|
21
|
+
const EXTENSIONS = [".tsx", ".ts", ".jsx", ".js"];
|
|
22
|
+
const DOC_EXTENSIONS = [".md", ".mdx"];
|
|
23
|
+
const SOURCE_EXTENSION_RE = /\.[cm]?[jt]sx?$/;
|
|
24
|
+
const WORDS_RE = /[^a-z0-9]+/;
|
|
25
|
+
|
|
26
|
+
/** A component as a search finds it. */
|
|
27
|
+
export interface FoundComponent {
|
|
28
|
+
category?: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
import?: string;
|
|
31
|
+
name: string;
|
|
32
|
+
slug: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** A component in full: what it is, its props, and where its code is. */
|
|
36
|
+
export interface ComponentDetails extends FoundComponent {
|
|
37
|
+
/** How a prototype uses it: its import, and an element with its looks. */
|
|
38
|
+
example?: string;
|
|
39
|
+
/** Its file, shown from where the agent works, when it was found. */
|
|
40
|
+
file?: string;
|
|
41
|
+
/** Where to read how to use it: a doc beside its file, or the design system's guides. */
|
|
42
|
+
guide: string[];
|
|
43
|
+
keywords?: string[];
|
|
44
|
+
/** The other components its module exports, to build with it. */
|
|
45
|
+
parts?: string[];
|
|
46
|
+
props: PropSpec[];
|
|
47
|
+
rules?: DesignComponent["rules"];
|
|
48
|
+
status?: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const found = (component: DesignComponent): FoundComponent => ({
|
|
52
|
+
name: component.name,
|
|
53
|
+
slug: component.slug,
|
|
54
|
+
...(component.import ? { import: component.import } : {}),
|
|
55
|
+
...(component.description ? { description: component.description } : {}),
|
|
56
|
+
...(component.category ? { category: component.category } : {}),
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
const words = (text: string): string[] =>
|
|
60
|
+
text.toLowerCase().split(WORDS_RE).filter(Boolean);
|
|
61
|
+
|
|
62
|
+
/** How well a component fits the words searched for: 0 when it does not. */
|
|
63
|
+
function score(component: DesignComponent, query: string[]): number {
|
|
64
|
+
const name = words(`${component.name} ${component.slug}`);
|
|
65
|
+
const about = words(
|
|
66
|
+
[
|
|
67
|
+
component.description,
|
|
68
|
+
component.category,
|
|
69
|
+
...(component.keywords ?? []),
|
|
70
|
+
].join(" ")
|
|
71
|
+
);
|
|
72
|
+
// Any word that fits counts: "select dropdown" finds NativeSelect and
|
|
73
|
+
// DropdownMenu, though neither is both.
|
|
74
|
+
let total = 0;
|
|
75
|
+
for (const word of query) {
|
|
76
|
+
if (name.includes(word)) {
|
|
77
|
+
total += 3;
|
|
78
|
+
} else if (name.some((each) => each.startsWith(word))) {
|
|
79
|
+
total += 2;
|
|
80
|
+
} else if (about.some((each) => each.startsWith(word))) {
|
|
81
|
+
total += 1;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return total;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** The most components the line below names before it says how many more. */
|
|
88
|
+
const MAX_NAMED = 40;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The design system's components by name, in a line: what an agent is told
|
|
92
|
+
* once as it starts, so it builds with one where there is one without
|
|
93
|
+
* having to search first. Empty when there are none.
|
|
94
|
+
*/
|
|
95
|
+
export function componentsLine(
|
|
96
|
+
designSystem: ResolvedDesignSystem | undefined
|
|
97
|
+
): string {
|
|
98
|
+
const components = designSystem?.components ?? [];
|
|
99
|
+
if (components.length === 0) {
|
|
100
|
+
return "";
|
|
101
|
+
}
|
|
102
|
+
const from = designSystem?.componentSource
|
|
103
|
+
? `, imported from \`${designSystem.componentSource.import}/<name>\``
|
|
104
|
+
: "";
|
|
105
|
+
// The count as it always was here, without a thousands separator.
|
|
106
|
+
const { first, left } = firstOf(components, MAX_NAMED);
|
|
107
|
+
const names = first.map((component) => component.name).join(", ");
|
|
108
|
+
return `Dex: the design system's components${from}: ${names}${left > 0 ? ` and ${left} more (\`components\` lists them)` : ""}.`;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The components that fit a search ("date picker", "dialog"), best first;
|
|
113
|
+
* every component when the search is empty.
|
|
114
|
+
*/
|
|
115
|
+
export function findComponents(
|
|
116
|
+
designSystem: ResolvedDesignSystem | undefined,
|
|
117
|
+
query = ""
|
|
118
|
+
): FoundComponent[] {
|
|
119
|
+
const components = designSystem?.components ?? [];
|
|
120
|
+
const wanted = words(query);
|
|
121
|
+
if (wanted.length === 0) {
|
|
122
|
+
return components.map(found);
|
|
123
|
+
}
|
|
124
|
+
return components
|
|
125
|
+
.map((component) => ({ component, fit: score(component, wanted) }))
|
|
126
|
+
.filter(({ fit }) => fit > 0)
|
|
127
|
+
.sort(
|
|
128
|
+
(a, b) =>
|
|
129
|
+
b.fit - a.fit || a.component.name.localeCompare(b.component.name)
|
|
130
|
+
)
|
|
131
|
+
.map(({ component }) => found(component));
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/** A module path as a file: as given, with an extension, or its index. */
|
|
135
|
+
function asFile(path: string): string | undefined {
|
|
136
|
+
if (existsSync(path) && statSync(path).isFile()) {
|
|
137
|
+
return path;
|
|
138
|
+
}
|
|
139
|
+
for (const extension of EXTENSIONS) {
|
|
140
|
+
if (existsSync(path + extension)) {
|
|
141
|
+
return path + extension;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
for (const extension of EXTENSIONS) {
|
|
145
|
+
const index = join(path, `index${extension}`);
|
|
146
|
+
if (existsSync(index)) {
|
|
147
|
+
return index;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* The file a component's import names, as the project resolves it: from the
|
|
154
|
+
* scanned folder, through its tsconfig paths, or from its node_modules.
|
|
155
|
+
*/
|
|
156
|
+
function componentFile(
|
|
157
|
+
designSystem: ResolvedDesignSystem,
|
|
158
|
+
component: DesignComponent,
|
|
159
|
+
projectRoot: string
|
|
160
|
+
): string | undefined {
|
|
161
|
+
const specifier = component.import;
|
|
162
|
+
if (!specifier) {
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
const source = designSystem.componentSource;
|
|
166
|
+
if (source && specifier.startsWith(`${source.import}/`)) {
|
|
167
|
+
const file = asFile(
|
|
168
|
+
join(source.folder, specifier.slice(source.import.length + 1))
|
|
169
|
+
);
|
|
170
|
+
if (file) {
|
|
171
|
+
return file;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
const aliased = resolveAlias(specifier, projectRoot);
|
|
175
|
+
if (aliased) {
|
|
176
|
+
return asFile(aliased);
|
|
177
|
+
}
|
|
178
|
+
try {
|
|
179
|
+
return createRequire(join(projectRoot, "package.json")).resolve(specifier);
|
|
180
|
+
} catch {
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* How a prototype uses a component: its import, and an element with each
|
|
187
|
+
* prop that picks a look at its default (or first) option.
|
|
188
|
+
*/
|
|
189
|
+
function exampleOf(
|
|
190
|
+
component: DesignComponent,
|
|
191
|
+
props: PropSpec[]
|
|
192
|
+
): string | undefined {
|
|
193
|
+
if (!component.import) {
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
const looks = props
|
|
197
|
+
.filter((spec) => spec.kind === "enum" && spec.options?.length)
|
|
198
|
+
.map(
|
|
199
|
+
(spec) => ` ${spec.name}="${String(spec.default ?? spec.options?.[0])}"`
|
|
200
|
+
)
|
|
201
|
+
.join("");
|
|
202
|
+
const { name } = component;
|
|
203
|
+
return `import { ${name} } from "${component.import}";\n\n<${name}${looks}>…</${name}>`;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
const EXPORT_LIST_RE = /export\s*\{([^}]*)\}/g;
|
|
207
|
+
const EXPORT_NAMED_RE = /export\s+(?:function|const)\s+([A-Z]\w*)/g;
|
|
208
|
+
const EXPORTED_AS_RE = /\s+as\s+/;
|
|
209
|
+
const COMPONENT_NAME_RE = /^[A-Z]\w*$/;
|
|
210
|
+
/** The most of a component's parts named: a module with more has them in its file. */
|
|
211
|
+
const MAX_PARTS = 16;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* The other components a component's module exports, to build with it
|
|
215
|
+
* (NativeSelect's NativeSelectOption, Card's CardHeader): imported from the
|
|
216
|
+
* same module. With them an agent need not open the file to use it.
|
|
217
|
+
*/
|
|
218
|
+
function partsOf(file: string, name: string): string[] {
|
|
219
|
+
let source: string;
|
|
220
|
+
try {
|
|
221
|
+
source = readFileSync(file, "utf8");
|
|
222
|
+
} catch {
|
|
223
|
+
return [];
|
|
224
|
+
}
|
|
225
|
+
const names = [
|
|
226
|
+
...[...source.matchAll(EXPORT_LIST_RE)].flatMap((match) =>
|
|
227
|
+
(match[1] ?? "")
|
|
228
|
+
.split(",")
|
|
229
|
+
.map((each) => each.trim().split(EXPORTED_AS_RE).at(-1) ?? "")
|
|
230
|
+
),
|
|
231
|
+
...[...source.matchAll(EXPORT_NAMED_RE)].map((match) => match[1] ?? ""),
|
|
232
|
+
];
|
|
233
|
+
return [...new Set(names)]
|
|
234
|
+
.filter((each) => COMPONENT_NAME_RE.test(each) && each !== name)
|
|
235
|
+
.slice(0, MAX_PARTS);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/** A doc beside a component's file ("button.md"), else the design system's guides. */
|
|
239
|
+
function guideOf(
|
|
240
|
+
designSystem: ResolvedDesignSystem,
|
|
241
|
+
file: string | undefined
|
|
242
|
+
): string[] {
|
|
243
|
+
const base = file?.replace(SOURCE_EXTENSION_RE, "");
|
|
244
|
+
const own = base
|
|
245
|
+
? DOC_EXTENSIONS.map((extension) => base + extension).find((doc) =>
|
|
246
|
+
existsSync(doc)
|
|
247
|
+
)
|
|
248
|
+
: undefined;
|
|
249
|
+
return own ? [own] : (designSystem.guide ?? []);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/** The project a studio belongs to: the folder of its dex.config.ts. */
|
|
253
|
+
const projectRootOf = (root: string): string => {
|
|
254
|
+
const config = findConfigFile(root);
|
|
255
|
+
return config ? dirname(config) : root;
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* One component in full, by name or slug ("DatePicker", "date-picker"):
|
|
260
|
+
* its props read from its code with the config's on top, and its file.
|
|
261
|
+
* Undefined when the design system has no such component.
|
|
262
|
+
*/
|
|
263
|
+
export function describeComponent(
|
|
264
|
+
designSystem: ResolvedDesignSystem | undefined,
|
|
265
|
+
name: string,
|
|
266
|
+
{ root, from = process.cwd() }: { from?: string; root: string }
|
|
267
|
+
): ComponentDetails | undefined {
|
|
268
|
+
const wanted = name.toLowerCase();
|
|
269
|
+
const component = designSystem?.components.find(
|
|
270
|
+
(each) => each.name.toLowerCase() === wanted || each.slug === wanted
|
|
271
|
+
);
|
|
272
|
+
if (!(designSystem && component)) {
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
const file = componentFile(designSystem, component, projectRootOf(root));
|
|
276
|
+
const props = withConfiguredProps(
|
|
277
|
+
file ? componentFileProps(file, component.name) : [],
|
|
278
|
+
component.props
|
|
279
|
+
);
|
|
280
|
+
const show = (path: string) => shownFrom(from, path);
|
|
281
|
+
const example = exampleOf(component, props);
|
|
282
|
+
const parts = file ? partsOf(file, component.name) : [];
|
|
283
|
+
return {
|
|
284
|
+
...found(component),
|
|
285
|
+
...(file ? { file: show(file) } : {}),
|
|
286
|
+
...(example ? { example } : {}),
|
|
287
|
+
...(parts.length > 0 ? { parts } : {}),
|
|
288
|
+
guide: guideOf(designSystem, file).map(show),
|
|
289
|
+
...(component.keywords ? { keywords: component.keywords } : {}),
|
|
290
|
+
...(component.status ? { status: component.status } : {}),
|
|
291
|
+
...(component.rules ? { rules: component.rules } : {}),
|
|
292
|
+
props,
|
|
293
|
+
};
|
|
294
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// The project's dex.config.ts as Settings reads and writes it: loaded
|
|
2
|
+
// again only when the file changes, and written into its own text
|
|
3
|
+
// (setup/config-source.ts), so comments and formatting stay. Settings' git,
|
|
4
|
+
// workspace and command pages each read and write their part of it here.
|
|
5
|
+
|
|
6
|
+
import { readFile, stat, writeFile } from "node:fs/promises";
|
|
7
|
+
import {
|
|
8
|
+
findConfigFile,
|
|
9
|
+
loadProject,
|
|
10
|
+
type StudioProject,
|
|
11
|
+
} from "../config/load.ts";
|
|
12
|
+
import { ConfigNotEditable, editConfig } from "../setup/config-source.ts";
|
|
13
|
+
|
|
14
|
+
const kept = new Map<string, { mtime: number; project?: StudioProject }>();
|
|
15
|
+
|
|
16
|
+
/** The config file for the project at `root`, or throw when there is none. */
|
|
17
|
+
export const configFile = (root: string): string => {
|
|
18
|
+
const file = findConfigFile(root);
|
|
19
|
+
if (!file) {
|
|
20
|
+
throw new ConfigNotEditable("This studio has no dex.config.ts.");
|
|
21
|
+
}
|
|
22
|
+
return file;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The project's config, loaded again only when its file changed: undefined
|
|
27
|
+
* when there is none, or it does not load (its problems are shown when the
|
|
28
|
+
* studio starts).
|
|
29
|
+
*/
|
|
30
|
+
export async function readConfig(
|
|
31
|
+
root: string
|
|
32
|
+
): Promise<StudioProject | undefined> {
|
|
33
|
+
const file = findConfigFile(root);
|
|
34
|
+
if (!file) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const { mtimeMs } = await stat(file);
|
|
38
|
+
const found = kept.get(file);
|
|
39
|
+
if (found?.mtime === mtimeMs) {
|
|
40
|
+
return found.project;
|
|
41
|
+
}
|
|
42
|
+
const project = await loadProject(root).catch(() => undefined);
|
|
43
|
+
kept.set(file, { mtime: mtimeMs, project });
|
|
44
|
+
return project;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** Read the config afresh next time: its file was just written. */
|
|
48
|
+
export const forgetConfig = (file: string) => {
|
|
49
|
+
kept.delete(file);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Edit the project's config, in its own text. Throws ConfigNotEditable when
|
|
54
|
+
* there is none, or it is not written in a way that can be edited safely.
|
|
55
|
+
*/
|
|
56
|
+
export async function editProjectConfig(
|
|
57
|
+
root: string,
|
|
58
|
+
edits: Parameters<typeof editConfig>[1]
|
|
59
|
+
): Promise<void> {
|
|
60
|
+
const file = configFile(root);
|
|
61
|
+
await writeFile(file, editConfig(await readFile(file, "utf8"), edits));
|
|
62
|
+
forgetConfig(file);
|
|
63
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const CONTENT_TYPES: Record<string, string> = {
|
|
2
|
+
".css": "text/css; charset=utf-8",
|
|
3
|
+
".html": "text/html; charset=utf-8",
|
|
4
|
+
".js": "text/javascript; charset=utf-8",
|
|
5
|
+
".json": "application/json",
|
|
6
|
+
".svg": "image/svg+xml",
|
|
7
|
+
".png": "image/png",
|
|
8
|
+
".jpg": "image/jpeg",
|
|
9
|
+
".jpeg": "image/jpeg",
|
|
10
|
+
".gif": "image/gif",
|
|
11
|
+
".webp": "image/webp",
|
|
12
|
+
".avif": "image/avif",
|
|
13
|
+
".woff2": "font/woff2",
|
|
14
|
+
".woff": "font/woff",
|
|
15
|
+
".ttf": "font/ttf",
|
|
16
|
+
".otf": "font/otf",
|
|
17
|
+
".ico": "image/x-icon",
|
|
18
|
+
".mp4": "video/mp4",
|
|
19
|
+
".wasm": "application/wasm",
|
|
20
|
+
};
|
|
21
|
+
const EXTENSION_RE = /\.[^./]+$/;
|
|
22
|
+
|
|
23
|
+
export const contentType = (path: string): string =>
|
|
24
|
+
CONTENT_TYPES[EXTENSION_RE.exec(path)?.[0]?.toLowerCase() ?? ""] ??
|
|
25
|
+
"application/octet-stream";
|