@astralform/js 6.0.3 → 6.0.4

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/dist/index.d.cts CHANGED
@@ -629,6 +629,8 @@ interface TeamSummary {
629
629
  interface TeamAgentSummary {
630
630
  id: string;
631
631
  name: string;
632
+ /** Human-readable label for pickers, when set (wire: `display_name`). Falls back to `name`. */
633
+ displayName?: string | null;
632
634
  teamId: string;
633
635
  createdAt: string;
634
636
  updatedAt: string;
@@ -1517,6 +1519,20 @@ type StreamManagerEvent = {
1517
1519
  type: "versionsReady";
1518
1520
  conversationId: string;
1519
1521
  count: number;
1522
+ } | {
1523
+ /**
1524
+ * A history replay ran to the end — emitted for EVERY restored
1525
+ * conversation, whatever its jobs' statuses. This is the signal to
1526
+ * rehydrate per-turn state (attachment chips, composer modes, goal
1527
+ * runs) from the jobs endpoint. It exists separately from
1528
+ * ``versionsReady`` because that one is completed-only by contract
1529
+ * (a version is an answer to switch to), and a conversation whose
1530
+ * only turns were stopped or failed still needs this pass — gating
1531
+ * rehydration on ``versionsReady`` left such conversations
1532
+ * permanently chip-less.
1533
+ */
1534
+ type: "restoreSettled";
1535
+ conversationId: string;
1520
1536
  };
1521
1537
  type EventHandler = (event: StreamManagerEvent) => void;
1522
1538
  declare class StreamManager {
package/dist/index.d.ts CHANGED
@@ -629,6 +629,8 @@ interface TeamSummary {
629
629
  interface TeamAgentSummary {
630
630
  id: string;
631
631
  name: string;
632
+ /** Human-readable label for pickers, when set (wire: `display_name`). Falls back to `name`. */
633
+ displayName?: string | null;
632
634
  teamId: string;
633
635
  createdAt: string;
634
636
  updatedAt: string;
@@ -1517,6 +1519,20 @@ type StreamManagerEvent = {
1517
1519
  type: "versionsReady";
1518
1520
  conversationId: string;
1519
1521
  count: number;
1522
+ } | {
1523
+ /**
1524
+ * A history replay ran to the end — emitted for EVERY restored
1525
+ * conversation, whatever its jobs' statuses. This is the signal to
1526
+ * rehydrate per-turn state (attachment chips, composer modes, goal
1527
+ * runs) from the jobs endpoint. It exists separately from
1528
+ * ``versionsReady`` because that one is completed-only by contract
1529
+ * (a version is an answer to switch to), and a conversation whose
1530
+ * only turns were stopped or failed still needs this pass — gating
1531
+ * rehydration on ``versionsReady`` left such conversations
1532
+ * permanently chip-less.
1533
+ */
1534
+ type: "restoreSettled";
1535
+ conversationId: string;
1520
1536
  };
1521
1537
  type EventHandler = (event: StreamManagerEvent) => void;
1522
1538
  declare class StreamManager {
package/dist/index.js CHANGED
@@ -2780,6 +2780,7 @@ var StreamManager = class {
2780
2780
  );
2781
2781
  }
2782
2782
  if (stopReplay()) return false;
2783
+ this.emit({ type: "restoreSettled", conversationId });
2783
2784
  const versionCount = replayableJobs.filter(
2784
2785
  (j) => j.status === "completed"
2785
2786
  ).length;