@arbidocs/react 0.3.144 → 0.3.146
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 +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -7
- package/dist/index.d.ts +8 -7
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -594,7 +594,7 @@ var arbiQueryKeys = {
|
|
|
594
594
|
sessions: () => ["arbi", "sessions"],
|
|
595
595
|
health: () => ["arbi", "health"],
|
|
596
596
|
tasks: () => ["arbi", "tasks"],
|
|
597
|
-
|
|
597
|
+
facts: (workspaceId) => ["arbi", "facts", workspaceId],
|
|
598
598
|
configs: () => ["arbi", "configs"],
|
|
599
599
|
activity: () => ["arbi", "activity"],
|
|
600
600
|
projects: () => ["arbi", "projects"],
|
|
@@ -696,11 +696,11 @@ function useTasks(options) {
|
|
|
696
696
|
enabled: options?.enabled ?? arbi.isLoggedIn
|
|
697
697
|
});
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function useFacts(workspaceId, options) {
|
|
700
700
|
const arbi = chunkZMTLGO3K_cjs.useArbi();
|
|
701
701
|
return reactQuery.useQuery({
|
|
702
|
-
queryKey: arbiQueryKeys.
|
|
703
|
-
queryFn: () => arbi.
|
|
702
|
+
queryKey: arbiQueryKeys.facts(workspaceId ?? ""),
|
|
703
|
+
queryFn: () => arbi.facts.list({ pinnedOnly: options?.pinnedOnly }),
|
|
704
704
|
enabled: (options?.enabled ?? true) && !!workspaceId && arbi.hasWorkspace
|
|
705
705
|
});
|
|
706
706
|
}
|
|
@@ -7314,8 +7314,8 @@ exports.useConversations = useConversations;
|
|
|
7314
7314
|
exports.useDeleteAgents = useDeleteAgents;
|
|
7315
7315
|
exports.useDirectMessages = useDirectMessages;
|
|
7316
7316
|
exports.useDocuments = useDocuments;
|
|
7317
|
+
exports.useFacts = useFacts;
|
|
7317
7318
|
exports.useHealth = useHealth;
|
|
7318
|
-
exports.useMemories = useMemories;
|
|
7319
7319
|
exports.useNotify = useNotify;
|
|
7320
7320
|
exports.useParsedDocument = useParsedDocument;
|
|
7321
7321
|
exports.useProjectInvoices = useProjectInvoices;
|