migration-worker
Fixes startup migration ordering, reconnect UI flows, and updates tests for migrated connectors
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Fixes startup migration ordering, reconnect UI flows, and updates tests for migrated connectors
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Route Rebel app verification to the cheapest reliable path, then launch, drive, or screenshot the Electron app when the selected recipe requires it.
Removes bundled MCP connector infrastructure from rebel-app and updates catalog
Removes dead bundled MCP connector code and updates build/package configuration
Implements OSS MCP contribution flow features using CHIEF_ENGINEER workflow patterns — TDD, IPC contracts, store creation, UI wiring
Ports a bundled MCP connector to the mcp-servers repo as an OSS npm package
Creates and modifies skill files, workflow docs, reference docs, CI workflows, and TypeScript scripts following existing rebel-system and repo patterns.
| name | migration-worker |
| description | Fixes startup migration ordering, reconnect UI flows, and updates tests for migrated connectors |
NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.
For features that fix the startup migration function ordering, update reconnect/setup UI paths to pass catalogId, and update/remove stale tests.
None
src/main/index.ts to understand startup ordering — find where migrateBundledConnectorsToNpx is called vs where configureBundledMcpManager is called.src/main/services/bundledMcpManager.ts — understand migrateBundledConnectorsToNpx(), resolveConnectorCatalogPath(), and requireConfig().mcpAddBundledServer to understand which pass catalogId and which don't.migrateBundledConnectorsToNpx() call to AFTER configureBundledMcpManager() runs, or refactor it to accept explicit paths instead of depending on global config.resolveConnectorCatalogPath() without throwing.mcpAddBundledServer without catalogId, add the catalogId parameter.bundled-humaans for Humaans).ExpandedConnectionCard.tsx, UnifiedConnectionsPanel.tsx, ToolAuthStep.tsx.mcpAddBundledServer call sites — every one should pass catalogId.bundledMcpManager.test.ts that test removed builder functions (buildKlingPayload, buildFathomPayload, etc.).npm run test — must pass.npm run test — must exit 0.npm run validate:fast — must exit 0.npm run build — must exit 0.mcpAddBundledServer calls include catalogId.{
"salientSummary": "Fixed startup migration ordering — migrateBundledConnectorsToNpx now runs after configureBundledMcpManager. Updated 3 UI files to pass catalogId on reconnect. Removed 12 stale tests for migrated builders, added 2 tests for migration ordering. All tests pass (npm run test exit 0).",
"whatWasImplemented": "Moved migrateBundledConnectorsToNpx call from index.ts:3477 to after initCoreServices completes. Updated ExpandedConnectionCard.tsx, UnifiedConnectionsPanel.tsx, and ToolAuthStep.tsx to pass catalogId when calling mcpAddBundledServer. Removed stale buildXxxPayload tests for Kling, Fathom, Gamma, NanoBanana. Updated TalentLMS/ServiceNow normalization tests. Updated migration test suite.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{"command": "npm run test", "exitCode": 0, "observation": "All test suites pass, no failures"},
{"command": "npm run validate:fast", "exitCode": 0, "observation": "All validation checks pass"},
{"command": "npm run build", "exitCode": 0, "observation": "Build succeeds"},
{"command": "grep -rn 'mcpAddBundledServer' src/renderer/", "exitCode": 0, "observation": "All 4 call sites include catalogId parameter"}
]
},
"tests": {
"added": [
{"file": "src/main/services/__tests__/bundledMcpManager.test.ts", "cases": [
{"name": "migrateBundledConnectorsToNpx runs after manager configured", "verifies": "VAL-MIG-001"},
{"name": "migrated connectors not in BUNDLED_MCP_CATALOG", "verifies": "VAL-GATE-001"}
]}
],
"coverage": "Removed 12 stale tests, added 2 new tests, updated 4 existing tests."
},
"discoveredIssues": []
}