mirror of
https://github.com/citeworthyio/seo-agent.git
synced 2026-08-11 13:22:39 +02:00
Genericized from its first home (alanwizemann.com) into a reusable tool: - New src/config.ts centralizes the site profile, read from wrangler vars with generic fallbacks (SITE_NAME, SITE_DESCRIPTION, TITLE_BRAND_SUFFIX, SHELL_TITLE, ARTICLE_PATH_PREFIX, ARTICLE_API_TEMPLATE). Only SITE_URL + the AGENT_TOKEN secret are required; everything else is optional with safe defaults. - Removed the three site-specific hardcodes: crawl user-agent, the AI system prompt (now built from config), and the title/shell-title/article-JSON-LD rules (now config-gated — disabled cleanly when unset). - Standalone tooling: package.json (own wrangler + typescript, npm scripts), tsconfig, .gitignore, .dev.vars.example, wrangler.example.jsonc (annotated template). Real config + secrets stay gitignored. - README rewritten for adopters: clone→configure→deploy flow, a self-contained KV-merge injector contract (no monorepo path references), full config table. Zero deps beyond wrangler/typescript; typechecks standalone (tsc exit 0). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
12 lines
525 B
Plaintext
12 lines
525 B
Plaintext
# Local-dev secrets for `wrangler dev`. Copy to .dev.vars (gitignored) and fill in.
|
|
# Production values are set with `wrangler secret put <NAME>` instead.
|
|
|
|
# Bearer token for the control API, MCP endpoint, and dashboard login.
|
|
# Generate one: openssl rand -hex 32
|
|
AGENT_TOKEN=
|
|
|
|
# Optional. Google service-account key JSON (one line) for Search Console
|
|
# sensing. Leave empty to run without GSC — the agent still crawls, finds, and
|
|
# drafts; it just has no search-performance data. See the README.
|
|
GSC_SERVICE_ACCOUNT_JSON=
|