@zibby/core 0.1.10 → 0.1.11
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
|
@@ -5,13 +5,30 @@ set -e
|
|
|
5
5
|
# Get script directory for relative imports
|
|
6
6
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
7
7
|
|
|
8
|
-
# Step 1: Check cursor-agent
|
|
9
|
-
|
|
8
|
+
# Step 1: Check cursor-agent (check actual locations, not just PATH)
|
|
9
|
+
CURSOR_AGENT_PATH=""
|
|
10
|
+
if command -v cursor-agent &> /dev/null; then
|
|
11
|
+
CURSOR_AGENT_PATH=$(command -v cursor-agent)
|
|
12
|
+
elif [ -x "$HOME/.local/bin/cursor-agent" ]; then
|
|
13
|
+
CURSOR_AGENT_PATH="$HOME/.local/bin/cursor-agent"
|
|
14
|
+
elif [ -x "$HOME/.cursor/bin/cursor-agent" ]; then
|
|
15
|
+
CURSOR_AGENT_PATH="$HOME/.cursor/bin/cursor-agent"
|
|
16
|
+
fi
|
|
17
|
+
|
|
18
|
+
if [ -z "$CURSOR_AGENT_PATH" ]; then
|
|
10
19
|
echo "⚠️ cursor-agent not found. Installing..."
|
|
11
20
|
curl https://cursor.com/install -fsS | bash
|
|
12
|
-
|
|
21
|
+
# Check again after install
|
|
22
|
+
if [ -x "$HOME/.local/bin/cursor-agent" ]; then
|
|
23
|
+
CURSOR_AGENT_PATH="$HOME/.local/bin/cursor-agent"
|
|
24
|
+
elif [ -x "$HOME/.cursor/bin/cursor-agent" ]; then
|
|
25
|
+
CURSOR_AGENT_PATH="$HOME/.cursor/bin/cursor-agent"
|
|
26
|
+
fi
|
|
13
27
|
fi
|
|
14
28
|
|
|
29
|
+
# Always ensure these directories are in PATH for this script
|
|
30
|
+
export PATH="$HOME/.cursor/bin:$HOME/.local/bin:$PATH"
|
|
31
|
+
|
|
15
32
|
# Step 2: Find Node.js absolute paths (Cursor GUI doesn't have shell PATH)
|
|
16
33
|
NODE_PATH=$(which node 2>/dev/null || echo "")
|
|
17
34
|
NPX_PATH=$(which npx 2>/dev/null || echo "")
|
|
@@ -14,7 +14,7 @@ import { formatAssertionChecklist } from './utils.mjs';
|
|
|
14
14
|
|
|
15
15
|
export const executeLiveNode = {
|
|
16
16
|
name: 'execute_live',
|
|
17
|
-
skills: [SKILLS.BROWSER, SKILLS.MEMORY],
|
|
17
|
+
skills: [SKILLS.BROWSER, ...(process.env.ZIBBY_MEMORY ? [SKILLS.MEMORY] : [])],
|
|
18
18
|
timeout: 600000,
|
|
19
19
|
|
|
20
20
|
prompt: (state) => {
|