@vite-hub/comments 0.5.1 → 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.
Files changed (55) hide show
  1. package/README.md +21 -4
  2. package/dist/{client-diagnostics-CvfTW5d4.js → client-diagnostics-D987sEK7.js} +4 -0
  3. package/dist/client.d.ts +96 -19
  4. package/dist/client.js +525 -79
  5. package/dist/{console-CK2F53QP.d.ts → console-CCLX_eIk.d.ts} +1 -1
  6. package/dist/{database-BkPoOdZr.js → database-Cguz3hZL.js} +1 -1
  7. package/dist/database.js +1 -1
  8. package/dist/{define-9uMM3Ewc.js → define-C2tnAtBU.js} +2 -2
  9. package/dist/{errors-DFNiJg67.js → errors-ByCRdInk.js} +1 -1
  10. package/dist/hosted/hosted-comments/{client-B3dlmmQd.js → client-Czl2zu9P.js} +3 -3
  11. package/dist/hosted/hosted-comments/frame.js +1 -1
  12. package/dist/hosted/hosted-comments/overlay-DpS0P-nd.js +186 -0
  13. package/dist/hosted/hosted-comments/protocol-DuB0Zhs-.js +1 -0
  14. package/dist/hosted/hosted-comments/rest-transport-CKZG_jZ4.js +1 -0
  15. package/dist/hosted/hosted-comments/tools-D8xg-kDW.js +126 -0
  16. package/dist/hosted/hosted-comments.js +13 -3
  17. package/dist/{index-BEnHTj2Z.d.ts → index-D1T7RJ4R.d.ts} +5 -2
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.js +11 -10
  20. package/dist/{install-B-FQpi47.d.ts → install-9L4ASzUC.d.ts} +11 -2
  21. package/dist/{install-BUXxryut.js → install-D6hXZaSN.js} +45 -19
  22. package/dist/{installed-C9SkldMi.js → installed-bPUnazFf.js} +1 -1
  23. package/dist/{operations-CKC_lMG_.js → operations-B1ALn4VS.js} +7 -7
  24. package/dist/{operations-Cic9A9e_.d.ts → operations-BkkrI8a3.d.ts} +1 -1
  25. package/dist/operations.d.ts +2 -2
  26. package/dist/operations.js +2 -2
  27. package/dist/overlay/{client-CerbVjTz.js → client-C7ftI-CB.js} +3 -3
  28. package/dist/overlay/overlay.js +42 -16
  29. package/dist/page/loader.js +1 -1
  30. package/dist/{page-xzgZ6DGm.js → page-2NzFladc.js} +5 -1
  31. package/dist/{plugin-B2hETRii.js → plugin-l4sPt5-n.js} +13 -7
  32. package/dist/realtime.d.ts +11 -3
  33. package/dist/realtime.js +14 -6
  34. package/dist/{rpc-BKY7XRlR.js → rpc-BYmbVkr8.js} +1 -1
  35. package/dist/rpc.js +1 -1
  36. package/dist/runtime/auth.js +1 -1
  37. package/dist/runtime/console.d.ts +1 -1
  38. package/dist/runtime/console.js +2 -2
  39. package/dist/runtime/index.d.ts +42 -10
  40. package/dist/runtime/index.js +16 -8
  41. package/dist/{server-BGbD7H5s.js → server-DvSehkPP.js} +1 -1
  42. package/dist/server.d.ts +3 -3
  43. package/dist/server.js +6 -6
  44. package/dist/{service-DDD4Ubxd.js → service-BIGe1Hpo.js} +11 -6
  45. package/dist/{service-CPiWPoiY.d.ts → service-IvgrI4XM.d.ts} +2 -0
  46. package/dist/{session-BGN6Vlm6.js → session-CCRLR9bf.js} +24 -9
  47. package/dist/{session-CTh9nisq.d.ts → session-CN4irEqf.d.ts} +1 -1
  48. package/dist/testing.js +1 -1
  49. package/dist/vite.d.ts +19 -2
  50. package/dist/vite.js +39 -10
  51. package/package.json +7 -7
  52. package/dist/hosted/hosted-comments/overlay-4-mWX4Uz.js +0 -170
  53. package/dist/hosted/hosted-comments/protocol-BHvtQKte.js +0 -1
  54. package/dist/hosted/hosted-comments/rest-transport-D-9_pNqZ.js +0 -1
  55. package/dist/hosted/hosted-comments/tools-CdwnUCOr.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,13 +118,15 @@ A failure in `onComment`, `onMention`, or the pull request sync never fails the
118
118
 
119
119
  ## Send to an agent
120
120
 
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
+
121
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).
122
124
 
123
125
  ## Deployment and security boundaries
124
126
 
125
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.
126
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.
127
- - A thread change tells the other tabs of the page through the Realtime events room, and they read the threads again. Changes from the server API reach open pages when they refetch: on focus and every 30 seconds.
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.
128
130
  - Without a Realtime driver, such as on Vercel, comments work without presence or cursors.
129
131
  - Write routes compare `Origin` with the request origin, and honour `X-Forwarded-Proto` and `X-Forwarded-Host` from a proxy that ends TLS.
130
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.
@@ -136,7 +138,7 @@ A failure in `onComment`, `onMention`, or the pull request sync never fails the
136
138
  | Import | Purpose |
137
139
  | --- | --- |
138
140
  | `@vite-hub/comments` | `defineComments()` and types. `installComments()` is in `@vite-hub/comments/server`. |
139
- | `@vite-hub/comments/client` | Framework-free client, transport types, `createAnchor()`, `resolveAnchor()`, and `createCommentSend()`, the state of the Send segment that hands a member's waiting comments to their agent. |
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. |
140
142
  | `@vite-hub/comments/testing` | In-memory client transport for tests and examples. |
141
143
  | `@vite-hub/comments/anchor` | DOM anchoring: `createAnchor()`, `placeAnchor()`, `selectorOf()`, `labelOf()`. |
142
144
  | `@vite-hub/comments/database` | `commentsSchema`, the Drizzle tables, and `commentsTables`, the statements that create them. |
@@ -253,7 +255,22 @@ A reply takes a `requestId` too. A second reply with the same `requestId` in the
253
255
 
254
256
  ### Outbox
255
257
 
256
- `createCommentsClient({ ..., outbox: { account } })` saves each new comment and reply in IndexedDB before it sends. Drafts show with `delivery: { status: "pending" }` and survive a reload. The outbox checks the author on each write and stores progress so another tab can resume. See [Write comments offline](https://vitehub.dev/docs/comments/offline).
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.
257
274
 
258
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.
259
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 `account`, in queue order. */
72
- list: (account: string) => Promise<CommentsOutboxEntry[]>;
73
- /** Read and change one account's entries in one transaction. Replace entries rather than mutating them. */
74
- update: <T>(account: string, change: (entries: Map<string, CommentsOutboxEntry>) => T) => Promise<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,6 +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;
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 {
139
+ mcp: string;
140
+ project: {
141
+ id: string;
142
+ teamId: string;
143
+ url: string;
144
+ };
145
+ /** `true` when the member's MCP access may resolve the threads. */
146
+ resolve: boolean;
147
+ }
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;
113
169
  /** A point in client (viewport) coordinates, such as `event.clientX` and `event.clientY`. */
114
170
  interface AnchorPoint {
115
171
  x: number;
@@ -385,6 +441,10 @@ export declare const commentsErrorDiagnostics: import("nostics").Diagnostics<{
385
441
  why: string;
386
442
  fix: string;
387
443
  };
444
+ readonly COMMENTS_OUTBOX_RESOLVE_BLOCKED: {
445
+ why: string;
446
+ fix: string;
447
+ };
388
448
  readonly COMMENTS_OUTBOX_SENDING: {
389
449
  why: string;
390
450
  fix: string;
@@ -420,11 +480,20 @@ interface CommentSendStatus {
420
480
  count: number;
421
481
  /** The member's agent. Without one, Send pairs an agent first. */
422
482
  agent?: CommentSendAgent;
423
- /** The member's last send, while the agent works on it. `thread` is the URL of the agent's thread. */
483
+ /** The member's last send, after the agent read it and while it works on it. `thread` is the URL of the agent's thread. */
424
484
  working?: {
425
485
  id: string;
426
486
  thread?: string;
427
487
  };
488
+ /**
489
+ * The member's last send, delivered and not read by the agent yet. An inbox send stays here until the agent reads it.
490
+ * `inbox` tells where this send went. If omitted, the client uses `agent` to tell whether it went to an inbox.
491
+ */
492
+ sent?: {
493
+ id: string;
494
+ thread?: string;
495
+ inbox?: boolean;
496
+ };
428
497
  /** The last delivery is still being attempted. */
429
498
  pending?: boolean;
430
499
  /** While the member may not send, the time in ms when the next send may go. */
@@ -464,6 +533,7 @@ type CommentSendResult = {
464
533
  status: "sent" | "pending";
465
534
  id: string;
466
535
  thread?: string;
536
+ inbox?: boolean;
467
537
  } | {
468
538
  status: "failed";
469
539
  reason: string;
@@ -500,7 +570,10 @@ interface CommentSendTransport {
500
570
  /** Pushes events, and returns a function that stops them. Without it, the client asks `status()` while the agent works. */
501
571
  subscribe?: (listener: (event: CommentSendEvent) => void) => () => void;
502
572
  }
503
- /** What the Send segment shows. Every state has the number of waiting threads, `count`. */
573
+ /**
574
+ * What the Send segment shows. Every state has the number of waiting threads, `count`. In `sent`, `inbox` tells where
575
+ * the last send went, and `agent` is where the next Send goes.
576
+ */
504
577
  type CommentSendState = {
505
578
  status: "idle";
506
579
  count: number;
@@ -524,6 +597,7 @@ type CommentSendState = {
524
597
  status: "sent";
525
598
  count: number;
526
599
  inbox: boolean;
600
+ agent?: CommentSendAgent;
527
601
  } | {
528
602
  status: "working";
529
603
  count: number;
@@ -678,8 +752,8 @@ export interface CommentsClientOptions {
678
752
  /** Refresh when the window gets focus and the transport cannot push updates. Default `true`. */
679
753
  refreshOnFocus?: boolean;
680
754
  /**
681
- * Saves each new comment and reply before it sends, so it shows at once, survives a reload, and goes out once when
682
- * 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.
683
757
  */
684
758
  outbox?: CommentsOutboxOptions;
685
759
  }
@@ -693,10 +767,13 @@ export interface CommentsClient {
693
767
  query: CommentListQuery;
694
768
  refresh: () => Promise<readonly CommentThread[]>;
695
769
  get: (input: CommentGetInput) => Promise<CommentThread | null>;
696
- /** With an outbox, returns the waiting thread once it is saved, with a local `id` and `delivery`. */
697
- create: (input: CommentCreateInput & CommentFiles) => Promise<CommentThread>;
698
- /** With an outbox, returns a thread view with the waiting reply once it is saved. */
699
- reply: (input: CommentReplyInput & CommentFiles) => Promise<CommentThread>;
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>;
700
777
  edit: (input: CommentEditInput) => Promise<CommentThread>;
701
778
  delete: (input: CommentDeleteInput) => Promise<CommentThread | null>;
702
779
  resolve: (input: CommentStatusInput) => Promise<CommentThread>;
@@ -720,4 +797,4 @@ export declare function createCommentsClient(options: CommentsClientOptions & {
720
797
  readonly outbox: CommentsOutbox;
721
798
  };
722
799
  export declare function createCommentsClient(options: CommentsClientOptions): CommentsClient;
723
- 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, 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 };