@trustgraph/react-state 1.2.0 → 1.2.2
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.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/state/token-costs.d.ts +10 -2
- package/dist/state/token-costs.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -550,7 +550,7 @@ const useFlows = () => {
|
|
|
550
550
|
* Uses React Query for caching and background refetching
|
|
551
551
|
*/
|
|
552
552
|
const flowBlueprintsQuery = useQuery({
|
|
553
|
-
queryKey: ["
|
|
553
|
+
queryKey: ["flows-blueprints"],
|
|
554
554
|
enabled: isSocketReady,
|
|
555
555
|
queryFn: () => {
|
|
556
556
|
return socket
|
|
@@ -3358,12 +3358,12 @@ const useKnowledgeCores = () => {
|
|
|
3358
3358
|
});
|
|
3359
3359
|
/**
|
|
3360
3360
|
* Mutation for loading multiple knowledge cores
|
|
3361
|
-
* Executes parallel load requests with specified flow
|
|
3361
|
+
* Executes parallel load requests with specified flow and collection
|
|
3362
3362
|
*/
|
|
3363
3363
|
const loadKnowledgeCoresMutation = useMutation({
|
|
3364
|
-
mutationFn: ({ ids, flow, onSuccess }) => {
|
|
3364
|
+
mutationFn: ({ ids, flow, collection, onSuccess }) => {
|
|
3365
3365
|
// Execute load requests in parallel for all knowledge cores
|
|
3366
|
-
return Promise.all(ids.map((id) => socket.knowledge().loadKgCore(id, flow))).then(() => {
|
|
3366
|
+
return Promise.all(ids.map((id) => socket.knowledge().loadKgCore(id, flow, collection))).then(() => {
|
|
3367
3367
|
// Execute success callback if provided
|
|
3368
3368
|
if (onSuccess)
|
|
3369
3369
|
onSuccess();
|
|
@@ -3652,7 +3652,7 @@ const useFlowBlueprints = () => {
|
|
|
3652
3652
|
try {
|
|
3653
3653
|
const response = await socket.config().getConfigAll();
|
|
3654
3654
|
// Handle both array and object responses
|
|
3655
|
-
const config = response.config["flow-
|
|
3655
|
+
const config = response.config["flow-blueprint"];
|
|
3656
3656
|
if (Array.isArray(config)) {
|
|
3657
3657
|
// If it's already an array, check if it's an array of [key, value] pairs
|
|
3658
3658
|
if (config.length > 0 &&
|