agent-browser-stealth 0.17.0-fork.2 → 0.24.0-fork.2
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/README.md +1256 -240
- package/bin/agent-browser-darwin-arm64 +0 -0
- package/bin/agent-browser-darwin-x64 +0 -0
- package/bin/agent-browser-linux-arm64 +0 -0
- package/bin/agent-browser-linux-x64 +0 -0
- package/bin/agent-browser-win32-x64.exe +0 -0
- package/bin/agent-browser.js +13 -2
- package/extensions/tab-group-cdp/content-script.js +425 -0
- package/extensions/tab-group-cdp/icons/icon.svg +7 -0
- package/extensions/tab-group-cdp/manifest.json +34 -0
- package/extensions/tab-group-cdp/page-bridge.js +133 -0
- package/extensions/tab-group-cdp/service-worker.js +2249 -0
- package/extensions/tab-group-cdp/sidepanel.css +258 -0
- package/extensions/tab-group-cdp/sidepanel.html +28 -0
- package/extensions/tab-group-cdp/sidepanel.js +1225 -0
- package/package.json +17 -69
- package/scripts/build-all-platforms.sh +6 -0
- package/scripts/check-version-sync.js +14 -2
- package/scripts/copy-native.js +8 -50
- package/scripts/postinstall.js +149 -165
- package/scripts/windows-debug/provision.sh +220 -0
- package/scripts/windows-debug/run.sh +92 -0
- package/scripts/windows-debug/start.sh +43 -0
- package/scripts/windows-debug/stop.sh +28 -0
- package/scripts/windows-debug/sync.sh +27 -0
- package/skills/agent-browser/SKILL.md +256 -159
- package/skills/agent-browser/references/authentication.md +101 -0
- package/skills/agent-browser/references/commands.md +34 -2
- package/skills/agent-browser/references/snapshot-refs.md +25 -0
- package/skills/agentcore/SKILL.md +115 -0
- package/skills/dogfood/SKILL.md +4 -2
- package/skills/electron/SKILL.md +26 -2
- package/skills/slack/SKILL.md +0 -9
- package/skills/slack/references/slack-tasks.md +2 -8
- package/skills/vercel-sandbox/SKILL.md +280 -0
- package/bin/agent-browser-local +0 -0
- package/bin/agent-browser-stealth +0 -0
- package/bin/agent-browser-stealth.d +0 -1
- package/dist/action-policy.d.ts +0 -14
- package/dist/action-policy.d.ts.map +0 -1
- package/dist/action-policy.js +0 -253
- package/dist/action-policy.js.map +0 -1
- package/dist/actions.d.ts +0 -21
- package/dist/actions.d.ts.map +0 -1
- package/dist/actions.js +0 -2139
- package/dist/actions.js.map +0 -1
- package/dist/auth-cli.d.ts +0 -2
- package/dist/auth-cli.d.ts.map +0 -1
- package/dist/auth-cli.js +0 -97
- package/dist/auth-cli.js.map +0 -1
- package/dist/auth-vault.d.ts +0 -36
- package/dist/auth-vault.d.ts.map +0 -1
- package/dist/auth-vault.js +0 -125
- package/dist/auth-vault.js.map +0 -1
- package/dist/browser.d.ts +0 -665
- package/dist/browser.d.ts.map +0 -1
- package/dist/browser.js +0 -3210
- package/dist/browser.js.map +0 -1
- package/dist/confirmation.d.ts +0 -8
- package/dist/confirmation.d.ts.map +0 -1
- package/dist/confirmation.js +0 -30
- package/dist/confirmation.js.map +0 -1
- package/dist/daemon.d.ts +0 -78
- package/dist/daemon.d.ts.map +0 -1
- package/dist/daemon.js +0 -744
- package/dist/daemon.js.map +0 -1
- package/dist/diff.d.ts +0 -18
- package/dist/diff.d.ts.map +0 -1
- package/dist/diff.js +0 -271
- package/dist/diff.js.map +0 -1
- package/dist/domain-filter.d.ts +0 -28
- package/dist/domain-filter.d.ts.map +0 -1
- package/dist/domain-filter.js +0 -149
- package/dist/domain-filter.js.map +0 -1
- package/dist/encryption.d.ts +0 -73
- package/dist/encryption.d.ts.map +0 -1
- package/dist/encryption.js +0 -171
- package/dist/encryption.js.map +0 -1
- package/dist/ios-actions.d.ts +0 -11
- package/dist/ios-actions.d.ts.map +0 -1
- package/dist/ios-actions.js +0 -228
- package/dist/ios-actions.js.map +0 -1
- package/dist/ios-manager.d.ts +0 -266
- package/dist/ios-manager.d.ts.map +0 -1
- package/dist/ios-manager.js +0 -1073
- package/dist/ios-manager.js.map +0 -1
- package/dist/protocol.d.ts +0 -26
- package/dist/protocol.d.ts.map +0 -1
- package/dist/protocol.js +0 -990
- package/dist/protocol.js.map +0 -1
- package/dist/snapshot.d.ts +0 -67
- package/dist/snapshot.d.ts.map +0 -1
- package/dist/snapshot.js +0 -514
- package/dist/snapshot.js.map +0 -1
- package/dist/state-utils.d.ts +0 -77
- package/dist/state-utils.d.ts.map +0 -1
- package/dist/state-utils.js +0 -178
- package/dist/state-utils.js.map +0 -1
- package/dist/stealth.d.ts +0 -41
- package/dist/stealth.d.ts.map +0 -1
- package/dist/stealth.js +0 -1743
- package/dist/stealth.js.map +0 -1
- package/dist/stream-server.d.ts +0 -117
- package/dist/stream-server.d.ts.map +0 -1
- package/dist/stream-server.js +0 -309
- package/dist/stream-server.js.map +0 -1
- package/dist/types.d.ts +0 -973
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/scripts/check-creepjs-headless.js +0 -137
- package/scripts/check-daemon-pid-recovery.js +0 -148
- package/scripts/check-sannysoft-webdriver.js +0 -112
- package/scripts/check-stealth-regression.js +0 -199
- package/scripts/check-turnstile-testkey.ts +0 -125
- package/scripts/clawhub-sync.sh +0 -27
- package/scripts/sync-upstream.sh +0 -142
- package/scripts/verify-bundled-binaries.js +0 -71
- package/scripts/verify-native-version.js +0 -48
- package/scripts/verify-packed-host-binary.js +0 -88
- package/scripts/verify-registry-host-binary.js +0 -120
- package/skills/agent-browser-stealth/SKILL.md +0 -127
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
5
|
+
INSTANCE_FILE="$SCRIPT_DIR/.instance"
|
|
6
|
+
|
|
7
|
+
if [[ ! -f "$INSTANCE_FILE" ]]; then
|
|
8
|
+
echo "Error: No instance provisioned. Run ./scripts/windows-debug/provision.sh first."
|
|
9
|
+
exit 1
|
|
10
|
+
fi
|
|
11
|
+
|
|
12
|
+
if [[ $# -eq 0 ]]; then
|
|
13
|
+
echo "Usage: ./scripts/windows-debug/run.sh \"<powershell-command>\""
|
|
14
|
+
echo ""
|
|
15
|
+
echo "Examples:"
|
|
16
|
+
echo " ./scripts/windows-debug/run.sh \"cd C:\\agent-browser && cargo test\""
|
|
17
|
+
echo " ./scripts/windows-debug/run.sh \"Get-Content C:\\bootstrap.log\""
|
|
18
|
+
echo " ./scripts/windows-debug/run.sh \"cd C:\\agent-browser && cargo test e2e -- --ignored --test-threads=1\""
|
|
19
|
+
exit 1
|
|
20
|
+
fi
|
|
21
|
+
|
|
22
|
+
source "$INSTANCE_FILE"
|
|
23
|
+
export AWS_DEFAULT_REGION="$REGION"
|
|
24
|
+
|
|
25
|
+
COMMAND="$*"
|
|
26
|
+
|
|
27
|
+
PARAMS_FILE=$(mktemp)
|
|
28
|
+
trap "rm -f $PARAMS_FILE" EXIT
|
|
29
|
+
|
|
30
|
+
python3 -c '
|
|
31
|
+
import json, sys
|
|
32
|
+
path_setup = "$env:PATH = \"$env:USERPROFILE\\.cargo\\bin;C:\\Program Files\\Git\\cmd;$env:PATH\""
|
|
33
|
+
cmd = path_setup + "\n" + sys.argv[1]
|
|
34
|
+
json.dump({"commands": [cmd]}, open(sys.argv[2], "w"))
|
|
35
|
+
' "$COMMAND" "$PARAMS_FILE"
|
|
36
|
+
|
|
37
|
+
COMMAND_ID=$(aws ssm send-command \
|
|
38
|
+
--instance-ids "$INSTANCE_ID" \
|
|
39
|
+
--document-name "AWS-RunPowerShellScript" \
|
|
40
|
+
--parameters "file://$PARAMS_FILE" \
|
|
41
|
+
--timeout-seconds 3600 \
|
|
42
|
+
--query "Command.CommandId" --output text)
|
|
43
|
+
|
|
44
|
+
echo "Command sent (ID: $COMMAND_ID). Waiting..." >&2
|
|
45
|
+
|
|
46
|
+
while true; do
|
|
47
|
+
RESULT=$(aws ssm get-command-invocation \
|
|
48
|
+
--command-id "$COMMAND_ID" \
|
|
49
|
+
--instance-id "$INSTANCE_ID" \
|
|
50
|
+
--output json 2>&1) || true
|
|
51
|
+
|
|
52
|
+
STATUS=$(echo "$RESULT" | python3 -c "
|
|
53
|
+
import sys, json
|
|
54
|
+
try:
|
|
55
|
+
print(json.loads(sys.stdin.read()).get('Status', 'Unknown'))
|
|
56
|
+
except:
|
|
57
|
+
print('Pending')
|
|
58
|
+
" 2>/dev/null)
|
|
59
|
+
|
|
60
|
+
case "$STATUS" in
|
|
61
|
+
Success)
|
|
62
|
+
echo "$RESULT" | python3 -c "
|
|
63
|
+
import sys, json
|
|
64
|
+
r = json.loads(sys.stdin.read())
|
|
65
|
+
out = r.get('StandardOutputContent', '').rstrip()
|
|
66
|
+
err = r.get('StandardErrorContent', '').rstrip()
|
|
67
|
+
if out:
|
|
68
|
+
print(out)
|
|
69
|
+
if err:
|
|
70
|
+
print(err, file=sys.stderr)
|
|
71
|
+
"
|
|
72
|
+
exit 0
|
|
73
|
+
;;
|
|
74
|
+
Failed|TimedOut|Cancelled)
|
|
75
|
+
echo "$RESULT" | python3 -c "
|
|
76
|
+
import sys, json
|
|
77
|
+
r = json.loads(sys.stdin.read())
|
|
78
|
+
out = r.get('StandardOutputContent', '').rstrip()
|
|
79
|
+
err = r.get('StandardErrorContent', '').rstrip()
|
|
80
|
+
if out:
|
|
81
|
+
print(out)
|
|
82
|
+
if err:
|
|
83
|
+
print(err, file=sys.stderr)
|
|
84
|
+
"
|
|
85
|
+
echo "Command $STATUS." >&2
|
|
86
|
+
exit 1
|
|
87
|
+
;;
|
|
88
|
+
*)
|
|
89
|
+
sleep 3
|
|
90
|
+
;;
|
|
91
|
+
esac
|
|
92
|
+
done
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
5
|
+
INSTANCE_FILE="$SCRIPT_DIR/.instance"
|
|
6
|
+
|
|
7
|
+
if [[ ! -f "$INSTANCE_FILE" ]]; then
|
|
8
|
+
echo "Error: No instance provisioned. Run ./scripts/windows-debug/provision.sh first."
|
|
9
|
+
exit 1
|
|
10
|
+
fi
|
|
11
|
+
|
|
12
|
+
source "$INSTANCE_FILE"
|
|
13
|
+
export AWS_DEFAULT_REGION="$REGION"
|
|
14
|
+
|
|
15
|
+
STATE=$(aws ec2 describe-instances \
|
|
16
|
+
--instance-ids "$INSTANCE_ID" \
|
|
17
|
+
--query "Reservations[0].Instances[0].State.Name" --output text)
|
|
18
|
+
|
|
19
|
+
if [[ "$STATE" == "running" ]]; then
|
|
20
|
+
echo "Instance $INSTANCE_ID is already running."
|
|
21
|
+
else
|
|
22
|
+
echo "Starting instance $INSTANCE_ID..."
|
|
23
|
+
aws ec2 start-instances --instance-ids "$INSTANCE_ID" --no-cli-pager
|
|
24
|
+
echo "Waiting for running state..."
|
|
25
|
+
aws ec2 wait instance-running --instance-ids "$INSTANCE_ID"
|
|
26
|
+
echo "Instance is running."
|
|
27
|
+
fi
|
|
28
|
+
|
|
29
|
+
echo "Waiting for SSM agent connectivity..."
|
|
30
|
+
for i in $(seq 1 30); do
|
|
31
|
+
SSM_STATUS=$(aws ssm describe-instance-information \
|
|
32
|
+
--filters "Key=InstanceIds,Values=$INSTANCE_ID" \
|
|
33
|
+
--query "InstanceInformationList[0].PingStatus" --output text 2>/dev/null || echo "None")
|
|
34
|
+
if [[ "$SSM_STATUS" == "Online" ]]; then
|
|
35
|
+
echo "SSM agent is online. Ready for commands."
|
|
36
|
+
echo " ./scripts/windows-debug/run.sh \"your-command-here\""
|
|
37
|
+
exit 0
|
|
38
|
+
fi
|
|
39
|
+
sleep 10
|
|
40
|
+
done
|
|
41
|
+
|
|
42
|
+
echo "Warning: SSM agent not online after 5 minutes. The instance may still be booting."
|
|
43
|
+
echo "Try again in a minute: ./scripts/windows-debug/run.sh \"hostname\""
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
5
|
+
INSTANCE_FILE="$SCRIPT_DIR/.instance"
|
|
6
|
+
|
|
7
|
+
if [[ ! -f "$INSTANCE_FILE" ]]; then
|
|
8
|
+
echo "Error: No instance provisioned. Nothing to stop."
|
|
9
|
+
exit 1
|
|
10
|
+
fi
|
|
11
|
+
|
|
12
|
+
source "$INSTANCE_FILE"
|
|
13
|
+
export AWS_DEFAULT_REGION="$REGION"
|
|
14
|
+
|
|
15
|
+
STATE=$(aws ec2 describe-instances \
|
|
16
|
+
--instance-ids "$INSTANCE_ID" \
|
|
17
|
+
--query "Reservations[0].Instances[0].State.Name" --output text)
|
|
18
|
+
|
|
19
|
+
if [[ "$STATE" == "stopped" ]]; then
|
|
20
|
+
echo "Instance $INSTANCE_ID is already stopped."
|
|
21
|
+
exit 0
|
|
22
|
+
fi
|
|
23
|
+
|
|
24
|
+
echo "Stopping instance $INSTANCE_ID..."
|
|
25
|
+
aws ec2 stop-instances --instance-ids "$INSTANCE_ID" --no-cli-pager
|
|
26
|
+
echo "Waiting for stopped state..."
|
|
27
|
+
aws ec2 wait instance-stopped --instance-ids "$INSTANCE_ID"
|
|
28
|
+
echo "Instance stopped. No compute charges while stopped (storage only: ~$0.64/mo)."
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
5
|
+
RUN="$SCRIPT_DIR/run.sh"
|
|
6
|
+
|
|
7
|
+
BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "main")
|
|
8
|
+
REMOTE_URL=$(git remote get-url origin 2>/dev/null || echo "https://github.com/vercel-labs/agent-browser.git")
|
|
9
|
+
|
|
10
|
+
echo "Syncing branch '$BRANCH' on Windows instance..."
|
|
11
|
+
|
|
12
|
+
"$RUN" "
|
|
13
|
+
cd C:\agent-browser
|
|
14
|
+
git remote set-url origin '$REMOTE_URL'
|
|
15
|
+
git fetch origin
|
|
16
|
+
git checkout -B '$BRANCH' 'origin/$BRANCH'
|
|
17
|
+
git log -1 --oneline
|
|
18
|
+
"
|
|
19
|
+
|
|
20
|
+
echo ""
|
|
21
|
+
echo "Branch synced. Rebuilding..."
|
|
22
|
+
|
|
23
|
+
"$RUN" "
|
|
24
|
+
cd C:\agent-browser
|
|
25
|
+
cargo build --release --manifest-path cli\Cargo.toml
|
|
26
|
+
Write-Host 'Build complete.'
|
|
27
|
+
"
|