@tangle-network/agent-app 0.60.275 → 0.60.277

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.
@@ -146,7 +146,7 @@ import {
146
146
  withoutRecordGridCreated,
147
147
  withoutRecordGridRemoved,
148
148
  withoutRecordGridUpdate
149
- } from "../chunk-SKI2F3NL.js";
149
+ } from "../chunk-YI2XZCTP.js";
150
150
  import {
151
151
  useInfiniteScroll
152
152
  } from "../chunk-BDEBQ4WO.js";
@@ -9,19 +9,35 @@ export interface ReviewInboxItem {
9
9
  createdAt: number;
10
10
  canReview: boolean;
11
11
  input: unknown;
12
- feedback?: HubApprovalFeedback;
12
+ feedback?: HubApprovalFeedback & {
13
+ verdict?: ReviewVerdict;
14
+ };
13
15
  preview?: HubActionPreview;
14
16
  approveLabel?: string;
15
17
  allowedVerdicts?: readonly ReviewVerdict[];
18
+ /** Same row and seed display together, with identities hidden. Hosts render only blind artifact content. */
19
+ compare?: {
20
+ rowId: string;
21
+ seed: string;
22
+ };
16
23
  }
17
24
  export interface ReviewInboxFeedback extends HubApprovalFeedback {
18
25
  verdict: ReviewVerdict;
26
+ /** Zero-based display position and frozen row order, retained by the host with the decision. */
27
+ comparison?: {
28
+ rowId: string;
29
+ seed: string;
30
+ position: number;
31
+ itemIds: string[];
32
+ };
19
33
  }
20
34
  export interface ReviewInboxProps {
21
35
  items: readonly ReviewInboxItem[];
22
36
  /** An existing deep-linked item; selected once when the round begins, without reordering it. */
23
37
  initialSelectedId?: string;
24
38
  renderItem: (item: ReviewInboxItem) => ReactNode;
39
+ /** The shared brief appears once above the blind row; never include column identities. */
40
+ renderCompareBrief?: (rowId: string) => ReactNode;
25
41
  /** Resolves only after the verdict and its learning signal have been stored. */
26
42
  onVerdict: (item: ReviewInboxItem, decision: ReviewInboxFeedback) => Promise<void>;
27
43
  onFeedback?: (item: ReviewInboxItem, feedback: Omit<ReviewInboxFeedback, 'verdict'>) => Promise<void>;
@@ -29,5 +45,5 @@ export interface ReviewInboxProps {
29
45
  error?: string | null;
30
46
  onRefresh?: () => void | Promise<void>;
31
47
  }
32
- /** One oldest-first review round. Domain rendering, storage and authority stay with the host. */
33
- export declare function ReviewInbox({ items, initialSelectedId, renderItem, onVerdict, onFeedback, loading, error, onRefresh }: ReviewInboxProps): import("react").JSX.Element;
48
+ /** One oldest-first review round, with optional blind comparison rows. Hosts own rendering, storage and authority. */
49
+ export declare function ReviewInbox({ items, initialSelectedId, renderItem, renderCompareBrief, onVerdict, onFeedback, loading, error, onRefresh }: ReviewInboxProps): import("react").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-app",
3
- "version": "0.60.275",
3
+ "version": "0.60.277",
4
4
  "packageManager": "pnpm@11.24.0",
5
5
  "description": "Build agent applications with typed chat, tools, sandboxes, integrations, billing, and evaluation.",
6
6
  "keywords": [