@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.js CHANGED
@@ -24679,8 +24679,9 @@ function useAthenaThreadListAdapter(config2) {
24679
24679
  return { threads: [] };
24680
24680
  }
24681
24681
  },
24682
- async initialize(threadId) {
24683
- return { remoteId: threadId, externalId: void 0 };
24682
+ async initialize(_threadId) {
24683
+ const remoteId = typeof crypto !== "undefined" && "randomUUID" in crypto ? crypto.randomUUID() : `thread_${Date.now()}_${Math.random().toString(36).slice(2, 10)}`;
24684
+ return { remoteId, externalId: void 0 };
24684
24685
  },
24685
24686
  async rename(_remoteId, _newTitle) {
24686
24687
  },
@@ -24719,23 +24720,11 @@ function useAthenaThreadManager() {
24719
24720
  selector: (s) => {
24720
24721
  var _a2;
24721
24722
  const id = (_a2 = s.metadata) == null ? void 0 : _a2.remoteId;
24722
- console.log("[AthenaSDK] useAthenaThreadManager selector", {
24723
- metadata: s.metadata,
24724
- threadId: s.threadId,
24725
- rawRemoteId: id,
24726
- isPlaceholder: isLocalPlaceholder(id)
24727
- });
24728
24723
  return isLocalPlaceholder(id) ? void 0 : id;
24729
24724
  }
24730
24725
  });
24731
24726
  const isThreadLoading = useThread({ optional: true, selector: (s) => s.isLoading }) ?? false;
24732
24727
  const isListLoading = useThreadList({ optional: true, selector: (s) => s.isLoading });
24733
- console.log("[AthenaSDK] useAthenaThreadManager render", {
24734
- remoteId,
24735
- isThreadLoading,
24736
- isListLoading,
24737
- hasRuntime: !!runtime
24738
- });
24739
24728
  const runtimeRef = useRef(runtime);
24740
24729
  runtimeRef.current = runtime;
24741
24730
  const switchToThread = useCallback(