generated from McMassiveNZ/blank-slate
Implement bounded repository navigation with repo-lens
CI / build (debug, map[compiler:appleclang os:macos-latest]) (push) Canceled after 0s
CI / build (debug, map[compiler:clang os:ubuntu-latest]) (push) Canceled after 0s
CI / build (debug, map[compiler:gcc os:ubuntu-latest]) (push) Canceled after 0s
CI / build (debug, map[compiler:msvc os:windows-latest]) (push) Canceled after 0s
CI / build (release, map[compiler:appleclang os:macos-latest]) (push) Canceled after 0s
CI / build (release, map[compiler:clang os:ubuntu-latest]) (push) Canceled after 0s
CI / build (release, map[compiler:gcc os:ubuntu-latest]) (push) Canceled after 0s
CI / build (release, map[compiler:msvc os:windows-latest]) (push) Canceled after 0s
CI / build (sanitizers, map[compiler:appleclang os:macos-latest]) (push) Canceled after 0s
CI / build (sanitizers, map[compiler:clang os:ubuntu-latest]) (push) Canceled after 0s
CI / build (sanitizers, map[compiler:gcc os:ubuntu-latest]) (push) Canceled after 0s
CI / build (sanitizers, map[compiler:msvc os:windows-latest]) (push) Canceled after 0s
CI / build (debug, map[compiler:appleclang os:macos-latest]) (push) Canceled after 0s
CI / build (debug, map[compiler:clang os:ubuntu-latest]) (push) Canceled after 0s
CI / build (debug, map[compiler:gcc os:ubuntu-latest]) (push) Canceled after 0s
CI / build (debug, map[compiler:msvc os:windows-latest]) (push) Canceled after 0s
CI / build (release, map[compiler:appleclang os:macos-latest]) (push) Canceled after 0s
CI / build (release, map[compiler:clang os:ubuntu-latest]) (push) Canceled after 0s
CI / build (release, map[compiler:gcc os:ubuntu-latest]) (push) Canceled after 0s
CI / build (release, map[compiler:msvc os:windows-latest]) (push) Canceled after 0s
CI / build (sanitizers, map[compiler:appleclang os:macos-latest]) (push) Canceled after 0s
CI / build (sanitizers, map[compiler:clang os:ubuntu-latest]) (push) Canceled after 0s
CI / build (sanitizers, map[compiler:gcc os:ubuntu-latest]) (push) Canceled after 0s
CI / build (sanitizers, map[compiler:msvc os:windows-latest]) (push) Canceled after 0s
- Add map, find, and around commands with repository root discovery - Stream literal ripgrep searches with match counts and result limits - Add direct subprocess execution and explicit error returns - Disable C++ exceptions and add navigation tests - Support CMake installation and document builds and deployment - Add a reusable agent skill and document skill discovery
This commit is contained in:
1 parent
70c43b6a68
commit
a0fbb9f50e
22 files changed
+1185
-112
No files matched your search
+21
-5
@@ -1,10 +1,26 @@
|
||||
#include "navigation.hpp"
|
||||
#include "repo_tool_map.hpp"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
namespace rl
|
||||
{
|
||||
auto RepoLensToolMap::execute([[maybe_unused]] std::string_view args) noexcept -> exit_code
|
||||
{
|
||||
//@AGENT_TODO: Map tool implementation goes here
|
||||
return 0;
|
||||
}
|
||||
auto RepoLensToolMap::execute(arguments args) noexcept -> exit_code
|
||||
{
|
||||
if (args.size() != 1 || args[0].empty())
|
||||
{
|
||||
std::cerr << "map: Usage: repo map <term> (non-empty term)" << '\n';
|
||||
return 2;
|
||||
}
|
||||
std::filesystem::path root;
|
||||
std::string error;
|
||||
std::vector<std::string> lines;
|
||||
if (!repository_root(root, error) || !read_lines(root / "docs" / "PROJECTMAP.md", lines, error))
|
||||
{
|
||||
std::cerr << "map: " << error << '\n';
|
||||
return 2;
|
||||
}
|
||||
std::cout << map_sections(lines, args[0]);
|
||||
return 0;
|
||||
}
|
||||
} // namespace rl
|
||||
Reference in new issue
Block a user