File tree Expand file tree Collapse file tree
packages/core/src/workspace Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,14 +31,29 @@ describe("Workspace.init", () => {
3131 expect ( config . projectId ) . toMatch ( / ^ [ 0 - 9 a - f - ] { 36 } $ / ) ;
3232 expect ( config . ignore ) . toContain ( ".git/**" ) ;
3333 expect ( config . sessionIdleGapMinutes ) . toBe ( 30 ) ;
34+ expect ( config . ai ) . toBeNull ( ) ;
35+ expect ( config . agentIngest ) . toEqual ( { enabled : false , providers : [ ] } ) ;
36+ } ) ;
37+
38+ it ( "can initialize with explicit AI config" , ( ) => {
39+ const ws = new Workspace ( projectRoot ) ;
40+ const config = ws . init ( "demo" , {
41+ ai : {
42+ provider : "minimax" ,
43+ model : "MiniMax-M2.7" ,
44+ apiKeyEnv : "MINIMAX_API_KEY" ,
45+ baseUrl : "https://api.minimax.io/v1" ,
46+ authMode : "api-key" ,
47+ } ,
48+ } ) ;
49+
3450 expect ( config . ai ) . toEqual ( {
3551 provider : "minimax" ,
3652 model : "MiniMax-M2.7" ,
3753 apiKeyEnv : "MINIMAX_API_KEY" ,
3854 baseUrl : "https://api.minimax.io/v1" ,
3955 authMode : "api-key" ,
4056 } ) ;
41- expect ( config . agentIngest ) . toEqual ( { enabled : false , providers : [ ] } ) ;
4257 } ) ;
4358
4459 it ( "can initialize with AI disabled" , ( ) => {
You can’t perform that action at this time.
0 commit comments