/** * (C) Copyright 2025, TCCC, All rights reserved. */ import { Tree } from "@nx/devkit"; /** * Automatic migration to add dev server support to existing KOS workspaces. * * This migration runs automatically when users upgrade to * @kosdev-code/kos-nx-plugin@2.1.28+ via `nx migrate`. * * ## What This Migration Does * * 1. **Root .kos.json** - Adds development configuration with auto-detected hosts/plugins * 2. **Plugin .kos.json** - Adds test.plugin.context for plugin testing * 3. **Plugin webpack** - Adds withKosConfig and withPluginDevServer * 4. **UI webpack** - Adds withPluginDevAggregator for plugin-enabled UIs * 5. **Model project.json** - Adds api target for koscli api:generate * * ## Migration Safety * * - Idempotent: Can run multiple times safely * - Non-destructive: Preserves existing configurations * - Checks before modifying files * - Reports all changes via logger * * @param tree - Nx virtual file system tree * @returns Promise that resolves when migration completes * * @category Migrations * @version 2.1.28 */ export default function migrate(tree: Tree): Promise; //# sourceMappingURL=migrate.d.ts.map