@agent-native/core-corpus 0.230.0-nightly-20261118063257 → 0.231.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 (60) hide show
  1. package/corpus/README.md +1 -1
  2. package/corpus/templates/analytics/CHANGELOG.md +10 -19
  3. package/corpus/templates/clips/CHANGELOG.md +23 -64
  4. package/corpus/templates/clips/chrome-extension/public/manifest.json +1 -1
  5. package/corpus/templates/content/CHANGELOG.md +35 -30
  6. package/corpus/templates/content/app/components/editor/extensions/CommentHighlight.ts +3 -2
  7. package/corpus/templates/content/app/components/editor/extensions/SuggestionHighlight.ts +4 -3
  8. package/corpus/templates/content/app/components/editor/extensions/replace-step.ts +5 -0
  9. package/corpus/templates/content/changelog/2026-11-17-keep-comment-highlights-in-place-while-collaborators-edit-a-.md +6 -0
  10. package/corpus/templates/design/.agents/skills/visual-edit/SKILL.md +5 -5
  11. package/corpus/templates/design/CHANGELOG.md +43 -30
  12. package/corpus/templates/design/actions/acknowledge-visual-edit-pending.ts +143 -114
  13. package/corpus/templates/design/actions/apply-tweaks.ts +19 -2
  14. package/corpus/templates/design/actions/clear-edits.ts +124 -29
  15. package/corpus/templates/design/actions/create-design-from-template.ts +8 -1
  16. package/corpus/templates/design/actions/get-visual-edit-pending.ts +51 -5
  17. package/corpus/templates/design/actions/publish-visual-edit-pending.ts +28 -3
  18. package/corpus/templates/design/actions/update-design.ts +6 -0
  19. package/corpus/templates/design/app/components/design/FirstRunStart.tsx +19 -5
  20. package/corpus/templates/design/app/i18n/en-US.ts +2 -0
  21. package/corpus/templates/design/app/pages/DesignEditor.tsx +5 -1
  22. package/corpus/templates/design/app/pages/design-editor/commands/persist-tweak-save.ts +12 -1
  23. package/corpus/templates/design/app/pages/design-editor/commands/visual-edit-publication-fence.ts +87 -0
  24. package/corpus/templates/design/app/pages/design-editor/domains/use-editor-export-and-handoff.ts +5 -0
  25. package/corpus/templates/design/app/pages/design-editor/domains/use-editor-files-and-saving.ts +4 -0
  26. package/corpus/templates/design/app/pages/design-editor/domains/use-editor-modes.ts +104 -38
  27. package/corpus/templates/design/app/pages/design-editor/domains/use-editor-source-and-sync.ts +35 -50
  28. package/corpus/templates/design/app/pages/design-editor/domains/use-tweaks.ts +60 -8
  29. package/corpus/templates/design/app/pages/design-editor/pending-edits.ts +21 -12
  30. package/corpus/templates/design/app/pages/design-editor/tweak-save.ts +5 -1
  31. package/corpus/templates/design/app/pages/design-editor/view/editor-canvas-area.tsx +0 -1
  32. package/corpus/templates/design/app/pages/design-editor/view/left-sidebar.tsx +16 -5
  33. package/corpus/templates/design/app/pages/design-editor/view/visual-edit-apply-toolbar.tsx +1 -8
  34. package/corpus/templates/design/changelog/2026-11-17-design-edits-can-be-cleared-without-applying-them-to-app-sou.md +6 -0
  35. package/corpus/templates/design/changelog/2026-11-18-template-suggestions-no-longer-appear-for-designs-that-alrea.md +6 -0
  36. package/corpus/templates/design/server/db/schema.ts +1 -0
  37. package/corpus/templates/design/server/lib/design-data-mutation.ts +65 -1
  38. package/corpus/templates/design/server/lib/design-versions.ts +6 -1
  39. package/corpus/templates/design/server/plugins/agent-chat.ts +3 -2
  40. package/corpus/templates/design/server/plugins/db.ts +5 -0
  41. package/corpus/templates/design/shared/resolve-tweaks.ts +18 -1
  42. package/corpus/templates/mail/CHANGELOG.md +6 -0
  43. package/corpus/templates/plan/CHANGELOG.md +6 -0
  44. package/package.json +1 -1
  45. package/corpus/templates/analytics/.deploy-tmp/agent-native-provided-plugins.mjs +0 -10
  46. package/corpus/templates/assets/.deploy-tmp/agent-native-provided-plugins.mjs +0 -10
  47. package/corpus/templates/brain/.deploy-tmp/agent-native-provided-plugins.mjs +0 -10
  48. package/corpus/templates/calendar/.deploy-tmp/agent-native-provided-plugins.mjs +0 -10
  49. package/corpus/templates/chat/.deploy-tmp/agent-native-provided-plugins.mjs +0 -10
  50. package/corpus/templates/clips/.deploy-tmp/agent-native-provided-plugins.mjs +0 -10
  51. package/corpus/templates/content/.deploy-tmp/agent-native-provided-plugins.mjs +0 -10
  52. package/corpus/templates/crm/.deploy-tmp/agent-native-provided-plugins.mjs +0 -10
  53. package/corpus/templates/design/.deploy-tmp/agent-native-provided-plugins.mjs +0 -10
  54. package/corpus/templates/design/.generated/bridge/native-builtin-metadata.generated.ts +0 -326
  55. package/corpus/templates/design/.generated/bridge/native-worker-source.generated.ts +0 -6
  56. package/corpus/templates/dispatch/.deploy-tmp/agent-native-provided-plugins.mjs +0 -10
  57. package/corpus/templates/forms/.deploy-tmp/agent-native-provided-plugins.mjs +0 -10
  58. package/corpus/templates/mail/.deploy-tmp/agent-native-provided-plugins.mjs +0 -10
  59. package/corpus/templates/plan/.deploy-tmp/agent-native-provided-plugins.mjs +0 -10
  60. package/corpus/templates/slides/.deploy-tmp/agent-native-provided-plugins.mjs +0 -10
package/corpus/README.md CHANGED
@@ -32,4 +32,4 @@ rg -n "defineAction|useActionQuery" node_modules/@agent-native/core-corpus/corpu
32
32
 
33
33
  ## Generated Counts
34
34
 
35
- - template files: 15166
35
+ - template files: 15121
@@ -3,6 +3,12 @@
3
3
  All notable user-facing changes to Agent-Native Analytics are documented here. Open it any
4
4
  time from the command menu (Cmd+K → "What's new") or from Settings.
5
5
 
6
+ ## 2026-11-16
7
+
8
+ ### Added
9
+
10
+ - Connected MCP agents can now edit, archive, and restore dashboards and analyses; each write applies only to the version the agent read, a retried request never writes twice, and every edit can be undone: from history, or by unarchiving, unhiding, or moving it back.
11
+
6
12
  ## 2026-11-14
7
13
 
8
14
  ### Fixed
@@ -42,6 +48,10 @@ time from the command menu (Cmd+K → "What's new") or from Settings.
42
48
 
43
49
  ## 2026-11-07
44
50
 
51
+ ### Added
52
+
53
+ - Sessions triage Lab: have the agent write a report on a session, with its key moments, repro steps and commit, to share with your organization or hand to another agent through a link
54
+
45
55
  ### Fixed
46
56
 
47
57
  - Charts now give a row with no x value its own "No value" label, so later values stay on the right dates and categories.
@@ -1485,23 +1495,4 @@ time from the command menu (Cmd+K → "What's new") or from Settings.
1485
1495
 
1486
1496
  - Session recordings now include response bodies for 5xx errors so agents can see the actual server error
1487
1497
 
1488
- ## 2026-07-02
1489
-
1490
- ### Added
1491
-
1492
- - Alert rules can now be viewed and managed from Settings.
1493
- - Session replays can be copied as temporary private links for agents.
1494
- - Session replays now capture console logs and network requests so agents can debug user-reported issues from a shared link.
1495
- - The session replay viewer has a Dev Tools panel with console and network tabs.
1496
-
1497
- ### Improved
1498
-
1499
- - Recent Ask chats show a loading placeholder while your chat history loads.
1500
- - Sharing status labels use neutral icons instead of colored dots.
1501
-
1502
- ### Fixed
1503
-
1504
- - Agent chat can keep working through longer data queries instead of stopping mid-action.
1505
- - Session replay playback now preserves the initial page snapshot when an upload needs to retry.
1506
-
1507
1498
  For the full list of updates, see the [changelog folder](./changelog/).
@@ -3,10 +3,25 @@
3
3
  All notable user-facing changes to Clips are documented here. Open it any time
4
4
  from the command menu (Cmd+K → "What's new") or from Settings.
5
5
 
6
+ ## 2026-11-16
7
+
8
+ ### Fixed
9
+
10
+ - Agent frame requests on large recordings no longer fail with "Recording range request budget exceeded" while the video is being read.
11
+ - Asking the agent to archive or change your clips older than a date no longer skips the ones you've shared with someone
12
+ - Asking the agent to make several clips public now asks "Make 5 recordings public?" instead of "Approve this tool call?"
13
+
14
+ ## 2026-11-14
15
+
16
+ ### Improved
17
+
18
+ - A Lab you changed can go back to its default with Use default in Settings › Labs, so it follows later rollouts again.
19
+
6
20
  ## 2026-11-13
7
21
 
8
22
  ### Fixed
9
23
 
24
+ - Closing a recording during its countdown no longer leaves a clip stuck as uploading in your library.
10
25
  - Fixed a navigation error when leaving an active recording.
11
26
  - Recording recovery reminders now follow the selected interface language.
12
27
 
@@ -43,6 +58,14 @@ from the command menu (Cmd+K → "What's new") or from Settings.
43
58
 
44
59
  ## 2026-11-07
45
60
 
61
+ ### Added
62
+
63
+ - Agents connected to Clips over MCP can list your recordings and archive, trash, restore or tag them, and can add them to a space or delete them for good once you approve
64
+
65
+ ### Improved
66
+
67
+ - Asking the agent to make several clips public now asks once with the count, and shows its result card once
68
+
46
69
  ### Fixed
47
70
 
48
71
  - Inspect frames from large recordings stored in S3-compatible storage.
@@ -1381,68 +1404,4 @@ from the command menu (Cmd+K → "What's new") or from Settings.
1381
1404
 
1382
1405
  - Rewind-backed recordings now start immediately after the countdown and upload progressively while you record.
1383
1406
 
1384
- ## 2026-07-18
1385
-
1386
- ### Improved
1387
-
1388
- - New recording is now emphasized as the primary action in the library sidebar.
1389
- - Rewind now divides retained screen memory into local work chapters that any connected agent can search. Agents can inspect an exact local frame or a small contact sheet before asking to turn a bounded range into a private Clip. Raw Rewind media and archive paths remain on the Mac.
1390
-
1391
- The copied Rewind prompt can repair the local connection, handles ambiguous chapters explicitly, and only escalates to a Clip when audio, motion, deeper processing, or durable queryability requires it. Rewind Settings also make agent activity and local-export receipts easier to find.
1392
-
1393
- - Rewind now organizes recent activity into searchable work chapters with stronger local context, representative moments, and truthful coverage gaps.
1394
-
1395
- ### Fixed
1396
-
1397
- - Recordings now remain safely recoverable until the stored media size is verified.
1398
-
1399
- ## 2026-07-17
1400
-
1401
- ### Added
1402
-
1403
- - Capture dictation, background meeting audio, and camera videos from the Agent-Native iOS and Android app with automatic recovery and resumable Clips sync.
1404
- - Choose which workspace receives new Clips recordings and desktop uploads
1405
- - Create folders directly from the move menu
1406
-
1407
- ### Improved
1408
-
1409
- - Failed desktop uploads now offer a direct way to reopen Clips and retry without re-recording.
1410
- - Playback comments stay readable at faster playback speeds
1411
- - Rewind's Home status is now one calm line instead of repeating retention settings. Its typography matches the recorder controls, and a new copy button provides a ready-to-paste prompt that helps a local agent recover the newest relevant Rewind context without uploading raw media. Pausing and resuming also restore Recorder Home to its complete natural height, so the Clip controls and fixed footer never overlap after the shorter paused state.
1412
- - Rewind now has a calm home status, focused first-run consent, local Memory search, and dedicated privacy settings.
1413
- - Rewind now fits the Clips popover instead of taking it over. Home shows one compact status row with Pause and an on/off switch; configuration lives in Settings. Privacy language is plain, disk limits are visible, excluded apps use a native application picker instead of bundle IDs, and agent retrieval is the primary story while manual search remains a quiet local fallback.
1414
- - The full Clips interface now stays available while a recording is active. Its compact header uses a clear live REC signal and an explicit Stop button without explaining the interface back to the user. Reopening the interface respects **Show Clips in screen captures**: it remains usable but capture-excluded by default, and appears in recordings only when the user turns that setting on.
1415
-
1416
- ### Fixed
1417
-
1418
- - Active Clips now keep Rewind's shared screen and audio capture stable until the Clip ends. Rewind's on/off, pause, and capture-mode controls visibly lock during recording, with a native safeguard for non-UI callers, so changing Rewind can no longer strand a Clip in optimization with a coverage gap.
1419
-
1420
- Rewind Settings also use application exclusions as the single privacy model, return Back through the surface that opened them, describe local-memory maintenance before asking someone to act, and speak plainly about local agents finding moments on request.
1421
-
1422
- The recording toolbar's timer now opens Clips without stopping the active recording, and Dock, tray, and shortcut opens all restore the active popover. Rewind-derived hosted Clips now create the resumable storage session they need before recording, and exact-range encoding uses an interactive-speed preset so Stop no longer appears frozen for roughly the Clip's full duration. The compact Rewind settings rows also reserve separate label and control columns to prevent overlap.
1423
-
1424
- Recorder Home now keeps its bottom navigation fixed while the content region adapts to the available popover height. After Rewind's first-time setup, its single Home switch means remembering or paused; the duplicate Pause button and active-recording lock paragraph are gone. Full disable and capture-mode setup remain in Rewind Settings, while the active-Clip switch uses an unmistakable disabled treatment until recording ends.
1425
-
1426
- - Clicking the Clips icon during a recording now opens the app without stopping capture.
1427
- - Clips now retries storage verification in the background instead of failing completed uploads prematurely.
1428
- - Clips now uses the Mac's real default microphone and shares one physical mic/system capture with live transcription, preventing spoken recordings from becoming silent.
1429
- - Delayed upload verification now keeps local backups retryable and avoids showing a false processing failure.
1430
- - Dictation keeps sentence spacing and no longer crashes when submitted mid-capture
1431
- - Fixed broken thumbnail icons appearing over playable clip embeds
1432
- - Full-screen Clips now finish saving when macOS stops capture but fails to return from ScreenCaptureKit's synchronous stop callback.
1433
- - Normal full-screen Clips no longer stop immediately after the countdown.
1434
- - Shared Clips now preserve Editor access and show editor insights
1435
- - Stitching clips no longer fails when editor media metadata is loaded
1436
- - The agent chat sidebar stays closed until you open it or start a chat handoff.
1437
-
1438
- ### Changed
1439
-
1440
- - Rewind now connects directly to Codex or Claude Code through a dedicated local Screen Memory connection. When you ask an agent about something recent, bounded matching text can be returned without exposing local archive paths.
1441
-
1442
- If the agent needs to see or hear the moment, it can request one timestamp range of up to five minutes. Clips shows **Review before sending** by default, including the exact interval, local preview, microphone and Mac-audio choices, and a clear statement that only the selected range becomes a private Clip. You can turn review off in Rewind Settings when the agent request itself is enough approval; Clips still leaves a visible handoff receipt.
1443
-
1444
- Agent-created Clips are kept in the Library by default. An optional retention setting can remove future agent-created Clips after 24 hours, 7 days, or 30 days. Renaming, sharing, commenting on, reacting to, tagging, or archiving one preserves it.
1445
-
1446
- Raw Rewind recordings and the complete local index remain on the Mac. The old Private versus Cloud-assisted mode gate has been removed; the boundary is now the bounded request and, for media, the private Clip handoff.
1447
-
1448
1407
  For the full list of updates, see the [changelog folder](./changelog/).
@@ -2,7 +2,7 @@
2
2
  "manifest_version": 3,
3
3
  "name": "Agent-Native Clips",
4
4
  "short_name": "Clips",
5
- "version": "0.1.23",
5
+ "version": "0.1.24",
6
6
  "description": "Start Clips recordings from Chrome, capture optional diagnostics, and preview Clips links on GitHub and Jira.",
7
7
  "minimum_chrome_version": "116",
8
8
  "action": {
@@ -3,6 +3,29 @@
3
3
  All notable user-facing changes to Agent-Native Content are documented here. Open it any
4
4
  time from the command menu (Cmd+K → "What's new").
5
5
 
6
+ ## 2026-11-17
7
+
8
+ ### Fixed
9
+
10
+ - Keep comment highlights and suggestion previews in place while editing a page
11
+
12
+ ## 2026-11-16
13
+
14
+ ### Improved
15
+
16
+ - Every block's menu now has Insert block above and Ask agent, which opens the agent with the block attached and sends nothing until you write. Columns, synced blocks, components and Notion embeds now say what they are in the menu's title, and on a phone the menu opens as a sheet from the bottom of the screen with rows big enough to tap, where Turn into and Color open in place with a Back button.
17
+ - Agents connected to Content can list your most recently edited pages first, so asking what you worked on last takes one call instead of reading your whole library.
18
+ - Agents now read a page with far less data: its text comes back once, and fields leave out the editor's display details.
19
+ - Link previews for public pages and databases (in Slack, for example) now show the description from the page's Info panel, or else its first paragraph, and name Agent-Native Content as the site. A public database with no description is called a database rather than "a public document". A link to a page that isn't public still gets the plain Content card, which shows none of the page's own title or description, unless the link itself carries access, as an agent's access link does.
20
+
21
+ ### Fixed
22
+
23
+ - A collection read no longer reports every row's page as empty: agents get no page text unless they ask for it, and then get each page's text, up to 25 rows at a time.
24
+ - A GitHub folder synced into a Personal space now keeps its images, stored privately in the workspace it was linked from, instead of leaving them out and saying file storage isn't set up
25
+ - Rows an agent adds or edits in a table, and the properties and views it changes, now show within seconds for everyone who has that table open, instead of at the next idle check a minute or more later, or not until a collaborator reloads.
26
+ - Disconnecting a collection from Builder while it's still syncing no longer leaves rows saying their content is still syncing from Builder.
27
+ - Importing names an image that couldn't be uploaded, instead of showing only the reason
28
+
6
29
  ## 2026-11-14
7
30
 
8
31
  ### Improved
@@ -11,6 +34,7 @@ time from the command menu (Cmd+K → "What's new").
11
34
 
12
35
  ### Fixed
13
36
 
37
+ - When Content can't check whether Clips in pages are turned on, a Clip now says so and offers Try again, instead of saying Clips are turned off.
14
38
  - A comment whose text was deleted no longer jumps to the same words somewhere else on the page. It shows Highlight unavailable with its quote, unless the text around those words matches what was around the comment's own, as when the paragraph was moved.
15
39
  - Personal database view updates now refresh for the account that owns them.
16
40
 
@@ -41,6 +65,10 @@ time from the command menu (Cmd+K → "What's new").
41
65
 
42
66
  ## 2026-11-09
43
67
 
68
+ ### Added
69
+
70
+ - People can set agents to Can view on a page, so agents can read it but not comment, suggest or edit, and agents at Can comment can no longer change the page's icon.
71
+
44
72
  ### Improved
45
73
 
46
74
  - Share controls use a consistent compact layout.
@@ -62,6 +90,7 @@ time from the command menu (Cmd+K → "What's new").
62
90
 
63
91
  ### Fixed
64
92
 
93
+ - Agent and script edits to a collection page no longer overwrite newer text saved in the meantime.
65
94
  - The agent links every page it creates in its reply.
66
95
  - An open collection row page now updates when that row is edited elsewhere, such as by an agent or in another tab, and a retried row edit returns the first result instead of a conflict error
67
96
  - Pages created over MCP now appear in the Files sidebar without a reload.
@@ -73,6 +102,7 @@ time from the command menu (Cmd+K → "What's new").
73
102
 
74
103
  ### Added
75
104
 
105
+ - Paste a panel's link from an Analytics dashboard into a page to keep its chart there, with a link back to the dashboard and a Refresh button for editors.
76
106
  - Collection row menus now offer Copy link and Comment, view menus offer Copy link to view, and the row ⋯ and add-view + show on touch screens.
77
107
  - Pick "This page" in the search menu to search the open page and everything inside it: its sub-pages, its collections, and their rows.
78
108
 
@@ -100,6 +130,10 @@ time from the command menu (Cmd+K → "What's new").
100
130
 
101
131
  - Suggesting mode now shows edits other people make to the page, and the next suggestion saves instead of failing with "Could not create suggestion".
102
132
 
133
+ ### Changed
134
+
135
+ - Making a page public makes its sub-pages public too, and the share menu says how many; making it private again takes them with it. Public pages are hidden from search engines
136
+
103
137
  ## 2026-11-05
104
138
 
105
139
  ### Improved
@@ -140,6 +174,7 @@ time from the command menu (Cmd+K → "What's new").
140
174
 
141
175
  ### Improved
142
176
 
177
+ - Toggle titles are now page text, so you can comment on them, format them and link from them, and Toggles follow Notion's keys, markers and Turn into menu.
143
178
  - A row opened from a view lists its properties in that view's order, with the ones the view hides under a Hidden in this view line, in the row panel and on full pages.
144
179
 
145
180
  ### Fixed
@@ -1281,34 +1316,4 @@ time from the command menu (Cmd+K → "What's new").
1281
1316
  - Builder source sync now completes reliably on hosted databases with hundreds of entries.
1282
1317
  - Fixed Builder database sync so large sources continue past the first batch without leaving the table stuck mid-refresh.
1283
1318
 
1284
- ## 2026-07-07
1285
-
1286
- ### Fixed
1287
-
1288
- - Builder-backed database fields now edit like normal Content fields while still creating reviewable Builder diffs.
1289
- - Builder source tag fields now import as multi-select properties with their available choices.
1290
- - Permanently deleting trashed databases now finishes reliably instead of timing out.
1291
-
1292
- ## 2026-07-06
1293
-
1294
- ### Improved
1295
-
1296
- - Local files now remember sidebar collapse state and include folder management controls.
1297
-
1298
- ### Fixed
1299
-
1300
- - Builder sync progress no longer shows a Continue button while loading is already continuing automatically.
1301
- - Document headers and page bodies now share one consistent background shade.
1302
- - Export options stay visible outside the page actions menu instead of being clipped.
1303
- - Fixed collaborative documents reapplying content before saved edits finish loading.
1304
- - Notion comment sync now preserves threads — replies stay attached to their conversation in both directions
1305
- - Notion sync is far more reliable: auto-sync no longer overwrites concurrent edits on either side, and imported and exported pages preserve formatting exactly
1306
- - Opening pages now highlights the sidebar item and shows the editor loading state immediately.
1307
- - Presence markers in the editor are now compact instead of covering content with color blocks.
1308
- - Sidebar collapse now keeps the same background shade as the expanded sidebar.
1309
-
1310
- ### Removed
1311
-
1312
- - The content header no longer shows the global notifications bell.
1313
-
1314
1319
  For the full list of updates, see the [changelog folder](./changelog/).
@@ -2,7 +2,7 @@ import { isCommentAnchorBlockType } from "@shared/comment-block-anchor";
2
2
  import { Extension } from "@tiptap/core";
3
3
  import type { Node as ProseMirrorNode } from "@tiptap/pm/model";
4
4
  import { Plugin, PluginKey, type Transaction } from "@tiptap/pm/state";
5
- import { ReplaceStep, StepMap } from "@tiptap/pm/transform";
5
+ import { StepMap } from "@tiptap/pm/transform";
6
6
  import { Decoration, DecorationSet, type EditorView } from "@tiptap/pm/view";
7
7
  import DiffMatchPatch, {
8
8
  DIFF_DELETE,
@@ -15,6 +15,7 @@ import {
15
15
  commentAnchorBlockById,
16
16
  sharedCommentAnchorBlockIds,
17
17
  } from "../comment-block-anchors";
18
+ import { isReplaceStep } from "./replace-step";
18
19
 
19
20
  export interface CommentHighlightSpec {
20
21
  threadId: string;
@@ -104,7 +105,7 @@ function swapMapping(
104
105
  if (left === right) return StepMap.empty;
105
106
  const swapsDocument = tr.steps.some(
106
107
  (step, index) =>
107
- step instanceof ReplaceStep &&
108
+ isReplaceStep(step) &&
108
109
  step.from === 0 &&
109
110
  step.to === tr.docs[index].content.size,
110
111
  );
@@ -22,7 +22,7 @@ import {
22
22
  type Selection,
23
23
  type Transaction,
24
24
  } from "@tiptap/pm/state";
25
- import { ReplaceStep } from "@tiptap/pm/transform";
25
+ import type { ReplaceStep } from "@tiptap/pm/transform";
26
26
  import { Decoration, DecorationSet, type EditorView } from "@tiptap/pm/view";
27
27
 
28
28
  import { buildDocText } from "../comment-anchors";
@@ -31,6 +31,7 @@ import {
31
31
  commentHighlightKey,
32
32
  type CommentHighlightState,
33
33
  } from "./CommentHighlight";
34
+ import { isReplaceStep } from "./replace-step";
34
35
 
35
36
  export type SuggestionHighlightKind =
36
37
  | "delete"
@@ -1109,10 +1110,10 @@ function typedDraftSpecs(
1109
1110
  ): SuggestionHighlightSpec[] {
1110
1111
  const step = tr.steps.length === 1 ? tr.steps[0] : null;
1111
1112
  const removed =
1112
- step instanceof ReplaceStep ? typedRemoval(tr.before, step) : null;
1113
+ step && isReplaceStep(step) ? typedRemoval(tr.before, step) : null;
1113
1114
  let next = specs;
1114
1115
  let typed: SuggestionHighlightSpec | null = null;
1115
- if (step instanceof ReplaceStep && removed !== null) {
1116
+ if (step && isReplaceStep(step) && removed !== null) {
1116
1117
  const drafts = specs.filter((spec) => spec.draft && !spec.settling);
1117
1118
  const inside = drafts.some(
1118
1119
  (spec) => spec.from <= step.from && step.to <= spec.to,
@@ -0,0 +1,5 @@
1
+ import type { ReplaceStep, Step } from "@tiptap/pm/transform";
2
+
3
+ export function isReplaceStep(step: Step): step is ReplaceStep {
4
+ return step.toJSON().stepType === "replace";
5
+ }
@@ -0,0 +1,6 @@
1
+ ---
2
+ type: fixed
3
+ date: 2026-11-17
4
+ ---
5
+
6
+ Keep comment highlights and suggestion previews in place while editing a page
@@ -593,9 +593,8 @@ the connected app's text/code files through the bridge
593
593
 
594
594
  ## Verification
595
595
 
596
- For a plain "open this app" request, `open-visual-edit`'s own response is
597
- the verification — see Open The Design Surface. Reach for the checks below
598
- only to diagnose an actual report, or to confirm an applied edit landed:
596
+ For plain "open this app" requests, `open-visual-edit`'s response verifies
597
+ the canvas. Use these checks to diagnose reports or confirm writes:
599
598
 
600
599
  - `list-localhost-connections` returns the expected connection and routes.
601
600
  - The Design editor opens in overview mode.
@@ -606,6 +605,7 @@ only to diagnose an actual report, or to confirm an applied edit landed:
606
605
  reporting the canvas as working.
607
606
  - Alt-dragging a screen copies the URL-backed frame, not an inline HTML clone.
608
607
  - A query/path edit changes only the target screen's URL metadata and iframe.
609
- - `get-visual-edit-pending` is the tab-free handoff; acknowledge its revision
610
- after applying. `get-visual-edit-prompt` is the browser equivalent.
608
+ - Discard with `clear-edits`, passing revision, publisherId, and
609
+ tweakSelectionsRevision from `get-visual-edit-pending`. It resets tweaks
610
+ only if the selection revision is current; it does not apply source.
611
611
  - The Code tab shows a local-files root for the connection and opens its files.
@@ -3,10 +3,48 @@
3
3
  All notable user-facing changes to Design are documented here. Open it any time
4
4
  from the command menu (Cmd+K → "What's new") or from Settings.
5
5
 
6
+ ## 2026-11-18
7
+
8
+ ### Fixed
9
+
10
+ - Template suggestions no longer appear for designs that already contain files
11
+
12
+ ## 2026-11-17
13
+
14
+ ### Improved
15
+
16
+ - Clear pending design edits without applying them to source
17
+ - Design edits can be cleared without applying them to app source
18
+ - Tweaks now live only in the inspector, and knobs you drag inside a screen in Interact stay local to that screen and are never saved.
19
+
20
+ ### Fixed
21
+
22
+ - Ambiguous localhost connections now explain how to select the intended bridge.
23
+ - Authored entrance animations play in Design mode as well as Interact mode
24
+ - Double-clicking a board container selects the child under the pointer consistently
25
+
6
26
  ## 2026-11-16
7
27
 
28
+ ### Added
29
+
30
+ - Build a remix board in Design without signing in; sign in only to share it, and the board moves into your account.
31
+ - Dragging a dial or slider inside an Interact frame now saves that knob, so other frames follow and Apply includes the change
32
+ - Floating tweaks stay available over the canvas while you work in Design
33
+ - Paste frames and elements copied from other design apps into a design.
34
+
35
+ ### Improved
36
+
37
+ - One tweak knob can now drive several screens, and Interact keeps the current tweak values instead of resetting them to defaults.
38
+ - Review comments can mention the default agent or choose a specific model.
39
+
8
40
  ### Fixed
9
41
 
42
+ - Applying canvas changes now keeps sent tweaks pending until source verification is acknowledged.
43
+ - Applying pending tweaks preserves the remaining undo history and uses the current design when acknowledging source updates.
44
+ - Fixed Apply handoffs for live edits, tweak tokens, and Interact previews
45
+ - Fixed the floating Tweaks panel covering inspector controls by default.
46
+ - Pending visual edits stay queued until the host starts applying them
47
+ - Review comments that mention the agent now reach the host chat from both new comments and replies.
10
48
  - Shared live previews now show the snapshot when a tunnel is unavailable.
11
49
 
12
50
  ### Changed
@@ -32,8 +70,13 @@ from the command menu (Cmd+K → "What's new") or from Settings.
32
70
 
33
71
  ### Improved
34
72
 
73
+ - A Lab you changed can go back to its default with Use default in Settings › Labs, so it follows later rollouts again.
35
74
  - Invalid screen placement requests are rejected before incomplete designs are saved.
36
75
 
76
+ ### Fixed
77
+
78
+ - Labs that Builder decides for you now show as set and can't be switched, instead of offering a choice that wasn't applied.
79
+
37
80
  ## 2026-11-13
38
81
 
39
82
  ### Fixed
@@ -2025,34 +2068,4 @@ from the command menu (Cmd+K → "What's new") or from Settings.
2025
2068
 
2026
2069
  - Paste Figma frames directly onto the canvas — no token needed; connect Figma anytime to fill in images.
2027
2070
 
2028
- ## 2026-07-17
2029
-
2030
- ### Added
2031
-
2032
- - Resources can be added to Creative Context from their action menus.
2033
- - You can add exact, approved artifact versions to governed Creative Contexts for safe reuse.
2034
-
2035
- ### Improved
2036
-
2037
- - Library now flags published designs with newer versions and lets you submit the update in place.
2038
-
2039
- ### Fixed
2040
-
2041
- - Drawn shapes now land exactly where and how big you dragged them — they no longer snap to center, get trapped inside a container, or stretch into a tall ribbon.
2042
- - Shapes now show a live outline while you drag to draw them, even when drawing over an existing screen.
2043
-
2044
- ## 2026-07-16
2045
-
2046
- ### Added
2047
-
2048
- - The Agent workspace now includes a Library for reusing verified creative context, including version-pinned Figma designs cloned as editable HTML/CSS without regeneration.
2049
-
2050
- ### Improved
2051
-
2052
- - Design editing and review are now more predictable, with selection-based regeneration, clearer candidate approval, accurate layer comments, smarter agent prompts, and cleaner template behavior.
2053
-
2054
- ### Fixed
2055
-
2056
- - Design agent chat now stays inline with the editor rail without a separate Chat or Workspace header.
2057
-
2058
2071
  For the full list of updates, see the [changelog folder](./changelog/).