npm install
npm run verify
npm run smoke:isoBuild generated harness config locally:
npm run build:configThe generated config files are ignored in git. They are created for local smoke testing and during package packing.
npx -p @agent-pattern-labs/leads-rig create-public-leads-harness my-lead-project
cd my-lead-project
npm installThen edit:
config/profile.ymldata/domains.tsv
Use environment variables for secrets:
export PUBLIC_LEADS_API=https://cold-agent-leads.example.com
export PUBLIC_LEADS_API_TOKEN=...
export PUBLIC_LEADS_OPERATOR_EMAIL=admin@example.comnpx public-leads validate --input examples/sample-leads.jsonnpx public-leads crawl --input data/domains.tsv --out data/lead-results.json
npx public-leads pipeline --input data/domains.tsv --out data/lead-results.jsonPUBLIC_LEADS_API=https://cold-agent-leads.example.com npx public-leads ingest --input examples/sample-leads.json --dry-run --out output/sample-ingest.jsonnpx public-leads pipeline --input data/domains.tsv --ingest
npx public-leads ingest --input data/lead-results.jsonRun from /Users/charlie/Razroo/cold-agent-leads without local Postgres or a local API:
cd /Users/charlie/Razroo/cold-agent-leads
export PUBLIC_LEADS_API=https://cold-agent-leads.example.com
export PUBLIC_LEADS_API_TOKEN=...
export PUBLIC_LEADS_OPERATOR_EMAIL=admin@example.com
npx -p @agent-pattern-labs/leads-rig public-leads pipeline \
--domains example.com \
--ingest \
--out data/lead-results.json \
--manifest data/lead-manifest.json \
--ingest-out data/ingest-response.jsonRequired request settings come from flags, environment, or config/profile.yml:
api.base_urlapi.ingest_pathapi.operator_emailapi.operator_email_headerapi.auth_headerapi.auth_schemeapi.auth_token_env
Use api.target_project only when intentionally reading credentials from a local Cold Agent Leads checkout. Upstream ingest should use PUBLIC_LEADS_API, PUBLIC_LEADS_API_TOKEN, and PUBLIC_LEADS_OPERATOR_EMAIL.
Create batch/batch-input.tsv:
id domain company notes
1 example.com Example Seed target
Run:
batch/batch-runner.sh --dry-run
batch/batch-runner.sh --parallel 2