Initial commit: Clean DSS implementation
Migrated from design-system-swarm with fresh git history.
Old project history preserved in /home/overbits/apps/design-system-swarm
Core components:
- MCP Server (Python FastAPI with mcp 1.23.1)
- Claude Plugin (agents, commands, skills, strategies, hooks, core)
- DSS Backend (dss-mvp1 - token translation, Figma sync)
- Admin UI (Node.js/React)
- Server (Node.js/Express)
- Storybook integration (dss-mvp1/.storybook)
Self-contained configuration:
- All paths relative or use DSS_BASE_PATH=/home/overbits/dss
- PYTHONPATH configured for dss-mvp1 and dss-claude-plugin
- .env file with all configuration
- Claude plugin uses ${CLAUDE_PLUGIN_ROOT} for portability
Migration completed: $(date)
🤖 Clean migration with full functionality preserved
This commit is contained in:
46
admin-ui/js/plugins/index.js
Normal file
46
admin-ui/js/plugins/index.js
Normal file
@@ -0,0 +1,46 @@
|
||||
/**
|
||||
* Plugin Registry - Auto-registers all available plugins
|
||||
*/
|
||||
|
||||
import pluginService from '../services/plugin-service.js';
|
||||
import ClaudePlugin from './claude-plugin.js';
|
||||
|
||||
// Built-in plugins
|
||||
const builtInPlugins = [
|
||||
ClaudePlugin
|
||||
];
|
||||
|
||||
/**
|
||||
* Initialize all plugins
|
||||
*/
|
||||
export function initializePlugins() {
|
||||
for (const plugin of builtInPlugins) {
|
||||
try {
|
||||
pluginService.register(plugin);
|
||||
} catch (e) {
|
||||
console.error(`Failed to register plugin ${plugin.id}:`, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Load a plugin from URL (for external plugins)
|
||||
*/
|
||||
export async function loadExternalPlugin(url) {
|
||||
try {
|
||||
const module = await import(url);
|
||||
if (module.default) {
|
||||
pluginService.register(module.default);
|
||||
return module.default;
|
||||
}
|
||||
throw new Error('Plugin module must have a default export');
|
||||
} catch (e) {
|
||||
console.error(`Failed to load plugin from ${url}:`, e);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
export default {
|
||||
initializePlugins,
|
||||
loadExternalPlugin
|
||||
};
|
||||
Reference in New Issue
Block a user