@iamu-dev/iamu 0.2.0-beta.6 → 0.2.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,52 +0,0 @@
1
- import { type BuildMetadata, type RunViewport, type ScenarioFrontmatter } from "@iamu-dev/protocol";
2
- /**
3
- * The URL a run starts at: `--target` (or the scenario's `target_url`)
4
- * as the base, with the scenario's `entry_path` resolved against it.
5
- * Returns an error message instead when there is nothing usable.
6
- */
7
- export declare function resolveStartUrl(target: string | undefined, scenario: Pick<ScenarioFrontmatter, "target_url" | "entry_path">): {
8
- url: string;
9
- } | {
10
- error: string;
11
- };
12
- /**
13
- * Fast preflight probe to check if the target URL answers HTTP requests.
14
- * Times out quickly (default: 1000ms) to avoid stalling walkthrough initialization.
15
- */
16
- export declare function checkTargetReachable(url: string, timeoutMs?: number): Promise<{
17
- reachable: boolean;
18
- error?: string;
19
- }>;
20
- /**
21
- * The build as one line: label, branch, commit and CI provider. A dirty
22
- * tree shows next to the commit, so a re-run after an uncommitted fix
23
- * visibly walks a different build.
24
- *
25
- * @example
26
- * ```ts
27
- * formatBuild({ git_sha: "90e2444…", git_dirty: true, worktree_hash: "3fa9c1d2e4b5" });
28
- * // "90e2444 + uncommitted changes (3fa9c1…)"
29
- * ```
30
- */
31
- export declare function formatBuild(build: BuildMetadata): string;
32
- /**
33
- * A run viewport as one line.
34
- *
35
- * @example
36
- * ```ts
37
- * formatViewport({ device: "desktop", width: 1280, height: 800, source: "persona-tags" });
38
- * // "desktop 1280×800 (from persona tags)"
39
- * ```
40
- */
41
- export declare function formatViewport(v: RunViewport): string;
42
- export interface StartRunOptions {
43
- target?: string;
44
- build?: string;
45
- env?: string;
46
- json?: boolean;
47
- check?: boolean;
48
- walker?: string;
49
- judge?: string;
50
- matcher?: string;
51
- }
52
- export declare function startRun(scenarioSlug: string, opts: StartRunOptions): Promise<void>;