@@ -4,6 +4,7 @@ import { ProviderInstanceId } from "@t3tools/contracts";
44import { MuseSettings } from "../settings.ts" ;
55import * as Effect from "effect/Effect" ;
66import * as FileSystem from "effect/FileSystem" ;
7+ import * as Path from "effect/Path" ;
78import * as Schema from "effect/Schema" ;
89import * as Layer from "effect/Layer" ;
910import * as HttpClient from "effect/http/HttpClient" ;
@@ -135,6 +136,7 @@ it.layer(NodeServices.layer)("Muse status", (it) => {
135136 it . effect ( "publishes normalized machine skills and their availability" , ( ) =>
136137 Effect . scoped (
137138 Effect . gen ( function * ( ) {
139+ const path = yield * Path . Path ;
138140 const fixture = {
139141 skills : [
140142 {
@@ -188,14 +190,14 @@ it.layer(NodeServices.layer)("Muse status", (it) => {
188190 } ,
189191 {
190192 name : "git" ,
191- path : "/home/muse-test/ .agents/skills/git/SKILL.md" ,
193+ path : path . join ( "/home/muse-test" , " .agents/skills/git/SKILL.md") ,
192194 scope : "user" ,
193195 description : "My Git workflow" ,
194196 enabled : true ,
195197 } ,
196198 {
197199 name : "off" ,
198- path : "/home/muse-test/ .muse/skills/off/SKILL.md" ,
200+ path : path . join ( "/home/muse-test" , " .muse/skills/off/SKILL.md") ,
199201 scope : "user" ,
200202 enabled : false ,
201203 } ,
@@ -207,10 +209,11 @@ it.layer(NodeServices.layer)("Muse status", (it) => {
207209 it . effect ( "discovers skills for each workspace and reports failed refreshes" , ( ) =>
208210 Effect . gen ( function * ( ) {
209211 const fs = yield * FileSystem . FileSystem ;
212+ const path = yield * Path . Path ;
210213 const directory = yield * fs . makeTempDirectoryScoped ( { prefix : "muse-workspace-test-" } ) ;
211- const first = ` ${ directory } / first` ;
212- const second = ` ${ directory } / second` ;
213- const failed = ` ${ directory } / failed` ;
214+ const first = path . join ( directory , " first" ) ;
215+ const second = path . join ( directory , " second" ) ;
216+ const failed = path . join ( directory , " failed" ) ;
214217 for ( const cwd of [ first , second , failed ] ) yield * fs . makeDirectory ( cwd ) ;
215218 const fixture = {
216219 skills : [
@@ -249,7 +252,7 @@ it.layer(NodeServices.layer)("Muse status", (it) => {
249252 expect ( snapshot . skills ) . toEqual ( [
250253 {
251254 name : "local" ,
252- path : ` ${ cwd } / .agents/skills/local/SKILL.md` ,
255+ path : path . join ( cwd , " .agents/skills/local/SKILL.md" ) ,
253256 scope : "project" ,
254257 enabled : true ,
255258 userInvocationOnly : true ,
0 commit comments