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
70 lines
1.7 KiB
JavaScript
70 lines
1.7 KiB
JavaScript
import { v4 as uuidv4 } from 'uuid';
|
|
|
|
export default {
|
|
up: async (queryInterface) => {
|
|
const transaction = await queryInterface.sequelize.transaction();
|
|
|
|
try {
|
|
const now = new Date();
|
|
|
|
const defaultConfigs = [
|
|
{
|
|
key: 'figma.api_timeout',
|
|
value: JSON.stringify(30000),
|
|
is_secret: false,
|
|
scope: 'SYSTEM',
|
|
scope_id: null
|
|
},
|
|
{
|
|
key: 'storybook.default_port',
|
|
value: JSON.stringify(6006),
|
|
is_secret: false,
|
|
scope: 'SYSTEM',
|
|
scope_id: null
|
|
},
|
|
{
|
|
key: 'rate_limit.requests_per_minute',
|
|
value: JSON.stringify(60),
|
|
is_secret: false,
|
|
scope: 'SYSTEM',
|
|
scope_id: null
|
|
},
|
|
{
|
|
key: 'theme',
|
|
value: JSON.stringify('auto'),
|
|
is_secret: false,
|
|
scope: 'SYSTEM',
|
|
scope_id: null
|
|
}
|
|
];
|
|
|
|
const records = defaultConfigs.map(config => ({
|
|
id: uuidv4(),
|
|
...config,
|
|
schema_version: 1,
|
|
created_at: now,
|
|
updated_at: now
|
|
}));
|
|
|
|
await queryInterface.bulkInsert('config_settings', records, { transaction });
|
|
|
|
await transaction.commit();
|
|
} catch (err) {
|
|
await transaction.rollback();
|
|
console.error('Failed to seed default configs:', err);
|
|
throw err;
|
|
}
|
|
},
|
|
|
|
down: async (queryInterface) => {
|
|
const transaction = await queryInterface.sequelize.transaction();
|
|
try {
|
|
await queryInterface.bulkDelete('config_settings', { scope: 'SYSTEM' }, { transaction });
|
|
await transaction.commit();
|
|
} catch (err) {
|
|
await transaction.rollback();
|
|
throw err;
|
|
}
|
|
}
|
|
};
|