@dexhq/canvas 0.13.0 → 0.15.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 +53 -0
- package/README.md +21 -18
- package/app/canvas/activity.tsx +8 -15
- package/app/canvas/anchoring.ts +3 -5
- package/app/canvas/canvas-input.ts +151 -14
- package/app/canvas/canvas-keys.ts +9 -0
- package/app/canvas/canvas-model.ts +5 -42
- package/app/canvas/canvas-panels.ts +1 -17
- package/app/canvas/canvas-scene.ts +7 -3
- package/app/canvas/canvas-ui.ts +2 -1
- package/app/canvas/canvas.css +61 -26
- package/app/canvas/change-notice.tsx +10 -1
- package/app/canvas/comment-layer.tsx +2 -1
- package/app/canvas/comments.tsx +204 -82
- package/app/canvas/element-picker.ts +200 -27
- package/app/canvas/engine/canvas-gestures.ts +72 -17
- package/app/canvas/engine/canvas-store.ts +17 -1
- package/app/canvas/engine/engine.css +6 -3
- package/app/canvas/find-bar.tsx +817 -0
- package/app/canvas/find-model.ts +135 -0
- package/app/canvas/flow-canvas.tsx +18 -2
- package/app/canvas/follow-pin.ts +26 -6
- package/app/canvas/frame-node.tsx +43 -26
- package/app/canvas/imported-reviews.tsx +12 -22
- package/app/canvas/layout.ts +27 -0
- package/app/canvas/live-page.ts +142 -19
- package/app/canvas/page-find.ts +220 -0
- package/app/canvas/page-style.ts +23 -0
- package/app/canvas/section-node.tsx +2 -0
- package/app/canvas/spec-threads.ts +24 -23
- package/app/canvas/thread-focus.tsx +14 -12
- package/app/canvas/tool-cursors.ts +16 -16
- package/app/canvas/use-activity.ts +0 -8
- package/app/canvas/use-agent-changes.tsx +34 -40
- package/app/canvas/use-canvas-clipboard.tsx +11 -14
- package/app/canvas/xray.ts +3 -12
- package/app/frame.tsx +5 -0
- package/app/i18n/locales/en/messages.po +114 -12
- package/app/i18n/locales/en/messages.ts +1 -1
- package/app/i18n/locales/pseudo/messages.po +114 -12
- package/app/i18n/locales/pseudo/messages.ts +1 -1
- package/app/icons/{sets/lucide.tsx → glyphs.tsx} +7 -5
- package/app/icons/index.tsx +3 -3
- package/app/icons/types.ts +3 -10
- package/app/index.html +3 -3
- package/app/main.tsx +3 -0
- package/app/pages/canvas-settings.tsx +35 -0
- package/app/pages/canvas.tsx +27 -8
- package/app/pages/commands-settings.tsx +16 -2
- package/app/shell/about.tsx +5 -4
- package/app/shell/feedback-details.ts +0 -3
- package/app/shell/feedback-form.tsx +10 -21
- package/app/shell/feedback-link.tsx +2 -1
- package/app/shell/instructions-editor.tsx +1 -1
- package/app/shell/presence-style.ts +59 -0
- package/app/shell/presence.tsx +6 -3
- package/app/shell/scaled-frame.tsx +21 -9
- package/app/shell/settings-sections.ts +12 -0
- package/app/shell/sidebar.tsx +1 -1
- package/app/studio-ui.d.ts +0 -9
- package/app/types.ts +21 -205
- package/app/ui/file-drop.ts +128 -0
- package/app/ui/prompt-editor.tsx +1 -1
- package/app/ui/shadcn/input-group.tsx +2 -2
- package/dist/cli/banner.d.mts +4 -2
- package/dist/cli/banner.mjs +34 -11
- package/dist/cli/commands/app.mjs +19 -11
- package/dist/cli/commands/create.d.mts +26 -14
- package/dist/cli/commands/create.mjs +13 -7
- package/dist/cli/commands/dev.mjs +2 -3
- package/dist/cli/commands/hook.mjs +2 -1
- package/dist/cli/commands/init.d.mts +11 -6
- package/dist/cli/help.d.mts +1 -1
- package/dist/cli/help.mjs +3 -3
- package/dist/cli/main.d.mts +22 -12
- package/dist/config/index.d.mts +6 -5
- package/dist/config/project-files.d.mts +6 -3
- package/dist/config/project-files.mjs +14 -5
- package/dist/config/renamed.d.mts +0 -2
- package/dist/config/renamed.mjs +1 -3
- package/dist/config/schema.d.mts +0 -5
- package/dist/config/schema.mjs +0 -5
- package/dist/content/capture.d.mts +2 -2
- package/dist/content/capture.mjs +2 -2
- package/dist/content/content.d.mts +3 -141
- package/dist/content/content.mjs +7 -65
- package/dist/content/flow-specs.mjs +1 -1
- package/dist/content/prototype-summary.d.mts +3 -39
- package/dist/content/prototype-summary.mjs +2 -3
- package/dist/content/prototypes.mjs +1 -1
- package/dist/content/snapshot-client.mjs +1 -1
- package/dist/content/text-replace.d.mts +30 -0
- package/dist/content/text-replace.mjs +309 -0
- package/dist/content/thread-module.mjs +1 -1
- package/dist/content/threads.mjs +1 -1
- package/dist/paths.d.mts +0 -2
- package/dist/paths.mjs +1 -3
- package/dist/server/agent-env.d.mts +5 -1
- package/dist/server/agent-env.mjs +7 -2
- package/dist/server/agent-session.d.mts +14 -1
- package/dist/server/agent-session.mjs +84 -19
- package/dist/server/brief.mjs +3 -3
- package/dist/server/build-pictures.mjs +1 -1
- package/dist/server/channel.d.mts +19 -24
- package/dist/server/channel.mjs +70 -37
- package/dist/server/claimed-presence.d.mts +18 -0
- package/dist/server/claimed-presence.mjs +58 -0
- package/dist/server/close-check.mjs +2 -2
- package/dist/server/comments/actions.d.mts +153 -0
- package/dist/server/comments/actions.mjs +154 -0
- package/dist/server/comments/routes.d.mts +25 -0
- package/dist/server/comments/routes.mjs +88 -0
- package/dist/server/comments/tools.d.mts +6 -0
- package/dist/server/comments/tools.mjs +154 -0
- package/dist/server/dev-server.mjs +36 -13
- package/dist/server/file-errors.d.mts +7 -2
- package/dist/server/file-errors.mjs +31 -8
- package/dist/server/file-lock.d.mts +2 -2
- package/dist/server/file-lock.mjs +130 -36
- package/dist/server/mcp.d.mts +0 -2
- package/dist/server/mcp.mjs +7 -8
- package/dist/server/me.d.mts +1 -1
- package/dist/server/open-page.d.mts +22 -0
- package/dist/server/open-page.mjs +20 -2
- package/dist/server/outcome.d.mts +22 -0
- package/dist/server/outcome.mjs +8 -0
- package/dist/server/own-copies.mjs +2 -2
- package/dist/server/people.d.mts +1 -1
- package/dist/server/port.d.mts +12 -0
- package/dist/server/port.mjs +66 -14
- package/dist/server/presence.d.mts +4 -1
- package/dist/server/presence.mjs +2 -2
- package/dist/server/requests.d.mts +5 -1
- package/dist/server/requests.mjs +32 -47
- package/dist/server/studio-for.d.mts +5 -0
- package/dist/server/studio-for.mjs +18 -4
- package/dist/server/sync-install.d.mts +8 -12
- package/dist/server/sync-install.mjs +12 -30
- package/dist/server/thread-source.mjs +2 -2
- package/dist/server/tools/describe.d.mts +1 -1
- package/dist/server/tools/describe.mjs +1 -1
- package/dist/server/tools/feedback.d.mts +1 -1
- package/dist/server/tools/reading.mjs +13 -4
- package/dist/server/tools/show.d.mts +1 -1
- package/dist/server/tools/snapshot.d.mts +1 -1
- package/dist/server/tools/thread-list.mjs +1 -1
- package/dist/server/tools/watch.mjs +5 -3
- package/dist/server/vite.mjs +28 -31
- package/dist/server/web-app.mjs +7 -10
- package/dist/server/work-groups.mjs +1 -1
- package/dist/setup/apply.mjs +8 -14
- package/dist/setup/create.d.mts +4 -2
- package/dist/setup/create.mjs +118 -36
- package/dist/setup/design-system-checks.mjs +3 -12
- package/dist/setup/desktop-app-script.mjs +4 -3
- package/dist/setup/desktop-app-start.d.mts +8 -2
- package/dist/setup/desktop-app-start.mjs +64 -29
- package/dist/setup/desktop-app.d.mts +8 -0
- package/dist/setup/desktop-app.mjs +20 -4
- package/dist/setup/detect.d.mts +14 -7
- package/dist/setup/detect.mjs +56 -10
- package/dist/setup/doctor.mjs +2 -4
- package/dist/setup/existing-setup.d.mts +1 -3
- package/dist/setup/existing-setup.mjs +10 -11
- package/dist/setup/migrate/row-titles.mjs +1 -1
- package/dist/setup/own-app.d.mts +1 -2
- package/dist/setup/own-app.mjs +4 -5
- package/dist/setup/plan.d.mts +8 -6
- package/dist/setup/plan.mjs +64 -48
- package/dist/setup/project.d.mts +6 -17
- package/dist/setup/project.mjs +17 -61
- package/dist/setup/prompts.d.mts +5 -5
- package/dist/setup/prompts.mjs +28 -61
- package/dist/setup/questions.d.mts +12 -4
- package/dist/setup/questions.mjs +10 -25
- package/dist/setup/starters.d.mts +2 -0
- package/dist/setup/starters.mjs +26 -9
- package/dist/setup/workspace-setup.d.mts +1 -2
- package/dist/setup/workspace-setup.mjs +4 -6
- package/dist/setup/write.d.mts +15 -5
- package/dist/setup/write.mjs +35 -9
- package/dist/shared/annotations-core.mjs +1 -1
- package/dist/shared/canvas-core.mjs +1 -1
- package/dist/shared/canvas-file.d.mts +201 -0
- package/dist/shared/canvas-file.mjs +1 -0
- package/dist/shared/comments/routes.d.mts +53 -0
- package/dist/shared/comments/routes.mjs +37 -0
- package/dist/shared/feedback.d.mts +8 -0
- package/dist/shared/feedback.mjs +10 -2
- package/dist/shared/page-review.d.mts +2 -11
- package/dist/shared/page-review.mjs +4 -13
- package/dist/shared/presence-core.d.mts +11 -0
- package/dist/shared/presence-core.mjs +11 -2
- package/dist/shared/review-file.d.mts +5 -0
- package/dist/shared/review-file.mjs +23 -13
- package/dist/shared/server-page.mjs +7 -1
- package/dist/shared/signup.d.mts +2 -5
- package/dist/shared/signup.mjs +2 -35
- package/dist/shared/studio-events.d.mts +0 -6
- package/dist/shared/studio-events.mjs +1 -5
- package/dist/shared/studio-files.d.mts +12 -0
- package/dist/shared/studio-files.mjs +6 -1
- package/dist/shared/studio-routes.d.mts +16 -62
- package/dist/shared/studio-routes.mjs +1 -69
- package/dist/shared/threads-core.d.mts +2 -2
- package/dist/shared/threads-core.mjs +1 -1
- package/extension/dist/feedback.js +148 -138
- package/extension/dist/manifest.json +1 -1
- package/extension/dist/picker.js +146 -136
- package/package.json +3 -20
- package/src/cli/banner.ts +45 -11
- package/src/cli/commands/app.ts +23 -8
- package/src/cli/commands/create.ts +17 -9
- package/src/cli/commands/dev.ts +0 -3
- package/src/cli/commands/hook.ts +4 -1
- package/src/cli/help.ts +3 -3
- package/src/config/index.ts +6 -5
- package/src/config/project-files.ts +21 -11
- package/src/config/renamed.ts +0 -3
- package/src/config/schema.ts +0 -1
- package/src/content/capture.ts +6 -12
- package/src/content/content.ts +7 -244
- package/src/content/flow-specs.ts +2 -1
- package/src/content/prototype-summary.ts +4 -44
- package/src/content/review-pages.ts +2 -1
- package/src/content/snapshot-client.ts +1 -1
- package/src/content/text-replace.ts +449 -0
- package/src/paths.ts +0 -8
- package/src/server/agent-env.ts +12 -2
- package/src/server/agent-session.ts +124 -34
- package/src/server/brief.ts +8 -3
- package/src/server/channel.ts +121 -52
- package/src/server/claimed-presence.ts +93 -0
- package/src/server/comments/actions.ts +352 -0
- package/src/server/comments/routes.ts +176 -0
- package/src/server/comments/tools.ts +317 -0
- package/src/server/dev-server.ts +49 -15
- package/src/server/file-errors.ts +47 -13
- package/src/server/file-lock.ts +205 -54
- package/src/server/mcp.ts +13 -14
- package/src/server/me.ts +2 -5
- package/src/server/open-page.ts +54 -4
- package/src/server/outcome.ts +26 -0
- package/src/server/people.ts +2 -1
- package/src/server/port.ts +94 -20
- package/src/server/presence.ts +11 -3
- package/src/server/requests.ts +60 -70
- package/src/server/studio-for.ts +27 -3
- package/src/server/sync-install.ts +35 -26
- package/src/server/thread-place.ts +2 -4
- package/src/server/tools/reading.ts +16 -3
- package/src/server/tools/watch.ts +7 -7
- package/src/server/vite.ts +37 -40
- package/src/server/web-app.ts +14 -12
- package/src/setup/apply.ts +10 -16
- package/src/setup/create.ts +143 -37
- package/src/setup/design-system-checks.ts +7 -15
- package/src/setup/desktop-app-script.ts +4 -3
- package/src/setup/desktop-app-start.ts +94 -26
- package/src/setup/desktop-app.ts +24 -3
- package/src/setup/detect.ts +56 -14
- package/src/setup/doctor.ts +4 -4
- package/src/setup/existing-setup.ts +10 -12
- package/src/setup/own-app.ts +2 -5
- package/src/setup/plan.ts +93 -84
- package/src/setup/project.ts +25 -118
- package/src/setup/prompts.ts +44 -127
- package/src/setup/questions.ts +27 -29
- package/src/setup/starters.ts +35 -10
- package/src/setup/workspace-setup.ts +8 -18
- package/src/setup/write.ts +52 -9
- package/src/shared/canvas-file.ts +205 -0
- package/src/shared/comments/routes.ts +79 -0
- package/src/shared/feedback.ts +14 -4
- package/src/shared/page-review.ts +11 -16
- package/src/shared/presence-core.ts +16 -2
- package/src/shared/review-file.ts +28 -12
- package/src/shared/server-page.ts +11 -1
- package/src/shared/signup.ts +4 -28
- package/src/shared/studio-events.ts +0 -13
- package/src/shared/studio-files.ts +14 -0
- package/src/shared/studio-routes.ts +21 -64
- package/src/shared/threads-core.ts +2 -2
- package/templates/methods/review.md +2 -2
- package/templates/rules/canvas-frames.md +104 -0
- package/templates/rules/canvas.md +8 -142
- package/templates/rules/prototypes.md +1 -1
- package/templates/rules/snapshots.md +52 -0
- package/templates/starters/standalone/README.md +7 -7
- package/templates/starters/standalone/components.json +1 -1
- package/templates/starters/standalone/package.json +1 -2
- package/templates/starters/turborepo/README.md +6 -6
- package/templates/starters/turborepo/apps/web/components.json +1 -1
- package/templates/starters/turborepo/apps/web/package.json +1 -2
- package/templates/starters/turborepo/apps/web/src/app.tsx +4 -5
- package/templates/starters/turborepo/packages/ui/components.json +1 -1
- package/templates/starters/turborepo/packages/ui/package.json +1 -2
- package/templates/starters/vite/README.md +7 -6
- package/templates/starters/vite/components.json +1 -1
- package/templates/starters/vite/package.json +1 -2
- package/templates/starters/vite/src/app.tsx +3 -4
- package/templates/starters/vite/src/components/ui/accordion.tsx +71 -0
- package/templates/starters/vite/src/components/ui/attachment.tsx +1 -1
- package/templates/starters/vite/src/components/ui/badge.tsx +2 -2
- package/templates/starters/vite/src/components/ui/button.tsx +17 -12
- package/templates/starters/vite/src/components/ui/card.tsx +1 -1
- package/templates/starters/vite/src/components/ui/checkbox.tsx +28 -0
- package/templates/starters/vite/src/components/ui/dialog.tsx +5 -5
- package/templates/starters/vite/src/components/ui/dropdown-menu.tsx +17 -14
- package/templates/starters/vite/src/components/ui/field.tsx +3 -1
- package/templates/starters/vite/src/components/ui/input-group.tsx +5 -3
- package/templates/starters/vite/src/components/ui/input.tsx +1 -1
- package/templates/starters/vite/src/components/ui/label.tsx +2 -0
- package/templates/starters/vite/src/components/ui/native-select.tsx +3 -4
- package/templates/starters/vite/src/components/ui/popover.tsx +1 -1
- package/templates/starters/vite/src/components/ui/separator.tsx +2 -0
- package/templates/starters/vite/src/components/ui/spinner.tsx +3 -7
- package/templates/starters/vite/src/components/ui/switch.tsx +1 -1
- package/templates/starters/vite/src/components/ui/textarea.tsx +1 -1
- package/templates/starters/vite/src/components/ui/toggle.tsx +4 -2
- package/templates/starters/vite/src/index.css +533 -111
- package/app/icons/sets/hugeicons.tsx +0 -259
- package/app/icons/sets/phosphor.tsx +0 -251
- package/dist/server/icon-set.d.mts +0 -15
- package/dist/server/icon-set.mjs +0 -31
- package/dist/server/tools/close-reply.d.mts +0 -6
- package/dist/server/tools/close-reply.mjs +0 -138
- package/dist/server/tools/comment.d.mts +0 -6
- package/dist/server/tools/comment.mjs +0 -49
- package/dist/shared/icon-sets.d.mts +0 -9
- package/dist/shared/icon-sets.mjs +0 -21
- package/src/server/icon-set.ts +0 -56
- package/src/server/tools/close-reply.ts +0 -271
- package/src/server/tools/comment.ts +0 -96
- package/src/shared/icon-sets.ts +0 -23
- /package/app/public/{sudio-192.png → dex-192.png} +0 -0
- /package/app/public/{sudio-512.png → dex-512.png} +0 -0
- /package/app/public/{apple-touch-icon.png → dex-apple-touch-icon.png} +0 -0
- /package/app/public/{favicon-32.png → dex-icon-32.png} +0 -0
- /package/app/public/{favicon.svg → dex-icon.svg} +0 -0
- /package/app/public/{sudio-maskable-512.png → dex-maskable-512.png} +0 -0
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { PROTOTYPES_FOLDER, isSlug, splitPrototypePath } from "./prototypes-core.mjs";
|
|
2
2
|
//#region src/shared/studio-files.ts
|
|
3
|
+
const DISCIPLINES = [
|
|
4
|
+
"product",
|
|
5
|
+
"brand",
|
|
6
|
+
"engineering"
|
|
7
|
+
];
|
|
3
8
|
/** Where each of the studio's own files is, relative to its content root. */
|
|
4
9
|
const STUDIO_FILES = {
|
|
5
10
|
/** Who works in the studio, and the git users that are them. */
|
|
@@ -55,4 +60,4 @@ function classify(file) {
|
|
|
55
60
|
return "other";
|
|
56
61
|
}
|
|
57
62
|
//#endregion
|
|
58
|
-
export { STUDIO_FILES, classify, guidelinesPerson, isEditableMarkdown, isInstructionsFile, personGuidelinesPath };
|
|
63
|
+
export { DISCIPLINES, STUDIO_FILES, classify, guidelinesPerson, isEditableMarkdown, isInstructionsFile, personGuidelinesPath };
|
|
@@ -7,6 +7,7 @@ import { PasteSource } from "./snapshot-clipboard.mjs";
|
|
|
7
7
|
import { Devices } from "./devices.mjs";
|
|
8
8
|
import { AvatarFile } from "./avatar-file.mjs";
|
|
9
9
|
import { BuildSettings } from "./build-settings.mjs";
|
|
10
|
+
import { CommentAnswers, CommentBodies } from "./comments/routes.mjs";
|
|
10
11
|
import { RemovedView } from "./removed-views-core.mjs";
|
|
11
12
|
import { ReviewImport } from "./review-file.mjs";
|
|
12
13
|
import { ConnectedAgent } from "./studio-events.mjs";
|
|
@@ -304,7 +305,7 @@ export type GitStepName = GitStepBody["step"];
|
|
|
304
305
|
* The bodies the contract declares, by request and method; the rest are
|
|
305
306
|
* unknown, checked by their handlers.
|
|
306
307
|
*/
|
|
307
|
-
export interface StudioBodies {
|
|
308
|
+
export interface StudioBodies extends CommentBodies {
|
|
308
309
|
"agent-launch": {
|
|
309
310
|
POST: {
|
|
310
311
|
agent: LaunchAgentId;
|
|
@@ -382,7 +383,7 @@ export type StudioBodyOf<Name extends StudioRouteName, Method extends StudioMeth
|
|
|
382
383
|
* Each request, by name, and its answer to each method it takes. The query
|
|
383
384
|
* a request needs is in its comment.
|
|
384
385
|
*/
|
|
385
|
-
export interface StudioAnswers<Own extends OwnTypes = OwnTypes> {
|
|
386
|
+
export interface StudioAnswers<Own extends OwnTypes = OwnTypes> extends CommentAnswers {
|
|
386
387
|
/**
|
|
387
388
|
* Open an agent, or a plain terminal, where agents start: in a terminal
|
|
388
389
|
* window on this Mac (`opened`), else the command to run. Only from this
|
|
@@ -652,6 +653,19 @@ export interface StudioAnswers<Own extends OwnTypes = OwnTypes> {
|
|
|
652
653
|
views: string[];
|
|
653
654
|
};
|
|
654
655
|
};
|
|
656
|
+
/** A find and replace's changes, or what its undo put back. */
|
|
657
|
+
replace: {
|
|
658
|
+
POST: {
|
|
659
|
+
files: string[];
|
|
660
|
+
left?: number;
|
|
661
|
+
replaced: number;
|
|
662
|
+
skipped: number;
|
|
663
|
+
undo?: string;
|
|
664
|
+
} | {
|
|
665
|
+
kept: string[];
|
|
666
|
+
restored: string[];
|
|
667
|
+
};
|
|
668
|
+
};
|
|
655
669
|
/**
|
|
656
670
|
* GET: how a restart goes, from this Dex or, while none answers, its
|
|
657
671
|
* supervisor; POST: the run Dex restarts from.
|
|
@@ -697,11 +711,6 @@ export interface StudioAnswers<Own extends OwnTypes = OwnTypes> {
|
|
|
697
711
|
file: string;
|
|
698
712
|
};
|
|
699
713
|
};
|
|
700
|
-
/** ?slug= for one prototype's, or none for every one's. */
|
|
701
|
-
threads: {
|
|
702
|
-
GET: ThreadWithPrototype[];
|
|
703
|
-
POST: ThreadWithPrototype;
|
|
704
|
-
};
|
|
705
714
|
trash: {
|
|
706
715
|
DELETE: Done;
|
|
707
716
|
};
|
|
@@ -773,61 +782,6 @@ export interface StudioAnswers<Own extends OwnTypes = OwnTypes> {
|
|
|
773
782
|
export type StudioRouteName = keyof StudioAnswers;
|
|
774
783
|
/** The methods a request takes. */
|
|
775
784
|
export type StudioMethodOf<Name extends StudioRouteName> = keyof StudioAnswers[Name] & StudioMethod;
|
|
776
|
-
/**
|
|
777
|
-
* The requests and the methods each takes, for what has to know them as it
|
|
778
|
-
* runs: the server's test that it serves each one as declared.
|
|
779
|
-
*/
|
|
780
|
-
export declare const STUDIO_ROUTES: {
|
|
781
|
-
readonly canvas: readonly ["GET", "PUT"];
|
|
782
|
-
readonly annotations: readonly ["GET", "PUT", "DELETE"];
|
|
783
|
-
readonly events: readonly ["GET"];
|
|
784
|
-
readonly "removed-views": readonly ["GET", "POST"];
|
|
785
|
-
readonly reviews: readonly ["POST"];
|
|
786
|
-
readonly trash: readonly ["DELETE"];
|
|
787
|
-
readonly threads: readonly ["GET", "POST"];
|
|
788
|
-
readonly "spec-suggestion": readonly ["POST"];
|
|
789
|
-
readonly instructions: readonly ["GET", "PUT"];
|
|
790
|
-
readonly focus: readonly ["PUT"];
|
|
791
|
-
readonly me: readonly ["GET"];
|
|
792
|
-
readonly people: readonly ["GET"];
|
|
793
|
-
readonly prototypes: readonly ["POST"];
|
|
794
|
-
readonly paste: readonly ["POST"];
|
|
795
|
-
readonly frame: readonly ["POST"];
|
|
796
|
-
readonly show: readonly ["POST"];
|
|
797
|
-
readonly text: readonly ["POST"];
|
|
798
|
-
readonly props: readonly ["POST"];
|
|
799
|
-
readonly insert: readonly ["POST"];
|
|
800
|
-
readonly screenshot: readonly ["POST"];
|
|
801
|
-
readonly snapshot: readonly ["POST"];
|
|
802
|
-
readonly picture: readonly ["POST"];
|
|
803
|
-
readonly agents: readonly ["GET"];
|
|
804
|
-
readonly edited: readonly ["GET"];
|
|
805
|
-
readonly extension: readonly ["GET"];
|
|
806
|
-
readonly "agent-setup": readonly ["GET", "POST"];
|
|
807
|
-
readonly "agent-launch": readonly ["POST"];
|
|
808
|
-
readonly "agent-stop": readonly ["POST"];
|
|
809
|
-
readonly preferences: readonly ["GET", "PUT"];
|
|
810
|
-
readonly watch: readonly ["GET", "POST"];
|
|
811
|
-
readonly welcome: readonly ["GET", "POST"];
|
|
812
|
-
readonly update: readonly ["GET", "POST"];
|
|
813
|
-
readonly "machine-update": readonly ["GET", "POST"];
|
|
814
|
-
readonly "other-dexes": readonly ["GET", "POST"];
|
|
815
|
-
readonly restart: readonly ["GET", "POST"];
|
|
816
|
-
readonly "desktop-app": readonly ["GET", "POST"];
|
|
817
|
-
readonly devices: readonly ["GET", "PUT"];
|
|
818
|
-
readonly git: readonly ["GET", "POST"];
|
|
819
|
-
readonly "git-branches": readonly ["GET"];
|
|
820
|
-
readonly "git-sync": readonly ["POST"];
|
|
821
|
-
readonly "git-pull-base": readonly ["POST"];
|
|
822
|
-
readonly "git-saved": readonly ["GET", "POST"];
|
|
823
|
-
readonly "git-checks": readonly ["POST"];
|
|
824
|
-
readonly "git-settings": readonly ["GET", "PUT"];
|
|
825
|
-
readonly "build-settings": readonly ["GET", "PUT"];
|
|
826
|
-
readonly commands: readonly ["GET", "POST", "PUT", "DELETE"];
|
|
827
|
-
readonly "workspace-settings": readonly ["GET", "PUT"];
|
|
828
|
-
readonly "workspace-icon": readonly ["GET", "PUT", "DELETE"];
|
|
829
|
-
readonly avatar: readonly ["PUT", "DELETE"];
|
|
830
|
-
};
|
|
831
785
|
/** The web app manifest `dex dev` serves. */
|
|
832
786
|
export declare const MANIFEST_FILE = "manifest.webmanifest";
|
|
833
787
|
/**
|
|
@@ -52,74 +52,6 @@ const START_LINK_META = "dex-start-link";
|
|
|
52
52
|
* standalone display says in a browser.
|
|
53
53
|
*/
|
|
54
54
|
const DESKTOP_APP_AGENT = "DexApp";
|
|
55
|
-
/**
|
|
56
|
-
* The requests and the methods each takes, for what has to know them as it
|
|
57
|
-
* runs: the server's test that it serves each one as declared.
|
|
58
|
-
*/
|
|
59
|
-
const STUDIO_ROUTES = {
|
|
60
|
-
canvas: ["GET", "PUT"],
|
|
61
|
-
annotations: [
|
|
62
|
-
"GET",
|
|
63
|
-
"PUT",
|
|
64
|
-
"DELETE"
|
|
65
|
-
],
|
|
66
|
-
events: ["GET"],
|
|
67
|
-
"removed-views": ["GET", "POST"],
|
|
68
|
-
reviews: ["POST"],
|
|
69
|
-
trash: ["DELETE"],
|
|
70
|
-
threads: ["GET", "POST"],
|
|
71
|
-
"spec-suggestion": ["POST"],
|
|
72
|
-
instructions: ["GET", "PUT"],
|
|
73
|
-
focus: ["PUT"],
|
|
74
|
-
me: ["GET"],
|
|
75
|
-
people: ["GET"],
|
|
76
|
-
prototypes: ["POST"],
|
|
77
|
-
paste: ["POST"],
|
|
78
|
-
frame: ["POST"],
|
|
79
|
-
show: ["POST"],
|
|
80
|
-
text: ["POST"],
|
|
81
|
-
props: ["POST"],
|
|
82
|
-
insert: ["POST"],
|
|
83
|
-
screenshot: ["POST"],
|
|
84
|
-
snapshot: ["POST"],
|
|
85
|
-
picture: ["POST"],
|
|
86
|
-
agents: ["GET"],
|
|
87
|
-
edited: ["GET"],
|
|
88
|
-
extension: ["GET"],
|
|
89
|
-
"agent-setup": ["GET", "POST"],
|
|
90
|
-
"agent-launch": ["POST"],
|
|
91
|
-
"agent-stop": ["POST"],
|
|
92
|
-
preferences: ["GET", "PUT"],
|
|
93
|
-
watch: ["GET", "POST"],
|
|
94
|
-
welcome: ["GET", "POST"],
|
|
95
|
-
update: ["GET", "POST"],
|
|
96
|
-
"machine-update": ["GET", "POST"],
|
|
97
|
-
"other-dexes": ["GET", "POST"],
|
|
98
|
-
restart: ["GET", "POST"],
|
|
99
|
-
"desktop-app": ["GET", "POST"],
|
|
100
|
-
devices: ["GET", "PUT"],
|
|
101
|
-
git: ["GET", "POST"],
|
|
102
|
-
"git-branches": ["GET"],
|
|
103
|
-
"git-sync": ["POST"],
|
|
104
|
-
"git-pull-base": ["POST"],
|
|
105
|
-
"git-saved": ["GET", "POST"],
|
|
106
|
-
"git-checks": ["POST"],
|
|
107
|
-
"git-settings": ["GET", "PUT"],
|
|
108
|
-
"build-settings": ["GET", "PUT"],
|
|
109
|
-
commands: [
|
|
110
|
-
"GET",
|
|
111
|
-
"POST",
|
|
112
|
-
"PUT",
|
|
113
|
-
"DELETE"
|
|
114
|
-
],
|
|
115
|
-
"workspace-settings": ["GET", "PUT"],
|
|
116
|
-
"workspace-icon": [
|
|
117
|
-
"GET",
|
|
118
|
-
"PUT",
|
|
119
|
-
"DELETE"
|
|
120
|
-
],
|
|
121
|
-
avatar: ["PUT", "DELETE"]
|
|
122
|
-
};
|
|
123
55
|
/** The web app manifest `dex dev` serves. */
|
|
124
56
|
const MANIFEST_FILE = "manifest.webmanifest";
|
|
125
57
|
/**
|
|
@@ -134,4 +66,4 @@ const PROJECT_ID_HEADER = "x-dex-project";
|
|
|
134
66
|
*/
|
|
135
67
|
const OLD_PROJECT_ID_HEADER = "x-sudio-project";
|
|
136
68
|
//#endregion
|
|
137
|
-
export { DESKTOP_APP_AGENT, DESKTOP_APP_INSTALLED, DESKTOP_APP_KEY, EXTENSION_FILE, GITHUB_SIGN_IN_COMMAND, GIT_NAME_COMMAND, MANIFEST_FILE, ME_META, NOT_RECOGNISED, OLD_PROJECT_ID_HEADER, PROJECT_ID_HEADER, STALE_PICTURE_HEADER, START_LINK_META,
|
|
69
|
+
export { DESKTOP_APP_AGENT, DESKTOP_APP_INSTALLED, DESKTOP_APP_KEY, EXTENSION_FILE, GITHUB_SIGN_IN_COMMAND, GIT_NAME_COMMAND, MANIFEST_FILE, ME_META, NOT_RECOGNISED, OLD_PROJECT_ID_HEADER, PROJECT_ID_HEADER, STALE_PICTURE_HEADER, START_LINK_META, canLaunch, nameOfMe, youOf };
|
|
@@ -73,8 +73,8 @@ export type ThreadTarget = {
|
|
|
73
73
|
selector?: string;
|
|
74
74
|
/**
|
|
75
75
|
* The start of the element's text, or its label or placeholder when it
|
|
76
|
-
* has none, to help find it in code
|
|
77
|
-
*
|
|
76
|
+
* has none, to help find it in code, and on the page when it moves.
|
|
77
|
+
* Its pin stays in its place when the words change.
|
|
78
78
|
*/
|
|
79
79
|
text?: string;
|
|
80
80
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { prototypeFiles } from "./prototypes-core.mjs";
|
|
2
1
|
import { isOneOf, isRecord, isText } from "./checks.mjs";
|
|
2
|
+
import { prototypeFiles } from "./prototypes-core.mjs";
|
|
3
3
|
import { cleanSketch, describeSketch, threadSketchProblems } from "./sketch-core.mjs";
|
|
4
4
|
import { VIEWPORTS, isSpecPath } from "./canvas-core.mjs";
|
|
5
5
|
import "./spec-quote.mjs";
|