@markupai/sidebar-adapter 2.3.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +96 -11
- package/asyncapi.json +201 -41
- package/dist/adapters/index.d.ts +2 -2
- package/dist/adapters/pluginAdapter.d.ts +15 -3
- package/dist/adapters/pluginAdapter.d.ts.map +1 -1
- package/dist/adapters/sidebarAdapter.d.ts +2 -2
- package/dist/adapters/sidebarAdapter.d.ts.map +1 -1
- package/dist/errors.d.ts +12 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/ipc/call-signatures.d.ts +15 -2
- package/dist/ipc/call-signatures.d.ts.map +1 -1
- package/dist/ipc/deferred-promise.d.ts.map +1 -1
- package/dist/ipc/index.d.ts +8 -8
- package/dist/ipc/index.d.ts.map +1 -1
- package/dist/ipc/ipc-core.d.ts +32 -3
- package/dist/ipc/ipc-core.d.ts.map +1 -1
- package/dist/ipc/message-types.d.ts +35 -4
- package/dist/ipc/message-types.d.ts.map +1 -1
- package/dist/ipc/plugin-ipc-adapter.d.ts +16 -5
- package/dist/ipc/plugin-ipc-adapter.d.ts.map +1 -1
- package/dist/ipc/replace-progress.d.ts +9 -0
- package/dist/ipc/replace-progress.d.ts.map +1 -0
- package/dist/ipc/sidebar-build-info.d.ts +1 -1
- package/dist/ipc/sidebar-ipc-adapter.d.ts +4 -4
- package/dist/ipc/sidebar-ipc-adapter.d.ts.map +1 -1
- package/dist/load-overlay/loadOverlayStyles.d.ts.map +1 -1
- package/dist/load-overlay/sidebarLoadOverlay.d.ts.map +1 -1
- package/dist/main.js +319 -210
- package/dist/main.umd.cjs +7 -7
- package/dist/sidebar-host/createSidebarHost.d.ts +4 -4
- package/dist/types/common.d.ts +30 -0
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/integrationSettings.d.ts.map +1 -1
- package/dist/types/pluginInterface.d.ts +38 -2
- package/dist/types/pluginInterface.d.ts.map +1 -1
- package/dist/types/progress.d.ts +18 -0
- package/dist/types/progress.d.ts.map +1 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -18,8 +18,9 @@ You do **not** need prior knowledge of how the sidebar is built internally. As a
|
|
|
18
18
|
10. [Sidebar load overlay (standalone)](#sidebarloadoverlay-editor-ui)
|
|
19
19
|
11. [Agentic issue lifecycle](#agentic-issue-lifecycle) · [Document references](#document-references)
|
|
20
20
|
12. [Multi-document hosts](#multi-document-hosts)
|
|
21
|
-
13. [
|
|
22
|
-
14. [
|
|
21
|
+
13. [Comments](#comments) (anchoring an issue as a document comment)
|
|
22
|
+
14. [Sidebar build reporting](#sidebar-build-reporting) (which sidebar build is running)
|
|
23
|
+
15. [API reference](#api-reference) · [Development](#development)
|
|
23
24
|
|
|
24
25
|
## Features
|
|
25
26
|
|
|
@@ -30,6 +31,7 @@ You do **not** need prior knowledge of how the sidebar is built internally. As a
|
|
|
30
31
|
- **Host shell helpers** — `ensureSidebarHostShell` / `buildSidebarHostHtmlDocument` so you don’t duplicate container markup and layout CSS
|
|
31
32
|
- **MIME helpers** — `MimeType` enum plus arbitrary MIME strings for `ContentInfo`
|
|
32
33
|
- **Errors** — `TextLookupError` / `ReplaceBatchError` and guards for editor lookup failures
|
|
34
|
+
- **Comments** — `SidebarConfig.supportComments` plus optional `PluginInterface.addComment` let users anchor an issue as a native document comment (see [Comments](#comments))
|
|
33
35
|
- **Auth** — `SidebarConfig.auth` for declaring the Auth0 login strategy (`"mediation" | "popup"`) and optional `PluginInterface.openAuthUrl` for routing the authorize URL through a host-owned external-browser primitive (see [Authentication](#authentication-optional))
|
|
34
36
|
- **Cleanup** — `destroy()` / teardown functions on adapters and hosts
|
|
35
37
|
|
|
@@ -51,6 +53,7 @@ The sidebar runs the **agentic** experience. Its optional `PluginInterface` hook
|
|
|
51
53
|
- **Receive streaming results** — implement **`onAgenticAgentResults`** and **`onAgenticStreamComplete`** to get issues (each with its suggestions) as they stream plus a completion signal, so you can draw your own underlines or build a context menu (see [PluginInterface](#plugininterface)).
|
|
52
54
|
- **Track issue state** — implement **`onAgenticIssueStatusChanged`**; the sidebar emits it after every Open / Resolved / Dismissed transition so you can keep annotations or other host UI in sync.
|
|
53
55
|
- **Know when a document's check is discarded** — implement **`onAgenticIssuesCleared`**; the sidebar emits it when the user clears a document's data, so you can drop highlights instead of pointing at suggestions that no longer exist.
|
|
56
|
+
- **Add issues as document comments** — if your editor can anchor a comment on a span of text, implement **`addComment`** and set **`supportComments: true`**; issue cards then offer **Add as Comment** (see [Comments](#comments)).
|
|
54
57
|
- **Drive the sidebar** — call **`activateAgenticIssue`** to expand and scroll to a card (e.g. when the user clicks an underline or picks the issue from a context menu), and **`markAgenticIssueResolved`** / **`restoreAgenticIssue`** / **`invalidateAgenticIssue`** to resolve / restore / dismiss a card — for example after applying a suggestion inline from your own context menu.
|
|
55
58
|
|
|
56
59
|
See [Agentic issue lifecycle](#agentic-issue-lifecycle).
|
|
@@ -134,13 +137,24 @@ await adapter.selectContent({ start: 0, end: 11 }, content.documentReference);
|
|
|
134
137
|
await adapter.replaceContent("Hello universe", { start: 0, end: 11 }, content.documentReference);
|
|
135
138
|
|
|
136
139
|
// Replace multiple contents in the editor
|
|
137
|
-
|
|
140
|
+
const replacements = [
|
|
138
141
|
{ suggestion: "Hello universe", range: { start: 0, end: 11 } },
|
|
139
142
|
{ suggestion: "bar", range: { start: 20, end: 23 } },
|
|
140
|
-
]
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
143
|
+
];
|
|
144
|
+
await adapter.replaceMultipleContents(replacements);
|
|
145
|
+
|
|
146
|
+
// A large batch can need longer than the default 10 s: pass a timeout (ms) as
|
|
147
|
+
// the trailing argument. It stays on the sidebar side and is not sent to the host.
|
|
148
|
+
// It is capped at MAX_IPC_TIMEOUT_MS (about 24.8 days), so Infinity waits that
|
|
149
|
+
// long; NaN, 0 or a negative value uses the configured timeout instead (the
|
|
150
|
+
// configured one follows the same rule). A timeout error names a replaced value.
|
|
151
|
+
// `onProgress` is called while the host works (see "Progress of a batch");
|
|
152
|
+
// `onLateResult` once, when the host answers after the timeout.
|
|
153
|
+
await adapter.replaceMultipleContents(replacements, {
|
|
154
|
+
timeout: 60_000,
|
|
155
|
+
onProgress: ({ total, applied }) => console.log(`${applied.length} of ${total}`),
|
|
156
|
+
onLateResult: (result) => console.log(result.status),
|
|
157
|
+
});
|
|
144
158
|
|
|
145
159
|
// Clean up when done
|
|
146
160
|
adapter.destroy();
|
|
@@ -199,6 +213,9 @@ const pluginInterface: PluginInterface = {
|
|
|
199
213
|
// agents actually offered are the intersection of this flag and the
|
|
200
214
|
// organization's entitlement.
|
|
201
215
|
multiAgent: false,
|
|
216
|
+
// Optional. Set true only when you implement addComment; issue cards then
|
|
217
|
+
// offer "Add as Comment". Defaults to false. See the "Comments" section.
|
|
218
|
+
supportComments: false,
|
|
202
219
|
pluginOrigin: globalThis.location.origin,
|
|
203
220
|
// Optional. Declare the Auth0 login strategy the sidebar should run.
|
|
204
221
|
// Omit to let the sidebar pick heuristically (legacy behavior).
|
|
@@ -509,6 +526,10 @@ Optional (clipboard):
|
|
|
509
526
|
|
|
510
527
|
- `copyToClipboard?(text: string): Promise<void>` — Write text to the system clipboard on the sidebar's behalf. Implement this in hosts where the sidebar iframe cannot use the async clipboard API itself — notably VS Code webviews, whose Electron permission handler denies `clipboard-write` to any frame that is not on the `vscode-webview://` origin (the VS Code extension calls `vscode.env.clipboard.writeText(text)` in the extension host). Reject to signal the write failed. When omitted, the sidebar detects the absence via the standard `"No receiver registered for: copyToClipboard"` IPC error and falls back to `navigator.clipboard.writeText`, then `document.execCommand("copy")`.
|
|
511
528
|
|
|
529
|
+
Optional (comments):
|
|
530
|
+
|
|
531
|
+
- `addComment?(comment: CommentRequest, documentReference?: string | null): Promise<void>` — Anchor a comment on `[comment.range.start, comment.range.end)` without changing the text. `comment.text` is a ready-to-post plain-text body; `comment.issue` is the structured `AgenticIssuePayload` for hosts that format their own. Same `documentReference` rule as `selectContent`. Throw `TextLookupError` when the range cannot be located, or an `Error` with a user-facing `message` when the host cannot comment there. Only called when your config sets `supportComments: true`; when the handler is absent the call rejects with `"No receiver registered for: addComment"`. See [Comments](#comments).
|
|
532
|
+
|
|
512
533
|
#### Error control flows
|
|
513
534
|
|
|
514
535
|
When implementing `selectContent` or `replaceContent`, throw `TextLookupError` from this package when text lookup (e.g. locating the selection or target range) fails. The sidebar will treat it as a selection failure and can invalidate the issue card with the error message.
|
|
@@ -539,7 +560,7 @@ try {
|
|
|
539
560
|
}
|
|
540
561
|
```
|
|
541
562
|
|
|
542
|
-
For `replaceMultipleContents`, throw `ReplaceBatchError` when the batch could not be applied in full and you know which ranges landed. It extends `TextLookupError` and carries `applied` (`ContentRange[]`) and `failed` (`ReplaceBatchFailedRange[]`), the ranges as they were sent; a range in neither list was left untouched. The sidebar resolves the applied occurrences, invalidates the failed ones, and leaves the rest active. The error's `message` describes the batch, so it is shown only on the card the user applied from. Give a failed range its own `message` to explain that one occurrence on its card; without one, the sidebar shows its own "text could not be found" message. A host that verifies every range before editing throws it with an empty `applied`; a plain `TextLookupError` is still accepted and treated as a failure of the whole batch.
|
|
563
|
+
For `replaceMultipleContents`, throw `ReplaceBatchError` when the batch could not be applied in full and you know which ranges landed. It extends `TextLookupError` and carries `applied` (`ContentRange[]`) and `failed` (`ReplaceBatchFailedRange[]`), the ranges as they were sent; a range in neither list was left untouched, unless it was reported as applied before (see [Progress of a batch](#progress-of-a-batch)). The sidebar resolves the applied occurrences, invalidates the failed ones, and leaves the rest active. The error's `message` describes the batch, so it is shown only on the card the user applied from. Give a failed range its own `message` to explain that one occurrence on its card; without one, the sidebar shows its own "text could not be found" message. A host that verifies every range before editing throws it with an empty `applied`; a plain `TextLookupError` is still accepted and treated as a failure of the whole batch.
|
|
543
564
|
|
|
544
565
|
```typescript
|
|
545
566
|
import { ReplaceBatchError } from "@markupai/sidebar-adapter";
|
|
@@ -561,6 +582,28 @@ if (unverifiable.length > 0) {
|
|
|
561
582
|
|
|
562
583
|
Non-JS ports serialize it as `{ name: "ReplaceBatchError", message, applied, failed }` — see `ReplaceBatchErrorPayload` in `asyncapi.json`.
|
|
563
584
|
|
|
585
|
+
### Progress of a batch
|
|
586
|
+
|
|
587
|
+
A host can report which places it has replaced while it works on `replaceMultipleContents`. The adapter hands it `reportProgress` in an optional second parameter:
|
|
588
|
+
|
|
589
|
+
```typescript
|
|
590
|
+
replaceMultipleContents: async (replacements, context) => {
|
|
591
|
+
const applied: ContentRange[] = [];
|
|
592
|
+
for (const { suggestion, range } of replacements) {
|
|
593
|
+
await replaceInEditor(suggestion, range);
|
|
594
|
+
applied.push(range);
|
|
595
|
+
context?.reportProgress?.({ total: replacements.length, applied });
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
```
|
|
599
|
+
|
|
600
|
+
- Report a range only after its edit is in the document. The sidebar settles it at once, also when the call fails later.
|
|
601
|
+
- List every range applied so far, as it was sent in the call. An empty `applied` says that the host is still working.
|
|
602
|
+
- Reports carry no failures. Throw `ReplaceBatchError` for those, and include every reported range in its `applied`.
|
|
603
|
+
- A report does not change the timeout of the call, never throws, and expects no reply.
|
|
604
|
+
|
|
605
|
+
On the sidebar side, `onProgress` receives the reports. A call that times out rejects with `IpcTimeoutError` (`isIpcTimeoutError`). The host may still be working, so reports that arrive later still reach `onProgress`, and the final answer reaches `onLateResult`. The call is forgotten 5 minutes after its timeout (`LATE_RESULT_WINDOW_MS`): anything the host sends after that is dropped. Non-JS ports send `{ type: "progress", id, name, data }` with the id and name of the call; see `ReplaceProgress` in `asyncapi.json`. A sidebar that does not know the type ignores it.
|
|
606
|
+
|
|
564
607
|
Note: We document thrown errors via JSDoc `@throws` on the plugin interface and export union types `SelectContentError`, `ReplaceContentError` and `ReplaceMultipleContentsError` for control-flow typing when catching.
|
|
565
608
|
|
|
566
609
|
### Message Format
|
|
@@ -731,7 +774,7 @@ getInitConfig: async () => ({
|
|
|
731
774
|
});
|
|
732
775
|
```
|
|
733
776
|
|
|
734
|
-
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.
|
|
777
|
+
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; the only effect of such a call naming a different document is that the Style category filter is cleared, since it was picked for the previous document's results. Pass the same `documentReference` your `getContent` / `getSelectedContent` responses carry for that document: a different format makes every call look like a switch, so the filter would be cleared even when the user stays on the same document.
|
|
735
778
|
|
|
736
779
|
**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.
|
|
737
780
|
|
|
@@ -772,7 +815,7 @@ Once `multiDocument` is on, several calls in both directions carry an explicit `
|
|
|
772
815
|
|
|
773
816
|
| Direction | Method | Why it needs to name a document |
|
|
774
817
|
| -------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
775
|
-
| Sidebar → host | `selectContent`, `replaceContent`
|
|
818
|
+
| Sidebar → host | `selectContent`, `replaceContent`, `addComment` | 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. |
|
|
776
819
|
| 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. |
|
|
777
820
|
| 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). |
|
|
778
821
|
|
|
@@ -812,7 +855,49 @@ This is the part that's on you: `documentReference` is an opaque string as far a
|
|
|
812
855
|
|
|
813
856
|
### Single-document hosts (the default)
|
|
814
857
|
|
|
815
|
-
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.
|
|
858
|
+
If you don't set `multiDocument`, none of the above applies: every `documentReference` argument on `selectContent`, `replaceContent`, `addComment`, 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.
|
|
859
|
+
|
|
860
|
+
## Comments
|
|
861
|
+
|
|
862
|
+
Hosts whose editor can anchor a comment on a span of text — Word's `Range.insertComment` or a VS Code comment controller — can let users keep an issue in the document as a comment instead of acting on it right away. When enabled, every open issue card offers **Add as Comment**.
|
|
863
|
+
|
|
864
|
+
### Enabling it
|
|
865
|
+
|
|
866
|
+
Implement `addComment` **and** set `supportComments: true` in `getInitConfig`. The flag is what shows the action; set it only when the handler exists and the editor's comment API is actually available at runtime:
|
|
867
|
+
|
|
868
|
+
```typescript
|
|
869
|
+
getInitConfig: async () => ({
|
|
870
|
+
integrationName: "My Word Add-in",
|
|
871
|
+
integrationVersion: "1.0.0",
|
|
872
|
+
integrationId: "my-word-addin",
|
|
873
|
+
supportComments: Office.context.requirements.isSetSupported("WordApi", "1.4"),
|
|
874
|
+
}),
|
|
875
|
+
|
|
876
|
+
addComment: async (comment, documentReference) => {
|
|
877
|
+
const range = await locateRange(comment.range, documentReference); // same mapping as selectContent
|
|
878
|
+
if (!range) {
|
|
879
|
+
throw new TextLookupError("Check text again to locate this issue.");
|
|
880
|
+
}
|
|
881
|
+
range.insertComment(comment.text);
|
|
882
|
+
},
|
|
883
|
+
```
|
|
884
|
+
|
|
885
|
+
### What the sidebar sends
|
|
886
|
+
|
|
887
|
+
`CommentRequest` carries:
|
|
888
|
+
|
|
889
|
+
- `text` — a plain-text body the sidebar composes: a `Markup AI ·` heading with the issue's category (or agent name), the explanation, and every suggestion when there are any, on one line labelled `Suggestion:` or `Suggestions:`. Post it as-is, or ignore it and build your own body from `issue`.
|
|
890
|
+
- `range` — the issue's `[start, end)` offsets, with the same semantics as `selectContent`/`replaceContent`. Resolve it the same way you do for highlighting.
|
|
891
|
+
- `issue` — the structured `AgenticIssuePayload` (category, explanation, suggestions, severity, …).
|
|
892
|
+
|
|
893
|
+
The sidebar sends **no user information**. Attribute the comment however your editor normally does (Word, for example, stamps the signed-in Office user as author).
|
|
894
|
+
|
|
895
|
+
### Rules and failure handling
|
|
896
|
+
|
|
897
|
+
- **Do not change the document text.** Adding a comment must leave content and offsets untouched.
|
|
898
|
+
- **Range gone** — throw `TextLookupError`. The sidebar shows the message on the card and invalidates the issue, the same as a failed highlight.
|
|
899
|
+
- **Cannot comment here** (protected document, locked content control, …) — throw an `Error` whose `message` is safe to show the user. The sidebar shows it on the card and leaves the issue open.
|
|
900
|
+
- **A successful comment resolves the issue.** Once your `addComment` resolves, the sidebar moves the issue to **Resolved** (restorable, like **Mark as Resolved**) and calls `onAgenticIssueStatusChanged(issueId, "resolved", "user")`. So resolve the promise only after the comment is actually in the document. A rejected `addComment` never changes the status.
|
|
816
901
|
|
|
817
902
|
## Integration settings
|
|
818
903
|
|
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": "2.
|
|
5
|
+
"version": "2.5.0",
|
|
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": {
|
|
@@ -28,6 +28,9 @@
|
|
|
28
28
|
"replaceMultipleContents_response": {
|
|
29
29
|
"$ref": "#/components/messages/replaceMultipleContents_response"
|
|
30
30
|
},
|
|
31
|
+
"replaceMultipleContents_progress": {
|
|
32
|
+
"$ref": "#/components/messages/replaceMultipleContents_progress"
|
|
33
|
+
},
|
|
31
34
|
"getInitConfig_call": { "$ref": "#/components/messages/getInitConfig_call" },
|
|
32
35
|
"getInitConfig_response": { "$ref": "#/components/messages/getInitConfig_response" },
|
|
33
36
|
"onAgenticAgentResults_call": {
|
|
@@ -58,6 +61,8 @@
|
|
|
58
61
|
"openAuthUrl_response": { "$ref": "#/components/messages/openAuthUrl_response" },
|
|
59
62
|
"copyToClipboard_call": { "$ref": "#/components/messages/copyToClipboard_call" },
|
|
60
63
|
"copyToClipboard_response": { "$ref": "#/components/messages/copyToClipboard_response" },
|
|
64
|
+
"addComment_call": { "$ref": "#/components/messages/addComment_call" },
|
|
65
|
+
"addComment_response": { "$ref": "#/components/messages/addComment_response" },
|
|
61
66
|
"onIntegrationSettingsChange_call": {
|
|
62
67
|
"$ref": "#/components/messages/onIntegrationSettingsChange_call"
|
|
63
68
|
},
|
|
@@ -182,14 +187,15 @@
|
|
|
182
187
|
"action": "send",
|
|
183
188
|
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
184
189
|
"title": "replaceMultipleContents",
|
|
185
|
-
"description": "Replace multiple contents.",
|
|
190
|
+
"description": "Replace multiple contents. The plugin may send progress messages before it answers.",
|
|
186
191
|
"x-optional": false,
|
|
187
192
|
"messages": [{ "$ref": "#/channels/sidebarToPlugin/messages/replaceMultipleContents_call" }],
|
|
188
193
|
"reply": {
|
|
189
194
|
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
190
195
|
"messages": [
|
|
191
196
|
{ "$ref": "#/channels/sidebarToPlugin/messages/replaceMultipleContents_response" },
|
|
192
|
-
{ "$ref": "#/channels/sidebarToPlugin/messages/ipc_error" }
|
|
197
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/ipc_error" },
|
|
198
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/replaceMultipleContents_progress" }
|
|
193
199
|
]
|
|
194
200
|
}
|
|
195
201
|
},
|
|
@@ -300,6 +306,21 @@
|
|
|
300
306
|
]
|
|
301
307
|
}
|
|
302
308
|
},
|
|
309
|
+
"addComment": {
|
|
310
|
+
"action": "send",
|
|
311
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
312
|
+
"title": "addComment",
|
|
313
|
+
"description": "Ask the plugin to anchor a comment on [comment.range.start, comment.range.end) without changing the text. documentReference is the target document (null = active document). Rejects with TextLookupError when the range cannot be located. Only sent to hosts that set supportComments.",
|
|
314
|
+
"x-optional": false,
|
|
315
|
+
"messages": [{ "$ref": "#/channels/sidebarToPlugin/messages/addComment_call" }],
|
|
316
|
+
"reply": {
|
|
317
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
318
|
+
"messages": [
|
|
319
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/addComment_response" },
|
|
320
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/ipc_error" }
|
|
321
|
+
]
|
|
322
|
+
}
|
|
323
|
+
},
|
|
303
324
|
"onIntegrationSettingsChange": {
|
|
304
325
|
"action": "send",
|
|
305
326
|
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
@@ -658,6 +679,22 @@
|
|
|
658
679
|
}
|
|
659
680
|
}
|
|
660
681
|
},
|
|
682
|
+
"replaceMultipleContents_progress": {
|
|
683
|
+
"name": "replaceMultipleContents_progress",
|
|
684
|
+
"title": "progress replaceMultipleContents",
|
|
685
|
+
"payload": {
|
|
686
|
+
"title": "replaceMultipleContents_progress",
|
|
687
|
+
"type": "object",
|
|
688
|
+
"additionalProperties": false,
|
|
689
|
+
"required": ["type", "id", "name", "data"],
|
|
690
|
+
"properties": {
|
|
691
|
+
"type": { "const": "progress" },
|
|
692
|
+
"id": { "type": "integer" },
|
|
693
|
+
"name": { "const": "replaceMultipleContents" },
|
|
694
|
+
"data": { "$ref": "#/components/schemas/ReplaceProgress" }
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
},
|
|
661
698
|
"getInitConfig_call": {
|
|
662
699
|
"name": "getInitConfig_call",
|
|
663
700
|
"title": "call getInitConfig",
|
|
@@ -935,6 +972,47 @@
|
|
|
935
972
|
}
|
|
936
973
|
}
|
|
937
974
|
},
|
|
975
|
+
"addComment_call": {
|
|
976
|
+
"name": "addComment_call",
|
|
977
|
+
"title": "call addComment",
|
|
978
|
+
"payload": {
|
|
979
|
+
"title": "addComment_call",
|
|
980
|
+
"type": "object",
|
|
981
|
+
"additionalProperties": false,
|
|
982
|
+
"required": ["type", "id", "name", "data"],
|
|
983
|
+
"properties": {
|
|
984
|
+
"type": { "const": "call" },
|
|
985
|
+
"id": { "type": "integer" },
|
|
986
|
+
"name": { "const": "addComment" },
|
|
987
|
+
"data": {
|
|
988
|
+
"type": "array",
|
|
989
|
+
"prefixItems": [
|
|
990
|
+
{ "$ref": "#/components/schemas/CommentRequest" },
|
|
991
|
+
{ "type": ["string", "null"] }
|
|
992
|
+
],
|
|
993
|
+
"minItems": 1,
|
|
994
|
+
"maxItems": 2,
|
|
995
|
+
"items": false
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
},
|
|
1000
|
+
"addComment_response": {
|
|
1001
|
+
"name": "addComment_response",
|
|
1002
|
+
"title": "response addComment",
|
|
1003
|
+
"payload": {
|
|
1004
|
+
"title": "addComment_response",
|
|
1005
|
+
"type": "object",
|
|
1006
|
+
"additionalProperties": false,
|
|
1007
|
+
"required": ["type", "id", "name", "data"],
|
|
1008
|
+
"properties": {
|
|
1009
|
+
"type": { "const": "response" },
|
|
1010
|
+
"id": { "type": "integer" },
|
|
1011
|
+
"name": { "const": "addComment" },
|
|
1012
|
+
"data": { "type": "null" }
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
},
|
|
938
1016
|
"onIntegrationSettingsChange_call": {
|
|
939
1017
|
"name": "onIntegrationSettingsChange_call",
|
|
940
1018
|
"title": "call onIntegrationSettingsChange",
|
|
@@ -1318,6 +1396,74 @@
|
|
|
1318
1396
|
"additionalProperties": false,
|
|
1319
1397
|
"title": "ContentReplacement"
|
|
1320
1398
|
},
|
|
1399
|
+
"CommentRequest": {
|
|
1400
|
+
"type": "object",
|
|
1401
|
+
"properties": {
|
|
1402
|
+
"text": {
|
|
1403
|
+
"type": "string",
|
|
1404
|
+
"description": "Ready-to-post plain-text comment body composed by the sidebar. Hosts can post it as-is or build their own body from {@link CommentRequest.issue } . It carries no author information — the host attributes the comment."
|
|
1405
|
+
},
|
|
1406
|
+
"range": {
|
|
1407
|
+
"$ref": "#/components/schemas/ContentRange",
|
|
1408
|
+
"description": "Half-open document span `[range.start, range.end)` to anchor the comment on — same offset semantics as `replaceContent` / `selectContent`."
|
|
1409
|
+
},
|
|
1410
|
+
"issue": {
|
|
1411
|
+
"$ref": "#/components/schemas/AgenticIssuePayload",
|
|
1412
|
+
"description": "The issue the comment is about, for hosts that format their own body."
|
|
1413
|
+
}
|
|
1414
|
+
},
|
|
1415
|
+
"required": ["text", "range"],
|
|
1416
|
+
"additionalProperties": false,
|
|
1417
|
+
"description": "A comment the sidebar asks the host to anchor on a span of the document (see {@link PluginInterface.addComment } ).",
|
|
1418
|
+
"title": "CommentRequest"
|
|
1419
|
+
},
|
|
1420
|
+
"AgenticIssuePayload": {
|
|
1421
|
+
"type": "object",
|
|
1422
|
+
"properties": {
|
|
1423
|
+
"id": { "type": "string" },
|
|
1424
|
+
"groupKey": { "type": "string" },
|
|
1425
|
+
"status": { "type": "string", "enum": ["active", "resolved", "dismissed"] },
|
|
1426
|
+
"original": { "type": "string" },
|
|
1427
|
+
"agent": { "type": "string" },
|
|
1428
|
+
"explanation": { "type": "string" },
|
|
1429
|
+
"severity": { "type": "string", "enum": ["low", "medium", "high", "critical"] },
|
|
1430
|
+
"confidence": { "type": "number" },
|
|
1431
|
+
"position": { "$ref": "#/components/schemas/AgenticIssuePosition" },
|
|
1432
|
+
"suggestion": { "type": "string" },
|
|
1433
|
+
"suggestions": { "type": "array", "items": { "type": "string" } },
|
|
1434
|
+
"category": { "type": "string" },
|
|
1435
|
+
"read_only": {
|
|
1436
|
+
"type": "boolean",
|
|
1437
|
+
"description": "When true, the host cannot apply replacements (e.g. issue points at a variable or hidden content)."
|
|
1438
|
+
}
|
|
1439
|
+
},
|
|
1440
|
+
"required": [
|
|
1441
|
+
"id",
|
|
1442
|
+
"groupKey",
|
|
1443
|
+
"status",
|
|
1444
|
+
"original",
|
|
1445
|
+
"agent",
|
|
1446
|
+
"explanation",
|
|
1447
|
+
"severity",
|
|
1448
|
+
"confidence",
|
|
1449
|
+
"position"
|
|
1450
|
+
],
|
|
1451
|
+
"additionalProperties": false,
|
|
1452
|
+
"description": "Serializable payload for a single agentic issue sent over IPC (Sidebar → Plugin). Used when streaming agent results so the plugin can render underlines or other UI.",
|
|
1453
|
+
"title": "AgenticIssuePayload"
|
|
1454
|
+
},
|
|
1455
|
+
"AgenticIssuePosition": {
|
|
1456
|
+
"type": "object",
|
|
1457
|
+
"properties": {
|
|
1458
|
+
"start": { "type": "number" },
|
|
1459
|
+
"end": { "type": "number" },
|
|
1460
|
+
"text": { "type": "string" }
|
|
1461
|
+
},
|
|
1462
|
+
"required": ["start", "end", "text"],
|
|
1463
|
+
"additionalProperties": false,
|
|
1464
|
+
"description": "Character-offset span of an agentic issue within the document.",
|
|
1465
|
+
"title": "AgenticIssuePosition"
|
|
1466
|
+
},
|
|
1321
1467
|
"ContentInfo": {
|
|
1322
1468
|
"type": "object",
|
|
1323
1469
|
"properties": {
|
|
@@ -1428,6 +1574,10 @@
|
|
|
1428
1574
|
"type": "boolean",
|
|
1429
1575
|
"description": "Whether to support selection-based check and rewrite functionality If true or undefined (default), the selection toggle UI will be shown and users can toggle between full content and selection modes If false, the selection toggle UI will be hidden and checkSelectionEnabled will be forced to false"
|
|
1430
1576
|
},
|
|
1577
|
+
"supportComments": {
|
|
1578
|
+
"type": "boolean",
|
|
1579
|
+
"description": "Whether the host can anchor a comment on a span of the document via {@link PluginInterface.addComment } .\n\nWhen `true`, the sidebar offers an \"Add as Comment\" action on open issue cards. When `false` or omitted (the default), the action is hidden. Only set it when the host implements `addComment` — and, where the editor's comment API is version-gated (e.g. Word's `WordApi 1.4`), only when that API is actually available."
|
|
1580
|
+
},
|
|
1431
1581
|
"multiAgent": {
|
|
1432
1582
|
"type": "boolean",
|
|
1433
1583
|
"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`."
|
|
@@ -1547,6 +1697,10 @@
|
|
|
1547
1697
|
"type": "boolean",
|
|
1548
1698
|
"description": "Whether to support selection-based check and rewrite functionality If true or undefined (default), the selection toggle UI will be shown and users can toggle between full content and selection modes If false, the selection toggle UI will be hidden and checkSelectionEnabled will be forced to false"
|
|
1549
1699
|
},
|
|
1700
|
+
"supportComments": {
|
|
1701
|
+
"type": "boolean",
|
|
1702
|
+
"description": "Whether the host can anchor a comment on a span of the document via {@link PluginInterface.addComment } .\n\nWhen `true`, the sidebar offers an \"Add as Comment\" action on open issue cards. When `false` or omitted (the default), the action is hidden. Only set it when the host implements `addComment` — and, where the editor's comment API is version-gated (e.g. Word's `WordApi 1.4`), only when that API is actually available."
|
|
1703
|
+
},
|
|
1550
1704
|
"multiAgent": {
|
|
1551
1705
|
"type": "boolean",
|
|
1552
1706
|
"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`."
|
|
@@ -1577,52 +1731,41 @@
|
|
|
1577
1731
|
"description": "The `getInitConfig` reply as it crosses the IPC boundary: the integration's {@link SidebarConfig } plus the host adapter's own version stamp.\n\n`hostAdapterVersion` is written by the host-side adapter itself from its compiled-in {@link ADAPTER_VERSION } ; it always overwrites whatever the integration returned. Integrations never set it — their {@link PluginInterface.getInitConfig } keeps returning a plain `SidebarConfig`. The sidebar-side adapter strips it again before handing the config to the sidebar app and exposes it through `PluginAdapter.getHostAdapterVersion()`. Non-JS host ports set it themselves from their own version.",
|
|
1578
1732
|
"title": "InitConfigResponse"
|
|
1579
1733
|
},
|
|
1580
|
-
"
|
|
1734
|
+
"ReplaceMultipleContext": {
|
|
1581
1735
|
"type": "object",
|
|
1582
1736
|
"properties": {
|
|
1583
|
-
"
|
|
1584
|
-
|
|
1585
|
-
|
|
1737
|
+
"reportProgress": {
|
|
1738
|
+
"$comment": "(progress: ReplaceProgress) => void",
|
|
1739
|
+
"type": "object",
|
|
1740
|
+
"properties": {
|
|
1741
|
+
"namedArgs": {
|
|
1742
|
+
"type": "object",
|
|
1743
|
+
"properties": { "progress": { "$ref": "#/components/schemas/ReplaceProgress" } },
|
|
1744
|
+
"required": ["progress"],
|
|
1745
|
+
"additionalProperties": false
|
|
1746
|
+
}
|
|
1747
|
+
},
|
|
1748
|
+
"description": "Report which places are replaced so far. Best effort: it never throws, returns nothing to wait for, and does not change the call's timeout."
|
|
1749
|
+
}
|
|
1586
1750
|
},
|
|
1587
|
-
"required": ["start", "end", "text"],
|
|
1588
1751
|
"additionalProperties": false,
|
|
1589
|
-
"description": "
|
|
1590
|
-
"title": "
|
|
1752
|
+
"description": "What the adapter hands the host with a `replaceMultipleContents` call.",
|
|
1753
|
+
"title": "ReplaceMultipleContext"
|
|
1591
1754
|
},
|
|
1592
|
-
"
|
|
1755
|
+
"ReplaceProgress": {
|
|
1593
1756
|
"type": "object",
|
|
1594
1757
|
"properties": {
|
|
1595
|
-
"
|
|
1596
|
-
"
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
"explanation": { "type": "string" },
|
|
1601
|
-
"severity": { "type": "string", "enum": ["low", "medium", "high", "critical"] },
|
|
1602
|
-
"confidence": { "type": "number" },
|
|
1603
|
-
"position": { "$ref": "#/components/schemas/AgenticIssuePosition" },
|
|
1604
|
-
"suggestion": { "type": "string" },
|
|
1605
|
-
"suggestions": { "type": "array", "items": { "type": "string" } },
|
|
1606
|
-
"category": { "type": "string" },
|
|
1607
|
-
"read_only": {
|
|
1608
|
-
"type": "boolean",
|
|
1609
|
-
"description": "When true, the host cannot apply replacements (e.g. issue points at a variable or hidden content)."
|
|
1758
|
+
"total": { "type": "number", "description": "How many places the host is replacing." },
|
|
1759
|
+
"applied": {
|
|
1760
|
+
"type": "array",
|
|
1761
|
+
"items": { "$ref": "#/components/schemas/ContentRange" },
|
|
1762
|
+
"description": "Every range replaced so far, as it was sent in the call. List a range only after its edit is in the document: the sidebar settles it at once."
|
|
1610
1763
|
}
|
|
1611
1764
|
},
|
|
1612
|
-
"required": [
|
|
1613
|
-
"id",
|
|
1614
|
-
"groupKey",
|
|
1615
|
-
"status",
|
|
1616
|
-
"original",
|
|
1617
|
-
"agent",
|
|
1618
|
-
"explanation",
|
|
1619
|
-
"severity",
|
|
1620
|
-
"confidence",
|
|
1621
|
-
"position"
|
|
1622
|
-
],
|
|
1765
|
+
"required": ["total", "applied"],
|
|
1623
1766
|
"additionalProperties": false,
|
|
1624
|
-
"description": "
|
|
1625
|
-
"title": "
|
|
1767
|
+
"description": "Wire shape of the `data` of a `progress` message for `replaceMultipleContents`: which places are in the document already.\n\nIt carries no failures; those come with the error that ends the call. An empty `applied` says that the host is still working.",
|
|
1768
|
+
"title": "ReplaceProgress"
|
|
1626
1769
|
},
|
|
1627
1770
|
"PluginInterface": {
|
|
1628
1771
|
"type": "object",
|
|
@@ -1669,7 +1812,7 @@
|
|
|
1669
1812
|
"description": "Select or highlight content in the editor using document character offsets only."
|
|
1670
1813
|
},
|
|
1671
1814
|
"replaceMultipleContents": {
|
|
1672
|
-
"$comment": "(replacements: ContentReplacement[]) => Promise<void>",
|
|
1815
|
+
"$comment": "(\n replacements: ContentReplacement[],\n context?: ReplaceMultipleContext) => Promise<void>",
|
|
1673
1816
|
"type": "object",
|
|
1674
1817
|
"properties": {
|
|
1675
1818
|
"namedArgs": {
|
|
@@ -1678,7 +1821,8 @@
|
|
|
1678
1821
|
"replacements": {
|
|
1679
1822
|
"type": "array",
|
|
1680
1823
|
"items": { "$ref": "#/components/schemas/ContentReplacement" }
|
|
1681
|
-
}
|
|
1824
|
+
},
|
|
1825
|
+
"context": { "$ref": "#/components/schemas/ReplaceMultipleContext" }
|
|
1682
1826
|
},
|
|
1683
1827
|
"required": ["replacements"],
|
|
1684
1828
|
"additionalProperties": false
|
|
@@ -1789,6 +1933,22 @@
|
|
|
1789
1933
|
},
|
|
1790
1934
|
"description": "Write text to the system clipboard on the sidebar's behalf.\n\nOptional. When the host does not provide this, the sidebar copies with `navigator.clipboard.writeText` (falling back to `document.execCommand`). Those in-iframe paths are blocked in some embedded contexts — most notably VS Code webviews, whose Electron permission handler denies the async clipboard API to any frame that is not on the `vscode-webview://` origin, regardless of Permissions-Policy delegation.\n\nHosts with a privileged clipboard primitive should implement this with it — for example, the VS Code extension calls `vscode.env.clipboard.writeText(text)` in the extension host.\n\nThe returned promise resolves once the text has been written to the clipboard; reject to signal the write failed."
|
|
1791
1935
|
},
|
|
1936
|
+
"addComment": {
|
|
1937
|
+
"$comment": "(comment: CommentRequest, documentReference?: string | null) => Promise<void>",
|
|
1938
|
+
"type": "object",
|
|
1939
|
+
"properties": {
|
|
1940
|
+
"namedArgs": {
|
|
1941
|
+
"type": "object",
|
|
1942
|
+
"properties": {
|
|
1943
|
+
"comment": { "$ref": "#/components/schemas/CommentRequest" },
|
|
1944
|
+
"documentReference": { "type": ["string", "null"] }
|
|
1945
|
+
},
|
|
1946
|
+
"required": ["comment"],
|
|
1947
|
+
"additionalProperties": false
|
|
1948
|
+
}
|
|
1949
|
+
},
|
|
1950
|
+
"description": "Anchor a comment on a span of the document — e.g. Word's `Range.insertComment`. The sidebar calls this when the user picks\n**Add as Comment** on an issue card.\n\nOptional. Implement it together with {@link SidebarConfig.supportComments } `: true`; the sidebar only offers the action when that flag is set. Without a handler, the call rejects with `No receiver registered for: addComment`.\n\nThe handler MUST NOT change the document text. Author attribution is the host's responsibility — the sidebar sends no user information, and editors typically attach the signed-in editor user themselves."
|
|
1951
|
+
},
|
|
1792
1952
|
"onIntegrationSettingsChange": {
|
|
1793
1953
|
"$comment": "(\n values: IntegrationSettingsValues,\n meta: IntegrationSettingsChangeMeta) => Promise<void>",
|
|
1794
1954
|
"type": "object",
|
package/dist/adapters/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { PluginAdapter } from "./pluginAdapter";
|
|
2
|
-
export { SidebarAdapter, type SidebarAdapterOptions } from "./sidebarAdapter";
|
|
1
|
+
export { PluginAdapter } from "./pluginAdapter.js";
|
|
2
|
+
export { SidebarAdapter, type SidebarAdapterOptions } from "./sidebarAdapter.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { CallOptions, IPCConfig } from "../ipc/message-types";
|
|
2
|
-
import type {
|
|
1
|
+
import type { CallOptions, IPCConfig, ProgressCallOptions } from "../ipc/message-types.js";
|
|
2
|
+
import type { ProgressPayloads } from "../ipc/call-signatures.js";
|
|
3
|
+
import type { CommentRequest, ContentRange, ContentReplacement, ContentInfo, SidebarConfig, SidebarBuildInfo, SidebarInterface, AgenticIssuePayload, IntegrationSettingsValues, IntegrationSettingsChangeMeta } from "../types/index.js";
|
|
3
4
|
/**
|
|
4
5
|
* PluginAdapter - Use in the Sidebar to communicate with the Plugin in the editor
|
|
5
6
|
* This is a wrapper around PluginIPCAdapter for backwards compatibility and ease of use
|
|
@@ -51,8 +52,11 @@ export declare class PluginAdapter {
|
|
|
51
52
|
selectContent(range: ContentRange, documentReference?: string | null): Promise<void>;
|
|
52
53
|
/**
|
|
53
54
|
* Replace multiple contents in the editor
|
|
55
|
+
* @param options - Optional per-call overrides (e.g. timeout in ms; overrides default IPC timeout)
|
|
56
|
+
* and callbacks for the host's progress reports and for an answer after the timeout. They stay
|
|
57
|
+
* on the sidebar side.
|
|
54
58
|
*/
|
|
55
|
-
replaceMultipleContents(replacements: ContentReplacement[]): Promise<void>;
|
|
59
|
+
replaceMultipleContents(replacements: ContentReplacement[], options?: ProgressCallOptions<ProgressPayloads["replaceMultipleContents"]>): Promise<void>;
|
|
56
60
|
/**
|
|
57
61
|
* Notify plugin that one agent's results are available (streaming).
|
|
58
62
|
*/
|
|
@@ -89,6 +93,14 @@ export declare class PluginAdapter {
|
|
|
89
93
|
* (`navigator.clipboard.writeText` / `document.execCommand("copy")`).
|
|
90
94
|
*/
|
|
91
95
|
copyToClipboard(text: string): Promise<void>;
|
|
96
|
+
/**
|
|
97
|
+
* Ask the host plugin to anchor a comment on a span of the document.
|
|
98
|
+
* Only call it for hosts whose config sets `supportComments: true`. The
|
|
99
|
+
* returned promise rejects with `No receiver registered for: addComment`
|
|
100
|
+
* if the host has not implemented the handler, with `TextLookupError` when
|
|
101
|
+
* the range cannot be located, or with the host's own error otherwise.
|
|
102
|
+
*/
|
|
103
|
+
addComment(comment: CommentRequest, documentReference?: string | null): Promise<void>;
|
|
92
104
|
/**
|
|
93
105
|
* Notify the host plugin that the user changed an integration-settings
|
|
94
106
|
* value. Optional on the host side — the returned promise rejects if the
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"pluginAdapter.d.ts","sourceRoot":"","sources":["../../src/adapters/pluginAdapter.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IPCConfig } from "../ipc/message-types";
|
|
2
|
-
import type { IntegrationSettingsPatch, IntegrationSettingsSnapshot, PluginInterface, PluginStatusType, SidebarBuildInfo } from "../types";
|
|
1
|
+
import type { IPCConfig } from "../ipc/message-types.js";
|
|
2
|
+
import type { IntegrationSettingsPatch, IntegrationSettingsSnapshot, PluginInterface, PluginStatusType, SidebarBuildInfo } from "../types/index.js";
|
|
3
3
|
/**
|
|
4
4
|
* Options for SidebarAdapter constructor
|
|
5
5
|
*/
|
|
@@ -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,EAChB,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;
|
|
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,EAChB,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;IAE/C,YAAY,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,qBAAqB,EAS9F;IAED;;OAEG;IACI,OAAO,IAAI,IAAI,CAGrB;IAED;;;;;;;;OAQG;IACU,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAGtF;IAED;;;;;;;OAOG;IACU,oBAAoB,CAC/B,OAAO,EAAE,MAAM,EACf,iBAAiB,GAAE,MAAM,GAAG,IAAW,GACtC,OAAO,CAAC,IAAI,CAAC,CAEf;IAED;;OAEG;IACU,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAElE;IAED;;;;OAIG;IACU,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEpE;IAED;;;;OAIG;IACU,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE/D;IAED;;;;;;;;;;OAUG;IACU,wBAAwB,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAEpF;IAED;;;;;;;;;OASG;IACU,sBAAsB,IAAI,OAAO,CAAC,2BAA2B,CAAC,CAE1E;IAED;;;;OAIG;IACU,2BAA2B,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAExF;IAED;;;;;;;OAOG;IACI,mBAAmB,IAAI,gBAAgB,GAAG,IAAI,CAEpD;IAED;;OAEG;IACI,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAExC;CACF"}
|