Fray Electron
    Preparing search index...

    Function createOpenProjectWorkflow

    • Coordinates archive/folder selection, conflict resolution, and Engine open requests.

      Parameters

      • choosePath: (kind: "both" | "archive" | "folder") => void

        Opens the native chooser for requested source kinds.

      • send: (path: string, choice: number) => string

        Sends a project request and returns its request id.

      • requestPrompt: (options: ProjectPrompt) => string

        Opens a prompt and returns its id.

      • notify: (options: NotificationOptions) => void

        Displays workflow results.

      • platform: string

        Host platform, used to select the platform-appropriate picker.

      • Optionalreveal: (path: string) => void

        Optional callback to reveal the opened working directory.

      Returns {
          onPath: (result: ProjectPathResult<ProjectSelection>) => void;
          onPromptResult: (
              id: string,
              value: string | null,
              error?: string,
          ) => boolean;
          onResult: (id: string, result: ProjectCreateReply) => boolean;
          start: () => void;
      }

      Start and response handlers; file selection and Engine results are asynchronous.