/**
 * TanStack Start build adapter.
 *
 * Runs the generic build pipeline after applying CDN wiring (server entry +
 * Vite base) required for Agentuity static asset delivery.
 */
import { genericAdapter } from "./generic.js";
import { prepareTanStackCdnBuild } from "./tanstack-start/cdn-build.js";
export const tanstackStartAdapter = {
    name: 'tanstack-start',
    async build(options) {
        const preparation = prepareTanStackCdnBuild(options.projectDir, options.logger);
        try {
            const result = await genericAdapter.build(options);
            return {
                ...result,
                logs: [...preparation.logs, ...result.logs],
            };
        }
        finally {
            preparation.cleanup();
        }
    },
};
//# sourceMappingURL=tanstack-start.js.map