MCPcopy Create free account

hub / github.com/cosmix/loom / functions

Functions3,851 in github.com/cosmix/loom

↓ 8 callersFunctioncompute_sha256_checksum
Compute SHA-256 checksum of binary content for logging and verification. Returns the hex-encoded hash string.
loom/src/commands/self_update/signature.rs:42
↓ 8 callersFunctioncreate_session_file
(work_dir: &std::path::Path, session_id: &str, stage_id: &str)
loom/src/fs/worktree_files/tests.rs:20
↓ 8 callersFunctioncreate_test_work_dir
()
loom/src/orchestrator/continuation/tests.rs:10
↓ 8 callersFunctionescape_applescript_string
Escape a string for use in AppleScript double-quoted strings. In AppleScript, within double quotes: - Backslashes must be escaped: `\` → `\\` - Doubl
loom/src/orchestrator/terminal/emulator.rs:16
↓ 8 callersFunctionfind_claude_path
Find the absolute path to the claude binary On macOS, spawned terminals don't inherit the parent's PATH, so we need to resolve claude's path at scrip
loom/src/claude.rs:10
↓ 8 callersFunctionfind_session_file
Find a session file by ID or prefix. First attempts an exact match: `{id}.md` If not found, scans the sessions directory for files starting with the
loom/src/fs/session_files.rs:71
↓ 8 callersFunctionfind_yaml_fence
Find the start of a YAML code fence and return (position, fence_length) Supports ```, ````, ````` etc. Returns (byte_position, byte_length) for consis
loom/src/plan/parser/extraction.rs:127
↓ 8 callersFunctiongenerate_stable_prefix
Stable prefix content that rarely changes (Manus KV-cache pattern)
loom/src/orchestrator/signals/cache.rs:217
↓ 8 callersFunctioninit_work
(temp: &TempDir)
loom/src/fs/work_dir.rs:666
↓ 8 callersFunctionmake_registry_disabled
(work_dir: &Path)
loom/src/orchestrator/adjudication/tests.rs:75
↓ 8 callersFunctionmake_stage
(id: &str)
loom/tests/adjudication_e2e.rs:25
↓ 8 callersFunctionmark_plan_in_progress
Mark the plan file as in-progress by adding `IN_PROGRESS-` prefix. This is called when `loom run` starts execution. If the plan already has `IN_PROGR
loom/src/fs/plan_lifecycle.rs:190
↓ 8 callersFunctionmerge_into_main
Test helper: Merge a branch into main
loom/tests/integration/helpers.rs:140
↓ 8 callersFunctionparse_and_validate
Parse and validate YAML metadata Returns the full LoomMetadata to allow callers to access sandbox config, etc.
loom/src/plan/parser/validation.rs:9
↓ 8 callersFunctionread_feedback
Read the current feedback for a stage, if any. Returns `Ok(None)` when no file exists.
loom/src/orchestrator/adjudication/feedback.rs:92
↓ 8 callersFunctionremove_signal
(session_id: &str, work_dir: &Path)
loom/src/orchestrator/signals/crud.rs:79
↓ 8 callersFunctionrender_graph
Render execution graph with tree display
loom/src/commands/status/render/graph.rs:147
↓ 8 callersFunctionresolve_acceptance_dir
Resolve acceptance directory from worktree root and working_dir. # Arguments `worktree_root` - The root of the worktree (e.g., ".worktrees/stage-id")
loom/src/commands/stage/acceptance_runner.rs:39
↓ 8 callersFunctionrun_single_criterion_with_timeout
Run a single acceptance criterion (shell command) with specified timeout Executes the command using the system shell and captures all output. Returns
loom/src/verify/criteria/executor.rs:42
↓ 8 callersFunctionsetup
(stage_status: StageStatus, acceptance_len: usize)
loom/src/daemon/server/dispute.rs:274
↓ 8 callersFunctionsetup_git_repo
()
loom/src/git/cleanup/tests.rs:12
↓ 8 callersFunctionstrip_quotes
Strip surrounding quotes from a string
loom/src/commands/skill_index.rs:273
↓ 8 callersFunctionsync_worktree_permissions
Sync permissions from a worktree's settings.local.json to the main repo's settings This function: 1. Reads the worktree's settings.local.json (from b
loom/src/fs/permissions/sync.rs:45
↓ 8 callersFunctiontruncate_for_display
Truncate a string for display, using UTF-8 safe character-based truncation. This converts multi-line strings to single lines and truncates by charact
loom/src/utils.rs:271
↓ 8 callersFunctionwrite_dispute_request
(work_dir: &Path, stage_id: &str, id: u32, criterion_index: usize)
loom/src/orchestrator/adjudication/tests.rs:33
↓ 8 callersFunctionwrite_events_file
(dir: &TempDir, content: &str)
loom/src/hooks/events.rs:395
↓ 8 callersFunctionwrite_plan
(work_dir: &Path)
loom/tests/adjudication_e2e.rs:72
↓ 7 callersFunctionappend_questions
Write evidence-loop feedback: the adjudicator wants the agent to answer specific questions before re-disputing. Overwrites any prior content.
loom/src/orchestrator/adjudication/feedback.rs:73
↓ 7 callersMethodbranch_name
Get the branch name to use
loom/src/git/worktree/base.rs:69
↓ 7 callersFunctioncheck
(min_coverage: u8, src_path: Option<String>, quiet: bool)
loom/src/commands/knowledge/check.rs:33
↓ 7 callersFunctioncollect_status
Collect current stage status from the work directory.
loom/src/daemon/server/status.rs:17
↓ 7 callersFunctioncomplete_commands
Complete top-level command names.
loom/src/completions/dynamic/commands.rs:33
↓ 7 callersMethodcreate
Create the `.inflight` marker. Returns `Err` if another worker already owns it (the main loop will skip this dispute until the existing marker expires
loom/src/orchestrator/adjudication/worker.rs:84
↓ 7 callersFunctioncreate_conflict_branch
(stage_id: &str, repo_root: &Path)
loom/tests/integration/merge_conflict_recovery.rs:73
↓ 7 callersFunctioncreate_test_session
(tokens: u32, limit: u32)
loom/src/handoff/detector.rs:118
↓ 7 callersFunctioncreate_test_skill
(dir: &Path, name: &str, description: &str, triggers: &[&str])
loom/src/skills/index.rs:207
↓ 7 callersFunctioncreate_worktree
Create a new worktree for a stage Creates: .worktrees/{stage_id}/ with branch loom/{stage_id} Also creates symlink .worktrees/{stage_id}/.work -> mai
loom/src/git/worktree/operations.rs:28
↓ 7 callersFunctiondetect_in_progress_merge_at
Inspect a single main-repo path, returning the active merge if present.
loom/src/git/merge/in_progress.rs:157
↓ 7 callersFunctiondetect_path_escape
Check if a path attempts to escape the worktree boundary This function detects: - Parent directory traversal patterns (../, ../../, etc.) - Direct ac
loom/src/sandbox/config.rs:180
↓ 7 callersMethoddetect_stage_changes
Detect stage status changes
loom/src/orchestrator/monitor/detection.rs:69
↓ 7 callersFunctionensure_repo_ready_for_worktrees
Ensure the current directory is a git repository with at least one commit. This is the minimum git state Loom needs before it can create worktrees. I
loom/src/git/repository.rs:34
↓ 7 callersFunctionextract_field_from_lines
Extract a markdown bold field value from a list of lines. Looks for lines matching `- **{field}**: value` and returns the value. Useful in combinatio
loom/src/orchestrator/signals/helpers.rs:175
↓ 7 callersFunctionextract_matching_lines
Extract lines from output that match any of the given patterns. Each pattern is treated as a regex. Lines are deduplicated while preserving order. #
loom/src/verify/utils.rs:17
↓ 7 callersFunctionextract_permissions
Extract allow and deny permission arrays from settings
loom/src/git/worktree/settings.rs:234
↓ 7 callersFunctionextract_stage_definition
Deserialize a [`StageDefinition`] directly from a stage markdown file's YAML frontmatter. Every field a stage file can carry has a serde default on `
loom/src/fs/stage_loading.rs:25
↓ 7 callersFunctionextract_yaml_metadata_with_ranges
Extract YAML content from a plan's metadata block AND report the byte ranges that anchor the metadata block and YAML fence within `content`. Used by
loom/src/plan/parser/extraction.rs:72
↓ 7 callersFunctionfake_metrics_recommended
()
loom/src/commands/knowledge/gc.rs:265
↓ 7 callersFunctionfind_latest_handoff
Find the most recent handoff file for a stage Returns the path to the latest handoff file, or None if no handoffs exist.
loom/src/handoff/generator/numbering.rs:53
↓ 7 callersFunctionget_work_dir
Get the .work directory, handling worktree symlinks When called from within a worktree (or its subdirectory), finds the worktree root which has a `.w
loom/src/commands/memory/handlers.rs:20
↓ 7 callersFunctioninit_repo
Build a real git repo on branch `main` with an initial commit. Returns the TempDir (callers keep it alive for the duration of the test).
loom/tests/phantom_merge.rs:32
↓ 7 callersFunctioninit_work_dir
Create an empty `.work/` with a minimal `config.toml` pointing at `main`.
loom/tests/phantom_merge.rs:86
↓ 7 callersFunctionmake_result
(success: bool, stderr: &str)
loom/src/verify/criteria/runner.rs:227
↓ 7 callersFunctionmake_stage
(id: &str)
loom/src/orchestrator/adjudication/tests.rs:20
↓ 7 callersFunctionmake_status_data
(stages: Vec<StageSummary>)
loom/src/commands/status/render/graph_tests.rs:34
↓ 7 callersFunctionmark_plan_done_if_all_merged
Mark the plan file as done by replacing `IN_PROGRESS-` with `DONE-` prefix. This is called after the orchestrator completes successfully. Only rename
loom/src/fs/plan_lifecycle.rs:243
↓ 7 callersFunctionmatch_skills
Match skills against input text using the trigger index Algorithm: 1. Normalize input text (lowercase, replace _ and - with space) 2. Split into word
loom/src/skills/matcher.rs:32
↓ 7 callersFunctionparse_checksums
Parse a SHA256 checksums file (standard sha256sum format). Format: `<64-char-hex> <filename>` (note: two spaces) Example checksums file: ```text e3b
loom/src/commands/self_update/signature.rs:57
↓ 7 callersFunctionparse_csv_triggers
Parse a CSV string of trigger keywords into individual triggers
loom/src/skills/index.rs:160
↓ 7 callersFunctionparse_plan
Parse a plan document and extract loom metadata
loom/src/plan/parser/mod.rs:27
↓ 7 callersFunctionprune_worktrees
Prune stale worktree references Runs `git worktree prune` to clean up any stale worktree metadata.
loom/src/git/cleanup/batch.rs:111
↓ 7 callersMethodread
(&mut self, buf: &mut [u8])
loom/src/commands/self_update/zip.rs:35
↓ 7 callersFunctionread_config
Read `.work/config.toml` as a `toml_edit::DocumentMut`, preserving comments, formatting, and unknown keys. Returns an empty document if the file does
loom/src/fs/work_dir.rs:358
↓ 7 callersMethodready_stages
Get all stages that are ready to execute
loom/src/plan/graph/mod.rs:120
↓ 7 callersFunctionrequire_admin_capability
Verify the admin token is readable before allowing verification-bypass flags (`--no-verify`, `--force-unsafe`, `--assume-merged`). The admin token li
loom/src/commands/stage/complete.rs:38
↓ 7 callersFunctionresolve_stage_execution_paths
Resolve both worktree root and acceptance directory for a standard stage.
loom/src/commands/stage/acceptance_runner.rs:101
↓ 7 callersFunctionrun_git_show
(work_dir: &Path, commit: &str)
loom/src/orchestrator/adjudication/prompt.rs:169
↓ 7 callersMethodset_pid
(&mut self, pid: u32)
loom/src/models/session/methods.rs:115
↓ 7 callersFunctionskip_stage
Skip a stage that is blocked, waiting for dependencies, or queued. A skipped stage does not count as completed, so dependent stages will remain in Wa
loom/src/orchestrator/skip.rs:41
↓ 7 callersMethodtry_mark_executing
Mark the stage as executing with validation. Sets `started_at` timestamp if not already set (preserves original start time across retries). # Return
loom/src/models/stage/methods.rs:232
↓ 7 callersMethodtry_mark_needs_handoff
Mark the stage as needing handoff with validation. # Returns `Ok(())` if the transition succeeded, `Err` if invalid
loom/src/models/stage/methods.rs:213
↓ 7 callersMethodtry_request_human_review
Request human review for this stage. Transitions from Executing to NeedsHumanReview and records the reason. # Arguments `reason` - Why the stage nee
loom/src/models/stage/methods.rs:331
↓ 7 callersFunctionvalidate_file_path
Validate a file path for Edit/Write operations. # Arguments `path` - The file path to validate `current_stage` - The current stage ID (used to allow
loom/src/hooks/validators/file_path.rs:58
↓ 7 callersFunctionvalidate_stage_id
Validate stage ID to prevent path traversal attacks
loom/src/commands/memory/handlers.rs:49
↓ 6 callersFunctionanalyze_gc_metrics
Analyze GC metrics for knowledge files
loom/src/fs/knowledge/gc.rs:38
↓ 6 callersFunctionanalyze_session
Analyse the last 50 tool events for `session_id` and return a [`ToolAnalysis`]. Events are read from `<work_dir>/tool-events.jsonl`. Returns an empt
loom/src/orchestrator/monitor/tool_analysis.rs:57
↓ 6 callersMethodblock
(mut self, block: Block<'a>)
loom/src/commands/status/ui/tree_widget.rs:105
↓ 6 callersFunctionbuild_claude_command
Build the `claude` invocation string shared by all native spawn sites. Produces `"{claude_path} --model {model} --effort {effort} --permission-mode {
loom/src/orchestrator/terminal/native/mod.rs:85
↓ 6 callersFunctionbuild_tree_display
Build a vertical tree display of stages
loom/src/commands/graph/tree.rs:66
↓ 6 callersFunctioncanonical
(dir: &TempDir)
loom/src/commands/pressure/tests.rs:5
↓ 6 callersFunctioncheck_acceptance
Run acceptance criteria for a stage and display detailed results. This command: 1. Loads the stage and validates its status (Executing or CompletedWi
loom/src/commands/stage/check_acceptance.rs:24
↓ 6 callersFunctioncheck_merge_state
Check the merge state of a stage. Determines whether a stage's work has been merged to the merge point by examining git ancestry (primary) and fallin
loom/src/git/merge/status.rs:62
↓ 6 callersFunctioncommits_ahead_of
Count commits on `branch` that are not on `base`. Uses `git rev-list --count <base>..<branch>`. Returns 0 if the branch is fully merged into base, or
loom/src/git/branch/ancestry.rs:91
↓ 6 callersFunctioncomplete_knowledge_files
Complete knowledge file names for `loom knowledge show/update` Includes aliases (deps/tech -> stack, debt/issues -> concerns). # Arguments `prefix`
loom/src/completions/dynamic/knowledge.rs:35
↓ 6 callersFunctioncomplete_session_ids
Complete session IDs from .work/sessions/*.md # Arguments `cwd` - Current working directory (project root) `prefix` - Partial session ID prefix to f
loom/src/completions/dynamic/sessions.rs:19
↓ 6 callersFunctioncontext_usage_percent
Calculate context usage percentage
loom/src/orchestrator/monitor/context.rs:37
↓ 6 callersMethodcontext_usage_percent
(&self)
loom/src/models/session/methods.rs:124
↓ 6 callersFunctioncreate_test_stage
(id: &str, name: &str, status: StageStatus)
loom/src/orchestrator/skip.rs:68
↓ 6 callersFunctioncreate_test_stage
Helper to create a test stage with a specific ID and status. By default, stages are set to `StageType::Knowledge` so that the git ancestry check adde
loom/tests/completion_flow.rs:25
↓ 6 callersFunctioncreate_wrapper_script
Create a wrapper script that writes its PID before exec'ing claude The wrapper script: 1. Sets loom environment variables (LOOM_SESSION_ID, LOOM_STAG
loom/src/orchestrator/terminal/native/pid_tracking.rs:391
↓ 6 callersFunctiondispute_dir
Layout helpers for the on-disk dispute directory: `.work/disputes/<stage>/<n>/{request.md,verdict.md,applied.marker}`.
loom/src/models/dispute.rs:92
↓ 6 callersFunctionemit_json
(output: &JsonOutput)
loom/src/commands/plan/verify.rs:131
↓ 6 callersFunctionexecute_applescript_bool
(script: &str)
loom/src/orchestrator/terminal/native/window_ops.rs:89
↓ 6 callersFunctionextract_frontmatter_raw
Extract the raw frontmatter text (without delimiters) from markdown content. Matches the closing `---` at the same indentation as the opening delimit
loom/src/parser/frontmatter.rs:74
↓ 6 callersFunctionextract_tasks_from_description
Extract tasks from markdown description text Recognizes: - Bullet lists (- task or * task) - Numbered lists (1. task or 1) task)
loom/src/orchestrator/signals/format/helpers.rs:79
↓ 6 callersFunctionfilter_prefix
Filter a list of candidates by prefix.
loom/src/completions/dynamic/commands.rs:155
↓ 6 callersFunctionformat_elapsed
Format elapsed time in compact human-readable format. Produces output like: `30s`, `1m30s`, `1h1m` # Arguments `seconds` - The number of seconds ela
loom/src/utils.rs:40
↓ 6 callersFunctionformat_git_history_markdown
Format git history as markdown for inclusion in handoff/signal files.
loom/src/handoff/git_handoff.rs:30
↓ 6 callersFunctionformat_signal_with_metrics
Format signal content with metrics about section sizes
loom/src/orchestrator/signals/format/mod.rs:57
↓ 6 callersFunctiongenerate_merge_signal
Generate a signal file for a merge conflict resolution session. Unlike regular stage signals that run in worktrees, merge signals direct the session
loom/src/orchestrator/signals/merge.rs:19
↓ 6 callersMethodget_frontmatter
(&self, key: &str)
loom/src/parser/markdown.rs:110
← previousnext →201–300 of 3,851, ranked by callers