File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1328,7 +1328,8 @@ export class Agent implements ACPAgent {
13281328 if ( ! current ) {
13291329 this . sessionManager . setModel ( session . id , model )
13301330 }
1331- const agent = session . modeId ?? ( await AppRuntime . runPromise ( AgentModule . Service . use ( ( svc ) => svc . defaultInfo ( ) ) ) ) . name
1331+ const agent =
1332+ session . modeId ?? ( await AppRuntime . runPromise ( AgentModule . Service . use ( ( svc ) => svc . defaultInfo ( ) ) ) ) . name
13321333
13331334 const parts : Array <
13341335 | { type : "text" ; text : string ; synthetic ?: boolean ; ignored ?: boolean }
Original file line number Diff line number Diff line change @@ -845,7 +845,9 @@ describe("plugin.loader.shared", () => {
845845 ( tmp ) =>
846846 Effect . gen ( function * ( ) {
847847 yield * load ( tmp . path )
848- expect ( yield * Effect . promise ( ( ) => Filesystem . readJson < { source : string ; enabled : boolean } > ( tmp . extra . mark ) ) ) . toEqual ( {
848+ expect (
849+ yield * Effect . promise ( ( ) => Filesystem . readJson < { source : string ; enabled : boolean } > ( tmp . extra . mark ) ) ,
850+ ) . toEqual ( {
849851 source : "tuple" ,
850852 enabled : true ,
851853 } )
Original file line number Diff line number Diff line change @@ -220,17 +220,19 @@ describe("InstanceStore", () => {
220220 } ) ,
221221 )
222222
223- it . instance ( "provides legacy Promise callers with instance ALS" , ( ) =>
224- Effect . gen ( function * ( ) {
225- const test = yield * TestInstance
226- const ctx = yield * InstanceRef
227- if ( ! ctx ) throw new Error ( "InstanceRef not provided" )
228-
229- const directory = yield * Effect . promise ( ( ) => Promise . resolve ( Instance . restore ( ctx , ( ) => Instance . directory ) ) )
230-
231- expect ( directory ) . toBe ( test . directory )
232- expect ( ( ) => Instance . current ) . toThrow ( )
233- } ) ,
223+ it . instance (
224+ "provides legacy Promise callers with instance ALS" ,
225+ ( ) =>
226+ Effect . gen ( function * ( ) {
227+ const test = yield * TestInstance
228+ const ctx = yield * InstanceRef
229+ if ( ! ctx ) throw new Error ( "InstanceRef not provided" )
230+
231+ const directory = yield * Effect . promise ( ( ) => Promise . resolve ( Instance . restore ( ctx , ( ) => Instance . directory ) ) )
232+
233+ expect ( directory ) . toBe ( test . directory )
234+ expect ( ( ) => Instance . current ) . toThrow ( )
235+ } ) ,
234236 { git : true } ,
235237 )
236238} )
Original file line number Diff line number Diff line change @@ -101,7 +101,9 @@ describe("Discovery.pull", () => {
101101 const refs = path . join ( agentsSdk , "references" )
102102 expect ( yield * Effect . promise ( ( ) => Filesystem . exists ( path . join ( agentsSdk , "SKILL.md" ) ) ) ) . toBe ( true )
103103 // agents-sdk has reference files per the index
104- const refDir = yield * Effect . promise ( ( ) => Array . fromAsync ( new Bun . Glob ( "**/*.md" ) . scan ( { cwd : refs , onlyFiles : true } ) ) )
104+ const refDir = yield * Effect . promise ( ( ) =>
105+ Array . fromAsync ( new Bun . Glob ( "**/*.md" ) . scan ( { cwd : refs , onlyFiles : true } ) ) ,
106+ )
105107 expect ( refDir . length ) . toBeGreaterThan ( 0 )
106108 }
107109 } ) ,
You can’t perform that action at this time.
0 commit comments