Skip to content

Commit 8630fc8

Browse files
authored
fix: remove auto v1 migration prompt (#265)
* Remove auto v1 migration prompt * Polish run command docs and remove obsolete plan * Guard Windows keypress fallback against redirected stdin * Handle non-interactive stdin in migration keypress pause
1 parent 361c6f6 commit 8630fc8

File tree

6 files changed

+84
-391
lines changed

6 files changed

+84
-391
lines changed

AI_AGENT_FRIENDLY_CLI_PLAN.md

Lines changed: 0 additions & 335 deletions
This file was deleted.

src/mcpm/cli.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
usage,
2929
)
3030
from mcpm.commands.share import share
31-
from mcpm.migration import V1ConfigDetector, V1ToV2Migrator
3231
from mcpm.utils.logging_config import setup_logging
3332
from mcpm.utils.rich_click_config import click, get_header_text
3433
import os
@@ -117,19 +116,6 @@ def main(ctx, version, help_flag):
117116
click.rich_click.FOOTER_TEXT = original_footer
118117
return
119118

120-
# Check for v1 configuration and offer migration (even with subcommands)
121-
detector = V1ConfigDetector()
122-
if detector.has_v1_config():
123-
migrator = V1ToV2Migrator()
124-
migration_choice = migrator.show_migration_prompt()
125-
if migration_choice == "migrate":
126-
migrator.migrate_config()
127-
return
128-
elif migration_choice == "start_fresh":
129-
migrator.start_fresh()
130-
# Continue to execute the subcommand
131-
# If "ignore", continue to subcommand without migration
132-
133119
# If no command was invoked, show help with header and footer
134120
if ctx.invoked_subcommand is None:
135121
console.print(get_header_text())

0 commit comments

Comments
 (0)