@softspark/ai-toolkit 4.5.0 → 4.5.1
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/CHANGELOG.md +9 -0
- package/README.md +2 -2
- package/app/.claude-plugin/plugin.json +1 -1
- package/app/hooks/loop-guard.sh +2 -1
- package/llms-full.txt +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,15 @@ Versioning follows [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## v4.5.1 - ShellCheck fix for loop-guard hook (2026-06-02)
|
|
11
|
+
|
|
12
|
+
Patch release. Clears two ShellCheck `SC2034` warnings in `loop-guard.sh` that turned the `main` CI ShellCheck job red after v4.5.0. The publish workflow does not run ShellCheck, so v4.5.0 published despite the red CI; this patch makes `main` green again. No runtime behavior change.
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
- **`loop-guard.sh` ShellCheck** — `INPUT` now carries the `# shellcheck disable=SC2034` directive (it is consumed via the sourced `_hook-io.sh`, matching `guard-destructive.sh`), and `AI_TOOLKIT_HOOK_FORMAT` is `export`ed. `shellcheck --severity=warning app/hooks/*.sh` is clean.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
10
19
|
## v4.5.0 - Unicode-safety scanner, loop guard, honest instincts (2026-06-02)
|
|
11
20
|
|
|
12
21
|
Minor release. Hardens the security audit against invisible prompt injection, adds a repeated-action loop guard, fixes destructive-guard false positives, and turns the instinct system from a dormant promise into a working manual feature.
|
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
[](app/agents/)
|
|
9
9
|
[](tests/)
|
|
10
10
|
|
|
11
|
-
## What's New in v4.5.
|
|
11
|
+
## What's New in v4.5.1
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
v4.5.1 is a patch that clears a ShellCheck lint in the loop-guard hook. The v4.5.0 feature set: hardens the security audit against invisible prompt injection, adds a repeated-action loop guard, fixes destructive-guard false positives, and makes the instinct system actually work.
|
|
14
14
|
|
|
15
15
|
- **Unicode-safety scanner**: the skill/agent audit now flags invisible and smuggled Unicode (tag-block ASCII smuggling, Trojan Source bidi controls) across all shipped prompt text — a prompt-injection vector regex checks never caught. Runs in the `--ci` gate.
|
|
16
16
|
- **Loop guard**: a new advisory `PostToolUse` hook warns when the same action repeats, catching stuck loops that the `/repeat` failure-counter circuit breaker misses.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-toolkit",
|
|
3
3
|
"description": "Professional-grade Claude Code toolkit with persona presets, skill security auditor, expanded lifecycle hooks, experimental opt-in plugin packs, benchmark harvesting, and multi-tool support.",
|
|
4
|
-
"version": "4.5.
|
|
4
|
+
"version": "4.5.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "SoftSpark",
|
|
7
7
|
"url": "https://github.com/softspark"
|
package/app/hooks/loop-guard.sh
CHANGED
|
@@ -14,6 +14,7 @@ source "$(dirname "$0")/_profile-check.sh"
|
|
|
14
14
|
# shellcheck source=_hook-io.sh
|
|
15
15
|
source "$(dirname "$0")/_hook-io.sh"
|
|
16
16
|
|
|
17
|
+
# shellcheck disable=SC2034 # INPUT is consumed via sourced _hook-io.sh
|
|
17
18
|
INPUT=$(cat)
|
|
18
19
|
TOOL_NAME=$(hook_tool_name)
|
|
19
20
|
[ -z "$TOOL_NAME" ] && exit 0
|
|
@@ -52,7 +53,7 @@ fi
|
|
|
52
53
|
COUNT=$(grep -cxF "$HASH" "$LOG" 2>/dev/null | tr -d ' ')
|
|
53
54
|
[ -z "$COUNT" ] && COUNT=0
|
|
54
55
|
if [ "$COUNT" -ge "$THRESHOLD" ]; then
|
|
55
|
-
AI_TOOLKIT_HOOK_FORMAT=json
|
|
56
|
+
export AI_TOOLKIT_HOOK_FORMAT=json
|
|
56
57
|
hook_emit_context "PostToolUse" \
|
|
57
58
|
"Loop guard: the same ${TOOL_NAME} action has repeated ${COUNT}x within the last ${WINDOW} steps. If you are not making progress, stop and reassess — try a different approach or ask the user — instead of retrying the identical action."
|
|
58
59
|
fi
|
package/llms-full.txt
CHANGED
|
@@ -8895,7 +8895,7 @@ title: "Hooks Catalog"
|
|
|
8895
8895
|
category: reference
|
|
8896
8896
|
service: ai-toolkit
|
|
8897
8897
|
tags: [hooks, quality, safety, enforcement, settings.json]
|
|
8898
|
-
version: "1.5.
|
|
8898
|
+
version: "1.5.7"
|
|
8899
8899
|
created: "2026-03-27"
|
|
8900
8900
|
last_updated: "2026-05-25"
|
|
8901
8901
|
description: "Complete reference of all ai-toolkit hooks: events, scripts, installation, and runtime behavior."
|
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softspark/ai-toolkit",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.1",
|
|
4
4
|
"description": "AI coding toolkit: 107 skills, 44 agents, 12-editor write-through (Claude, Cursor, Windsurf, Copilot, Gemini, Cline, Roo, Aider, Augment, Antigravity, Codex, opencode), machine-enforced safety constitution, SARIF audit, signed npm provenance.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude",
|