<template>
  <!-- PluginHost does not render UI; it only runs plugin lifecycle hooks -->
</template>

<script setup>
import { onMounted } from 'vue'
import { plugins } from '../plugins/index'

/**
 * Context object that can be extended by plugins during onSetup.
 * Currently empty but can hold shared resources.
 */
const context = {}

onMounted(() => {
  // Invoke onSetup hook of each registered plugin
  plugins.forEach(p => {
    if (p.onSetup) {
      p.onSetup(context)
    }
  })
})
</script>