/** * The bundle's own command line, and the terminal precondition. * * A frontend that needs a terminal must refuse a piped launch, and must refuse * it EARLY. A compose-time throw inside a Loader tree is logged per entry rather * than rethrown, so a plugin that merely threw here would leave the process * settled and idle with no UI and a zero exit code — the launcher would look * like it had succeeded. The refusal therefore goes through `ctx.appExit`, which * the launcher provides before the tree mounts, giving a message on stderr and a * non-zero status. * * On refusal the startup service is never published, so the runner row's * injection never resolves and it does not mount at all. * @module dshline/startup */ import { Service } from '@deepseek-ai/cordis'; import type { Context } from '@deepseek-ai/cordis'; declare module '@deepseek-ai/cordis' { interface Context { tuiStartup: TuiStartup; } } /** Cordis plugin name used by Loader diagnostics. */ export declare const name = "dshline-startup"; /** The command line is launcher-owned and must be present before this mounts. */ export declare const inject: string[]; /** Invocation values the runner reads. */ export interface TuiStartupOptions { /** Workspace root for the session, defaulting to the invoking directory. */ cwd: string; /** A task to submit immediately, or undefined to open with an empty composer. */ task: string | undefined; /** * Which past session to reopen. * * Three states rather than two, because `--resume` with no value is a distinct * request from not passing it: `undefined` starts a new session, a string names * one, and `true` means "ask me which". */ resume: string | true | undefined; } /** Publishes this invocation's parsed arguments. */ export declare class TuiStartup extends Service { readonly options: TuiStartupOptions; constructor(ctx: Context, options: TuiStartupOptions); } /** * Parse the bundle's flags and publish them, or refuse a non-interactive launch. * @param ctx - plugin context carrying `cmdlineArgs` and `appExit`. */ export declare function apply(ctx: Context): void; //# sourceMappingURL=startup.d.ts.map