create-merlin-brain 5.0.0 → 5.0.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.
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# session start.
|
|
7
7
|
#
|
|
8
8
|
# Contract:
|
|
9
|
-
# - Reads JSON from stdin: {"
|
|
9
|
+
# - Reads JSON from stdin: {"prompt": "..."}
|
|
10
10
|
# - Outputs {} when no pattern matches (no noise)
|
|
11
11
|
# - Outputs additionalContext JSON when a routing signal is found
|
|
12
12
|
# - MUST be <100ms: no network calls, no merlin CLI, no curl
|
|
@@ -23,13 +23,13 @@ fi
|
|
|
23
23
|
|
|
24
24
|
[ -z "$input" ] && echo "{}" && exit 0
|
|
25
25
|
|
|
26
|
-
# ── Extract
|
|
26
|
+
# ── Extract prompt ────────────────────────────────────────────────────────
|
|
27
27
|
prompt=""
|
|
28
28
|
if command -v jq >/dev/null 2>&1; then
|
|
29
|
-
prompt=$(echo "$input" | jq -r '.
|
|
29
|
+
prompt=$(echo "$input" | jq -r '.prompt // empty' 2>/dev/null || true)
|
|
30
30
|
else
|
|
31
31
|
# Minimal extraction without jq — strip surrounding JSON scaffolding
|
|
32
|
-
prompt=$(echo "$input" | sed 's/.*"
|
|
32
|
+
prompt=$(echo "$input" | sed 's/.*"prompt"[[:space:]]*:[[:space:]]*"\(.*\)".*/\1/' 2>/dev/null || true)
|
|
33
33
|
fi
|
|
34
34
|
|
|
35
35
|
[ -z "$prompt" ] && echo "{}" && exit 0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-merlin-brain",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "Merlin - The Ultimate AI Brain for Claude Code, Codex, and other AI CLIs. One install: workflows, agents, loop, and Sights MCP server.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/server/index.js",
|