@dexhq/canvas 0.15.0 → 0.16.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.
Files changed (307) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/app/canvas/activity-parts.tsx +50 -6
  3. package/app/canvas/activity.tsx +2 -3
  4. package/app/canvas/agent-changes.ts +18 -8
  5. package/app/canvas/anchoring.ts +13 -3
  6. package/app/canvas/canvas-context.tsx +6 -2
  7. package/app/canvas/canvas-input.ts +35 -0
  8. package/app/canvas/canvas-model.ts +2 -2
  9. package/app/canvas/canvas-scene.ts +243 -24
  10. package/app/canvas/canvas-ui.ts +11 -2
  11. package/app/canvas/canvas.css +86 -3
  12. package/app/canvas/comments.tsx +66 -29
  13. package/app/canvas/element-link.ts +135 -0
  14. package/app/canvas/element-picker.ts +23 -0
  15. package/app/canvas/export-dialog.tsx +265 -0
  16. package/app/canvas/flow-canvas.tsx +65 -14
  17. package/app/canvas/frame-context-menu.tsx +61 -7
  18. package/app/canvas/frame-node.tsx +10 -11
  19. package/app/canvas/layout.ts +41 -22
  20. package/app/canvas/linked-element.tsx +196 -0
  21. package/app/canvas/live-page.ts +14 -0
  22. package/app/canvas/mentions.tsx +209 -0
  23. package/app/canvas/picked-box.tsx +21 -0
  24. package/app/canvas/removed-views-panel.tsx +4 -4
  25. package/app/canvas/request-node.tsx +151 -0
  26. package/app/canvas/review-panel.tsx +8 -3
  27. package/app/canvas/section-node.tsx +4 -133
  28. package/app/canvas/spec-margin.tsx +4 -1
  29. package/app/canvas/teammates-layer.tsx +205 -0
  30. package/app/canvas/text-layer.tsx +103 -17
  31. package/app/canvas/tool-cursors.ts +7 -6
  32. package/app/canvas/tool-icons.tsx +24 -56
  33. package/app/canvas/typing.ts +12 -0
  34. package/app/canvas/use-agent-changes.tsx +6 -2
  35. package/app/canvas/use-canvas-editor.ts +4 -2
  36. package/app/export/player-model.ts +159 -0
  37. package/app/export/player.tsx +198 -0
  38. package/app/export.html +31 -0
  39. package/app/export.tsx +9 -0
  40. package/app/frame/announce-refreshes.ts +21 -0
  41. package/app/frame/start-frame.tsx +50 -0
  42. package/app/frame/view-loads.ts +161 -0
  43. package/app/frame/views.ts +13 -49
  44. package/app/frame.tsx +2 -38
  45. package/app/i18n/locales/en/messages.po +145 -6
  46. package/app/i18n/locales/en/messages.ts +1 -1
  47. package/app/i18n/locales/pseudo/messages.po +144 -5
  48. package/app/i18n/locales/pseudo/messages.ts +1 -1
  49. package/app/icons/dex-glyphs.tsx +219 -0
  50. package/app/icons/glyphs.tsx +76 -80
  51. package/app/kit/use-flow.ts +2 -1
  52. package/app/live/canvas-teammates.ts +90 -0
  53. package/app/live/studio-api.ts +30 -20
  54. package/app/pages/canvas.tsx +18 -6
  55. package/app/pages/commands-settings.tsx +1 -1
  56. package/app/pages/render.tsx +39 -11
  57. package/app/shell/bell.tsx +15 -5
  58. package/app/shell/presence.tsx +123 -26
  59. package/app/shell/thread-list.tsx +25 -8
  60. package/app/shell/working-on.tsx +35 -3
  61. package/app/ui/prompt-editor.tsx +39 -11
  62. package/app/ui/reference.tsx +21 -8
  63. package/bin/sudio.mjs +1 -1
  64. package/dist/cli/commands/create.d.mts +5 -5
  65. package/dist/cli/commands/create.mjs +4 -4
  66. package/dist/cli/commands/export.d.mts +40 -0
  67. package/dist/cli/commands/export.mjs +66 -0
  68. package/dist/cli/commands/init.d.mts +2 -2
  69. package/dist/cli/commands/upgrade.mjs +1 -1
  70. package/dist/cli/help.d.mts +1 -1
  71. package/dist/cli/help.mjs +13 -7
  72. package/dist/cli/main.d.mts +42 -5
  73. package/dist/cli/main.mjs +1 -0
  74. package/dist/config/load.mjs +14 -2
  75. package/dist/config/project-files.d.mts +5 -0
  76. package/dist/config/project-files.mjs +10 -1
  77. package/dist/config/renamed.d.mts +7 -0
  78. package/dist/config/renamed.mjs +13 -1
  79. package/dist/content/commands.d.mts +11 -9
  80. package/dist/content/commands.mjs +22 -16
  81. package/dist/content/comments-log.mjs +2 -1
  82. package/dist/content/content.d.mts +11 -3
  83. package/dist/content/content.mjs +49 -15
  84. package/dist/content/element-words.d.mts +42 -0
  85. package/dist/content/element-words.mjs +112 -0
  86. package/dist/content/hosted-person.d.mts +31 -0
  87. package/dist/content/hosted-person.mjs +68 -0
  88. package/dist/content/merge-rules.d.mts +5 -0
  89. package/dist/content/merge-rules.mjs +17 -1
  90. package/dist/content/screenshot.mjs +9 -0
  91. package/dist/content/text-edit.d.mts +24 -14
  92. package/dist/content/text-edit.mjs +92 -81
  93. package/dist/content/text-replace.mjs +2 -26
  94. package/dist/content/thread-module.d.mts +2 -4
  95. package/dist/content/thread-module.mjs +4 -5
  96. package/dist/server/agents.d.mts +10 -0
  97. package/dist/server/agents.mjs +21 -6
  98. package/dist/server/canvas-presence.d.mts +22 -0
  99. package/dist/server/canvas-presence.mjs +160 -0
  100. package/dist/server/command-settings.mjs +1 -1
  101. package/dist/server/comments/actions.d.mts +0 -8
  102. package/dist/server/comments/actions.mjs +1 -9
  103. package/dist/server/comments/routes.mjs +10 -31
  104. package/dist/server/dev-server.mjs +35 -13
  105. package/dist/server/export/build.d.mts +15 -0
  106. package/dist/server/export/build.mjs +220 -0
  107. package/dist/server/export/page.d.mts +25 -0
  108. package/dist/server/export/page.mjs +40 -0
  109. package/dist/server/export/plugin.d.mts +31 -0
  110. package/dist/server/export/plugin.mjs +69 -0
  111. package/dist/server/export/run.d.mts +9 -0
  112. package/dist/server/export/run.mjs +61 -0
  113. package/dist/server/export/save.d.mts +7 -0
  114. package/dist/server/export/save.mjs +29 -0
  115. package/dist/server/hosted.d.mts +8 -0
  116. package/dist/server/hosted.mjs +78 -0
  117. package/dist/server/live-mirror.mjs +66 -10
  118. package/dist/server/live.mjs +28 -1
  119. package/dist/server/mcp.mjs +2 -0
  120. package/dist/server/me.d.mts +2 -0
  121. package/dist/server/me.mjs +8 -2
  122. package/dist/server/notices.d.mts +1 -1
  123. package/dist/server/notices.mjs +1 -1
  124. package/dist/server/own-copies.mjs +1 -1
  125. package/dist/server/people.d.mts +7 -2
  126. package/dist/server/people.mjs +6 -2
  127. package/dist/server/pictures.d.mts +1 -1
  128. package/dist/server/pictures.mjs +2 -2
  129. package/dist/server/prebundle.d.mts +32 -0
  130. package/dist/server/prebundle.mjs +115 -0
  131. package/dist/server/problems.d.mts +8 -0
  132. package/dist/server/problems.mjs +13 -0
  133. package/dist/server/requests.mjs +43 -30
  134. package/dist/server/source-stamp.d.mts +4 -3
  135. package/dist/server/source-stamp.mjs +60 -31
  136. package/dist/server/state.d.mts +19 -10
  137. package/dist/server/state.mjs +27 -18
  138. package/dist/server/thread-source.d.mts +8 -0
  139. package/dist/server/thread-source.mjs +24 -5
  140. package/dist/server/tools/export.d.mts +5 -0
  141. package/dist/server/tools/export.mjs +35 -0
  142. package/dist/server/tools/place-frame.mjs +16 -16
  143. package/dist/server/tools/thread-list.mjs +1 -1
  144. package/dist/server/vite.d.mts +9 -4
  145. package/dist/server/vite.mjs +63 -61
  146. package/dist/server/welcome.mjs +2 -1
  147. package/dist/setup/apply.d.mts +4 -0
  148. package/dist/setup/apply.mjs +5 -4
  149. package/dist/setup/create.mjs +5 -5
  150. package/dist/setup/design-system-checks.mjs +1 -6
  151. package/dist/setup/detect/workspace.d.mts +10 -10
  152. package/dist/setup/detect/workspace.mjs +10 -12
  153. package/dist/setup/doctor.d.mts +4 -1
  154. package/dist/setup/doctor.mjs +7 -5
  155. package/dist/setup/migrate/dex-folder.d.mts +61 -0
  156. package/dist/setup/migrate/dex-folder.mjs +544 -0
  157. package/dist/setup/migrate/files-folder.mjs +1 -1
  158. package/dist/setup/migrate/guides.mjs +1 -1
  159. package/dist/setup/migrate/migrations.mjs +4 -0
  160. package/dist/setup/migrate/setup-files.d.mts +5 -0
  161. package/dist/setup/migrate/setup-files.mjs +115 -0
  162. package/dist/setup/migrate/studio-state.d.mts +2 -2
  163. package/dist/setup/migrate/studio-state.mjs +4 -4
  164. package/dist/setup/placement.d.mts +1 -1
  165. package/dist/setup/placement.mjs +5 -4
  166. package/dist/setup/plan.d.mts +5 -5
  167. package/dist/setup/plan.mjs +8 -12
  168. package/dist/setup/project.mjs +1 -1
  169. package/dist/setup/prompts.d.mts +2 -1
  170. package/dist/setup/prompts.mjs +4 -3
  171. package/dist/setup/questions.mjs +3 -2
  172. package/dist/setup/starters.d.mts +1 -1
  173. package/dist/setup/starters.mjs +2 -2
  174. package/dist/setup/write.d.mts +15 -3
  175. package/dist/setup/write.mjs +23 -3
  176. package/dist/shared/canvas-core.d.mts +22 -7
  177. package/dist/shared/canvas-core.mjs +38 -10
  178. package/dist/shared/comments/routes.d.mts +3 -1
  179. package/dist/shared/comments/routes.mjs +4 -2
  180. package/dist/shared/export-core.d.mts +62 -0
  181. package/dist/shared/export-core.mjs +101 -0
  182. package/dist/shared/live-core.d.mts +2 -0
  183. package/dist/shared/live-core.mjs +6 -1
  184. package/dist/shared/live-presence.d.mts +57 -2
  185. package/dist/shared/live-presence.mjs +90 -4
  186. package/dist/shared/page-messages.d.mts +14 -1
  187. package/dist/shared/page-messages.mjs +30 -3
  188. package/dist/shared/people-core.d.mts +28 -0
  189. package/dist/shared/people-core.mjs +27 -1
  190. package/dist/shared/presence-core.d.mts +2 -0
  191. package/dist/shared/references-core.d.mts +4 -0
  192. package/dist/shared/references-core.mjs +12 -4
  193. package/dist/shared/studio-files.d.mts +9 -0
  194. package/dist/shared/studio-files.mjs +11 -2
  195. package/dist/shared/studio-routes.d.mts +13 -1
  196. package/dist/shared/threads-core.d.mts +27 -4
  197. package/dist/shared/threads-core.mjs +67 -12
  198. package/extension/dist/feedback.js +104 -294
  199. package/extension/dist/manifest.json +1 -1
  200. package/extension/dist/picker.js +104 -294
  201. package/package.json +2 -2
  202. package/src/cli/commands/create.ts +4 -4
  203. package/src/cli/commands/export.ts +78 -0
  204. package/src/cli/commands/upgrade.ts +1 -1
  205. package/src/cli/help.ts +13 -7
  206. package/src/cli/main.ts +1 -0
  207. package/src/config/load.ts +26 -2
  208. package/src/config/project-files.ts +15 -0
  209. package/src/config/renamed.ts +19 -1
  210. package/src/content/commands.ts +30 -18
  211. package/src/content/comments-log.ts +4 -1
  212. package/src/content/content.ts +64 -16
  213. package/src/content/element-words.ts +175 -0
  214. package/src/content/hosted-person.ts +107 -0
  215. package/src/content/merge-rules.ts +29 -0
  216. package/src/content/screenshot.ts +14 -0
  217. package/src/content/text-edit.ts +172 -105
  218. package/src/content/text-replace.ts +3 -32
  219. package/src/content/thread-module.ts +2 -4
  220. package/src/content/trash.ts +1 -1
  221. package/src/server/agents.ts +48 -17
  222. package/src/server/canvas-presence.ts +237 -0
  223. package/src/server/channel.ts +1 -1
  224. package/src/server/command-settings.ts +1 -1
  225. package/src/server/comments/actions.ts +0 -19
  226. package/src/server/comments/routes.ts +9 -54
  227. package/src/server/dev-server.ts +66 -26
  228. package/src/server/export/build.ts +310 -0
  229. package/src/server/export/page.ts +85 -0
  230. package/src/server/export/plugin.ts +138 -0
  231. package/src/server/export/run.ts +79 -0
  232. package/src/server/export/save.ts +38 -0
  233. package/src/server/hosted.ts +113 -0
  234. package/src/server/live-mirror.ts +93 -8
  235. package/src/server/live.ts +46 -1
  236. package/src/server/machine-update.ts +3 -3
  237. package/src/server/mcp.ts +2 -0
  238. package/src/server/me.ts +10 -1
  239. package/src/server/notices.ts +2 -2
  240. package/src/server/people.ts +11 -2
  241. package/src/server/pictures.ts +2 -2
  242. package/src/server/prebundle.ts +230 -0
  243. package/src/server/presence.ts +1 -1
  244. package/src/server/problems.ts +11 -0
  245. package/src/server/requests.ts +55 -40
  246. package/src/server/roster.ts +1 -1
  247. package/src/server/saved.ts +1 -1
  248. package/src/server/source-stamp.ts +118 -37
  249. package/src/server/state.ts +53 -31
  250. package/src/server/thread-source.ts +35 -3
  251. package/src/server/tools/export.ts +56 -0
  252. package/src/server/tools/place-frame.ts +23 -15
  253. package/src/server/tools/thread-list.ts +1 -1
  254. package/src/server/updates.ts +2 -2
  255. package/src/server/vite.ts +106 -110
  256. package/src/server/welcome.ts +3 -1
  257. package/src/setup/apply.ts +8 -5
  258. package/src/setup/create.ts +10 -10
  259. package/src/setup/design-system-checks.ts +1 -6
  260. package/src/setup/detect/workspace.ts +20 -21
  261. package/src/setup/doctor.ts +13 -6
  262. package/src/setup/migrate/dex-folder.ts +842 -0
  263. package/src/setup/migrate/files-folder.ts +1 -1
  264. package/src/setup/migrate/guides.ts +3 -1
  265. package/src/setup/migrate/migrations.ts +8 -2
  266. package/src/setup/migrate/setup-files.ts +198 -0
  267. package/src/setup/migrate/studio-state.ts +12 -10
  268. package/src/setup/own-app.ts +1 -1
  269. package/src/setup/placement.ts +7 -6
  270. package/src/setup/plan.ts +13 -18
  271. package/src/setup/project.ts +2 -2
  272. package/src/setup/prompts.ts +5 -4
  273. package/src/setup/questions.ts +6 -3
  274. package/src/setup/starters.ts +3 -3
  275. package/src/setup/write.ts +34 -3
  276. package/src/shared/canvas-core.ts +48 -9
  277. package/src/shared/comments/routes.ts +3 -1
  278. package/src/shared/export-core.ts +198 -0
  279. package/src/shared/live-core.ts +8 -0
  280. package/src/shared/live-presence.ts +171 -2
  281. package/src/shared/page-messages.ts +38 -2
  282. package/src/shared/people-core.ts +44 -0
  283. package/src/shared/presence-core.ts +2 -0
  284. package/src/shared/references-core.ts +22 -3
  285. package/src/shared/studio-files.ts +15 -1
  286. package/src/shared/studio-routes.ts +11 -1
  287. package/src/shared/threads-core.ts +132 -10
  288. package/templates/methods/explore.md +1 -1
  289. package/templates/methods/handoff.md +1 -1
  290. package/templates/methods/review.md +2 -1
  291. package/templates/rules/canvas-frames.md +6 -3
  292. package/templates/rules/commands.md +1 -0
  293. package/templates/rules/prototypes.md +1 -1
  294. package/templates/rules/studio.md +17 -11
  295. package/templates/skills/comprehend/SKILL.md +56 -0
  296. package/templates/skills/distill/SKILL.md +172 -0
  297. package/templates/skills/export-prototype/SKILL.md +35 -0
  298. package/templates/skills/riff/SKILL.md +21 -0
  299. package/templates/skills/riff-deep/SKILL.md +40 -0
  300. package/templates/skills/riff-max/SKILL.md +46 -0
  301. package/templates/skills/riff-state/SKILL.md +45 -0
  302. package/templates/skills/riff-up/SKILL.md +38 -0
  303. package/templates/skills/riff-wide/SKILL.md +40 -0
  304. package/templates/starters/standalone/README.md +1 -1
  305. package/templates/starters/turborepo/README.md +2 -2
  306. package/templates/starters/turborepo/apps/web/src/app.tsx +2 -2
  307. package/templates/starters/vite/README.md +1 -1
@@ -9,20 +9,15 @@ import {
9
9
  type FileError,
10
10
  } from "../../src/shared/file-errors.ts";
11
11
  import { type ViewFiles, viewFiles } from "./view-files";
12
+ import { type Change, VIEW_FILE_RE, viewLoads } from "./view-loads";
12
13
 
13
14
  // A view by its address, loaded when first shown. A view that appears or
14
15
  // goes swaps the files in place, through a hot update from the development
15
16
  // server, and the frame renders again without reloading. A view that failed
16
- // to load (conflict markers, a file half written, a throw as it loads) is
17
- // tried again, at a new address, after each hot update, so fixing the file
18
- // brings it back: the browser keeps a module that failed to load as it is.
17
+ // to load is tried again after each change (view-loads.ts).
19
18
 
20
- // Matched from the end, so it works whatever the path before the content is.
21
- const VIEW_FILE_RE = /files\/([^/]+)\/people\/[^/]+\/views\/([^/]+)\.tsx$/;
22
19
  /** Longer than React's refresh waits after a change, 16ms. */
23
20
  const AFTER_REFRESH_MS = 50;
24
- // The address a loader Vite wrote imports.
25
- const IMPORTED_RE = /import\(\s*["']([^"']+)["']/;
26
21
 
27
22
  let files: ViewFiles = viewFiles;
28
23
  let version = 0;
@@ -31,10 +26,10 @@ const loaded = new Map<
31
26
  string,
32
27
  ComponentType | LazyExoticComponent<ComponentType>
33
28
  >();
34
- /** Views that failed to load since the last hot update, by path. */
35
- const failed = new Set<string>();
36
- /** When each view that failed was last tried again, by path. */
37
- const retried = new Map<string, number>();
29
+ const loads = viewLoads({
30
+ ask: () => import.meta.hot?.send(FILE_ERRORS_EVENT),
31
+ reload: () => window.location.reload(),
32
+ });
38
33
 
39
34
  const changed = () => {
40
35
  version += 1;
@@ -43,31 +38,6 @@ const changed = () => {
43
38
  }
44
39
  };
45
40
 
46
- type Load = () => Promise<{ default: ComponentType }>;
47
-
48
- /**
49
- * How to load the view at `path`: as matched, or once it failed, at its
50
- * address with a new stamp, as Vite's own client loads a changed module.
51
- * The address is the one the matched loader imports: in development, Vite
52
- * writes each as `() => import("/@fs/…/views/home.tsx")`.
53
- */
54
- const loaderOf = (path: string, load: Load): Load => {
55
- const stamp = retried.get(path);
56
- const [, address] = IMPORTED_RE.exec(String(load)) ?? [];
57
- if (stamp === undefined || !address) {
58
- return load;
59
- }
60
- const again = `${address}${address.includes("?") ? "&" : "?"}t=${stamp}`;
61
- return () => import(/* @vite-ignore */ again);
62
- };
63
-
64
- /** Load the view at `path`, noting a failure so a hot update tries it again. */
65
- const loadView = (path: string, load: Load): ReturnType<Load> =>
66
- loaderOf(path, load)().catch((error: unknown) => {
67
- failed.add(path);
68
- throw error;
69
- });
70
-
71
41
  const subscribe = (listener: () => void) => {
72
42
  listeners.add(listener);
73
43
  return () => listeners.delete(listener);
@@ -95,7 +65,7 @@ export async function preloadView(slug: string, view: string): Promise<void> {
95
65
  return;
96
66
  }
97
67
  // A view that fails to load says so when it renders, as any does.
98
- const module = await loadView(path, load).catch(() => undefined);
68
+ const module = await loads.load(path, load).catch(() => undefined);
99
69
  if (module?.default && !loaded.has(path)) {
100
70
  loaded.set(path, module.default);
101
71
  }
@@ -116,7 +86,7 @@ export function findView(
116
86
  const [path, load] = entry;
117
87
  let component = loaded.get(path);
118
88
  if (!component) {
119
- component = lazy(() => loadView(path, load));
89
+ component = lazy(() => loads.load(path, load));
120
90
  loaded.set(path, component);
121
91
  }
122
92
  return component;
@@ -135,27 +105,21 @@ if (import.meta.hot) {
135
105
  // render again, so one that threw while rendering tries once more. After
136
106
  // React's refresh, which waits 16ms for more changes
137
107
  // (@vitejs/plugin-react's refresh runtime), so it renders the code as fixed.
138
- const retry = () => {
139
- for (const path of failed) {
108
+ const retry = (change: Change) => {
109
+ for (const path of loads.tryAgain(change)) {
140
110
  loaded.delete(path);
141
- retried.set(path, Date.now());
142
111
  }
143
- failed.clear();
144
112
  changed();
145
113
  };
146
114
  import.meta.hot.on("vite:afterUpdate", () => {
147
- setTimeout(retry, AFTER_REFRESH_MS);
115
+ setTimeout(() => retry("hot update"), AFTER_REFRESH_MS);
148
116
  });
149
117
  // A file that never loaded gets no hot update when it changes: the server
150
118
  // takes it off its list of files it can't read instead
151
119
  // (src/server/file-errors.ts). One that left the list may be fixed.
152
- let unreadable = new Set<string>();
153
120
  import.meta.hot.on(FILE_ERRORS_EVENT, (list: FileError[]) => {
154
- const now = new Set(list.map(({ path }) => path));
155
- const left = [...unreadable].some((path) => !now.has(path));
156
- unreadable = now;
157
- if (left) {
158
- retry();
121
+ if (loads.hearUnreadable(list)) {
122
+ retry("file left the list");
159
123
  }
160
124
  });
161
125
  }
package/app/frame.tsx CHANGED
@@ -4,42 +4,6 @@
4
4
  // and the kit, so frames load quickly and nothing in one can reach the
5
5
  // interface: there is none in this bundle.
6
6
  import "@studio-frame.css";
7
- import { StrictMode } from "react";
8
- import { createRoot } from "react-dom/client";
9
- import { viewAt } from "../src/shared/prototypes-core.ts";
10
- import { FrameApp } from "./frame/frame-app";
11
- import { hashPath } from "./frame/frame-history";
12
- import { holdWindowFocus } from "./frame/hold-window-focus";
13
- import { preloadView } from "./frame/views";
14
- import { refuseStrayFileDrops } from "./ui/file-drop";
15
- import { StudioThemeProvider } from "./ui/theme-provider";
7
+ import { startFrame } from "./frame/start-frame";
16
8
 
17
- // Before the view, so its listeners come after this one.
18
- holdWindowFocus(window);
19
- // A file dropped on the view where nothing in it takes the file is never
20
- // opened in place of it, nor of the studio around a live frame. What the
21
- // view takes, on its own elements or its window, it still takes.
22
- refuseStrayFileDrops(window);
23
-
24
- const root = document.getElementById("root");
25
- if (!root) {
26
- throw new Error("Dex needs a #root element in frame.html.");
27
- }
28
-
29
- const render = () =>
30
- createRoot(root).render(
31
- <StrictMode>
32
- <StudioThemeProvider>
33
- <FrameApp />
34
- </StudioThemeProvider>
35
- </StrictMode>
36
- );
37
-
38
- // The view the page opens on is loaded first, so it is there in the first
39
- // render (see preloadView).
40
- const first = viewAt(hashPath());
41
- if (first) {
42
- preloadView(first.slug, first.view).then(render, render);
43
- } else {
44
- render();
45
- }
9
+ startFrame();
@@ -7,6 +7,10 @@ msgstr ""
7
7
  "X-Generator: @lingui/cli\n"
8
8
  "Language: en\n"
9
9
 
10
+ #: app/canvas/export-dialog.tsx
11
+ msgid ", letting people switch flows"
12
+ msgstr ", letting people switch flows"
13
+
10
14
  #: app/shell/update-notice.tsx
11
15
  msgid "({seconds}s)"
12
16
  msgstr "({seconds}s)"
@@ -109,7 +113,7 @@ msgstr "{author} · {status} · Started <0>{started}</0>"
109
113
  msgid "{author} · Started <0>{started}</0>"
110
114
  msgstr "{author} · Started <0>{started}</0>"
111
115
 
112
- #: app/canvas/section-node.tsx
116
+ #: app/canvas/request-node.tsx
113
117
  msgid "{author} is building this"
114
118
  msgstr "{author} is building this"
115
119
 
@@ -415,6 +419,10 @@ msgstr "A merge is part way through, and every file in it is settled. Finish it
415
419
  msgid "A merge is part way through."
416
420
  msgstr "A merge is part way through."
417
421
 
422
+ #: app/canvas/export-dialog.tsx
423
+ msgid "A page for each frame, to link to one directly."
424
+ msgstr "A page for each frame, to link to one directly."
425
+
418
426
  #: app/pages/markup-settings.tsx
419
427
  msgid "A panel in a corner of your app, guided by an outline your team writes. There’s no server and no account: reviews stay in the reviewer’s browser until they export them."
420
428
  msgstr "A panel in a corner of your app, guided by an outline your team writes. There’s no server and no account: reviews stay in the reviewer’s browser until they export them."
@@ -435,6 +443,10 @@ msgstr "A reviewer reads the outline, starts a task, ticks off its steps and cli
435
443
  msgid "A sketch holds at most {MAX_BOXES} boxes."
436
444
  msgstr "A sketch holds at most {MAX_BOXES} boxes."
437
445
 
446
+ #: app/canvas/export-dialog.tsx
447
+ msgid "A zip that opens by double-click, offline: a page, its script and its stylesheet. It goes to your downloads."
448
+ msgstr "A zip that opens by double-click, offline: a page, its script and its stylesheet. It goes to your downloads."
449
+
438
450
  #: app/shell/about.tsx
439
451
  #: app/shell/main-sidebar.tsx
440
452
  msgid "About {PRODUCT}"
@@ -576,6 +588,15 @@ msgstr "All branches…"
576
588
  msgid "All files"
577
589
  msgstr "All files"
578
590
 
591
+ #. placeholder {0}: sections.length
592
+ #: app/canvas/export-dialog.tsx
593
+ msgid "All of their {0} sections"
594
+ msgstr "All of their {0} sections"
595
+
596
+ #: app/canvas/export-dialog.tsx
597
+ msgid "All of their section"
598
+ msgstr "All of their section"
599
+
579
600
  #: app/canvas/activity.tsx
580
601
  msgid "Allow {PRODUCT} to control Terminal in System Settings, or run this yourself:"
581
602
  msgstr "Allow {PRODUCT} to control Terminal in System Settings, or run this yourself:"
@@ -601,7 +622,7 @@ msgstr "Also used by {0}"
601
622
  msgid "Always"
602
623
  msgstr "Always"
603
624
 
604
- #: app/canvas/section-node.tsx
625
+ #: app/canvas/request-node.tsx
605
626
  msgid "An agent is building this"
606
627
  msgstr "An agent is building this"
607
628
 
@@ -671,6 +692,10 @@ msgstr "Ask for a new view"
671
692
  msgid "Ask the agent"
672
693
  msgstr "Ask the agent"
673
694
 
695
+ #: app/canvas/export-dialog.tsx
696
+ msgid "Ask the agent to prepare it"
697
+ msgstr "Ask the agent to prepare it"
698
+
674
699
  #: app/pages/ask-the-agent.tsx
675
700
  msgid "Ask your agent"
676
701
  msgstr "Ask your agent"
@@ -794,8 +819,8 @@ msgstr "Can't tell who you are, so the canvas can't be edited yet. Retrying…"
794
819
  #: app/canvas/comments.tsx
795
820
  #: app/canvas/imported-reviews.tsx
796
821
  #: app/canvas/removed-views-panel.tsx
822
+ #: app/canvas/request-node.tsx
797
823
  #: app/canvas/review-panel.tsx
798
- #: app/canvas/section-node.tsx
799
824
  #: app/git/branch-panel.tsx
800
825
  #: app/shell/feedback-form.tsx
801
826
  #: app/shell/prototype-menu.tsx
@@ -961,6 +986,10 @@ msgstr "Click it (or press Alt+Shift+S) on any page, then click an element to co
961
986
  msgid "Click Load unpacked and choose that folder: the one with manifest.json in it."
962
987
  msgstr "Click Load unpacked and choose that folder: the one with manifest.json in it."
963
988
 
989
+ #: app/canvas/export-dialog.tsx
990
+ msgid "Clickable"
991
+ msgstr "Clickable"
992
+
964
993
  #: app/canvas/comments.tsx
965
994
  #: app/canvas/find-bar.tsx
966
995
  #: app/canvas/floating-panel.tsx
@@ -1053,6 +1082,10 @@ msgstr "Comments on a canvas reach a watching agent by themselves. It takes each
1053
1082
  msgid "Comments sent to the agent, as work for it to do, show here."
1054
1083
  msgstr "Comments sent to the agent, as work for it to do, show here."
1055
1084
 
1085
+ #: app/canvas/comments.tsx
1086
+ msgid "Comments where someone writes @ and your name show here."
1087
+ msgstr "Comments where someone writes @ and your name show here."
1088
+
1056
1089
  #: app/canvas/activity.tsx
1057
1090
  msgid "Comments you leave for agents show here, with what happens to each."
1058
1091
  msgstr "Comments you leave for agents show here, with what happens to each."
@@ -1130,6 +1163,10 @@ msgstr "Connect your agent"
1130
1163
  msgid "Connected: {connected}"
1131
1164
  msgstr "Connected: {connected}"
1132
1165
 
1166
+ #: app/canvas/export-dialog.tsx
1167
+ msgid "Content pack"
1168
+ msgstr "Content pack"
1169
+
1133
1170
  #: app/pages/guidelines.tsx
1134
1171
  msgid "Context"
1135
1172
  msgstr "Context"
@@ -1160,6 +1197,14 @@ msgstr "Copied {0}"
1160
1197
  msgid "Copied {0} as a PNG"
1161
1198
  msgstr "Copied {0} as a PNG"
1162
1199
 
1200
+ #: app/canvas/frame-context-menu.tsx
1201
+ msgid "Copied a link to this element."
1202
+ msgstr "Copied a link to this element."
1203
+
1204
+ #: app/canvas/frame-context-menu.tsx
1205
+ msgid "Copied a link to this frame."
1206
+ msgstr "Copied a link to this frame."
1207
+
1163
1208
  #: app/git/git-controls.tsx
1164
1209
  msgid "Copied. Paste it into your agent, then try again."
1165
1210
  msgstr "Copied. Paste it into your agent, then try again."
@@ -1202,6 +1247,7 @@ msgid "Copy details"
1202
1247
  msgstr "Copy details"
1203
1248
 
1204
1249
  #: app/canvas/comments.tsx
1250
+ #: app/canvas/frame-context-menu.tsx
1205
1251
  #: app/pages/play-bar.tsx
1206
1252
  msgid "Copy link"
1207
1253
  msgstr "Copy link"
@@ -1679,6 +1725,7 @@ msgstr "Explore three genuinely different directions for the top how-might-we, e
1679
1725
  msgid "Exploring"
1680
1726
  msgstr "Exploring"
1681
1727
 
1728
+ #: app/canvas/export-dialog.tsx
1682
1729
  #: app/canvas/review-panel.tsx
1683
1730
  msgid "Export"
1684
1731
  msgstr "Export"
@@ -1701,6 +1748,18 @@ msgstr "Export as PDF"
1701
1748
  msgid "Export for {PRODUCT} makes a zip of the review and a snapshot of each page commented on. Import reviews in {PRODUCT}’s Comments panel turns the pages into frames, with each comment pinned where it was left."
1702
1749
  msgstr "Export for {PRODUCT} makes a zip of the review and a snapshot of each page commented on. Import reviews in {PRODUCT}’s Comments panel turns the pages into frames, with each comment pinned where it was left."
1703
1750
 
1751
+ #: app/canvas/export-dialog.tsx
1752
+ msgid "Export frames"
1753
+ msgstr "Export frames"
1754
+
1755
+ #: app/canvas/frame-context-menu.tsx
1756
+ msgid "Export…"
1757
+ msgstr "Export…"
1758
+
1759
+ #: app/canvas/export-dialog.tsx
1760
+ msgid "Exporting…"
1761
+ msgstr "Exporting…"
1762
+
1704
1763
  #: app/canvas/styles-layer.tsx
1705
1764
  msgid "Family"
1706
1765
  msgstr "Family"
@@ -1844,6 +1903,7 @@ msgid "Frame or section"
1844
1903
  msgstr "Frame or section"
1845
1904
 
1846
1905
  #: app/canvas/canvas-menus.tsx
1906
+ #: app/canvas/comments.tsx
1847
1907
  #: app/canvas/frame-context-menu.tsx
1848
1908
  #: app/pages/play-bar.tsx
1849
1909
  #: app/shell/instructions-editor.tsx
@@ -2306,6 +2366,10 @@ msgstr "Leave a comment for your agent"
2306
2366
  msgid "Leave zen mode"
2307
2367
  msgstr "Leave zen mode"
2308
2368
 
2369
+ #: app/canvas/export-dialog.tsx
2370
+ msgid "Let people switch between flows"
2371
+ msgstr "Let people switch between flows"
2372
+
2309
2373
  #: app/shell/about.tsx
2310
2374
  msgid "License"
2311
2375
  msgstr "License"
@@ -2376,6 +2440,11 @@ msgstr "Markup on a shop’s cart: a task under way in its panel, with a reviewe
2376
2440
  msgid "MCP connection"
2377
2441
  msgstr "MCP connection"
2378
2442
 
2443
+ #: app/canvas/comments.tsx
2444
+ #: app/shell/thread-list.tsx
2445
+ msgid "Mentions"
2446
+ msgstr "Mentions"
2447
+
2379
2448
  #: app/git/git-controls.tsx
2380
2449
  msgid "Merge"
2381
2450
  msgstr "Merge"
@@ -2626,6 +2695,10 @@ msgstr "No git"
2626
2695
  msgid "No matching skills"
2627
2696
  msgstr "No matching skills"
2628
2697
 
2698
+ #: app/canvas/comments.tsx
2699
+ msgid "No mentions"
2700
+ msgstr "No mentions"
2701
+
2629
2702
  #: app/shell/quick-start.tsx
2630
2703
  msgid "No new file"
2631
2704
  msgstr "No new file"
@@ -2862,6 +2935,10 @@ msgstr "One button shares everyone’s work."
2862
2935
  msgid "One holds whatever the work; each of the others says when it applies."
2863
2936
  msgstr "One holds whatever the work; each of the others says when it applies."
2864
2937
 
2938
+ #: app/canvas/export-dialog.tsx
2939
+ msgid "One page that steps through the frames, as Play does."
2940
+ msgstr "One page that steps through the frames, as Play does."
2941
+
2865
2942
  #: app/pages/deployment-settings.tsx
2866
2943
  msgid "Only {pages}, and nothing in them changes."
2867
2944
  msgstr "Only {pages}, and nothing in them changes."
@@ -3015,6 +3092,10 @@ msgstr "Other agents"
3015
3092
  msgid "Other files"
3016
3093
  msgstr "Other files"
3017
3094
 
3095
+ #: app/canvas/export-dialog.tsx
3096
+ msgid "Page per frame"
3097
+ msgstr "Page per frame"
3098
+
3018
3099
  #: app/canvas/frame-context-menu.tsx
3019
3100
  msgid "Paste"
3020
3101
  msgstr "Paste"
@@ -3056,6 +3137,10 @@ msgstr "Paused"
3056
3137
  msgid "People"
3057
3138
  msgstr "People"
3058
3139
 
3140
+ #: app/canvas/comments.tsx
3141
+ msgid "People and frames"
3142
+ msgstr "People and frames"
3143
+
3059
3144
  #: app/shell/settings-sections.ts
3060
3145
  msgid "Personal"
3061
3146
  msgstr "Personal"
@@ -3929,6 +4014,10 @@ msgstr "Sort by {current}"
3929
4014
  msgid "Sort: {current}"
3930
4015
  msgstr "Sort: {current}"
3931
4016
 
4017
+ #: app/canvas/export-dialog.tsx
4018
+ msgid "Source pack"
4019
+ msgstr "Source pack"
4020
+
3932
4021
  #: app/canvas/spec-placing.tsx
3933
4022
  #: app/canvas/toolbar.tsx
3934
4023
  msgid "Spec"
@@ -4183,6 +4272,10 @@ msgstr "That's a lot of feedback at once. Try again in a minute."
4183
4272
  msgid "That's longer than we can take."
4184
4273
  msgstr "That's longer than we can take."
4185
4274
 
4275
+ #: app/canvas/export-dialog.tsx
4276
+ msgid "The agent prepares the views first."
4277
+ msgstr "The agent prepares the views first."
4278
+
4186
4279
  #: app/git/branch-panel.tsx
4187
4280
  msgid "The agent pushes <0>{branch}</0>, writes the pull request the way this repository asks, and replies here with its link."
4188
4281
  msgstr "The agent pushes <0>{branch}</0>, writes the pull request the way this repository asks, and replies here with its link."
@@ -4219,6 +4312,10 @@ msgstr "The config"
4219
4312
  msgid "The cover was not changed."
4220
4313
  msgstr "The cover was not changed."
4221
4314
 
4315
+ #: app/canvas/export-dialog.tsx
4316
+ msgid "The export failed."
4317
+ msgstr "The export failed."
4318
+
4222
4319
  #: app/shell/connect-agent.tsx
4223
4320
  msgid "The first time, it asks whether to use the dex MCP server: choose “Use this MCP server”, not the one it picks for you. If it was turned down before, run /mcp in Claude Code and enable dex."
4224
4321
  msgstr "The first time, it asks whether to use the dex MCP server: choose “Use this MCP server”, not the one it picks for you. If it was turned down before, run /mcp in Claude Code and enable dex."
@@ -4227,10 +4324,18 @@ msgstr "The first time, it asks whether to use the dex MCP server: choose “Use
4227
4324
  msgid "The frame could not be added."
4228
4325
  msgstr "The frame could not be added."
4229
4326
 
4327
+ #: app/canvas/linked-element.tsx
4328
+ msgid "The frame that link goes to isn't on this canvas any more."
4329
+ msgstr "The frame that link goes to isn't on this canvas any more."
4330
+
4230
4331
  #: app/pages/workspace-general.tsx
4231
4332
  msgid "The icon is over {MAX_ICON_KB} KB. Choose a smaller one."
4232
4333
  msgstr "The icon is over {MAX_ICON_KB} KB. Choose a smaller one."
4233
4334
 
4335
+ #: app/canvas/frame-context-menu.tsx
4336
+ msgid "The link was not copied. Try again."
4337
+ msgstr "The link was not copied. Try again."
4338
+
4234
4339
  #: app/git/git-toasts.tsx
4235
4340
  msgid "The merge failed"
4236
4341
  msgstr "The merge failed"
@@ -4280,6 +4385,14 @@ msgstr "The remote’s default ({detected})"
4280
4385
  msgid "The request didn’t reach the agent."
4281
4386
  msgstr "The request didn’t reach the agent."
4282
4387
 
4388
+ #: app/canvas/flow-canvas.tsx
4389
+ msgid "The request was not moved. Try again."
4390
+ msgstr "The request was not moved. Try again."
4391
+
4392
+ #: app/canvas/request-node.tsx
4393
+ msgid "The request was not resized. Try again."
4394
+ msgstr "The request was not resized. Try again."
4395
+
4283
4396
  #: app/canvas/imported-reviews.tsx
4284
4397
  msgid "The reviews could not be imported. Try again."
4285
4398
  msgstr "The reviews could not be imported. Try again."
@@ -4345,10 +4458,23 @@ msgstr "The update didn’t finish."
4345
4458
  msgid "The view went to an address outside its file."
4346
4459
  msgstr "The view went to an address outside its file."
4347
4460
 
4461
+ #: app/canvas/export-dialog.tsx
4462
+ msgid "The views' own files beside it, to build on."
4463
+ msgstr "The views' own files beside it, to build on."
4464
+
4465
+ #: app/canvas/export-dialog.tsx
4466
+ msgid "The words and data in content.js, to change without the code."
4467
+ msgstr "The words and data in content.js, to change without the code."
4468
+
4348
4469
  #: app/shell/settings-sections.ts
4349
4470
  msgid "The workspace’s name and icon, and how the team shares work. Kept in dex.config.ts, so everyone sees them."
4350
4471
  msgstr "The workspace’s name and icon, and how the team shares work. Kept in dex.config.ts, so everyone sees them."
4351
4472
 
4473
+ #. placeholder {0}: sections.join(", ")
4474
+ #: app/canvas/export-dialog.tsx
4475
+ msgid "their sections ({0})"
4476
+ msgstr "their sections ({0})"
4477
+
4352
4478
  #: app/shell/main-sidebar.tsx
4353
4479
  msgid "Theme"
4354
4480
  msgstr "Theme"
@@ -4358,8 +4484,13 @@ msgid "There's nothing on the clipboard to paste here."
4358
4484
  msgstr "There's nothing on the clipboard to paste here."
4359
4485
 
4360
4486
  #: app/canvas/removed-views-panel.tsx
4361
- msgid "These files move to .studio/trash/ on this machine, at their paths: copy one back to keep it. The trash empties after 30 days."
4362
- msgstr "These files move to .studio/trash/ on this machine, at their paths: copy one back to keep it. The trash empties after 30 days."
4487
+ msgid "These files move to .local/trash/ in the Dex folder, on this machine, at their paths: copy one back to keep it. The trash empties after 30 days."
4488
+ msgstr "These files move to .local/trash/ in the Dex folder, on this machine, at their paths: copy one back to keep it. The trash empties after 30 days."
4489
+
4490
+ #. placeholder {0}: keys.join(", ")
4491
+ #: app/canvas/export-dialog.tsx
4492
+ msgid "these frames ({0})"
4493
+ msgstr "these frames ({0})"
4363
4494
 
4364
4495
  #: app/pages/prototype.tsx
4365
4496
  msgid "They collect here as the work goes on."
@@ -4648,7 +4779,7 @@ msgstr "Views no frame shows. Put one back, or move yours to the trash."
4648
4779
  msgid "Waiting"
4649
4780
  msgstr "Waiting"
4650
4781
 
4651
- #: app/canvas/section-node.tsx
4782
+ #: app/canvas/request-node.tsx
4652
4783
  msgid "Waiting for an agent"
4653
4784
  msgstr "Waiting for an agent"
4654
4785
 
@@ -4714,6 +4845,14 @@ msgstr "What new branches start with. A new branch for a file called checkout is
4714
4845
  msgid "What people see on the site dex build makes, and dex cloud publish shares. Kept in dex.config.ts."
4715
4846
  msgstr "What people see on the site dex build makes, and dex cloud publish shares. Kept in dex.config.ts."
4716
4847
 
4848
+ #: app/canvas/linked-element.tsx
4849
+ msgid "What that link goes to isn't showing on its frame."
4850
+ msgstr "What that link goes to isn't showing on its frame."
4851
+
4852
+ #: app/canvas/export-dialog.tsx
4853
+ msgid "What to export"
4854
+ msgstr "What to export"
4855
+
4717
4856
  #: app/shell/feedback-form.tsx
4718
4857
  msgid "What would you like, and what would it help you do?"
4719
4858
  msgstr "What would you like, and what would it help you do?"