README

mizchi/bitflow/workflow does not have a README file

#
CommandAdapter

pub struct CommandAdapter {
run : (String, String?, Map[String, String]) -> CommandResult
}

#
CommandAdapter::new

fn CommandAdapter::new(run : (String, String?, Map[String, String]) -> CommandResult) -> CommandAdapter

#
CommandAdapter::none

#
CommandResult

pub struct CommandResult {
code : Int
stdout : String
stderr : String
}

#
CommandResult::ok

fn CommandResult::ok(self : CommandResult) -> Bool

#
ExternalInputParseResult

pub struct ExternalInputParseResult {
values : Map[String, String]
errors : Array[String]
}

#
FlowCacheStoreResult

pub struct FlowCacheStoreResult {
entries : Map[String, String]
issues : Array[String]
}

#
FlowExecutionResult

pub struct FlowExecutionResult {
ok : Bool
state : String
order : Array[String]
steps : Array[FlowStep]
issues : Array[String]
}

#
FlowIr

pub struct FlowIr {
name : String
max_parallel : Int
nodes : Array[FlowNode]
tasks : Array[FlowTask]
entry_targets : Array[String]
}

#
FlowNode

pub struct FlowNode {
id : String
required : Bool
depends_on : Array[String]
}

Core workflow graph node for bitflow execution planning.

#
FlowStep

pub struct FlowStep {
id : String
status : String
required : Bool
message : String
}

#
FlowTask

pub struct FlowTask {
id : String
node : String
cmd : String
needs : Array[String]
required : Bool
srcs : Array[String]
outs : Array[String]
env : Map[String, String]
cwd : String
trigger_mode : String
}

#
FlowTaskCacheDecision

pub struct FlowTaskCacheDecision {
id : String
cache_key : String
fingerprint : String
hit : Bool
}

#
FlowTaskCachePlanResult

pub struct FlowTaskCachePlanResult {
decisions : Array[FlowTaskCacheDecision]
issues : Array[String]
}

#
FlowTaskCacheWritebackResult

pub struct FlowTaskCacheWritebackResult {
entries : Map[String, String]
updated : Array[String]
issues : Array[String]
}

#
FsAdapter

pub struct FsAdapter {
read_text : (String) -> String?
write_text : (String, String) -> Bool
exists : (String) -> Bool
list_paths : () -> Array[String]
}

#
FsAdapter::memory

fn FsAdapter::memory() -> FsAdapter

#
FsAdapter::memory_with

fn FsAdapter::memory_with(initial : Map[String, String]) -> FsAdapter

#
FsAdapter::new

fn FsAdapter::new(read_text : (String) -> String?, write_text : (String, String) -> Bool, exists : (String) -> Bool, list_paths : () -> Array[String]) -> FsAdapter

#
FsAdapter::none

fn FsAdapter::none() -> FsAdapter

#
StarlarkParseResult

pub struct StarlarkParseResult {
ir : FlowIr
errors : Array[String]
}

#
WorkflowAdapter

pub struct WorkflowAdapter {
fs : FsAdapter
cmd : CommandAdapter
}

#
WorkflowAdapter::new

#
WorkflowAdapter::none

#
command_failure

fn command_failure(code? : Int, stdout? : String, stderr? : String) -> CommandResult

#
command_success

fn command_success(stdout? : String, stderr? : String) -> CommandResult

#
entry_targets_for_changed_paths

fn entry_targets_for_changed_paths(ir : FlowIr, changed_paths : Array[String]) -> Array[String]

#
execute

fn execute(text : String, run_task : (FlowTask) -> (Bool, String)) -> FlowExecutionResult

#
execute_from_fs

fn execute_from_fs(path : String, adapter : WorkflowAdapter) -> FlowExecutionResult

#
execute_from_fs_with_cli_env

fn execute_from_fs_with_cli_env(path : String, adapter : WorkflowAdapter, cli_args : Array[String], env : Map[String, String], cli_flag? : String, env_prefix? : String) -> FlowExecutionResult

#
execute_from_fs_with_inputs

fn execute_from_fs_with_inputs(path : String, adapter : WorkflowAdapter, external_inputs : Map[String, String]) -> FlowExecutionResult

#
execute_ir

fn execute_ir(ir : FlowIr, run_task : (FlowTask) -> (Bool, String)) -> FlowExecutionResult

#
execute_ir_for_changed_paths

fn execute_ir_for_changed_paths(ir : FlowIr, changed_paths : Array[String], run_task : (FlowTask) -> (Bool, String)) -> FlowExecutionResult

#
execute_ir_with_adapter

fn execute_ir_with_adapter(ir : FlowIr, adapter : WorkflowAdapter) -> FlowExecutionResult

#
execute_with_cli_env

fn execute_with_cli_env(text : String, cli_args : Array[String], env : Map[String, String], run_task : (FlowTask) -> (Bool, String), cli_flag? : String, env_prefix? : String) -> FlowExecutionResult

#
execute_with_inputs

fn execute_with_inputs(text : String, external_inputs : Map[String, String], run_task : (FlowTask) -> (Bool, String)) -> FlowExecutionResult

#
expand_affected_nodes

fn expand_affected_nodes(nodes : Array[FlowNode], initial : Map[String, Bool]) -> Map[String, Bool]

#
flow_cache_key

fn flow_cache_key(task : String, node_id : String) -> String

#
flow_fingerprint

fn flow_fingerprint(task : String, task_cmd : String, node : FlowNode, signatures : Map[String, String]) -> String

#
flow_task_fingerprint

fn flow_task_fingerprint(task : FlowTask, node : FlowNode, signatures : Map[String, String]) -> String

#
graph_issues

fn graph_issues(nodes : Array[FlowNode]) -> Array[String]

#
has_dependency_cycle

fn has_dependency_cycle(nodes : Array[FlowNode]) -> Bool

#
ir_issues

fn ir_issues(ir : FlowIr) -> Array[String]

#
new_ir

fn new_ir(name : String, nodes : Array[FlowNode], tasks : Array[FlowTask], entry_targets? : Array[String], max_parallel? : Int) -> FlowIr

#
new_node

fn new_node(id : String, depends_on : Array[String], required? : Bool) -> FlowNode

#
new_task

fn new_task(id : String, node : String, cmd : String, needs : Array[String], required? : Bool, srcs? : Array[String], outs? : Array[String], env? : Map[String, String], cwd? : String, trigger_mode? : String) -> FlowTask

#
new_task_cache_plan_result

fn new_task_cache_plan_result(decisions : Array[FlowTaskCacheDecision], issues : Array[String]) -> FlowTaskCachePlanResult

#
new_task_cache_writeback_result

fn new_task_cache_writeback_result(entries : Map[String, String], updated : Array[String], issues : Array[String]) -> FlowTaskCacheWritebackResult

#
parse

fn parse(text : String) -> StarlarkParseResult

#
parse_external_inputs

fn parse_external_inputs(cli_args : Array[String], env : Map[String, String], cli_flag? : String, env_prefix? : String) -> ExternalInputParseResult

#
parse_from_fs

fn parse_from_fs(path : String, adapter : WorkflowAdapter) -> StarlarkParseResult

#
parse_from_fs_with_cli_env

fn parse_from_fs_with_cli_env(path : String, adapter : WorkflowAdapter, cli_args : Array[String], env : Map[String, String], cli_flag? : String, env_prefix? : String) -> StarlarkParseResult

#
parse_from_fs_with_inputs

fn parse_from_fs_with_inputs(path : String, adapter : WorkflowAdapter, external_inputs : Map[String, String]) -> StarlarkParseResult

#
parse_with_cli_env

fn parse_with_cli_env(text : String, cli_args : Array[String], env : Map[String, String], cli_flag? : String, env_prefix? : String) -> StarlarkParseResult

#
parse_with_inputs

fn parse_with_inputs(text : String, external_inputs : Map[String, String]) -> StarlarkParseResult

#
plan_task_cache

fn plan_task_cache(ir : FlowIr, signatures : Map[String, String], cache_entries : Map[String, String]) -> FlowTaskCachePlanResult

#
plan_task_cache_from_fs

fn plan_task_cache_from_fs(path : String, adapter : WorkflowAdapter, signatures : Map[String, String], cache_entries : Map[String, String]) -> FlowTaskCachePlanResult

#
plan_task_cache_from_fs_with_cli_env

fn plan_task_cache_from_fs_with_cli_env(path : String, adapter : WorkflowAdapter, signatures : Map[String, String], cache_entries : Map[String, String], cli_args : Array[String], env : Map[String, String], cli_flag? : String, env_prefix? : String) -> FlowTaskCachePlanResult

#
plan_task_cache_from_fs_with_inputs

fn plan_task_cache_from_fs_with_inputs(path : String, adapter : WorkflowAdapter, signatures : Map[String, String], cache_entries : Map[String, String], external_inputs : Map[String, String]) -> FlowTaskCachePlanResult

#
read_flow_cache_store

fn read_flow_cache_store(path : String, adapter : WorkflowAdapter) -> FlowCacheStoreResult

#
render_task_cache_plan_json

fn render_task_cache_plan_json(result : FlowTaskCachePlanResult) -> String

#
render_task_cache_writeback_json

fn render_task_cache_writeback_json(result : FlowTaskCacheWritebackResult) -> String

#
topological_nodes

fn topological_nodes(nodes : Array[FlowNode]) -> Array[FlowNode]

#
write_execution_report

fn write_execution_report(path : String, result : FlowExecutionResult, adapter : WorkflowAdapter) -> Bool

#
write_flow_cache_store

fn write_flow_cache_store(path : String, entries : Map[String, String], adapter : WorkflowAdapter) -> Bool

#
write_task_cache_plan_json

fn write_task_cache_plan_json(path : String, result : FlowTaskCachePlanResult, adapter : WorkflowAdapter) -> Bool

#
writeback_task_cache

fn writeback_task_cache(ir : FlowIr, signatures : Map[String, String], cache_entries : Map[String, String], successful_task_ids : Array[String]) -> FlowTaskCacheWritebackResult

#
writeback_task_cache_from_fs

fn writeback_task_cache_from_fs(path : String, adapter : WorkflowAdapter, signatures : Map[String, String], cache_entries : Map[String, String], successful_task_ids : Array[String]) -> FlowTaskCacheWritebackResult

#
writeback_task_cache_from_fs_with_cli_env

fn writeback_task_cache_from_fs_with_cli_env(path : String, adapter : WorkflowAdapter, signatures : Map[String, String], cache_entries : Map[String, String], successful_task_ids : Array[String], cli_args : Array[String], env : Map[String, String], cli_flag? : String, env_prefix? : String) -> FlowTaskCacheWritebackResult

#
writeback_task_cache_from_fs_with_inputs

fn writeback_task_cache_from_fs_with_inputs(path : String, adapter : WorkflowAdapter, signatures : Map[String, String], cache_entries : Map[String, String], successful_task_ids : Array[String], external_inputs : Map[String, String]) -> FlowTaskCacheWritebackResult

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io