@athenaintel/react 0.10.17 → 0.10.18

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.cjs CHANGED
@@ -24718,8 +24718,9 @@ function useAthenaThreadListAdapter(config2) {
24718
24718
  return { threads: [] };
24719
24719
  }
24720
24720
  },
24721
- async initialize(threadId) {
24722
- return { remoteId: threadId, externalId: void 0 };
24721
+ async initialize(_threadId) {
24722
+ const remoteId = typeof crypto !== "undefined" && "randomUUID" in crypto ? crypto.randomUUID() : `thread_${Date.now()}_${Math.random().toString(36).slice(2, 10)}`;
24723
+ return { remoteId, externalId: void 0 };
24723
24724
  },
24724
24725
  async rename(_remoteId, _newTitle) {
24725
24726
  },
@@ -24758,23 +24759,11 @@ function useAthenaThreadManager() {
24758
24759
  selector: (s) => {
24759
24760
  var _a2;
24760
24761
  const id = (_a2 = s.metadata) == null ? void 0 : _a2.remoteId;
24761
- console.log("[AthenaSDK] useAthenaThreadManager selector", {
24762
- metadata: s.metadata,
24763
- threadId: s.threadId,
24764
- rawRemoteId: id,
24765
- isPlaceholder: isLocalPlaceholder(id)
24766
- });
24767
24762
  return isLocalPlaceholder(id) ? void 0 : id;
24768
24763
  }
24769
24764
  });
24770
24765
  const isThreadLoading = useThread({ optional: true, selector: (s) => s.isLoading }) ?? false;
24771
24766
  const isListLoading = useThreadList({ optional: true, selector: (s) => s.isLoading });
24772
- console.log("[AthenaSDK] useAthenaThreadManager render", {
24773
- remoteId,
24774
- isThreadLoading,
24775
- isListLoading,
24776
- hasRuntime: !!runtime
24777
- });
24778
24767
  const runtimeRef = React.useRef(runtime);
24779
24768
  runtimeRef.current = runtime;
24780
24769
  const switchToThread = React.useCallback(