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>
16 lines
339 B
JSON
16 lines
339 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"lib": ["ES2023"],
|
|
"module": "ESNext",
|
|
"moduleResolution": "bundler",
|
|
"strict": true,
|
|
"noEmit": true,
|
|
"skipLibCheck": true,
|
|
"isolatedModules": true,
|
|
"moduleDetection": "force",
|
|
"types": []
|
|
},
|
|
"include": ["src/**/*.ts", "worker-configuration.d.ts"]
|
|
}
|