eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
25 lines (24 loc) • 1.27 kB
TypeScript
import { ensureConnection } from "#setup/scaffold/index.js";
import { setupConnectionConnector } from "../connection-connector.js";
import { type ProjectResolution } from "../project-resolution.js";
import type { Prompter } from "../prompter.js";
import { type SetupState } from "../state.js";
import type { SetupBox } from "../step.js";
/** Injected for tests; defaults to the real scaffold and Connect effects. */
export interface AddConnectionsDeps {
ensureConnection: typeof ensureConnection;
setupConnectionConnector: typeof setupConnectionConnector;
}
export interface AddConnectionsOptions {
/** Carries the follow-up log lines and `perform`'s progress output. The box never prompts. */
prompter: Prompter;
deps?: AddConnectionsDeps;
}
/**
* THE CONNECTIONS BOX: executes the {@link ConnectionPlan}s the
* select-connections box recorded during the interview. Prompts for nothing —
* every decision (slug, protocol, entry, provisioning mode) was resolved at
* selection time — and only runs effects: the file scaffold, the follow-up log
* lines, and the Connect connector provisioning against the linked project.
*/
export declare function addConnections(options: AddConnectionsOptions): SetupBox<SetupState, null, ProjectResolution>;