@opengeni/sdk 0.20.0 → 0.25.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 CHANGED
@@ -56,12 +56,28 @@ the requested class. It cannot be combined with any type or class include/exclud
56
56
  filter, so an unrelated newer event cannot displace the requested result and an
57
57
  exclusion cannot remove it.
58
58
 
59
+ For callback-loss recovery, `latest` selects authoritative current/legacy rows
60
+ by durable session `sequence` across distinct turns; explicit `late_rejected` and
61
+ `duplicate` callbacks never compete with current truth. `turnGeneration` remains
62
+ metadata and is interpreted only within its turn/retry scope. Use
63
+ `resultMode: "compact"` to receive one bounded result-bearing completion,
64
+ failure, checkpoint, or receipt without creating another model turn. The
65
+ `receipt` spelling aliases `tool_receipt`, and a missing event returns `null`.
66
+ The compact result includes exact source/generation/covered-sequence facts and
67
+ bounded text/output/result/failure/checkpoint/receipt values. Retained-output
68
+ storage and full-evidence retrieval are separate contracts from this event
69
+ projection.
70
+
59
71
  ```ts
60
72
  const terminal = await client.listEventPage(workspaceId, sessionId, {
61
73
  latest: "terminal",
62
74
  payloadMode: "summary",
63
75
  });
64
76
 
77
+ const recovered = await client.getLatestEventResult(workspaceId, sessionId, {
78
+ latest: "terminal",
79
+ });
80
+
65
81
  const older = await client.listEventPage(workspaceId, sessionId, {
66
82
  before: terminal.nextBefore ?? undefined,
67
83
  includeClasses: ["failure", "checkpoint"],