@builder.io/dev-tools 1.58.2-dev.202605212013.6b8c4aaf4 → 1.58.2-dev.202605212050.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.
- package/cli/index.cjs +100 -103
- package/cli/index.cjs.map +4 -4
- package/core/index.cjs +1 -1
- package/core/index.mjs +1 -1
- package/node/index.cjs +1 -1
- package/node/index.mjs +1 -1
- package/package.json +1 -1
- package/server/index.cjs +4 -3
- package/server/index.mjs +4 -3
- package/types/cli/hydrate-figma.d.ts +33 -0
- package/types/cli/index.d.ts +2 -0
- package/types/tsconfig.tsbuildinfo +1 -1
|
@@ -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>;
|