You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/cmd/parse.go
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,12 @@ var parseHandle = requestflag.WithInnerFlags(cli.Command{
78
78
Default: false,
79
79
QueryPath: "useMainContentOnly",
80
80
},
81
+
&requestflag.Flag[string]{
82
+
Name: "zdr",
83
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
Copy file name to clipboardExpand all lines: pkg/cmd/web.go
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -309,6 +309,12 @@ var webScreenshot = requestflag.WithInnerFlags(cli.Command{
309
309
Default: requestflag.Ptr[int64](3000),
310
310
QueryPath: "waitForMs",
311
311
},
312
+
&requestflag.Flag[string]{
313
+
Name: "zdr",
314
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
315
+
Default: "disabled",
316
+
QueryPath: "zdr",
317
+
},
312
318
},
313
319
Action: handleWebScreenshot,
314
320
HideHelpCommand: true,
@@ -559,6 +565,12 @@ var webWebCrawlMd = requestflag.WithInnerFlags(cli.Command{
559
565
Usage: "Optional browser wait time in milliseconds after initial page load for each crawled page. Min: 0. Max: 30000 (30 seconds). ",
560
566
BodyPath: "waitForMs",
561
567
},
568
+
&requestflag.Flag[string]{
569
+
Name: "zdr",
570
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
571
+
Default: "disabled",
572
+
BodyPath: "zdr",
573
+
},
562
574
},
563
575
Action: handleWebWebCrawlMd,
564
576
HideHelpCommand: true,
@@ -663,6 +675,12 @@ var webWebScrapeHTML = requestflag.WithInnerFlags(cli.Command{
663
675
Usage: "Optional browser wait time in milliseconds after initial page load. Min: 0. Max: 30000 (30 seconds).",
664
676
QueryPath: "waitForMs",
665
677
},
678
+
&requestflag.Flag[string]{
679
+
Name: "zdr",
680
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
681
+
Default: "disabled",
682
+
QueryPath: "zdr",
683
+
},
666
684
},
667
685
Action: handleWebWebScrapeHTML,
668
686
HideHelpCommand: true,
@@ -861,6 +879,12 @@ var webWebScrapeMd = requestflag.WithInnerFlags(cli.Command{
861
879
Usage: "Optional browser wait time in milliseconds after initial page load before converting the page to Markdown. Min: 0. Max: 30000 (30 seconds).",
862
880
QueryPath: "waitForMs",
863
881
},
882
+
&requestflag.Flag[string]{
883
+
Name: "zdr",
884
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
885
+
Default: "disabled",
886
+
QueryPath: "zdr",
887
+
},
864
888
},
865
889
Action: handleWebWebScrapeMd,
866
890
HideHelpCommand: true,
@@ -931,6 +955,12 @@ var webWebScrapeSitemap = cli.Command{
931
955
Usage: "Optional RE2-compatible regex pattern. Only URLs matching this pattern are returned and counted against maxLinks.",
932
956
QueryPath: "urlRegex",
933
957
},
958
+
&requestflag.Flag[string]{
959
+
Name: "zdr",
960
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
0 commit comments