@markupai/sidebar-adapter 1.4.0 → 1.5.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.
package/README.md CHANGED
@@ -17,7 +17,8 @@ You do **not** need prior knowledge of how the sidebar is built internally. As a
17
17
  9. [Authentication](#authentication-optional) (declaring an Auth0 login strategy)
18
18
  10. [Sidebar load overlay (standalone)](#sidebarloadoverlay-editor-ui)
19
19
  11. [Agentic issue lifecycle](#agentic-issue-lifecycle) · [Document references](#document-references)
20
- 12. [API reference](#api-reference) · [Development](#development)
20
+ 12. [Multi-document hosts](#multi-document-hosts)
21
+ 13. [API reference](#api-reference) · [Development](#development)
21
22
 
22
23
  ## Features
23
24
 
@@ -122,6 +123,14 @@ await adapter.selectContent({ start: 0, end: 11 });
122
123
  // Replace content in the editor (apply suggestion to [start, end))
123
124
  await adapter.replaceContent("Hello universe", { start: 0, end: 11 });
124
125
 
126
+ // Multi-document hosts: pass the range's owning documentReference as the
127
+ // trailing argument so the host applies it to the right document even if a
128
+ // different one is currently active. Omit (or pass null) for "whichever
129
+ // document the host currently considers active" — the single-document
130
+ // default. See "Multi-document hosts" below.
131
+ await adapter.selectContent({ start: 0, end: 11 }, content.documentReference);
132
+ await adapter.replaceContent("Hello universe", { start: 0, end: 11 }, content.documentReference);
133
+
125
134
  // Replace multiple contents in the editor
126
135
  await adapter.replaceMultipleContents([
127
136
  { suggestion: "Hello universe", range: { start: 0, end: 11 } },
@@ -200,16 +209,26 @@ const pluginInterface: PluginInterface = {
200
209
  };
201
210
  },
202
211
 
203
- // Select content in the editor
204
- selectContent: async (range: ContentRange) => {
205
- console.log("Select content range:", range);
206
- selectContentInEditor(range);
212
+ // Select content in the editor.
213
+ // documentReference identifies which document `range` belongs to. In a
214
+ // single-document host, or when this integration hasn't opted into
215
+ // multiDocument, it's always null — ignore it. In a multi-document host,
216
+ // omitted/null means "whichever document I currently consider active";
217
+ // otherwise resolve it to the target document first. See
218
+ // "Multi-document hosts" below.
219
+ selectContent: async (range: ContentRange, documentReference: string | null) => {
220
+ console.log("Select content range:", range, "in document:", documentReference);
221
+ selectContentInEditor(range, documentReference);
207
222
  },
208
223
 
209
- // Replace content in the editor
210
- replaceContent: async (suggestion: string, range: ContentRange) => {
211
- console.log("Replace content span:", range, "with:", suggestion);
212
- replaceContentInEditor(suggestion, range);
224
+ // Replace content in the editor. Same documentReference rule as selectContent.
225
+ replaceContent: async (
226
+ suggestion: string,
227
+ range: ContentRange,
228
+ documentReference: string | null,
229
+ ) => {
230
+ console.log("Replace content span:", range, "with:", suggestion, "in:", documentReference);
231
+ replaceContentInEditor(suggestion, range, documentReference);
213
232
  },
214
233
 
215
234
  // Replace multiple contents in the editor
@@ -483,16 +502,16 @@ Implement these **on the host** as async functions. The sidebar calls them over
483
502
  - `getInitConfig(): Promise<SidebarConfig>` — Integration display name (`integrationName`), stable machine id (`integrationId`), version, feature flags, dialog closing script, etc. See the `integrationName` vs `integrationId` note above.
484
503
  - `getContent(): Promise<ContentInfo>` — Full document (or main buffer) text; must include `documentReference`; `mimeType` optional
485
504
  - `getSelectedContent(): Promise<ContentInfo>` — Current selection; same `ContentInfo` rules as `getContent`
486
- - `selectContent(range: ContentRange): Promise<void>` — Focus/highlight the document span `[range.start, range.end)`
487
- - `replaceContent(suggestion: string, range: ContentRange): Promise<void>` — Apply a single edit to `[range.start, range.end)`
488
- - `replaceMultipleContents(replacements: ContentReplacement[]): Promise<void>` — Batch edits
505
+ - `selectContent(range: ContentRange, documentReference?: string | null): Promise<void>` — Focus/highlight the document span `[range.start, range.end)`. `documentReference` names the target document for multi-document hosts; omitted/`null` means "whichever document is currently active" (the single-document default — see [Multi-document hosts](#multi-document-hosts))
506
+ - `replaceContent(suggestion: string, range: ContentRange, documentReference?: string | null): Promise<void>` — Apply a single edit to `[range.start, range.end)`. Same `documentReference` rule as `selectContent`
507
+ - `replaceMultipleContents(replacements: ContentReplacement[]): Promise<void>` — Batch edits, always against the currently active document (no per-item `documentReference`)
489
508
  - `showDialog?(dialogHtml: string, width?: number, height?: number, title?: string): Promise<void>` — Host-rendered dialog chrome around HTML from the sidebar. **Optional** — omit on hosts without dialog support (also leave `useCheckPreviewDialog: false`).
490
509
  - `closeDialog?(): Promise<void>` — Dismiss that dialog. **Optional**, pairs with `showDialog`.
491
510
 
492
511
  Optional (agentic / streaming flows):
493
512
 
494
- - `onAgenticAgentResults?(agentName: string, issues: AgenticIssuePayload[]): Promise<void>` — Per-agent results as they stream
495
- - `onAgenticStreamComplete?(): Promise<void>` — Stream finished (success or terminal state)
513
+ - `onAgenticAgentResults?(agentName: string, issues: AgenticIssuePayload[], documentReference: string | null): Promise<void>` — Per-agent results as they stream. `documentReference` is the document the check ran against — the run's _originating_ document, not necessarily whichever one is active when the callback fires, since a check keeps streaming in the background after the active document changes (see [Multi-document hosts](#multi-document-hosts)). `null` when `multiDocument` is not enabled
514
+ - `onAgenticStreamComplete?(documentReference: string | null): Promise<void>` — Stream finished (success or terminal state). Same `documentReference` rule as `onAgenticAgentResults`
496
515
  - `onAgenticIssueStatusChanged?(issueId: string, status: "active" | "resolved" | "dismissed", source: "user" | "host"): Promise<void>` — Fired after every successful per-issue status transition. `source` is `"user"` for sidebar-card-driven transitions and `"host"` for transitions driven by the inbound `SidebarInterface` RPCs (`invalidateAgenticIssue` / `markAgenticIssueResolved` / `restoreAgenticIssue`). Best-effort: an absent or throwing handler MUST NOT block sidebar UI transitions. No-op RPC calls do not re-emit this notification.
497
516
 
498
517
  Optional (authentication):
@@ -604,14 +623,16 @@ Notes:
604
623
 
605
624
  ### Driving transitions (host → sidebar)
606
625
 
607
- `SidebarAdapter` exposes three host-driven RPCs, all idempotent and optional on the sidebar side:
626
+ `SidebarAdapter` exposes four host-driven RPCs, all idempotent and optional on the sidebar side:
608
627
 
609
628
  ```typescript
629
+ await sidebarAdapter.activateAgenticIssue(issueId); // expand + scroll to the card
610
630
  await sidebarAdapter.invalidateAgenticIssue(issueId); // → status: "dismissed"
611
631
  await sidebarAdapter.markAgenticIssueResolved(issueId); // → status: "resolved"
612
632
  await sidebarAdapter.restoreAgenticIssue(issueId); // → status: "active"
613
633
  ```
614
634
 
635
+ - **`activateAgenticIssue(issueId, documentReference?)`** — Expands and scrolls to the card for `issueId` (e.g. the user clicked an underline in the document, or picked the issue from a context menu). In a **multi-document** host, pass the issue's owning `documentReference` as the second argument if it may not be the document the sidebar is currently displaying — the sidebar switches to it first, then activates. Omitted/`null` activates against whichever document the sidebar currently displays (the single-document default). See [Multi-document hosts](#multi-document-hosts).
615
636
  - **`invalidateAgenticIssue(issueId)`** — Existing dismiss RPC. Use after the host clears the underlying range from its document, or to programmatically dismiss in response to host UI.
616
637
  - **`markAgenticIssueResolved(issueId)`** — Marks an open issue resolved **without applying a suggestion**. The resulting issue is restorable via `restoreAgenticIssue`. Silent no-op for ids that are already in a non-open state or unknown.
617
638
  - **`restoreAgenticIssue(issueId)`** — Moves a manually-resolved or dismissed issue back to the open state. Silent no-op for ids that are already open, **resolved via an applied suggestion** (terminal — see below), or unknown.
@@ -686,6 +707,104 @@ Reuse an existing prefix when your platform already has one, so the same documen
686
707
 
687
708
  A bare, unprefixed value is still accepted and behaves exactly as before; it simply cannot be correlated with the same document seen on another surface.
688
709
 
710
+ ## Multi-document hosts
711
+
712
+ Everything above assumes **one** document at a time — the sidebar's implicit "the document" is whatever your host's `PluginInterface` currently answers with. Tabbed editors (multiple open documents, one active at a time) need more: the sidebar has to retain each document's check results separately, keep background checks running when the user switches away, and let the host act on a document that isn't the one currently on screen. All of that is **opt-in**; a host that never sets `multiDocument` sees no behavior change from this section.
713
+
714
+ ### Enabling it
715
+
716
+ Set `multiDocument: true` in your `getInitConfig` response:
717
+
718
+ ```typescript
719
+ getInitConfig: async () => ({
720
+ // ...other fields...
721
+ multiDocument: true,
722
+ });
723
+ ```
724
+
725
+ With it on, the sidebar retains check results and issue decisions **per document** — switching away from a document and back restores its issues, resolved/dismissed state, and tab selection exactly as the user left them. With it off (or omitted, the default), the sidebar holds one shared check state regardless of any `notifyActiveDocumentChanged` calls you make.
726
+
727
+ **In-flight checks keep running in the background.** Calling `notifyActiveDocumentChanged` — including with `null`, e.g. because the user closed the document's tab — does **not** stop a check already running against the outgoing document; it keeps streaming `onAgenticAgentResults`/`onAgenticStreamComplete` (tagged with its own `documentReference`) until it finishes, even after the document is no longer active or open in your host. There is currently **no host-facing RPC to cancel it** — cancellation is a sidebar-UI-only affordance (the Cancel button), not something `SidebarAdapter` exposes today. If your host needs to stop wasted work when a document closes mid-check, that isn't possible through this contract yet.
728
+
729
+ There is also **no dedicated "check started" signal** — nothing tells you a document is currently mid-check, or lets you distinguish "not yet checked" from "checking right now" from your own state alone. The closest thing is indirect: the sidebar calls your `getContent`/`getSelectedContent` implementation at the moment it starts a check, so seeing that call for a given `documentReference` implies a check just began for it — but that's an inference from a side effect, not a documented guarantee (nothing rules out `getContent` being called for other reasons in the future), and once a check is running there is nothing further until its first `onAgenticAgentResults` or its `onAgenticStreamComplete` arrives.
730
+
731
+ ### Reporting the initial document at init time
732
+
733
+ **Recommended:** report the document open at load via `initialActiveDocumentReference` in your `getInitConfig` response, then use `notifyActiveDocumentChanged` (below) only for changes after that. Without this, a fresh sidebar load can't tell "no document is open" apart from "not yet known" — it only learns the initially open document passively from the first `getContent` call, which doesn't happen until the user (or the sidebar) triggers one. If your host already knows the answer when it responds to `getInitConfig`, report it there instead of waiting:
734
+
735
+ ```typescript
736
+ getInitConfig: async () => ({
737
+ // ...other fields...
738
+ multiDocument: true,
739
+ initialActiveDocumentReference: currentlyOpenDocumentReference, // or null if nothing is open/checkable
740
+ });
741
+ ```
742
+
743
+ This is a **one-time snapshot** — `getInitConfig` is called once per session, so it does not replace `notifyActiveDocumentChanged` for subsequent switches; keep calling that as usual. Only meaningful alongside `multiDocument: true`; omit it (rather than guessing) if your host cannot answer the question synchronously at init — the sidebar falls back to passive detection exactly as before.
744
+
745
+ ### Telling the sidebar which document is active
746
+
747
+ Call `notifyActiveDocumentChanged` every time the user switches tabs in your host, and when the last tab closes:
748
+
749
+ ```typescript
750
+ await sidebarAdapter.notifyActiveDocumentChanged(newlyActiveDocumentReference);
751
+
752
+ // No checkable document is open (every tab closed, or the active tab is a
753
+ // content type the sidebar shouldn't try to check) — null is a deliberate
754
+ // signal, not "unknown":
755
+ await sidebarAdapter.notifyActiveDocumentChanged(null);
756
+ ```
757
+
758
+ You do **not** need to call it for the very first document a user opens — the sidebar learns that one passively from the `documentReference` your first `getContent`/`getSelectedContent` response carries. Every switch **after** that needs an explicit call, or the sidebar keeps attributing checks to the stale document. An empty string is ignored as malformed (active document unchanged); `null` is accepted and treated identically to "every tab closed."
759
+
760
+ ### `documentReference` on document-scoped actions
761
+
762
+ Once `multiDocument` is on, several calls in both directions carry an explicit `documentReference` alongside their usual arguments, precisely because "the currently active document" stops being a safe assumption:
763
+
764
+ | Direction | Method | Why it needs to name a document |
765
+ | -------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
766
+ | Sidebar → host | `selectContent`, `replaceContent` | The issue the user is acting on may belong to a document you checked earlier and the user has since switched away from — see below. |
767
+ | Sidebar → host | `onAgenticAgentResults`, `onAgenticStreamComplete` | A check keeps streaming results in the background after the user switches to a different document; results must stay attributed to the document that was actually checked, not whichever one happens to be on screen when they arrive. |
768
+ | Host → sidebar | `activateAgenticIssue` | The host may want to activate an issue belonging to a document that isn't the one the sidebar is currently displaying (e.g. a background check just finished elsewhere). |
769
+
770
+ In every case, **omitted or `null` means "the currently active document"** — the same behavior as before `multiDocument` existed. A non-null value names a document that may differ from whatever is currently active.
771
+
772
+ ### Maintaining your document ↔ `documentReference` lookup
773
+
774
+ This is the part that's on you: `documentReference` is an opaque string as far as the sidebar's transport is concerned, but it has to round-trip correctly through **your** code so a call that names a document actually resolves back to the right one in your editor. Concretely:
775
+
776
+ 1. **Return the same `documentReference` for the same document, every time, for the life of the session.** Build it once per document (typically with [`buildDocumentReference`](#document-references), keyed off whatever id is stable in your platform — a file GUID, a tab id) and reuse it across every `getContent`/`getSelectedContent` call for that document. If the string drifts, the sidebar's per-document retention and your own lookup both silently split into two "documents."
777
+ 2. **Keep a lookup from `documentReference` back to your internal document/tab handle.** A simple `Map<string, YourDocumentHandle>`, populated at the same place you mint each document's reference, is enough:
778
+
779
+ ```typescript
780
+ const documentsByReference = new Map<string, YourDocumentHandle>();
781
+
782
+ function registerDocument(handle: YourDocumentHandle): string {
783
+ const reference = buildDocumentReference("my-host", handle.stableId);
784
+ documentsByReference.set(reference, handle);
785
+ return reference;
786
+ }
787
+ ```
788
+
789
+ 3. **Resolve incoming `documentReference` arguments through that lookup — don't assume "whatever's on screen."** When `selectContent`/`replaceContent` names a document other than your currently active tab, look it up and act on _that_ document (switch your editor's visible tab if that's the only way you can apply an edit, or edit it in the background if your editor supports that):
790
+
791
+ ```typescript
792
+ selectContent: async (range, documentReference) => {
793
+ const handle = documentReference
794
+ ? (documentsByReference.get(documentReference) ?? activeDocumentHandle)
795
+ : activeDocumentHandle;
796
+ selectContentInEditor(handle, range);
797
+ },
798
+ ```
799
+
800
+ Silently applying the range to whichever document happens to be visible — ignoring a non-null `documentReference` — is the bug this parameter exists to prevent: it edits the wrong document as soon as the user has checked more than one.
801
+
802
+ 4. **Evict lookup entries when a document is actually closed**, not merely switched away from. The sidebar caps its own per-document retention at **20 documents** internally (least-recently-used eviction, skipping any document with a check still running), so it doesn't expect you to remember a document forever either — but it also doesn't tell you when to forget one, since that's a host-side lifecycle event (tab closed, file closed) the sidebar has no visibility into. A host tracking more than ~20 concurrently open documents should not assume the sidebar retains state for all of them.
803
+
804
+ ### Single-document hosts (the default)
805
+
806
+ If you don't set `multiDocument`, none of the above applies: every `documentReference` argument on `selectContent`, `replaceContent`, and `activateAgenticIssue` is always `null`, and `onAgenticAgentResults`/`onAgenticStreamComplete` receive `null` too. You don't need a lookup — "the document" is implicit, exactly as it was before this feature existed. Most integrations should stay here unless they genuinely support multiple concurrently open documents.
807
+
689
808
  ## Integration settings
690
809
 
691
810
  A host MAY declare a small schema of settings it wants the sidebar to render and persist on its behalf. The sidebar shows a section in its Settings surface, persists user choices per-`integrationId` in `localStorage`, and notifies the host on user edits. The host can also push values and per-field UI state (`disabled`, `hidden`, `allowedValues`) to enforce its own rules — for example, "annotations off ⇒ view mode locked to `original`".
package/asyncapi.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "asyncapi": "3.0.0",
3
3
  "info": {
4
4
  "title": "Markup AI Sidebar IPC contract",
5
- "version": "1.4.0",
5
+ "version": "1.5.1",
6
6
  "description": "Bidirectional RPC-over-postMessage contract between the Markup AI sidebar and its host. Generated from the @markupai/sidebar-adapter TypeScript types — do not hand-edit."
7
7
  },
8
8
  "channels": {
@@ -105,6 +105,12 @@
105
105
  },
106
106
  "getIntegrationSettings_response": {
107
107
  "$ref": "#/components/messages/getIntegrationSettings_response"
108
+ },
109
+ "onActiveDocumentChanged_call": {
110
+ "$ref": "#/components/messages/onActiveDocumentChanged_call"
111
+ },
112
+ "onActiveDocumentChanged_response": {
113
+ "$ref": "#/components/messages/onActiveDocumentChanged_response"
108
114
  }
109
115
  }
110
116
  }
@@ -144,7 +150,7 @@
144
150
  "action": "send",
145
151
  "channel": { "$ref": "#/channels/sidebarToPlugin" },
146
152
  "title": "replaceContent",
147
- "description": "Replace content over [range.start, range.end).",
153
+ "description": "Replace content over [range.start, range.end). documentReference is the originating document (null when multiDocument is not enabled).",
148
154
  "x-optional": false,
149
155
  "messages": [{ "$ref": "#/channels/sidebarToPlugin/messages/replaceContent_call" }],
150
156
  "reply": {
@@ -159,7 +165,7 @@
159
165
  "action": "send",
160
166
  "channel": { "$ref": "#/channels/sidebarToPlugin" },
161
167
  "title": "selectContent",
162
- "description": "Select content at [range.start, range.end).",
168
+ "description": "Select content at [range.start, range.end). documentReference is the originating document (null when multiDocument is not enabled).",
163
169
  "x-optional": false,
164
170
  "messages": [{ "$ref": "#/channels/sidebarToPlugin/messages/selectContent_call" }],
165
171
  "reply": {
@@ -234,7 +240,7 @@
234
240
  "action": "send",
235
241
  "channel": { "$ref": "#/channels/sidebarToPlugin" },
236
242
  "title": "onAgenticAgentResults",
237
- "description": "Stream one agent's agentic results to the plugin.",
243
+ "description": "Stream one agent's agentic results to the plugin. documentReference is the run's originating document (null when multiDocument is not enabled).",
238
244
  "x-optional": false,
239
245
  "messages": [{ "$ref": "#/channels/sidebarToPlugin/messages/onAgenticAgentResults_call" }],
240
246
  "reply": {
@@ -249,7 +255,7 @@
249
255
  "action": "send",
250
256
  "channel": { "$ref": "#/channels/sidebarToPlugin" },
251
257
  "title": "onAgenticStreamComplete",
252
- "description": "Notify plugin the agentic stream finished.",
258
+ "description": "Notify plugin the agentic stream finished. documentReference is the run's originating document (null when multiDocument is not enabled).",
253
259
  "x-optional": false,
254
260
  "messages": [{ "$ref": "#/channels/sidebarToPlugin/messages/onAgenticStreamComplete_call" }],
255
261
  "reply": {
@@ -343,7 +349,7 @@
343
349
  "action": "send",
344
350
  "channel": { "$ref": "#/channels/pluginToSidebar" },
345
351
  "title": "activateAgenticIssue",
346
- "description": "Activate (expand/scroll to) an issue card.",
352
+ "description": "Activate (expand/scroll to) an issue card. documentReference is the originating document (null when multiDocument is not enabled).",
347
353
  "x-optional": false,
348
354
  "messages": [{ "$ref": "#/channels/pluginToSidebar/messages/activateAgenticIssue_call" }],
349
355
  "reply": {
@@ -428,6 +434,21 @@
428
434
  { "$ref": "#/channels/pluginToSidebar/messages/ipc_error" }
429
435
  ]
430
436
  }
437
+ },
438
+ "onActiveDocumentChanged": {
439
+ "action": "send",
440
+ "channel": { "$ref": "#/channels/pluginToSidebar" },
441
+ "title": "onActiveDocumentChanged",
442
+ "description": "Notify the sidebar that the active document changed (multiDocument hosts). null means no checkable document is active.",
443
+ "x-optional": true,
444
+ "messages": [{ "$ref": "#/channels/pluginToSidebar/messages/onActiveDocumentChanged_call" }],
445
+ "reply": {
446
+ "channel": { "$ref": "#/channels/pluginToSidebar" },
447
+ "messages": [
448
+ { "$ref": "#/channels/pluginToSidebar/messages/onActiveDocumentChanged_response" },
449
+ { "$ref": "#/channels/pluginToSidebar/messages/ipc_error" }
450
+ ]
451
+ }
431
452
  }
432
453
  },
433
454
  "components": {
@@ -543,10 +564,11 @@
543
564
  "type": "array",
544
565
  "prefixItems": [
545
566
  { "type": "string" },
546
- { "$ref": "#/components/schemas/ContentRange" }
567
+ { "$ref": "#/components/schemas/ContentRange" },
568
+ { "type": ["string", "null"] }
547
569
  ],
548
570
  "minItems": 2,
549
- "maxItems": 2,
571
+ "maxItems": 3,
550
572
  "items": false
551
573
  }
552
574
  }
@@ -582,9 +604,12 @@
582
604
  "name": { "const": "selectContent" },
583
605
  "data": {
584
606
  "type": "array",
585
- "prefixItems": [{ "$ref": "#/components/schemas/ContentRange" }],
607
+ "prefixItems": [
608
+ { "$ref": "#/components/schemas/ContentRange" },
609
+ { "type": ["string", "null"] }
610
+ ],
586
611
  "minItems": 1,
587
- "maxItems": 1,
612
+ "maxItems": 2,
588
613
  "items": false
589
614
  }
590
615
  }
@@ -781,10 +806,14 @@
781
806
  "type": "array",
782
807
  "prefixItems": [
783
808
  { "type": "string" },
784
- { "type": "array", "items": { "$ref": "#/components/schemas/AgenticIssuePayload" } }
809
+ {
810
+ "type": "array",
811
+ "items": { "$ref": "#/components/schemas/AgenticIssuePayload" }
812
+ },
813
+ { "type": ["string", "null"] }
785
814
  ],
786
815
  "minItems": 2,
787
- "maxItems": 2,
816
+ "maxItems": 3,
788
817
  "items": false
789
818
  }
790
819
  }
@@ -820,9 +849,9 @@
820
849
  "name": { "const": "onAgenticStreamComplete" },
821
850
  "data": {
822
851
  "type": "array",
823
- "prefixItems": [],
852
+ "prefixItems": [{ "type": ["string", "null"] }],
824
853
  "minItems": 0,
825
- "maxItems": 0,
854
+ "maxItems": 1,
826
855
  "items": false
827
856
  }
828
857
  }
@@ -1058,9 +1087,9 @@
1058
1087
  "name": { "const": "activateAgenticIssue" },
1059
1088
  "data": {
1060
1089
  "type": "array",
1061
- "prefixItems": [{ "type": "string" }],
1090
+ "prefixItems": [{ "type": "string" }, { "type": ["string", "null"] }],
1062
1091
  "minItems": 1,
1063
- "maxItems": 1,
1092
+ "maxItems": 2,
1064
1093
  "items": false
1065
1094
  }
1066
1095
  }
@@ -1271,6 +1300,44 @@
1271
1300
  "data": { "$ref": "#/components/schemas/IntegrationSettingsSnapshot" }
1272
1301
  }
1273
1302
  }
1303
+ },
1304
+ "onActiveDocumentChanged_call": {
1305
+ "name": "onActiveDocumentChanged_call",
1306
+ "title": "call onActiveDocumentChanged",
1307
+ "payload": {
1308
+ "title": "onActiveDocumentChanged_call",
1309
+ "type": "object",
1310
+ "additionalProperties": false,
1311
+ "required": ["type", "id", "name", "data"],
1312
+ "properties": {
1313
+ "type": { "const": "call" },
1314
+ "id": { "type": "integer" },
1315
+ "name": { "const": "onActiveDocumentChanged" },
1316
+ "data": {
1317
+ "type": "array",
1318
+ "prefixItems": [{ "type": ["string", "null"] }],
1319
+ "minItems": 1,
1320
+ "maxItems": 1,
1321
+ "items": false
1322
+ }
1323
+ }
1324
+ }
1325
+ },
1326
+ "onActiveDocumentChanged_response": {
1327
+ "name": "onActiveDocumentChanged_response",
1328
+ "title": "response onActiveDocumentChanged",
1329
+ "payload": {
1330
+ "title": "onActiveDocumentChanged_response",
1331
+ "type": "object",
1332
+ "additionalProperties": false,
1333
+ "required": ["type", "id", "name", "data"],
1334
+ "properties": {
1335
+ "type": { "const": "response" },
1336
+ "id": { "type": "integer" },
1337
+ "name": { "const": "onActiveDocumentChanged" },
1338
+ "data": { "type": "null" }
1339
+ }
1340
+ }
1274
1341
  }
1275
1342
  },
1276
1343
  "schemas": {
@@ -1395,6 +1462,14 @@
1395
1462
  "type": "boolean",
1396
1463
  "description": "Whether the sidebar may run several agents concurrently in one check.\n\nWhen `false` or omitted (the default), only the Style agent is offered and run, and a check is dispatched as a single-agent run. When `true`, the sidebar offers every agent the organization is entitled to and fans the selected ones out through the parallel executor, streaming results per agent; each agent can then be cancelled independently of the others.\n\nThe host flag and the organization's entitlement **intersect**: enabling this never grants access to an agent the organization does not have, and an entitled agent is never offered while this is `false`."
1397
1464
  },
1465
+ "multiDocument": {
1466
+ "type": "boolean",
1467
+ "description": "Whether the sidebar retains check results and issue decisions separately per document, for hosts that let a user switch between several open documents (e.g. a tabbed editor).\n\nWhen `false` or omitted (the default), the sidebar holds a single shared check state regardless of any `onActiveDocumentChanged` calls the host makes. When `true`, switching the active document preserves the outgoing document's results and restores the incoming document's previously retained results, if any."
1468
+ },
1469
+ "initialActiveDocumentReference": {
1470
+ "type": ["string", "null"],
1471
+ "description": "The document the host considers active at the moment it responds to `getInitConfig()` — `null` if none is checkable right now, or omitted if the host doesn't know or doesn't support reporting it yet.\n\nThis is a **one-time snapshot resolved at init**, not a live-updating field — `SidebarConfig` is fetched once per session, so later changes to the active document must still go through `notifyActiveDocumentChanged`. Only meaningful when `multiDocument` is `true`; ignored otherwise.\n\nSupplying this lets the sidebar show its \"nothing to check\" state immediately on load instead of only after a subsequent `notifyActiveDocumentChanged` call. Omit it if the host cannot answer the question at init time — the sidebar falls back to waiting for that later call (or its own passive detection from the first `getContent()` response) exactly as it does today."
1472
+ },
1398
1473
  "auth": {
1399
1474
  "$ref": "#/components/schemas/AuthConfig",
1400
1475
  "description": "How the sidebar should run the Auth0 login flow. When omitted, the sidebar falls back to heuristic strategy selection (iframe context, secure origin, etc.) for backwards compatibility. New integrations should set this explicitly; `\"mediation\"` is the correct choice for hosts that embed the sidebar in an iframe (Figma, Office task pane).\n\nIn dev builds, the sidebar also honors a `localStorage` override at the key exported as `AUTH_CONFIG_OVERRIDE_STORAGE_KEY` — see `getAuthConfigWithOverride` in `sidebar-host`."
@@ -1523,21 +1598,22 @@
1523
1598
  "properties": {
1524
1599
  "getContent": {
1525
1600
  "$comment": "() => Promise<ContentInfo>",
1526
- "description": "Get content from the editor in whatever format the integration supports The integration must provide content and documentReference; documentName and mimeType are optional"
1601
+ "description": "Get content from the editor in whatever format the integration supports The integration must provide content and documentReference; documentName and mimeType are optional. Compose `documentReference` with the exported `buildDocumentReference(prefix, id)` helper — see {@link ContentInfo.documentReference } for why."
1527
1602
  },
1528
1603
  "getSelectedContent": {
1529
1604
  "$comment": "() => Promise<ContentInfo>",
1530
- "description": "Get selected content from the editor in whatever format the integration supports The integration must provide content and documentReference; documentName and mimeType are optional"
1605
+ "description": "Get selected content from the editor in whatever format the integration supports The integration must provide content and documentReference; documentName and mimeType are optional. Same `documentReference` as the whole document — see {@link ContentInfo.documentReference } ."
1531
1606
  },
1532
1607
  "replaceContent": {
1533
- "$comment": "(suggestion: string, range: ContentRange) => Promise<void>",
1608
+ "$comment": "(\n suggestion: string,\n range: ContentRange,\n documentReference?: string | null) => Promise<void>",
1534
1609
  "type": "object",
1535
1610
  "properties": {
1536
1611
  "namedArgs": {
1537
1612
  "type": "object",
1538
1613
  "properties": {
1539
1614
  "suggestion": { "type": "string" },
1540
- "range": { "$ref": "#/components/schemas/ContentRange" }
1615
+ "range": { "$ref": "#/components/schemas/ContentRange" },
1616
+ "documentReference": { "type": ["string", "null"] }
1541
1617
  },
1542
1618
  "required": ["suggestion", "range"],
1543
1619
  "additionalProperties": false
@@ -1546,12 +1622,15 @@
1546
1622
  "description": "Replace content in the editor using document offsets only."
1547
1623
  },
1548
1624
  "selectContent": {
1549
- "$comment": "(range: ContentRange) => Promise<void>",
1625
+ "$comment": "(range: ContentRange, documentReference?: string | null) => Promise<void>",
1550
1626
  "type": "object",
1551
1627
  "properties": {
1552
1628
  "namedArgs": {
1553
1629
  "type": "object",
1554
- "properties": { "range": { "$ref": "#/components/schemas/ContentRange" } },
1630
+ "properties": {
1631
+ "range": { "$ref": "#/components/schemas/ContentRange" },
1632
+ "documentReference": { "type": ["string", "null"] }
1633
+ },
1555
1634
  "required": ["range"],
1556
1635
  "additionalProperties": false
1557
1636
  }
@@ -1603,7 +1682,7 @@
1603
1682
  "description": "Get initialization configuration from the editor Called by the sidebar when it's ready to initialize"
1604
1683
  },
1605
1684
  "onAgenticAgentResults": {
1606
- "$comment": "(agentName: string, issues: AgenticIssuePayload[]) => Promise<void>",
1685
+ "$comment": "(\n agentName: string,\n issues: AgenticIssuePayload[],\n documentReference: string | null) => Promise<void>",
1607
1686
  "type": "object",
1608
1687
  "properties": {
1609
1688
  "namedArgs": {
@@ -1613,16 +1692,26 @@
1613
1692
  "issues": {
1614
1693
  "type": "array",
1615
1694
  "items": { "$ref": "#/components/schemas/AgenticIssuePayload" }
1616
- }
1695
+ },
1696
+ "documentReference": { "type": ["string", "null"] }
1617
1697
  },
1618
- "required": ["agentName", "issues"],
1698
+ "required": ["agentName", "issues", "documentReference"],
1619
1699
  "additionalProperties": false
1620
1700
  }
1621
1701
  },
1622
1702
  "description": "Called when one agent's results are available during agentic streaming. Enables the plugin to render underlines or update UI per agent as results arrive."
1623
1703
  },
1624
1704
  "onAgenticStreamComplete": {
1625
- "$comment": "() => Promise<void>",
1705
+ "$comment": "(documentReference: string | null) => Promise<void>",
1706
+ "type": "object",
1707
+ "properties": {
1708
+ "namedArgs": {
1709
+ "type": "object",
1710
+ "properties": { "documentReference": { "type": ["string", "null"] } },
1711
+ "required": ["documentReference"],
1712
+ "additionalProperties": false
1713
+ }
1714
+ },
1626
1715
  "description": "Called when the agentic stream has finished (all agents done or completion/error event)."
1627
1716
  },
1628
1717
  "onAgenticIssueStatusChanged": {
@@ -1742,12 +1831,15 @@
1742
1831
  "description": "Example method: Called when plugin status changes (e.g., initialization complete) This serves as a template for adding future Plugin → Sidebar communication"
1743
1832
  },
1744
1833
  "activateAgenticIssue": {
1745
- "$comment": "(issueId: string) => Promise<void>",
1834
+ "$comment": "(issueId: string, documentReference?: string | null) => Promise<void>",
1746
1835
  "type": "object",
1747
1836
  "properties": {
1748
1837
  "namedArgs": {
1749
1838
  "type": "object",
1750
- "properties": { "issueId": { "type": "string" } },
1839
+ "properties": {
1840
+ "issueId": { "type": "string" },
1841
+ "documentReference": { "type": ["string", "null"] }
1842
+ },
1751
1843
  "required": ["issueId"],
1752
1844
  "additionalProperties": false
1753
1845
  }
@@ -1811,6 +1903,19 @@
1811
1903
  "getIntegrationSettings": {
1812
1904
  "$comment": "() => Promise<IntegrationSettingsSnapshot>",
1813
1905
  "description": "Read back the sidebar's current integration-settings state — the persisted user values plus any session-only field states the host has pushed via {@link applyIntegrationSettings } . Hosts call this when they re-mount mid-session and need to mirror sidebar state without clobbering the user's persisted choices.\n\nReturns an empty snapshot (`{ values: {}, fieldStates: {} }`) when no integration-settings schema has been declared.\n\nOptional on the `SidebarInterface` type for the same reason as {@link applyIntegrationSettings } ; the sidebar app's actual implementation always provides it."
1906
+ },
1907
+ "onActiveDocumentChanged": {
1908
+ "$comment": "(documentReference: string | null) => Promise<void>",
1909
+ "type": "object",
1910
+ "properties": {
1911
+ "namedArgs": {
1912
+ "type": "object",
1913
+ "properties": { "documentReference": { "type": ["string", "null"] } },
1914
+ "required": ["documentReference"],
1915
+ "additionalProperties": false
1916
+ }
1917
+ },
1918
+ "description": "Notify the sidebar that the user switched which document is active in a multi-document host (e.g. a tabbed editor). Only meaningful when the host's init config sets `multiDocument: true`; the sidebar SHALL ignore this call otherwise.\n\n`documentReference` must match the `documentReference` returned in that document's `ContentInfo` — the same value built with `buildDocumentReference(prefix, id)`, not a re-derivation. Pass `null` when there is no checkable document currently active — every tab closed, or the active tab is content the host does not consider checkable — which the sidebar treats as a deliberate signal, not a malformed value. An empty string, by contrast, is ignored as malformed; the sidebar's active document stays whatever it was."
1814
1919
  }
1815
1920
  },
1816
1921
  "additionalProperties": false,
@@ -32,11 +32,11 @@ export declare class PluginAdapter {
32
32
  /**
33
33
  * Replace content in the editor
34
34
  */
35
- replaceContent(suggestion: string, range: ContentRange): Promise<void>;
35
+ replaceContent(suggestion: string, range: ContentRange, documentReference?: string | null): Promise<void>;
36
36
  /**
37
37
  * Select content in the editor
38
38
  */
39
- selectContent(range: ContentRange): Promise<void>;
39
+ selectContent(range: ContentRange, documentReference?: string | null): Promise<void>;
40
40
  /**
41
41
  * Show a dialog in the editor
42
42
  */
@@ -52,11 +52,11 @@ export declare class PluginAdapter {
52
52
  /**
53
53
  * Notify plugin that one agent's results are available (streaming).
54
54
  */
55
- onAgenticAgentResults(agentName: string, issues: AgenticIssuePayload[]): Promise<void>;
55
+ onAgenticAgentResults(agentName: string, issues: AgenticIssuePayload[], documentReference?: string | null): Promise<void>;
56
56
  /**
57
57
  * Notify plugin that the agentic stream has finished.
58
58
  */
59
- onAgenticStreamComplete(): Promise<void>;
59
+ onAgenticStreamComplete(documentReference?: string | null): Promise<void>;
60
60
  /**
61
61
  * Notify plugin after a successful agentic-issue status transition.
62
62
  * Optional on the host side — the returned promise rejects if the host
@@ -1 +1 @@
1
- {"version":3,"file":"pluginAdapter.d.ts","sourceRoot":"","sources":["../../src/adapters/pluginAdapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EACzB,6BAA6B,EAC9B,MAAM,SAAS,CAAC;AAEjB;;;;;;;GAOG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;gBAElC,OAAO,CAAC,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,SAAS,EAAE,YAAY,CAAC,EAAE,MAAM;IAKjF;;OAEG;IACI,OAAO,IAAI,IAAI;IAKtB;;OAEG;IACU,aAAa,IAAI,OAAO,CAAC,aAAa,CAAC;IAKpD;;;OAGG;IACU,UAAU,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAKpE;;;OAGG;IACU,kBAAkB,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAK5E;;OAEG;IACU,cAAc,CAAC,UAAU,EAA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,CAAC;IAKzC;;OAEG;IACU,uBAAuB,CAAC,YAAY,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAKvF;;OAEG;IACI,qBAAqB,CAC1B,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,mBAAmB,EAAE,EAC7B,iBAAiB,GAAE,MAAM,GAAG,IAAW,GACtC,OAAO,CAAC,IAAI,CAAC;IAIhB;;OAEG;IACI,uBAAuB,CAAC,iBAAiB,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAItF;;;;;OAKG;IACI,2BAA2B,CAChC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,QAAQ,GAAG,UAAU,GAAG,WAAW,EAC3C,MAAM,EAAE,MAAM,GAAG,MAAM,GACtB,OAAO,CAAC,IAAI,CAAC;IAIhB;;;;OAIG;IACI,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9C;;;;;OAKG;IACI,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAInD;;;;;OAKG;IACI,2BAA2B,CAChC,MAAM,EAAE,yBAAyB,EACjC,IAAI,EAAE,6BAA6B,GAClC,OAAO,CAAC,IAAI,CAAC;IAIhB;;OAEG;IACI,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI;IAIzC;;OAEG;IACI,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;IAIlD;;OAEG;IACI,eAAe,IAAI,MAAM;CAGjC"}
@@ -34,8 +34,13 @@ export declare class SidebarAdapter {
34
34
  notifyPluginStatus(status: string, type?: PluginStatusType): Promise<void>;
35
35
  /**
36
36
  * Request sidebar to activate (expand and scroll to) the card for the given issue.
37
+ *
38
+ * @param documentReference - The document the issue belongs to. When it
39
+ * differs from the sidebar's currently displayed document, the sidebar
40
+ * switches to it before activating. Omitted or `null` means the
41
+ * sidebar's currently displayed document.
37
42
  */
38
- activateAgenticIssue(issueId: string): Promise<void>;
43
+ activateAgenticIssue(issueId: string, documentReference?: string | null): Promise<void>;
39
44
  /**
40
45
  * Request sidebar to invalidate (dismiss) the card for the given issue.
41
46
  */
@@ -75,6 +80,12 @@ export declare class SidebarAdapter {
75
80
  * `integrationSettings` in its `SidebarConfig`.
76
81
  */
77
82
  getIntegrationSettings(): Promise<IntegrationSettingsSnapshot>;
83
+ /**
84
+ * Notify the sidebar that the active document changed, for hosts that
85
+ * enable `multiDocument`. Pass `null` when there is no checkable document
86
+ * currently active. No-op if the sidebar has not registered a handler.
87
+ */
88
+ notifyActiveDocumentChanged(documentReference: string | null): Promise<void>;
78
89
  /**
79
90
  * Update IPC configuration
80
91
  */
@@ -1 +1 @@
1
- {"version":3,"file":"sidebarAdapter.d.ts","sourceRoot":"","sources":["../../src/adapters/sidebarAdapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC3B,eAAe,EACf,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,6DAA6D;IAC7D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,+DAA+D;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAoB;gBAEnC,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAW/F;;OAEG;IACI,OAAO,IAAI,IAAI;IAKtB;;;;;;;;OAQG;IACU,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAKvF;;OAEG;IAC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