@tangle-network/agent-app 1.0.20 → 1.0.22

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.
@@ -151,7 +151,7 @@ import {
151
151
  withoutRecordGridCreated,
152
152
  withoutRecordGridRemoved,
153
153
  withoutRecordGridUpdate
154
- } from "../chunk-QZCG63AE.js";
154
+ } from "../chunk-GN5JME4V.js";
155
155
  import {
156
156
  useInfiniteScroll
157
157
  } from "../chunk-UHSUY6H6.js";
@@ -40,10 +40,13 @@ export interface ReviewInboxProps {
40
40
  renderCompareBrief?: (rowId: string) => ReactNode;
41
41
  /** Resolves only after the verdict and its learning signal have been stored. */
42
42
  onVerdict: (item: ReviewInboxItem, decision: ReviewInboxFeedback) => Promise<void>;
43
+ /** Re-resolve the live revision at verdict time; a row whose revision moved
44
+ * is refused with a visible stale message instead of deciding the changed row. */
45
+ resolveCurrentRevision?: (item: ReviewInboxItem) => Promise<string | number | undefined>;
43
46
  onFeedback?: (item: ReviewInboxItem, feedback: Omit<ReviewInboxFeedback, 'verdict'>) => Promise<void>;
44
47
  loading?: boolean;
45
48
  error?: string | null;
46
49
  onRefresh?: () => void | Promise<void>;
47
50
  }
48
51
  /** 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;
52
+ export declare function ReviewInbox({ items, initialSelectedId, renderItem, renderCompareBrief, onVerdict, resolveCurrentRevision, 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": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "packageManager": "pnpm@11.28.8",
5
5
  "description": "Build agent applications with typed chat, tools, sandboxes, integrations, billing, and evaluation.",
6
6
  "keywords": [