Skip to content

Commit c17a619

Browse files
committed
feat: Updated to latest.
1 parent f6425df commit c17a619

File tree

284 files changed

+16462
-1736
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

284 files changed

+16462
-1736
lines changed

src/helpers/FixOpenApiSpec/FixOpenApiSpec.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<OutputType>Exe</OutputType>
66
<LangVersion>preview</LangVersion>
77
<Nullable>enable</Nullable>

src/helpers/FixOpenApiSpec/Program.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
Type = "string"
2222
});
2323

24-
openApiDocument.Paths["/crawl"]!
25-
.Operations[OperationType.Post]!
26-
.RequestBody
27-
.Content["application/json"]!
28-
.Schema
29-
.Properties["crawlerOptions"]!
30-
.Properties["maxDepth"].Nullable = true;
24+
// openApiDocument.Paths["/crawl"]!
25+
// .Operations[OperationType.Post]!
26+
// .RequestBody
27+
// .Content["application/json"]!
28+
// .Schema
29+
// .Properties["crawlerOptions"]!
30+
// .Properties["maxDepth"].Nullable = true;
3131

3232
text = openApiDocument.SerializeAsYaml(OpenApiSpecVersion.OpenApi3_0);
3333
_ = new OpenApiStringReader().Read(text, out diagnostics);

src/helpers/GenerateDocs/GenerateDocs.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

src/helpers/TrimmingHelper/TrimmingHelper.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77

88
<PublishTrimmed>true</PublishTrimmed>

src/libs/Firecrawl.Cli/Commands/AuthCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Firecrawl.Cli.Commands;
44

5-
public class AuthCommand : Command
5+
internal sealed class AuthCommand : Command
66
{
77
public AuthCommand() : base(
88
name: "auth",

src/libs/Firecrawl.Cli/Commands/CrawlCommand.cs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Firecrawl.Cli.Commands;
44

5-
public class CrawlCommand : Command
5+
internal sealed class CrawlCommand : Command
66
{
77
public CrawlCommand() : base(
88
name: "crawl",
@@ -55,20 +55,17 @@ private static async Task HandleAsync(
5555

5656
var response = await api.Crawling.CrawlUrlsAsync(
5757
url: url,
58-
crawlerOptions: new CrawlUrlsRequestCrawlerOptions
59-
{
60-
MaxDepth = maxDepth,
61-
Limit = limit,
62-
},
63-
pageOptions: new CrawlUrlsRequestPageOptions
58+
maxDepth: maxDepth,
59+
limit: limit,
60+
scrapeOptions: new CrawlUrlsRequestScrapeOptions
6461
{
6562
OnlyMainContent = true,
6663
WaitFor = 1000,
6764
}).ConfigureAwait(false);
6865

6966
Console.WriteLine($"JobId: {response.JobId}");
7067

71-
var jobResponse = await api.Crawl.WaitJobAsync(
68+
var jobResponse = await api.Crawling.WaitJobAsync(
7269
jobId: response.JobId!).ConfigureAwait(false);
7370

7471
if (string.IsNullOrWhiteSpace(outputPath))

src/libs/Firecrawl.Cli/Commands/MapCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Firecrawl.Cli.Commands;
44

5-
public class MapCommand : Command
5+
internal sealed class MapCommand : Command
66
{
77
public MapCommand() : base(
88
name: "map",

src/libs/Firecrawl.Cli/Commands/ScrapeCommand.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Firecrawl.Cli.Commands;
44

5-
public class ScrapeCommand : Command
5+
internal sealed class ScrapeCommand : Command
66
{
77
public ScrapeCommand() : base(
88
name: "scrape",
@@ -37,13 +37,9 @@ private static async Task HandleAsync(
3737

3838
Console.WriteLine($"Scraping {url}...");
3939

40-
var response = await api.Scraping.ScrapeAsync(url).ConfigureAwait(false);
40+
var response = await api.Scraping.ScrapeAndExtractFromUrlAsync(url).ConfigureAwait(false);
4141

4242
Console.WriteLine($"Success: {response.Success}");
43-
if (!string.IsNullOrWhiteSpace(response.Warning))
44-
{
45-
Console.WriteLine($"Warning: {response.Warning}");
46-
}
4743

4844
var fileInfo = new FileInfo(outputPath);
4945
await File.WriteAllTextAsync(fileInfo.FullName, response.Data?.Markdown).ConfigureAwait(false);

src/libs/Firecrawl.Cli/Firecrawl.Cli.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<GenerateDocumentationFile>false</GenerateDocumentationFile>

src/libs/Firecrawl.Cli/Helpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Firecrawl.Cli;
22

3-
public static class Helpers
3+
internal static class Helpers
44
{
55
public static string GetSettingsFolder()
66
{

0 commit comments

Comments
 (0)