Skip to content

Commit 3be995c

Browse files
authored
Merge pull request #7 from PredicateSystems/demo
Demo
2 parents 94918f9 + c4fe0c1 commit 3be995c

19 files changed

Lines changed: 3997 additions & 11 deletions

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,8 @@ traces/
5656
artifacts/
5757
tmp/
5858
temp/
59+
60+
# Demo output and runtime files
61+
demo/.env
62+
demo/output/
63+
demo/*.log

.pre-commit-config.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ repos:
66
rev: v4.5.0
77
hooks:
88
- id: trailing-whitespace
9+
exclude: ^(venv/|\.venv/|build/|dist/|demo/)
910
- id: end-of-file-fixer
11+
exclude: ^(venv/|\.venv/|build/|dist/|demo/)
1012
- id: check-yaml
1113
- id: check-json
1214
- id: check-added-large-files
@@ -33,7 +35,7 @@ repos:
3335
hooks:
3436
- id: isort
3537
args: ["--profile=black", "--line-length=100"]
36-
exclude: ^(venv/|\.venv/|build/|dist/)
38+
exclude: ^(venv/|\.venv/|build/|dist/|demo/)
3739

3840
# Flake8 for style guide enforcement
3941
- repo: https://github.com/pycqa/flake8
@@ -78,14 +80,6 @@ repos:
7880
args: ["--py311-plus"]
7981
exclude: ^(venv/|\.venv/|build/|dist/)
8082

81-
# Markdown linting for docs-heavy workflows
82-
- repo: https://github.com/DavidAnson/markdownlint-cli2
83-
rev: v0.14.0
84-
hooks:
85-
- id: markdownlint-cli2
86-
args: ["--config", ".markdownlint.yaml"]
87-
files: \.md$
88-
8983
default_language_version:
9084
python: python3.11
9185

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ pip install predicate-secure[all]
2929

3030
## Quick Start
3131

32+
[User Manual](./docs/user-manual.md)
33+
3234
```python
3335
from predicate_secure import SecureAgent
3436
from browser_use import Agent

demo/.env.example

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Predicate Secure Demo Environment Variables
2+
# Copy from .env.example and customize
3+
4+
# Browser display (false = show browser for debugging)
5+
BROWSER_HEADLESS=false
6+
7+
# Predicate API key (optional - leave unset to use FREE TIER)
8+
# Free tier uses local browser extension only (sufficient for demo)
9+
# PREDICATE_API_KEY=
10+
11+
# LLM model for verification
12+
LLM_MODEL_NAME=Qwen/Qwen2.5-7B-Instruct
13+
LLM_DEVICE=auto
14+
LLM_MAX_TOKENS=512
15+
LLM_TEMPERATURE=0.0
16+
17+
# Demo task
18+
DEMO_TASK_ID=example-search-task
19+
DEMO_START_URL=https://www.example.com
20+
DEMO_TASK_DESCRIPTION=Navigate to example.com and verify page loads
21+
DEMO_PRINCIPAL_ID=agent:demo-browser
22+
DEMO_TENANT_ID=tenant-demo
23+
DEMO_OUTPUT_DIR=demo/output

0 commit comments

Comments
 (0)