@athenaintel/react 0.10.16 → 0.10.17
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 +12 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24758,11 +24758,23 @@ function useAthenaThreadManager() {
|
|
|
24758
24758
|
selector: (s) => {
|
|
24759
24759
|
var _a2;
|
|
24760
24760
|
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
|
+
});
|
|
24761
24767
|
return isLocalPlaceholder(id) ? void 0 : id;
|
|
24762
24768
|
}
|
|
24763
24769
|
});
|
|
24764
24770
|
const isThreadLoading = useThread({ optional: true, selector: (s) => s.isLoading }) ?? false;
|
|
24765
24771
|
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
|
+
});
|
|
24766
24778
|
const runtimeRef = React.useRef(runtime);
|
|
24767
24779
|
runtimeRef.current = runtime;
|
|
24768
24780
|
const switchToThread = React.useCallback(
|