@builder.io/dev-tools 1.58.2-dev.202605212013.6b8c4aaf4 → 1.58.2-dev.202605212051.3c34f9c6b

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.
@@ -0,0 +1,33 @@
1
+ import type { DevToolsSys } from "@builder.io/dev-tools/core";
2
+ import type { CLIArgs } from "./index";
3
+ export interface HydrateFigmaFramesArgs {
4
+ sys: DevToolsSys;
5
+ credentials: {
6
+ builderPublicKey?: string;
7
+ builderPrivateKey?: string;
8
+ };
9
+ jobId: string;
10
+ workspaceRoot: string;
11
+ /** Optional logger; defaults to console. */
12
+ log?: (message: string) => void;
13
+ }
14
+ /**
15
+ * Download the figma decode-job's frames + manifest from GCS (via the AIR
16
+ * hydration endpoint, which returns presigned URLs) and write them into
17
+ * `<workspaceRoot>/.builder/figma/`. Skips work if the manifest is already on
18
+ * disk — handles re-runs after instance restart.
19
+ */
20
+ export declare function hydrateFigmaFrames(args: HydrateFigmaFramesArgs): Promise<{
21
+ written: number;
22
+ skipped: boolean;
23
+ figmaDir: string;
24
+ }>;
25
+ /**
26
+ * CLI: `builderio hydrate-figma --jobId <id> [--cwd <path>]`
27
+ *
28
+ * Lets you exercise the hydration flow against a real service without
29
+ * spinning up the full launch pipeline. Useful for verifying the endpoint
30
+ * returns the expected manifest + files, and that file writes land where
31
+ * you expect.
32
+ */
33
+ export declare function runHydrateFigmaCommand(sys: DevToolsSys, args: CLIArgs): Promise<void>;
@@ -163,4 +163,6 @@ export interface CLIArgs {
163
163
  * Equivalent to always choosing "Accept and Continue".
164
164
  */
165
165
  accept?: boolean;
166
+ /** Figma decode job ID used by `hydrate-figma` */
167
+ jobId?: string;
166
168
  }