@superdesign/cli 0.1.0 → 0.1.1
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/dist/api/brand.d.ts +55 -0
- package/dist/api/designs.d.ts +28 -0
- package/dist/api/projects.d.ts +5 -0
- package/dist/api/prompts.d.ts +53 -0
- package/dist/commands/extract-brand-guide.d.ts +5 -0
- package/dist/commands/fetch-design-nodes.d.ts +5 -0
- package/dist/commands/get-design.d.ts +5 -0
- package/dist/commands/get-prompts.d.ts +5 -0
- package/dist/commands/search-prompts.d.ts +5 -0
- package/dist/index.cjs +554 -213
- package/dist/index.d.ts +3 -0
- package/dist/index.js +531 -205
- package/dist/utils/job-runner.d.ts +5 -0
- package/package.json +1 -1
|
@@ -39,3 +39,8 @@ export declare function runJob<TResult>(config: JobRunnerConfig<TResult>): Promi
|
|
|
39
39
|
* Check authentication and exit with appropriate error if not authenticated
|
|
40
40
|
*/
|
|
41
41
|
export declare function requireAuth(isAuthenticated: () => boolean): void;
|
|
42
|
+
/**
|
|
43
|
+
* Handle common API errors with consistent output formatting
|
|
44
|
+
* Exits the process with appropriate exit code
|
|
45
|
+
*/
|
|
46
|
+
export declare function handleApiError(err: unknown, failureMessage: string): never;
|