specweave 1.0.296 → 1.0.297
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "specweave",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.297",
|
|
4
4
|
"description": "Spec-driven development framework for AI coding agents. Works with Claude Code, Codex, Antigravity, Cursor, Copilot & more. 100+ skills, 49 CLI commands, verified skill certification, autonomous execution, and living documentation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -93,6 +93,23 @@ else
|
|
|
93
93
|
PROMPT=$(echo "$INPUT" | grep -oP '"prompt"\s*:\s*"\K[^"]*' 2>/dev/null || echo "")
|
|
94
94
|
fi
|
|
95
95
|
|
|
96
|
+
# ==============================================================================
|
|
97
|
+
# EARLY EXIT FOR BUILT-IN SLASH COMMANDS (v1.0.280)
|
|
98
|
+
# ==============================================================================
|
|
99
|
+
# Claude Code has built-in slash commands (/context, /help, /clear, /compact,
|
|
100
|
+
# /memory, /permissions, /cost, /doctor, /login, /logout, /config, etc.)
|
|
101
|
+
# SpecWeave MUST NOT intercept, delay, or inject context into these commands.
|
|
102
|
+
# Only /sw: and /sw-*: prefixed commands belong to SpecWeave.
|
|
103
|
+
#
|
|
104
|
+
# Without this guard, built-in commands like /context go through the LLM
|
|
105
|
+
# detect-intent pipeline (5-15s delay) and may get incorrect additionalContext
|
|
106
|
+
# injected, causing them to fail or behave unexpectedly.
|
|
107
|
+
if echo "$PROMPT" | grep -qE "^[[:space:]]*/[a-zA-Z][a-zA-Z0-9_-]*($|[[:space:]])" && \
|
|
108
|
+
! echo "$PROMPT" | grep -qiE "^[[:space:]]*/sw[-:]"; then
|
|
109
|
+
echo '{"decision":"approve"}'
|
|
110
|
+
exit 0
|
|
111
|
+
fi
|
|
112
|
+
|
|
96
113
|
# ==============================================================================
|
|
97
114
|
# PROJECT-SCOPE INITIALIZATION GUARD (v1.0.235)
|
|
98
115
|
# ==============================================================================
|