@@ -75,6 +75,7 @@ async function main () {
7575 const tempRoot = fs . mkdtempSync ( path . join ( os . tmpdir ( ) , 'devcodex-mcp-hot-reload-' ) )
7676 const baseRoot = path . join ( tempRoot , 'managed' )
7777 const sourceRoot = path . join ( tempRoot , 'source' )
78+ const sourceAlias = path . join ( tempRoot , 'source-alias' )
7879 const mcpRoot = path . join ( sourceRoot , 'mcp' )
7980 let child
8081 try {
@@ -91,6 +92,9 @@ async function main () {
9192 fs . rmSync ( path . join ( sourceRoot , '.git' ) , { recursive : true , force : true } )
9293 fs . writeFileSync ( path . join ( sourceRoot , '.git' ) , 'gitdir: ../.git/worktrees/fixture\n' )
9394 assert . strictEqual ( validLiveSourceRoot ( sourceRoot , 'profile' ) , true )
95+ fs . symlinkSync ( sourceRoot , sourceAlias , process . platform === 'win32' ? 'junction' : 'dir' )
96+ assert . strictEqual ( validLiveSourceRoot ( sourceAlias , 'profile' ) , true )
97+ assert . strictEqual ( fs . realpathSync . native ( sourceAlias ) , fs . realpathSync . native ( sourceRoot ) )
9498 const supervisor = path . join ( baseRoot , 'mcp-hot-reload-supervisor.cjs' )
9599 fs . copyFileSync ( path . join ( ROOT , 'mcp' , 'hot-reload-supervisor.cjs' ) , supervisor )
96100 fs . writeFileSync ( path . join ( baseRoot , 'global-host-receipt.json' ) , `${ JSON . stringify ( {
@@ -101,7 +105,7 @@ async function main () {
101105 runtimeSource : {
102106 schemaVersion : 'McpRuntimeSourceV1' ,
103107 mode : 'live-source-checkout' ,
104- sourceRoot
108+ sourceRoot : sourceAlias
105109 } ,
106110 updatedAt : new Date ( ) . toISOString ( )
107111 } ) } \n`)
@@ -202,6 +206,7 @@ async function main () {
202206 newWorkerPid : second . pid ,
203207 implementationHotReload : 'PASS' ,
204208 schemaChangeFallback : 'PASS' ,
209+ physicalWatchPath : 'PASS' ,
205210 result : 'PASS'
206211 } ) )
207212 } finally {
0 commit comments