sanity-plugin-seo-copilot 0.2.16 → 0.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -23,7 +23,7 @@ export default defineConfig({
23
23
  plugins: [
24
24
  // ... your existing plugins
25
25
  seoCopilot({
26
- apiUrl: 'https://ecaruso.vercel.app',
26
+ apiUrl: 'https://seo-copilot.mjhapps.com',
27
27
  publication: 'onclive', // optional - defaults to the current workspace's dataset
28
28
  }),
29
29
  ],
@@ -59,5 +59,13 @@ The plugin reads document content from the Sanity editor and sends it to the bac
59
59
  - **Chat** - Your messages, the article text, and the keyword data shown in the panel are sent to the backend to answer each message. The conversation is kept only in this browser.
60
60
  - **Thumbs up / down** - Your vote, the suggestion text and any note you type, plus your Sanity user ID, document ID, and dataset when available.
61
61
  - **Report a problem** - Your message, your Sanity user ID, the document ID, document type, dataset, open tab and primary keyword, the page URL, your browser's user agent, and a timestamp.
62
+ - **Usage events** (from 0.2.18) - In the background, the panel records how it is used, so usage can be reported by editor, brand, article, day and feature. These events go to `POST /api/seo-copilot/events`, with the same API key as the other calls.
63
+ - **What an event holds:** a random event and session id, the time, the dataset, the document's id and type, the article title and slug, your Sanity user id, name and email, the plugin version, the open tab, and event details.
64
+ - **Events recorded:** panel opened and closed, time and active time per tab, scroll depth, analyses run, keyword actions, copies, links opened, chat opened and messages sent, votes, problem reports, and errors shown.
65
+ - **Suggestions:** each suggestion gets an id. The panel records when it is generated, seen, used and adopted, meaning it now appears in the article.
66
+ - **Never sent:** article text, chat text and suggestion text. Only their lengths are sent, plus keywords themselves.
67
+ - **How it is sent:** events are queued and sent in batches; nothing in the panel waits for them, and a failure is never shown.
68
+ - **Kept in this browser:** events that cannot be sent when the page closes, and the last session's suggestions for each document (used to check adoption). Both stay in local storage.
69
+ - **Editor names and emails** are kept for reporting only and are never shown in the panel. Emails are never exported.
62
70
 
63
71
  Nothing is written to Sanity. The plugin only reads the open document. Analysis results, chat, and panel settings are cached in this browser's local storage.
package/dist/index.d.mts CHANGED
@@ -3,6 +3,7 @@ import * as sanity from 'sanity';
3
3
  interface SEOCopilotConfig {
4
4
  apiUrl: string;
5
5
  publication?: string;
6
+ autoOpen?: boolean;
6
7
  }
7
8
  declare const seoCopilot: sanity.Plugin<SEOCopilotConfig>;
8
9
 
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import * as sanity from 'sanity';
3
3
  interface SEOCopilotConfig {
4
4
  apiUrl: string;
5
5
  publication?: string;
6
+ autoOpen?: boolean;
6
7
  }
7
8
  declare const seoCopilot: sanity.Plugin<SEOCopilotConfig>;
8
9