Pull out plain rules file loading code into a new agent_rules crate (#28383)

Also renames for rules file templated into the system prompt

Release Notes:

- N/A
This commit is contained in:
Michael Sloan
2025-04-09 01:31:56 +00:00
committed by GitHub
parent 020a1071d5
commit 301fc7cd7b
10 changed files with 125 additions and 64 deletions
Generated
+14
View File
@@ -52,6 +52,7 @@ dependencies = [
name = "agent"
version = "0.1.0"
dependencies = [
"agent_rules",
"anyhow",
"assistant_context_editor",
"assistant_settings",
@@ -161,6 +162,19 @@ dependencies = [
"workspace-hack",
]
[[package]]
name = "agent_rules"
version = "0.1.0"
dependencies = [
"anyhow",
"fs",
"gpui",
"indoc",
"prompt_store",
"util",
"worktree",
]
[[package]]
name = "ahash"
version = "0.7.8"