Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atomicdotdev/atomic
/ functions
Functions
14,266 in github.com/atomicdotdev/atomic
⨍
Functions
14,266
◇
Types & classes
1,144
↓ 32 callers
Method
hash
Compute the hash of this change without writing it. This serializes the change to a temporary buffer using the V3 format and returns the content hash
atomic-core/src/change/change.rs:284
↓ 32 callers
Method
iter
Iterate over elements.
atomic-core/src/output/alive/order.rs:215
↓ 32 callers
Method
len
Get the number of elements in the path.
atomic-core/src/output/alive/order.rs:210
↓ 32 callers
Function
make_options
(session: &'a AgentSession, event: &'a TurnEvent)
atomic-agent/src/record/tests.rs:31
↓ 31 callers
Method
get_external
(&self, node_id: NodeId)
atomic-core/src/record/workflow/globalize/context.rs:236
↓ 31 callers
Method
len
(&self)
atomic-core/src/change/format_v3/hash_table.rs:450
↓ 30 callers
Method
into_iter
(self)
atomic-cli/src/commands/diff/types.rs:254
↓ 30 callers
Function
test_hash_position
(pos: u64)
atomic-core/src/change/atom.rs:482
↓ 30 callers
Method
vault_manifest
Get the vault manifest.
atomic-repository/src/repository/vault.rs:314
↓ 29 callers
Method
apply_after_record
(mut self, apply: bool)
atomic-repository/src/record/options.rs:191
↓ 29 callers
Method
as_slice
(&self)
atomic-core/src/crdt/apply/order.rs:346
↓ 29 callers
Method
insert
Inserts an element at its correct position. # Arguments `id` - The ID of the element to insert `after` - The ID this element should be inserted afte
atomic-core/src/crdt/apply/order.rs:360
↓ 29 callers
Method
iter
Iterate over recorded files.
atomic-core/src/record/workflow/record/types.rs:628
↓ 29 callers
Function
print_info
Print an informational message to stdout. The message is formatted in cyan with an info prefix. # Arguments `message` - The message to print # Exa
atomic-cli/src/output/mod.rs:139
↓ 29 callers
Method
replace
Create a Replace operation.
atomic-core/src/diff/ops.rs:141
↓ 29 callers
Method
save_to_store
(mut self, save: bool)
atomic-repository/src/record/options.rs:198
↓ 29 callers
Method
status
Compute the status of the working copy. Optimized for repositories with tens of thousands of files: 1. **Single TREE pass** — builds tracked_paths +
atomic-repository/src/repository/status.rs:24
↓ 28 callers
Function
init_repo_with_vault
(dir: &std::path::Path)
atomic-repository/src/repository/vault_intent.rs:761
↓ 28 callers
Method
insert
Insert a hash into the table, returning its index. If the hash is already in the table, returns its existing index without inserting a duplicate (ide
atomic-core/src/change/format_v3/hash_table.rs:267
↓ 28 callers
Function
make_compactor_and_table
Helper: create a Compactor with a known set of hashes.
atomic-core/src/change/format_v3/compact/tests.rs:42
↓ 28 callers
Function
temp_store
Helper: create a temporary redb store.
atomic-repository/src/redb_change_store/tests.rs:10
↓ 28 callers
Method
to_le_bytes
(self)
atomic-core/src/types/node_id.rs:32
↓ 28 callers
Method
vault_intent_create
Create a new vault intent. Allocates a JIRA-style ID (e.g., "PIMO-1") and creates an intent directory with an `intent.md` scaffold. The prefix is de
atomic-repository/src/repository/vault_intent.rs:105
↓ 28 callers
Method
with_prompt
(mut self, prompt: impl Into<String>)
atomic-agent/src/event.rs:350
↓ 27 callers
Method
get_internal
(&self, _hash: &Hash)
atomic-core/src/merge/engine.rs:368
↓ 27 callers
Method
load_change
Load a change from disk. If the change is in the cache, it's returned directly. Otherwise, it's loaded from disk, verified, and added to the cache.
atomic-repository/src/changestore/mod.rs:360
↓ 27 callers
Function
make_hook
()
atomic-agent/src/hooks/opencode.rs:679
↓ 27 callers
Method
vault_retrieve
Retrieve a vault entry by path.
atomic-repository/src/repository/vault.rs:258
↓ 26 callers
Method
encode
Encode the envelope for storage in `HashedChange.metadata`. Format: `[MAGIC: 4 bytes][postcard payload]` # Errors Returns `AgentError::EnvelopeCode
atomic-agent/src/envelope.rs:232
↓ 26 callers
Method
file_name
Get the file name portion of the path.
atomic-core/src/change/local.rs:99
↓ 26 callers
Method
text
Get the full text if available.
atomic-core/src/change/provenance/types.rs:479
↓ 26 callers
Function
word_diff
Compute word-level diff between two byte slices. This is the main entry point for word-level diffing. It tokenizes both inputs and computes the optim
atomic-core/src/diff/word.rs:552
↓ 25 callers
Method
append_tool_call
( &mut self, tool_name: &str, tool_call_id: Option<&str>, tool_input: Option<&
atomic-agent/src/provenance/accumulator/append.rs:55
↓ 25 callers
Function
apply_trunk_op
Applies a TrunkOp to the pristine database. This is the main entry point for applying file-level operations. # Arguments `txn` - The transaction to
atomic-core/src/crdt/apply/trunk.rs:72
↓ 25 callers
Method
build
Build the [`FileHeader`], auto-computing flags.
atomic-core/src/change/format_v3/types/builder.rs:110
↓ 25 callers
Method
dispatch
Dispatch a turn event through the orchestrator. This is the main entry point called by the CLI hook handler. It: 1. Routes the event to the appropria
atomic-agent/src/turn/orchestrator/mod.rs:351
↓ 25 callers
Method
extract
(&mut self, source: &str, file_path: &str)
atomic-semantic/src/parsers/cpp.rs:772
↓ 25 callers
Function
extract_session_id
Extract the session_id from parsed input, returning a default if missing.
atomic-agent/src/hooks/claude_code/parse.rs:130
↓ 25 callers
Method
kind
(&self)
atomic-core/src/diff/token/token_type.rs:123
↓ 25 callers
Method
load
Load a session by ID. Returns `Ok(None)` if the session file doesn't exist (not an error). # Errors Returns `AgentError::SessionIdInvalid` if the I
atomic-agent/src/turn/session.rs:488
↓ 25 callers
Method
parse_event
(&self, hook_type: HookType, input: &[u8])
atomic-agent/src/hooks/cursor.rs:397
↓ 25 callers
Method
register_change
(&mut self, hash: &Hash)
atomic-core/src/pristine/txn/write/mod.rs:344
↓ 25 callers
Method
write_change_header
Write the HEADER section containing the [`ChangeHeader`]. This is a required section and must be the first section after the hash table. The `ChangeH
atomic-core/src/change/format_v3/writer/state_machine.rs:281
↓ 24 callers
Method
last
Create options for getting the last N changes. # Arguments `n` - Number of recent changes to retrieve
atomic-repository/src/history/types.rs:297
↓ 24 callers
Method
len
Get the number of configured remotes.
atomic-repository/src/remote.rs:378
↓ 24 callers
Function
make_hook
()
atomic-agent/src/hooks/gemini_cli.rs:838
↓ 24 callers
Method
save_change
Save a change to disk. The change is serialized, written to a temporary file, and then atomically renamed to its final path. The change is also added
atomic-repository/src/changestore/mod.rs:304
↓ 24 callers
Method
timestamp
Set the timestamp (defaults to now if not specified).
atomic-core/src/change/header.rs:355
↓ 23 callers
Function
make_hook
()
atomic-agent/src/hooks/pi.rs:596
↓ 23 callers
Function
make_hook
()
atomic-agent/src/hooks/devin.rs:436
↓ 23 callers
Method
message
Set the change message (required).
atomic-core/src/change/header.rs:343
↓ 23 callers
Method
post
POST request with JSON body, unwrap `ApiResponse` envelope.
atomic-remote/src/storage.rs:108
↓ 23 callers
Method
save_change
Store a `Change` object into the redb store. This serializes the change to V3 format, then imports the sections into the redb tables. This is the pri
atomic-repository/src/redb_change_store/mod.rs:389
↓ 23 callers
Function
semantic_diff
Compute a semantic diff between two byte slices. This is the main entry point for semantic diffing. It: 1. Splits content into lines 2. Computes line
atomic-core/src/diff/semantic/diff_impl.rs:32
↓ 23 callers
Function
tokenize
Tokenize a byte slice into owned [`MergeToken`]s. Uses the project's code-aware [`Tokenizer`] so that operators, strings, numbers, and comments are r
atomic-core/src/merge/three_way.rs:83
↓ 23 callers
Method
vault_dir
Path to the vault directory (`.vault/` at the project root).
atomic-repository/src/repository/vault.rs:13
↓ 22 callers
Method
as_u64
(self)
atomic-core/src/types/node_id.rs:56
↓ 22 callers
Function
encode_branch_id
(id: &BranchId)
atomic-core/src/crdt/tables.rs:284
↓ 22 callers
Method
hash_table_entries
Set the number of unique hashes in the dedup table.
atomic-core/src/change/format_v3/types/builder.rs:62
↓ 22 callers
Method
lines
Returns an iterator over tokenized lines. Lines are processed lazily as the iterator is consumed.
atomic-core/src/record/workflow/crdt/tokenize/mod.rs:77
↓ 22 callers
Function
make_position
Helper: make a Position<Option<Hash>> with a specific hash.
atomic-core/src/change/format_v3/compact/tests.rs:25
↓ 22 callers
Method
parse_event
(&self, hook_type: HookType, input: &[u8])
atomic-agent/src/hooks/copilot.rs:265
↓ 22 callers
Function
test_hash
()
atomic-core/src/change/credit.rs:720
↓ 22 callers
Function
test_timestamp
()
atomic-core/src/change/credit.rs:724
↓ 22 callers
Function
writer_with_metadata
Helper: create a minimal writer with preamble + metadata sections written.
atomic-core/src/change/format_v3/writer/tests.rs:28
↓ 21 callers
Function
check_min_version_header
Check the `X-Atomic-Min-Version` response header and warn if the current CLI version is older than the server's minimum requirement. Prints a warning
atomic-remote/src/version.rs:38
↓ 21 callers
Function
chunk_content
Split content into variable-size chunks using FastCDC. Returns a list of [`ContentChunk`] descriptors. Each chunk's data can be accessed via `&data[c
atomic-core/src/change/format_v3/chunking.rs:481
↓ 21 callers
Function
create_opts
Helper to build IntentCreateOptions with session info for tests.
atomic-repository/src/repository/vault_intent.rs:768
↓ 21 callers
Function
create_test_repo
()
atomic-repository/tests/content_roundtrip_fidelity_test.rs:20
↓ 21 callers
Function
create_test_store
Create a test change store in a temporary directory.
atomic-repository/src/changestore/tests.rs:16
↓ 21 callers
Function
encode_vertex
(change_id: u64, start: u64, end: u64)
atomic-core/src/pristine/tables.rs:783
↓ 21 callers
Method
finalize
Finalize the change file by writing the trailer. This computes the final blake3 content hash from all hashed sections written so far, writes the 32-b
atomic-core/src/change/format_v3/writer/state_machine.rs:420
↓ 21 callers
Method
flag
(&self)
atomic-core/src/types/graph_edge.rs:235
↓ 21 callers
Method
get_view_info
Get information about a view. Returns the view's metadata including its Merkle state and change count. # Arguments `name` - The name of the view to
atomic-repository/src/repository/views.rs:499
↓ 21 callers
Method
parse
Parse a changelist entry from the protocol format. Format: `{sequence}.{hash}.{merkle}` or `{sequence}.{hash}.{merkle}.` # Examples ``` use atomic_
atomic-remote/src/types.rs:198
↓ 21 callers
Method
save
Save a session to disk atomically. Writes to a temporary file first, then renames to the final path. This prevents corruption if the process is kille
atomic-agent/src/turn/session.rs:521
↓ 21 callers
Method
serialize
Serialize this change to a writer using the V3 format. Writes the complete V3 change file (header, hash table, sections, trailer) to the given writer
atomic-core/src/change/change.rs:307
↓ 21 callers
Function
session_start_event
(session_id: &str)
atomic-agent/src/turn/orchestrator/tests.rs:26
↓ 21 callers
Method
with_tool_name
Set the tool name.
atomic-agent/src/provenance/types.rs:317
↓ 20 callers
Function
build_client
Build a [`StorageClient`] from global config and the resolved identity. - `org_override` — explicit `--org` flag value. - `server_override` — explici
atomic-cli/src/commands/client.rs:53
↓ 20 callers
Method
create_view_from
Create a new view that inherits changes from another view. This creates a new view and copies all changes from the source view to the new view. The n
atomic-repository/src/repository/views.rs:256
↓ 20 callers
Function
encode_trunk_id
(id: &TrunkId)
atomic-core/src/crdt/tables.rs:245
↓ 20 callers
Method
hunks
Get the hunks in this change.
atomic-core/src/change/change.rs:272
↓ 20 callers
Method
insert
Insert a change into the store. # Arguments `hash` - The hash to use as the key `change` - The change to store
atomic-core/src/change/store.rs:335
↓ 20 callers
Method
iter_mut
(&mut self)
atomic-core/src/crdt/apply/conflict.rs:572
↓ 20 callers
Method
message
Render an actionable, accurate error message for this issue. All messages point at registering an identity, since that is the single command that est
atomic-cli/src/commands/auth.rs:261
↓ 20 callers
Function
record_change
(repo: &Repository, message: &str)
atomic-repository/tests/content_roundtrip_fidelity_test.rs:35
↓ 20 callers
Method
switch_view
Switch to a different view and update the working copy. This is the primary method for switching views. It: 1. Validates the view exists 2. Updates t
atomic-repository/src/repository/switch.rs:91
↓ 20 callers
Method
write_dependencies
Write the DEPS section containing dependency hash indices. This is a required section. It contains the list of dependency hashes as `HashIndex` value
atomic-core/src/change/format_v3/writer/state_machine.rs:324
↓ 20 callers
Function
write_file
(repo_path: &Path, name: &str, content: &str)
atomic-repository/tests/content_roundtrip_fidelity_test.rs:27
↓ 19 callers
Function
apply_branch_op
Applies a BranchOp to the pristine database. This is the main entry point for applying line-level operations. # Arguments `txn` - The transaction t
atomic-core/src/crdt/apply/branch.rs:93
↓ 19 callers
Function
apply_leaf_op
Applies a LeafOp to the pristine database. This is the main entry point for applying token-level operations. # Arguments `txn` - The transaction to
atomic-core/src/crdt/apply/leaf.rs:101
↓ 19 callers
Function
compute_inline_diff
Compute an inline diff between two lines. This is the main entry point for inline diff computation. It tokenizes both lines, computes a word-level di
atomic-core/src/diff/inline.rs:601
↓ 19 callers
Function
create_test_change
(message: &str, content: &[u8])
atomic-core/src/change/store.rs:532
↓ 19 callers
Method
finish
Finish recording and produce a `Recorded` result. This consumes the builder and returns the accumulated state. # Returns A `Recorded` containing al
atomic-core/src/record/builder.rs:424
↓ 19 callers
Method
is_empty
Check if no operations were performed. Returns `true` if no files were written, no directories created, and no files skipped. # Example ```rust use
atomic-core/src/output/repo/outcome.rs:147
↓ 19 callers
Method
iter
Returns an iterator over all changes.
atomic-core/src/record/workflow/crdt/line_ops/analyzer.rs:148
↓ 19 callers
Method
len
(&self)
atomic-core/src/change/format_v3/compact/types.rs:84
↓ 19 callers
Function
make_hook
()
atomic-agent/src/hooks/codex.rs:651
↓ 19 callers
Function
make_test_change
Helper: create a simple test Change.
atomic-repository/src/redb_change_store/tests.rs:18
← previous
next →
101–200 of 14,266, ranked by callers