@commentkit/comment-kit 1.6.0 → 2.0.1

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 (137) hide show
  1. package/CHANGELOG.md +298 -590
  2. package/README.md +421 -145
  3. package/SECURITY.md +47 -46
  4. package/dist/node/THIRD_PARTY_NOTICES.txt +56 -0
  5. package/dist/node/browser.js +17 -0
  6. package/dist/node/cli/api.js +226 -0
  7. package/dist/node/cli/bin.js +18 -0
  8. package/dist/node/cli/credentials.js +268 -0
  9. package/dist/node/cli/doctor.js +789 -0
  10. package/dist/node/cli/format.js +54 -0
  11. package/dist/node/cli/init.js +686 -0
  12. package/dist/node/cli/main.js +537 -0
  13. package/dist/node/cli/mcp.js +295 -0
  14. package/dist/node/cli/open.js +20 -0
  15. package/dist/node/plugins/astro-B5y1Gtbf.js +31 -0
  16. package/dist/node/plugins/astro.js +26 -0
  17. package/dist/node/plugins/git-BIXLbL3f.js +92 -0
  18. package/dist/node/plugins/jsx-Bg4BdSph.js +7958 -0
  19. package/dist/node/plugins/next.js +48 -0
  20. package/dist/node/plugins/options-THop1K92.js +71 -0
  21. package/dist/node/plugins/transform-CKiAuSbk.js +1155 -0
  22. package/dist/node/plugins/vite-BdAYUW10.js +74 -0
  23. package/dist/node/plugins/vite.js +1 -0
  24. package/dist/node/plugins/webpack-R2U2DLlY.js +35 -0
  25. package/dist/node/plugins/webpack-loader.cjs +21 -0
  26. package/dist/node/plugins/webpack-loader.js +18 -0
  27. package/dist/node/plugins/webpack.js +1 -0
  28. package/dist/node/shared/dashboard-places.js +33 -0
  29. package/dist/node/shared/endpoint.js +26 -0
  30. package/dist/node/shared/format.js +63 -0
  31. package/dist/node/types/astro.d.ts +11 -0
  32. package/dist/node/types/next.d.ts +34 -0
  33. package/dist/node/types/options.d.ts +59 -0
  34. package/dist/node/types/vite.d.ts +11 -0
  35. package/dist/node/types/webpack-loader.d.ts +22 -0
  36. package/dist/node/types/webpack.d.ts +27 -0
  37. package/dist/npm/THIRD_PARTY_NOTICES.txt +6 -6
  38. package/dist/npm/chunks/AgentSend-DOy3jhyF.js +68 -0
  39. package/dist/npm/chunks/Checklist-CW_SwMpS.js +282 -0
  40. package/dist/npm/chunks/Composer-Bveq5QrK.js +727 -0
  41. package/dist/npm/chunks/Guest-7hcN765o.js +270 -0
  42. package/dist/npm/chunks/MarkupEditor-6bJGpWGO.js +345 -0
  43. package/dist/npm/chunks/Panel-ChPUB68C.js +1211 -0
  44. package/dist/npm/chunks/Settings-CB5eEKnf.js +231 -0
  45. package/dist/npm/chunks/Shortcuts-eAyjJ89P.js +62 -0
  46. package/dist/npm/chunks/StyleEditor-CZTdAA5c.js +46 -0
  47. package/dist/npm/chunks/StylePanel-B4pHQUL9.js +199 -0
  48. package/dist/npm/chunks/TaskFields-C8BX0Sgg.js +289 -0
  49. package/dist/npm/chunks/ThreadCard-B1EsX3PR.js +1160 -0
  50. package/dist/npm/chunks/Viewer-DY6zb90M.js +114 -0
  51. package/dist/npm/chunks/{agent-BDMQtOzH.js → agent-MTQHr9ei.js} +9 -9
  52. package/dist/npm/chunks/{anchor-BsradQhn.js → anchor-BsQNVkHj.js} +108 -85
  53. package/dist/npm/chunks/{ar-8tPch6W4.js → ar-L5cQ-NPe.js} +71 -19
  54. package/dist/npm/chunks/card-bits-CTdrkYn8.js +53 -0
  55. package/dist/npm/chunks/{client-EFTWxHbJ.js → client-7eVxvg5j.js} +282 -290
  56. package/dist/npm/chunks/confetti-BIs5s14P.js +49 -0
  57. package/dist/npm/chunks/context-BuMl7A07.js +48 -0
  58. package/dist/npm/chunks/context-Cf6khm7A.js +20 -0
  59. package/dist/npm/chunks/{de-C63897uD.js → de-D0C-v6tP.js} +62 -18
  60. package/dist/npm/chunks/dialog-DvdIkCW0.js +3 -0
  61. package/dist/npm/chunks/dpop-0A76OPa9.js +96 -0
  62. package/dist/npm/chunks/drafts-B0ctr1g9.js +21 -0
  63. package/dist/npm/chunks/{es-CI2bSpvB.js → es-Bw4Dj9tN.js} +62 -18
  64. package/dist/npm/chunks/extension-DFVOvciD.js +62 -0
  65. package/dist/npm/chunks/{extension-BST6LH1q.js → extension-SmoH5AA4.js} +20 -12
  66. package/dist/npm/chunks/files-4lV9YQIX.js +114 -0
  67. package/dist/npm/chunks/{fr-rsVe-Lqk.js → fr-TkuQaIAa.js} +120 -76
  68. package/dist/npm/chunks/{hi-cvwbSaWP.js → hi-DXSH2U8d.js} +63 -19
  69. package/dist/npm/chunks/{i18n-C4v0M-6z.js → i18n-aVSu9TcJ.js} +136 -92
  70. package/dist/npm/chunks/identify-BGYh2dVo.js +106 -0
  71. package/dist/npm/chunks/{it-C8tnV0BF.js → it-CiWA_bch.js} +81 -37
  72. package/dist/npm/chunks/{ja-BWxDfC2f.js → ja-C-QmR3yz.js} +60 -16
  73. package/dist/npm/chunks/late-words-80_VWt8S.js +14 -0
  74. package/dist/npm/chunks/live-BExWHzQ7.js +85 -0
  75. package/dist/npm/chunks/locale-D8Q4Q2Nt.js +26 -0
  76. package/dist/npm/chunks/{nl-DNQ6eCht.js → nl-CEmZRqjX.js} +63 -19
  77. package/dist/npm/chunks/page-key-HSY3Lze5.js +62 -0
  78. package/dist/npm/chunks/{pick-CLyOdjnD.js → pick-B3sR7jtS.js} +45 -44
  79. package/dist/npm/chunks/pkce-CfZhiNBi.js +8 -0
  80. package/dist/npm/chunks/placement-BF_HOUDD.js +74 -0
  81. package/dist/npm/chunks/privacy-BWUGlHw5.js +57 -0
  82. package/dist/npm/chunks/{pt-BR-CkG7vpU2.js → pt-BR-b-a8sxO8.js} +62 -18
  83. package/dist/npm/chunks/{realtime-DIo-Wth4.js → realtime-C79zF50C.js} +14 -12
  84. package/dist/npm/chunks/report-DaVuoRYS.js +44 -0
  85. package/dist/npm/chunks/show-BoN8AC-F.js +97 -0
  86. package/dist/npm/chunks/signin-BOWr_WCo.js +75 -0
  87. package/dist/npm/chunks/{source-CS7C6wJA.js → source-mk3rGBBQ.js} +1 -1
  88. package/dist/npm/chunks/src-C8rZFyL_.js +215 -0
  89. package/dist/npm/chunks/start-CV4j78_q.js +1894 -0
  90. package/dist/npm/chunks/states-b9Bv3Ci7.js +3 -0
  91. package/dist/npm/chunks/upload-B2mkgMeJ.js +42 -0
  92. package/dist/npm/chunks/uploads-8AxyRq7g.js +1147 -0
  93. package/dist/npm/chunks/wrap-DW6EFbVQ.js +69 -0
  94. package/dist/npm/chunks/{zh-CN-BKuZOLBE.js → zh-CN-JTscW8u8.js} +61 -17
  95. package/dist/npm/element.js +58 -21
  96. package/dist/npm/headless.js +7 -3
  97. package/dist/npm/index.js +3 -3
  98. package/dist/npm/react.js +18 -11
  99. package/dist/npm/svelte.js +28 -12
  100. package/dist/npm/types/adapters/react.d.ts +4 -1
  101. package/dist/npm/types/adapters/svelte.d.ts +4 -1
  102. package/dist/npm/types/adapters/vue.d.ts +35 -2
  103. package/dist/npm/types/anchor/index.d.ts +19 -0
  104. package/dist/npm/types/capture/privacy.d.ts +14 -0
  105. package/dist/npm/types/core/api.d.ts +20 -1
  106. package/dist/npm/types/core/auth.d.ts +40 -21
  107. package/dist/npm/types/core/client.d.ts +60 -4
  108. package/dist/npm/types/core/page-key.d.ts +42 -0
  109. package/dist/npm/types/core/types.d.ts +87 -4
  110. package/dist/npm/types/element.d.ts +17 -7
  111. package/dist/npm/types/headless.d.ts +2 -1
  112. package/dist/npm/types/index.d.ts +16 -6
  113. package/dist/npm/vue.js +44 -9
  114. package/package.json +90 -14
  115. package/dist/npm/chunks/AgentSend-2JPDseOo.js +0 -63
  116. package/dist/npm/chunks/Checklist-BpDXQebo.js +0 -257
  117. package/dist/npm/chunks/Composer-CAyj-c8e.js +0 -677
  118. package/dist/npm/chunks/Guest-ZdFmTcXI.js +0 -187
  119. package/dist/npm/chunks/MarkupEditor-BFplZwFy.js +0 -332
  120. package/dist/npm/chunks/Panel-BhZ4XRDR.js +0 -861
  121. package/dist/npm/chunks/Settings-SPG9EHUZ.js +0 -204
  122. package/dist/npm/chunks/Shortcuts-C28HVDw6.js +0 -58
  123. package/dist/npm/chunks/StyleEditor-ByZMtq10.js +0 -43
  124. package/dist/npm/chunks/StylePanel-Iwhce2tE.js +0 -197
  125. package/dist/npm/chunks/TaskFields-BsP_fVJg.js +0 -273
  126. package/dist/npm/chunks/ThreadCard-BzVZdDCb.js +0 -1030
  127. package/dist/npm/chunks/Viewer-CqtGrdD8.js +0 -108
  128. package/dist/npm/chunks/card-bits-Bna-g3Py.js +0 -124
  129. package/dist/npm/chunks/confetti-DTKpwF3O.js +0 -40
  130. package/dist/npm/chunks/drafts-akdBsOd0.js +0 -50
  131. package/dist/npm/chunks/extension-D-V3utTm.js +0 -53
  132. package/dist/npm/chunks/live-BCpJVBeN.js +0 -33
  133. package/dist/npm/chunks/report-BBrT3r89.js +0 -27
  134. package/dist/npm/chunks/src-C4FsVoUp.js +0 -148
  135. package/dist/npm/chunks/start-i9M-r3aH.js +0 -1800
  136. package/dist/npm/chunks/upload-DSv7EyBD.js +0 -41
  137. package/dist/npm/chunks/uploads-I01kdqQF.js +0 -1103
package/CHANGELOG.md CHANGED
@@ -1,730 +1,438 @@
1
- # Changelog
1
+ # @commentkit/comment-kit
2
2
 
3
- ## 1.6.0 (2026-11-10)
3
+ ## [2.0.1] - 2026-11-20
4
4
 
5
- For the new notification system. Pair it with the backend that declares `timezone` and `locale` on `POST /api/v1/guest/verify`; the widget still works with an older server, which ignores both.
6
-
7
- - **Email links that sign reviewers in:** a client email's link can carry `?ck_signin=`. The widget takes it off the address at once (no reload), keeps it only in memory (never stored or logged), and shows a short "Welcome back" note; one click opens the guest sign-in window with the email address filled in, and the code goes to that address. A forwarded email still needs that code. Works in popup and redirect sign-in. The link alone also shows the widget on a live site.
8
- - **Emails at the right hour, in the right language:** when a guest confirms their code, the widget sends their time zone (from the browser) and the language the widget shows, so summaries arrive at 09:00 their time.
9
- - **The code step names the email to look for:** "Look for an email from CommentKit: “Your code for {website}”", the new subject of the code email. In all 11 languages (the quoted subject stays in English, as the email is).
10
- - **Voice control finds the Assign button:** in the comment box its spoken name now starts with what it shows ("Assign (Unassigned)"), as WCAG 2.5.3 asks.
11
- - Dependencies updated: Preact 11.1, html2canvas-pro 2.6, MCP SDK 2.4 and the build tools.
12
- - **Formatting shows as you write:** in the comment and reply box, Bold, Italic, Strikethrough and Code (toolbar or Cmd/Ctrl+B, I, Shift+X, E) now show the text formatted, like Slack or Linear, instead of adding `**`, `_` and `~~` around it. At a caret, the next letters you type get the format (press again to stop); the toolbar shows which formats are on. Drafts, quoted text and messages you edit come back formatted, pasted code still becomes a code block, and anything pasted goes in as plain text. Comments are still sent and stored as the same markdown-lite, so the dashboard, MCP server and agents read them as before. Bold, struck and italic together now display nested in threads too.
13
-
14
- - **Markdown typed by hand turns into formatting,** like Notion or Slack: type `**bold**`, `~~strike~~`, `_italic_` or `*italic*`, or `` `code` `` and the text is formatted as soon as you type the closing marker, with the markers gone. Cmd/Ctrl+Z brings the markers back. Words like snake_case_name, list bullets (`* `), links, code and pasted text stay as they are.
15
- - **Undo and redo you can rely on** in the comment and reply box: Cmd/Ctrl+Z, Cmd/Ctrl+Shift+Z, Ctrl+Y and the Edit menu step back through typing a word at a time and through each format, mention, paste, line break and deletion, up to 100 steps. Sending or opening a draft starts the history afresh.
16
- - **Input methods (Japanese, Chinese, Korean, Android keyboards):** text written through an input method now gets the format you switched on at the caret, and in Firefox it replaces the selected text instead of landing next to it.
17
-
18
- ## 1.5.1 (2026-10-28)
19
-
20
- - **Screenshots keep the page's look on every site:** the screenshot copies the page, and that copy asked the server for each linked stylesheet again without waiting for it. On a slow server or a cold CDN the screenshot came out unstyled (plain fonts, blue links). The copy now reuses the styles the page already has, in the same order, and waits briefly for any it cannot read. No Content Security Policy is touched.
21
- - **A clearer attachment icon** in the comment box and the file list.
22
-
23
- ## 1.5.0 (2026-10-24)
24
-
25
- - **Guests see who gets their details:** under the name and email fields for share-link guests, a short line says the name, email and comments go to the team that runs the website and to CommentKit, with a link to the privacy notice. In all 11 languages.
26
-
27
- Fixes from the full audit of 24 October. Pair it with the backend release of the same day: the widget still works with an older server, but readable errors, edit conflicts and safe retries need the new one.
28
-
29
- - **Staying signed in:** a revoked or expired session asks you to sign in again instead of retrying for ever, and several open tabs waking up together no longer sign each other out (the refresh runs in one tab at a time and gives up after 10 seconds without losing the session). "You appear to be offline" shows only when the browser really is offline.
30
- - **The right person, live:** after signing out, switching account or going from guest to member, live updates reconnect for the new person and never keep the previous person's inbox or team presence.
31
- - **Comments never fail over build details:** a branch like `fix#12`, an upper-case commit or a `data-ck-src` / `data-ck-id` value the server would refuse is left out with one console warning, and the comment posts.
32
- - **The task description shows in the card** (read-only, folded when long), and "Copy for AI agent" and "Send to agent" include it.
33
- - **Long conversations show every message**, including replies past the first 100, and agent prompts include them too.
34
- - **"30+ results" and Show more** in the inbox lists (All pages, search, filters) while there are more.
35
- - **Undo after "Looks good — resolve"** works for reviewers and puts the previous status back; when it is too late, a plain message says to reopen instead.
36
- - **Edits don't overwrite each other:** when someone else changed a message or description a moment ago, the card says so, refreshes and shows their version. Editing a message notifies people newly @mentioned in it (whole names only: "Ann" no longer matches "Annabel").
37
- - **Due dates are calendar days** everywhere, with no shift by a day west of UTC. The widget sends `YYYY-MM-DD`.
38
- - **Safer retries:** uploads, "mark read" and a request the server is still working on are retried without ever counting twice.
39
- - **More privacy in screenshots and diagnostics:** screenshots now also grey out email, phone and address fields, and console capture removes email addresses. Network diagnostics also record the site's own `/api/v1/` failures.
40
- - A card opened from an email link is marked read. Fewer requests overall: no mark-read call when nothing is unread, one refetch after "Mark all as read", one address check instead of two.
41
- - Arabic uses the right plural forms; a new comment's checklist stops at 30 items instead of dropping the 31st silently.
42
- - **Smaller on pages where the widget stays hidden:** `init()` now downloads about 9.7 KB instead of 19.9 KB; the strings, console capture and widget load only when it shows.
43
-
44
- Worth knowing when upgrading:
45
-
46
- - Reviewers see more grey boxes in screenshots (email, phone and address fields).
47
- - `due_at` values are dates (`2026-10-24`), not date-times. Code that parsed them as instants should read them as days.
48
- - The browser extension talks to this widget over a private channel; with widget 1.4 and older it falls back to the built-in screenshot.
49
-
50
- For developers:
51
-
52
- - New: `allMessages(threadId, { refresh })` (every message, following `next_cursor`), `inboxPage()`, and `EDIT_CONFLICT` (exported from `/headless`); `editMessage(id, body, { mentionIds })`. Message objects carry `etag`; inbox items' `kind` is typed as `InboxKind`.
53
- - Config re-reads send `X-CommentKit-Load: 0` and `If-None-Match`, so they no longer count as widget loads and cost a 304 when nothing changed.
54
- - The API contract constants (key, branch, commit and source patterns, limits) are checked against `contract/openapi-v1.yaml` in CI.
55
- - Size budgets now count every file loaded at each moment (see `scripts/check-dist.mjs`); the README lists the script-tag loader at about 1.3 KB.
56
-
57
- ## 1.4.0 (2026-10-23)
58
-
59
- - **Works through Google Tag Manager:** tag managers rebuild the script tag with only its address, so the loader also reads the key from it: `loader.js?project=pk_live_…`. A tag with no key now says so in the console instead of doing nothing.
60
- - **Turbo, Livewire `wire:navigate` and htmx boost:** when the page change runs the tag again, the loader starts once (no more piled-up keyboard shortcuts), and pins keep up when the whole `<body>` is swapped.
61
- - **Edit suggested style changes after sending:** the person who wrote the comment and the team get "Edit" on the thread's style changes. It opens the same panel, starting from the element's values and the changes already suggested, previews live, and Save replaces the list (`PATCH /threads/{id}` with `style_changes`). Cancel, Escape or closing the card puts the page back.
62
- - **Short agent links keep the style changes:** one line per change inside the untrusted fence, fewer and shorter as the link runs out of room.
63
- - **Comments inside nested previews:** comment mode reaches iframes inside iframes (up to four deep), iframes inside web components and web components inside iframes, and the comment finds its way back (`anchor.frames`, one hop per iframe; one plain iframe still uses `anchor.frame`). A cross-origin iframe at any level is commented on as a whole.
64
- - **Quotes inside iframes and web components:** select text in a same-origin iframe (before or during comment mode) to quote it; quoted comments there are found again by their words and shaded in place.
65
- - **Pins in iframes follow the iframe:** they move when the iframe's own page scrolls and hide when their spot is scrolled out of the iframe.
66
-
67
- ## 1.3.0 (2026-10-23)
68
-
69
- - **Suggest a style change:** on a comment about an element, "Adjust style" lists its font, colours, spacing, border, size and layout values. Change them and the page previews it live; the comment keeps each change as "font-size 48px → 40px" (or "removed"), the thread shows them with a Preview switch, and agent prompts, the MCP server and the CLI include them. The page is always put back when you close, send, cancel or the widget is removed.
70
- - **Pins stay on their spot:** a pin hides while its spot is scrolled out of a scroll box or carousel instead of floating over the page, follows fixed bars without lagging, and catches up at once when an image loads or an accordion opens. Offsets are kept inside the element, so a pin stays on it at any screen width. Each pin remembers its element, so pages with many comments do less work.
71
- - **Comment on anything you can see:** comment mode now reaches inside web components (open shadow roots, nested too) and same-origin iframes, and the comment finds its way back there (`anchor.shadow_path`, `anchor.frame`). Closed shadow roots and cross-origin iframes are commented on as a whole.
72
- - **Sharper hover:** beside the words of a small inline element (a highlighted word, say), the outline goes to the paragraph around it.
73
- - **Source locations without the build plugin, in development:** on local and dev builds of React (18 and 19), Vue, Svelte and Preact, comments record the file and line (`anchor.source`, when there's no `data-ck-src`) and the component (`anchor.component`), and agent prompts include them. Paths are made project-relative; nothing is read or loaded on production pages.
74
-
75
- ## 1.2.1 (2026-10-23)
76
-
77
- - **Open in Cursor** uses Cursor's app link, so Cursor opens straight away (tested in Cursor: it asks before creating the chat). **Open in Claude Code** starts in your clone of the project's linked GitHub repository.
78
-
79
- ## 1.2.0 (2026-10-22)
80
-
81
- - **Send to agent from the inbox:** choose comments (every shown one starts ticked, so the page, branch and filters decide) and send them in one prompt. **Open in Cursor**, **Claude Code** or **Codex** opens the agent with the prompt filled in (you press Enter); the full prompt is always on the clipboard too, and a batch too long for a link sends a shorter version there. For team members allowed to export for agents.
82
- - **Agent prompts include priority and the checklist.**
83
- - With the MCP server (1.1), `/fix_feedback` does the same from inside the agent.
84
-
85
- ## 1.1.3 (2026-10-22)
86
-
87
- - **Cmd/Ctrl+Shift+K is CommentKit's alone:** sites that open their own search on Cmd/Ctrl+K no longer open it as well. Plain Cmd/Ctrl+K still belongs to the site.
88
- - **Pins step back under the site's own dialogs and menus** (a search box, a cookie banner, a modal) and come back when they close, instead of floating on top.
89
-
90
- ## 1.1.2 (2026-10-22)
91
-
92
- - **Sharper screenshots:** the widget now uses html2canvas-pro, so buttons, shadows, rounded corners and modern colours come out as you see them (before, backgrounds could slip off their text). Hidden "Skip to content" links and `<noscript>` fallbacks no longer print in a corner.
93
- - **Drawing looks like the original design:** one slim toolbar with pen, line, box, circle and arrow (plus blur and text), seven colours, a width slider (1–12 px), undo, redo and clear, then Cancel and a tick to save. The page behind is only lightly dimmed.
94
- - **Comment mode is calmer:** a thin line round the window with a soft glow that slowly breathes (still when reduced motion is on).
95
-
96
- ## 1.1.1 (2026-10-22)
97
-
98
- - **A simpler comment box:** no title bar (quoted text, if any, leads the card; Cancel and Esc close it) and no separate "details" box, since the comment says it all. The checklist stays.
99
- - **Toasts are calm cards** in the widget's light or dark theme, with only a coloured icon for success or a problem, and a shorter connection message: "Couldn't reach CommentKit. Check your connection and try again."
100
- - **A selected area shows dashes moving round it** (still when reduced motion is on).
101
- - **A sign-in that leaves the page keeps your drawing** too, not only the checklist and task fields.
102
- - A clearer paperclip, and the remove button on checklist items is centred.
103
-
104
- ## 1.1.0 (2026-10-22)
105
-
106
- Everything the old prototype did well, in one release: the full gap report (`docs/audit/react-ui-gap-2026-10-22.md`) as decided.
107
-
108
- - **Several assignees** per comment (the first is the main one), set while writing or in the card; the inbox filters by any of them.
109
- - **A checklist** on a comment: "+ Add a checklist" while writing, then tick, add and remove items in the card. The author and the team may change it.
110
- - **Drawing on the screenshot** gets arrow, line, box, circle, pen, blur and text, eight colours, three sizes, undo, redo and clear.
111
- - **Files upload as soon as you add them**, with progress, and images open in a full-screen viewer.
112
- - **24 reactions** in a picker, drawn the same on every device.
113
- - **Link previews** for links in comments (title and site only; the server fetches public pages, never images).
114
- - **The inbox:** open a conversation inside it with Back, Previous and Next (J and K), filter by priority, "Created by me", several people or another branch, and see priority, reactions, checklist progress and assignees on each row, with Resolve and Copy link on hover. Your team shows in the header, with who is online.
115
- - **Settings** in the More menu: your account, light, dark or system theme on this device, the team and their roles, the project's storage, and links to the dashboard and shortcuts.
116
- - **Move the toolbar:** drag it (or use the arrow keys on its handle) to any corner or edge; it remembers where.
117
- - **Calmer motion:** cards and the inbox grow from where you clicked and shrink back, new replies slide in, and resolving shows a little confetti. Double-click outside closes the inbox (a one-time tip says so).
118
- - **Drag across text to quote it**, or drag anywhere else (or hold Shift) to mark an area.
119
-
120
- - **Enter sends**, Shift+Enter starts a new line (on phones Enter stays a new line). Cmd/Ctrl+Enter still sends.
121
- - **Formatting:** a small toolbar and Cmd/Ctrl+B, I, E and Shift+X for bold, italic, code and strikethrough. `_italic_`, `~~strike~~` and ``` code blocks ``` show properly, and pasted code becomes a code block.
122
- - **Reply to one message** with a quote; the reply shows what it answers. **@names** are highlighted.
123
- - **More in each conversation:** the text someone selected, a Details list (when it was left and resolved, the page, browser and window size), Copy text, Jump to latest, "No replies yet", "Reply to reopen…" on resolved feedback, and you can edit your first message.
124
- - **Delete without a dialog:** it disappears at once with an Undo toast, and is deleted a few seconds later.
125
- - **Pins:** hover one for a short preview; team members who can triage drag a pin to a better spot (with Undo).
126
- - **Inbox:** sort (latest, oldest, priority), a filter count, Reset, "3 of 12", a clear button on search (focused when the inbox opens), author avatars, the exact date on hover, and a "Live updates paused" note with Retry when the connection drops.
127
- - **Team members set priority, assignee and labels while writing** a new comment.
128
- - **Toasts stack** (up to three) with success, info and error icons, and say "Comment updated" and "… is open again".
129
- - **Cmd/Ctrl+Shift+K opens the inbox** while the widget is shown; **Hide CommentKit** is in the More menu, and the keys bring it back.
130
- - **Links to a conversation open in place** when a single-page app follows them, without a reload.
131
- - **Guest code step:** the code sends itself on the sixth digit, a wrong code clears the box, and "Send a new code" counts down a minute.
132
- - **For developers:** `comment()` / `CommentKit.comment()` and the `mode` event for your own "Leave feedback" button, and `init({ tools })` to turn screenshots, drawing, quoting selected text or attachments off.
133
- - **Reactions read well with screen readers** ("2 reactions: 👍, including you").
134
- - Each lazy part of the widget now brings its own styles, so the first load stays small as features grow: the composer loads when you start commenting.
135
-
136
- Fixed while testing on real sites (Laravel with Inertia Vue and React, Filament, Blade, Astro, and 14 framework starters):
137
-
138
- - **Screenshots work on sites styled with modern colours** (Tailwind v4's `oklch()`); before, they were silently left out.
139
- - **Sending before the screenshot is ready waits for it** instead of sending without it, and a page that can't be captured says so.
140
- - **Signing in that leaves the page brings back everything you wrote**, details, checklist and task fields included, and the one-time sign-in code is never saved in a comment's address (even when the site's router writes it back).
141
- - **Cards fit the window:** they open on the roomier side of the spot (clear of a quoted line or area) and only their middle scrolls, so the reply box and buttons are always visible; open cards sit above the toolbar.
142
- - **Drop-downs open fully in view** (priority, assignee and label lists, inbox filters, the reaction picker), close when you click elsewhere, and are drawn by the widget, so strict Content Security Policies stay clean.
143
- - **The field you add takes the typing** ("+ Add details", "+ Add a checklist").
144
- - **Settings and Keyboard shortcuts open as a proper centred dialog** with the page dimmed behind, and the account line shows the owner as Owner.
145
- - **The screenshot preview keeps one size**, so the card doesn't jump when it arrives, and drawing covers the toolbar too.
146
- - A shorter comment-mode hint: "Click to comment · Drag to quote text or mark an area · Esc to stop".
147
-
148
- ## 1.0.1 (2026-10-22)
149
-
150
- - **Nothing important disappears on a timer:** an error or an Undo stays until you dismiss it or click elsewhere, and every toast is announced to screen readers. While a conversation is open, toasts show at the top so they never cover the reply box.
151
- - **Typing on a phone no longer zooms the page** (text fields are 16 px on touch screens).
152
- - **Finer details:** press feedback at exactly 0.96, hover styles only where a mouse can hover, scrolling stays inside cards and menus, images get a neutral outline, a visible focus ring in high-contrast mode, and the toolbar and keyboard never cover a card on phones.
153
- - **Plainer errors** in every language: "That didn't work. Check your connection and try again."
154
-
155
- ## 1.0.0 (2026-10-22)
156
-
157
- First stable release. Installs with `npm install @commentkit/comment-kit`, no `@beta` needed.
158
-
159
- - **Pins are the CommentKit mark:** a speech drop whose tip sits exactly on the spot, numbered in its head, coloured by status.
160
- - **Comment mode glows:** a soft accent frame round the window shows you are commenting, not using the page.
161
- - **Cleaner, more compact design:** one spacing and type scale, one "selected" style, one focus ring, muted disabled buttons, text boxes that grow with your text, a date chip instead of the browser's date field, and an inbox that never sits behind the launcher.
162
- - **Illustrated empty states** (all caught up, nothing on this page, nothing matches with Clear filters, couldn't load, gone) and skeletons shaped like the content while it loads.
163
- - **Errors stay where they happened:** a conversation that cannot load explains why in the card, with Close or Try again.
164
- - **Translations reviewed** in all 10 languages, with plainer English (versions, not branches).
165
- - **Security:** reviewer text in agent output stays inside the untrusted-content fence in every spelling; crash reports carry a one-time load proof for the CDN canary.
166
-
167
- ## 1.0.0-beta.3 (2026-10-20)
168
-
169
- - **Security:** the sign-in code only ever comes from the sign-in window's message; the widget never asks the server for it.
170
- - **Task fields in the widget:** team members can set priority, assignee, due date and labels from a conversation. Reviewers see what is set.
171
- - **Calmer live updates:** a change refetches only what is on this page or open, after a short random delay, and never your own change twice.
172
- - **Plain, translated errors** for known problems; a failed screenshot upload or reply says exactly what happened and keeps your text.
173
- - **Agent output:** every reviewer-written field stays inside the untrusted-content fence.
174
-
175
- ## 1.0.0-beta.2 (2026-10-20)
176
-
177
- - **Refreshed look.** One set of design tokens (radius, elevation, motion); surfaces get a hairline ring and soft layered shadows so they read on any site; the launcher is frosted glass; the inbox tabs are a segmented control; status pills are tinted per status; buttons, inputs, chips, menus, toasts and pins have hover, press and focus states; cards and menus open with a short pop (sheets slide up on phones), and everything is still off under reduced motion. Same layout, sizes and touch targets.
178
- - **Text on your brand colour stays readable.** With a dark accent colour the widget switches its button text to white automatically.
179
- - **Fix:** pressing Esc right after adding a text note on a screenshot could close the comment too.
180
-
181
- ## 1.0.0-beta.1 (2026-10-20)
182
-
183
- - **Reviewer journey, from the UX audit.**
184
- - **One Send for share-link guests.** Name and email sit under the comment from the start ("Your name and email, so the team can reply. No account needed."), so the first comment is open → Comment → click → type → name and email → Send. A missing name or a wrong email is said at the field (`aria-invalid`, `role="alert"`) and that field gets focus. The `guest_details` error code is gone.
185
- - **The code step says what happened.** An expired client link and a removed guest each get their own message (the API's `403 no_access` detail decides; `share_expired` / 410 too) and no Resend; a used-up code offers **Write it again**, back to the saved comment. While a comment waits for its code, a note by the launcher says so with **Enter code**.
186
- - **Follow and mute.** The thread menu switches between "Stop notifications" and "Notify me" (`PUT` / `DELETE /threads/{id}/watch`), and the toast confirms ("You won't get emails about CK-12 anymore."). It uses `thread.watching` when the server sends it, otherwise assumes you follow, and remembers changes for the visit.
187
- - **"Not yet — reply"** next to "Looks good — resolve" focuses the reply box: "What still needs to change?"
188
- - **Delete feedback asks in the card**, like reply delete, instead of the browser's `confirm()`. **Resolve has Undo** in its toast.
189
- - **Errors that can't be fixed by retrying** (paused, read-only, no access, website not allowed) say why, keep the text and show no Try again. Try again stays for offline, 5xx and 429.
190
- - **Paused feedback.** Visitors from a client link or an email link see "Feedback is paused on this site right now. Please check back later." instead of nothing; everyone else still sees no widget.
191
- - **Plain words for clients.** Read-only says "New feedback is paused on this site right now" to guests (members keep the plan wording); thread cards are titled "Feedback CK-12" for guests; screen widths read "Left on a phone-sized screen" (chips: Phone, Tablet, Wide screen; pixels in the tooltip); a deleted or unshared thread says so; the welcome card is one sentence ("Leave feedback on {project}"), a region rather than a dialog, with tap wording on touch screens; the mode bar mentions selecting text to quote it; the shortcut string is gone from the launcher menu; "review link" is now "client link".
192
- - **Phones.** The launcher keeps its "Comment" label. The docked card stays above the on-screen keyboard (`visualViewport`), and toasts move to the top while a card or the inbox is open.
193
- - **Launcher menu** opens towards the page in all four corners (it was off-screen for `top-left` and `top-right`).
194
- - **Accessibility.** The edit box is labelled, saves with Cmd/Ctrl+Enter, cancels with Esc and shows "Saving…"; the inbox status filter is labelled "Status"; opening the inbox focuses its open tab; @mention suggestions are announced (`aria-controls`, `aria-activedescendant`).
195
- - **`shortcuts: false`** (`data-shortcuts="false"`, `<comment-kit shortcuts="false">`) turns off the single-key shortcuts C, J / K, E and ? for sites with their own (WCAG 2.1.4). Esc and Cmd/Ctrl+Shift+K keep working.
196
- - Unused strings removed from all 11 languages (`launcher`, `launcherHint`, `welcomeStart`, `assign`, `priority`, `you`, `team`, `shortcuts`, the three tour steps, `guestDetailsMissing`, `otherScreen`, `madeAtWidth`); a test now fails on any English key the widget never uses.
197
- - The thread card loads with its first conversation, like the inbox panel, which keeps the widget that loads on activation inside its size budget.
198
- - **Realtime inbox pings are per project.** The person's inbox channel spans projects; a ping whose `project_id` is another project's is ignored, and the badge uses the per-project `unread` the ping carries (pings without `project_id` still count).
199
- - **CDN canary load count.** The first widget config read of a page load sends `X-CommentKit-Load: 1`; the per-minute re-reads don't, so the server counts each load once.
200
- - **Docs.** SECURITY.md lists every CSP host (storage, realtime, `blob:`, Google avatars) and the `commentkit-capture` Trusted Types policy, and points to Project → Setup. The browser extension's "not allowed" message points to Project → Setup.
201
-
202
- - **The 10-second first comment.** On a share link, Send asks for name and email in the same card (no window), posts the comment at once with a pending token (`POST /guest/start`), and a "Check your email" step publishes it with the 6-digit code (`POST /guest/verify`), with "Send a new code" and "Use a different email". The pending token stays in this tab only (sessionStorage) and never counts as a session; after the code the session is stored like any sign-in. Members, and websites where the API refuses the inline path (`403 origin_not_allowed`, e.g. localhost), keep the sign-in window. A `403 verification_required` goes back to the code step. Contract synced.
203
-
204
- - **Keyboard shortcuts dialog.** Press `?` (or open it from the launcher's menu) for every shortcut in one list. It never opens while typing in the page or the widget.
205
- - **Delete a reply.** Your own replies, or any reply for people who manage the project, have Delete next to Edit, with a confirmation in the card.
206
- - **Never breaks the host page.** An error boundary around the widget removes it quietly after a crash (one console warning). `init()`, the loader (including a failed widget download), `<comment-kit>` and the React, Vue and Svelte helpers catch everything and warn once.
207
- - **`window.CommentKit` for script-tag sites:** `show()`, `hide()`, `open(idOrReference)`, `on()`, `off()`, `destroy()` and `version`, set once the widget is ready and removed by `destroy()`. `init()` instances gain `open()` too.
208
- - **Trusted Types.** Works under `require-trusted-types-for 'script'`, checked in Chromium with zero violations. The screenshot engine's two fixed HTML writes go through one narrow policy, `commentkit-capture`.
209
- - **Who's here.** The inbox header shows "3 people here" from the realtime presence channel; hidden when you are alone or live updates are off.
210
- - **"Made at 390px"** chips on panel rows too, with the same rule as the thread card (more than 200 px from this screen).
211
- - **Remember me policy.** The widget config's `auth.remember: false` keeps the refresh token in sessionStorage (this tab only); true or absent keeps today's localStorage. Existing tokens move when the policy changes. The sign-in window now opens `auth.authorize_url` from the config.
212
- - **Inline text notes** on screenshots, typed where you click, instead of a browser prompt. Esc leaves drawing, not the comment. The drawing editor and the inbox panel load on first use.
213
- - **Safer "Copy for AI agent":** passwords, tokens, keys, signatures and long random values are removed from URLs and text; each message is capped at 4,000 characters and the conversation at about 40,000, with a "…truncated" note.
214
- - **Console and network capture:** `XMLHttpRequest` failures are recorded too (method, URL, status, timing; never bodies or headers); token-like query values are removed by value as well as by name. Reviewers choose per comment with "Include browser errors to help the developer", unchecked unless the project sets `features.capture_consent_default: true`.
215
- - **Long-press to comment** on touch screens (500 ms), alongside tap, and the tap or press never follows a link underneath.
216
- - **Inbox filters:** search on "This page" too, "Assigned to me", assignee and label (from `/labels`). Sends `assignee` and `label`; results are also checked in the widget so a server that ignores `label` still shows the right list.
217
- - **Attachments:** paste or drag images and files into the composer and the reply box, and attach files to replies. The server's file types and the project's size limit are checked before sending, with a plain reason when something is left out.
218
- - **Drafts survive closing the tab:** unsent comments and replies are kept per project, page and spot (or thread) for 7 days and removed once sent.
219
- - **Read-only, everywhere.** While a workspace is read-only, the thread card offers no reply box, Resolve, status changes, edits, deletes or reactions, even if the server still allows commenting, and a lasting notice sits beside the launcher and in the inbox.
220
- - **Live config.** The widget re-reads its config every minute while the tab is visible and when it becomes visible again, so the kill switch and read-only reach open pages; the kill switch removes the widget cleanly.
221
- - **"Try again" never duplicates a comment:** a retried send reuses the same request and Idempotency-Key. Screenshots are uploaded under their real type (`screenshot.png` where the browser cannot make WebP).
222
- - **Phones:** the launcher steps aside while a card, the inbox sheet or a dialog is open, so it never covers Send or Continue.
223
- - Build: the widget size budget now counts every chunk the widget loads at start, not only `mount-*.js`.
224
-
225
- - **The widget in 10 more languages:** Spanish, French, German, Portuguese (Brazil), Italian, Dutch, Japanese, Chinese (Simplified), Hindi and Arabic (right to left). The language comes from `init({ locale })`, `data-locale` or `<comment-kit locale>`, then the page's `<html lang>`, then the browser, with region fallback (`es-MX` → Spanish, `pt` → Brazilian Portuguese, `zh` → Simplified Chinese) and English last. Each language is its own small file loaded only when needed; English pages load no extra file. Relative times and message counts use `Intl.RelativeTimeFormat` and `Intl.PluralRules`, including Arabic plural forms. The drawing tools, colours, Undo and reaction buttons are now translated too.
226
- - **Security hardening from an XSS corpus run through every widget renderer** (65 payloads through comment text, names, attachments, page titles, inbox items, mention suggestions and the AI-agent copy):
227
- - Attachment and screenshot links and images only use absolute `http(s)` URLs (avatars stay `https` only); anything else shows as plain text.
228
- - Opening an inbox item never navigates to a non-web URL such as `javascript:`.
229
- - "Copy for AI agent" can no longer be broken out of its `<untrusted-user-content>` fence, however the tag is spelled. Selected page text and console lines now sit inside fences too; one-line fields cannot add lines or close code spans.
230
- - Links in comments stop at bidi and zero-width characters, and names, file names and page titles are isolated with `<bdi>`, so right-to-left override tricks cannot disguise links or flip surrounding text.
231
- - A malformed page URL no longer stops the thread card from opening.
232
- - **Browser extension handshake.** The widget also shows when the CommentKit browser extension sets `data-commentkit-extension` on `<html>` (only after a signed-in member chose "Comment on this page" on an allowed website). The loader grows by a few bytes and stays well inside its budget.
233
- - **Extension screenshots and sign-in.** Inside the extension, screenshots use `captureVisibleTab` (pixel-perfect), with the widget hidden and private fields, iframes and redaction selectors painted over; html2canvas stays the engine everywhere else and the fallback. The widget signs in through the extension's session with a one-time PKCE code, so members are not asked twice. Both pieces load only when the handshake is present.
234
- - **Zapier app** (in `zapier/`, separate from this package): start Zaps from new feedback or tasks, status changes and replies, create tasks, reply to a task (or wait for approval), and find a task by `CK-12`. Connect with an agent key that has the Zapier permission. Not on Zapier yet; the owner registers and pushes it.
5
+ ### Added
235
6
 
236
- ## [1.0.0-beta.0] - 2026-10-19
7
+ - The `commentkit` command works on Laravel apps. `init` sets up Laravel with Inertia (React, Vue or Svelte), Blade or Livewire: it adds `init()` to `resources/js/app.*` (or the entry `vite.config` lists), with the key written in as the default so the server needs no new environment variable. It names layouts whose `@vite` loads only stylesheets, and for plain Blade pages it prints the script tag and the layouts it belongs in instead of editing them. The README has a Laravel section.
8
+ - `init` prints the exact lines to add the build plugin to vite-plus configs that use `lazyPlugins`, with the Node version the plugin needs.
237
9
 
238
- A rewrite around one job: feedback lands on the exact spot, with full context, and reaches the right developer or AI agent.
10
+ ### Changed
239
11
 
240
- **Breaking:** requires the v1 CommentKit backend. The old `CommentKit` class, `useCommentKit` hooks, Angular/Solid/Qwik/Preact adapters and `createCommentKitDemo` are gone; call `init()` or use the React, Vue or Svelte helpers. Your project key changes from `ck_…` to a publishable `pk_live_…` key shown in Project → Setup.
12
+ - The widget now looks like the CommentKit dashboard. Cards, menus and the inbox have slightly smaller corners and softer shadows, and the colours are a little cooler. Fields, the comment box, chips and reactions have a clearer edge, so you can see where to type or press. Focus shows as one grey ring on every control, fields included, instead of the accent colour. The default accent is Ember red with white text on buttons; pins keep the orange. Statuses match the dashboard: open is stone grey and "In review" is violet, and delete actions use their own red. If your site sets its own accent colour, it is kept on buttons and pins (a few mid-tone colours are darkened just enough for white text on them to stay readable). Nothing to change to upgrade.
13
+ - A single click on the page beside an open comment no longer looks like nothing happened: the card gives a small shake (none if you prefer reduced motion) and says how to close it. A double-click or double-tap outside closes it, like ×. The page still receives every click as before, and an unsent reply stays saved as a draft.
14
+ - `doctor` says in one neutral line when the terminal is signed in to a different website than the folder's key, with how to switch, instead of warning. Without an address, it suggests running it with the site's address.
241
15
 
242
- - **Works on every website.** A 0.6 KB script-tag loader, `init()`, a `<comment-kit>` element, and ~20-line React/Vue/Svelte helpers. Preact, the screenshot engine and realtime are bundled and loaded only when needed; hosts install nothing else and no longer need React.
243
- - **One comment tool.** Click an element, drag an area, or comment on selected text. Comments stay anchored after page changes using developer ids, build-time source locations, stable selectors, text fingerprints and page position, and are reported as moved or detached instead of silently disappearing.
244
- - **Automatic context.** Every comment carries a screenshot with the pin drawn on it, plus page, branch, commit, viewport, browser and device. Reviewers can draw on the screenshot (arrow, box, pen, irreversible blur, text). Opt-in console errors and failed requests, with credentials removed.
245
- - **Sign-in that clients understand.** A small CommentKit window (or a same-tab redirect inside in-app browsers and when pop-ups are blocked) using PKCE; credentials never touch the host page. Guests use a review link, their name and a 6-digit email code. Unsent comments survive the round trip.
246
- - **Conversation and workflow.** Replies, mentions, six reactions, statuses Open → In progress → Ready for review → Resolved/Closed, and a plain "Does this look right?" prompt for reviewers. An inbox panel with this page, all pages and notifications.
247
- - **Accessible and keyboard-first.** WCAG 2.2 AA (checked with axe in every main state), visible focus, focus that returns where it was, a live region for updates, right-to-left pages, and reduced motion. Keyboard users comment on the focused element or the whole page; J / K move between comments, E resolves, arrow keys move through tabs, menus and lists.
248
- - **Made for phones.** Tap to comment while the page still scrolls, a bottom-sheet inbox, 44 px touch targets and safe-area spacing; tested on iPhone and Pixel emulation.
249
- - **Every state explained.** Loading, failed to load (with Try again), offline (the draft is kept), send failed (still there to retry), read-only plans, no permission to reply, and comments whose spot has gone ("Not found on this page", shown with their screenshot).
250
- - **Live updates.** New comments and replies appear without a reload when the project has live updates on.
251
- - **Hidden from visitors on production.** Shown on localhost, through review and email links, Cmd/Ctrl + Shift + K, or an existing session. A dashboard switch pauses feedback everywhere within a minute.
252
- - **Isolation.** Shadow DOM with inherited styles reset, one host element, full cleanup on `destroy()`, no `unsafe-eval`, no source maps or private type declarations in the package.
16
+ ### Fixed
253
17
 
254
- - **Branch mode.** When the site says its branch (or `@commentkit/build` records it), the inbox shows this branch's feedback with "All branches" one click away; feedback from another branch says which, and the thread card shows `branch @ commit`. `init()` reads branch and commit from the build plugins when you do not pass them.
18
+ - The ⋯ menu on an open comment shows that it is open, and closes when you click or tap beside it, press Esc (focus goes back to ⋯) or choose an item.
19
+ - Esc in any of the widget's menus and drop-downs (the ⋯ menus, priority, assignee, labels, reactions, the inbox filters) closes only that menu, not the comment card or the inbox around it.
20
+ - If one of the parts the widget loads on demand fails to download (a deploy in progress, a network blip), it is tried again a moment later instead of leaving the widget missing until the page is reloaded. A later Cmd/Ctrl+Shift+K or opening another comment tries again too.
21
+ - `doctor` finds the widget in Laravel entries, in the entries `vite.config` lists under `input`, in a file an entry imports, and as the script tag in a Blade layout, and reads the key written there.
22
+ - The package manager is chosen by lockfile first: a `package-lock.json` next to a stray `pnpm-workspace.yaml` now means npm.
23
+ - `mcp install` changes only the entry it adds: the file keeps its indentation, line endings and trailing newline. Backups no longer land in a git repository where git would pick them up, and a git-ignored `.mcp.json` is reported as such.
24
+ - Messages from `doctor`, the CLI and the SDK's console warnings point to the dashboard pages that exist (for example the website's Settings → Install, under Addresses) instead of the retired Setup and Connect pages.
25
+ - The README's Vue, Nuxt and build plugin examples work as pasted.
255
26
 
256
- The separate **comment-kit-mcp 1.0.0** adds `get_feedback_screenshot`, `list_tasks`/`get_task` (dashboard tasks, and `CK-12` instead of an id), `link_commit`, `check_request` and, with opt-in token permissions, `reply_to_feedback` and `mark_ready_for_review`. Writes that wait for a person's approval answer "waiting for approval" with a request id. Old tool names remain as aliases.
27
+ ## [2.0.0] - 2026-11-17
257
28
 
258
- New packages: **@commentkit/build 1.0.0-beta.0** (source locations, branch and commit for Vite, Next.js, webpack and Astro) and **@commentkit/cli 1.0.0-beta.0** (`login`, `init`, `pull`, `open`, `token`).
29
+ ### Added
259
30
 
260
- ## [0.7.7] - 2026-10-18
31
+ - Guests can finish their first comment from the code email in any browser. The email's **Send my comment** button opens the page with `#ck_code=…`: the loader and `init()` take it off the address at once (it also shows the widget, like a sign-in link), and the widget asks "Send your comment?" with one button, so a mail scanner that opens the link never publishes anything. Pressing it publishes the comment, starts the guest's session in that browser and opens the comment; a used or expired link, a removed guest, a website not on the list, a read-only or paused website each get a plain sentence. The code step sends an `Idempotency-Key` per code typed, so a confirmation whose answer was lost is asked for again and answered as the first time; and starting a guest comment sends the page's address, which the email's button opens.
32
+ - CLI: new `npx @commentkit/comment-kit doctor [url]`: finds out, in plain words, why the widget is not showing. It checks the package or script tag, the project key and the optional build plugin in your app folder, then checks the key with CommentKit (unknown, feedback paused, or read-only). Give it your site's address to also check that the site is on the project's allowed websites, that the page has CommentKit, and that the page's Content Security Policy lets CommentKit load. Each check prints one line, with what to do next when something is wrong. `--json` prints the result for scripts. It exits 1 when something needs fixing.
33
+ - **Sign-in from your website.** `init({ project, identity })` takes a short-lived token your server makes for its signed-in user (or a function that fetches one, called again whenever the session ends). The widget shows for that person, on production too, already signed in. `kit.identify(token)` and `window.CommentKit.identify(token)` sign someone in later; a script-tag site can set `window.CommentKit = { identity }` before the tag. The React, Vue and Svelte helpers take `identity`; `<comment-kit>` has `.identify(token)` (never an attribute). A CommentKit team member signed in on the browser stays signed in. A refused token fires `error` with the API's code, explains the fix in the console and falls back to the normal sign-in. Tokens are never stored, logged or put in a URL.
34
+ - New `privacy` option: `"standard"` (default) or `"strict"`. Strict leaves every form control's value and every editable region out of screenshots, in the built-in capture and through the browser extension. Name, username, birthday and organization fields are now left out of screenshots by default, like passwords, payment and contact fields.
35
+ - Cmd/Ctrl+Shift+K: new `toggleShortcut` option (`data-toggle-shortcut="false"`, `toggle-shortcut="false"`) turns it off. While the widget is hidden the key also reaches the page's own handlers, and a visitor's key press is remembered only once the widget has really shown.
36
+ - Page sign-off in the widget: the inbox's "This page" tab now starts with one calm row, "Happy with this page?" and an "Approve this page" button, for anyone signed in who can comment (guests who confirmed their email too). Approving asks for an optional one-line note, then says "Approved. The team has been notified." with Undo. Afterwards the row says who approved the page and when, with a quiet "Withdraw approval"; when new feedback came in or the page changed since, it says so in plain words and offers "Approve again". It also says how many comments are still open. The row is read again when the page changes (single-page apps), when a comment on it is created or resolved, and after catching up on missed live updates. It stays away on read-only or paused projects, for people who cannot comment, and quietly on servers without sign-off. Undo on a deleted reply or comment now really cancels the delete (before, the delete still happened when the toast's time ran out), and pressing a toast while the inbox is open no longer counts as a press on the page. "Send a new code" in the guest code step sends an Idempotency-Key, so a retried request never emails a second code.
37
+ - Anyone can turn off single-key shortcuts in Settings (WCAG 2.1.4); Esc and Cmd/Ctrl+Shift+K keep working.
38
+ - Move a pin from the keyboard: "Move pin" in the conversation menu, then Tab to the new spot and press Enter.
39
+ - Swipe the inbox down to close it on phones; it follows your finger and closes on a flick.
40
+ - Comment mode has a Cancel button, and icon buttons show what they do on hover.
261
41
 
262
- - Stop pending attachment uploads after the authenticated session changes.
263
- - Exclude iframes from built-in screenshots and omit directly selected editable/form descendants from DOM exports.
264
- - The separate MCP **0.2.1** release trims deployment URLs before credential redaction and clarifies local snapshot retention.
42
+ ### Changed
265
43
 
266
- ## [0.7.6] - 2026-10-18
44
+ - One package to install. `@commentkit/comment-kit` now also contains the build plugins and the command-line tool, which used to be the separate packages `@commentkit/build` and `@commentkit/cli` (this release replaces them; install this one instead):
45
+
46
+ - Build plugins: `import commentkit from "@commentkit/comment-kit/vite"`, `import { withCommentKit } from "@commentkit/comment-kit/next"`, `import { CommentKitWebpackPlugin } from "@commentkit/comment-kit/webpack"` (loader: `@commentkit/comment-kit/webpack/loader`) and `import commentkit from "@commentkit/comment-kit/astro"`. They replace the `@commentkit/build/…` imports one for one; there is no separate dev dependency any more. The building blocks the old package exported from its root (`transformSource`, `resolveBuildInfo` and so on) are not part of the new package.
47
+ - Command-line tool: the package has a `commentkit` command. `npx @commentkit/comment-kit init|doctor|login|pull|open|token|mcp`, before and after the package is installed. `npx @commentkit/comment-kit init` installs this one package and writes the plugin imports from `@commentkit/comment-kit/vite`, `/next` and `/astro`.
48
+ - The package still has no runtime dependencies: the plugins' parser (`@babel/parser`) and `magic-string` are bundled, and their licence notices ship in `dist/node/THIRD_PARTY_NOTICES.txt`. `vite`, `webpack` and `astro` are optional peer dependencies, like `react`, `vue` and `svelte`. Browser code never loads the plugins or the CLI: importing a plugin into code built for the browser fails with one error that says to use it in the build config.
49
+ - Node versions: `engines` stays `>=18`, the lowest that is true for installing the package and using the browser SDK. The build plugins need Node 22.18+ or 24.11+ (what the bundled parser supports): on an older Node they print one warning and the app builds without source locations. The CLI needs Node 20+ and says so in one line when started on an older one.
50
+ - Sessions are bound to this browser (DPoP, RFC 9449), which the CommentKit API now requires for every widget session. At the first sign-in the widget makes a non-extractable ECDSA P-256 key for the website and keeps it in IndexedDB (database `commentkit`, store `keys`), shared by every tab of the site; every request that starts, renews or uses a session, or a guest's comment waiting for its code, carries a new proof signed with it, and the session goes as `Authorization: DPoP` instead of `Bearer`. A token copied out of the page is useless elsewhere and after the tab closes. Signing out deletes the key; the next sign-in makes a new one. Where IndexedDB is unavailable the key stays in memory and the session ends with the page (its refresh token is not stored). When the API asks for a server nonce the widget signs again with it, and a device clock that is off is corrected from the server's `Date` header where the browser can read it. Custom UIs (`/headless`) get the same through `AuthManager`; an `ApiClient` given your own token provider without proofs still sends `Bearer`. The signing code is a lazy chunk: pages where nobody is signed in never download it. Agent tokens, the CLI and the MCP server are unchanged.
51
+ - Build plugins (`@commentkit/comment-kit/vite`, `/next`, `/webpack`, `/astro`): new `buildInfo` option (`true` by default, `"development"` or `false`) decides whether the git branch and commit go into the bundle; production builds can now leave them out. The plugins no longer define `import.meta.env.VITE_COMMENTKIT_BRANCH` / `_COMMIT` (Vite) or `process.env.COMMENTKIT_BRANCH` / `_COMMIT` (webpack): those names are gone. Branch and commit now reach the page only as `__COMMENTKIT_BUILD__`, which the SDK reads by itself (its own branch detection), so there is nothing to wire up; if your code read the old names, read `__COMMENTKIT_BUILD__` instead. Source locations need Node 22.18+ or 24.11+, the versions the bundled parser (`@babel/parser` 8) requires; on an older Node the plugins print one warning and the app builds without them. Files that cannot be tagged (a parse error, a compiler that fails, a loader that cannot load) now print one warning that says what to do instead of being skipped silently. Source maps from the tagger no longer contain absolute file paths.
52
+ - **Page identity.** Pages are compared by their page key, as the server does: `/pricing?utm_source=x` and `/pricing/` are `/pricing`, so tracking parameters no longer hide a page's feedback. When a project ignores more parameters, the server's key for the page wins. `pageKey()` is exported from `@commentkit/comment-kit/headless`, and `client.pageKey()` gives the current page's key.
53
+ - **Email sign-in links** now carry their secret in the address's fragment (`#ck_signin=`, or after `&` inside a hash route). The widget takes it off at once and hands it to the sign-in window in that window's own fragment; older `?ck_signin=` links still work.
54
+ - **Browser extension sessions** have no refresh token any more: they stay in memory for the tab, and when one runs out the widget asks the extension again. If the extension says no, the normal sign-in is offered.
55
+ - **A version CommentKit switches off** (`disabled_reason: version_blocked`) stays completely silent and checks back every minute, so switching it on again brings the widget back. `npx @commentkit/comment-kit doctor` says so in plain words.
56
+ - A simpler widget for clients and reviewers. People who can't triage now see only what they need: comment, their conversations, reply, resolve or reopen, attach files, and the screenshot to draw on. Checklists, "Adjust style", the formatting buttons, technical details (window size, version, commit), sort and filter controls, and the keyboard shortcuts list stay with the team, and single-key shortcuts start off for clients (they can turn them on in Settings). Two new options, `tools.style` and `tools.checklist`, turn those tools off for everyone; `<comment-kit>` takes `redact` and `tools-off` attributes. Plainer wording in a few places, sizes such as "25 MB" in the reader's language, and accessibility fixes (cards are non-modal regions, buttons stay focusable when unavailable, cards open on the reading side in right-to-left languages).
57
+ - Every entry, `/element` included, can be imported during server rendering.
58
+ - `signIn()`, `open()`, `comment()`, `signOut()` and the other methods never throw or reject into the page; an `on()` listener that throws is logged once and changes nothing in CommentKit.
59
+ - Each `init()` call returns its own handle and the widget stays until the last one is destroyed, so the React, Vue, Svelte and element wrappers no longer remove each other's widget. The Vue plugin releases with the app, the Svelte action restarts on `update`, and the element applies every attribute change. A second `init()` with another project key says so once.
60
+ - The npm package and the script tag on one page start one widget, not two. `init()` with a bad key, or during server rendering, gives a `client` stand-in instead of `undefined`.
61
+ - The CDN loader waits at most 1.5 s for the canary channel, and falls back to the stable version when a canary will not start. The `?ck_signin=` link is taken off the address bar before anything else loads.
62
+ - The page's feedback reads up to 500 threads (`moreThreads` says when there are more) and ignores answers for a page already left.
63
+ - No `Array.prototype.at` (Safari before 15.4). After 3 crashes in a row the widget stays hidden for 6 hours (the shortcut still shows it). The sign-in code is fetched ahead after every sign-out, so the sign-in window opens straight from the click. Adding a checklist item is safe to retry, and an edit or delete whose answer was lost reloads the thread before saying so.
64
+ - Pins land on the right one of several look-alikes ("Edit" in every row, a row of images): a comment remembers its row or file name too. Comments left before this still resolve as they did. A pin that can only guess between equal matches shows as moved, not anchored.
65
+ - Pins for content that renders late (route changes, hydration, data after a skeleton) appear within half a second instead of up to a few seconds later.
66
+ - Busy, animated pages with many pins do far less work: page changes are batched, nothing is re-measured while scrolling, and nothing is kept for comments no longer on the page.
67
+ - Comment pins have a thinner dark outline: about 1 px, where it was about 1.5 px. The pin's colour, shape and size are unchanged.
68
+ - In step with the current CommentKit API.
69
+
70
+ - **Page keys match the server's.** The address the widget sends and links to keeps every query pair as written (taking off CommentKit's own parameters no longer re-encodes the rest: `?ids=1,2` used to become `?ids=1%2C2`, so new pins and live updates could miss the page). Hash routes (`#/…`, `#!/…`) get the address's rules, the website's own "parameters that do not change the page" from the widget settings apply before anyone comments on a page, and `page.url` is capped at the API's 2,000 characters. `pageKey(address, ignored)` in `/headless` follows the same rules.
71
+ - **Sign-in from your website.** `identify()` waits out a busy answer (`429`, `Retry-After`) and tries again a few times, and never re-sends a token that may already have reached the server (a function is asked for a new one). The console explains `identity_conflict` (turn on "Trust email addresses from my website's login"), `guest_removed` and `plan_required`. New: `window.CommentKit.signOut()` and `<comment-kit>.signOut()`, for your own logout.
72
+ - **Dashboard privacy.** "Hide everything people type in screenshots" in the website's settings now applies (the stricter of it and `init({ privacy })` wins), and a website's own privacy notice is linked for guests next to CommentKit's.
73
+ - **Attachments** offer and accept only the types the website allows (your CommentKit workspace may limit them to images). On an images-only website a refused file says "This website accepts images only."
74
+ - **Trying CommentKit out before choosing a plan.** On any address that is not local, visitors and reviewers see nothing at all (as for a switched-off version: no launcher, no "paused" note, no crash report; the widget asks again every minute), and a signed-in team member sees one note: "Choose a plan to use comments on your live website." On localhost nothing changes. Sign-in from your website is not tried there.
75
+ - **Emails and sign-in windows in the reviewer's language.** The widget sends its language (`en`, `es`, `fr`, `de`, `pt-BR`, `it`, `nl`, `ja`, `zh-CN`, `hi`, `ar`) when a guest starts commenting, with sign-in from your website, and to the sign-in windows (`?locale=`). The code step quotes the code email's subject in that language.
76
+ - **Too large.** A comment or file the server refuses as too large (`413`) says "That's too big to send. Try a shorter comment or a smaller file."
77
+ - **Team-only replies** carry a small "Team only" label for team members.
78
+ - **Guests** are told plainly when the website has sent too many codes today.
79
+ - **Live updates** stay off without retrying when the project has as many live connections as its plan allows; the widget refreshes every minute instead.
80
+ - **CLI.** Every command is printed as `npx @commentkit/comment-kit <command>` (a bare `npx commentkit` outside an installed folder runs an unrelated package). `login` opens the plain sign-in page and prints the code to type there (never a link with the code in it); a sign-in from an older CLI says to log in again; `doctor` says when a newer SDK is available.
81
+ - Pages are compared by their page key everywhere in the widget. A change of tracking parameters only (`utm_*`, `gclid` and the like) in a single-page app no longer reloads the page's feedback or closes an open card; live updates use the page key the server sends (`page_key`) and fall back to the path for older servers; a half-written comment is kept per page key, so it is still there when you come back through a link with other tracking parameters (drafts saved by earlier versions are picked up once); and the page sign-off is read again only when the page key changes. Signed-in people who can comment now have "Approve this page" in the toolbar's More menu: it opens the inbox on "This page" at the sign-off row. A version CommentKit has switched off stays silent at once even when the project was paused before. In Firefox, "Comment on the whole page" could not be clicked in comment mode (the widget's layers lost their order there); fixed.
82
+
83
+ Every way of signing out now leaves nothing of that person's on the computer: `signOut()` from your code, signing out in another tab and a session the server ended clear their drafts and half-written comment like the widget's own Sign out did (when the widget is not on the page at the time, at the next time it shows). The Vue `<CommentKit>` component now starts again when `project`, `branch`, `commit`, `endpoint`, `privacy` or `toggleShortcut` change, like the React and Svelte helpers; a new `identity` token still signs in without a restart.
84
+
85
+ CLI: `npx @commentkit/comment-kit doctor` now names the right directive when only `default-src` blocks CommentKit (add a `connect-src`, `img-src` or `script-src` that keeps what `default-src` allows, instead of opening `default-src`), and warns when the page requires Trusted Types with a `trusted-types` list that leaves out CommentKit's `commentkit-capture` policy (screenshots would not be taken), with the exact line to use.
86
+ - A cleaner comment box: checklist, task details and style changes are icon buttons in the footer and open when you need them. At rest the card shows only the text box and Send.
87
+ - One consistent look across every part of the widget: the same spacing, type sizes, corner radii and motion in light, dark, right-to-left and phone layouts, with 44 px touch targets and hover, focus, pressed and disabled states on every control.
88
+ - Your brand colour stays readable as text and focus rings, whatever accent the project uses (at least 4.5:1 contrast).
89
+ - Less motion: Esc closes things instantly, and decorative animations are gone. The inbox opens and closes with the same movement.
90
+ - The widget now catches up on comments and replies it missed. It reloads them when the live connection comes back, when the browser is back online, and when someone returns to a tab that was hidden for more than a minute. While live updates are off, it checks about once a minute. On plain http pages, sign-in now explains that it needs a secure (https) address. Single-key shortcuts (C, J, K, E, ?) only work when nothing on the page has focus, or when focus is in the widget, so they no longer take keys from the site's own grids, menus and editors. Address changes that a sandboxed frame refuses no longer stop the widget. The widget is left out when the page is printed. Page styles can no longer hide or move it. From the script tag, it joins the page only once the page has finished loading. Toolbars, cards and notes stay readable in older browsers without color-mix(). The guest privacy note now mentions the screenshot and basic browser details. Technical details are never ticked in advance for clients and guests, and "See what's included" shows them before sending. The screenshot preview opens full size. Drafts now belong to the person who wrote them and are removed when they sign out. Clients on a preview build see their feedback from every version of the site.
91
+ - The widget now handles bad networks and unusual pages more gracefully. Requests that never answer give up after 30 seconds and show the usual "couldn't reach CommentKit" message, and uploads stop only when no data has moved for 30 seconds, so large files on slow connections still finish. Signing out in one tab now signs you out in your other tabs too. Comments, uploads and replies work on plain http pages, and sign-in there fails with a clear error instead of breaking. Captured network addresses no longer keep tokens hidden in the path. Turning the widget off no longer removes console or network hooks that other tools such as Sentry added after it, and console and network capture now loads only for projects that turned it on. A broken or hostile comment can no longer slow the page down while the widget looks for the element it points at. The handoff to AI coding agents keeps every detail that came from the reviewer's page inside the untrusted section. The sign-in code loads only when someone signs in, which makes the startup script smaller.
267
92
 
268
- - Support project-scoped reviewer sessions without granting workspace or billing access.
269
- - Validate captured invitation links before email verification; complete enrolled MFA before accepting access and discard stale invitation challenges.
270
- - Keep sign-in retries working after invitation acceptance or session restoration, and refresh pending reviewer invitation challenges when resending email codes.
271
- - Match list, marker, checklist and composer controls to reviewer/triage capabilities while preserving older backend permissions. Reviewers can resolve their own feedback; workspace members control triage and completion.
272
- - Make the list's Reopen action reopen resolved feedback instead of sending another resolve request; use the latest thread status after concurrent changes.
273
- - Restrict agent handoff controls and single/multiple element exports to workspace members when the backend returns that capability. Keep reviewers mentionable without offering them as workspace assignees.
274
- - The separate MCP **0.2.0** release requires a dedicated project-scoped, read-only agent token and numeric project ID. It no longer sends public project keys or accepts SDK login tokens; update existing MCP configurations with the paired backend.
275
- - Reject unsafe MCP server URLs without reflecting credential-bearing input in errors.
93
+ ### Removed
276
94
 
277
- Keep project-reviewer access disabled until the paired backend migrations, private downloads and real invitation/OTP/MFA checks pass. Stage these immutable packages under `next`, then promote only after backend acceptance.
95
+ - The person's email address is no longer in `ready` and `session:change` payloads or `session()`. The page has no need for it, and leaving it out keeps it away from the page's own scripts, analytics and error trackers; the widget still has it for Settings.
96
+ - Build plugins: `import.meta.env.VITE_COMMENTKIT_BRANCH` / `_COMMIT` (Vite) and `process.env.COMMENTKIT_BRANCH` / `_COMMIT` (webpack) are no longer defined.
97
+ - The building blocks `@commentkit/build` exported from its root (`transformSource`, `resolveBuildInfo` and so on) are not part of this package.
278
98
 
279
- ## [0.7.5] - 2026-10-17
99
+ ### Fixed
280
100
 
281
- - Require the enrolled second factor after SDK email sign-in, including recovery-code support.
282
- - Patch checklist items independently so concurrent reviewers do not undo each other.
283
- - Use compact cursor pages and server-side search; load older replies on demand.
284
- - Reconcile delayed collaboration events using authoritative thread reads.
285
- - Keep screenshot retries on the shared idempotent creation and notification path.
286
- - Keep Sonner toast styles inside the widget Shadow DOM without injecting a duplicate stylesheet into the host page.
287
- - Remove bundled development diagnostics and load screenshot code only when needed, retaining the original package-size budgets.
288
- - The separate MCP **0.1.1** release uses server search and explicit list/reply continuation.
101
+ - The comment box no longer shrinks for a moment when its screenshot arrives. The screenshot frame used to empty out between "Taking screenshot…" and the picture, so the card lost about 150 px and Send jumped up; pressing Send just then did nothing (the press ended below the card) and said nothing. The picture now appears in the same step, Send stays put, and the press sends.
102
+ - Keyboard shortcuts act on the comment on screen. Pressing E right after J or K (before the browser had drawn the next frame) could resolve the comment shown before instead of the one just opened, and a quick second J could open the same comment again. The card now switches comments, and the shortcuts follow it, before the next key press can arrive.
103
+ - Editing a reply: selecting all the text as soon as the edit box appeared, then typing, could add the new text after the old instead of replacing it (the box moved the cursor to the end a moment later). The box is ready, cursor and all, the moment it shows.
104
+ - Stepping to the next comment (J / K, Previous / Next) while a change to the previous one was still saving no longer brings the previous comment back on screen when the answer arrives, so the next reply or E goes to the comment you are looking at. A reply sent just before stepping no longer appears under the next comment or empties its reply box, and a checklist item or style preview started on one comment never carries over to the next.
105
+ - Sending a comment again right after changing its text (after a failed send) sends the new text, not the earlier attempt's.
106
+ - Page sign-off follows navigation in single-page apps: the row never shows the previous page's approval while the new page loads, and Undo after approving withdraws the page you approved, even after you moved on to another one.
107
+ - Enter pressed right after C (comment mode) comments on the element you had focused; it never reaches the page's own focused link or button.
108
+ - Two deletes in a row (two "Reply deleted" toasts) both happen: the second toast used to replace the first without finishing its delete, so leaving the page within the Undo time brought the first reply back. Every toast with a change behind Undo now finishes it exactly once however it goes (replaced, pushed out, closed, timed out, the page left, the widget closed), unless Undo was pressed.
109
+ - Send to agent sends the comments ticked now, also when you tick or untick one with its menu open.
110
+ - Keyboard focus moves into the image viewer, the drawing editor, Settings, the shortcuts list, the code step, the ⋯ menu, the send-to-agent menu, the inbox and its filter lists as they appear, so a key pressed at once (Esc, an arrow, typing the code) goes there and not to what was behind.
111
+ - The site's `redact` selectors (dashboard and `init({ redact })`) and `privacy: "strict"` now apply to every comment's anchor, including signed-out and share-link guests, not only signed-in people. Comment mode starts once they are in place, and screenshots get the privacy mode too.
112
+ - `privacy` and `toggleShortcut` work in every wrapper: the React, Vue and Svelte helpers (changing either restarts the widget), the `<comment-kit>` element (`privacy="strict"`, `toggle-shortcut="false"`) and the script tag (`data-privacy="strict"`, `data-redact=".card-number, #ssn"`).
113
+ - `show()`, `open()` and `comment()` put the widget on the page at once, even while a script-tag page is still loading.
114
+ - The stand-in `init()` returns on the server or with a bad key answers any property or call on its `client` without throwing.
115
+ - Console messages for a missing or wrong project key, a widget that could not load, a second copy of the SDK, a second `init()` with another project and the crash cool-off say what happened, what to do and where to read more.
116
+ - A CDN canary that stays off is reported once, like a canary that crashes.
117
+ - The headless entry gives the same privacy-aware anchors as the widget, and exports `configurePrivacy`.
118
+ - On a branch preview, a client's first load asks for every version once, instead of this build's version and then every version.
119
+ - A comment posted, changed or deleted while the page's comments are loading is no longer lost or brought back by that load.
120
+ - The inbox says "Showing the first 500 comments on this page" when a page has more.
121
+ - A published guest comment's text no longer comes back as a draft after the email code step.
122
+ - A widget that fails to mount no longer leaves console and network capture behind, and a destroyed handle's `on()` adds no listener.
123
+ - `require("@commentkit/comment-kit")` (and every other entry: `/react`, `/vue`, `/svelte`, `/element`, `/headless`) now resolves instead of failing with `ERR_PACKAGE_PATH_NOT_EXPORTED`, for Jest in CommonJS mode and CommonJS server rendering. Each entry gained a `default` condition pointing at the same ES module, which Node 20.19+ and 22.12+ load through `require()`.
124
+ - Focus no longer jumps to the page after editing a checklist, task or drawing.
125
+ - Pins, unread notifications and the Undo toast are announced to screen readers; the Undo toast waits while you hover or focus it.
126
+ - On phones, replies in the inbox stay above the keyboard, guest name and email fields no longer zoom the page on iOS, and hover actions no longer stick after a tap.
127
+ - German and Arabic labels no longer overflow, counts above 99 show as "99+", and long names show in full on hover.
128
+ - A half-typed checklist item is no longer sent after the checklist is closed, and a reply can't be sent while offline.
289
129
 
290
- SDK 0.7.5 and MCP 0.1.1 were released with the paired backend audit-hardening update.
130
+ ### Security
291
131
 
292
- All notable changes to this project will be documented in this file.
132
+ - Text from redacted elements (`data-commentkit-redact`, your `redact` selectors, private fields) and anything typed or chosen in a form is no longer kept with a comment to find its spot again. A quote that takes in redacted text is dropped.
133
+ - Console and network diagnostics remove email addresses and phone, card and account numbers from URLs and messages. Logged objects are read one level deep, so a huge or unusual object can never slow down or break your own console logging.
134
+ - The CLI no longer signs you out when two commands refresh at the same time, never overwrites a damaged credentials file (it keeps a copy and says where), retries dropped connections and server errors the same way the MCP server does, and fences the project name in `.commentkit/feedback.md`. `npx @commentkit/comment-kit init` edits only the top-level `plugins` of a Vite config, wraps only the default export of `next.config`, finds the package manager at the workspace root, sets up React Router 7 and Remix in `app/root`, and prints the snippet when a file cannot be edited safely. The MCP server fences error messages from the API, caps screenshots at 8 MB while they download and accepts only images, and links only http(s) URLs. It now depends on exact versions of `@modelcontextprotocol/server` and `zod` (the ones it was tested with), so `npx comment-kit-mcp` no longer picks up newer, unreviewed releases. Both packages accept the same `COMMENTKIT_ENDPOINT` values.
293
135
 
294
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
295
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
136
+ ### Upgrading
296
137
 
297
- ## [0.7.4] - 2026-10-17
138
+ - **Breaking:** `@commentkit/build` and `@commentkit/cli` are replaced by this package. Uninstall them, change each `@commentkit/build/…` import to `@commentkit/comment-kit/…` (`/vite`, `/next`, `/webpack`, `/webpack/loader`, `/astro`), and run the command-line tool as `npx @commentkit/comment-kit <command>`.
139
+ - **Breaking:** if your code read `import.meta.env.VITE_COMMENTKIT_BRANCH` / `_COMMIT` or `process.env.COMMENTKIT_BRANCH` / `_COMMIT`, read `__COMMENTKIT_BUILD__` instead. The SDK reads it by itself, so most apps have nothing to change.
140
+ - **Breaking:** the person's email address is no longer in `ready`, `session:change` or `session()`. If your page used it, take it from your own sign-in instead.
141
+ - **Breaking:** widget sessions are bound to the browser. The widget and `AuthManager` in `/headless` do this for you.
142
+ - The build plugins need Node 22.18+ or 24.11+ for source locations, and the command-line tool needs Node 20+. Installing the package and the browser SDK still work on Node 18.
298
143
 
299
- ### Fixed
144
+ ## [1.6.0] - 2026-11-10
300
145
 
301
- - Fix screenshots on SVG transitions and long pages; preserve scroll position, host styles, redaction and custom providers.
146
+ ### Added
302
147
 
303
- ## [0.7.3] - 2026-10-17
148
+ - **Email links that sign reviewers in:** a link carrying `?ck_signin=` opens the guest sign-in with the email address filled in, and the code goes to that address. The token is removed from the address straight away and kept only in memory, never stored or logged. The link also shows the widget on a live site.
149
+ - **Emails at the right hour, in the right language:** when a guest confirms their code, the widget sends their time zone and the widget's language, so email summaries arrive at a sensible local time.
150
+ - **Formatting shows as you write:** Bold, Italic, Strikethrough and Code (toolbar or Cmd/Ctrl+B, I, Shift+X, E) appear formatted in the comment and reply box instead of as `**` and `_` markers. Comments are still stored as the same lightweight markdown, so the dashboard, MCP server and agents read them as before.
151
+ - **Markdown typed by hand turns into formatting:** `**bold**`, `~~strike~~`, `_italic_` and `` `code` `` format as soon as you type the closing marker. Cmd/Ctrl+Z brings the markers back; words like `snake_case_name` stay as they are.
152
+ - **Reliable undo and redo** in the comment and reply box, a word at a time, up to 100 steps.
304
153
 
305
- ### Fixed
306
-
307
- - Match saved checklist controls to the server's author and comment-manager permissions. Collaborators and read-only workspaces can view checklist progress without being offered an edit the server will reject.
308
- - Wait for checklist saves, prevent overlapping writes, and show a retry message when a rejected edit rolls back. Preserve explicit API error codes and provide a safe permission message for uncoded HTTP 403 responses.
309
- - Open threads without replies at the original feedback instead of the empty reply section. Keep existing discussions at their newest reply and preserve a reader's position when the first reply arrives.
154
+ ### Changed
310
155
 
311
- ## [0.7.2] - 2026-10-17
156
+ - The code step names the email to look for: "Your code for {website}".
157
+ - Voice control finds the Assign button: its spoken name now starts with what it shows (WCAG 2.5.3).
158
+ - Dependencies updated: Preact 11.1, html2canvas-pro 2.6.
312
159
 
313
160
  ### Fixed
314
161
 
315
- - Apply host redaction markers to element grabs and agent exports, including private descendants and nested shadow roots. Omit form values, embedded documents and sensitive attributes without changing the host DOM.
316
- - Omit host cookies and referrers from API requests, reject ambiguous endpoint URLs, and stop unexpected redirects without silently replaying redirected writes.
317
- - Reject executable page-navigation links and external SVG paint resources in untrusted feedback.
318
- - Handle realtime capacity and service refusals without showing false presence or automatically retrying in a loop. Keep an explicit reconnect action available.
162
+ - Text typed with an input method (Japanese, Chinese, Korean, Android keyboards) gets the active format, and in Firefox it replaces the selected text instead of landing next to it.
319
163
 
320
- ### Changed
164
+ ### Upgrading
321
165
 
322
- - Document production integration requirements and the limits of SDK isolation. Shadow DOM is not a JavaScript security boundary.
323
- - Allow 312 KB for cumulative first-open gzip to accommodate the reviewed security guards; keep all other package-size and coverage limits unchanged.
166
+ - No action needed. Servers that don't yet accept the time zone and language ignore them.
324
167
 
325
- ## [0.7.1] - 2026-10-16
168
+ ## [1.5.1] - 2026-10-28
326
169
 
327
170
  ### Fixed
328
171
 
329
- - Restore secure realtime WebSocket connections and authorize presence using the current SDK session. Keep numeric channel identities separate from project URL slugs, and discard authorization responses after reconnecting, switching accounts, or disconnecting.
330
- - Normalize nullable author fields from Laravel broadcasts and retry failed channel authorization without duplicating subscriptions.
331
- - Fetch oversized comment and reply updates through the authenticated API when the backend sends a compact refresh event. Reconcile missed changes after authorized resubscription while retaining loaded pages, filters, the selected thread and drafts; ignore stale reads and retry transient failures within a bounded window.
332
- - Match current-page comments to query-string URLs, keeping the panel and page markers consistent during SPA navigation.
333
- - Clear text-selection tools when their live DOM range collapses after host content is removed.
334
- - Let an open widget popup handle Escape before closing the underlying comments panel.
335
- - Preserve the configured deployment branch for new feedback independently of the branch being viewed, including highlight, drawing, screenshot and offline creation.
336
- - Restore the production toolbar and pins after submitting a comment, while preserving deliberate visibility changes and cancellation. Hide saved highlight targets during placement so they cannot intercept new pins on the same text.
337
- - Capture pages using OKLCH, Display P3 and other modern CSS colors by normalizing only the temporary screenshot clone. Keep the converter lazy, preserve redaction, and leave the host page unchanged.
338
- - Save Element-tool attachments and device context through the shared composer flow. Retain failed drafts for retry and prevent canceled uploads from creating feedback afterward.
339
- - Confirm comment and reply saves using their own operation results. Concurrent realtime comments cannot clear a rejected draft, and another reply being removed cannot make a successful reply appear to fail.
340
- - Include full thread, attachment, annotation and deployment context in agent handoffs. Identify incomplete loaded snapshots and treat feedback as untrusted data; do not resolve another page's element against the current document.
341
- - Preserve a reader's scroll position when new replies arrive while they are reading older messages.
342
- - Expose authorized reply deletion with confirmation and keep parent and reply identifiers separate.
343
- - Apply backend read-only capabilities to comment mutations, uploads and offline replay. Distinguish an expired plan from project settings and individual storage or tool limits.
344
- - Keep a visible sign-in action for read-only projects, so members can still authenticate to read and export feedback. Resume retained offline edits when write access returns.
345
- - Explain that panel search and filters cover loaded comments, and keep pagination available when a search has no matches yet.
346
- - Refresh expired private attachment links without discarding loaded pages, the open lightbox or local drafts. Replace broken documentation links with the hosted developer guide and terms.
172
+ - Screenshots keep the page's styles on slow servers and cold CDNs: the capture reuses the styles the page already has instead of downloading them again.
173
+ - A clearer attachment icon in the comment box and the file list.
347
174
 
348
- ### Changed
349
-
350
- - Enforce the existing statement, branch, function, and line coverage targets in CI and the npm publication checks. Expand lifecycle, offline, tool, authentication, and browser workflow regressions without reducing coverage scope or thresholds.
351
-
352
- ## [0.7.0] - 2026-10-16
175
+ ## [1.5.0] - 2026-10-24
353
176
 
354
177
  ### Added
355
178
 
356
- - Automated packed-archive checks for public documentation, license notices, version consistency and excluded development artifacts.
357
- - A coordinated release checklist and expanded browser/framework consumer verification before publishing.
358
-
359
- - A complete, hashed inventory of all 477 reference files with per-file UI, logic, and API audit results in five-file batches.
360
- - Persistent reply quotes, reply reactions, composer file uploads, checklist and assignee creation, and parent metadata editing.
361
- - Stored resolution/completion timestamps with readable labels, idempotent transitions and correct clearing when replies reopen a thread.
362
- - Authenticated project context for real members, roles, storage usage and saved branches, plus `branch`, `setBranch()` and `reloadProjectContext()` integration APIs.
363
-
364
- - A dedicated `@commentkit/comment-kit/headless` entry for the engine and protocol types without React, widget mounting, or browser global registration.
365
- - A dedicated `@commentkit/comment-kit/demo` entry for the private browser-local sandbox. The original root export remains as a deprecated lazy wrapper.
366
- - Package, initial-load, first-open, and tool-activation size budgets, plus isolated consumer checks for the packed artifact.
367
- - A complete development stylesheet and dependency guards that preserve all 46 primitive families while checking production CSS coverage.
368
- - An interactive `/design-system` catalog with all 46 primitive families, 111 examples, local brand fonts, light/dark modes, RTL, and mobile browser coverage. Gallery assets remain excluded from npm.
369
-
370
- - A `/design-system/product` preview for the assembled widget, with real product components, production CSS, local fixtures and save-failure simulation.
371
- - Read-only source comparisons for 39 main product states across desktop/mobile and light/dark themes, plus optional tools and primitive states.
179
+ - **Guests see who gets their details:** a short line under the name and email fields says where they go, with a link to the privacy notice.
180
+ - **The task description shows in the card** (read-only, folded when long), and "Copy for AI agent" and "Send to agent" include it.
181
+ - **Long conversations show every message,** including replies past the first 100.
182
+ - **"30+ results" and Show more** in the inbox lists while there are more.
183
+ - **Edit conflicts are handled:** if someone changed a message or description a moment ago, the card says so and shows their version. Editing a message notifies people newly @mentioned in it.
184
+ - For developers: `allMessages(threadId, { refresh })`, `inboxPage()` and `EDIT_CONFLICT` (from `/headless`); `editMessage(id, body, { mentionIds })`. Messages carry `etag`; inbox items' `kind` is typed as `InboxKind`.
372
185
 
373
186
  ### Changed
374
187
 
375
- - Build all framework entries together, sharing the engine, UI, styles, and lazy Pusher chunk. Remove private implementation declarations from the published archive while retaining public type dependencies.
376
- - Load the full widget on activation and specialist tools when used. Preserve access gates, drafts, dialogs, cleanup, and retry/cancel behavior.
377
- - Exclude currently unused primitive styles from production; retain their complete source and parity coverage in the catalog. Load tool styles inside the widget's Shadow DOM with their tools.
378
- - Upgrade development dependencies, including Base UI 1.9, TypeScript 7, Vite+ 1.3, Vitest 5, React 19.3, and the framework test runtimes. Use standard V8 coverage instead of the custom compatibility provider.
379
- - Mark React and ReactDOM as optional npm peers for headless installations. **Built-in UI consumers must explicitly install matching React and ReactDOM 18+ versions**, including vanilla and non-React adapters.
380
- - Allow the React client entry to be imported directly from a Next.js server layout; the widget mounts after hydration. A mandatory `next/dynamic` workaround is no longer needed.
381
- - Reduce initial SDK loading with shared lazy bundles. The performance audit records the original 262.8 KB React initial gzip and the measurements before this feature port; the full port audit records the current build. External peers are excluded from browser estimates.
382
-
383
- - Adopt Message/Bubble/MessageScroller replies, Attachment/AspectRatio media, Combobox assignees and Item settings rows. Keep current-user alignment, actual SDK shortcuts and real backend actions.
188
+ - **Smaller on pages where the widget stays hidden:** `init()` downloads about 9.7 KB instead of 19.9 KB; strings, console capture and the widget load only when it shows.
189
+ - Screenshots also grey out email, phone and address fields, and console capture removes email addresses.
190
+ - Due dates are calendar days everywhere, with no shift by a day west of UTC.
191
+ - Config re-reads send `If-None-Match` and no longer count as widget loads.
192
+ - Fewer requests: no mark-read call when nothing is unread, one refetch after "Mark all as read".
384
193
 
385
194
  ### Fixed
386
195
 
387
- - Reconcile dependent offline edits, deletions and reply reactions without restoring removed comments or losing newer optimistic changes.
388
- - Build an optimizer-compatible Qwik library, preserve the legacy hook alias, and keep the hook's bridge methods usable after client resumption.
389
- - Avoid WebKit resize loops in nested assignee filters and History API limits during rapid gallery navigation.
390
- - Return keyboard focus to the actual attachment thumbnail after closing saved-image or draft-preview lightboxes, including Safari pointer interactions.
391
- - Prepare production Angular dependency injection without requiring the JIT compiler.
392
- - Ignore obsolete authentication responses after OTP cancellation, account replacement, logout or destruction, including late 401 responses from a previous session.
393
- - Forward vanilla attachment targets and expose the scoped Escape-release callback consistently with the core API.
394
- - Correct SvelteKit/Nuxt lifecycle examples and include customer-facing API and security documentation in the npm archive.
395
-
396
- - Fetch project-wide comments for the All tab, paginate within the selected branch, and retrieve shared-link targets beyond the first page.
397
- - Keep drafts and successful uploads across failed saves; preserve quote, mention and branch metadata through offline replay and local-demo reloads.
398
- - Ignore stale responses after logout, account changes, branch changes or link navigation; derive realtime reaction ownership for the recipient.
399
- - Preserve drawing gestures, screenshot provider/crop/export behavior, nested highlight offsets and mobile tool containment.
400
-
401
- - Include highlight and drawing threads in the sidebar, keep the panel aligned with the dragged toolbar, and collapse list filters on scroll with keyboard focus recovery.
402
- - Keep nested Select/Combobox menus above the docked panel and mobile sheet.
403
- - Preserve reply/edit drafts after failed saves, guard IME submission and draft length, invoke supplied upload cancellation/retry callbacks, and restore lightbox navigation and thumbnail reopen selection.
404
- - Pass actual thread status to Resolve/Reopen controls and keep same-name assignees distinct by ID.
405
-
406
- - Prevent a redundant remote-cursor CSS import from emitting an unscoped document stylesheet.
407
- - Keep tool loading failures recoverable without resurrecting canceled or destroyed widgets.
408
- - Preserve link semantics for navigation controls after the Base UI upgrade.
409
- - Restore InputOTP default values, active slots, caret movement, and replacement editing inside Shadow DOM without controlled/uncontrolled warnings.
410
- - Match reference focus borders, brand-font glyph fallbacks, and Button background clipping in Sheet, Combobox, and MessageScroller controls.
411
- - Interpolate Attachment and MessageScroller edge fades smoothly inside Shadow DOM.
412
-
413
- ## [0.6.9] - 2026-10-16
196
+ - A revoked or expired session asks you to sign in again instead of retrying for ever, and several tabs waking up together no longer sign each other out.
197
+ - After signing out, switching account or going from guest to member, live updates reconnect for the new person.
198
+ - A comment never fails because of build details the server would refuse (an unusual branch name or source path); they are left out with one console warning.
199
+ - Undo after "Looks good — resolve" works for reviewers.
200
+ - Uploads, "mark read" and retried requests never count twice.
201
+ - "You appear to be offline" shows only when the browser really is offline.
202
+ - Opening a card from an email link marks it read.
203
+ - Arabic uses the right plural forms; a new comment's checklist stops at 30 items instead of silently dropping the 31st.
414
204
 
415
- ### Added
205
+ ### Upgrading
416
206
 
417
- - `createCommentKitDemo` mounts the real widget with a private 24-hour browser store. It does not use a project key, OTP, network, uploads, or the offline queue.
207
+ - Reviewers see more grey boxes in screenshots (email, phone and address fields).
208
+ - `due_at` values are dates (`2026-10-24`), not date-times. Code that parsed them as instants should read them as days.
209
+ - The browser extension uses a private channel that needs widget 1.5.0 or later; with older widgets it falls back to the built-in screenshot.
418
210
 
419
- ### Changed
211
+ ## [1.4.0] - 2026-10-23
420
212
 
421
- - The launcher uses the CommentKit mark, and the widget theme is Electric Persimmon, Deep Graphite, and Warm Stone.
213
+ ### Added
422
214
 
423
- ## [0.6.8] - 2026-10-12
215
+ - **Works through Google Tag Manager:** the loader also reads the key from its own address, `loader.js?project=pk_live_…`. A tag with no key says so in the console.
216
+ - **Edit suggested style changes after sending:** the comment's author and the team get Edit on a conversation's style changes, with a live preview.
217
+ - **Comments inside nested previews:** comment mode reaches iframes inside iframes (up to four deep) and web components inside iframes, and comments find their way back.
218
+ - **Quote text inside iframes and web components.**
424
219
 
425
220
  ### Fixed
426
221
 
427
- - On production sites, choosing Pin, Element, or another tool no longer hides the toolbar. Leave the tool with Escape, or press the shortcut again, without reloading.
222
+ - With Turbo, Livewire `wire:navigate` and htmx boost, the loader starts once and pins keep up when the whole `<body>` is swapped.
223
+ - Short agent links keep the style changes.
224
+ - Pins inside iframes move with the iframe's scroll and hide when their spot is scrolled out of view.
428
225
 
429
- ## [0.6.7] - 2026-10-12
226
+ ## [1.3.0] - 2026-10-23
430
227
 
431
- ### Changed
432
-
433
- - Comments panel, composer, drawing canvas, toolbar, and screenshot annotator use the shared UI: unread threads, quoted highlights, pin dragging, live cursors, and the shortcut list.
228
+ ### Added
434
229
 
435
- ## [0.6.6] - 2026-10-11
230
+ - **Suggest a style change:** on an element comment, "Adjust style" lists its font, colours, spacing, border, size and layout. Changes preview live on the page and are saved with the comment ("font-size 48px → 40px"); agent prompts, the MCP server and the CLI include them. The page is always put back afterwards.
231
+ - **Comment on anything you can see:** comment mode reaches inside web components (open shadow roots) and same-origin iframes (`anchor.shadow_path`, `anchor.frame`).
232
+ - **Source locations without the build plugin, in development:** on dev builds of React 18 and 19, Vue, Svelte and Preact, comments record the file, line and component. Nothing is read on production pages.
436
233
 
437
234
  ### Fixed
438
235
 
439
- - The widget mounts in Vue and other Vite apps whose optimizer exposes React only as a default export.
236
+ - Pins stay on their spot: they hide while scrolled out of a scroll box or carousel, follow fixed bars, and catch up when an image loads or an accordion opens.
237
+ - Hovering a small inline element outlines the paragraph around it.
440
238
 
441
- ## [0.6.5] - 2026-10-11
239
+ ## [1.2.1] - 2026-10-23
442
240
 
443
241
  ### Fixed
444
242
 
445
- - The comments panel shows Log out only after a successful sign-in.
243
+ - **Open in Cursor** opens Cursor straight away, and **Open in Claude Code** starts in your clone of the project's GitHub repository.
446
244
 
447
- ## [0.6.4] - 2026-10-11
448
-
449
- ### Changed
450
-
451
- - Production, staging, and preview hosts keep the toolbar and comments hidden until the keyboard shortcut and a successful login. Local development still shows the widget.
245
+ ## [1.2.0] - 2026-10-22
452
246
 
453
247
  ### Added
454
248
 
455
- - Log out control in the comments panel.
456
-
457
- ## [0.6.3] - 2026-10-11
458
-
459
- ### Changed
249
+ - **Send to agent from the inbox:** pick comments and send them in one prompt to Cursor, Claude Code or Codex, with the full prompt also on the clipboard. For team members allowed to export for agents.
250
+ - Agent prompts include priority and the checklist.
460
251
 
461
- - Package name is `@commentkit/comment-kit`.
462
- - Default API host is `https://api.commentkit.dev/api`.
463
-
464
- ## [0.6.1] - 2026-06-19
252
+ ## [1.1.3] - 2026-10-22
465
253
 
466
254
  ### Fixed
467
255
 
468
- - **Duplicate comments/replies on retry.** Optimistic creates and replies now send an `Idempotency-Key` (the client-generated temp id) on both the initial request and any offline-queue replay. A retried write — after a dropped response or a reload while offline — is deduplicated by the backend and returns the existing record instead of inserting a duplicate. (Requires backend support for the `Idempotency-Key` header.)
469
-
470
- ## [0.6.0] - 2026-06-19
471
-
472
- ### Added
473
-
474
- - **Element grab composer: drafts, attachments, smarter overlay detection.** `grabElement` / `grabElements` accept new `DevGrabOptions` (`{ comment, attachments }`), re-exported from every adapter. Inline file attachment in the element-selector composer (image preview, name/path/size metadata, `pathSource` tagging). Comment drafts forwarded as a **Comment:** field in the grab payload. The element-selector tool now works pre-auth — "Grab for agent" no longer requires sign-in. `CommentKitConfig.baseUrl` is now public for self-hosted / staging / local API deployments.
475
- - **Shell UX states.** Offline / pending-mutation status chip, an initial-fetch loading affordance, a polite `aria-live` region announcing new comments and connection changes to assistive tech, post-login composer resume, screenshot capture/upload progress + error surfacing, configurable toaster position, and an RTL pass.
476
- - **Offline queue persistence.** The mutation queue survives a reload (persisted per project to `localStorage`) instead of silently discarding pending edits.
477
- - **React adapter parity.** `useCommentKit` now exposes the full bridge method surface, derived selectors, and `isReady` / `isLoading` / `error`, reading state via `useSyncExternalStore`.
478
- - **`ui.loadRemoteFonts`** opt-in flag — the Google-Fonts CDN request is no longer injected into the host page by default (privacy / CSP).
479
-
480
- ### Fixed
256
+ - Cmd/Ctrl+Shift+K no longer also opens the site's own search. Plain Cmd/Ctrl+K still belongs to the site.
257
+ - Pins step back under the site's own dialogs, menus and cookie banners, and come back when they close.
481
258
 
482
- - **Security.** HTTPS enforced for non-loopback API/WS hosts; screenshots redact `input[type=password]` and `[data-commentkit-redact]` regions; generic file uploads validate MIME/size and block dangerous extensions; MCP server fences untrusted comment content against prompt injection and sends the correct `page_path` filter; invite token is stripped from the URL after capture.
483
- - **Accessibility.** Removed `aria-hidden` from the Shadow-DOM host that was hiding the entire interactive widget from screen readers; priority badges now meet WCAG AA contrast; primitives forward orientation and refs; reduced-motion is respected.
484
- - **Correctness.** Offline-queue mutex no longer double-executes mutations; optimistic temp IDs reconcile with server responses; realtime echoes dedup and no longer double-count the actor's own reactions; per-entity rollback no longer clobbers concurrent updates; validation limits centralized so payloads valid at one layer aren't dropped by the next; inbound peer cursors are rate-limited.
485
- - **Framework adapters.** Angular and Svelte no longer construct the widget during SSR; Qwik uses `noSerialize`; Vue uses a render function instead of a runtime template string; pre-init event subscriptions are buffered instead of dropped; Angular gains the missing `grabElement` / agent-context methods; vanilla gains `toggleLoginModal`.
259
+ ## [1.1.2] - 2026-10-22
486
260
 
487
261
  ### Changed
488
262
 
489
- - **Build / release.** Portable `build:strip` (no longer BSD-`sed`-only); `SDK_VERSION` injected from `package.json` at build time; `sideEffects` scoped so the vanilla auto-init isn't tree-shaken; CI workflow added (check + test + build + e2e + markdown lint); `README.md` and `docs/` are now tracked and shipped; added `SECURITY.md`. Published bundles remain **minified without sourcemaps** so proprietary source is not distributed.
490
-
491
- ## [0.5.3] - 2026-05-14
492
-
493
- ### Fixed
494
-
495
- - **Next.js (App Router + Turbopack) builds without consumer-side `serverExternalPackages` config.** `pusher-js` is now lazy-loaded — its module body uses `self` + dynamic `require()`, which strict SSR bundlers evaluate at build time even for users who never enable realtime. Loading the entire `./core/realtime` module only when `initializeWebSocket()` is actually called keeps the non-realtime path zero-cost.
496
- - **Vite chunk-name collisions across adapter builds.** Each `BUILD_TARGET` now writes its chunks into `dist/<target>/[name]-[hash].js`. Previously every target wrote to the same shared chunk filenames (`dom.js`, `mount-ui.js`, …) and the last build overwrote earlier outputs, leaving every adapter except the last referencing chunks with stale, mismatched export bindings (`MISSING_EXPORT` at consumer build time).
497
-
498
- ### Verified
499
-
500
- End-to-end build smoke tests against a freshly scaffolded app per framework (installs the packed tarball, runs each framework's production build):
263
+ - **Sharper screenshots** with html2canvas-pro: buttons, shadows, rounded corners and modern colours come out as you see them. Hidden "Skip to content" links and `<noscript>` content no longer show.
264
+ - **A simpler drawing toolbar:** pen, line, box, circle, arrow, blur and text, seven colours, a width slider, undo, redo and clear.
265
+ - Comment mode is calmer: a thin frame round the window.
501
266
 
502
- | Framework | Status |
503
- | ---------------------------------- | ------------------------------------------------------------- |
504
- | Vanilla TS (Vite) | ✓ |
505
- | Vite + React | ✓ |
506
- | Vite + Vue 3 | ✓ |
507
- | Vite + Svelte | ✓ |
508
- | Vite + Solid | ✓ |
509
- | Vite + Preact | ✓ |
510
- | Vite + Qwik City | ✓ |
511
- | Next.js 16 (App Router, Turbopack) | ✓ — via `next/dynamic` + `{ ssr: false }` wrapper |
512
- | Nuxt 3 | ✓ — via `.client.vue` filename suffix |
513
- | SvelteKit 2 | ✓ — via `if (browser)` guard around dynamic import |
514
- | Astro 5 + React | ✓ — via `client:only="react"` |
515
- | Angular 21 standalone | ✓ — emits CommonJS-bailout warnings for React; build succeeds |
267
+ ## [1.1.1] - 2026-10-22
516
268
 
517
- ## [0.5.2] - 2026-05-14
518
-
519
- ### Added
520
-
521
- - **Dist-exports smoke test** (`src/test/dist-exports.test.ts`). For every built adapter in `dist/`, asserts the public surface its README snippet relies on is present. Also asserts the React entry preserves its `"use client"` directive (required for Next.js Server Components) and that `package.json#exports` matches the built file layout. Catches build regressions before they ship.
522
-
523
- ### Docs
524
-
525
- - **Exhaustive framework matrix in README.** Replaces the short "Works With" table with one table per adapter family (React, Vue, Svelte, Angular, Solid, Qwik, Preact, vanilla, WebView shells) and an explicit "Not supported" list (React Native, NativeScript, Ink, server-only runtimes). Covers Next.js, Remix, Gatsby, RedwoodJS, TanStack Start, Vinxi, Million, Blitz, Modern.js, Refine, Docusaurus, Nextra, Inertia (React/Vue/Svelte), Nuxt, Quasar, VitePress, VuePress, Vike, SvelteKit, Angular Standalone, Analog, Angular Universal, SolidStart, QwikCity, Fresh, Astro, Web Components, Lit, Stencil, Marko, Alpine, htmx, Stimulus, Livewire, Filament, Phoenix LiveView, Electron, Tauri, Capacitor, Cordova, Neutralinojs.
526
-
527
- ## [0.5.1] - 2026-05-14
528
-
529
- ### Removed
269
+ ### Changed
530
270
 
531
- - **`comment-kit-cli` sub-package.** Integration is a one-line import — the README quick-start guides cover every supported framework. A standalone bootstrap CLI added maintenance surface without saving meaningful steps.
271
+ - A simpler comment box with no title bar or separate details box; the checklist stays.
272
+ - Toasts are calm cards in the widget's theme, with a shorter connection message.
273
+ - A selected area shows a moving dashed outline (still under reduced motion).
532
274
 
533
275
  ### Fixed
534
276
 
535
- - **`grabElements` payload caps.** Multi-element grab now refuses to bundle more than 25 elements and stops embedding screenshots once the bundle exceeds 3 MB of inlined data URLs. Console warns when either cap is hit. Prevents unusable clipboard payloads and tab freezes on large selections.
536
- - **README Astro snippet** now imports `CommentKit` from `comment-kit/react` in the frontmatter so the example actually renders.
537
- - **Removed dead code** in `dev-grab.ts` (`originalClipboard` capture and stale comment).
538
- - **`postcss` security advisory** (GHSA-qx2v-qp2m-jg93) resolved via `npm audit fix`.
539
- - **`vp check`** now passes on every file; `prepublishOnly` no longer blocks.
277
+ - Signing in through a redirect keeps your drawing as well as the checklist and task fields.
540
278
 
541
- ## [0.5.0] - 2026-05-14
279
+ ## [1.1.0] - 2026-10-22
542
280
 
543
281
  ### Added
544
282
 
545
- - **Element screenshot attached to clipboard on dev grab.** Single-element grabs now write an `image/png` MIME alongside `text/plain`, `text/html`, and the existing custom JSON MIME, via the async Clipboard API and `ClipboardItem`. Agents that accept image pastes (Claude Desktop, Cursor, Codex) receive both the Markdown context and the rendered element screenshot in one paste.
546
- - **`copyTextAndImageToClipboard(text, blob)`** helper exported from the core. Falls back to text-only when `navigator.clipboard.write` or `ClipboardItem` are unavailable.
283
+ - **Several assignees** per comment, set while writing or in the card; the inbox filters by any of them.
284
+ - **Checklists** on comments.
285
+ - **Drawing on the screenshot:** arrow, line, box, circle, pen, blur and text, with undo and redo.
286
+ - **Uploads start as soon as you add a file,** with progress, and images open in a full-screen viewer.
287
+ - **24 reactions** in a picker, and link previews (title and site) for links in comments.
288
+ - **A fuller inbox:** open a conversation inside it with Back, Previous and Next (J and K); filter by priority, "Created by me", people or branch; sort; see priority, reactions, checklist progress and assignees on each row.
289
+ - **Settings:** your account, theme, team and roles, storage, and links to the dashboard and shortcuts.
290
+ - **Move the toolbar** to any corner or edge by dragging or with the arrow keys.
291
+ - **Reply to one message** with a quote, @mentions highlighted, Copy text, Jump to latest, and editing your first message.
292
+ - **Delete with Undo** instead of a confirmation dialog.
293
+ - **Pin previews on hover,** and team members can drag a pin to a better spot.
294
+ - **Formatting toolbar** and Cmd/Ctrl+B, I, E and Shift+X; pasted code becomes a code block.
295
+ - Team members set priority, assignee and labels while writing a new comment.
296
+ - For developers: `comment()` / `CommentKit.comment()` and the `mode` event for your own "Leave feedback" button, and `init({ tools })` to turn screenshots, drawing, quoting or attachments off.
547
297
 
548
298
  ### Changed
549
299
 
550
- - Multi-element bundles (shift+click, drag-rect, dev-export panel) inline their screenshots as Markdown data URLs since the clipboard can only carry one image MIME.
551
-
552
- ## [0.4.0] - 2026-05-14
553
-
554
- ### Added
555
-
556
- - **Shift+click multi-select:** Hold Shift and click multiple elements to accumulate them in a selection bucket. A floating bar shows the count and exposes "Grab N for agent" + "Clear". ⌘C / Ctrl+C grabs the entire bucket in one bundled clipboard payload.
557
- - **Drag-rect multi-select (marquee):** Pointer-down on empty space + drag draws a marquee. Every selectable element intersecting the rect is added to the multi-select bucket on release. Tiny drags are ignored as misclicks.
558
- - **Context menu (right-click):** Right-clicking any element in select mode opens a five-item menu — Grab for agent, Add comment, Copy CSS selector, Copy XPath, Inspect (log to console). Escape closes the menu without deactivating the tool.
559
- - **Hold-to-activate + activation key config:** New config `ui.activation: { mode: "toggle" | "hold", key: "Alt" | "Meta" | "Control" | "Shift" }`. In hold mode the select tool is active only while the configured modifier is held; release deactivates.
560
- - **Animation / update freeze on grab:** While the select tool is active, all host-page CSS animations + CSS transitions + Web Animations API animations are paused. Restored automatically when the tool deactivates. Lives behind a depth counter so concurrent freezes compose cleanly.
561
- - **Touch mode:** Long-press (≥550ms) on a touch device opens the context menu for the touched element, mirroring the right-click flow. Quick taps don't trigger.
562
- - **`comment-kit-cli` package:** New sibling npm package. `npx comment-kit-cli init [--api-key ck_…]` auto-detects Next.js, Vite + (React|Vue|Svelte|Solid|Preact), Webpack + React, Remix, TanStack Start, or Astro, then prints the exact snippet for your framework's entry file and adds `comment-kit` to `devDependencies`. Also ships `remove` and `detect` commands.
563
-
564
- - **Core method `blockEscape(): () => void`** lets overlay UIs claim Escape for themselves; the core's chain bails while any blocker is held.
565
- - **Core method `grabElements(elements: Element[])`** — produces individual `DevGrabResult`s plus a single bundled Markdown payload that's copied to the clipboard. Mirrored on every framework adapter and on the vanilla `CommentKit` wrapper.
566
- - **Event `agent:elements-grabbed`** with `{ count }`.
567
- - **Type `DevGrabBundle`** exported alongside `DevGrabResult`.
300
+ - **Enter sends,** Shift+Enter adds a line (on phones Enter adds a line). Cmd/Ctrl+Enter still sends.
301
+ - Cmd/Ctrl+Shift+K opens the inbox while the widget is shown; Hide CommentKit is in the More menu.
302
+ - Links to a conversation open in place in single-page apps.
303
+ - The guest code sends itself on the sixth digit, and "Send a new code" counts down a minute.
304
+ - Each part of the widget brings its own styles when it loads, so the first load stays small.
568
305
 
569
- ## [0.3.1] - 2026-05-13
306
+ ### Fixed
570
307
 
571
- ### Added
308
+ - Screenshots work on sites using modern colours such as Tailwind v4's `oklch()`.
309
+ - Sending before the screenshot is ready waits for it, and a page that can't be captured says so.
310
+ - Signing in through a redirect brings back everything you wrote, and the one-time sign-in code is never kept in the page address.
311
+ - Cards fit the window with the reply box always visible; drop-downs open fully in view and work under strict Content Security Policies.
312
+ - Settings and Keyboard shortcuts open as centred dialogs.
572
313
 
573
- - **`getConfig()` and `getFeatures()`** on the vanilla `CommentKit` wrapper class for parity with the framework adapters.
574
- - **Playwright e2e test harness** with new scripts `test:e2e`, `test:e2e:ui`, and `test:e2e:headed`.
314
+ ## [1.0.1] - 2026-10-22
575
315
 
576
316
  ### Fixed
577
317
 
578
- - **`grabElement` guards against non-`Element` inputs.** Passing `{}`, `undefined`, or any non-`Element` value now returns `null` instead of throwing on `getBoundingClientRect`.
318
+ - Errors and Undo stay until you dismiss them, and every toast is announced to screen readers. Toasts move to the top while a conversation is open.
319
+ - Typing on a phone no longer zooms the page.
320
+ - Hover styles only where a mouse can hover, scrolling stays inside cards and menus, and focus is visible in high-contrast mode.
321
+ - Plainer error messages in every language.
579
322
 
580
- ## [0.3.0] - 2026-05-13
323
+ ## [1.0.0] - 2026-10-22
581
324
 
582
- ### Added
583
-
584
- - **Dev grab flow:** A "Grab for agent" action in the element-selector composer copies the selected element straight to the clipboard with screenshot + source-file location + HTML + selector + XPath. No backend roundtrip — built for local dev where iteration speed matters.
585
- - **⌘C / Ctrl+C grab shortcut:** While the element-selector is active, ⌘C grabs the currently-hovered (or selected) element to the clipboard. Honors active text selections so the system copy command still wins when text is highlighted.
586
- - **Source-file resolution via optional peer dep:** When the host installs the optional source-resolver peer dep, agent context exports now include `filePath:line:col` and a component stack for each comment whose element can be resolved. Falls back gracefully to selector + XPath when not installed.
587
- - **Dev export panel (localhost only):** New side panel that lists open stakeholder comments with checkboxes and a single "Copy N for agent" button. Lets a developer pull comments left on production/staging and bundle them into one Markdown payload for their agent. Reuses each stakeholder's attached screenshot.
588
- - **`comment-kit-mcp`:** New sibling npm package — a Model Context Protocol server that lets agents (Claude Desktop, Cursor, Claude Code, Codex CLI, Continue, Zed AI…) call `list_comments`, `get_comment`, and `search_comments` directly against your CommentKit project. See `mcp/README.md` for setup. Stdio transport, env-based credentials.
589
- - **New core methods:** `getAgentContextAsync`, `formatAgentContextAsync`, `grabElement(element)` on `CommentKitCore`, mirrored on every adapter via the bridge and on the vanilla `CommentKit` class.
590
- - **New events:** `agent:element-grabbed` (with `source` + `componentName`); `agent:context-copied` now also carries `sourceResolved: boolean`.
325
+ First stable release: `npm install @commentkit/comment-kit`, no `@beta` needed.
591
326
 
592
327
  ### Changed
593
328
 
594
- - **`AgentContextExport`:** Adds `sourceResolved: boolean` indicating whether at least one comment had its source resolved via the optional peer dep. Agent markdown now prefers the resolved source line over the selector when both are available.
595
- - **`AgentElementContext`:** Adds optional `source`, `stack`, and `componentName` fields when source resolution is available.
596
- - **`AgentCommentContext`:** Adds optional `screenshotUrl` populated from the comment's attached screenshot.
597
- - **`copyAgentContext`:** Now resolves async source enrichment before formatting + copying, so the payload your agent receives includes source-file locations when available.
329
+ - Pins are the CommentKit mark: a speech drop whose tip sits on the spot, numbered and coloured by status.
330
+ - A cleaner, more compact design, illustrated empty states and loading skeletons.
331
+ - A conversation that can't load explains why in the card, with Close or Try again.
332
+ - Translations reviewed in all 10 languages.
598
333
 
599
- ### Docs
334
+ ### Security
600
335
 
601
- - New `mcp/README.md` with setup instructions for Claude Desktop, Cursor, and Claude Code.
336
+ - Reviewer text in agent output stays inside the untrusted-content fence however the tag is spelled.
602
337
 
603
- ## [0.2.0] - 2026-05-13
338
+ ## [1.0.0-beta.3] - 2026-10-20
604
339
 
605
340
  ### Added
606
341
 
607
- - **Agent handoff:** New `getAgentContext` / `formatAgentContext` / `copyAgentContext` methods on every framework adapter. Exports open comments with element context (selector, XPath, viewport position, resolved DOM metadata, replies) for paste-in handoff to Claude, Codex, Cursor, or any coding agent. A toolbar button surfaces it when there are unresolved comments. New `agent:context-copied` event.
608
- - **Element selector tool:** New `"select"` tool — click any element on the host page to pin a comment to it. Visual outline on hover and selection, refreshes anchors on scroll/resize/DOM mutation, shows existing open anchored comments as marks.
609
- - **Vanilla SDK surface:** `updateComment`, `createHighlight`, `createDrawing`, `setActiveDrawing`, `sendDrawingStroke`, `setActiveScreenshot`, `uploadFiles` now exposed on the `CommentKit` wrapper class for non-framework callers.
342
+ - Team members can set priority, assignee, due date and labels from a conversation; reviewers see what is set.
610
343
 
611
344
  ### Changed
612
345
 
613
- - **Lifecycle:** Every public method on `CommentKitCore` and every adapter now early-returns after `destroy()`. Async UI mounts use lifecycle-ID checks so an in-flight mount cannot leak a host element after teardown or re-init.
614
- - **State:** `getState()` returns a deep-cloned snapshot so consumers cannot mutate internal state. `select()` selectors continue to receive the live state object (do not mutate).
615
- - **Selectors:** `generateSelector` now `CSS.escape`s ids and classes — fixes invalid selectors when an id contains `.`, `:`, or other CSS metacharacters.
616
- - **Dependencies:** Pinned `@voidzero-dev/vite-plus-core` and `vite-plus-test` to `0.1.20` for build reproducibility.
617
-
618
- ### Fixed
619
-
620
- - **Uploads:** Removed `image/svg+xml` from the allowed upload MIME list — SVG uploads can carry executable script.
621
- - **Singleton:** Auto-init (`window.CommentKitConfig`) now destroys an existing instance before re-creating, instead of leaking it.
346
+ - Live updates refetch only what is on this page or open, and never your own change twice.
347
+ - Plain, translated errors for known problems; a failed upload or reply keeps your text.
622
348
 
623
349
  ### Security
624
350
 
625
- - **Trust-boundary validation:** Hardened inbound data from external sources — WebSocket presence/cursor/drawing payloads (with per-field length, range, and control-character checks), backend API responses (content-type and empty-body guards, error-details key allowlist and value clipping), and clipboard fallback paths.
626
- - **Auth inputs:** Stricter normalization for email addresses, OTP codes, and invite tokens at the API client boundary.
627
- - **Singleton listeners:** EventEmitter now warns past 100 listeners on a single event and rejects non-function listeners.
351
+ - The sign-in code only comes from the sign-in window's message; the widget never asks the server for it.
352
+ - Every reviewer-written field in agent output stays inside the untrusted-content fence.
628
353
 
629
- ### Internal
630
-
631
- - Consolidated validation helpers (`hasControlChars`, `isPlainObject`, `isSafeString`, `isFinitePercentage`, `isValidEmail`) into `src/utils/validation.ts`.
632
- - Consolidated adapter error helpers (`toApiError`, `toMountError`) into `src/adapters/errors.ts`.
633
-
634
- ## [0.1.5] - 2026-04-06
635
-
636
- ### Added
637
-
638
- - **Solid.js:** Full UI + reactive signals via `comment-kit/solid`
639
- - **Qwik:** Full UI + Qwik signals via `comment-kit/qwik`
640
- - **Preact:** Full UI + Preact hooks via `comment-kit/preact`
354
+ ## [1.0.0-beta.2] - 2026-10-20
641
355
 
642
356
  ### Changed
643
357
 
644
- - **Vue/Svelte/Angular:** Now include the full UI automatically — same toolbar, sidebar, and comments panel as React
358
+ - A refreshed look: one set of design tokens, layered shadows that read on any site, a frosted launcher, tinted status pills and press, hover and focus states throughout. Motion is off under reduced motion.
359
+ - Button text switches to white on dark brand colours.
645
360
 
646
- ## [0.1.4] - 2026-04-04
361
+ ### Fixed
647
362
 
648
- ### Breaking Changes
363
+ - Pressing Esc right after adding a text note on a screenshot no longer closes the comment.
649
364
 
650
- - **Auth:** Replaced guest commenting with member invite links — all commenters must now verify via OTP
651
- - **Config:** Simplified public configuration — all other settings are managed automatically
365
+ ## [1.0.0-beta.1] - 2026-10-20
652
366
 
653
367
  ### Added
654
368
 
655
- - **Member Invites:** Invite collaborators by email with OTP verification
656
- - **Auto-Config:** SDK auto-configures project settings, real-time, and invite tokens — customers only need an API key
657
- - **Replies:** Edit and delete replies on comments
658
- - **Enabled Flag:** `enabled` config option to disable the widget entirely — zero overhead when off
369
+ - **The 10-second first comment:** share-link guests write the comment, add their name and email in the same card, and confirm with a 6-digit code.
370
+ - **10 more languages:** Spanish, French, German, Portuguese (Brazil), Italian, Dutch, Japanese, Chinese (Simplified), Hindi and Arabic (right to left). Set with `init({ locale })`, `data-locale` or `<comment-kit locale>`, otherwise taken from the page or browser. Each language loads only when needed.
371
+ - **Follow and mute** a conversation from its menu.
372
+ - **Keyboard shortcuts dialog** (`?`), and `shortcuts: false` to turn off single-key shortcuts for sites with their own.
373
+ - **Attachments:** paste or drag images and files into comments and replies, with the server's file types and size limit checked first.
374
+ - **Drafts survive closing the tab** for 7 days.
375
+ - **Inbox filters:** search on This page, "Assigned to me", assignee and label. The header shows who else is here.
376
+ - **`window.CommentKit`** for script-tag sites: `show()`, `hide()`, `open()`, `on()`, `off()`, `destroy()` and `version`.
377
+ - Delete your own replies; long-press to comment on touch screens; inline text notes on screenshots.
378
+ - Opt-in console and network capture per comment ("Include browser errors to help the developer").
379
+ - Works with the CommentKit browser extension.
659
380
 
660
381
  ### Changed
661
382
 
662
- - **Environment:** Comments from all environments are shown by default — filter explicitly when needed
383
+ - Clearer messages for expired client links, removed guests, used-up codes, paused feedback and read-only workspaces, without a pointless Try again.
384
+ - Plainer words for clients throughout.
385
+ - The widget re-reads its config every minute, so pausing feedback reaches open pages.
386
+ - On phones the comment card stays above the keyboard and the launcher steps aside.
663
387
 
664
388
  ### Fixed
665
389
 
666
- - **API Sync:** All responses properly handled across the full API surface
390
+ - The launcher menu opens on screen in all four corners.
391
+ - Accessibility: the edit box is labelled, the inbox focuses its open tab, and @mention suggestions are announced.
392
+ - "Try again" never duplicates a comment.
667
393
 
668
- ## [0.1.3] - 2026-04-04
394
+ ### Security
669
395
 
670
- ### Fixed
396
+ - Works under Trusted Types (`require-trusted-types-for 'script'`) through one narrow policy, `commentkit-capture`.
397
+ - "Copy for AI agent" removes passwords, tokens and keys from URLs and text, and caps message length.
398
+ - Links and images only use absolute `http(s)` URLs, inbox items never navigate to `javascript:` URLs, and names and links are isolated against right-to-left override tricks.
399
+ - `auth.remember: false` keeps the sign-in for this tab only.
671
400
 
672
- - **Types:** Synced exports across all framework adapters
401
+ ## [1.0.0-beta.0] - 2026-10-19
673
402
 
674
- ### Improved
403
+ A rewrite around one job: feedback lands on the exact spot, with full context, and reaches the right developer or AI agent.
675
404
 
676
- - **Tests:** Raised test coverage
405
+ ### Added
677
406
 
678
- ## [0.1.2] - 2026-04-04
407
+ - A small script-tag loader, `init()`, a `<comment-kit>` element, and small React, Vue and Svelte helpers. Host pages install nothing else.
408
+ - One comment tool: click an element, drag an area, or select text. Comments stay anchored after page changes and are marked moved or detached rather than silently lost.
409
+ - Every comment carries a screenshot with the pin on it, plus page, branch, commit, viewport, browser and device, with drawing on the screenshot.
410
+ - Sign-in in a small window (or a same-tab redirect), using PKCE; guests use a review link, their name and an email code.
411
+ - Replies, mentions, reactions, statuses and an inbox with this page, all pages and notifications.
412
+ - WCAG 2.2 AA, keyboard-first use, right-to-left pages and reduced motion.
413
+ - Phone support: tap to comment, a bottom-sheet inbox and 44 px touch targets.
414
+ - Live updates, hidden from visitors on production unless opened by link, shortcut or an existing session.
415
+ - Branch mode: see this branch's feedback, with All branches one click away.
416
+ - Shadow DOM isolation and full cleanup on `destroy()`.
679
417
 
680
- ### Fixed
418
+ ### Removed
681
419
 
682
- - **Pagination:** Fixed concurrent load requests
683
- - **Real-Time:** WebSocket events for replies and reactions now update local state
684
- - **Mentions:** Fixed mention formatting round-trip
685
- - **State:** Fixed optimistic update clearing unrelated loading state
420
+ - The old `CommentKit` class, `useCommentKit` hooks, the Angular, Solid, Qwik and Preact adapters, and `createCommentKitDemo`.
686
421
 
687
- ## [0.1.1] - 2026-04-04
422
+ ### Upgrading
688
423
 
689
- ### Fixed
424
+ - **Breaking:** requires the v1 CommentKit API. Call `init()` or use the React, Vue or Svelte helpers, and replace the `ck_…` key with the publishable `pk_live_…` key from Project → Setup.
690
425
 
691
- - **Security:** Hardened error responses, file upload validation, and authentication guards
692
- - **Accessibility:** Improved screen reader support for skeleton and overlay components
693
- - **UI:** Fixed rendering issues in several components
694
- - **Packaging:** Included LICENSE file in published package
695
- - **TypeScript:** Cleaned up type declarations and build output
426
+ ## Before 1.0
696
427
 
697
- ## [0.1.0] - 2026-04-04
428
+ The 0.x releases were an earlier SDK that 1.0 replaced.
698
429
 
699
- ### Added
430
+ - **0.7.0 – 0.7.7** (2026-10-16 – 10-18): reviewer access, two-factor sign-in, headless and demo entry points, realtime fixes, screenshot and security hardening.
431
+ - **0.6.0 – 0.6.9** (2026-06-19 – 10-16): element grab with drafts and attachments, offline queue, package renamed to `@commentkit/comment-kit`, production hosts hidden until sign-in, demo mode.
432
+ - **0.5.0 – 0.5.3** (2026-05-14): element screenshots on the clipboard, grab limits, Next.js and Vite build fixes.
433
+ - **0.4.0** (2026-05-14): multi-select, right-click menu, hold-to-activate and touch support.
434
+ - **0.3.0 – 0.3.1** (2026-05-13): grab for agent, source-file resolution, the first MCP server.
435
+ - **0.2.0** (2026-05-13): agent handoff and the element selector.
436
+ - **0.1.0 – 0.1.5** (2026-04-04 – 04-06): first releases with pins, highlights, drawing, screenshots, real-time comments and framework adapters.
700
437
 
701
- - Core comment engine with real-time collaboration
702
- - Pin comments, text highlighting, drawing tools, and screenshots
703
- - OTP-based passwordless authentication
704
- - Offline support with automatic retry
705
- - React, Vue, Svelte, Angular, and vanilla JS integrations
706
- - Shadow DOM isolation with light/dark theme support
707
- - Task workflows with status, priority, assignees, and checklists
708
- - @Mentions with autocomplete
709
- - Emoji reactions and threaded replies
710
- - Deep linking via URL hash
711
- - Keyboard shortcuts
712
- - Environment-scoped comments
713
-
714
- [0.7.0]: https://github.com/commentkit/comment-kit/pull/2
715
- [0.6.1]: https://github.com/commentkit/comment-kit/compare/v0.6.0...v0.6.1
716
- [0.6.0]: https://github.com/commentkit/comment-kit/compare/v0.5.3...v0.6.0
717
- [0.5.3]: https://github.com/commentkit/comment-kit/compare/v0.5.2...v0.5.3
718
- [0.5.2]: https://github.com/commentkit/comment-kit/compare/v0.5.1...v0.5.2
719
- [0.5.1]: https://github.com/commentkit/comment-kit/compare/v0.5.0...v0.5.1
720
- [0.5.0]: https://github.com/commentkit/comment-kit/compare/v0.4.0...v0.5.0
721
- [0.4.0]: https://github.com/commentkit/comment-kit/compare/v0.3.1...v0.4.0
722
- [0.3.1]: https://github.com/commentkit/comment-kit/compare/v0.3.0...v0.3.1
723
- [0.3.0]: https://github.com/commentkit/comment-kit/compare/v0.2.0...v0.3.0
724
- [0.2.0]: https://github.com/commentkit/comment-kit/compare/v0.1.5...v0.2.0
725
- [0.1.5]: https://github.com/commentkit/comment-kit/compare/v0.1.4...v0.1.5
726
- [0.1.4]: https://github.com/commentkit/comment-kit/compare/v0.1.3...v0.1.4
727
- [0.1.3]: https://github.com/commentkit/comment-kit/compare/v0.1.2...v0.1.3
728
- [0.1.2]: https://github.com/commentkit/comment-kit/compare/v0.1.1...v0.1.2
729
- [0.1.1]: https://github.com/commentkit/comment-kit/compare/v0.1.0...v0.1.1
730
- [0.1.0]: https://github.com/commentkit/comment-kit/releases/tag/v0.1.0
438
+ Versions follow [Semantic Versioning](https://semver.org); this file follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).