From 1db11b815dd25b765f02d9f31ea6329c3a4dbeb0 Mon Sep 17 00:00:00 2001 From: easonysliu Date: Fri, 13 Mar 2026 23:59:58 +0800 Subject: [PATCH 1/2] fix: match 'Last updated' timestamp with or without bold markers The template outputs plain text `Last updated: [DATE]` but both update-agent-context scripts only matched `**Last updated**: [DATE]` (bold Markdown). Make the bold markers optional in the regex so the timestamp is refreshed regardless of formatting. Co-Authored-By: Claude (claude-opus-4-6) --- scripts/bash/update-agent-context.sh | 2 +- scripts/powershell/update-agent-context.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/bash/update-agent-context.sh b/scripts/bash/update-agent-context.sh index b0022fd45..a6ef4f568 100644 --- a/scripts/bash/update-agent-context.sh +++ b/scripts/bash/update-agent-context.sh @@ -476,7 +476,7 @@ update_existing_agent_file() { fi # Update timestamp - if [[ "$line" =~ \*\*Last\ updated\*\*:.*[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] ]]; then + if [[ "$line" =~ (\*\*)?Last\ updated(\*\*)?:.*[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] ]]; then echo "$line" | sed "s/[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]/$current_date/" >> "$temp_file" else echo "$line" >> "$temp_file" diff --git a/scripts/powershell/update-agent-context.ps1 b/scripts/powershell/update-agent-context.ps1 index 95e636ba1..30e1e0e69 100644 --- a/scripts/powershell/update-agent-context.ps1 +++ b/scripts/powershell/update-agent-context.ps1 @@ -331,7 +331,7 @@ function Update-ExistingAgentFile { if ($existingChanges -lt 2) { $output.Add($line); $existingChanges++ } continue } - if ($line -match '\*\*Last updated\*\*: .*\d{4}-\d{2}-\d{2}') { + if ($line -match '(\*\*)?Last updated(\*\*)?: .*\d{4}-\d{2}-\d{2}') { $output.Add(($line -replace '\d{4}-\d{2}-\d{2}',$Date.ToString('yyyy-MM-dd'))) continue } From 216cd33ea02d5000e545714c9f120d80524aee5e Mon Sep 17 00:00:00 2001 From: easonysliu Date: Sat, 14 Mar 2026 00:00:33 +0800 Subject: [PATCH 2/2] fix: add missing vibe and agy agent configs to CommandRegistrar Both agents are defined in AGENT_CONFIG in __init__.py but were absent from CommandRegistrar.AGENT_CONFIGS in extensions.py, which meant the extension system could never register commands for them. - vibe (Mistral Vibe): .vibe/prompts, markdown format - agy (Antigravity): .agent/commands, markdown format Co-Authored-By: Claude (claude-opus-4-6) --- src/specify_cli/extensions.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/specify_cli/extensions.py b/src/specify_cli/extensions.py index 156daff6a..5fdb2b440 100644 --- a/src/specify_cli/extensions.py +++ b/src/specify_cli/extensions.py @@ -835,6 +835,18 @@ class CommandRegistrar: "format": "markdown", "args": "$ARGUMENTS", "extension": "/SKILL.md" + }, + "vibe": { + "dir": ".vibe/prompts", + "format": "markdown", + "args": "$ARGUMENTS", + "extension": ".md" + }, + "agy": { + "dir": ".agent/commands", + "format": "markdown", + "args": "$ARGUMENTS", + "extension": ".md" } }