agentvibes 2.13.4 → 2.13.6
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.
|
@@ -7,7 +7,27 @@
|
|
|
7
7
|
|
|
8
8
|
set -euo pipefail
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
# Security: Use secure temp directory with restrictive permissions
|
|
11
|
+
# Must match the logic in tts-queue.sh exactly
|
|
12
|
+
if [[ -n "${XDG_RUNTIME_DIR:-}" ]] && [[ -d "$XDG_RUNTIME_DIR" ]]; then
|
|
13
|
+
QUEUE_DIR="$XDG_RUNTIME_DIR/agentvibes-tts-queue"
|
|
14
|
+
else
|
|
15
|
+
# Fallback to user-specific temp directory
|
|
16
|
+
QUEUE_DIR="/tmp/agentvibes-tts-queue-$USER"
|
|
17
|
+
fi
|
|
18
|
+
|
|
19
|
+
# Security: Validate queue directory exists and has correct ownership
|
|
20
|
+
if [[ ! -d "$QUEUE_DIR" ]]; then
|
|
21
|
+
echo "Error: Queue directory does not exist: $QUEUE_DIR" >&2
|
|
22
|
+
exit 1
|
|
23
|
+
fi
|
|
24
|
+
|
|
25
|
+
# Security: Verify we own the queue directory (prevent symlink attacks)
|
|
26
|
+
if [[ "$(stat -c '%u' "$QUEUE_DIR" 2>/dev/null || stat -f '%u' "$QUEUE_DIR" 2>/dev/null)" != "$(id -u)" ]]; then
|
|
27
|
+
echo "Error: Queue directory not owned by current user" >&2
|
|
28
|
+
exit 1
|
|
29
|
+
fi
|
|
30
|
+
|
|
11
31
|
WORKER_PID_FILE="$QUEUE_DIR/worker.pid"
|
|
12
32
|
IDLE_TIMEOUT=5 # Exit after 5 seconds of no new requests
|
|
13
33
|
|
|
@@ -32,7 +52,7 @@ elif [[ -f "$HOME/.claude/tts-speaker-delay.txt" ]]; then
|
|
|
32
52
|
fi
|
|
33
53
|
|
|
34
54
|
# Trap to clean up on exit
|
|
35
|
-
trap
|
|
55
|
+
trap 'rm -f "$WORKER_PID_FILE"' EXIT
|
|
36
56
|
|
|
37
57
|
# Process queue items
|
|
38
58
|
process_queue() {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "agentvibes",
|
|
4
|
-
"version": "2.13.
|
|
4
|
+
"version": "2.13.6",
|
|
5
5
|
"description": "Now your AI Agents can finally talk back! Professional TTS voice for Claude Code and Claude Desktop (via MCP) with multi-provider support.",
|
|
6
6
|
"homepage": "https://agentvibes.org",
|
|
7
7
|
"keywords": [
|