Polyman Documentation - v2.2.2
    Preparing search index...

    Function remotePackageProblemAction

    • Builds and downloads problem package from Polygon. Package types: 'standard' (for contests) or 'full' (complete problem data). Downloaded package is saved to current directory.

      Parameters

      • problemIdOrPath: string

        Problem ID or path to directory with Config.json

      • packageType: string

        Package type: 'standard', 'full', 'linux', 'windows'

      Returns Promise<void>

      Resolves when package is downloaded

      If credentials are not registered

      If problem not found on Polygon

      If package build fails

      // From CLI: polyman remote-package ./my-problem standard
      await remotePackageProblemAction('./my-problem', 'standard');
      // Builds and downloads standard package
      // Full package with all data
      await remotePackageProblemAction('123456', 'full');