refactor: make provisioning own instance lifecycle operations

This commit is contained in:
2026-09-27 14:45:00 -04:00
parent cfed584614
commit df265d1900
44 changed files with 1791 additions and 1609 deletions
@@ -1,5 +1,5 @@
import { json } from '@sveltejs/kit';
import { cancelRemoval } from '$lib/server/fleet/deployments.js';
import { cancelRemoval } from '$lib/server/provisioning/index.js';
export function POST({ params }: { params: { id: string } }) {
if (!cancelRemoval(params.id)) return json({ error: 'Removal has already begun or this request is no longer waiting. Refresh to see its current state.' }, { status: 409 });