@vite-hub/comments 0.6.0 → 0.6.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 +20 -5
- package/dist/{client-diagnostics-CvfTW5d4.js → client-diagnostics-D987sEK7.js} +4 -0
- package/dist/client.d.ts +72 -21
- package/dist/client.js +480 -62
- package/dist/{database-BkPoOdZr.js → database-Cguz3hZL.js} +1 -1
- package/dist/database.js +1 -1
- package/dist/{define-BCxNaSZv.js → define-C2tnAtBU.js} +1 -1
- package/dist/{errors-DFNiJg67.js → errors-ByCRdInk.js} +1 -1
- package/dist/hosted/hosted-comments/{client-B3dlmmQd.js → client-Czl2zu9P.js} +3 -3
- package/dist/hosted/hosted-comments/frame.js +1 -1
- package/dist/hosted/hosted-comments/overlay-DpS0P-nd.js +186 -0
- package/dist/hosted/hosted-comments/protocol-DuB0Zhs-.js +1 -0
- package/dist/hosted/hosted-comments/rest-transport-CKZG_jZ4.js +1 -0
- package/dist/hosted/hosted-comments/tools-D8xg-kDW.js +126 -0
- package/dist/hosted/hosted-comments.js +13 -3
- package/dist/index.js +11 -10
- package/dist/{install-NehuMNhG.d.ts → install-9L4ASzUC.d.ts} +10 -1
- package/dist/{install-w6CCgGFV.js → install-D6hXZaSN.js} +6 -4
- package/dist/{installed-C9SkldMi.js → installed-bPUnazFf.js} +1 -1
- package/dist/{operations-B8IMhRmY.js → operations-B1ALn4VS.js} +7 -7
- package/dist/{operations-Cic9A9e_.d.ts → operations-BkkrI8a3.d.ts} +1 -1
- package/dist/operations.d.ts +2 -2
- package/dist/operations.js +2 -2
- package/dist/overlay/{client-CerbVjTz.js → client-C7ftI-CB.js} +3 -3
- package/dist/overlay/overlay.js +30 -16
- package/dist/{page-xzgZ6DGm.js → page-2NzFladc.js} +5 -1
- package/dist/{plugin-DbCYT7Ac.js → plugin-l4sPt5-n.js} +8 -7
- package/dist/realtime.d.ts +9 -1
- package/dist/realtime.js +14 -6
- package/dist/{rpc-BKY7XRlR.js → rpc-BYmbVkr8.js} +1 -1
- package/dist/rpc.js +1 -1
- package/dist/runtime/auth.js +1 -1
- package/dist/runtime/console.js +2 -2
- package/dist/runtime/index.d.ts +3 -1
- package/dist/runtime/index.js +10 -8
- package/dist/{server-BGbD7H5s.js → server-DvSehkPP.js} +1 -1
- package/dist/server.d.ts +3 -3
- package/dist/server.js +6 -6
- package/dist/{service-DUh2uGd2.js → service-BIGe1Hpo.js} +11 -6
- package/dist/{service-CPiWPoiY.d.ts → service-IvgrI4XM.d.ts} +2 -0
- package/dist/{session-_1GY5gaG.js → session-CCRLR9bf.js} +1 -1
- package/dist/testing.js +1 -1
- package/dist/vite.d.ts +1 -0
- package/dist/vite.js +25 -9
- package/package.json +7 -7
- package/dist/hosted/hosted-comments/overlay-CFuq5QAH.js +0 -182
- package/dist/hosted/hosted-comments/protocol-BHvtQKte.js +0 -1
- package/dist/hosted/hosted-comments/rest-transport-D-9_pNqZ.js +0 -1
- package/dist/hosted/hosted-comments/tools-Bz--joZw.js +0 -126
package/README.md
CHANGED
|
@@ -93,7 +93,7 @@ An edit reads the draft, changes one string field, and saves the document with `
|
|
|
93
93
|
|
|
94
94
|
### Add Hosted Comments
|
|
95
95
|
|
|
96
|
-
Register your site in the Console with **Hosted Comments only**, then copy the script into your page HTML. For a connected app, copy it from **Settings** > **Connection** > **Hosted Comments**. The Console signs reviewers in and stores their page threads. Confirming an unlink permanently deletes that project's hosted threads and replies.
|
|
96
|
+
Register your site in the Console with **Hosted Comments only**, then copy the script into your page HTML. For a connected app, copy it from **Settings** > **Connection** > **Hosted Comments**. The Console signs reviewers in and stores their page threads. Send shows a comment at once and sends it in the background, with one outbox for each project. Confirming an unlink permanently deletes that project's hosted threads and replies.
|
|
97
97
|
|
|
98
98
|
## Server API
|
|
99
99
|
|
|
@@ -118,7 +118,7 @@ A failure in `onComment`, `onMention`, or the pull request sync never fails the
|
|
|
118
118
|
|
|
119
119
|
## Send to an agent
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
Each open thread has **Open in T3 Code** and **Copy**, and the list of open threads has **Open in T3 Code** and **Copy open**. Both give a prompt with the page URL, the text and replies of each thread, the element, and the URLs of its files, for every person who may read the comments. For a Console team member whose MCP access may read the threads, the prompt also names the linked app, its team, and the steps of the ViteHub MCP. It includes resolution steps only with Console MCP write access. `/session` supplies `agent: { mcp, project, resolve }`, and `repository`, the GitHub `owner/name` that the T3 Code link opens: `forge.repository`, else the repository of the build. A Hosted Comments script tag gives it with `data-vitehub-repo`. For one click without a paste, use `send`:
|
|
122
122
|
|
|
123
123
|
`defineComments({ send: true })` adds **Send N** to the comment pill: one click hands the open threads of the page that wait for an answer to the person's own agent, such as a T3 Code thread. The first press copies a setup prompt; the agent creates a T3 webhook task and pairs it with the one-use code, and the pill asks once to allow it. Each send is a signed `POST` with the thread ids and a read token for 24 hours, through the member endpoints of `@vite-hub/webhooks`. `send: { grant: false }` leaves the token out, for an app that reads through its own MCP server, and `payload` adds fields, and `prompt` changes the setup prompt. Each member has their own count, and Allow sends only the threads the member saw. The `comments_get_send` MCP tool reads a send, and `comments.listSends(user)` and `comments.readSend(user, id)` read sends on the server. Reopening a thread can restore a done inbox send or let the member send it to a webhook agent again. Send needs a ViteHub app with a SQLite Database. See [Send comments to your agent](https://vitehub.dev/docs/comments/send).
|
|
124
124
|
|
|
@@ -126,7 +126,7 @@ A Console team member who opens the app through Site access gets **Copy prompt**
|
|
|
126
126
|
|
|
127
127
|
- Threads live only in the Database. Presence rooms hold no document, and connections are read-only. The server binds each person's presence to the user that `identify` or the Auth session resolves.
|
|
128
128
|
- Pins anchor to the Content field first, then a CSS path checked against the element text, then the text alone, then the page point. A pin whose element is gone shows dashed.
|
|
129
|
-
-
|
|
129
|
+
- After a thread changes, the server sends a Realtime notice to tabs displaying its subject, including different pages that show the same subject. Each tab reads the threads again through the Comments API. Cursors and presence stay on the current page. Pages without Realtime read the threads again on focus and every 30 seconds.
|
|
130
130
|
- Without a Realtime driver, such as on Vercel, comments work without presence or cursors.
|
|
131
131
|
- Write routes compare `Origin` with the request origin, and honour `X-Forwarded-Proto` and `X-Forwarded-Host` from a proxy that ends TLS.
|
|
132
132
|
- Page context stores only the URL origin and pathname, validated against the request origin and thread page. Query parameters, URL credentials, and fragments are discarded. Nuxt component files come from its resolved component registry.
|
|
@@ -138,7 +138,7 @@ A Console team member who opens the app through Site access gets **Copy prompt**
|
|
|
138
138
|
| Import | Purpose |
|
|
139
139
|
| --- | --- |
|
|
140
140
|
| `@vite-hub/comments` | `defineComments()` and types. `installComments()` is in `@vite-hub/comments/server`. |
|
|
141
|
-
| `@vite-hub/comments/client` | Framework-free client, transport types, `createAnchor()`, `resolveAnchor()`, `commentsAgentPrompt()`, the text of **Copy
|
|
141
|
+
| `@vite-hub/comments/client` | Framework-free client, transport types, `createAnchor()`, `resolveAnchor()`, `commentsAgentPrompt()`, the text of **Copy**, `commentsT3CodeLink()`, the link of **Open in T3 Code**, and `createCommentSend()`, the state of the Send segment that hands a member's waiting comments to their agent. |
|
|
142
142
|
| `@vite-hub/comments/testing` | In-memory client transport for tests and examples. |
|
|
143
143
|
| `@vite-hub/comments/anchor` | DOM anchoring: `createAnchor()`, `placeAnchor()`, `selectorOf()`, `labelOf()`. |
|
|
144
144
|
| `@vite-hub/comments/database` | `commentsSchema`, the Drizzle tables, and `commentsTables`, the statements that create them. |
|
|
@@ -255,7 +255,22 @@ A reply takes a `requestId` too. A second reply with the same `requestId` in the
|
|
|
255
255
|
|
|
256
256
|
### Outbox
|
|
257
257
|
|
|
258
|
-
`createCommentsClient({ ..., outbox: { account } })` saves each new comment and reply in IndexedDB before it sends.
|
|
258
|
+
`createCommentsClient({ ..., outbox: { account } })` saves each new comment and reply in IndexedDB before it sends. `create` and `reply` show the draft with `delivery: { status: "pending" }` in `threads` and `outbox.entries` the moment you call them, and `onChange` fires before the save ends. The draft goes out, and other tabs see it, once it is saved. Drafts go out in the order you wrote them and survive a reload. If the save fails, as when the disk is full, the draft stays on the page as `failed` with its body and files, and `outbox.retry(id)` saves and sends it. The outbox checks the author on each write and stores progress so another tab can resume. When one origin serves more than one Comments API, give each its own `namespace`: entries saved under one never go out under another. See [Write comments offline](https://vitehub.dev/docs/comments/offline).
|
|
259
|
+
|
|
260
|
+
With an outbox, `files` may be a promise, such as of a screenshot that renders after Send:
|
|
261
|
+
|
|
262
|
+
```ts fragment
|
|
263
|
+
const files = renderScreenshot().then(blob => [blob]);
|
|
264
|
+
await client.create({ subject, anchor, body, files }); // Shows and saves now; sends once `files` settles.
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
To keep files the reader already picked when the page reloads before the screenshot arrives, pass them as `files` and the screenshot as `deferredFiles`:
|
|
268
|
+
|
|
269
|
+
```ts fragment
|
|
270
|
+
await client.create({ subject, anchor, body, files: picked, deferredFiles: renderScreenshot().then(blob => [blob]) });
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
The draft holds the queue until the files arrive, then goes out with them. If saving the files fails, Retry saves them again. If the promise rejects, the draft goes out without them. If the page reloads first, the next page sends a saved draft without them. Without Web Locks, the default outbox stays in memory. With a custom store and no locks, drafts wait in memory until their files arrive and can be saved in send order.
|
|
259
274
|
|
|
260
275
|
If a comment write gets no answer, retry it to recover the server copy. A later refusal does not make the draft safe to edit or dismiss. A lost upload or thread lookup answer does not lock the draft on its own.
|
|
261
276
|
|
|
@@ -5,6 +5,10 @@ const commentsClientCodes = {
|
|
|
5
5
|
why: "The current author is not the author of this queued comment.",
|
|
6
6
|
fix: "Sign in as the original author and retry the outbox."
|
|
7
7
|
},
|
|
8
|
+
COMMENTS_OUTBOX_RESOLVE_BLOCKED: {
|
|
9
|
+
why: "Queued delivery must resume before the thread can close.",
|
|
10
|
+
fix: "Go online, then retry or dismiss any blocked comments and resolve the thread again."
|
|
11
|
+
},
|
|
8
12
|
COMMENTS_OUTBOX_SENDING: {
|
|
9
13
|
why: "The server may already have this comment, so the draft cannot change.",
|
|
10
14
|
fix: "Wait for delivery to finish, then edit or delete the server copy."
|
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { A as ElementAnchor, C as CommentStatusInput, D as CommentUser, E as CommentUploadInput, M as PageAnchor, N as TextAnchor, O as CommentUsersInput, S as CommentStatus, T as CommentThread, _ as CommentListCursor, a as CommentBuild, b as CommentMetadata, c as CommentCreateInput, d as CommentDeliveryError, f as CommentEditInput, g as CommentGetInput, h as CommentForgeLink, i as CommentAttachment, j as ImageAnchor, k as CommentsTransport, l as CommentDeleteInput, m as CommentFiles, n as CommentActor, o as CommentComponent, p as CommentEvent, r as CommentAnchor, s as CommentContext, t as AreaAnchor, u as CommentDelivery, v as CommentListQuery, w as CommentSubject, x as CommentReplyInput, y as CommentMessage } from "./types-BX3vH18p.js";
|
|
2
|
+
import "./types-l6GOb_yc.js";
|
|
2
3
|
/** A page event that a client store reacts to. */
|
|
3
4
|
type BrowserEvent = "online" | "offline" | "visible" | "hidden";
|
|
4
5
|
/** What a client store needs from the browser: page events, one sender across tabs, and messages between tabs. Tests pass a fake one. */
|
|
@@ -34,19 +35,13 @@ type CommentsOutboxMessage = {
|
|
|
34
35
|
/** What the outbox needs from the browser: online and visible events, Web Locks, and a BroadcastChannel. Tests pass a fake one. */
|
|
35
36
|
type CommentsOutboxEnvironment = BrowserEnvironment<CommentsOutboxMessage>;
|
|
36
37
|
interface CommentsOutboxEntryBase {
|
|
37
|
-
/** The local thread or message id. Use it for outbox actions. */
|
|
38
38
|
id: string;
|
|
39
|
-
/** The retry key that the server gets. */
|
|
40
39
|
requestId: string;
|
|
41
40
|
account: string;
|
|
42
41
|
files: Blob[];
|
|
43
|
-
/** Milliseconds since the epoch. */
|
|
44
42
|
createdAt: number;
|
|
45
|
-
/** The place in the queue. */
|
|
46
43
|
order: number;
|
|
47
|
-
/** `sending` while one tab sends it. `failed` when the server refused it: it waits for `retry` or a safe `edit` or `dismiss`. */
|
|
48
44
|
status: "pending" | "sending" | "failed";
|
|
49
|
-
/** Why the last try did not go out. */
|
|
50
45
|
error?: CommentDeliveryError;
|
|
51
46
|
uncertain?: boolean;
|
|
52
47
|
claim?: string;
|
|
@@ -54,6 +49,7 @@ interface CommentsOutboxEntryBase {
|
|
|
54
49
|
retryAt?: number;
|
|
55
50
|
held?: boolean;
|
|
56
51
|
uploaded?: string[];
|
|
52
|
+
awaitingFiles?: boolean;
|
|
57
53
|
}
|
|
58
54
|
/** A comment or reply that the outbox holds. */
|
|
59
55
|
type CommentsOutboxEntry = CommentsOutboxEntryBase & ({
|
|
@@ -68,10 +64,10 @@ type CommentsOutboxEntry = CommentsOutboxEntryBase & ({
|
|
|
68
64
|
interface CommentsOutboxStore {
|
|
69
65
|
/** `false` when the entries live only in this page, and a reload loses them. */
|
|
70
66
|
readonly persisted: boolean;
|
|
71
|
-
/** The entries of
|
|
72
|
-
list: (
|
|
73
|
-
/** Read and change one
|
|
74
|
-
update: <T>(
|
|
67
|
+
/** The entries of one queue, in queue order. The key is the account, or the namespace and account of the outbox. */
|
|
68
|
+
list: (queue: string) => Promise<CommentsOutboxEntry[]>;
|
|
69
|
+
/** Read and change one queue's entries in one transaction. Replace entries rather than mutating them. */
|
|
70
|
+
update: <T>(queue: string, change: (entries: Map<string, CommentsOutboxEntry>) => T) => Promise<T>;
|
|
75
71
|
}
|
|
76
72
|
interface CommentsOutboxOptions {
|
|
77
73
|
/**
|
|
@@ -79,6 +75,8 @@ interface CommentsOutboxOptions {
|
|
|
79
75
|
* comment never goes out as somebody else.
|
|
80
76
|
*/
|
|
81
77
|
account: string;
|
|
78
|
+
/** Separates destinations on the same origin, such as two Comments APIs. Entries of another namespace never send. */
|
|
79
|
+
namespace?: string;
|
|
82
80
|
/** Default: the `vitehub-comments` IndexedDB database, else memory with `persisted: false`. */
|
|
83
81
|
store?: CommentsOutboxStore;
|
|
84
82
|
/** Default: the browser. */
|
|
@@ -103,6 +101,18 @@ interface CommentsOutbox {
|
|
|
103
101
|
/** Removes every entry of the account, such as at sign-out. */
|
|
104
102
|
clear: () => Promise<void>;
|
|
105
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* The files of a new comment or reply. With an outbox, `files` may be a promise, such as of a screenshot that renders
|
|
106
|
+
* after Send: the entry shows and saves at once and sends when the promise settles, without files if it rejects. To
|
|
107
|
+
* keep files the reader already picked through a reload, pass them as `files` and the late ones as `deferredFiles`.
|
|
108
|
+
*/
|
|
109
|
+
type CommentsClientFiles = Omit<CommentFiles, "files"> & ({
|
|
110
|
+
files?: Blob[] | Promise<Blob[]>;
|
|
111
|
+
deferredFiles?: undefined;
|
|
112
|
+
} | {
|
|
113
|
+
files?: Blob[];
|
|
114
|
+
deferredFiles: Promise<Blob[]>;
|
|
115
|
+
});
|
|
106
116
|
/** An outbox store in memory. Entries live as long as the store object. Pass one store to two clients to test a reload. */
|
|
107
117
|
export declare function createMemoryOutboxStore(): CommentsOutboxStore;
|
|
108
118
|
/**
|
|
@@ -110,18 +120,52 @@ export declare function createMemoryOutboxStore(): CommentsOutboxStore;
|
|
|
110
120
|
* does not open, as in some private windows, it keeps the entries in memory and `persisted` is `false`.
|
|
111
121
|
*/
|
|
112
122
|
export declare function createIndexedDBOutboxStore(): CommentsOutboxStore;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
123
|
+
/** One thread in a prompt: its messages, where it is on the page, and the URLs of its files. */
|
|
124
|
+
interface CommentsAgentPromptThread {
|
|
125
|
+
id: string;
|
|
126
|
+
anchor: CommentAnchor;
|
|
127
|
+
/** Oldest first. The first message is the comment. */
|
|
128
|
+
messages: readonly {
|
|
129
|
+
author: string;
|
|
130
|
+
body: string;
|
|
131
|
+
}[];
|
|
132
|
+
/** The version of the subject that the thread was started on. */
|
|
133
|
+
revision?: number;
|
|
134
|
+
/** The URLs of the files of the comment, such as its screenshot. */
|
|
135
|
+
files?: readonly string[];
|
|
136
|
+
}
|
|
137
|
+
/** The ViteHub MCP of a Console member, and the linked app that the agent checks before it reads the threads. */
|
|
138
|
+
interface CommentsAgentAccess {
|
|
116
139
|
mcp: string;
|
|
117
140
|
project: {
|
|
118
141
|
id: string;
|
|
119
142
|
teamId: string;
|
|
120
143
|
url: string;
|
|
121
144
|
};
|
|
145
|
+
/** `true` when the member's MCP access may resolve the threads. */
|
|
122
146
|
resolve: boolean;
|
|
123
147
|
}
|
|
124
|
-
|
|
148
|
+
interface CommentsAgentPromptInput {
|
|
149
|
+
/** The page of the threads. */
|
|
150
|
+
url: string;
|
|
151
|
+
threads: readonly CommentsAgentPromptThread[];
|
|
152
|
+
/** Without it, the prompt has no ViteHub MCP steps and asks the agent to report the fixes. */
|
|
153
|
+
agent?: CommentsAgentAccess;
|
|
154
|
+
}
|
|
155
|
+
/** The longest link that `commentsT3CodeLink()` makes. */
|
|
156
|
+
export declare const t3CodeLinkLimit = 8000;
|
|
157
|
+
/**
|
|
158
|
+
* The prompt that sends an agent to fix comments: the text of each thread, where it is, and its files. With `agent`, it
|
|
159
|
+
* also tells the agent to read the threads, and to resolve them when the member may, through the ViteHub MCP.
|
|
160
|
+
*/
|
|
161
|
+
export declare function commentsAgentPrompt(input: CommentsAgentPromptInput): string;
|
|
162
|
+
/**
|
|
163
|
+
* A link that opens a new T3 Code thread with the prompt of `commentsAgentPrompt()`, in `repository` (`owner/name`)
|
|
164
|
+
* when it is a GitHub repository. The link is at most `t3CodeLinkLimit` characters. A long prompt always keeps its steps:
|
|
165
|
+
* first its messages and anchors get shorter, then each thread keeps only its ID and a short title. For an MCP prompt,
|
|
166
|
+
* the last option is the thread IDs and instructions. Returns `undefined` if none of these fit.
|
|
167
|
+
*/
|
|
168
|
+
export declare function commentsT3CodeLink(input: CommentsAgentPromptInput, repository?: string): string | undefined;
|
|
125
169
|
/** A point in client (viewport) coordinates, such as `event.clientX` and `event.clientY`. */
|
|
126
170
|
interface AnchorPoint {
|
|
127
171
|
x: number;
|
|
@@ -397,6 +441,10 @@ export declare const commentsErrorDiagnostics: import("nostics").Diagnostics<{
|
|
|
397
441
|
why: string;
|
|
398
442
|
fix: string;
|
|
399
443
|
};
|
|
444
|
+
readonly COMMENTS_OUTBOX_RESOLVE_BLOCKED: {
|
|
445
|
+
why: string;
|
|
446
|
+
fix: string;
|
|
447
|
+
};
|
|
400
448
|
readonly COMMENTS_OUTBOX_SENDING: {
|
|
401
449
|
why: string;
|
|
402
450
|
fix: string;
|
|
@@ -704,8 +752,8 @@ export interface CommentsClientOptions {
|
|
|
704
752
|
/** Refresh when the window gets focus and the transport cannot push updates. Default `true`. */
|
|
705
753
|
refreshOnFocus?: boolean;
|
|
706
754
|
/**
|
|
707
|
-
*
|
|
708
|
-
* the network is back. Off by default: `create` and `reply` wait for the server.
|
|
755
|
+
* Shows each new comment and reply at once and saves it before it sends, so it survives a reload and goes out once
|
|
756
|
+
* when the network is back. Off by default: `create` and `reply` wait for the server.
|
|
709
757
|
*/
|
|
710
758
|
outbox?: CommentsOutboxOptions;
|
|
711
759
|
}
|
|
@@ -719,10 +767,13 @@ export interface CommentsClient {
|
|
|
719
767
|
query: CommentListQuery;
|
|
720
768
|
refresh: () => Promise<readonly CommentThread[]>;
|
|
721
769
|
get: (input: CommentGetInput) => Promise<CommentThread | null>;
|
|
722
|
-
/**
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
770
|
+
/**
|
|
771
|
+
* With an outbox, shows the comment at once. With no supplied `requestId`, returns the waiting thread before the save.
|
|
772
|
+
* With a supplied `requestId`, waits for the save to check for a replay. `files` may be a promise.
|
|
773
|
+
*/
|
|
774
|
+
create: (input: CommentCreateInput & CommentsClientFiles) => Promise<CommentThread>;
|
|
775
|
+
/** With an outbox, shows the reply at once. `requestId` and `files` work as they do for `create`. */
|
|
776
|
+
reply: (input: CommentReplyInput & CommentsClientFiles) => Promise<CommentThread>;
|
|
726
777
|
edit: (input: CommentEditInput) => Promise<CommentThread>;
|
|
727
778
|
delete: (input: CommentDeleteInput) => Promise<CommentThread | null>;
|
|
728
779
|
resolve: (input: CommentStatusInput) => Promise<CommentThread>;
|
|
@@ -746,4 +797,4 @@ export declare function createCommentsClient(options: CommentsClientOptions & {
|
|
|
746
797
|
readonly outbox: CommentsOutbox;
|
|
747
798
|
};
|
|
748
799
|
export declare function createCommentsClient(options: CommentsClientOptions): CommentsClient;
|
|
749
|
-
export type { AnchorPoint, AnchorPosition, AnchorRect, AnchorTarget, AreaAnchor, CommentActor, CommentAnchor, CommentAttachment, CommentBuild, CommentComponent, CommentContext, CommentCreateInput, CommentDeleteInput, CommentDelivery, CommentDeliveryError, CommentEditInput, CommentEvent, CommentFiles, CommentForgeLink, CommentGetInput, CommentListCursor, CommentListQuery, CommentMessage, CommentMetadata, CommentReplyInput, CommentSendAgent, CommentSendClient, CommentSendCopy, CommentSendEvent, CommentSendLogo, CommentSendOptions, CommentSendPairing, CommentSendPairingCheck, CommentSendResult, CommentSendState, CommentSendStatus, CommentSendTransport, CommentSendTransportOptions, CommentStatus, CommentStatusInput, CommentSubject, CommentThread, CommentUploadInput, CommentUser, CommentUsersInput, CommentsAgentPromptInput, CommentsGuest, CommentsOutbox, CommentsOutboxEntry, CommentsOutboxEnvironment, CommentsOutboxMessage, CommentsOutboxOptions, CommentsOutboxStore, CommentsRestAnswer, CommentsRestRequest, CommentsTransport, CreateAnchorOptions, DetachedAnchor, ElementAnchor, ImageAnchor, PageAnchor, ResolvedAnchor, RestCommentThread, RestTransport, RestTransportOptions, TextAnchor };
|
|
800
|
+
export type { AnchorPoint, AnchorPosition, AnchorRect, AnchorTarget, AreaAnchor, CommentActor, CommentAnchor, CommentAttachment, CommentBuild, CommentComponent, CommentContext, CommentCreateInput, CommentDeleteInput, CommentDelivery, CommentDeliveryError, CommentEditInput, CommentEvent, CommentFiles, CommentForgeLink, CommentGetInput, CommentListCursor, CommentListQuery, CommentMessage, CommentMetadata, CommentReplyInput, CommentSendAgent, CommentSendClient, CommentSendCopy, CommentSendEvent, CommentSendLogo, CommentSendOptions, CommentSendPairing, CommentSendPairingCheck, CommentSendResult, CommentSendState, CommentSendStatus, CommentSendTransport, CommentSendTransportOptions, CommentStatus, CommentStatusInput, CommentSubject, CommentThread, CommentUploadInput, CommentUser, CommentUsersInput, CommentsAgentAccess, CommentsAgentPromptInput, CommentsAgentPromptThread, CommentsClientFiles, CommentsGuest, CommentsOutbox, CommentsOutboxEntry, CommentsOutboxEnvironment, CommentsOutboxMessage, CommentsOutboxOptions, CommentsOutboxStore, CommentsRestAnswer, CommentsRestRequest, CommentsTransport, CreateAnchorOptions, DetachedAnchor, ElementAnchor, ImageAnchor, PageAnchor, ResolvedAnchor, RestCommentThread, RestTransport, RestTransportOptions, TextAnchor };
|