Merge branch 'feat/wf-fleet-t2-launch' into feat/wf-fleet-mvp
This commit is contained in:
@@ -67,6 +67,7 @@ import { registerFleetBacklogCommand } from './fleet-backlog.js';
|
||||
import { registerFleetPersonaCommand } from './fleet-personas.js';
|
||||
import { registerFleetProfileCommand } from './fleet-profiles.js';
|
||||
import { registerFleetProvisionCommand } from './fleet-provision.js';
|
||||
import { registerFleetLaunchCommand, type FleetLaunchCommandDeps } from './fleet-launch-command.js';
|
||||
|
||||
/**
|
||||
* A function that spawns a command with inherited stdio (TTY passthrough).
|
||||
@@ -101,6 +102,10 @@ export interface FleetCommandDeps {
|
||||
*/
|
||||
sleepFn?: SleepFn;
|
||||
mosaicHome?: string;
|
||||
/** User-owned fleet/auth/config root. Defaults to ~/.mosaic. */
|
||||
mosaicUserHome?: string;
|
||||
/** Test/embedding seam for the final process-replacing fleet launch. */
|
||||
fleetLauncher?: FleetLaunchCommandDeps['launcher'];
|
||||
frameworkRoot?: string;
|
||||
/**
|
||||
* Injectable TTY check for `fleet init` wizard. Defaults to process.stdin.isTTY.
|
||||
@@ -2047,6 +2052,14 @@ export function registerFleetCommand(program: Command, deps: FleetCommandDeps =
|
||||
// fleet/ directory as the roster and heartbeats.
|
||||
registerFleetBacklogCommand(cmd, () => cmd.opts<{ mosaicHome: string }>().mosaicHome);
|
||||
|
||||
// User-facing per-agent profile.json is the launch-composition SSOT. It is
|
||||
// intentionally independent of roster-v2, whose lifecycle/topology registry
|
||||
// does not model auth bundles, overlays, plugins, skills, or seat env.
|
||||
registerFleetLaunchCommand(cmd, () => cmd.opts<{ mosaicHome: string }>().mosaicHome, {
|
||||
...(deps.mosaicUserHome === undefined ? {} : { userHome: deps.mosaicUserHome }),
|
||||
...(deps.fleetLauncher === undefined ? {} : { launcher: deps.fleetLauncher }),
|
||||
});
|
||||
|
||||
// System-type profiles (H2): declarative persona roster + topology, resolved
|
||||
// from <mosaicHome>/fleet/profiles/*.yaml using the same --mosaic-home flag.
|
||||
registerFleetProfileCommand(cmd, () => cmd.opts<{ mosaicHome: string }>().mosaicHome);
|
||||
|
||||
Reference in New Issue
Block a user