@trustgraph/react-state 1.1.0 → 1.2.1
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 +139 -139
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +138 -138
- package/dist/index.esm.js.map +1 -1
- package/dist/model/settings-types.d.ts +2 -2
- package/dist/model/settings-types.d.ts.map +1 -1
- package/dist/state/entity-query.d.ts +4 -11
- package/dist/state/entity-query.d.ts.map +1 -1
- package/dist/state/flow-blueprints.d.ts +63 -0
- package/dist/state/flow-blueprints.d.ts.map +1 -0
- package/dist/state/flow-parameters.d.ts +3 -3
- package/dist/state/flow-parameters.d.ts.map +1 -1
- package/dist/state/flows.d.ts +5 -5
- package/dist/state/flows.d.ts.map +1 -1
- package/dist/state/graph-embeddings.d.ts +7 -7
- package/dist/state/graph-embeddings.d.ts.map +1 -1
- package/dist/state/library.d.ts +11 -11
- package/dist/state/library.d.ts.map +1 -1
- package/dist/state/nlp-query.d.ts +9 -9
- package/dist/state/nlp-query.d.ts.map +1 -1
- package/dist/state/processing.d.ts +3 -3
- package/dist/state/processing.d.ts.map +1 -1
- package/dist/state/token-costs.d.ts +1 -1
- package/dist/state/triples.d.ts +9 -9
- package/dist/state/triples.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export type { Ontology, OntologyMetadata } from "./state/ontologies";
|
|
|
44
44
|
export { useKnowledgeCores } from "./state/knowledge-cores";
|
|
45
45
|
export { useTokenCosts } from "./state/token-costs";
|
|
46
46
|
export { useLLMModels } from "./state/llm-models";
|
|
47
|
-
export {
|
|
47
|
+
export { useFlowBlueprints, generateFlowBlueprintId } from "./state/flow-blueprints";
|
|
48
48
|
export { useFlowParameters, useParameterValidation, } from "./state/flow-parameters";
|
|
49
49
|
export { useNodeDetails } from "./state/node-details";
|
|
50
50
|
export type { Entity } from "./model/entity";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,aAAa,EACb,sBAAsB,GACvB,MAAM,4BAA4B,CAAC;AACpC,YAAY,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGtE,YAAY,EACV,OAAO,EACP,MAAM,EACN,KAAK,EACL,eAAe,EACf,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,YAAY,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACxE,YAAY,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAGnD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,YAAY,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,YAAY,EAAE,WAAW,EAA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emas: false, // Off by default
|
|
314
314
|
tokenCost: false, // Off by default
|
|
315
|
-
|
|
316
|
-
|
|
315
|
+
flowBlueprints: false, // Off by default
|
|
316
|
+
flowBlueprintEditor: false, // Off by default - experimental feature
|
|
317
317
|
structuredQuery: false, // Off by default
|
|
318
318
|
llmModels: false, // Off by default
|
|
319
319
|
},
|
|
@@ -546,19 +546,19 @@ const useFlows = () => {
|
|
|
546
546
|
},
|
|
547
547
|
});
|
|
548
548
|
/**
|
|
549
|
-
* Query for fetching all flow
|
|
549
|
+
* Query for fetching all flow blueprints
|
|
550
550
|
* Uses React Query for caching and background refetching
|
|
551
551
|
*/
|
|
552
|
-
const
|
|
553
|
-
queryKey: ["
|
|
552
|
+
const flowBlueprintsQuery = useQuery({
|
|
553
|
+
queryKey: ["flows-blueprints"],
|
|
554
554
|
enabled: isSocketReady,
|
|
555
555
|
queryFn: () => {
|
|
556
556
|
return socket
|
|
557
557
|
.flows()
|
|
558
|
-
.
|
|
558
|
+
.getFlowBlueprints()
|
|
559
559
|
.then((cls) => Promise.all(cls.map((id) => socket
|
|
560
560
|
.flows()
|
|
561
|
-
.
|
|
561
|
+
.getFlowBlueprint(id)
|
|
562
562
|
.then((cls) => [id, cls]))));
|
|
563
563
|
},
|
|
564
564
|
});
|
|
@@ -566,10 +566,10 @@ const useFlows = () => {
|
|
|
566
566
|
* Mutation for starting a new flow for processing workflows
|
|
567
567
|
*/
|
|
568
568
|
const startFlowMutation = useMutation({
|
|
569
|
-
mutationFn: ({ id,
|
|
569
|
+
mutationFn: ({ id, blueprintName, description, parameters, onSuccess, }) => {
|
|
570
570
|
return socket
|
|
571
571
|
.flows()
|
|
572
|
-
.startFlow(id,
|
|
572
|
+
.startFlow(id, blueprintName, description, parameters)
|
|
573
573
|
.then(() => {
|
|
574
574
|
// Execute success callback if provided
|
|
575
575
|
if (onSuccess)
|
|
@@ -614,7 +614,7 @@ const useFlows = () => {
|
|
|
614
614
|
});
|
|
615
615
|
// Show loading indicators for long-running operations
|
|
616
616
|
useActivity(flowsQuery.isLoading, "Loading flows");
|
|
617
|
-
useActivity(
|
|
617
|
+
useActivity(flowBlueprintsQuery.isLoading, "Loading flow blueprints");
|
|
618
618
|
useActivity(startFlowMutation.isPending, "Starting flow");
|
|
619
619
|
useActivity(stopFlowMutation.isPending, "Stopping flows");
|
|
620
620
|
// Return flows state and operations for use in components
|
|
@@ -624,11 +624,11 @@ const useFlows = () => {
|
|
|
624
624
|
isLoading: flowsQuery.isLoading,
|
|
625
625
|
isError: flowsQuery.isError,
|
|
626
626
|
error: flowsQuery.error,
|
|
627
|
-
// Flow data and query state
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
627
|
+
// Flow blueprint data and query state
|
|
628
|
+
flowBlueprints: flowBlueprintsQuery.data,
|
|
629
|
+
isFlowBlueprintsLoading: flowBlueprintsQuery.isLoading,
|
|
630
|
+
isFlowBlueprintsError: flowBlueprintsQuery.isError,
|
|
631
|
+
flowBlueprintsError: flowBlueprintsQuery.error,
|
|
632
632
|
// Flow start operations
|
|
633
633
|
startFlow: startFlowMutation.mutate,
|
|
634
634
|
isStarting: startFlowMutation.isPending,
|
|
@@ -3424,7 +3424,7 @@ const useTokenCosts = () => {
|
|
|
3424
3424
|
* Uses React Query for caching and background refetching
|
|
3425
3425
|
*/
|
|
3426
3426
|
const query = useQuery({
|
|
3427
|
-
queryKey: ["token-
|
|
3427
|
+
queryKey: ["token-cost"],
|
|
3428
3428
|
enabled: isSocketReady,
|
|
3429
3429
|
queryFn: () => {
|
|
3430
3430
|
return socket
|
|
@@ -3440,17 +3440,17 @@ const useTokenCosts = () => {
|
|
|
3440
3440
|
},
|
|
3441
3441
|
});
|
|
3442
3442
|
/**
|
|
3443
|
-
* Mutation for deleting a specific model's token
|
|
3443
|
+
* Mutation for deleting a specific model's token cost
|
|
3444
3444
|
* Removes the token cost configuration for a given model
|
|
3445
3445
|
*/
|
|
3446
|
-
const
|
|
3446
|
+
const deleteTokenCostMutation = useMutation({
|
|
3447
3447
|
mutationFn: ({ model, onSuccess }) => {
|
|
3448
3448
|
// Delete the token cost configuration for the specified model
|
|
3449
3449
|
return socket
|
|
3450
3450
|
.config()
|
|
3451
3451
|
.deleteConfig([
|
|
3452
3452
|
{
|
|
3453
|
-
type: "token-
|
|
3453
|
+
type: "token-cost",
|
|
3454
3454
|
key: model,
|
|
3455
3455
|
},
|
|
3456
3456
|
])
|
|
@@ -3471,20 +3471,20 @@ const useTokenCosts = () => {
|
|
|
3471
3471
|
},
|
|
3472
3472
|
onSuccess: () => {
|
|
3473
3473
|
// Invalidate cache to trigger refetch
|
|
3474
|
-
queryClient.invalidateQueries({ queryKey: ["token-
|
|
3474
|
+
queryClient.invalidateQueries({ queryKey: ["token-cost"] });
|
|
3475
3475
|
// Show success notification
|
|
3476
3476
|
notify.success("Successful deletion");
|
|
3477
3477
|
},
|
|
3478
3478
|
});
|
|
3479
3479
|
/**
|
|
3480
|
-
* Mutation for updating token
|
|
3480
|
+
* Mutation for updating token cost for a specific model
|
|
3481
3481
|
* Converts per-million token prices to per-token prices and saves
|
|
3482
3482
|
* configuration
|
|
3483
3483
|
*/
|
|
3484
3484
|
const updateTokenCostMutation = useMutation({
|
|
3485
3485
|
mutationFn: ({ model, input_price, output_price, onSuccess }) => {
|
|
3486
3486
|
// Convert per-million token prices to per-token prices
|
|
3487
|
-
const
|
|
3487
|
+
const tokenCosts = {
|
|
3488
3488
|
input_price: input_price / 1000000,
|
|
3489
3489
|
output_price: output_price / 1000000,
|
|
3490
3490
|
};
|
|
@@ -3493,9 +3493,9 @@ const useTokenCosts = () => {
|
|
|
3493
3493
|
.config()
|
|
3494
3494
|
.putConfig([
|
|
3495
3495
|
{
|
|
3496
|
-
type: "token-
|
|
3496
|
+
type: "token-cost",
|
|
3497
3497
|
key: model,
|
|
3498
|
-
value: JSON.stringify(
|
|
3498
|
+
value: JSON.stringify(tokenCosts),
|
|
3499
3499
|
},
|
|
3500
3500
|
])
|
|
3501
3501
|
.then((x) => {
|
|
@@ -3515,14 +3515,14 @@ const useTokenCosts = () => {
|
|
|
3515
3515
|
},
|
|
3516
3516
|
onSuccess: () => {
|
|
3517
3517
|
// Invalidate cache to refresh the token costs list
|
|
3518
|
-
queryClient.invalidateQueries({ queryKey: ["token-
|
|
3518
|
+
queryClient.invalidateQueries({ queryKey: ["token-cost"] });
|
|
3519
3519
|
notify.success("Token costs updated");
|
|
3520
3520
|
},
|
|
3521
3521
|
});
|
|
3522
3522
|
// Show loading indicators for long-running operations
|
|
3523
3523
|
useActivity(query.isLoading, "Loading token costs");
|
|
3524
|
-
useActivity(
|
|
3525
|
-
useActivity(updateTokenCostMutation.isPending, "Updating token
|
|
3524
|
+
useActivity(deleteTokenCostMutation.isPending, "Deleting token cost");
|
|
3525
|
+
useActivity(updateTokenCostMutation.isPending, "Updating token cost");
|
|
3526
3526
|
// Return token cost state and operations for use in components
|
|
3527
3527
|
return {
|
|
3528
3528
|
// Token cost query state
|
|
@@ -3531,9 +3531,9 @@ const useTokenCosts = () => {
|
|
|
3531
3531
|
isError: query.isError,
|
|
3532
3532
|
error: query.error,
|
|
3533
3533
|
// Token cost deletion operations
|
|
3534
|
-
|
|
3535
|
-
isDeleting:
|
|
3536
|
-
deleteError:
|
|
3534
|
+
deleteTokenCost: deleteTokenCostMutation.mutate,
|
|
3535
|
+
isDeleting: deleteTokenCostMutation.isPending,
|
|
3536
|
+
deleteError: deleteTokenCostMutation.error,
|
|
3537
3537
|
// Token cost update operations
|
|
3538
3538
|
updateTokenCost: updateTokenCostMutation.mutate,
|
|
3539
3539
|
isSubmitting: updateTokenCostMutation.isPending,
|
|
@@ -3558,7 +3558,7 @@ const useLLMModels = () => {
|
|
|
3558
3558
|
queryFn: async () => {
|
|
3559
3559
|
const response = await socket
|
|
3560
3560
|
.config()
|
|
3561
|
-
.getConfig([{ type: "parameter-
|
|
3561
|
+
.getConfig([{ type: "parameter-type", key: "llm-model" }]);
|
|
3562
3562
|
if (!response.values || response.values.length === 0) {
|
|
3563
3563
|
return [];
|
|
3564
3564
|
}
|
|
@@ -3594,7 +3594,7 @@ const useLLMModels = () => {
|
|
|
3594
3594
|
};
|
|
3595
3595
|
await socket.config().putConfig([
|
|
3596
3596
|
{
|
|
3597
|
-
type: "parameter-
|
|
3597
|
+
type: "parameter-type",
|
|
3598
3598
|
key: name,
|
|
3599
3599
|
value: JSON.stringify(updatedDef),
|
|
3600
3600
|
},
|
|
@@ -3623,11 +3623,11 @@ const useLLMModels = () => {
|
|
|
3623
3623
|
|
|
3624
3624
|
// @ts-nocheck
|
|
3625
3625
|
/**
|
|
3626
|
-
* Custom hook for managing flow
|
|
3627
|
-
* Provides functionality for fetching, creating, updating, and deleting flow
|
|
3628
|
-
* @returns {Object} Flow
|
|
3626
|
+
* Custom hook for managing flow blueprint operations
|
|
3627
|
+
* Provides functionality for fetching, creating, updating, and deleting flow blueprintes
|
|
3628
|
+
* @returns {Object} Flow blueprint state and operations
|
|
3629
3629
|
*/
|
|
3630
|
-
const
|
|
3630
|
+
const useFlowBlueprints = () => {
|
|
3631
3631
|
// WebSocket connection for communicating with the config service
|
|
3632
3632
|
const socket = useSocket();
|
|
3633
3633
|
const connectionState = useConnectionState();
|
|
@@ -3639,11 +3639,11 @@ const useFlowClasses = () => {
|
|
|
3639
3639
|
const isSocketReady = connectionState?.status === "authenticated" ||
|
|
3640
3640
|
connectionState?.status === "unauthenticated";
|
|
3641
3641
|
/**
|
|
3642
|
-
* Query for fetching all flow
|
|
3642
|
+
* Query for fetching all flow blueprintes
|
|
3643
3643
|
* Uses React Query for caching and background refetching
|
|
3644
3644
|
*/
|
|
3645
3645
|
const query = useQuery({
|
|
3646
|
-
queryKey: ["flow-
|
|
3646
|
+
queryKey: ["flow-blueprints"],
|
|
3647
3647
|
enabled: isSocketReady,
|
|
3648
3648
|
staleTime: 0, // Force fresh data
|
|
3649
3649
|
gcTime: 0, // Don't cache (React Query v5 uses gcTime instead of cacheTime)
|
|
@@ -3652,54 +3652,54 @@ const useFlowClasses = () => {
|
|
|
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 &&
|
|
3659
3659
|
Array.isArray(config[0]) &&
|
|
3660
3660
|
config[0].length === 2) {
|
|
3661
|
-
// It's an array of [id,
|
|
3662
|
-
const converted = config.map(([id,
|
|
3663
|
-
let
|
|
3664
|
-
// If the
|
|
3665
|
-
if (typeof
|
|
3661
|
+
// It's an array of [id, flowBlueprint] pairs - convert to objects
|
|
3662
|
+
const converted = config.map(([id, flowBlueprintData]) => {
|
|
3663
|
+
let flowBlueprint = flowBlueprintData;
|
|
3664
|
+
// If the flowBlueprint is a JSON string, parse it
|
|
3665
|
+
if (typeof flowBlueprintData === "string") {
|
|
3666
3666
|
try {
|
|
3667
|
-
|
|
3667
|
+
flowBlueprint = JSON.parse(flowBlueprintData);
|
|
3668
3668
|
}
|
|
3669
3669
|
catch (error) {
|
|
3670
|
-
console.error(`Failed to parse flow
|
|
3671
|
-
|
|
3670
|
+
console.error(`Failed to parse flow blueprint JSON for ${id}:`, error);
|
|
3671
|
+
flowBlueprint = flowBlueprintData;
|
|
3672
3672
|
}
|
|
3673
3673
|
}
|
|
3674
3674
|
return {
|
|
3675
3675
|
id,
|
|
3676
|
-
...
|
|
3676
|
+
...flowBlueprint,
|
|
3677
3677
|
};
|
|
3678
3678
|
});
|
|
3679
3679
|
return converted;
|
|
3680
3680
|
}
|
|
3681
3681
|
else {
|
|
3682
|
-
// It's already an array of flow
|
|
3682
|
+
// It's already an array of flow blueprint objects
|
|
3683
3683
|
return config;
|
|
3684
3684
|
}
|
|
3685
3685
|
}
|
|
3686
3686
|
else if (config && typeof config === "object") {
|
|
3687
|
-
// Convert object to array of flow
|
|
3688
|
-
const converted = Object.entries(config).map(([id,
|
|
3689
|
-
let
|
|
3690
|
-
// If the
|
|
3691
|
-
if (typeof
|
|
3687
|
+
// Convert object to array of flow blueprintes
|
|
3688
|
+
const converted = Object.entries(config).map(([id, flowBlueprintData]) => {
|
|
3689
|
+
let flowBlueprint = flowBlueprintData;
|
|
3690
|
+
// If the flowBlueprint is a JSON string, parse it
|
|
3691
|
+
if (typeof flowBlueprintData === "string") {
|
|
3692
3692
|
try {
|
|
3693
|
-
|
|
3693
|
+
flowBlueprint = JSON.parse(flowBlueprintData);
|
|
3694
3694
|
}
|
|
3695
3695
|
catch (error) {
|
|
3696
|
-
console.error(`Failed to parse flow
|
|
3697
|
-
|
|
3696
|
+
console.error(`Failed to parse flow blueprint JSON for ${id}:`, error);
|
|
3697
|
+
flowBlueprint = flowBlueprintData;
|
|
3698
3698
|
}
|
|
3699
3699
|
}
|
|
3700
3700
|
return {
|
|
3701
3701
|
id,
|
|
3702
|
-
...
|
|
3702
|
+
...flowBlueprint,
|
|
3703
3703
|
};
|
|
3704
3704
|
});
|
|
3705
3705
|
return converted;
|
|
@@ -3707,171 +3707,171 @@ const useFlowClasses = () => {
|
|
|
3707
3707
|
return [];
|
|
3708
3708
|
}
|
|
3709
3709
|
catch (error) {
|
|
3710
|
-
console.error("Failed to fetch flow
|
|
3711
|
-
throw new Error("Failed to fetch flow
|
|
3710
|
+
console.error("Failed to fetch flow blueprintes:", error);
|
|
3711
|
+
throw new Error("Failed to fetch flow blueprintes");
|
|
3712
3712
|
}
|
|
3713
3713
|
},
|
|
3714
3714
|
});
|
|
3715
3715
|
// Track loading state
|
|
3716
|
-
useActivity(query.isLoading, "Loading flow
|
|
3716
|
+
useActivity(query.isLoading, "Loading flow blueprintes");
|
|
3717
3717
|
/**
|
|
3718
|
-
* Mutation for creating a new flow
|
|
3718
|
+
* Mutation for creating a new flow blueprint
|
|
3719
3719
|
*/
|
|
3720
3720
|
const createMutation = useMutation({
|
|
3721
|
-
mutationFn: async ({ id,
|
|
3721
|
+
mutationFn: async ({ id, flowBlueprint, }) => {
|
|
3722
3722
|
try {
|
|
3723
3723
|
await socket.config().putConfig([
|
|
3724
3724
|
{
|
|
3725
|
-
type: "flow-
|
|
3725
|
+
type: "flow-blueprints",
|
|
3726
3726
|
key: id,
|
|
3727
|
-
value: JSON.stringify(
|
|
3727
|
+
value: JSON.stringify(flowBlueprint),
|
|
3728
3728
|
},
|
|
3729
3729
|
]);
|
|
3730
3730
|
return {
|
|
3731
3731
|
id,
|
|
3732
|
-
...
|
|
3732
|
+
...flowBlueprint,
|
|
3733
3733
|
};
|
|
3734
3734
|
}
|
|
3735
3735
|
catch (error) {
|
|
3736
|
-
console.error(`Failed to create flow
|
|
3737
|
-
throw new Error(`Failed to create flow
|
|
3736
|
+
console.error(`Failed to create flow blueprint ${id}:`, error);
|
|
3737
|
+
throw new Error(`Failed to create flow blueprint: ${id}`);
|
|
3738
3738
|
}
|
|
3739
3739
|
},
|
|
3740
|
-
onSuccess: (
|
|
3741
|
-
// Invalidate and refetch flow
|
|
3742
|
-
queryClient.invalidateQueries({ queryKey: ["flow-
|
|
3743
|
-
notify.success(`Flow
|
|
3740
|
+
onSuccess: (flowBlueprint) => {
|
|
3741
|
+
// Invalidate and refetch flow blueprintes
|
|
3742
|
+
queryClient.invalidateQueries({ queryKey: ["flow-blueprints"] });
|
|
3743
|
+
notify.success(`Flow blueprint "${flowBlueprint.id}" created successfully`);
|
|
3744
3744
|
},
|
|
3745
3745
|
onError: (error) => {
|
|
3746
|
-
notify.error(`Failed to create flow
|
|
3746
|
+
notify.error(`Failed to create flow blueprint: ${error.message}`);
|
|
3747
3747
|
},
|
|
3748
3748
|
});
|
|
3749
3749
|
/**
|
|
3750
|
-
* Mutation for updating an existing flow
|
|
3750
|
+
* Mutation for updating an existing flow blueprint
|
|
3751
3751
|
*/
|
|
3752
3752
|
const updateMutation = useMutation({
|
|
3753
|
-
mutationFn: async ({ id,
|
|
3753
|
+
mutationFn: async ({ id, flowBlueprint, }) => {
|
|
3754
3754
|
try {
|
|
3755
|
-
// Get current flow
|
|
3755
|
+
// Get current flow blueprint to merge changes
|
|
3756
3756
|
const currentResponse = await socket.config().getConfig([
|
|
3757
3757
|
{
|
|
3758
|
-
type: "flow-
|
|
3758
|
+
type: "flow-blueprints",
|
|
3759
3759
|
key: id,
|
|
3760
3760
|
},
|
|
3761
3761
|
]);
|
|
3762
|
-
const
|
|
3763
|
-
...currentResponse.config["flow-
|
|
3764
|
-
...
|
|
3762
|
+
const updatedFlowBlueprint = {
|
|
3763
|
+
...currentResponse.config["flow-blueprints"][id],
|
|
3764
|
+
...flowBlueprint,
|
|
3765
3765
|
};
|
|
3766
3766
|
await socket.config().putConfig([
|
|
3767
3767
|
{
|
|
3768
|
-
type: "flow-
|
|
3768
|
+
type: "flow-blueprints",
|
|
3769
3769
|
key: id,
|
|
3770
|
-
value: JSON.stringify(
|
|
3770
|
+
value: JSON.stringify(updatedFlowBlueprint),
|
|
3771
3771
|
},
|
|
3772
3772
|
]);
|
|
3773
3773
|
return {
|
|
3774
3774
|
id,
|
|
3775
|
-
...
|
|
3775
|
+
...updatedFlowBlueprint,
|
|
3776
3776
|
};
|
|
3777
3777
|
}
|
|
3778
3778
|
catch (error) {
|
|
3779
|
-
console.error(`Failed to update flow
|
|
3780
|
-
throw new Error(`Failed to update flow
|
|
3779
|
+
console.error(`Failed to update flow blueprint ${id}:`, error);
|
|
3780
|
+
throw new Error(`Failed to update flow blueprint: ${id}`);
|
|
3781
3781
|
}
|
|
3782
3782
|
},
|
|
3783
|
-
onSuccess: (
|
|
3783
|
+
onSuccess: (flowBlueprint) => {
|
|
3784
3784
|
// Update cache
|
|
3785
|
-
queryClient.invalidateQueries({ queryKey: ["flow-
|
|
3786
|
-
notify.success(`Flow
|
|
3785
|
+
queryClient.invalidateQueries({ queryKey: ["flow-blueprints"] });
|
|
3786
|
+
notify.success(`Flow blueprint "${flowBlueprint.id}" updated successfully`);
|
|
3787
3787
|
},
|
|
3788
3788
|
onError: (error) => {
|
|
3789
|
-
notify.error(`Failed to update flow
|
|
3789
|
+
notify.error(`Failed to update flow blueprint: ${error.message}`);
|
|
3790
3790
|
},
|
|
3791
3791
|
});
|
|
3792
3792
|
/**
|
|
3793
|
-
* Mutation for deleting a flow
|
|
3793
|
+
* Mutation for deleting a flow blueprint
|
|
3794
3794
|
*/
|
|
3795
3795
|
const deleteMutation = useMutation({
|
|
3796
3796
|
mutationFn: async (id) => {
|
|
3797
3797
|
try {
|
|
3798
|
-
await socket.flows().
|
|
3798
|
+
await socket.flows().deleteFlowBlueprint(id);
|
|
3799
3799
|
}
|
|
3800
3800
|
catch (error) {
|
|
3801
|
-
console.error(`Failed to delete flow
|
|
3801
|
+
console.error(`Failed to delete flow blueprint ${id}:`, error);
|
|
3802
3802
|
// Re-throw the original error to preserve the API error message
|
|
3803
3803
|
throw error;
|
|
3804
3804
|
}
|
|
3805
3805
|
},
|
|
3806
3806
|
onSuccess: (_, id) => {
|
|
3807
3807
|
// Remove from cache
|
|
3808
|
-
queryClient.invalidateQueries({ queryKey: ["flow-
|
|
3809
|
-
notify.success(`Flow
|
|
3808
|
+
queryClient.invalidateQueries({ queryKey: ["flow-blueprints"] });
|
|
3809
|
+
notify.success(`Flow blueprint "${id}" deleted successfully`);
|
|
3810
3810
|
},
|
|
3811
3811
|
onError: (error) => {
|
|
3812
3812
|
// Show the actual API error message without additional prefixes
|
|
3813
|
-
notify.error(error.message || "Unknown error occurred while deleting flow
|
|
3813
|
+
notify.error(error.message || "Unknown error occurred while deleting flow blueprint");
|
|
3814
3814
|
},
|
|
3815
3815
|
});
|
|
3816
3816
|
/**
|
|
3817
|
-
* Mutation for duplicating a flow
|
|
3817
|
+
* Mutation for duplicating a flow blueprint
|
|
3818
3818
|
*/
|
|
3819
3819
|
const duplicateMutation = useMutation({
|
|
3820
3820
|
mutationFn: async ({ sourceId, targetId, }) => {
|
|
3821
3821
|
try {
|
|
3822
|
-
// Get source flow
|
|
3822
|
+
// Get source flow blueprint
|
|
3823
3823
|
const sourceResponse = await socket.config().getConfig([
|
|
3824
3824
|
{
|
|
3825
|
-
type: "flow-
|
|
3825
|
+
type: "flow-blueprints",
|
|
3826
3826
|
key: sourceId,
|
|
3827
3827
|
},
|
|
3828
3828
|
]);
|
|
3829
|
-
const
|
|
3829
|
+
const sourceFlowBlueprint = sourceResponse.config["flow-blueprints"][sourceId];
|
|
3830
3830
|
// Create duplicate with updated description
|
|
3831
|
-
const
|
|
3832
|
-
...
|
|
3833
|
-
description: `${
|
|
3834
|
-
tags: [...(
|
|
3831
|
+
const duplicatedFlowBlueprint = {
|
|
3832
|
+
...sourceFlowBlueprint,
|
|
3833
|
+
description: `${sourceFlowBlueprint.description || sourceId} (Copy)`,
|
|
3834
|
+
tags: [...(sourceFlowBlueprint.tags || []), "copy"],
|
|
3835
3835
|
};
|
|
3836
|
-
// Save as new flow
|
|
3836
|
+
// Save as new flow blueprint
|
|
3837
3837
|
await socket.config().putConfig([
|
|
3838
3838
|
{
|
|
3839
|
-
type: "flow-
|
|
3839
|
+
type: "flow-blueprints",
|
|
3840
3840
|
key: targetId,
|
|
3841
|
-
value: JSON.stringify(
|
|
3841
|
+
value: JSON.stringify(duplicatedFlowBlueprint),
|
|
3842
3842
|
},
|
|
3843
3843
|
]);
|
|
3844
3844
|
return {
|
|
3845
3845
|
id: targetId,
|
|
3846
|
-
...
|
|
3846
|
+
...duplicatedFlowBlueprint,
|
|
3847
3847
|
};
|
|
3848
3848
|
}
|
|
3849
3849
|
catch (error) {
|
|
3850
|
-
console.error(`Failed to duplicate flow
|
|
3851
|
-
throw new Error(`Failed to duplicate flow
|
|
3850
|
+
console.error(`Failed to duplicate flow blueprint ${sourceId}:`, error);
|
|
3851
|
+
throw new Error(`Failed to duplicate flow blueprint: ${sourceId}`);
|
|
3852
3852
|
}
|
|
3853
3853
|
},
|
|
3854
|
-
onSuccess: (
|
|
3855
|
-
queryClient.invalidateQueries({ queryKey: ["flow-
|
|
3856
|
-
notify.success(`Flow
|
|
3854
|
+
onSuccess: (flowBlueprint) => {
|
|
3855
|
+
queryClient.invalidateQueries({ queryKey: ["flow-blueprints"] });
|
|
3856
|
+
notify.success(`Flow blueprint duplicated as "${flowBlueprint.id}"`);
|
|
3857
3857
|
},
|
|
3858
3858
|
onError: (error) => {
|
|
3859
|
-
notify.error(`Failed to duplicate flow
|
|
3859
|
+
notify.error(`Failed to duplicate flow blueprint: ${error.message}`);
|
|
3860
3860
|
},
|
|
3861
3861
|
});
|
|
3862
3862
|
// Track mutation loading states
|
|
3863
|
-
useActivity(createMutation.isPending, "Creating flow
|
|
3864
|
-
useActivity(updateMutation.isPending, "Updating flow
|
|
3865
|
-
useActivity(deleteMutation.isPending, "Deleting flow
|
|
3866
|
-
useActivity(duplicateMutation.isPending, "Duplicating flow
|
|
3863
|
+
useActivity(createMutation.isPending, "Creating flow blueprint");
|
|
3864
|
+
useActivity(updateMutation.isPending, "Updating flow blueprint");
|
|
3865
|
+
useActivity(deleteMutation.isPending, "Deleting flow blueprint");
|
|
3866
|
+
useActivity(duplicateMutation.isPending, "Duplicating flow blueprint");
|
|
3867
3867
|
return {
|
|
3868
3868
|
// Query state
|
|
3869
|
-
|
|
3869
|
+
flowBlueprints: query.data || [],
|
|
3870
3870
|
isLoading: query.isLoading,
|
|
3871
3871
|
error: query.error,
|
|
3872
3872
|
refetch: query.refetch,
|
|
3873
3873
|
// Utilities
|
|
3874
|
-
|
|
3874
|
+
getFlowBlueprint: (id) => {
|
|
3875
3875
|
const found = query.data?.find((fc) => {
|
|
3876
3876
|
return fc.id === id;
|
|
3877
3877
|
});
|
|
@@ -3881,10 +3881,10 @@ const useFlowClasses = () => {
|
|
|
3881
3881
|
return query.data?.some((fc) => fc.id === id) ?? false;
|
|
3882
3882
|
},
|
|
3883
3883
|
// Mutations
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3884
|
+
createFlowBlueprint: createMutation.mutateAsync,
|
|
3885
|
+
updateFlowBlueprint: updateMutation.mutateAsync,
|
|
3886
|
+
deleteFlowBlueprint: deleteMutation.mutateAsync,
|
|
3887
|
+
duplicateFlowBlueprint: duplicateMutation.mutateAsync,
|
|
3888
3888
|
// Mutation states
|
|
3889
3889
|
isCreating: createMutation.isPending,
|
|
3890
3890
|
isUpdating: updateMutation.isPending,
|
|
@@ -3893,9 +3893,9 @@ const useFlowClasses = () => {
|
|
|
3893
3893
|
};
|
|
3894
3894
|
};
|
|
3895
3895
|
/**
|
|
3896
|
-
* Generate a unique flow
|
|
3896
|
+
* Generate a unique flow blueprint ID
|
|
3897
3897
|
*/
|
|
3898
|
-
const
|
|
3898
|
+
const generateFlowBlueprintId = (baseName = "flow-class") => {
|
|
3899
3899
|
const timestamp = Date.now();
|
|
3900
3900
|
const random = Math.random().toString(36).substring(2, 8);
|
|
3901
3901
|
return `${baseName}-${timestamp}-${random}`;
|
|
@@ -3903,29 +3903,29 @@ const generateFlowClassId = (baseName = "flow-class") => {
|
|
|
3903
3903
|
|
|
3904
3904
|
// @ts-nocheck
|
|
3905
3905
|
/**
|
|
3906
|
-
* Custom hook for fetching parameter definitions for a flow
|
|
3907
|
-
* @param
|
|
3906
|
+
* Custom hook for fetching parameter definitions for a flow blueprint
|
|
3907
|
+
* @param flowBlueprintName - The name of the flow blueprint to fetch parameters for
|
|
3908
3908
|
* @returns Parameter definitions, mapping, and loading states
|
|
3909
3909
|
*/
|
|
3910
|
-
const useFlowParameters = (
|
|
3910
|
+
const useFlowParameters = (flowBlueprintName) => {
|
|
3911
3911
|
const socket = useSocket();
|
|
3912
3912
|
const connectionState = useConnectionState();
|
|
3913
3913
|
const isSocketReady = connectionState?.status === "authenticated" ||
|
|
3914
3914
|
connectionState?.status === "unauthenticated";
|
|
3915
3915
|
/**
|
|
3916
|
-
* Query for fetching parameter definitions for a flow
|
|
3916
|
+
* Query for fetching parameter definitions for a flow blueprint
|
|
3917
3917
|
*/
|
|
3918
3918
|
const parametersQuery = useQuery({
|
|
3919
|
-
queryKey: ["flow-parameters",
|
|
3920
|
-
enabled: isSocketReady && !!
|
|
3919
|
+
queryKey: ["flow-parameters", flowBlueprintName],
|
|
3920
|
+
enabled: isSocketReady && !!flowBlueprintName,
|
|
3921
3921
|
queryFn: async () => {
|
|
3922
|
-
if (!
|
|
3922
|
+
if (!flowBlueprintName)
|
|
3923
3923
|
return null;
|
|
3924
3924
|
try {
|
|
3925
|
-
// Get flow
|
|
3926
|
-
const
|
|
3925
|
+
// Get flow blueprint definition first
|
|
3926
|
+
const flowBlueprint = await socket.flows().getFlowBlueprint(flowBlueprintName);
|
|
3927
3927
|
// Extract parameter metadata with new structure
|
|
3928
|
-
const parameterMetadata =
|
|
3928
|
+
const parameterMetadata = flowBlueprint.parameters || {};
|
|
3929
3929
|
if (Object.keys(parameterMetadata).length === 0) {
|
|
3930
3930
|
return {
|
|
3931
3931
|
parameterDefinitions: {},
|
|
@@ -3941,14 +3941,14 @@ const useFlowParameters = (flowClassName) => {
|
|
|
3941
3941
|
// Fetch parameter definitions from config
|
|
3942
3942
|
const definitionNames = Object.values(parameterMapping);
|
|
3943
3943
|
const configKeys = definitionNames.map((name) => ({
|
|
3944
|
-
type: "parameter-
|
|
3944
|
+
type: "parameter-type",
|
|
3945
3945
|
key: name,
|
|
3946
3946
|
}));
|
|
3947
3947
|
const configResponse = await socket.config().getConfig(configKeys);
|
|
3948
3948
|
const parameterDefinitions = {};
|
|
3949
3949
|
// Parse config response to get parameter definitions
|
|
3950
3950
|
configResponse.values?.forEach((item) => {
|
|
3951
|
-
if (item.type === "parameter-
|
|
3951
|
+
if (item.type === "parameter-type") {
|
|
3952
3952
|
try {
|
|
3953
3953
|
parameterDefinitions[item.key] = JSON.parse(item.value);
|
|
3954
3954
|
}
|
|
@@ -4523,5 +4523,5 @@ const useNodeDetails = (nodeId, flowId) => {
|
|
|
4523
4523
|
};
|
|
4524
4524
|
};
|
|
4525
4525
|
|
|
4526
|
-
export { DEFAULT_SETTINGS, NotificationProvider, RDFS_LABEL, SETTINGS_STORAGE_KEY, createDocId, fileToBase64,
|
|
4526
|
+
export { DEFAULT_SETTINGS, NotificationProvider, RDFS_LABEL, SETTINGS_STORAGE_KEY, createDocId, fileToBase64, generateFlowBlueprintId, getTriples, prepareMetadata, textToBase64, useActivity, useAgentTools, useChat, useChatSession, useCollections, useConversation, useEmbeddings, useEntityDetail, useFlowBlueprints, useFlowParameters, useFlows, useGraphEmbeddings, useGraphSubgraph, useInference, useKnowledgeCores, useLLMModels, useLibrary, useLoadStateStore, useMcpTools, useNlpQuery, useNodeDetails, useNotification, useObjectsQuery, useOntologies, useParameterValidation, useProcessing, useProgressStateStore, usePrompts, useSchemas, useSearchStateStore, useSessionStore, useSettings, useStructuredQuery, useTokenCosts, useTriples, useVectorSearch, useWorkbenchStateStore, vectorSearch };
|
|
4527
4527
|
//# sourceMappingURL=index.esm.js.map
|