summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorStephanie Gredell <s.raide@gmail.com>2026-02-08 19:10:41 -0800
committerStephanie Gredell <s.raide@gmail.com>2026-02-08 19:10:41 -0800
commit791ad3a2df662ef5e340aeb3de8bae6dbdd338d0 (patch)
treef6c42e56c78b181a4a6435c1586e622300be36eb /lua
parenta5b4412a896824eadd22f73a4cbfb3fdeaebd209 (diff)
downloada4-791ad3a2df662ef5e340aeb3de8bae6dbdd338d0.tar.xz
a4-791ad3a2df662ef5e340aeb3de8bae6dbdd338d0.zip
Fix sentry bug
Diffstat (limited to 'lua')
-rw-r--r--lua/99/extensions/agents/init.lua4
-rw-r--r--lua/99/test/agents_spec.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/lua/99/extensions/agents/init.lua b/lua/99/extensions/agents/init.lua
index c53429e..c7ed4c9 100644
--- a/lua/99/extensions/agents/init.lua
+++ b/lua/99/extensions/agents/init.lua
@@ -85,7 +85,7 @@ function M.find_rules(rules, haystack)
--- @type _99.Agents.Rule[]
local out = {}
- for word in haystack:gmatch("@%S+") do
+ for word in haystack:gmatch("#%S+") do
local rule_string = word:sub(2)
local rule = M.get_rule_by_path(rules, rule_string)
if rule then
@@ -109,7 +109,7 @@ function M.by_name(rules, prompt)
--- @type _99.Agents.Rule[]
local out_rules = {}
for word in prompt:gmatch("%S+") do
- if word:sub(1, 1) == "@" then
+ if word:sub(1, 1) == "#" then
local w = word:sub(2)
local rules_by_name = rules.by_name[w]
if rules_by_name and found[w] == nil then
diff --git a/lua/99/test/agents_spec.lua b/lua/99/test/agents_spec.lua
index fa0a60e..8638e6e 100644
--- a/lua/99/test/agents_spec.lua
+++ b/lua/99/test/agents_spec.lua
@@ -104,7 +104,7 @@ describe("rules: <name>/SKILL.md", function()
"scratch/custom_rules_2/",
})
local rules = Agents.rules(_99)
- local prompt = "here is a test back-end @front-end and @vim.ls"
+ local prompt = "here is a test back-end #front-end and #vim.ls"
local found = Agents.by_name(rules, prompt)
eq({ "front-end" }, found.names)