-
Notifications
You must be signed in to change notification settings - Fork 0
fix: post-1.0.0 code review — ponytail custom skills, auth health scoring, CI defects #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d96effd
bcf79d0
f7908eb
3d3024f
977030b
60d9ef3
becdbee
0e4052f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,10 @@ | ||
| /target | ||
| /docs/superpowers/ | ||
| /.worktrees/ | ||
|
|
||
| # Local onpush doc-generation tooling (machine-specific, not part of the project) | ||
| /.onpush/ | ||
| /onpush_run.log | ||
| /install_onpush.ps1 | ||
| /run_onpush.bat | ||
| /serve_docs.py |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,6 +36,11 @@ static CUSTOM_SKILLS: LazyLock<HashMap<String, String>> = LazyLock::new(|| { | |
| let path = entry.path(); | ||
| if path.extension().map_or(false, |e| e == "md") { | ||
| if let Some(name) = path.file_stem().and_then(|s| s.to_str()) { | ||
| // Reserved built-in mode/skill names can't be shadowed by | ||
| // custom files — a user's full.md must not hijack full mode. | ||
| if crate::config::VALID_MODES.contains(&name) { | ||
| continue; | ||
| } | ||
|
Comment on lines
+39
to
+43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Confirm VALID_MODES contents and whether reserved skill names overlap.
rg -n 'VALID_MODES' crates/ponytail/src/config.rs -A5 -B2
rg -n 'fn normalize_mode|fn all_mode_names|fn all_skill_names' crates/ponytail/src/config.rs crates/ponytail/src/switcher.rs -A10Repository: getappz/agentflare Length of output: 2825 🏁 Script executed: #!/bin/bash
sed -n '1,220p' crates/ponytail/src/sub_skills.rs
sed -n '1,120p' crates/ponytail/src/config.rs
sed -n '1,120p' crates/ponytail/src/switcher.rsRepository: getappz/agentflare Length of output: 13335 Normalize the reserved-name check 🤖 Prompt for AI Agents |
||
| if let Ok(body) = std::fs::read_to_string(&path) { | ||
| if !body.is_empty() { | ||
| map.insert(name.to_string(), body); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: getappz/agentflare
Length of output: 13666
Wire
PonytailAction::Set/Defaultthroughnormalize_extended_mode—src/cli/ponytail.rs:104-125still usesnormalize_config_mode, so directset/defaultcommands reject custom skill names asinvalid modebefore they reachset_default_mode/set_active.PromptSubmitalready uses the extended path.🤖 Prompt for AI Agents