repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/libs_bench/src/main.rs
xtask/libs_bench/src/main.rs
fn main() {}
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/libs_bench/benches/contains_criterion.rs
xtask/libs_bench/benches/contains_criterion.rs
mod contains; use contains::*; use criterion::{criterion_group, criterion_main, Criterion}; use fastbloom_rs::Membership; fn criterion_benchmark(c: &mut Criterion) { let set = contains_hashset_setup(); c.bench_function("contains_hashset", |b| { b.iter(|| { let mut count = 0; fo...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/libs_bench/benches/to_camel_case.rs
xtask/libs_bench/benches/to_camel_case.rs
fn to_camel_case_rome_all_lowercase() { let _ = rome_js_analyze::utils::to_camel_case(iai::black_box("lowercase")); } fn to_camel_case_case_all_lowercase() { let _ = case::CaseExt::to_camel(iai::black_box("lowercase")); } fn to_camel_case_rome_already_camel_case() { let _ = rome_js_analyze::utils::to_came...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/libs_bench/benches/contains.rs
xtask/libs_bench/benches/contains.rs
#![allow(dead_code)] use std::collections::{BTreeSet, HashSet}; use fastbloom_rs::{BloomFilter, FilterBuilder, Membership}; use qp_trie::Trie; pub fn keywords() -> Vec<String> { let repeat = std::env::var("ROME_BENCH_CONTAINS_REPEAT") .unwrap_or_else(|_| "1".to_string()) .parse() .unwrap(...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/libs_bench/benches/contains_iai.rs
xtask/libs_bench/benches/contains_iai.rs
mod contains; use contains::*; // iai do not support setup, so we basically run the setup and // the whole setup + test. To see the difference. // https://github.com/bheisler/iai/pull/24 iai::main!( contains_hashset_setup, contains_hashset, contains_btreeset_setup, contains_btreeset, contains_bloo...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/kinds_src.rs
xtask/codegen/src/kinds_src.rs
//! Definitions for the ECMAScript AST used for codegen //! Based on the rust analyzer parser and ast definitions use crate::LanguageKind; use quote::format_ident; use std::collections::BTreeMap; const LANGUAGE_PREFIXES: [&str; 6] = ["js_", "ts_", "jsx_", "tsx_", "css_", "json_"]; pub struct KindsSrc<'a> { pub p...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/ast.rs
xtask/codegen/src/ast.rs
//! Generate SyntaxKind definitions as well as typed AST definitions for nodes and tokens. //! This is derived from rust-analyzer/xtask/codegen use std::collections::{HashMap, HashSet, VecDeque}; use std::str::FromStr; use std::vec; use super::{ kinds_src::{AstSrc, Field}, to_lower_snake_case, Mode, }; use cr...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/generate_website.rs
xtask/codegen/src/generate_website.rs
use rome_cli::rome_command; use rome_service::VERSION; use std::fs; use xtask::{project_root, Result}; const FRONTMATTER: &str = r#"--- title: VSCode extension emoji: 💻 category: reference description: Notes about the Rome's VSCode extension --- "#; const CLI_FRONTMATTER: &str = r#"--- title: CLI emoji: ⌨️ category:...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/generate_configuration.rs
xtask/codegen/src/generate_configuration.rs
use case::CaseExt; use proc_macro2::{Ident, Literal, Span, TokenStream}; use pulldown_cmark::{Event, Parser, Tag}; use quote::quote; use rome_analyze::{ GroupCategory, Queryable, RegistryVisitor, Rule, RuleCategory, RuleGroup, RuleMetadata, }; use rome_js_syntax::JsLanguage; use rome_json_syntax::JsonLanguage; use ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/lib.rs
xtask/codegen/src/lib.rs
//! Codegen tools for generating Syntax and AST definitions. Derived from Rust analyzer's codegen //! mod ast; mod css_kinds_src; mod formatter; mod generate_analyzer; mod generate_macros; pub mod generate_new_lintrule; mod generate_node_factory; mod generate_nodes; mod generate_nodes_mut; mod generate_syntax_factory; ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/generate_schema.rs
xtask/codegen/src/generate_schema.rs
use rome_json_formatter::context::JsonFormatOptions; use rome_json_parser::{parse_json, JsonParserOptions}; use rome_service::Configuration; use schemars::schema_for; use serde_json::to_string; use xtask::{project_root, Mode, Result}; use xtask_codegen::update; pub(crate) fn generate_configuration_schema(mode: Mode) -...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/generate_bindings.rs
xtask/codegen/src/generate_bindings.rs
use rome_js_factory::make; use rome_js_formatter::{context::JsFormatOptions, format_node}; use rome_js_syntax::{ AnyJsBinding, AnyJsBindingPattern, AnyJsCallArgument, AnyJsDeclaration, AnyJsDeclarationClause, AnyJsExportClause, AnyJsExpression, AnyJsFormalParameter, AnyJsImportClause, AnyJsLiteralExpression...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/promote_rule.rs
xtask/codegen/src/promote_rule.rs
use case::CaseExt; use fs_extra::dir::{move_dir, CopyOptions}; use fs_extra::file; use fs_extra::file::move_file; use std::env; use std::path::PathBuf; const KNOWN_GROUPS: [&str; 7] = [ "a11y", "suspicious", "correctness", "performance", "security", "style", "complexity", ]; const KNOWN_PA...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/generate_analyzer.rs
xtask/codegen/src/generate_analyzer.rs
use std::collections::BTreeMap; use std::path::PathBuf; use anyhow::{Context, Ok, Result}; use case::CaseExt; use proc_macro2::{Punct, Spacing, TokenStream}; use quote::{format_ident, quote}; use xtask::{glue::fs2, project_root}; pub fn generate_analyzer() -> Result<()> { generate_js_analyzer()?; generate_jso...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/generate_nodes.rs
xtask/codegen/src/generate_nodes.rs
use crate::css_kinds_src::CSS_KINDS_SRC; use crate::json_kinds_src::JSON_KINDS_SRC; use crate::kinds_src::{AstSrc, Field, TokenKind, JS_KINDS_SRC}; use crate::{to_lower_snake_case, to_upper_snake_case, LanguageKind}; use proc_macro2::Literal; use quote::{format_ident, quote}; use std::collections::HashMap; use xtask::R...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
true
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/generate_node_factory.rs
xtask/codegen/src/generate_node_factory.rs
use super::kinds_src::AstSrc; use crate::to_lower_snake_case; use crate::{kinds_src::Field, to_upper_snake_case, LanguageKind}; use quote::{format_ident, quote}; use xtask::Result; pub fn generate_node_factory(ast: &AstSrc, language_kind: LanguageKind) -> Result<String> { let syntax_crate = language_kind.syntax_cr...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/generate_new_lintrule.rs
xtask/codegen/src/generate_new_lintrule.rs
use std::{path::PathBuf, str::FromStr}; use case::CaseExt; pub fn generate_new_lintrule(path: &str, rule_name: &str) { let rule_folder = PathBuf::from_str(path).unwrap(); match rule_folder.file_stem().and_then(|x| x.to_str()) { Some("nursery") => {} _ => { panic!("all new rules mus...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/parser_tests.rs
xtask/codegen/src/parser_tests.rs
//! Takes comments from rome_js_parser and turns them into test data. //! This code is derived from rust_analyzer/xtask/codegen/gen_parser_tests use std::{ collections::HashMap, fs, mem, path::{Path, PathBuf}, }; use crate::{update, Mode}; use xtask::{project_root, Result}; fn extract_comment_blocks( ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/json_kinds_src.rs
xtask/codegen/src/json_kinds_src.rs
use crate::kinds_src::KindsSrc; pub const JSON_KINDS_SRC: KindsSrc = KindsSrc { punct: &[ (":", "COLON"), (",", "COMMA"), ("(", "L_PAREN"), (")", "R_PAREN"), ("{", "L_CURLY"), ("}", "R_CURLY"), ("[", "L_BRACK"), ("]", "R_BRACK"), ], keywords: ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/generate_syntax_factory.rs
xtask/codegen/src/generate_syntax_factory.rs
use super::kinds_src::AstSrc; use crate::generate_nodes::token_kind_to_code; use crate::kinds_src::TokenKind; use crate::{kinds_src::Field, to_upper_snake_case, LanguageKind}; use quote::{format_ident, quote}; use xtask::Result; pub fn generate_syntax_factory(ast: &AstSrc, language_kind: LanguageKind) -> Result<String...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/generate_syntax_kinds.rs
xtask/codegen/src/generate_syntax_kinds.rs
use crate::{to_upper_snake_case, LanguageKind, Result}; use proc_macro2::{Literal, Punct, Spacing}; use quote::{format_ident, quote}; use super::kinds_src::KindsSrc; pub fn generate_syntax_kinds(grammar: KindsSrc, language_kind: LanguageKind) -> Result<String> { let syntax_kind = language_kind.syntax_kind(); ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/generate_nodes_mut.rs
xtask/codegen/src/generate_nodes_mut.rs
use crate::kinds_src::{AstSrc, Field}; use crate::LanguageKind; use quote::{format_ident, quote}; use xtask::Result; pub fn generate_nodes_mut(ast: &AstSrc, language_kind: LanguageKind) -> Result<String> { let node_boilerplate_impls: Vec<_> = ast .nodes .iter() .map(|node| { let...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/css_kinds_src.rs
xtask/codegen/src/css_kinds_src.rs
use crate::kinds_src::KindsSrc; pub const CSS_KINDS_SRC: KindsSrc = KindsSrc { punct: &[ (";", "SEMICOLON"), (",", "COMMA"), ("(", "L_PAREN"), (")", "R_PAREN"), ("{", "L_CURLY"), ("}", "R_CURLY"), ("[", "L_BRACK"), ("]", "R_BRACK"), ("<", "L_A...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/unicode.rs
xtask/codegen/src/unicode.rs
use std::path::PathBuf; use anyhow::{Context, Ok, Result}; use quote::quote; mod paths { pub const DERIVED_CORE_PROPERTIES: &str = "target/DerivedCoreProperties.txt"; pub const TABLES: &str = "crates/rome_js_unicode_table/src/tables.rs"; } pub fn generate_tables() -> Result<()> { let properties = Propert...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/main.rs
xtask/codegen/src/main.rs
#[cfg(feature = "schema")] mod generate_bindings; #[cfg(feature = "configuration")] mod generate_configuration; mod generate_new_lintrule; #[cfg(feature = "schema")] mod generate_schema; #[cfg(feature = "website")] mod generate_website; mod promote_rule; use pico_args::Arguments; use xtask::{project_root, pushd, Mode,...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/formatter.rs
xtask/codegen/src/formatter.rs
use std::{ collections::{BTreeMap, BTreeSet, HashSet, VecDeque}, env, fs::{create_dir_all, read_dir, remove_file, File}, io::Write, path::{Path, PathBuf}, }; use git2::{Repository, Status, StatusOptions}; use proc_macro2::{Ident, Span, TokenStream}; use quote::quote; use xtask::project_root; use c...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/generate_macros.rs
xtask/codegen/src/generate_macros.rs
use super::kinds_src::AstSrc; use crate::{to_upper_snake_case, LanguageKind, Result}; use quote::{format_ident, quote}; pub fn generate_macros(ast: &AstSrc, language_kind: LanguageKind) -> Result<String> { let syntax_kind = language_kind.syntax_kind(); let syntax_node = language_kind.syntax_node(); let ma...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/codegen/src/termcolorful.rs
xtask/codegen/src/termcolorful.rs
#[derive(Copy, Clone, Debug)] #[allow(dead_code)] pub(crate) enum Color { Red, Green, Black, Yellow, Blue, Purple, Cyan, White, } impl std::fmt::Display for Color { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match *self { Color::Black => ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/bench/src/lib.rs
xtask/bench/src/lib.rs
mod features; mod language; mod test_case; use std::collections::HashMap; use std::fmt::{Display, Formatter}; use std::str::FromStr; use std::time::Duration; use criterion::{BatchSize, BenchmarkId}; use rome_rowan::NodeCache; pub use crate::features::analyzer::benchmark_analyze_lib; use crate::features::analyzer::An...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/bench/src/language.rs
xtask/bench/src/language.rs
use crate::test_case::TestCase; use criterion::black_box; use rome_analyze::{AnalysisFilter, AnalyzerOptions, ControlFlow, Never, RuleCategories}; use rome_formatter::{FormatResult, Formatted, PrintResult, Printed}; use rome_js_analyze::analyze; use rome_js_formatter::context::{JsFormatContext, JsFormatOptions}; use ro...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/bench/src/test_case.rs
xtask/bench/src/test_case.rs
use crate::err_to_string; use ansi_rgb::{red, Foreground}; use std::env; use std::path::{Path, PathBuf}; use std::str::FromStr; pub struct TestCase { code: String, id: String, path: PathBuf, } impl TestCase { pub fn try_from(test_case: &str) -> Result<TestCase, String> { let url = url::Url::fr...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/bench/src/main.rs
xtask/bench/src/main.rs
use pico_args::Arguments; use xtask::{project_root, pushd, Result}; use xtask_bench::{run, FeatureToBenchmark, RunArgs}; #[cfg(feature = "dhat-heap")] #[global_allocator] static ALLOCATOR: dhat::Alloc = dhat::Alloc; #[cfg(all(target_os = "windows", not(feature = "dhat-heap")))] #[global_allocator] static GLOBAL: mima...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/bench/src/features/analyzer.rs
xtask/bench/src/features/analyzer.rs
use crate::language::Analyze; use crate::test_case::TestCase; use crate::BenchmarkSummary; use std::fmt::{Display, Formatter}; use std::time::Duration; #[derive(Debug, Clone)] pub struct AnalyzerMeasurement { id: String, analysis: Duration, } pub fn benchmark_analyze_lib(case: &TestCase, analyze: &Analyze) -> ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/bench/src/features/parser.rs
xtask/bench/src/features/parser.rs
#[cfg(feature = "dhat-heap")] use crate::features::print_stats; use crate::language::Parse; use crate::test_case::TestCase; use crate::BenchmarkSummary; use itertools::Itertools; use rome_diagnostics::console::fmt::Termcolor; use rome_diagnostics::console::markup; use rome_diagnostics::termcolor::Buffer; use rome_diagn...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/bench/src/features/mod.rs
xtask/bench/src/features/mod.rs
pub mod analyzer; pub mod formatter; pub mod parser; #[cfg(feature = "dhat-heap")] fn print_stats(current: dhat::HeapStats, before: Option<dhat::HeapStats>) -> dhat::HeapStats { use humansize::{format_size_i, DECIMAL}; println!("\tMemory"); println!("\t\tCurrent Blocks: {}", current.curr_blocks); prin...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/bench/src/features/formatter.rs
xtask/bench/src/features/formatter.rs
#[cfg(feature = "dhat-heap")] use crate::features::print_stats; use crate::language::FormatNode; use crate::BenchmarkSummary; use rome_formatter::Printed; use std::fmt::{Display, Formatter}; use std::time::Duration; #[derive(Debug, Clone)] pub struct FormatterMeasurement { id: String, formatting: Duration, } p...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/contributors/src/main.rs
xtask/contributors/src/main.rs
use pico_args::Arguments; use serde::{Deserialize, Serialize}; use std::fmt::Write; use xtask::glue::fs2; use xtask::*; /// A token is needed to run this script. To create a token, go to <https://github.com/settings/tokens> /// and give it read access to the repository. /// /// Only users that have read rights can run...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/lintdoc/src/main.rs
xtask/lintdoc/src/main.rs
use pulldown_cmark::{html::write_html, CodeBlockKind, Event, LinkType, Parser, Tag}; use rome_analyze::{ AnalysisFilter, AnalyzerOptions, ControlFlow, GroupCategory, Queryable, RegistryVisitor, Rule, RuleCategory, RuleFilter, RuleGroup, RuleMetadata, }; use rome_console::fmt::Termcolor; use rome_console::{ ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/coverage/src/lib.rs
xtask/coverage/src/lib.rs
pub mod compare; pub mod js; pub mod jsx; mod reporters; pub mod results; mod runner; pub mod symbols; pub mod ts; mod util; pub use crate::reporters::SummaryDetailLevel; use crate::js::test262::Test262TestSuite; use crate::reporters::{ DefaultReporter, JsonReporter, MulticastTestReporter, OutputTarget, SummaryRe...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/coverage/src/runner.rs
xtask/coverage/src/runner.rs
use super::*; use crate::reporters::TestReporter; use rome_diagnostics::console::fmt::{Formatter, Termcolor}; use rome_diagnostics::console::markup; use rome_diagnostics::termcolor::Buffer; use rome_diagnostics::Error; use rome_diagnostics::PrintDiagnostic; use rome_js_parser::{parse, JsParserOptions, Parse}; use rome_...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/coverage/src/results.rs
xtask/coverage/src/results.rs
use ascii_table::{Align, AsciiTable}; use std::collections::{HashMap, HashSet}; use crate::{Outcome, TestResult, TestResults}; pub fn emit_compare( base_results: &TestResults, new_results: &TestResults, test_suite: &str, markdown: bool, ) { let base_total = base_results.summary.tests_ran as isize;...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/coverage/src/util.rs
xtask/coverage/src/util.rs
use std::borrow::Cow; use std::char::{decode_utf16, DecodeUtf16Error}; pub(crate) fn decode_maybe_utf16_string(mut content: &[u8]) -> Result<Cow<str>, DecodeUtf16Error> { enum FileEncoding { Unknown, Utf8, Utf16Le, Utf16Be, } let mut encoding = FileEncoding::Unknown; /...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/coverage/src/main.rs
xtask/coverage/src/main.rs
use pico_args::Arguments; use xtask::{project_root, pushd, Result}; use xtask_coverage::{compare::coverage_compare, run, SummaryDetailLevel}; fn main() -> Result<()> { tracing_subscriber::fmt() .with_env_filter(tracing_subscriber::EnvFilter::from_default_env()) .with_writer(std::io::stderr) ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/coverage/src/reporters.rs
xtask/coverage/src/reporters.rs
use crate::runner::{TestCaseFiles, TestRunOutcome, TestRunResult, TestSuite, TestSuiteInstance}; use crate::{Summary, TestResults}; use ascii_table::{Align, AsciiTable}; use atty::Stream; use colored::Colorize; use indicatif::ProgressBar; use rome_diagnostics::termcolor::Buffer; use rome_diagnostics::{DiagnosticExt, Er...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/coverage/src/compare.rs
xtask/coverage/src/compare.rs
use std::collections::HashMap; use std::fs::File; use std::io::Read; use std::path::{Path, PathBuf}; use xtask::project_root; use crate::results::emit_compare; use crate::util::decode_maybe_utf16_string; use crate::TestResults; // this is the filename of the results coming from `main` branch const BASE_RESULT_FILE: &...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/coverage/src/jsx/jsx_babel.rs
xtask/coverage/src/jsx/jsx_babel.rs
use crate::runner::create_bogus_node_in_tree_diagnostic; use crate::{ check_file_encoding, runner::{TestCase, TestCaseFiles, TestRunOutcome, TestSuite}, }; use rome_js_parser::{parse, JsParserOptions}; use rome_js_syntax::{JsFileSource, ModuleKind}; use rome_rowan::SyntaxKind; use std::path::Path; const OK_PAT...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/coverage/src/jsx/mod.rs
xtask/coverage/src/jsx/mod.rs
pub mod jsx_babel;
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/coverage/src/js/mod.rs
xtask/coverage/src/js/mod.rs
pub mod test262;
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/coverage/src/js/test262.rs
xtask/coverage/src/js/test262.rs
use crate::runner::{ create_bogus_node_in_tree_diagnostic, TestCase, TestCaseFiles, TestRunOutcome, TestSuite, }; use regex::Regex; use rome_js_parser::{parse, JsParserOptions}; use rome_js_syntax::JsFileSource; use rome_rowan::syntax::SyntaxKind; use rome_rowan::AstNode; use serde::Deserialize; use std::io; use st...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/coverage/src/symbols/utils.rs
xtask/coverage/src/symbols/utils.rs
pub fn parse_str<'a>(input: &'a str, s: &'a str) -> Option<(&'a str, &'a str)> { input .strip_prefix(s) .map(|stripped| (stripped, &input[0..s.len()])) } pub fn parse_until_chr(input: &'_ str, f: impl Fn(char) -> bool) -> Option<(&'_ str, &'_ str)> { let mut qty = 0; for chr in input.chars...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/coverage/src/symbols/mod.rs
xtask/coverage/src/symbols/mod.rs
pub mod msts; mod utils;
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/coverage/src/symbols/msts.rs
xtask/coverage/src/symbols/msts.rs
use rome_js_semantic::SemanticEvent; use rome_js_syntax::JsFileSource; use super::utils::{parse_separated_list, parse_str, parse_until_chr, parse_whitespace0}; use crate::check_file_encoding; use crate::runner::{TestCase, TestCaseFiles, TestRunOutcome, TestSuite}; use rome_js_parser::JsParserOptions; use std::fmt::Wri...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/coverage/src/ts/ts_microsoft.rs
xtask/coverage/src/ts/ts_microsoft.rs
use crate::check_file_encoding; use crate::runner::{ create_bogus_node_in_tree_diagnostic, TestCase, TestCaseFiles, TestRunOutcome, TestSuite, }; use regex::Regex; use rome_js_parser::JsParserOptions; use rome_js_syntax::{JsFileSource, ModuleKind}; use rome_rowan::{AstNode, SyntaxKind}; use std::convert::TryFrom; u...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/coverage/src/ts/ts_babel.rs
xtask/coverage/src/ts/ts_babel.rs
use crate::runner::create_bogus_node_in_tree_diagnostic; use crate::{ check_file_encoding, runner::{TestCase, TestCaseFiles, TestRunOutcome, TestSuite}, }; use rome_js_parser::JsParserOptions; use rome_js_syntax::{JsFileSource, LanguageVariant}; use rome_rowan::SyntaxKind; use std::path::Path; const CASES_PATH...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/coverage/src/ts/mod.rs
xtask/coverage/src/ts/mod.rs
pub mod ts_babel; pub mod ts_microsoft;
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/src/lib.rs
xtask/src/lib.rs
//! Codegen tools mostly used to generate ast and syntax definitions. Adapted from rust analyzer's codegen pub mod glue; use std::{ env, fmt::Display, path::{Path, PathBuf}, }; pub use crate::glue::{pushd, pushenv}; pub use anyhow::{anyhow, bail, ensure, Context as _, Error, Result}; #[derive(Debug, Pa...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/xtask/src/glue.rs
xtask/src/glue.rs
//! A shell but bad, some cross platform glue code use std::{ cell::RefCell, env, ffi::OsString, io::Write, path::{Path, PathBuf}, process::{Command, Stdio}, }; use anyhow::{bail, Context, Result}; pub mod fs2 { use std::{fs, path::Path}; use anyhow::{Context, Result}; pub fn re...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/build.rs
build.rs
use std::env; use std::fs; use std::path::Path; use std::time::{SystemTime, UNIX_EPOCH}; fn main() { // Embed build timestamp as seconds since Unix epoch let timestamp = SystemTime::now() .duration_since(UNIX_EPOCH) .unwrap() .as_secs(); // Write timestamp to a file in OUT_DIR so c...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/setup.rs
src/setup.rs
use std::collections::BTreeMap; use anyhow::Result; use crate::{ cli::{SetupOpts, TaskRunOpts}, tasks::{self, load_project_config}, }; pub fn run(opts: SetupOpts) -> Result<()> { let (config_path, cfg) = load_project_config(opts.config)?; if cfg.aliases.is_empty() { if tasks::find_task(&cfg,...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/db.rs
src/db.rs
use std::path::PathBuf; use anyhow::{Context, Result}; use rusqlite::Connection; /// Path to the shared SQLite database. pub fn db_path() -> PathBuf { std::env::var_os("HOME") .map(PathBuf::from) .unwrap_or_else(|| PathBuf::from(".")) .join(".config/flow/flow.db") } /// Open the SQLite da...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/config.rs
src/config.rs
use std::{ collections::HashMap, fs, path::{Path, PathBuf}, }; use anyhow::{Context, Result}; use serde::{Deserialize, Deserializer, Serialize}; use shellexpand::tilde; use crate::fixup; /// Top-level configuration for flowd, currently focused on managed servers. #[derive(Debug, Clone, Deserialize)] pub ...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
true
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/notify.rs
src/notify.rs
//! Notify command - sends proposals and alerts to Lin app. use crate::cli::NotifyCommand; use anyhow::{Context, Result}; use serde::{Deserialize, Serialize}; use std::fs; use std::path::PathBuf; use std::time::{SystemTime, UNIX_EPOCH}; use uuid::Uuid; /// Proposal format matching Lin's ProposalService.swift #[derive...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/agents.rs
src/agents.rs
//! Gen agents integration. //! //! Invokes gen AI agents from the flow CLI. //! Gen is opencode with GEN_MODE=1, providing flow integration. use std::collections::HashSet; use std::fs; use std::io::Write; use std::path::{Path, PathBuf}; use std::process::{Command, Stdio}; use anyhow::{Context, Result, bail}; use ign...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/publish.rs
src/publish.rs
//! Publish projects to GitHub. use std::io::{self, Write}; use std::process::Command; use anyhow::{Context, Result, bail}; use crate::cli::PublishOpts; /// Run the publish command. pub fn run(opts: PublishOpts) -> Result<()> { // Check if gh CLI is available if Command::new("gh").arg("--version").output()....
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/tasks.rs
src/tasks.rs
use std::{ collections::hash_map::DefaultHasher, fs::{self, File, OpenOptions}, hash::{Hash, Hasher}, io::{IsTerminal, Read, Write}, net::IpAddr, path::{Path, PathBuf}, process::{Command, ExitStatus, Stdio}, sync::{ Arc, Mutex, atomic::{AtomicBool, Ordering}, }, t...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
true
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/log_store.rs
src/log_store.rs
use anyhow::{Context, Result}; use rusqlite::{Connection, params}; use serde::{Deserialize, Serialize}; use crate::db; /// A log entry for ingestion and storage. #[derive(Debug, Clone, Serialize, Deserialize)] pub struct LogEntry { pub project: String, pub content: String, pub timestamp: i64, // unix ms ...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/lib.rs
src/lib.rs
pub mod agents; pub mod ai; pub mod cli; pub mod commit; pub mod commits; pub mod config; pub mod daemon; pub mod db; pub mod deps; pub mod deploy; pub mod deploy_setup; pub mod discover; pub mod docs; pub mod doctor; pub mod env; pub mod env_setup; pub mod fixup; pub mod flox; pub mod history; pub mod hub; pub mod ini...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/discover.rs
src/discover.rs
//! Fast discovery of nested flow.toml files in a project. use std::path::{Path, PathBuf}; use anyhow::Result; use ignore::WalkBuilder; use crate::config::{self, Config, TaskConfig}; /// A task with its source location information. #[derive(Debug, Clone)] pub struct DiscoveredTask { /// The task configuration. ...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/palette.rs
src/palette.rs
use std::{ io::Write, path::PathBuf, process::{Command, Stdio}, }; use anyhow::{Context, Result, bail}; use crate::{ cli::TasksOpts, config::{self, TaskConfig}, discover::{self, DiscoveredTask}, }; pub fn run(opts: TasksOpts) -> Result<()> { let entries = build_entries(Some(opts))?; p...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/deploy_setup.rs
src/deploy_setup.rs
use std::fs; use std::path::{Path, PathBuf}; use anyhow::{Context, Result}; use crossterm::{ event::{self, Event as CEvent, KeyCode, KeyEvent}, execute, terminal::{EnterAlternateScreen, LeaveAlternateScreen, disable_raw_mode, enable_raw_mode}, }; use ignore::WalkBuilder; use ratatui::{ Terminal, ba...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
true
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/sync.rs
src/sync.rs
//! Auto-setup command for autonomous agent workflows. use anyhow::{Context, Result, bail}; use std::fs; use std::path::PathBuf; use std::process::Command; use crate::config; /// Generate agents.md content with project-specific settings. fn generate_agents_md(project_name: &str, _primary_task: &str) -> String { ...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/commits.rs
src/commits.rs
//! Browse and analyze git commits with AI session metadata. //! //! Shows commits with attached AI sessions, reviews, and other metadata. use std::io::Write; use std::process::{Command, Stdio}; use anyhow::{Context, Result, bail}; use crate::cli::CommitsOpts; /// Commit with associated metadata #[derive(Debug, Clo...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/task_match.rs
src/task_match.rs
//! Match user query to a task using LM Studio. use std::io::{self, Write}; use std::path::PathBuf; use anyhow::{Context, Result, bail}; use crate::{ cli::TaskRunOpts, config, discover::{self, DiscoveredTask}, lmstudio, tasks, }; use clap::CommandFactory; use crate::cli::Cli; /// Options for the mat...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/servers.rs
src/servers.rs
use std::{ collections::VecDeque, sync::Arc, time::{SystemTime, UNIX_EPOCH}, }; use anyhow::{Context, Result}; use serde::{Deserialize, Serialize}; use tokio::{ io::{AsyncBufReadExt, BufReader}, process::Command, sync::{Mutex, RwLock, broadcast, mpsc}, }; use crate::config::ServerConfig; /// ...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/cli.rs
src/cli.rs
use clap::{Args, Parser, Subcommand, ValueEnum}; use std::{net::IpAddr, path::PathBuf}; use crate::commit::ReviewModelArg; /// Command line interface for the flow daemon / CLI hybrid. #[derive(Parser, Debug)] #[command( name = "flow", version = version_with_build_time(), about = "Your second OS", subc...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
true
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/trace.rs
src/trace.rs
use std::{ collections::HashMap, fs::{self, File}, io::{BufRead, BufReader, Seek, SeekFrom}, path::{Path, PathBuf}, sync::mpsc, time::Duration, }; use anyhow::{Context, Result, bail}; use base64::{Engine, engine::general_purpose}; use notify::{RecursiveMode, Watcher}; use crate::cli::TraceOpts...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/env.rs
src/env.rs
//! Environment variable management via 1focus. //! //! Fetches, sets, and manages environment variables for projects //! using the 1focus API. use std::collections::{HashMap, HashSet}; use std::fs; use std::io::{self, IsTerminal, Write}; use std::path::{Path, PathBuf}; use std::process::Command; use anyhow::{Context...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
true
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/repos.rs
src/repos.rs
//! Repository management commands. //! //! Supports cloning repos into a structured local directory. use std::fs; use std::path::{Path, PathBuf}; use std::process::{Command, Stdio}; use anyhow::{Context, Result, bail}; use serde::Deserialize; use crate::cli::{ReposAction, ReposCloneOpts, ReposCommand}; use crate::{...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/todo.rs
src/todo.rs
use std::fs; use std::path::{Path, PathBuf}; use anyhow::{Context, Result, bail}; use chrono::Utc; use serde::{Deserialize, Serialize}; use uuid::Uuid; use crate::ai; use crate::cli::{TodoAction, TodoCommand, TodoStatusArg}; #[derive(Debug, Serialize, Deserialize, Clone)] struct TodoItem { id: String, title:...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/log_server.rs
src/log_server.rs
use std::fs; use std::net::SocketAddr; use std::path::PathBuf; use std::process::Command; use std::sync::Arc; use std::sync::atomic::{AtomicI64, Ordering}; use std::time::Duration; use anyhow::{Context, Result, bail}; use axum::{ Router, extract::Query, http::{Method, StatusCode}, response::{ I...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/storage.rs
src/storage.rs
use std::io::Read; use std::path::PathBuf; use std::process::{Command, Output, Stdio}; use std::thread; use std::time::{Duration, Instant}; use anyhow::{Context, Result, bail}; use serde::Deserialize; use crate::cli::{JazzStorageAction, JazzStorageKind, StorageAction, StorageCommand}; use crate::{config, env}; const...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/watchers.rs
src/watchers.rs
use std::{ path::{Path, PathBuf}, process::Command, sync::mpsc::{self, Receiver, Sender}, thread, time::{Duration, Instant}, }; use anyhow::{Context, Result}; use notify::RecursiveMode; use notify_debouncer_mini::{DebouncedEvent, new_debouncer}; use crate::config::{WatcherConfig, WatcherDriver, ex...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/deploy.rs
src/deploy.rs
//! Deploy projects to hosts and cloud platforms. //! //! Supports: //! - Linux hosts via SSH (with systemd + nginx) //! - Cloudflare Workers //! - Railway use std::collections::{HashMap, HashSet}; use std::fs; use std::io::Write; use std::path::{Path, PathBuf}; use std::process::{Command, Stdio}; use anyhow::{Contex...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
true
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/commit.rs
src/commit.rs
//! AI-powered git commit command using OpenAI. use std::collections::hash_map::DefaultHasher; use std::fs; use std::hash::{Hash, Hasher}; use std::io::{self, Write}; use std::net::IpAddr; use std::env; use std::path::Path; use std::process::{Command, Stdio}; use std::time::Duration; use anyhow::{Context, Result, bai...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
true
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/parallel.rs
src/parallel.rs
//! Parallel task runner with pretty status display. use std::io::{self, Write}; use std::process::Stdio; use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; use std::sync::Arc; use std::time::{Duration, Instant}; use anyhow::{Result, bail}; use crossterm::terminal; use tokio::io::{AsyncBufReadExt, BufReader}...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/deps.rs
src/deps.rs
use std::collections::{BTreeMap, BTreeSet}; use std::path::{Path, PathBuf}; use std::process::Command; use anyhow::{Context, Result, bail}; use ignore::WalkBuilder; use serde::Deserialize; use toml::Value; use toml::map::Map; use crate::cli::{DepsAction, DepsCommand, DepsManager, ReposCloneOpts}; use crate::{config, ...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/projects.rs
src/projects.rs
use std::fs; use std::path::{Path, PathBuf}; use anyhow::{Context, Result}; use rusqlite::{Connection, params}; use serde::{Deserialize, Serialize}; use crate::cli::ActiveOpts; use crate::{db, running}; /// Single project record. #[derive(Debug, Clone, Serialize, Deserialize)] pub struct ProjectEntry { pub name:...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/history.rs
src/history.rs
use std::{ fs::{self, OpenOptions}, io::Write, path::{Path, PathBuf}, time::{SystemTime, UNIX_EPOCH}, }; use anyhow::{Context, Result}; use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize)] pub struct InvocationRecord { pub timestamp_ms: u128, pub duration_ms: u128, pub pr...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/terminal.rs
src/terminal.rs
use std::{ env, fs, path::{Path, PathBuf}, process::Command, }; use anyhow::{Context, Result, bail}; use which::which; use crate::config::OptionsConfig; #[cfg(unix)] use std::os::unix::fs::PermissionsExt; const LOG_DIR_SUFFIX: &str = ".flow/tmux-logs"; const META_DIR_SUFFIX: &str = ".flow/tty-meta"; con...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/flox.rs
src/flox.rs
use std::{ collections::BTreeMap, fs, path::{Path, PathBuf}, process::{Command, Stdio}, }; use anyhow::{Context, Result, bail}; use serde::Serialize; use crate::config::FloxInstallSpec; const MANIFEST_VERSION: u8 = 1; const ENV_VERSION: u8 = 1; /// Paths needed to invoke `flox activate` for a genera...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/upstream.rs
src/upstream.rs
//! Upstream fork management. //! //! Provides automated workflows for managing forks with upstream repositories. //! - `f upstream setup` - Configure upstream remote and local tracking branch //! - `f upstream pull` - Pull changes from upstream into local branch //! - `f upstream sync` - Full sync: pull upstream, merg...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/hub.rs
src/hub.rs
use std::{ fs, net::IpAddr, path::{Path, PathBuf}, process::Command, time::Duration, }; use anyhow::{Context, Result, bail}; use reqwest::blocking::Client; use crate::{ cli::{HubAction, HubCommand, HubOpts}, config, doctor, lin_runtime::{self, LinRuntime}, }; /// Flow acts as a thin l...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/secrets.rs
src/secrets.rs
use std::{ collections::HashMap, env, fs, path::{Path, PathBuf}, }; use anyhow::{Context, Result, bail}; use reqwest::blocking::Client; use crate::{ cli::{SecretsAction, SecretsCommand, SecretsFormat, SecretsListOpts, SecretsPullOpts}, config::{self, Config, StorageConfig, StorageEnvConfig}, }; p...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/lmstudio.rs
src/lmstudio.rs
//! Simple LM Studio API client for task matching. use anyhow::{Context, Result}; use reqwest::blocking::Client; use serde::{Deserialize, Serialize}; const DEFAULT_PORT: u16 = 1234; const DEFAULT_MODEL: &str = "qwen3-8b"; #[derive(Debug, Serialize)] struct ChatRequest { model: String, messages: Vec<ChatMessa...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/init.rs
src/init.rs
use std::{fs, path::PathBuf}; use anyhow::{Context, Result, bail}; use crate::cli::InitOpts; const TEMPLATE: &str = r#"# flow [[tasks]] name = "setup" command = "" description = "Project setup (fill me)" [[tasks]] name = "dev" command = "" description = "Start dev server (fill me)" "#; pub fn run(opts: InitOpts) ...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/fixup.rs
src/fixup.rs
//! Fix common TOML syntax errors in flow.toml files. //! //! Common issues that AI tools create: //! - `\$` escape sequences (invalid in TOML basic strings) //! - `\n` literal in basic strings instead of actual newlines //! - Unclosed multi-line strings use std::fs; use anyhow::{Context, Result}; use regex::Regex; ...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/env_setup.rs
src/env_setup.rs
use std::fs; use std::path::{Path, PathBuf}; use anyhow::{Context, Result}; use crossterm::{ event::{self, Event as CEvent, KeyCode, KeyEvent}, execute, terminal::{EnterAlternateScreen, LeaveAlternateScreen, disable_raw_mode, enable_raw_mode}, }; use ignore::WalkBuilder; use ratatui::{ Terminal, ba...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/doctor.rs
src/doctor.rs
use std::{ env, fs::{self, OpenOptions}, io::Write, path::{Path, PathBuf}, }; use anyhow::{Context, Result, bail}; use crate::{cli::DoctorOpts, lin_runtime}; /// Ensure the lin watcher daemon is available, prompting to install a bundled /// copy if it is missing from PATH. Returns the resolved binary...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/server.rs
src/server.rs
use std::{ collections::HashMap, convert::Infallible, net::SocketAddr, path::Path, pin::Pin, sync::{Arc, mpsc as std_mpsc}, time::Duration, }; use anyhow::{Context, Result}; use axum::{ Router, extract::{Path as AxumPath, Query, State}, http::StatusCode, response::{ ...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false
nikivdev/flow
https://github.com/nikivdev/flow/blob/85db313c274056cf0dbb36cc0aee35e037a66cfd/src/processes.rs
src/processes.rs
use std::collections::hash_map::DefaultHasher; use std::fs::{self, File}; use std::hash::{Hash, Hasher}; use std::io::{BufRead, BufReader, Read, Seek, SeekFrom}; use std::path::{Path, PathBuf}; use std::process::Command; use std::thread; use std::time::Duration; use anyhow::{Context, Result, bail}; use crate::cli::{K...
rust
MIT
85db313c274056cf0dbb36cc0aee35e037a66cfd
2026-01-04T15:40:10.857433Z
false