grapheme-cli 0.4.1

Grapheme CLI for parsing, compiling, and running .gr workflows
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[intent(goal: "Find the best rust runtime patterns")]
query Q on Any {
  websearch.search(query: "Rust async runtime patterns", max_results: 3)
  |> ParseResults
}

iterator ParseResults on Any @loop(max: 3, each: $current.results, merge: "append"){
  http.get(url: "$current.url")
  |> html.to_md(html: "$current.body", options: {
      output_format: "markdown",
      include_document_structure: true,
      extract_metadata: true,
      strip_tags: ["script", "style", "nav", "footer", "aside"],
      exclude_selectors: [".cookie-banner", "#cookie", ".advertisement"]
    })
}