@@ -33,6 +33,7 @@ import {RoleView} from "@edition/role/services/Role.view";
3333import { useUserSession } from "@edition/user/hooks/User.session.hook" ;
3434import { Layout } from "@code0-tech/pictor/dist/components/layout/Layout" ;
3535import { ModuleService } from "@edition/module/services/Module.service" ;
36+ import { AIService , Model } from "@edition/ai/services/AI.service" ;
3637
3738export default function FlowLayout ( { bar, tab, children} : {
3839 bar : React . ReactNode ,
@@ -67,7 +68,7 @@ export default function FlowLayout({bar, tab, children}: {
6768 const datatype = usePersistentReactiveArrayService < DataType , DatatypeService > ( `dashboard::datatypes::${ currentSession ?. id } ` , ( store ) => new DatatypeService ( graphqlClient , store ) )
6869 const flowtype = usePersistentReactiveArrayService < FlowType , FlowTypeService > ( `dashboard::flowtypes::${ currentSession ?. id } ` , ( store ) => new FlowTypeService ( graphqlClient , store ) )
6970 const module = usePersistentReactiveArrayService < RuntimeModule , ModuleService > ( `dashboard::modules::${ currentSession ?. id } ` , ( store ) => new ModuleService ( graphqlClient , store ) )
70-
71+ const ai = usePersistentReactiveArrayService < Model , AIService > ( `dashboard::ai:: ${ currentSession ?. id } ` , ( store ) => new AIService ( graphqlClient , store ) )
7172
7273 const runtimeId = React . useMemo ( ( ) => project [ 1 ] . getById ( projectId , { namespaceId} ) ?. primaryRuntime ?. id , [ projectId , project [ 0 ] , namespaceId ] )
7374
@@ -82,7 +83,7 @@ export default function FlowLayout({bar, tab, children}: {
8283 } , [ runtimeId , namespaceId , projectId , currentSession , flow , functions , datatype , flowtype ] )
8384
8485 return < ContextStoreProvider
85- services = { [ user , organization , member , namespace , runtime , project , role , flow , functions , datatype , flowtype , module ] } >
86+ services = { [ user , organization , member , namespace , runtime , project , role , flow , functions , datatype , flowtype , module , ai ] } >
8687 < Layout layoutGap = { 0 } style = { { zIndex : 0 } } showLayoutSplitter = { false } leftContent = {
8788 < Flex p = { 0.7 } pt = { 1 } align = { "center" } style = { { flexDirection : "column" , gap : "0.7rem" } } >
8889 < div style = { {
0 commit comments