MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / listMigrationEntries

Function listMigrationEntries

src/commands/migrate.ts:317–331  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

315/** Flatten all sources into a single checklist. Stable order: source first,
316 * then server name. */
317export function listMigrationEntries(): MigrationEntry[] {
318 const entries: MigrationEntry[] = [];
319 for (const source of discoverSources()) {
320 for (const [name, config] of Object.entries(source.servers)) {
321 entries.push({
322 key: `${source.id}::${name}`,
323 source: source.id,
324 sourceLabel: source.label,
325 name,
326 config,
327 });
328 }
329 }
330 return entries;
331}
332
333/** Short summary of a server for the picker / dry-run output. */
334export function describeEntry(entry: MigrationEntry): string {

Callers 2

runMigrateFunction · 0.85
AppFunction · 0.85

Calls 1

discoverSourcesFunction · 0.85

Tested by

no test coverage detected