import * as Effect from "effect/Effect"; import * as Option from "effect/Option"; import { type ConfiguredUpdateSelector, type WorkspaceUpdatableType } from "@agentxm/workspace-features/lifecycle"; import { type ConfirmationRecovery } from "@agentxm/workspace-kernel/operations"; import type { SuggestedAction } from "@agentxm/registry-protocol/unstable/suggested-action"; import { type OperationRecoveryContext } from "../../operation-output.js"; export interface WorkspaceUpdateFlags { readonly preview: boolean; readonly force?: boolean; } /** * What the sweep offers next. A constraint contradiction is a choice to make, * not a step to repeat, so it names the declarations that disagree; a sweep * that settled everything offers only the inventory; and anything else offers * the invocation again only where a rerun would actually settle it, so a * failure no rerun can change names nothing here. Settled units are no-ops * on a rerun, so the invocation is safe to repeat; the root route takes no * `--name` and repeats the whole sweep, while a typed route is narrowed to * the units that are still waiting. */ export declare const updateSuggestions: (args: { readonly type: Option.Option; readonly recovery: ConfirmationRecovery; readonly constraintRefused: boolean; }) => ({ unsettled }: OperationRecoveryContext) => ReadonlyArray; export interface WorkspaceUpdateHandlerArgs { readonly command: string; readonly type: Option.Option; readonly planName: string; readonly planDescription: Option.Option; readonly flags: WorkspaceUpdateFlags; /** A selector to narrow the sweep; omit to update every configured entry. */ readonly selector?: ConfiguredUpdateSelector; } export declare const handleWorkspaceUpdate: (args: WorkspaceUpdateHandlerArgs) => Effect.Effect; //# sourceMappingURL=workspace-update-handler.d.ts.map