ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/thatdeveloperguy-website / src/engines/seo/crawl/robots-policy.ts

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/thatdeveloperguy-website / src/engines/seo/crawl/robots-policy.ts
DateNot specified in source
RepositoryJanady13/thatdeveloperguy-website
Revision2bea2ebdff0e34494bff597d4fa9c8422a0c3a94
Branchmain
Path or archive membersrc/engines/seo/crawl/robots-policy.ts
Original SHA-256f673107797036c6227d1419edb5938e6942e63c268d6b781f2b0904d77837818
Git blob SHA1f4201e52a0afaa0ec16ae8d11bf37709d2064fd
Reading-copy SHA-256f673107797036c6227d1419edb5938e6942e63c268d6b781f2b0904d77837818

Original source ↗

Recovered source transcript

import policy from '../../../../records/crawler-policy.json' with { type: 'json' }; import { PRODUCTION_ORIGIN } from '../urls/production-origin.ts'; export type ReleaseKind = 'demo' | 'production'; /** robots.txt has exactly one generated owner. Demo hosts disallow everything; production follows the owner's approved bot matrix. */ export function robotsFor(kind: ReleaseKind): string { if (kind === 'demo') return 'User-agent: *\nDisallow: /\n'; const groups = policy.bots.map(bot => `User-agent: ${bot.token}\n${bot.decision === 'allow' ? 'Allow: /' : 'Disallow: /'}\n`).join('\n'); const protectedPaths = policy.protected_paths.map(p => `Disallow: ${p}`).join('\n'); return `# Approved by ${policy.approved_by}, ${policy.approved_at}\n${groups}\nUser-agent: *\nAllow: /\n${protectedPaths}\n\nSitemap: ${PRODUCTION_ORIGIN}/sitemap.xml\nSitemap: ${PRODUCTION_ORIGIN}/sitemap-index.xml\n`; } /** X-Robots-Tag for the host config: staging is noindex regardless of what robots.txt says. */ export function robotsHeaderFor(kind: ReleaseKind): string { return kind === 'demo' ? 'noindex, nofollow' : 'all'; }

Search equations, builds, manuscript text, and recovered sources.