mirror of
https://github.com/nexu-io/open-design.git
synced 2026-10-27 09:51:12 +01:00
* test: harden e2e inspect specs * test: wire e2e release reports * chore: bump packaged beta base to 0.6.1 * test: run release smoke vitest directly * test: add suite-owned tools-dev lifecycle * ci: harden stable release packaging * fix(release,e2e): gate stable signing on verify and harden suite cleanup - restore `needs: [metadata, verify]` on the stable release `build_mac`, `build_mac_intel`, `build_win`, and `build_linux` jobs so Apple signing/notarization and Windows release builds cannot run before pnpm guard, typecheck, and layout checks complete on the metadata commit. - in `runToolsDevSuite`, drop the `started` flag and always attempt `stopToolsDevWeb` in `finally`; record stop errors in diagnostics, and when the test body succeeded, escalate the stop failure to the suite result and rethrow — so orphan daemon/web processes from an interrupted `startToolsDevWeb` or a broken shutdown can no longer pass silently. Addresses PR #1140 review feedback from lefarcen and mrcfps.
35 lines
857 B
TypeScript
35 lines
857 B
TypeScript
import { requestJson, requestText } from './http.ts';
|
|
|
|
export type LiveArtifactSummary = {
|
|
createdAt: string;
|
|
createdByRunId?: string;
|
|
id: string;
|
|
projectId: string;
|
|
refreshStatus: string;
|
|
slug: string;
|
|
status: string;
|
|
title: string;
|
|
};
|
|
|
|
export async function listLiveArtifacts(
|
|
baseUrl: string,
|
|
projectId: string,
|
|
): Promise<LiveArtifactSummary[]> {
|
|
const response = await requestJson<{ artifacts: LiveArtifactSummary[] }>(
|
|
baseUrl,
|
|
`/api/live-artifacts?projectId=${encodeURIComponent(projectId)}`,
|
|
);
|
|
return response.artifacts;
|
|
}
|
|
|
|
export async function readLiveArtifactPreview(
|
|
baseUrl: string,
|
|
projectId: string,
|
|
artifactId: string,
|
|
): Promise<string> {
|
|
return await requestText(
|
|
baseUrl,
|
|
`/api/live-artifacts/${encodeURIComponent(artifactId)}/preview?projectId=${encodeURIComponent(projectId)}`,
|
|
);
|
|
}
|