MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / desired_view

Method desired_view

atomic-repository/src/ai/tools.rs:862–865  ·  view source on GitHub ↗

The view these tools read: this working copy's registered desired view. Every tool that reads recorded source or VCS nodes resolves it the same way `atomic query code` does, so a tool call and the equivalent CLI query observe the same state — including files that are recorded but not materialized in the working copy.

(&self)

Source from the content-addressed store, hash-verified

860 /// query observe the same state — including files that are recorded but
861 /// not materialized in the working copy.
862 fn desired_view(&self) -> Result<String, crate::RepositoryError> {
863 let working_copy = self.repo.require_working_copy_id()?;
864 self.repo.desired_view_name(working_copy)
865 }
866
867 fn exec_kg_search(&self, args: &serde_json::Value) -> Result<String, String> {
868 let query = args["query"]

Callers 2

exec_kg_searchMethod · 0.80
exec_code_searchMethod · 0.80

Calls 2

desired_view_nameMethod · 0.80

Tested by

no test coverage detected