import { agentRegistryEntry } from '@/lib/agentTypes';

export const scanForgeAgentRegistration = Object.freeze({
  ...agentRegistryEntry,
  manifestUrl: '/agents/scanforge/shire-agent-manifest.json',
  statusEndpoint: '/api/v1/agents/scanforge/status',
  capabilitiesEndpoint: '/api/v1/agents/scanforge/capabilities',
  websocketEndpoint: '/ws/v1/agents/scanforge'
});

export function registerScanForgeAgent(registry) {
  if (!registry || typeof registry.register !== 'function') {
    throw new TypeError('A SHiRE agent registry with register() is required');
  }
  registry.register(scanForgeAgentRegistration);
  return scanForgeAgentRegistration;
}
