Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0xferrous/agent-box
/ functions
Functions
315 in github.com/0xferrous/agent-box
⨍
Functions
315
◇
Types & classes
53
↓ 29 callers
Function
make_test_config
()
common/src/config.rs:1567
↓ 23 callers
Function
resolve_profiles
(config: &Config, profile_names: &[String])
common/src/config.rs:735
↓ 20 callers
Function
build_figment
Build a Figment from global and optional repo-local config paths. Uses admerge: arrays concatenate, scalars override, dicts union recursively.
common/src/config.rs:821
↓ 17 callers
Method
ok
(id: u64, result: ResponseResult)
common/src/portal.rs:280
↓ 16 callers
Function
add_mounts
Add mounts to the binds vector. Handles symlinks by mounting the entire symlink chain. Skips paths that are already covered by a parent mount (unless
ab/src/runtime/mod.rs:557
↓ 14 callers
Function
parse_single_cli_mount
Parse a single CLI mount argument.
ab/src/runtime/mod.rs:249
↓ 11 callers
Function
validate_config
Validate the configuration, checking for: - `default_profile` references a defined profile - All `extends` references point to defined profiles - No c
common/src/config.rs:905
↓ 9 callers
Method
to_resolved_mounts
Resolve this mount to all necessary resolved mounts, including symlink chain. If the path contains symlinks, returns resolved mounts for: 1. Each sym
common/src/config.rs:217
↓ 8 callers
Method
as_str
Convert to Docker/Podman mount flag string
common/src/config.rs:45
↓ 8 callers
Function
send_response
(mut stream: UnixStream, response: &PortalResponse)
portal/src/host.rs:458
↓ 8 callers
Method
source_path
Get the full path in base_repo_dir (source repo location)
common/src/path.rs:57
↓ 7 callers
Function
build_container_config
( config: &Config, workspace_path: &Path, source_path: &Path, local: bool, ro: bool, e
ab/src/runtime/mod.rs:316
↓ 7 callers
Method
resolve_paths
Inner resolution logic without canonicalization. Public for testing purposes.
common/src/config.rs:163
↓ 7 callers
Function
resolve_test
Helper to create a Mount and resolve with test homes (without canonicalization)
ab/src/runtime/mod.rs:689
↓ 6 callers
Function
expand_path
Expand path with ~ support and canonicalize if it exists
common/src/path.rs:339
↓ 4 callers
Function
find_covering_mount
Check if a path is covered by any existing mount (exact match or subpath). Returns Some(existing_mode) if covered, None if not covered.
ab/src/runtime/mod.rs:521
↓ 4 callers
Function
format_bind
Format a mount as bind string (host:container:mode)
ab/src/runtime/mod.rs:340
↓ 4 callers
Method
policy_for_container
(&self, container_id: Option<&str>)
common/src/portal.rs:188
↓ 4 callers
Method
to_bind_string
Format as bind string for docker/podman -v flag
common/src/config.rs:70
↓ 4 callers
Function
validate_config_or_err
Validate config and return errors as a formatted Result
common/src/config.rs:1020
↓ 3 callers
Function
create_runtime
Factory to create the appropriate container runtime
ab/src/runtime/mod.rs:204
↓ 3 callers
Function
cwd_test_lock
()
common/src/repo.rs:462
↓ 3 callers
Function
derive_container_name
Derive a human-readable, unique container name from the workspace path. Local mode uses the current directory name plus a timestamp suffix. Session m
ab/src/runtime/mod.rs:77
↓ 3 callers
Function
find_git_root
Find the git root directory from current directory. Set `resolve_linked_worktree_to_main_repo=true` to resolve linked worktrees to the main repository
common/src/repo.rs:12
↓ 3 callers
Function
find_jj_workspace_root
Find enclosing jj workspace root from current directory. When `resolve_to_original_root` is true: - If `.jj/repo` is a file, resolve to the original
common/src/repo.rs:149
↓ 3 callers
Function
load_config
Load configuration with layered merging: 1. Load ~/.agent-box.toml (global config, required) 2. Load <git_root>/.agent-box.toml (repo config, optional
common/src/config.rs:835
↓ 3 callers
Function
locate_repo
Locate a repository by search string, prompting user if multiple matches found Returns the selected RepoIdentifier or an error if none found
common/src/repo.rs:91
↓ 3 callers
Function
make_test_config
()
common/src/path.rs:392
↓ 3 callers
Function
parse_args
(raw: &[String])
wrappers/src/bin/wl-paste.rs:12
↓ 3 callers
Function
parse_cli_mounts
Parse CLI mount arguments into Mount structs. Format: `[MODE:]PATH` or `[MODE:]SRC:DST` - MODE is optional, defaults to "rw" - Valid modes: "ro", "rw
ab/src/runtime/mod.rs:234
↓ 3 callers
Function
path_to_str
Convert Path to str with a descriptive error message
common/src/path.rs:369
↓ 3 callers
Function
prompt_allow
(state: &AppState, identity: &CallerIdentity, reason: Option<&str>)
portal/src/host.rs:487
↓ 3 callers
Method
request
(&self, method: RequestMethod)
common/src/portal_client.rs:50
↓ 3 callers
Function
resolve_repo_id
Resolve repo argument to a RepoIdentifier - If None: find git root from cwd and compute RepoId from it - If Some: use locate_repo to find the repo_id
common/src/repo.rs:127
↓ 2 callers
Method
clipboard_read_image
(&self, reason: Option<String>)
common/src/portal_client.rs:84
↓ 2 callers
Function
collect_profiles_to_apply
Resolve profiles with inheritance, returning merged mounts and env. Resolution order: 1. Start with runtime.mounts and runtime.env as base 2. Apply d
common/src/config.rs:718
↓ 2 callers
Method
collect_symlink_chain
Recursively collect all paths in a symlink chain.
common/src/config.rs:309
↓ 2 callers
Method
derive_container_path
Derive container path from host path based on home_relative setting.
common/src/config.rs:377
↓ 2 callers
Function
find_jj_workspace_root_from
(path: &Path, resolve_to_original_root: bool)
common/src/repo.rs:154
↓ 2 callers
Function
gh_help
(path_tokens: list[str])
portal/scripts/gh-policy-gen.py:24
↓ 2 callers
Method
git_workspace_path
Get the full path for a git workspace with given session
common/src/path.rs:65
↓ 2 callers
Function
init
(log_level: Option<&str>, socket_path: Option<&Path>, visible: bool)
portal/src/logging.rs:61
↓ 2 callers
Method
is_ok
(&self)
common/src/config.rs:889
↓ 2 callers
Method
jj_workspace_path
Get the full path for a jj workspace with given session
common/src/path.rs:74
↓ 2 callers
Method
merge
Merge another resolved profile into this one
common/src/config.rs:648
↓ 2 callers
Function
new_workspace
Create a new workspace (git worktree or jj workspace)
common/src/repo.rs:220
↓ 2 callers
Function
parse_subcommands
(help_text: str)
portal/scripts/gh-policy-gen.py:30
↓ 2 callers
Function
print_command
Pretty print a command with arguments, grouping flags with their values
ab/src/runtime/mod.rs:26
↓ 2 callers
Function
prompt_select_repo
Prompt user to select from a list of repos using inquire.
common/src/repo.rs:69
↓ 2 callers
Function
remove_repo
Remove all workspaces for a given repo ID
common/src/repo.rs:402
↓ 2 callers
Function
run_with_config_and_socket
( portal: PortalConfig, socket_path: PathBuf, stop: Arc<AtomicBool>, )
portal/src/host.rs:142
↓ 2 callers
Function
send_req
(socket_path: &Path, req: PortalRequest)
portal/tests/host_integration.rs:66
↓ 2 callers
Function
start_host
(home: &Path, socket_path: &Path)
portal/tests/host_integration.rs:44
↓ 2 callers
Method
to_mounts
Convert to a flat list of Mount structs
common/src/config.rs:460
↓ 2 callers
Method
to_resolved_mounts_with_homes
Resolve with explicit home directories, returning all resolved mounts including symlink chain. If the host path doesn't exist, returns an empty Vec an
common/src/config.rs:232
↓ 2 callers
Function
unique_temp_dir
(prefix: &str)
portal/tests/host_integration.rs:11
↓ 2 callers
Function
wait_for_socket
(path: &Path)
portal/tests/host_integration.rs:56
↓ 2 callers
Method
workspace_path
(&self, config: &Config, wtype: WorkspaceType, session: &str)
common/src/path.rs:82
↓ 2 callers
Function
write_config
(home: &Path, socket_path: &Path)
portal/tests/host_integration.rs:19
↓ 1 callers
Method
allow
(&mut self, key: &str)
portal/src/host.rs:64
↓ 1 callers
Function
calculate_relative_path
Calculate relative path from base directory to full path
common/src/path.rs:375
↓ 1 callers
Function
classify_gh_operation
(policy: &GhPolicyData, argv: &[String])
portal/src/host.rs:716
↓ 1 callers
Function
classify_operation
(full_cmd: str, desc: str)
portal/scripts/gh-policy-gen.py:62
↓ 1 callers
Function
clipboard_read_image
(allowed_mime: &[String], max_bytes: usize)
portal/src/host.rs:749
↓ 1 callers
Function
create_git_worktree
Create a new git worktree from a git repository
common/src/repo.rs:312
↓ 1 callers
Function
create_jj_workspace
Create a new jj workspace from an existing colocated jj repo
common/src/repo.rs:266
↓ 1 callers
Function
decodeHTMLEntities
(text)
docs/theme/excalidraw.js:13
↓ 1 callers
Method
dedup_hosts
Deduplicate hosts by exact string match (first occurrence wins).
common/src/config.rs:692
↓ 1 callers
Method
dedup_mounts
Deduplicate mounts by resolved path (first occurrence wins). Uses canonicalized paths when possible to handle symlinks.
common/src/config.rs:660
↓ 1 callers
Method
dedup_ports
Deduplicate ports by exact string match (first occurrence wins).
common/src/config.rs:686
↓ 1 callers
Function
default_allowed_mime
()
common/src/portal.rs:19
↓ 1 callers
Function
default_clipboard_policy
()
common/src/portal.rs:55
↓ 1 callers
Function
default_gh_exec_policy
()
common/src/portal.rs:71
↓ 1 callers
Function
default_global
()
common/src/portal.rs:15
↓ 1 callers
Function
default_log_path
(socket_path: Option<&Path>)
portal/src/logging.rs:52
↓ 1 callers
Function
default_max_clipboard_bytes
()
common/src/portal.rs:27
↓ 1 callers
Function
default_max_inflight
()
common/src/portal.rs:31
↓ 1 callers
Function
default_prompt_queue
()
common/src/portal.rs:35
↓ 1 callers
Function
default_rate_burst
()
common/src/portal.rs:43
↓ 1 callers
Function
default_rate_per_minute
()
common/src/portal.rs:39
↓ 1 callers
Function
default_socket_path
()
common/src/portal.rs:10
↓ 1 callers
Function
detect_cycle
Detect circular dependencies starting from a profile. Returns Some(cycle_path) if a cycle is found, None otherwise.
common/src/config.rs:985
↓ 1 callers
Function
detect_cycle_recursive
( config: &Config, current: &str, visited: &mut HashSet<String>, path: &mut Vec<String>, )
common/src/config.rs:991
↓ 1 callers
Function
execute_exec_on_host
( argv: &[String], cwd: Option<String>, env: Option<HashMap<String, String>>, )
portal/src/host.rs:634
↓ 1 callers
Function
execute_gh_on_host
(argv: &[String])
portal/src/host.rs:608
↓ 1 callers
Function
extract_podman_container_id_from_cgroup
(cgroup_contents: &str)
common/src/portal.rs:304
↓ 1 callers
Function
find_git_root_from
Find git root from an arbitrary path. When `resolve_linked_worktree_to_main_repo` is true, linked worktrees are resolved to the main repository root v
common/src/repo.rs:21
↓ 1 callers
Function
find_terminfo_dir
(term: &str)
ab/src/runtime/mod.rs:121
↓ 1 callers
Function
get_session_name
Get session name from argument or prompt
common/src/repo.rs:362
↓ 1 callers
Method
gh_exec
( &self, argv: Vec<String>, reason: Option<String>, require_approval: bool,
common/src/portal_client.rs:92
↓ 1 callers
Method
git_worktrees
Get all git worktrees for this repository
common/src/path.rs:300
↓ 1 callers
Function
handle_client
(mut stream: UnixStream, state: &AppState)
portal/src/host.rs:252
↓ 1 callers
Method
has_warnings
(&self)
common/src/config.rs:893
↓ 1 callers
Function
info
Show repository information and list workspaces
common/src/display.rs:16
↓ 1 callers
Function
initExcalidraw
()
docs/theme/excalidraw.js:20
↓ 1 callers
Function
initLightbox
()
docs/theme/lightbox.js:22
↓ 1 callers
Function
is_glob
Returns true if the string contains any glob metacharacters (`*`, `?`, `[`).
common/src/config.rs:81
↓ 1 callers
Method
jj_workspaces
Get all JJ workspaces for this repository using JJ's workspace tracking
common/src/path.rs:250
↓ 1 callers
Method
list_paths_in_image
List all paths in the container image
ab/src/runtime/mod.rs:195
↓ 1 callers
Function
loadGLightbox
()
docs/theme/lightbox.js:3
next →
1–100 of 315, ranked by callers