MCPcopy Create free account

hub / github.com/cosmix/loom / functions

Functions3,851 in github.com/cosmix/loom

↓ 349 callersMethodwith_context
Create a new memory entry with context
loom/src/fs/memory/types.rs:92
↓ 336 callersMethodis_empty
Check if the index is empty
loom/src/skills/index.rs:154
↓ 313 callersMethodexists
Check if the knowledge directory exists
loom/src/fs/knowledge/dir.rs:29
↓ 201 callersMethodlen
(&self)
loom/src/commands/status/ui/tui/state.rs:220
↓ 175 callersFunctionsave_stage
Save a stage to disk Serializes the stage to YAML frontmatter + markdown body and writes to `.work/stages/`. Uses depth-prefixed filenames (e.g., `01
loom/src/verify/transitions/persistence.rs:55
↓ 169 callersFunctionload_stage
Load a stage from disk Finds and reads the stage file from `.work/stages/`, handling both prefixed (e.g., `01-stage-id.md`) and non-prefixed (`stage-
loom/src/verify/transitions/persistence.rs:28
↓ 142 callersMethodis_empty
(&self)
loom/src/commands/status/ui/tui/state.rs:216
↓ 74 callersFunctiontransition_stage
Transition a stage to a new status with validation Loads the stage from `.work/stages/{stage_id}.md`, validates and updates its status using validate
loom/src/verify/transitions/state.rs:85
↓ 60 callersFunctionmake_stage
(id: &str, name: &str)
loom/src/plan/schema/tests/mod.rs:19
↓ 57 callersMethodadd_dependency
(&mut self, stage_id: String)
loom/src/models/stage/methods.rs:106
↓ 51 callersMethodadd_acceptance_criterion
(&mut self, criterion: AcceptanceCriterion)
loom/src/models/stage/methods.rs:113
↓ 47 callersMethodroot
(&self)
loom/src/fs/work_dir.rs:283
↓ 46 callersMethodappend
Append content to a knowledge file (knowledge files are append-only)
loom/src/fs/knowledge/dir.rs:117
↓ 45 callersFunctiontrigger_dependents
Trigger dependent stages when a stage is completed Finds all stages that depend on `completed_stage_id` and checks if all their dependencies are now
loom/src/verify/transitions/state.rs:122
↓ 43 callersFunctionbranch_name_for_stage
Branch naming conventions for loom stages Generate loom branch name from stage ID
loom/src/git/branch/naming.rs:4
↓ 40 callersFunctioncreate_test_stage
(id: &str, name: &str, status: StageStatus)
loom/src/verify/transitions/tests/mod.rs:5
↓ 39 callersFunctionsetup_test_workspace
()
loom/src/completions/dynamic/tests.rs:12
↓ 38 callersFunctionclear_status_line
Clear the current line (status line) before printing a message. This prevents output from being mangled when the status line is being updated.
loom/src/orchestrator/core/mod.rs:25
↓ 38 callersFunctioncreate_test_stage
(status: StageStatus)
loom/src/models/stage/tests/mod.rs:3
↓ 38 callersFunctionrun_git
(args: &[&str], cwd: &Path)
loom/src/git/merge/in_progress.rs:204
↓ 38 callersMethodsave_stage
Save stage state to .work/stages/
loom/src/orchestrator/core/persistence.rs:86
↓ 35 callersFunctioncreate_test_session
Public helpers for submodules
loom/src/orchestrator/signals/tests.rs:24
↓ 35 callersFunctionrun_git
(args: &[&str], cwd: &Path)
loom/src/commands/stage/tests/complete_router.rs:12
↓ 34 callersFunctioncreate_test_stage
()
loom/src/orchestrator/signals/tests.rs:31
↓ 34 callersFunctionvalidate
Validate the loom metadata
loom/src/plan/schema/validation.rs:171
↓ 31 callersMethodassign_to_stage
(&mut self, stage_id: String)
loom/src/models/session/methods.rs:102
↓ 31 callersFunctionhome_dir
()
loom/src/completions/install.rs:17
↓ 30 callersFunctionbuild
Build the SYSTEM + USER prompt for the supplied dispute. `plan_path` is the live plan markdown (used to surface acceptance criteria as the agent sees
loom/src/orchestrator/adjudication/prompt.rs:49
↓ 30 callersMethodremove
Remove heartbeat for a stage (when session ends)
loom/src/orchestrator/monitor/heartbeat.rs:222
↓ 30 callersFunctionresolve_target_branch
Resolve target branch from config value or repo default Uses the provided config branch if available, otherwise falls back to the repository's defaul
loom/src/git/branch/operations.rs:88
↓ 30 callersFunctionsetup_hook
Install hook script and its dependencies to temp directory and return path
loom/tests/integration/hooks_commit_filter.rs:15
↓ 29 callersFunctionupdate_stage
Atomically read-modify-write a stage file under a single exclusive lock. This is the lost-update-safe alternative to the load → mutate → `save_stage`
loom/src/verify/transitions/persistence.rs:116
↓ 27 callersMethodmark_status
Set a stage to an arbitrary status without validation. Use this for simple status updates where no side effects (like updating dependent stages) are
loom/src/plan/graph/mod.rs:187
↓ 27 callersMethodtry_transition
Attempt to transition the stage to a new status with validation. This is the primary method for changing stage status. It validates that the transiti
loom/src/models/stage/methods.rs:155
↓ 26 callersFunctioncreate_test_worktree
()
loom/src/orchestrator/signals/tests.rs:46
↓ 26 callersFunctionrun_git
(args: &[&str], cwd: &Path)
loom/src/commands/stage/merge_verify.rs:83
↓ 26 callersFunctionrun_git_checked
Run a git command, check for success, and return stdout as a trimmed String. On failure, bails with the full command + directory + exit code + stdout
loom/src/git/runner.rs:40
↓ 25 callersFunctionexecute
Execute the map command
loom/src/commands/map.rs:11
↓ 25 callersFunctionrun_git
(args: &[&str], cwd: &Path)
loom/src/orchestrator/merge_attribution.rs:318
↓ 25 callersFunctionvalidate
Validate the integrity of the work directory
loom/src/commands/status.rs:133
↓ 24 callersFunctionapply_amendment
Apply a runtime amendment to a single stage. Steps (all under flock on `.work/plan_versions/.lock`): 1. Resolve `plan_path` (parameter is preferred;
loom/src/plan/amendment.rs:409
↓ 24 callersFunctioncreate_valid_stage
Helper to create a minimal valid stage definition
loom/tests/e2e/criteria_validation/mod.rs:23
↓ 24 callersFunctionget_branch_head
Get the HEAD commit SHA of a branch Uses `git rev-parse` to resolve the branch name to its HEAD commit SHA. # Arguments `branch` - The branch name t
loom/src/git/branch/ancestry.rs:76
↓ 24 callersFunctionresolve_base_branch
Resolve the base branch for a stage based on its dependencies. # Logic With progressive merge, stages are only scheduled when all dependencies are `
loom/src/git/worktree/base.rs:103
↓ 24 callersFunctionwrite_message
Write a length-prefixed JSON message to a stream. Format: 4-byte big-endian length prefix + JSON data # Arguments `stream` - The stream to write to
loom/src/daemon/protocol.rs:202
↓ 23 callersFunctiongenerate_signal
( session: &Session, stage: &Stage, worktree: &Worktree, dependencies_status: &[DependencyStat
loom/src/orchestrator/signals/generate.rs:29
↓ 22 callersFunctionfind_stage_file
Find a stage file by stage ID, regardless of its depth prefix. Searches for files matching the pattern `*-{stage_id}.md` or `{stage_id}.md` in the st
loom/src/fs/stage_files.rs:29
↓ 22 callersFunctiongit_ok
Run a setup `git` command and assert it succeeded, surfacing stderr on failure. Without this, a failed setup step is swallowed and only manifests late
loom/src/git/merge/mod.rs:427
↓ 22 callersFunctionlocked_write
Write file contents crash-atomically with an exclusive (write) lock. Acquires an exclusive lock on the parent directory, then writes to a sibling `<f
loom/src/fs/locking.rs:264
↓ 21 callersFunctioncreate_metadata
Helper to create minimal valid metadata with given stages
loom/tests/e2e/criteria_validation/mod.rs:55
↓ 21 callersFunctionload_config
Load and parse config.toml from a work directory # Arguments `work_dir` - Path to the .work directory (not the config file itself) # Returns `Ok(Som
loom/src/fs/work_dir.rs:60
↓ 21 callersFunctionload_stage
Load a stage from .work/stages/
loom/src/orchestrator/continuation/context.rs:90
↓ 21 callersFunctionsetup_work_dir
()
loom/src/commands/stage/tests/mod.rs:30
↓ 20 callersFunctioncomplete_stage
Test helper: Mark stage as completed in graph
loom/tests/integration/helpers.rs:125
↓ 20 callersMethodinitialize
(&self)
loom/src/fs/work_dir.rs:128
↓ 20 callersMethodload
(&self)
loom/src/fs/work_dir.rs:160
↓ 20 callersMethodload_stage
Load stage definition from .work/stages/
loom/src/orchestrator/core/persistence.rs:25
↓ 20 callersMethodparse
(content: &str)
loom/src/parser/markdown.rs:20
↓ 20 callersFunctionroute_complete_for_conflicts
( stage: &Stage, sessions: &[Session], all_stages: &[Stage], repo_root: &Path, work_dir: &
loom/src/commands/stage/complete.rs:126
↓ 20 callersFunctionsafe_open_dirfd
Open `work_dir` as a dirfd suitable as a base for the rest of this module. The dirfd has `O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC`; if `work_dir` itself
loom/src/fs/safe_fs.rs:59
↓ 18 callersFunctioncreate_test_stage
(id: &str, status: StageStatus)
loom/src/commands/stage/tests/mod.rs:21
↓ 18 callersFunctionextract_yaml_frontmatter
Extract YAML frontmatter from markdown content and deserialize it. Delegates to [`extract_frontmatter_raw`] for the indentation-aware extraction, the
loom/src/parser/frontmatter.rs:126
↓ 18 callersFunctiongenerate_settings_json
Generate Claude Code settings JSON from sandbox config
loom/src/sandbox/settings.rs:242
↓ 18 callersFunctionrun_acceptance
Run all acceptance criteria for a stage with default configuration This is a convenience wrapper around `run_acceptance_with_config` that uses the de
loom/src/verify/criteria/runner.rs:17
↓ 18 callersFunctionrun_verify
(plan_path: &std::path::Path, extra_args: &[&str])
loom/tests/integration/plan_verify.rs:179
↓ 18 callersFunctionsave_test_stage
(work_dir: &Path, stage: &Stage)
loom/src/commands/stage/tests/mod.rs:39
↓ 18 callersMethodupdate_context
(&mut self, tokens: u32)
loom/src/models/session/methods.rs:119
↓ 17 callersMethodapply_pending_verdicts
Apply verdict files that haven't been applied yet (no `applied.marker`). Idempotent under crash recovery: a `.applying` marker is written before mutat
loom/src/orchestrator/adjudication/mod.rs:223
↓ 17 callersMethoddetect_session_changes
Detect session status changes and context levels
loom/src/orchestrator/monitor/detection.rs:133
↓ 17 callersMethodtry_mark_queued
Mark the stage as queued with validation. # Returns `Ok(())` if the transition succeeded, `Err` if invalid
loom/src/models/stage/methods.rs:221
↓ 17 callersMethodvalid_transitions
Returns the list of valid statuses this status can transition to.
loom/src/models/stage/transitions.rs:120
↓ 16 callersFunctionappend_entry
Append an entry to a stage's memory journal
loom/src/fs/memory/storage.rs:56
↓ 16 callersFunctionrun_git
(args: &[&str], cwd: &Path)
loom/tests/integration/merge_conflict_recovery.rs:33
↓ 16 callersFunctionsetup_env
()
loom/src/plan/tests/amendment.rs:39
↓ 16 callersFunctionvalidate_id
Validates that an ID is safe for use in file paths. An ID is valid if: - It is not empty - It is no longer than MAX_ID_LENGTH characters - It contain
loom/src/validation.rs:51
↓ 16 callersFunctionverdict_file
(disputes_root: &std::path::Path, stage_id: &str, id: u32)
loom/src/models/dispute.rs:100
↓ 15 callersFunctioncompute_all_levels
Compute levels for all stages in a collection. Returns a HashMap mapping stage IDs to their computed levels.
loom/src/plan/graph/levels.rs:68
↓ 15 callersMethodexpand
Expand all variables in a criterion string. Variables use the format `${VARIABLE_NAME}`. Unknown variables are left unchanged. # Example ```ignore
loom/src/verify/context.rs:83
↓ 15 callersFunctioninit_test_repo
Test helper: Create a temporary git repository with initial commit
loom/tests/integration/helpers.rs:12
↓ 15 callersMethodmark_executing
Mark a stage as executing. Validates that the stage is currently in `Queued` status.
loom/src/plan/graph/mod.rs:139
↓ 15 callersMethodmark_merged
Mark a stage as merged to the merge point. This is called after progressive merge verifies and merges a completed stage. After marking as merged, dep
loom/src/plan/graph/mod.rs:318
↓ 15 callersMethodproject_root
Get the project root (parent of .work directory)
loom/src/fs/work_dir.rs:288
↓ 15 callersMethodtry_mark_running
Mark the session as running with validation. # Returns `Ok(())` if the transition succeeded, `Err` if invalid
loom/src/models/session/methods.rs:165
↓ 15 callersFunctionvalidate_bash_command
Validate a bash command for worktree isolation violations. # Arguments `command` - The bash command to validate `current_stage` - The current stage I
loom/src/hooks/validators/bash.rs:126
↓ 14 callersFunctioncreate_test_session
(status: SessionStatus)
loom/src/models/session/tests/helpers.rs:3
↓ 14 callersFunctioncreate_test_stage
(id: &str, name: &str, status: StageStatus)
loom/tests/e2e/manual_mode.rs:31
↓ 14 callersFunctioncreate_test_work_dir
(temp_dir: &TempDir)
loom/src/fs/plan_lifecycle.rs:305
↓ 14 callersMethodinitialize
Initialize the knowledge directory with default files
loom/src/fs/knowledge/dir.rs:63
↓ 14 callersFunctionlist_all_stages
List all stages from `.work/stages/` Reads all `.md` files in the stages directory and parses them into Stage structs. # Arguments `work_dir` - Path
loom/src/verify/transitions/persistence.rs:179
↓ 14 callersFunctionlocked_read
Read file contents with a shared (read) lock. Acquires a shared lock on the parent directory before reading, allowing multiple concurrent readers but
loom/src/fs/locking.rs:167
↓ 14 callersMethodmark_completed
Mark a stage as completed and update dependent stages. # Returns A vector of stage IDs that became ready (transitioned to `Queued`) as a result of t
loom/src/plan/graph/mod.rs:164
↓ 14 callersMethodread
Read a knowledge file
loom/src/fs/knowledge/dir.rs:96
↓ 14 callersFunctionsafe_extract_path
Safely resolves a zip entry path, protecting against zip slip attacks. Returns the safe output path if the entry is valid, or an error if: - The path
loom/src/commands/self_update/zip.rs:92
↓ 14 callersMethodtry_mark_blocked
Mark the stage as blocked with validation. # Returns `Ok(())` if the transition succeeded, `Err` if invalid
loom/src/models/stage/methods.rs:253
↓ 14 callersFunctionwrite_plan
(dir: &std::path::Path, filename: &str, content: &str)
loom/tests/integration/plan_verify.rs:173
↓ 13 callersFunctionare_all_dependencies_satisfied
Check if all dependencies of a stage are satisfied A dependency is satisfied if: - Its status is `Completed`, AND - `merged` is true, AND - (non-know
loom/src/verify/transitions/state.rs:181
↓ 13 callersFunctionbuild_test_graph
Test helper: Build execution graph from stage definitions
loom/tests/integration/helpers.rs:88
↓ 13 callersMethodcheck_pending_disputes
Scan `.work/disputes/<stage>/<n>/` for pending disputes and spawn workers for each. Skips disputes that: - already have a `verdict.md` (worker succee
loom/src/orchestrator/adjudication/mod.rs:111
↓ 13 callersFunctioncreate_branch_with_file
Test helper: Create a branch with a commit adding a file
loom/tests/integration/helpers.rs:59
↓ 13 callersFunctioncreate_test_session
(id: &str, stage_id: &str)
loom/tests/e2e/manual_mode.rs:24
next →1–100 of 3,851, ranked by callers